@iamproperty/components 5.5.1-beta-1 → 5.5.1-beta-2
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/actionbar.css +1 -1
- package/assets/css/components/actionbar.css.map +1 -1
- package/assets/css/components/applied-filters.css +1 -1
- package/assets/css/components/applied-filters.css.map +1 -1
- package/assets/css/components/card.css +1 -1
- package/assets/css/components/card.css.map +1 -1
- package/assets/css/components/card.global.css +1 -1
- package/assets/css/components/card.global.css.map +1 -1
- package/assets/css/components/charts.css +1 -1
- package/assets/css/components/charts.css.map +1 -1
- package/assets/css/components/fileupload.css.map +1 -1
- package/assets/css/components/nav.css.map +1 -1
- package/assets/css/components/slider.css.map +1 -1
- package/assets/css/components/tabs.css +1 -1
- package/assets/css/components/tabs.css.map +1 -1
- package/assets/css/core.min.css +1 -1
- package/assets/css/core.min.css.map +1 -1
- package/assets/css/style.min.css +1 -1
- package/assets/css/style.min.css.map +1 -1
- package/assets/js/components/accordion/accordion.component.min.js +1 -1
- package/assets/js/components/actionbar/actionbar.component.js +12 -3
- package/assets/js/components/actionbar/actionbar.component.min.js +6 -6
- package/assets/js/components/actionbar/actionbar.component.min.js.map +1 -1
- package/assets/js/components/address-lookup/address-lookup.component.min.js +1 -1
- package/assets/js/components/applied-filters/applied-filters.component.min.js +6 -6
- package/assets/js/components/applied-filters/applied-filters.component.min.js.map +1 -1
- package/assets/js/components/card/card.component.min.js +3 -3
- package/assets/js/components/chart/chart.component.js +71 -0
- package/assets/js/components/collapsible-side/collapsible-side.component.min.js +1 -1
- package/assets/js/components/fileupload/fileupload.component.js +1 -1
- package/assets/js/components/fileupload/fileupload.component.min.js +5 -5
- package/assets/js/components/fileupload/fileupload.component.min.js.map +1 -1
- package/assets/js/components/filterlist/filterlist.component.min.js +1 -1
- package/assets/js/components/header/header.component.min.js +1 -1
- package/assets/js/components/nav/nav.component.min.js +1 -1
- package/assets/js/components/notification/notification.component.min.js +1 -1
- package/assets/js/components/pagination/pagination.component.min.js +1 -1
- package/assets/js/components/search/search.component.min.js +1 -1
- package/assets/js/components/search/search.component.min.js.map +1 -1
- package/assets/js/components/table/table.component.js +2 -2
- package/assets/js/components/table/table.component.min.js +6 -6
- 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 +1 -1
- package/assets/js/dynamic.min.js.map +1 -1
- package/assets/js/modules/applied-filters.js +39 -7
- package/assets/js/modules/chart.js +613 -111
- package/assets/js/modules/fileupload.js +11 -0
- package/assets/js/modules/helpers.js +16 -0
- package/assets/js/modules/table.js +62 -11
- package/assets/js/scripts.bundle.js +31 -31
- package/assets/js/scripts.bundle.js.map +1 -1
- package/assets/js/scripts.bundle.min.js +2 -2
- package/assets/js/scripts.bundle.min.js.map +1 -1
- package/assets/sass/_elements.scss +1 -1
- package/assets/sass/_functions/variables.scss +80 -0
- package/assets/sass/_utilities.scss +1 -0
- package/assets/sass/components/actionbar.scss +16 -0
- package/assets/sass/components/applied-filters.scss +6 -48
- package/assets/sass/components/card.global.scss +4 -0
- package/assets/sass/components/card.scss +1 -1
- package/assets/sass/components/charts.scss +981 -234
- package/assets/sass/components/tabs.scss +10 -1
- package/assets/sass/elements/badge-tag.scss +82 -0
- package/assets/sass/elements/buttons.scss +13 -1
- package/assets/sass/elements/details.scss +94 -5
- package/assets/sass/elements/dialog.scss +2 -0
- package/assets/sass/elements/forms.scss +26 -22
- package/assets/sass/elements/tooltips.scss +4 -3
- package/assets/sass/foundations/root.scss +11 -0
- package/assets/sass/helpers/wider-colours.scss +11 -0
- package/assets/ts/components/actionbar/actionbar.component.ts +14 -3
- package/assets/ts/components/chart/README.md +37 -0
- package/assets/ts/components/chart/chart.component.ts +98 -0
- package/assets/ts/components/fileupload/fileupload.component.ts +1 -1
- package/assets/ts/components/table/table.component.ts +2 -2
- package/assets/ts/modules/applied-filters.ts +61 -7
- package/assets/ts/modules/chart.ts +808 -119
- package/assets/ts/modules/fileupload.ts +19 -0
- package/assets/ts/modules/helpers.ts +23 -1
- package/assets/ts/modules/table.ts +86 -12
- package/dist/components.es.js +348 -329
- package/dist/components.umd.js +58 -62
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/AppliedFilters/AppliedFilters.vue +1 -1
- package/src/components/Chart/Chart.vue +26 -96
- package/assets/sass/elements/badge.scss +0 -29
package/dist/components.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { openBlock as r, createElementBlock as l, normalizeClass as
|
|
2
|
-
const
|
|
1
|
+
import { openBlock as r, createElementBlock as l, normalizeClass as w, createElementVNode as c, toDisplayString as $, createCommentVNode as b, Fragment as E, renderList as q, renderSlot as f, withDirectives as T, mergeProps as S, vModelDynamic as H, vModelText as I, vModelSelect as D, createTextVNode as V, resolveComponent as M, createVNode as x, withModifiers as B } from "vue";
|
|
2
|
+
const h = (t, a) => {
|
|
3
3
|
const e = t.__vccOpts || t;
|
|
4
|
-
for (const [
|
|
5
|
-
e[
|
|
4
|
+
for (const [o, i] of a)
|
|
5
|
+
e[o] = i;
|
|
6
6
|
return e;
|
|
7
7
|
}, O = {
|
|
8
8
|
name: "Logo",
|
|
@@ -30,12 +30,12 @@ const p = (t, a) => {
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
}, U = ["xlink:href"], W = ["innerHTML"];
|
|
33
|
-
function K(t, a, e,
|
|
33
|
+
function K(t, a, e, o, i, s) {
|
|
34
34
|
return r(), l("div", {
|
|
35
|
-
class:
|
|
35
|
+
class: w(s.className)
|
|
36
36
|
}, [
|
|
37
37
|
(r(), l("svg", null, [
|
|
38
|
-
c("title", null, "iam " +
|
|
38
|
+
c("title", null, "iam " + $(e.id), 1),
|
|
39
39
|
c("use", {
|
|
40
40
|
"xlink:href": e.path + s.src
|
|
41
41
|
}, null, 8, U)
|
|
@@ -46,7 +46,7 @@ function K(t, a, e, i, o, s) {
|
|
|
46
46
|
}, null, 8, W)) : b("", !0)
|
|
47
47
|
], 2);
|
|
48
48
|
}
|
|
49
|
-
const
|
|
49
|
+
const za = /* @__PURE__ */ h(O, [["render", K]]), G = (t) => t.charAt(0).toUpperCase() + t.slice(1), Q = (t) => t.replace(/_/g, " "), Y = (t) => t.replace(/ /g, "_"), J = function(t) {
|
|
50
50
|
return t = t.toLowerCase(), t = Y(t), t = t.replace(/\W/g, ""), t;
|
|
51
51
|
}, X = {
|
|
52
52
|
name: "Table",
|
|
@@ -67,7 +67,7 @@ const Ia = /* @__PURE__ */ p(O, [["render", K]]), G = (t) => t.charAt(0).toUpper
|
|
|
67
67
|
},
|
|
68
68
|
created() {
|
|
69
69
|
this.$nextTick(function() {
|
|
70
|
-
import("./table.component.min-
|
|
70
|
+
import("./table.component.min-80bee266.mjs").then((t) => {
|
|
71
71
|
window.customElements.get("iam-table") || window.customElements.define("iam-table", t.default);
|
|
72
72
|
}).catch((t) => {
|
|
73
73
|
console.log(t.message);
|
|
@@ -81,23 +81,23 @@ const Ia = /* @__PURE__ */ p(O, [["render", K]]), G = (t) => t.charAt(0).toUpper
|
|
|
81
81
|
updated() {
|
|
82
82
|
}
|
|
83
83
|
}, Z = { key: 0 }, ee = { key: 0 }, te = ["data-row-id"], ae = ["innerHTML"];
|
|
84
|
-
function
|
|
84
|
+
function se(t, a, e, o, i, s) {
|
|
85
85
|
return r(), l("iam-table", null, [
|
|
86
86
|
e.fields ? (r(), l("table", Z, [
|
|
87
87
|
c("thead", null, [
|
|
88
88
|
c("tr", null, [
|
|
89
|
-
(r(!0), l(
|
|
89
|
+
(r(!0), l(E, null, q(e.fields, (n) => (r(), l("th", {
|
|
90
90
|
key: n.key
|
|
91
|
-
},
|
|
91
|
+
}, $(s.cellHeading(n.key)), 1))), 128))
|
|
92
92
|
])
|
|
93
93
|
]),
|
|
94
94
|
e.items ? (r(), l("tbody", ee, [
|
|
95
|
-
(r(!0), l(
|
|
95
|
+
(r(!0), l(E, null, q(e.items, (n, d) => (r(), l("tr", {
|
|
96
96
|
key: d,
|
|
97
97
|
"data-row-id": n.rowid
|
|
98
98
|
}, [
|
|
99
|
-
(r(!0), l(
|
|
100
|
-
key:
|
|
99
|
+
(r(!0), l(E, null, q(Object.fromEntries(Object.entries(n).filter(([u]) => u !== "rowid")), (u, m) => (r(), l("td", {
|
|
100
|
+
key: m,
|
|
101
101
|
innerHTML: u
|
|
102
102
|
}, null, 8, ae))), 128))
|
|
103
103
|
], 8, te))), 128))
|
|
@@ -105,7 +105,7 @@ function ie(t, a, e, i, o, s) {
|
|
|
105
105
|
])) : f(t.$slots, "default", { key: 1 })
|
|
106
106
|
]);
|
|
107
107
|
}
|
|
108
|
-
const
|
|
108
|
+
const R = /* @__PURE__ */ h(X, [["render", se]]), ie = {
|
|
109
109
|
name: "Input",
|
|
110
110
|
props: {
|
|
111
111
|
value: {
|
|
@@ -293,38 +293,38 @@ const N = /* @__PURE__ */ p(X, [["render", ie]]), ne = {
|
|
|
293
293
|
this.$emit("bus");
|
|
294
294
|
}
|
|
295
295
|
}
|
|
296
|
-
},
|
|
296
|
+
}, ne = ["for", "innerHTML", "title"], oe = ["innerHTML"], re = ["innerHTML"], le = ["type", "name", "id", "pattern", "list"], de = ["type", "name", "id", "pattern"], ce = {
|
|
297
297
|
key: 5,
|
|
298
298
|
class: "input-group"
|
|
299
299
|
}, ue = ["type", "name", "id", "pattern", "list"], me = { class: "input-group-text border-0 col-2 col-sm-1 px-0" }, pe = {
|
|
300
300
|
key: 6,
|
|
301
301
|
class: "input-group"
|
|
302
302
|
}, he = ["type", "name", "id", "pattern", "list"], fe = { class: "input-group-text flex-fill" }, be = ["type", "name", "id", "pattern"], ge = ["value"], ye = ["type", "name", "id"], ve = ["for", "innerHTML"], _e = ["type", "name", "id"], we = ["for", "innerHTML"], $e = ["innerHTML"], ke = ["id"], Ae = ["value"];
|
|
303
|
-
function xe(t, a, e,
|
|
303
|
+
function xe(t, a, e, o, i, s) {
|
|
304
304
|
return r(), l("div", {
|
|
305
|
-
class:
|
|
305
|
+
class: w(s.wrapperClass()),
|
|
306
306
|
ref: "wrapper"
|
|
307
307
|
}, [
|
|
308
308
|
s.needsLabel() ? (r(), l("label", {
|
|
309
309
|
key: 0,
|
|
310
|
-
class:
|
|
310
|
+
class: w(`form-label${e.labelclass ? ` ${e.labelclass}` : ""}`),
|
|
311
311
|
for: e.id,
|
|
312
312
|
innerHTML: s.displayLabel(),
|
|
313
313
|
title: e.title
|
|
314
|
-
}, null, 10,
|
|
314
|
+
}, null, 10, ne)) : b("", !0),
|
|
315
315
|
e.prefix ? (r(), l("span", {
|
|
316
316
|
key: 1,
|
|
317
|
-
class:
|
|
317
|
+
class: w(`prefix ${this.prefixClass} ${e.size ? `prefix-${e.size}` : ""}`),
|
|
318
318
|
innerHTML: e.prefix,
|
|
319
319
|
role: "presentation"
|
|
320
320
|
}, null, 10, oe)) : b("", !0),
|
|
321
321
|
e.suffix ? (r(), l("span", {
|
|
322
322
|
key: 2,
|
|
323
|
-
class:
|
|
323
|
+
class: w(`suffix ${this.suffixClass} ${e.size ? `suffix-${e.size}` : ""}`),
|
|
324
324
|
innerHTML: e.suffix,
|
|
325
325
|
role: "presentation"
|
|
326
326
|
}, null, 10, re)) : b("", !0),
|
|
327
|
-
s.isInput() ?
|
|
327
|
+
s.isInput() ? T((r(), l("input", S({
|
|
328
328
|
key: 3,
|
|
329
329
|
"onUpdate:modelValue": a[0] || (a[0] = (n) => s.inputVal = n),
|
|
330
330
|
class: `form-control${e.size ? ` form-control-${e.size}` : ""}${e.inputclass ? ` ${e.inputclass}` : ""}`,
|
|
@@ -336,9 +336,9 @@ function xe(t, a, e, i, o, s) {
|
|
|
336
336
|
}, t.$attrs, {
|
|
337
337
|
onKeyup: a[1] || (a[1] = (...n) => s.inputKeyup && s.inputKeyup(...n))
|
|
338
338
|
}), null, 16, le)), [
|
|
339
|
-
[
|
|
339
|
+
[H, s.inputVal]
|
|
340
340
|
]) : b("", !0),
|
|
341
|
-
e.type == "textarea" ?
|
|
341
|
+
e.type == "textarea" ? T((r(), l("textarea", S({
|
|
342
342
|
key: 4,
|
|
343
343
|
"onUpdate:modelValue": a[2] || (a[2] = (n) => s.inputVal = n),
|
|
344
344
|
class: `form-control${e.size ? ` form-control-${e.size}` : ""}${e.inputclass ? ` ${e.inputclass}` : ""}`,
|
|
@@ -347,10 +347,10 @@ function xe(t, a, e, i, o, s) {
|
|
|
347
347
|
id: e.id,
|
|
348
348
|
pattern: s.needPattern()
|
|
349
349
|
}, t.$attrs), null, 16, de)), [
|
|
350
|
-
[
|
|
350
|
+
[I, s.inputVal]
|
|
351
351
|
]) : b("", !0),
|
|
352
352
|
e.type == "range" ? (r(), l("div", ce, [
|
|
353
|
-
|
|
353
|
+
T(c("input", S({
|
|
354
354
|
"onUpdate:modelValue": a[3] || (a[3] = (n) => s.inputVal = n),
|
|
355
355
|
class: `form-range${e.inputclass ? ` ${e.inputclass}` : ""}`,
|
|
356
356
|
type: e.type,
|
|
@@ -359,12 +359,12 @@ function xe(t, a, e, i, o, s) {
|
|
|
359
359
|
pattern: s.needPattern(),
|
|
360
360
|
list: s.hasOptions()
|
|
361
361
|
}, t.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, ue), [
|
|
362
|
-
[
|
|
362
|
+
[H, s.inputVal]
|
|
363
363
|
]),
|
|
364
|
-
c("output", me,
|
|
364
|
+
c("output", me, $(e.value), 1)
|
|
365
365
|
])) : b("", !0),
|
|
366
366
|
e.type == "color" ? (r(), l("div", pe, [
|
|
367
|
-
|
|
367
|
+
T(c("input", S({
|
|
368
368
|
"onUpdate:modelValue": a[4] || (a[4] = (n) => s.inputVal = n),
|
|
369
369
|
class: `form-control form-control-color${e.inputclass ? ` ${e.inputclass}` : ""}`,
|
|
370
370
|
type: e.type,
|
|
@@ -373,11 +373,11 @@ function xe(t, a, e, i, o, s) {
|
|
|
373
373
|
pattern: s.needPattern(),
|
|
374
374
|
list: s.hasOptions()
|
|
375
375
|
}, t.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, he), [
|
|
376
|
-
[
|
|
376
|
+
[H, s.inputVal]
|
|
377
377
|
]),
|
|
378
|
-
c("output", fe,
|
|
378
|
+
c("output", fe, $(e.value ? t.vale : "#000000"), 1)
|
|
379
379
|
])) : b("", !0),
|
|
380
|
-
e.type == "select" ?
|
|
380
|
+
e.type == "select" ? T((r(), l("select", S({
|
|
381
381
|
key: 7,
|
|
382
382
|
"onUpdate:modelValue": a[5] || (a[5] = (n) => s.inputVal = n),
|
|
383
383
|
class: `form-select${e.size ? ` form-select-${e.size}` : ""}${e.inputclass ? ` ${e.inputclass}` : ""}`,
|
|
@@ -386,14 +386,14 @@ function xe(t, a, e, i, o, s) {
|
|
|
386
386
|
id: e.id,
|
|
387
387
|
pattern: s.needPattern()
|
|
388
388
|
}, t.$attrs), [
|
|
389
|
-
(r(!0), l(
|
|
389
|
+
(r(!0), l(E, null, q(e.options, (n, d) => (r(), l("option", {
|
|
390
390
|
key: d,
|
|
391
391
|
value: n.value
|
|
392
|
-
},
|
|
392
|
+
}, $(n.display ? n.display : n.value), 9, ge))), 128))
|
|
393
393
|
], 16, be)), [
|
|
394
|
-
[
|
|
394
|
+
[D, s.inputVal]
|
|
395
395
|
]) : b("", !0),
|
|
396
|
-
e.type == "checkbox" || e.type == "radio" ? (r(), l("input",
|
|
396
|
+
e.type == "checkbox" || e.type == "radio" ? (r(), l("input", S({
|
|
397
397
|
key: 8,
|
|
398
398
|
class: "form-check-input",
|
|
399
399
|
type: e.type,
|
|
@@ -402,11 +402,11 @@ function xe(t, a, e, i, o, s) {
|
|
|
402
402
|
}, t.$attrs), null, 16, ye)) : b("", !0),
|
|
403
403
|
e.type == "checkbox" || e.type == "radio" ? (r(), l("label", {
|
|
404
404
|
key: 9,
|
|
405
|
-
class:
|
|
405
|
+
class: w(`form-label form-check-label${e.labelclass ? ` ${e.labelclass}` : ""}`),
|
|
406
406
|
for: e.id,
|
|
407
407
|
innerHTML: e.label
|
|
408
408
|
}, null, 10, ve)) : b("", !0),
|
|
409
|
-
e.type == "checkbox-btn" || e.type == "radio-btn" ? (r(), l("input",
|
|
409
|
+
e.type == "checkbox-btn" || e.type == "radio-btn" ? (r(), l("input", S({
|
|
410
410
|
key: 10,
|
|
411
411
|
class: `btn-check${e.inputclass ? ` ${e.inputclass}` : ""}`,
|
|
412
412
|
type: e.type.replace("-btn", ""),
|
|
@@ -416,7 +416,7 @@ function xe(t, a, e, i, o, s) {
|
|
|
416
416
|
}, t.$attrs), null, 16, _e)) : b("", !0),
|
|
417
417
|
e.type == "checkbox-btn" || e.type == "radio-btn" ? (r(), l("label", {
|
|
418
418
|
key: 11,
|
|
419
|
-
class:
|
|
419
|
+
class: w(`btn${e.labelclass ? ` ${e.labelclass}` : ""}`),
|
|
420
420
|
for: e.id,
|
|
421
421
|
innerHTML: e.label,
|
|
422
422
|
onClick: a[6] || (a[6] = (...n) => s.clickEvent && s.clickEvent(...n))
|
|
@@ -431,54 +431,62 @@ function xe(t, a, e, i, o, s) {
|
|
|
431
431
|
key: 13,
|
|
432
432
|
id: e.id + "-list"
|
|
433
433
|
}, [
|
|
434
|
-
(r(!0), l(
|
|
434
|
+
(r(!0), l(E, null, q(e.options, (n, d) => (r(), l("option", {
|
|
435
435
|
key: d,
|
|
436
436
|
value: n.value
|
|
437
|
-
},
|
|
437
|
+
}, $(n.value), 9, Ae))), 128))
|
|
438
438
|
], 8, ke)) : b("", !0)
|
|
439
439
|
], 2);
|
|
440
440
|
}
|
|
441
|
-
const
|
|
441
|
+
const P = /* @__PURE__ */ h(ie, [["render", xe]]);
|
|
442
442
|
function Le(t, a) {
|
|
443
|
-
const e = a.querySelector(".files"),
|
|
444
|
-
|
|
445
|
-
d && d.target instanceof HTMLElement && d.target.closest(".btn-primary") && (d.target.closest(".btn-primary"), (
|
|
443
|
+
const e = a.querySelector(".files"), o = a.querySelector(".drop-area"), i = t.querySelector("input"), s = t.hasAttribute("data-maxsize") ? t.getAttribute("data-maxsize") : 0, n = i.cloneNode();
|
|
444
|
+
if (o.append(n), a.addEventListener("click", (d) => {
|
|
445
|
+
d && d.target instanceof HTMLElement && d.target.closest(".btn-primary") && (d.target.closest(".btn-primary"), (i.hasAttribute("multiple") ? n : i).click());
|
|
446
446
|
}), a.addEventListener("click", (d) => {
|
|
447
447
|
if (d && d.target instanceof HTMLElement && d.target.closest(".files button")) {
|
|
448
|
-
const u = new DataTransfer(), { files:
|
|
449
|
-
for (let
|
|
450
|
-
const v =
|
|
451
|
-
v.name !=
|
|
448
|
+
const u = new DataTransfer(), { files: m } = i, y = d.target.closest(".files button");
|
|
449
|
+
for (let g = 0; g < m.length; g++) {
|
|
450
|
+
const v = m[g];
|
|
451
|
+
v.name != y.getAttribute("data-file") && u.items.add(v);
|
|
452
|
+
}
|
|
453
|
+
if (i.files = u.files, i.files.length == 0) {
|
|
454
|
+
const g = new Event("empty");
|
|
455
|
+
t.dispatchEvent(g);
|
|
452
456
|
}
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
o.dispatchEvent(m);
|
|
457
|
+
const p = new Event("change");
|
|
458
|
+
i.dispatchEvent(p);
|
|
456
459
|
}
|
|
457
460
|
}), n.addEventListener("change", (d) => {
|
|
458
|
-
if (
|
|
459
|
-
const
|
|
460
|
-
let
|
|
461
|
-
const
|
|
462
|
-
for (let
|
|
463
|
-
const
|
|
464
|
-
!
|
|
461
|
+
if (i.hasAttribute("multiple")) {
|
|
462
|
+
const y = [...i.files, ...n.files];
|
|
463
|
+
let p = [];
|
|
464
|
+
const g = new DataTransfer();
|
|
465
|
+
for (let v = 0; v < y.length; v++) {
|
|
466
|
+
const _ = y[v], k = _.size / 1e3;
|
|
467
|
+
!p.includes(_.name) && (s == 0 || k < s) && g.items.add(_), p.push(_.name);
|
|
465
468
|
}
|
|
466
|
-
|
|
469
|
+
i.files = g.files;
|
|
467
470
|
} else
|
|
468
|
-
|
|
471
|
+
i.files = n.files;
|
|
469
472
|
const u = new Event("change");
|
|
470
|
-
|
|
473
|
+
i.dispatchEvent(u);
|
|
474
|
+
const m = new Event("elementChange");
|
|
475
|
+
t.dispatchEvent(m);
|
|
471
476
|
}), n.addEventListener("dragenter", (d) => {
|
|
472
477
|
n.classList.add("focus");
|
|
473
478
|
}), n.addEventListener("dragleave", (d) => {
|
|
474
479
|
n.classList.remove("focus");
|
|
475
480
|
}), n.addEventListener("drop", (d) => {
|
|
476
481
|
n.classList.remove("focus");
|
|
477
|
-
}),
|
|
482
|
+
}), i.addEventListener("change", (d) => {
|
|
478
483
|
e.innerHTML = "";
|
|
479
|
-
for (const u of
|
|
484
|
+
for (const u of i.files)
|
|
480
485
|
e.innerHTML += `<span class="file">${u.name} <button data-file="${u.name}">Remove</button></span>`;
|
|
481
|
-
})
|
|
486
|
+
}), t.hasAttribute("data-filename")) {
|
|
487
|
+
let d = t.getAttribute("data-filename");
|
|
488
|
+
d && (e.innerHTML += `<span class="file">${d} <button data-file="${d}">Remove</button></span>`);
|
|
489
|
+
}
|
|
482
490
|
}
|
|
483
491
|
window.dataLayer = window.dataLayer || [];
|
|
484
492
|
window.dataLayer.push({
|
|
@@ -488,11 +496,11 @@ window.dataLayer.push({
|
|
|
488
496
|
class Se extends HTMLElement {
|
|
489
497
|
constructor() {
|
|
490
498
|
super(), this.attachShadow({ mode: "open" });
|
|
491
|
-
const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", e = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`,
|
|
492
|
-
|
|
499
|
+
const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", e = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, o = `@import "${a}/css/components/fileupload.css";`, i = document.createElement("template");
|
|
500
|
+
i.innerHTML = `
|
|
493
501
|
<style>
|
|
494
502
|
@import "${e}";
|
|
495
|
-
${
|
|
503
|
+
${o}
|
|
496
504
|
${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
|
|
497
505
|
</style>
|
|
498
506
|
<div class="file-upload">
|
|
@@ -502,17 +510,17 @@ class Se extends HTMLElement {
|
|
|
502
510
|
<div class="drop-area"></div>
|
|
503
511
|
<hr/>
|
|
504
512
|
<slot></slot>
|
|
505
|
-
<div class="files"></div>
|
|
513
|
+
<div class="files"><slot name="files"></slot></div>
|
|
506
514
|
</div>
|
|
507
|
-
`, this.shadowRoot.appendChild(
|
|
515
|
+
`, this.shadowRoot.appendChild(i.content.cloneNode(!0));
|
|
508
516
|
}
|
|
509
517
|
connectedCallback() {
|
|
510
518
|
this.innerHTML += '<i class="fa-regular fa-arrow-up-from-bracket me-2" aria-hidden="true" slot="btn"></i>';
|
|
511
|
-
const a = this.shadowRoot.querySelector(".file-upload"), e = this.querySelector("input"),
|
|
512
|
-
|
|
519
|
+
const a = this.shadowRoot.querySelector(".file-upload"), e = this.querySelector("input"), o = this.shadowRoot.querySelector(".helper-text");
|
|
520
|
+
o.innerHTML = `${this.hasAttribute("data-maxsize") ? `Max file size is ${this.getAttribute("data-maxsize")}kb. ` : ""}${e.hasAttribute("accept") ? `Supported file types are ${e.getAttribute("accept")}` : ""}`, Le(this, a);
|
|
513
521
|
}
|
|
514
522
|
}
|
|
515
|
-
const
|
|
523
|
+
const Ee = {
|
|
516
524
|
name: "FileUpload",
|
|
517
525
|
props: {
|
|
518
526
|
maxfilesize: {
|
|
@@ -530,18 +538,18 @@ const qe = {
|
|
|
530
538
|
});
|
|
531
539
|
}
|
|
532
540
|
};
|
|
533
|
-
function
|
|
541
|
+
function qe(t, a, e, o, i, s) {
|
|
534
542
|
return r(), l("iam-fileupload", null, [
|
|
535
543
|
f(t.$slots, "default")
|
|
536
544
|
]);
|
|
537
545
|
}
|
|
538
|
-
const
|
|
546
|
+
const Ia = /* @__PURE__ */ h(Ee, [["render", qe]]);
|
|
539
547
|
const Te = {
|
|
540
548
|
name: "Accordion",
|
|
541
549
|
props: {},
|
|
542
550
|
mounted() {
|
|
543
551
|
this.$nextTick(function() {
|
|
544
|
-
import("./accordion.component.min-
|
|
552
|
+
import("./accordion.component.min-125bfba8.mjs").then((t) => {
|
|
545
553
|
window.customElements.get("iam-accordion") || window.customElements.define("iam-accordion", t.default);
|
|
546
554
|
}).catch((t) => {
|
|
547
555
|
console.log(t.message);
|
|
@@ -549,12 +557,12 @@ const Te = {
|
|
|
549
557
|
});
|
|
550
558
|
}
|
|
551
559
|
}, He = { ref: "wrapper" };
|
|
552
|
-
function Me(t, a, e,
|
|
560
|
+
function Me(t, a, e, o, i, s) {
|
|
553
561
|
return r(), l("iam-accordion", He, [
|
|
554
562
|
f(t.$slots, "default")
|
|
555
563
|
], 512);
|
|
556
564
|
}
|
|
557
|
-
const
|
|
565
|
+
const Da = /* @__PURE__ */ h(Te, [["render", Me]]), Ce = {
|
|
558
566
|
name: "AccordionItem",
|
|
559
567
|
props: {
|
|
560
568
|
title: {
|
|
@@ -589,22 +597,22 @@ const Fa = /* @__PURE__ */ p(Te, [["render", Me]]), Ce = {
|
|
|
589
597
|
show: !this.lazy
|
|
590
598
|
};
|
|
591
599
|
}
|
|
592
|
-
},
|
|
593
|
-
function
|
|
600
|
+
}, Ne = ["id"];
|
|
601
|
+
function je(t, a, e, o, i, s) {
|
|
594
602
|
return r(), l("details", {
|
|
595
603
|
id: s.createID(e.title)
|
|
596
604
|
}, [
|
|
597
605
|
c("summary", null, [
|
|
598
|
-
V(
|
|
606
|
+
V($(e.title), 1),
|
|
599
607
|
e.badge ? (r(), l("span", {
|
|
600
608
|
key: 0,
|
|
601
|
-
class:
|
|
602
|
-
},
|
|
609
|
+
class: w(`badge bg-${e.badgecolour}`)
|
|
610
|
+
}, $(e.badge), 3)) : b("", !0)
|
|
603
611
|
]),
|
|
604
612
|
f(t.$slots, "default")
|
|
605
|
-
], 8,
|
|
613
|
+
], 8, Ne);
|
|
606
614
|
}
|
|
607
|
-
const Va = /* @__PURE__ */
|
|
615
|
+
const Va = /* @__PURE__ */ h(Ce, [["render", je]]), Re = {
|
|
608
616
|
name: "Header",
|
|
609
617
|
props: {
|
|
610
618
|
title: {
|
|
@@ -621,20 +629,20 @@ const Va = /* @__PURE__ */ p(Ce, [["render", Ne]]), Re = {
|
|
|
621
629
|
required: !1
|
|
622
630
|
}
|
|
623
631
|
}
|
|
624
|
-
}, Pe = { class: "container" },
|
|
625
|
-
function Be(t, a, e,
|
|
632
|
+
}, Pe = { class: "container" }, Fe = { class: "row" }, ze = { class: "col-sm-6" }, Ie = { class: "pt-5 pb-3 px-4" }, De = { class: "col-sm-6 col-md-5 ms-auto" }, Ve = ["src"];
|
|
633
|
+
function Be(t, a, e, o, i, s) {
|
|
626
634
|
return r(), l("div", Pe, [
|
|
627
635
|
c("div", {
|
|
628
|
-
class:
|
|
636
|
+
class: w("bg-" + e.background + " mb-4")
|
|
629
637
|
}, [
|
|
630
|
-
c("div",
|
|
631
|
-
c("div",
|
|
632
|
-
c("div",
|
|
633
|
-
c("h2", null,
|
|
638
|
+
c("div", Fe, [
|
|
639
|
+
c("div", ze, [
|
|
640
|
+
c("div", Ie, [
|
|
641
|
+
c("h2", null, $(e.title), 1),
|
|
634
642
|
f(t.$slots, "default")
|
|
635
643
|
])
|
|
636
644
|
]),
|
|
637
|
-
c("div",
|
|
645
|
+
c("div", De, [
|
|
638
646
|
e.image ? (r(), l("img", {
|
|
639
647
|
key: 0,
|
|
640
648
|
src: e.image,
|
|
@@ -646,13 +654,13 @@ function Be(t, a, e, i, o, s) {
|
|
|
646
654
|
], 2)
|
|
647
655
|
]);
|
|
648
656
|
}
|
|
649
|
-
const Ba = /* @__PURE__ */
|
|
657
|
+
const Ba = /* @__PURE__ */ h(Re, [["render", Be]]), Oe = {
|
|
650
658
|
name: "Card",
|
|
651
659
|
mounted() {
|
|
652
660
|
this.$nextTick(function() {
|
|
653
661
|
import(
|
|
654
662
|
/* @vite-ignore */
|
|
655
|
-
"./card.component.min-
|
|
663
|
+
"./card.component.min-773dc232.mjs"
|
|
656
664
|
).then((t) => {
|
|
657
665
|
window.customElements.get("iam-card") || window.customElements.define("iam-card", t.default);
|
|
658
666
|
}).catch((t) => {
|
|
@@ -661,15 +669,15 @@ const Ba = /* @__PURE__ */ p(Re, [["render", Be]]), Oe = {
|
|
|
661
669
|
});
|
|
662
670
|
}
|
|
663
671
|
};
|
|
664
|
-
function Ue(t, a, e,
|
|
672
|
+
function Ue(t, a, e, o, i, s) {
|
|
665
673
|
return r(), l("iam-card", null, [
|
|
666
674
|
f(t.$slots, "default")
|
|
667
675
|
]);
|
|
668
676
|
}
|
|
669
|
-
const Oa = /* @__PURE__ */
|
|
677
|
+
const Oa = /* @__PURE__ */ h(Oe, [["render", Ue]]), N = (t, a) => {
|
|
670
678
|
const e = t[a];
|
|
671
|
-
return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((
|
|
672
|
-
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
679
|
+
return e ? typeof e == "function" ? e() : Promise.resolve(e) : new Promise((o, i) => {
|
|
680
|
+
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(i.bind(null, new Error("Unknown variable dynamic import: " + a)));
|
|
673
681
|
});
|
|
674
682
|
}, We = {
|
|
675
683
|
name: "Header",
|
|
@@ -685,7 +693,7 @@ const Oa = /* @__PURE__ */ p(Oe, [["render", Ue]]), C = (t, a) => {
|
|
|
685
693
|
},
|
|
686
694
|
mounted() {
|
|
687
695
|
this.$nextTick(function() {
|
|
688
|
-
|
|
696
|
+
N(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/carousel/carousel.component.js": () => import("./carousel.component-72a8511a.mjs") }), "../../../assets/js/components/carousel/carousel.component.js").then((t) => {
|
|
689
697
|
window.customElements.get("iam-carousel") || window.customElements.define("iam-carousel", t.default);
|
|
690
698
|
}).catch((t) => {
|
|
691
699
|
console.log(t.message);
|
|
@@ -693,12 +701,12 @@ const Oa = /* @__PURE__ */ p(Oe, [["render", Ue]]), C = (t, a) => {
|
|
|
693
701
|
});
|
|
694
702
|
}
|
|
695
703
|
};
|
|
696
|
-
function Ke(t, a, e,
|
|
704
|
+
function Ke(t, a, e, o, i, s) {
|
|
697
705
|
return r(), l("iam-carousel", null, [
|
|
698
706
|
f(t.$slots, "default")
|
|
699
707
|
]);
|
|
700
708
|
}
|
|
701
|
-
const Ua = /* @__PURE__ */
|
|
709
|
+
const Ua = /* @__PURE__ */ h(We, [["render", Ke]]), Ge = {
|
|
702
710
|
name: "Header",
|
|
703
711
|
props: {
|
|
704
712
|
title: {
|
|
@@ -712,7 +720,7 @@ const Ua = /* @__PURE__ */ p(We, [["render", Ke]]), Ge = {
|
|
|
712
720
|
},
|
|
713
721
|
mounted() {
|
|
714
722
|
this.$nextTick(function() {
|
|
715
|
-
import("./header.component.min-
|
|
723
|
+
import("./header.component.min-ab4270b0.mjs").then((t) => {
|
|
716
724
|
window.customElements.get("iam-header") || window.customElements.define("iam-header", t.default);
|
|
717
725
|
}).catch((t) => {
|
|
718
726
|
console.log(t.message);
|
|
@@ -720,7 +728,7 @@ const Ua = /* @__PURE__ */ p(We, [["render", Ke]]), Ge = {
|
|
|
720
728
|
});
|
|
721
729
|
}
|
|
722
730
|
}, Qe = ["image"], Ye = ["innerHTML"];
|
|
723
|
-
function Je(t, a, e,
|
|
731
|
+
function Je(t, a, e, o, i, s) {
|
|
724
732
|
return r(), l("iam-header", { image: e.image }, [
|
|
725
733
|
f(t.$slots, "breadcrumb"),
|
|
726
734
|
e.title ? (r(), l("h1", {
|
|
@@ -730,29 +738,29 @@ function Je(t, a, e, i, o, s) {
|
|
|
730
738
|
f(t.$slots, "default")
|
|
731
739
|
], 8, Qe);
|
|
732
740
|
}
|
|
733
|
-
const Wa = /* @__PURE__ */
|
|
741
|
+
const Wa = /* @__PURE__ */ h(Ge, [["render", Je]]);
|
|
734
742
|
function Xe(t) {
|
|
735
743
|
var a;
|
|
736
|
-
const e = t.querySelector(".testimonial__images"),
|
|
737
|
-
if (
|
|
744
|
+
const e = t.querySelector(".testimonial__images"), o = e.querySelectorAll("img").length;
|
|
745
|
+
if (o == 1)
|
|
738
746
|
return !1;
|
|
739
747
|
t.classList.add("testimonial--multi");
|
|
740
|
-
const
|
|
748
|
+
const i = function(s) {
|
|
741
749
|
const n = t.querySelector(".btn-next"), d = t.querySelector(".btn-prev");
|
|
742
|
-
n.setAttribute("data-go", s + 1), d.setAttribute("data-go", s - 1), n.removeAttribute("disabled"), d.removeAttribute("disabled"), s == 1 ? d.setAttribute("disabled", !0) : s ==
|
|
750
|
+
n.setAttribute("data-go", s + 1), d.setAttribute("data-go", s - 1), n.removeAttribute("disabled"), d.removeAttribute("disabled"), s == 1 ? d.setAttribute("disabled", !0) : s == o && n.setAttribute("disabled", !0);
|
|
743
751
|
};
|
|
744
752
|
e.addEventListener("scroll", function(s) {
|
|
745
753
|
clearTimeout(a), a = setTimeout(function() {
|
|
746
|
-
let n = e.scrollWidth, d = e.scrollHeight, u = e.scrollLeft,
|
|
747
|
-
u == 0 &&
|
|
754
|
+
let n = e.scrollWidth, d = e.scrollHeight, u = e.scrollLeft, m = e.scrollTop, y = Math.round(u / n * o) + 1;
|
|
755
|
+
u == 0 && m != 0 && (y = Math.round(m / d * o) + 1), t.setAttribute("data-show", y), i(y);
|
|
748
756
|
}, 300);
|
|
749
757
|
}, !1), t.addEventListener("click", function(s) {
|
|
750
758
|
for (var n = s.target; n && n != this; n = n.parentNode)
|
|
751
759
|
if (n.matches("[data-go]")) {
|
|
752
|
-
let d = parseInt(n.getAttribute("data-go")), u = 0,
|
|
753
|
-
|
|
760
|
+
let d = parseInt(n.getAttribute("data-go")), u = 0, m = 0, y = e.scrollWidth, p = e.scrollHeight;
|
|
761
|
+
y > p ? m = Math.floor(y * ((d - 1) / o)) : u = Math.floor(p * ((d - 1) / o)), e.scroll({
|
|
754
762
|
top: u,
|
|
755
|
-
left:
|
|
763
|
+
left: m,
|
|
756
764
|
behavior: "smooth"
|
|
757
765
|
});
|
|
758
766
|
break;
|
|
@@ -779,7 +787,7 @@ const Ze = {
|
|
|
779
787
|
class: "container testimonial mb-5",
|
|
780
788
|
"data-show": "1",
|
|
781
789
|
ref: "wrapper"
|
|
782
|
-
}, tt = { class: "row" }, at = { class: "col-md-5 position-relative" },
|
|
790
|
+
}, tt = { class: "row" }, at = { class: "col-md-5 position-relative" }, st = { class: "testimonial__images" }, it = ["src"], nt = /* @__PURE__ */ c("div", { class: "testimonial__controls" }, [
|
|
783
791
|
/* @__PURE__ */ c("button", {
|
|
784
792
|
"data-go": "0",
|
|
785
793
|
disabled: "",
|
|
@@ -790,29 +798,29 @@ const Ze = {
|
|
|
790
798
|
class: "btn-next"
|
|
791
799
|
}, "Next")
|
|
792
800
|
], -1), ot = { class: "col-md-7" }, rt = /* @__PURE__ */ c("h2", null, "What our customers think…", -1), lt = { class: "testimonial__content" }, dt = ["innerHTML"], ct = ["innerHTML"], ut = { class: "testimonial__after" }, mt = /* @__PURE__ */ c("span", { class: "circle circle--dots d-none d-md-block" }, null, -1);
|
|
793
|
-
function pt(t, a, e,
|
|
801
|
+
function pt(t, a, e, o, i, s) {
|
|
794
802
|
return r(), l("div", et, [
|
|
795
803
|
c("div", {
|
|
796
|
-
class:
|
|
804
|
+
class: w("bg-" + e.background)
|
|
797
805
|
}, [
|
|
798
806
|
c("div", tt, [
|
|
799
807
|
c("div", at, [
|
|
800
|
-
c("div",
|
|
801
|
-
(r(!0), l(
|
|
808
|
+
c("div", st, [
|
|
809
|
+
(r(!0), l(E, null, q(e.items, (n, d) => (r(), l("img", {
|
|
802
810
|
key: d,
|
|
803
811
|
src: n.image ? n.image : "data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",
|
|
804
812
|
alt: "",
|
|
805
|
-
class:
|
|
806
|
-
}, null, 10,
|
|
813
|
+
class: w("h-100 w-100 object-cover" + (n.image ? "" : " opacity-0"))
|
|
814
|
+
}, null, 10, it))), 128))
|
|
807
815
|
]),
|
|
808
|
-
|
|
816
|
+
nt
|
|
809
817
|
]),
|
|
810
818
|
c("div", ot, [
|
|
811
819
|
rt,
|
|
812
820
|
c("div", lt, [
|
|
813
|
-
(r(!0), l(
|
|
821
|
+
(r(!0), l(E, null, q(e.items, (n, d) => (r(), l("blockquote", {
|
|
814
822
|
key: d,
|
|
815
|
-
class:
|
|
823
|
+
class: w(n.class)
|
|
816
824
|
}, [
|
|
817
825
|
c("div", {
|
|
818
826
|
innerHTML: n.quote
|
|
@@ -831,7 +839,7 @@ function pt(t, a, e, i, o, s) {
|
|
|
831
839
|
], 2)
|
|
832
840
|
], 512);
|
|
833
841
|
}
|
|
834
|
-
const Ka = /* @__PURE__ */
|
|
842
|
+
const Ka = /* @__PURE__ */ h(Ze, [["render", pt]]);
|
|
835
843
|
const ht = {
|
|
836
844
|
name: "Timeline",
|
|
837
845
|
props: {
|
|
@@ -841,7 +849,7 @@ const ht = {
|
|
|
841
849
|
}
|
|
842
850
|
}
|
|
843
851
|
}, ft = { class: "timeline" }, bt = { class: "timeline__content" }, gt = ["src"];
|
|
844
|
-
function yt(t, a, e,
|
|
852
|
+
function yt(t, a, e, o, i, s) {
|
|
845
853
|
return r(), l("div", ft, [
|
|
846
854
|
c("div", bt, [
|
|
847
855
|
f(t.$slots, "default")
|
|
@@ -853,10 +861,10 @@ function yt(t, a, e, i, o, s) {
|
|
|
853
861
|
}, null, 8, gt)) : b("", !0)
|
|
854
862
|
]);
|
|
855
863
|
}
|
|
856
|
-
const Ga = /* @__PURE__ */
|
|
864
|
+
const Ga = /* @__PURE__ */ h(ht, [["render", yt]]);
|
|
857
865
|
const vt = {
|
|
858
866
|
components: {
|
|
859
|
-
Input:
|
|
867
|
+
Input: P
|
|
860
868
|
},
|
|
861
869
|
name: "PropertySearchbar",
|
|
862
870
|
props: {
|
|
@@ -1006,7 +1014,7 @@ const vt = {
|
|
|
1006
1014
|
}, wt = { class: "property-searchbar" }, $t = ["action", "method"], kt = { class: "col-12 col-md-3" }, At = { class: "col-12 col-md" }, xt = /* @__PURE__ */ c("span", { class: "form-label d-none d-md-block" }, "Price range", -1), Lt = {
|
|
1007
1015
|
class: "row",
|
|
1008
1016
|
"data-input-range": ""
|
|
1009
|
-
}, St = { class: "col-12 col-md" },
|
|
1017
|
+
}, St = { class: "col-12 col-md" }, Et = /* @__PURE__ */ c("span", { class: "form-label d-none d-md-block" }, "Number of beds", -1), qt = {
|
|
1010
1018
|
class: "row",
|
|
1011
1019
|
"data-input-range": ""
|
|
1012
1020
|
}, Tt = { class: "col-12 col-md-2" }, Ht = /* @__PURE__ */ c("div", { class: "col-12 col-md mw-md-fit-content d-flex property-searchbar__btn" }, [
|
|
@@ -1016,8 +1024,8 @@ const vt = {
|
|
|
1016
1024
|
value: "submit"
|
|
1017
1025
|
}, "Search")
|
|
1018
1026
|
], -1);
|
|
1019
|
-
function Mt(t, a, e,
|
|
1020
|
-
const n =
|
|
1027
|
+
function Mt(t, a, e, o, i, s) {
|
|
1028
|
+
const n = M("Input");
|
|
1021
1029
|
return r(), l("div", _t, [
|
|
1022
1030
|
f(t.$slots, "default"),
|
|
1023
1031
|
c("div", wt, [
|
|
@@ -1027,7 +1035,7 @@ function Mt(t, a, e, i, o, s) {
|
|
|
1027
1035
|
method: e.formmethod
|
|
1028
1036
|
}, [
|
|
1029
1037
|
c("fieldset", kt, [
|
|
1030
|
-
|
|
1038
|
+
x(n, {
|
|
1031
1039
|
inputClass: "input--locations",
|
|
1032
1040
|
modelValue: s.locationSet,
|
|
1033
1041
|
"onUpdate:modelValue": a[0] || (a[0] = (d) => s.locationSet = d),
|
|
@@ -1039,7 +1047,7 @@ function Mt(t, a, e, i, o, s) {
|
|
|
1039
1047
|
onKeyupEvent: a[1] || (a[1] = (d) => s.locationKeyup(...arguments)),
|
|
1040
1048
|
ref: "search"
|
|
1041
1049
|
}, null, 8, ["modelValue", "options"]),
|
|
1042
|
-
|
|
1050
|
+
x(n, {
|
|
1043
1051
|
class: "select--miles",
|
|
1044
1052
|
label: "Miles",
|
|
1045
1053
|
id: "miles",
|
|
@@ -1050,7 +1058,7 @@ function Mt(t, a, e, i, o, s) {
|
|
|
1050
1058
|
c("fieldset", At, [
|
|
1051
1059
|
xt,
|
|
1052
1060
|
c("div", Lt, [
|
|
1053
|
-
|
|
1061
|
+
x(n, {
|
|
1054
1062
|
class: "col-6",
|
|
1055
1063
|
label: "Minimum price",
|
|
1056
1064
|
id: "price-min",
|
|
@@ -1058,7 +1066,7 @@ function Mt(t, a, e, i, o, s) {
|
|
|
1058
1066
|
type: "select",
|
|
1059
1067
|
options: e.pricemin
|
|
1060
1068
|
}, null, 8, ["options"]),
|
|
1061
|
-
|
|
1069
|
+
x(n, {
|
|
1062
1070
|
class: "col-6",
|
|
1063
1071
|
label: "Maximum price",
|
|
1064
1072
|
id: "price-max",
|
|
@@ -1069,9 +1077,9 @@ function Mt(t, a, e, i, o, s) {
|
|
|
1069
1077
|
])
|
|
1070
1078
|
]),
|
|
1071
1079
|
c("fieldset", St, [
|
|
1072
|
-
|
|
1073
|
-
c("div",
|
|
1074
|
-
|
|
1080
|
+
Et,
|
|
1081
|
+
c("div", qt, [
|
|
1082
|
+
x(n, {
|
|
1075
1083
|
class: "col-6",
|
|
1076
1084
|
label: "Minimum beds",
|
|
1077
1085
|
id: "beds-min",
|
|
@@ -1079,7 +1087,7 @@ function Mt(t, a, e, i, o, s) {
|
|
|
1079
1087
|
type: "select",
|
|
1080
1088
|
options: e.bedsmin
|
|
1081
1089
|
}, null, 8, ["options"]),
|
|
1082
|
-
|
|
1090
|
+
x(n, {
|
|
1083
1091
|
class: "col-6",
|
|
1084
1092
|
label: "Maximum beds",
|
|
1085
1093
|
id: "beds-max",
|
|
@@ -1090,7 +1098,7 @@ function Mt(t, a, e, i, o, s) {
|
|
|
1090
1098
|
])
|
|
1091
1099
|
]),
|
|
1092
1100
|
c("fieldset", Tt, [
|
|
1093
|
-
|
|
1101
|
+
x(n, {
|
|
1094
1102
|
label: "Property type",
|
|
1095
1103
|
id: "property-type",
|
|
1096
1104
|
type: "select",
|
|
@@ -1103,12 +1111,12 @@ function Mt(t, a, e, i, o, s) {
|
|
|
1103
1111
|
f(t.$slots, "after")
|
|
1104
1112
|
], 512);
|
|
1105
1113
|
}
|
|
1106
|
-
const Qa = /* @__PURE__ */
|
|
1114
|
+
const Qa = /* @__PURE__ */ h(vt, [["render", Mt]]), Ct = {
|
|
1107
1115
|
components: {},
|
|
1108
1116
|
name: "Nav",
|
|
1109
1117
|
mounted() {
|
|
1110
1118
|
this.$nextTick(function() {
|
|
1111
|
-
import("./nav.component.min-
|
|
1119
|
+
import("./nav.component.min-3448e6b7.mjs").then((t) => {
|
|
1112
1120
|
window.customElements.get("iam-nav") || window.customElements.define("iam-nav", t.default);
|
|
1113
1121
|
}).catch((t) => {
|
|
1114
1122
|
console.log(t.message);
|
|
@@ -1116,13 +1124,13 @@ const Qa = /* @__PURE__ */ p(vt, [["render", Mt]]), Ct = {
|
|
|
1116
1124
|
});
|
|
1117
1125
|
},
|
|
1118
1126
|
methods: {}
|
|
1119
|
-
},
|
|
1120
|
-
function
|
|
1121
|
-
return r(), l("iam-nav",
|
|
1127
|
+
}, Nt = { ref: "wrapper" };
|
|
1128
|
+
function jt(t, a, e, o, i, s) {
|
|
1129
|
+
return r(), l("iam-nav", Nt, [
|
|
1122
1130
|
f(t.$slots, "default")
|
|
1123
1131
|
], 512);
|
|
1124
1132
|
}
|
|
1125
|
-
const Ya = /* @__PURE__ */
|
|
1133
|
+
const Ya = /* @__PURE__ */ h(Ct, [["render", jt]]);
|
|
1126
1134
|
const Rt = {
|
|
1127
1135
|
name: "Stepper",
|
|
1128
1136
|
props: {
|
|
@@ -1136,25 +1144,25 @@ const Rt = {
|
|
|
1136
1144
|
default: "Complete"
|
|
1137
1145
|
}
|
|
1138
1146
|
}
|
|
1139
|
-
}, Pt = { class: "container" },
|
|
1147
|
+
}, Pt = { class: "container" }, Ft = ["aria-label"], zt = {
|
|
1140
1148
|
key: 0,
|
|
1141
1149
|
class: "h6 stepper__start"
|
|
1142
|
-
},
|
|
1143
|
-
function Vt(t, a, e,
|
|
1150
|
+
}, It = { class: "list-unstyled" }, Dt = { class: "h6 stepper__end" };
|
|
1151
|
+
function Vt(t, a, e, o, i, s) {
|
|
1144
1152
|
return r(), l("div", Pt, [
|
|
1145
1153
|
c("nav", {
|
|
1146
1154
|
class: "stepper",
|
|
1147
1155
|
"aria-label": e.label ? e.label : "Progress"
|
|
1148
1156
|
}, [
|
|
1149
|
-
e.label ? (r(), l("span",
|
|
1150
|
-
c("ol",
|
|
1157
|
+
e.label ? (r(), l("span", zt, $(e.label), 1)) : b("", !0),
|
|
1158
|
+
c("ol", It, [
|
|
1151
1159
|
f(t.$slots, "default")
|
|
1152
1160
|
]),
|
|
1153
|
-
c("span",
|
|
1154
|
-
], 8,
|
|
1161
|
+
c("span", Dt, $(e.endlabel), 1)
|
|
1162
|
+
], 8, Ft)
|
|
1155
1163
|
]);
|
|
1156
1164
|
}
|
|
1157
|
-
const Ja = /* @__PURE__ */
|
|
1165
|
+
const Ja = /* @__PURE__ */ h(Rt, [["render", Vt]]);
|
|
1158
1166
|
const Bt = {
|
|
1159
1167
|
name: "Snapshot",
|
|
1160
1168
|
props: {
|
|
@@ -1167,29 +1175,29 @@ const Bt = {
|
|
|
1167
1175
|
class: "container snapshot",
|
|
1168
1176
|
ref: "wrapper"
|
|
1169
1177
|
}, Ut = { class: "row" }, Wt = ["href"], Kt = { class: "lead snapshot__title" }, Gt = { class: "stat" };
|
|
1170
|
-
function Qt(t, a, e,
|
|
1178
|
+
function Qt(t, a, e, o, i, s) {
|
|
1171
1179
|
return r(), l("div", Ot, [
|
|
1172
1180
|
f(t.$slots, "default"),
|
|
1173
1181
|
c("div", Ut, [
|
|
1174
|
-
(r(!0), l(
|
|
1182
|
+
(r(!0), l(E, null, q(e.items, (n, d) => (r(), l("div", {
|
|
1175
1183
|
class: "col",
|
|
1176
1184
|
key: d
|
|
1177
1185
|
}, [
|
|
1178
1186
|
n.link ? (r(), l("a", {
|
|
1179
1187
|
key: 0,
|
|
1180
1188
|
href: n.link
|
|
1181
|
-
}, "View " +
|
|
1189
|
+
}, "View " + $(n.title), 9, Wt)) : b("", !0),
|
|
1182
1190
|
c("div", {
|
|
1183
|
-
class:
|
|
1191
|
+
class: w(`snapshot__item ${n.bg ? "bg-" + n.bg : ""}`)
|
|
1184
1192
|
}, [
|
|
1185
|
-
c("span", Kt,
|
|
1186
|
-
c("span", Gt,
|
|
1193
|
+
c("span", Kt, $(n.title), 1),
|
|
1194
|
+
c("span", Gt, $(n.number), 1)
|
|
1187
1195
|
], 2)
|
|
1188
1196
|
]))), 128))
|
|
1189
1197
|
])
|
|
1190
1198
|
], 512);
|
|
1191
1199
|
}
|
|
1192
|
-
const Xa = /* @__PURE__ */
|
|
1200
|
+
const Xa = /* @__PURE__ */ h(Bt, [["render", Qt]]), Yt = {
|
|
1193
1201
|
name: "Stepper",
|
|
1194
1202
|
props: {
|
|
1195
1203
|
url: {
|
|
@@ -1209,26 +1217,26 @@ const Xa = /* @__PURE__ */ p(Bt, [["render", Qt]]), Yt = {
|
|
|
1209
1217
|
key: 0,
|
|
1210
1218
|
class: "visually-hidden"
|
|
1211
1219
|
};
|
|
1212
|
-
function Zt(t, a, e,
|
|
1220
|
+
function Zt(t, a, e, o, i, s) {
|
|
1213
1221
|
return r(), l("li", null, [
|
|
1214
1222
|
c("a", {
|
|
1215
1223
|
href: e.url,
|
|
1216
|
-
class:
|
|
1224
|
+
class: w(`${e.status ? "bg-" + e.status : ""}${typeof e.current < "u" ? "current" : ""}`),
|
|
1217
1225
|
"aria-current": typeof e.current < "u" ? "step" : !1
|
|
1218
1226
|
}, [
|
|
1219
1227
|
c("span", null, [
|
|
1220
1228
|
f(t.$slots, "default")
|
|
1221
1229
|
]),
|
|
1222
|
-
e.status ? (r(), l("em", Xt, " - status: " +
|
|
1230
|
+
e.status ? (r(), l("em", Xt, " - status: " + $(e.status), 1)) : b("", !0)
|
|
1223
1231
|
], 10, Jt)
|
|
1224
1232
|
]);
|
|
1225
1233
|
}
|
|
1226
|
-
const Za = /* @__PURE__ */
|
|
1234
|
+
const Za = /* @__PURE__ */ h(Yt, [["render", Zt]]);
|
|
1227
1235
|
const ea = {
|
|
1228
1236
|
name: "Tabs",
|
|
1229
1237
|
mounted() {
|
|
1230
1238
|
this.$nextTick(function() {
|
|
1231
|
-
|
|
1239
|
+
N(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/tabs/tabs.component.js": () => import("./tabs.component-1dfbdb3b.mjs"), "../../../assets/js/components/tabs/tabs.component.min.js": () => import("./tabs.component.min-df805e37.mjs") }), "../../../assets/js/components/tabs/tabs.component.js").then((t) => {
|
|
1232
1240
|
window.customElements.get("iam-tabs") || window.customElements.define("iam-tabs", t.default);
|
|
1233
1241
|
}).catch((t) => {
|
|
1234
1242
|
console.log(t.message);
|
|
@@ -1236,12 +1244,12 @@ const ea = {
|
|
|
1236
1244
|
});
|
|
1237
1245
|
}
|
|
1238
1246
|
}, ta = { ref: "wrapper" };
|
|
1239
|
-
function aa(t, a, e,
|
|
1247
|
+
function aa(t, a, e, o, i, s) {
|
|
1240
1248
|
return r(), l("iam-tabs", ta, [
|
|
1241
1249
|
f(t.$slots, "default")
|
|
1242
1250
|
], 512);
|
|
1243
1251
|
}
|
|
1244
|
-
const
|
|
1252
|
+
const es = /* @__PURE__ */ h(ea, [["render", aa]]), sa = {
|
|
1245
1253
|
name: "Tab",
|
|
1246
1254
|
props: {
|
|
1247
1255
|
title: {
|
|
@@ -1263,23 +1271,23 @@ const ei = /* @__PURE__ */ p(ea, [["render", aa]]), ia = {
|
|
|
1263
1271
|
isDisabled: !!this.disabled
|
|
1264
1272
|
};
|
|
1265
1273
|
}
|
|
1266
|
-
},
|
|
1267
|
-
function oa(t, a, e,
|
|
1268
|
-
return r(), l("details",
|
|
1274
|
+
}, ia = { class: "tab" }, na = ["innerHTML"];
|
|
1275
|
+
function oa(t, a, e, o, i, s) {
|
|
1276
|
+
return r(), l("details", ia, [
|
|
1269
1277
|
c("summary", {
|
|
1270
1278
|
innerHTML: e.title,
|
|
1271
|
-
class:
|
|
1272
|
-
}, null, 10,
|
|
1279
|
+
class: w({ disabled: i.isDisabled })
|
|
1280
|
+
}, null, 10, na),
|
|
1273
1281
|
f(t.$slots, "default")
|
|
1274
1282
|
]);
|
|
1275
1283
|
}
|
|
1276
|
-
const
|
|
1277
|
-
let
|
|
1278
|
-
|
|
1284
|
+
const ts = /* @__PURE__ */ h(sa, [["render", oa]]);
|
|
1285
|
+
let F = R.props;
|
|
1286
|
+
F.fields.required = !1;
|
|
1279
1287
|
const ra = {
|
|
1280
1288
|
components: {
|
|
1281
|
-
Table:
|
|
1282
|
-
Input:
|
|
1289
|
+
Table: R,
|
|
1290
|
+
Input: P
|
|
1283
1291
|
},
|
|
1284
1292
|
data() {
|
|
1285
1293
|
return {
|
|
@@ -1292,9 +1300,9 @@ const ra = {
|
|
|
1292
1300
|
console.log(this);
|
|
1293
1301
|
const a = new FormData(t.target);
|
|
1294
1302
|
let e = /* @__PURE__ */ new Date();
|
|
1295
|
-
const
|
|
1296
|
-
let
|
|
1297
|
-
s < 10 && (s = "0" + s),
|
|
1303
|
+
const o = e.getFullYear();
|
|
1304
|
+
let i = e.getMonth() + 1, s = e.getDate();
|
|
1305
|
+
s < 10 && (s = "0" + s), i < 10 && (i = "0" + i), e = s + "/" + i + "/" + o, this.itemsData.unshift({
|
|
1298
1306
|
date_added: e,
|
|
1299
1307
|
user: a.get("user"),
|
|
1300
1308
|
note: a.get("addNote")
|
|
@@ -1307,7 +1315,7 @@ const ra = {
|
|
|
1307
1315
|
type: String,
|
|
1308
1316
|
required: !0
|
|
1309
1317
|
},
|
|
1310
|
-
...
|
|
1318
|
+
...F,
|
|
1311
1319
|
title: {
|
|
1312
1320
|
type: String,
|
|
1313
1321
|
required: !1
|
|
@@ -1323,17 +1331,17 @@ const ra = {
|
|
|
1323
1331
|
}
|
|
1324
1332
|
}
|
|
1325
1333
|
}, la = { class: "container note-feed mb-2" }, da = ["innerHTML"], ca = ["action", "method"], ua = ["value"], ma = /* @__PURE__ */ c("button", { class: "btn btn-tertiary" }, "Submit note", -1);
|
|
1326
|
-
function pa(t, a, e,
|
|
1327
|
-
const n =
|
|
1334
|
+
function pa(t, a, e, o, i, s) {
|
|
1335
|
+
const n = M("Table"), d = M("Input");
|
|
1328
1336
|
return r(), l("div", la, [
|
|
1329
1337
|
e.title ? (r(), l("span", {
|
|
1330
1338
|
key: 0,
|
|
1331
1339
|
class: "h3",
|
|
1332
1340
|
innerHTML: e.title
|
|
1333
1341
|
}, null, 8, da)) : b("", !0),
|
|
1334
|
-
|
|
1342
|
+
x(n, S({
|
|
1335
1343
|
fields: [{ key: "date_added" }, { key: "user" }, { key: "note" }],
|
|
1336
|
-
items:
|
|
1344
|
+
items: i.itemsData
|
|
1337
1345
|
}, t.$props, { class: "mb-0" }), null, 16, ["items"]),
|
|
1338
1346
|
c("form", {
|
|
1339
1347
|
action: e.action,
|
|
@@ -1345,7 +1353,7 @@ function pa(t, a, e, i, o, s) {
|
|
|
1345
1353
|
value: e.user,
|
|
1346
1354
|
name: "user"
|
|
1347
1355
|
}, null, 8, ua),
|
|
1348
|
-
|
|
1356
|
+
x(d, {
|
|
1349
1357
|
id: "addNote",
|
|
1350
1358
|
type: "textarea",
|
|
1351
1359
|
label: "Add note",
|
|
@@ -1356,88 +1364,99 @@ function pa(t, a, e, i, o, s) {
|
|
|
1356
1364
|
], 40, ca)
|
|
1357
1365
|
]);
|
|
1358
1366
|
}
|
|
1359
|
-
const
|
|
1360
|
-
/*!
|
|
1361
|
-
* iamKey v5.5.1-beta-1
|
|
1362
|
-
* Copyright 2022-2024 iamproperty
|
|
1363
|
-
*/
|
|
1367
|
+
const as = /* @__PURE__ */ h(ra, [["render", pa]]);
|
|
1364
1368
|
function ha(t, a) {
|
|
1365
|
-
function e(i,
|
|
1366
|
-
let
|
|
1367
|
-
|
|
1368
|
-
let
|
|
1369
|
-
|
|
1370
|
-
let
|
|
1371
|
-
if (
|
|
1372
|
-
let
|
|
1373
|
-
if (
|
|
1374
|
-
let
|
|
1375
|
-
if (
|
|
1376
|
-
let
|
|
1377
|
-
|
|
1369
|
+
function e(i, s, n = !0) {
|
|
1370
|
+
let d = !1, u = s.getAttribute("name");
|
|
1371
|
+
u.includes("[]") && (u = u.replace("[]", `[${s.value}]`));
|
|
1372
|
+
let m = i.querySelector(`[data-name="${u}"]`);
|
|
1373
|
+
m && s.getAttribute("type") == "checkbox" && (d = !s.checked);
|
|
1374
|
+
let y = s.getAttribute("data-filter-text");
|
|
1375
|
+
if (m || (m = document.createElement("button"), i.appendChild(m)), m.setAttribute("type", "button"), m.classList.add("filter"), m.classList.add("tag"), n && m.classList.add("tag--not-set"), m.setAttribute("data-name", u), m.innerHTML = y.replace("$value", s.value), (!s.value || d) && m.remove(), s.parentNode.closest("[data-filter-text]")) {
|
|
1376
|
+
let p = s.parentNode.closest("[data-filter-text]"), g = !0;
|
|
1377
|
+
if (u = "", p.querySelectorAll("input").forEach((v, _) => {
|
|
1378
|
+
let k = v.getAttribute("name");
|
|
1379
|
+
if (u += `${_ != 0 ? "," : ""}${k}`, i.querySelector(`[data-name="${k}"]`) && i.querySelector(`[data-name="${k}"]`).remove(), v.value) {
|
|
1380
|
+
let A = document.createElement("button");
|
|
1381
|
+
A.setAttribute("type", "button"), A.classList.add("filter"), A.classList.add("tag"), n && m.classList.add("tag--not-set"), A.setAttribute("data-name", k), A.innerHTML = y.replace("$value", v.value), i.appendChild(A);
|
|
1378
1382
|
} else
|
|
1379
1383
|
g = !1;
|
|
1380
|
-
}), i.querySelector(`[data-name="${
|
|
1381
|
-
let
|
|
1382
|
-
|
|
1383
|
-
let
|
|
1384
|
-
i.querySelector(`[data-name="${
|
|
1384
|
+
}), i.querySelector(`[data-name="${u}"]`) && i.querySelector(`[data-name="${u}"]`).remove(), g) {
|
|
1385
|
+
let v = p.getAttribute("data-filter-text");
|
|
1386
|
+
p.querySelectorAll("input").forEach((k, A) => {
|
|
1387
|
+
let L = k.getAttribute("name");
|
|
1388
|
+
i.querySelector(`[data-name="${L}"]`) && i.querySelector(`[data-name="${L}"]`).remove(), v = v.replace(`$${A + 1}`, k.value);
|
|
1385
1389
|
});
|
|
1386
|
-
let
|
|
1387
|
-
|
|
1390
|
+
let _ = document.createElement("button");
|
|
1391
|
+
_.setAttribute("type", "button"), _.classList.add("filter"), _.classList.add("tag"), n && m.classList.add("tag--not-set"), _.setAttribute("data-name", u), _.innerHTML = v, i.appendChild(_);
|
|
1388
1392
|
}
|
|
1389
1393
|
}
|
|
1390
1394
|
}
|
|
1391
|
-
Array.from(t.querySelectorAll('input[type="checkbox"]:checked')).forEach((i,
|
|
1392
|
-
e(a, i);
|
|
1393
|
-
})
|
|
1394
|
-
|
|
1395
|
-
|
|
1395
|
+
Array.from(t.querySelectorAll('input[type="checkbox"]:checked, input:not([type="checkbox"]):not([type="radio"])')).forEach((i, s) => {
|
|
1396
|
+
e(a, i, !1);
|
|
1397
|
+
});
|
|
1398
|
+
let o = t.closest("dialog");
|
|
1399
|
+
o && new MutationObserver(function(s) {
|
|
1400
|
+
s[0].attributeName == "open" && Array.from(t.querySelectorAll('input[type="checkbox"]:checked, input:not([type="checkbox"]):not([type="radio"])')).forEach((n, d) => {
|
|
1401
|
+
e(a, n, !1);
|
|
1402
|
+
});
|
|
1403
|
+
}).observe(o, { attributes: !0 }), t.addEventListener("tags-set", function(i) {
|
|
1404
|
+
a.innerHTML = "", Array.from(t.querySelectorAll('input[type="checkbox"]:checked, input:not([type="checkbox"]):not([type="radio"])')).forEach((s, n) => {
|
|
1405
|
+
e(a, s, !1);
|
|
1406
|
+
});
|
|
1407
|
+
}), Array.from(t.querySelectorAll('input[type="checkbox"]:checked, input:not([type="checkbox"]):not([type="radio"])')).forEach((i, s) => {
|
|
1408
|
+
i.addEventListener("change", function(n) {
|
|
1409
|
+
t.hasAttribute("data-keep-same") || e(a, i), n.stopPropagation();
|
|
1396
1410
|
});
|
|
1397
1411
|
}), t.addEventListener("change", function(i) {
|
|
1398
1412
|
if (i && i.target instanceof HTMLElement && i.target.closest("input[data-filter-text]")) {
|
|
1399
|
-
let
|
|
1400
|
-
e(a,
|
|
1413
|
+
let s = i.target.closest("input[data-filter-text]");
|
|
1414
|
+
t.hasAttribute("data-keep-same") || e(a, s);
|
|
1401
1415
|
}
|
|
1402
1416
|
}), a.addEventListener("click", function(i) {
|
|
1403
1417
|
if (i && i.target instanceof HTMLElement && i.target.closest(".filter")) {
|
|
1404
|
-
let
|
|
1405
|
-
for (var
|
|
1406
|
-
let
|
|
1407
|
-
|
|
1408
|
-
let
|
|
1409
|
-
for (var
|
|
1410
|
-
let
|
|
1411
|
-
if (
|
|
1412
|
-
|
|
1413
|
-
else {
|
|
1414
|
-
m.checked = !1;
|
|
1418
|
+
let d = i.target.closest(".filter"), u = d.getAttribute("data-name").split(",");
|
|
1419
|
+
for (var s = 0; s < u.length; s++) {
|
|
1420
|
+
let m = u[s], y = `[name="${m}"]`;
|
|
1421
|
+
m.match(/\[(.*)\]/) && (m.replace(/\[(.*)\]/, "[]"), y = `[value="${m.replace(/.*\[(.*)\]/, "$1")}"]`);
|
|
1422
|
+
let p = t.querySelectorAll(y);
|
|
1423
|
+
for (var n = 0; n < p.length; n++) {
|
|
1424
|
+
let g = p[n];
|
|
1425
|
+
if (g.getAttribute("type") != "radio" && g.getAttribute("type") != "checkbox") {
|
|
1426
|
+
g.value = "";
|
|
1415
1427
|
var i = new Event("force");
|
|
1416
|
-
t.hasAttribute("data-nosubmit") ||
|
|
1428
|
+
t.hasAttribute("data-nosubmit") || g.closest("form").dispatchEvent(i);
|
|
1429
|
+
} else {
|
|
1430
|
+
g.checked = !1;
|
|
1431
|
+
var i = new Event("force");
|
|
1432
|
+
t.hasAttribute("data-nosubmit") || g.closest("form").dispatchEvent(i);
|
|
1417
1433
|
}
|
|
1418
1434
|
}
|
|
1419
1435
|
}
|
|
1420
|
-
|
|
1436
|
+
d.remove();
|
|
1421
1437
|
}
|
|
1422
1438
|
}, !1);
|
|
1423
1439
|
}
|
|
1424
|
-
window.dataLayer = window.dataLayer || []
|
|
1440
|
+
window.dataLayer = window.dataLayer || [];
|
|
1441
|
+
window.dataLayer.push({
|
|
1442
|
+
event: "customElementRegistered",
|
|
1443
|
+
element: "Applied Filters"
|
|
1444
|
+
});
|
|
1425
1445
|
class fa extends HTMLElement {
|
|
1426
1446
|
constructor() {
|
|
1427
1447
|
super(), this.attachShadow({ mode: "open" });
|
|
1428
|
-
const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", e = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css
|
|
1448
|
+
const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", e = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, o = `@import "${a}/css/components/applied-filters.css";`;
|
|
1429
1449
|
let i = this.classList.toString();
|
|
1430
|
-
const
|
|
1431
|
-
|
|
1450
|
+
const s = document.createElement("template");
|
|
1451
|
+
s.innerHTML = `
|
|
1432
1452
|
<style>
|
|
1433
1453
|
@import "${e}";
|
|
1434
|
-
|
|
1435
|
-
|
|
1454
|
+
${o}
|
|
1436
1455
|
${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
|
|
1437
1456
|
</style>
|
|
1438
1457
|
<div class="applied-filters ${i}"></div>
|
|
1439
1458
|
<slot></slot>
|
|
1440
|
-
`, this.shadowRoot.appendChild(
|
|
1459
|
+
`, this.shadowRoot.appendChild(s.content.cloneNode(!0));
|
|
1441
1460
|
}
|
|
1442
1461
|
connectedCallback() {
|
|
1443
1462
|
ha(this, this.shadowRoot.querySelector(".applied-filters"));
|
|
@@ -1447,14 +1466,14 @@ window.customElements.get("iam-applied-filters") || window.customElements.define
|
|
|
1447
1466
|
const ba = {
|
|
1448
1467
|
name: "Header"
|
|
1449
1468
|
};
|
|
1450
|
-
function ga(t, a, e,
|
|
1469
|
+
function ga(t, a, e, o, i, s) {
|
|
1451
1470
|
return r(), l("iam-applied-filters", null, [
|
|
1452
1471
|
f(t.$slots, "default")
|
|
1453
1472
|
]);
|
|
1454
1473
|
}
|
|
1455
|
-
const
|
|
1474
|
+
const ss = /* @__PURE__ */ h(ba, [["render", ga]]);
|
|
1456
1475
|
/*!
|
|
1457
|
-
* iamKey v5.5.1-beta-
|
|
1476
|
+
* iamKey v5.5.1-beta-2
|
|
1458
1477
|
* Copyright 2022-2024 iamproperty
|
|
1459
1478
|
*/
|
|
1460
1479
|
function ya(t, a) {
|
|
@@ -1462,26 +1481,26 @@ function ya(t, a) {
|
|
|
1462
1481
|
}
|
|
1463
1482
|
function va(t, a) {
|
|
1464
1483
|
var e;
|
|
1465
|
-
a.addEventListener("keyup", (
|
|
1484
|
+
a.addEventListener("keyup", (o) => {
|
|
1466
1485
|
clearTimeout(e), e = setTimeout(function() {
|
|
1467
1486
|
j(t, a.value);
|
|
1468
1487
|
}, 500);
|
|
1469
|
-
}), a.addEventListener("change", (
|
|
1488
|
+
}), a.addEventListener("change", (o) => {
|
|
1470
1489
|
clearTimeout(e), j(t, a.value);
|
|
1471
1490
|
});
|
|
1472
1491
|
}
|
|
1473
1492
|
const j = function(t, a) {
|
|
1474
|
-
Array.from(t.querySelectorAll(":scope > li")).forEach((e,
|
|
1475
|
-
let
|
|
1476
|
-
e.classList.add("d-none"),
|
|
1493
|
+
Array.from(t.querySelectorAll(":scope > li")).forEach((e, o) => {
|
|
1494
|
+
let i = e.textContent.toLowerCase();
|
|
1495
|
+
e.classList.add("d-none"), i.includes(a.toLowerCase()) && e.classList.remove("d-none");
|
|
1477
1496
|
}), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "Filtered list", value: a });
|
|
1478
1497
|
};
|
|
1479
1498
|
window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "filterlist" });
|
|
1480
1499
|
class _a extends HTMLElement {
|
|
1481
1500
|
constructor() {
|
|
1482
1501
|
super(), this.attachShadow({ mode: "open" });
|
|
1483
|
-
const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", e = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`,
|
|
1484
|
-
|
|
1502
|
+
const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", e = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, o = document.createElement("template");
|
|
1503
|
+
o.innerHTML = `
|
|
1485
1504
|
<style>
|
|
1486
1505
|
@import "${e}";
|
|
1487
1506
|
${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
|
|
@@ -1508,7 +1527,7 @@ class _a extends HTMLElement {
|
|
|
1508
1527
|
<div class="list__wrapper">
|
|
1509
1528
|
<slot></slot>
|
|
1510
1529
|
</div>
|
|
1511
|
-
`, this.shadowRoot.appendChild(
|
|
1530
|
+
`, this.shadowRoot.appendChild(o.content.cloneNode(!0));
|
|
1512
1531
|
}
|
|
1513
1532
|
connectedCallback() {
|
|
1514
1533
|
let a = this.classList.toString();
|
|
@@ -1519,40 +1538,40 @@ window.customElements.get("iam-filterlist") || window.customElements.define("iam
|
|
|
1519
1538
|
const wa = {
|
|
1520
1539
|
name: "Filter list"
|
|
1521
1540
|
};
|
|
1522
|
-
function $a(t, a, e,
|
|
1541
|
+
function $a(t, a, e, o, i, s) {
|
|
1523
1542
|
return r(), l("iam-filterlist", null, [
|
|
1524
1543
|
f(t.$slots, "default")
|
|
1525
1544
|
]);
|
|
1526
1545
|
}
|
|
1527
|
-
const
|
|
1546
|
+
const is = /* @__PURE__ */ h(wa, [["render", $a]]);
|
|
1528
1547
|
function ka(t) {
|
|
1529
1548
|
if (t.hasAttribute("data-type") && t.getAttribute("data-type") == "toast") {
|
|
1530
1549
|
let e = document.querySelector(".notification__holder");
|
|
1531
1550
|
e || (e = document.createElement("div"), e.classList.add("notification__holder"), e.classList.add("container"), document.querySelector("body").appendChild(e)), t.closest(".notification__holder") || e.appendChild(t);
|
|
1532
1551
|
}
|
|
1533
1552
|
if (t.setAttribute("role", "alert"), t.addEventListener("click", function(e) {
|
|
1534
|
-
event && event.target instanceof HTMLElement && event.target.closest("[data-dismiss-button]") && (e.preventDefault(),
|
|
1553
|
+
event && event.target instanceof HTMLElement && event.target.closest("[data-dismiss-button]") && (e.preventDefault(), C(t));
|
|
1535
1554
|
}, !1), t.hasAttribute("data-timeout")) {
|
|
1536
1555
|
let e = t.getAttribute("data-timeout");
|
|
1537
1556
|
var a = new Aa(function() {
|
|
1538
|
-
|
|
1557
|
+
C(t);
|
|
1539
1558
|
}, e);
|
|
1540
|
-
t.addEventListener("mouseenter", (
|
|
1559
|
+
t.addEventListener("mouseenter", (o) => {
|
|
1541
1560
|
a.pause();
|
|
1542
|
-
}), t.addEventListener("mouseleave", (
|
|
1561
|
+
}), t.addEventListener("mouseleave", (o) => {
|
|
1543
1562
|
a.resume();
|
|
1544
1563
|
});
|
|
1545
1564
|
}
|
|
1546
1565
|
}
|
|
1547
1566
|
function Aa(t, a) {
|
|
1548
|
-
var e,
|
|
1567
|
+
var e, o, i = a;
|
|
1549
1568
|
this.pause = function() {
|
|
1550
|
-
window.clearTimeout(e),
|
|
1569
|
+
window.clearTimeout(e), i -= /* @__PURE__ */ new Date() - o;
|
|
1551
1570
|
}, this.resume = function() {
|
|
1552
|
-
|
|
1571
|
+
o = /* @__PURE__ */ new Date(), window.clearTimeout(e), e = window.setTimeout(t, i);
|
|
1553
1572
|
}, this.resume();
|
|
1554
1573
|
}
|
|
1555
|
-
const
|
|
1574
|
+
const C = function(t) {
|
|
1556
1575
|
t.classList.add("d-none");
|
|
1557
1576
|
};
|
|
1558
1577
|
window.dataLayer = window.dataLayer || [];
|
|
@@ -1563,7 +1582,7 @@ window.dataLayer.push({
|
|
|
1563
1582
|
class xa extends HTMLElement {
|
|
1564
1583
|
constructor() {
|
|
1565
1584
|
super(), this.attachShadow({ mode: "open" });
|
|
1566
|
-
const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", e = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`,
|
|
1585
|
+
const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", e = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, o = `@import "${a}/css/components/notification.css";`, i = `@import "${a}/css/components/notification.global.css";`, s = this.querySelectorAll("a,button");
|
|
1567
1586
|
Array.from(s).forEach((d, u) => {
|
|
1568
1587
|
d.setAttribute("slot", "btns"), d.classList.add("link");
|
|
1569
1588
|
}), (s.length || this.hasAttribute("data-dismiss")) && this.classList.add("notification--dismissable");
|
|
@@ -1571,7 +1590,7 @@ class xa extends HTMLElement {
|
|
|
1571
1590
|
n.innerHTML = `
|
|
1572
1591
|
<style>
|
|
1573
1592
|
@import "${e}";
|
|
1574
|
-
${
|
|
1593
|
+
${o}
|
|
1575
1594
|
${this.hasAttribute("data-css") ? `${this.getAttribute("data-css")}` : ""}
|
|
1576
1595
|
</style>
|
|
1577
1596
|
|
|
@@ -1580,12 +1599,12 @@ class xa extends HTMLElement {
|
|
|
1580
1599
|
<div class="notification__inner"><div class="notification__text"><slot></slot></div>${s.length ? '<div class="notification__btns"><slot name="btns"></slot></div>' : ""}</div>
|
|
1581
1600
|
${this.hasAttribute("data-dismiss") ? '<div class="notification__dismiss"><button data-dismiss-button>Dismiss</button></div>' : ""}
|
|
1582
1601
|
</div>
|
|
1583
|
-
`, this.shadowRoot.appendChild(n.content.cloneNode(!0)), document.getElementById("notificationHolder") || document.head.insertAdjacentHTML("beforeend", `<style id="notificationHolder">${
|
|
1602
|
+
`, this.shadowRoot.appendChild(n.content.cloneNode(!0)), document.getElementById("notificationHolder") || document.head.insertAdjacentHTML("beforeend", `<style id="notificationHolder">${i}</style>`);
|
|
1584
1603
|
}
|
|
1585
1604
|
connectedCallback() {
|
|
1586
1605
|
const a = this.shadowRoot.querySelector("[data-dismiss-button]"), e = this.hasAttribute("data-status") ? this.getAttribute("data-status") : "white";
|
|
1587
1606
|
this.hasAttribute("data-type") ? this.classList.add(`bg-${e}`) : this.classList.add(`colour-${e}`);
|
|
1588
|
-
const
|
|
1607
|
+
const o = this;
|
|
1589
1608
|
if (!this.querySelector("i"))
|
|
1590
1609
|
switch (e) {
|
|
1591
1610
|
case "danger":
|
|
@@ -1600,8 +1619,8 @@ class xa extends HTMLElement {
|
|
|
1600
1619
|
default:
|
|
1601
1620
|
this.innerHTML += '<i class="fa-solid fa-circle-info" aria-hidden="true" slot="icon"></i>';
|
|
1602
1621
|
}
|
|
1603
|
-
ka(
|
|
1604
|
-
|
|
1622
|
+
ka(o), a && a.addEventListener("click", function(i) {
|
|
1623
|
+
C(o);
|
|
1605
1624
|
}, !1);
|
|
1606
1625
|
}
|
|
1607
1626
|
}
|
|
@@ -1614,17 +1633,17 @@ const La = {
|
|
|
1614
1633
|
});
|
|
1615
1634
|
}
|
|
1616
1635
|
};
|
|
1617
|
-
function Sa(t, a, e,
|
|
1636
|
+
function Sa(t, a, e, o, i, s) {
|
|
1618
1637
|
return r(), l("iam-notification", null, [
|
|
1619
1638
|
f(t.$slots, "default")
|
|
1620
1639
|
]);
|
|
1621
1640
|
}
|
|
1622
|
-
const
|
|
1641
|
+
const ns = /* @__PURE__ */ h(La, [["render", Sa]]), Ea = {
|
|
1623
1642
|
name: "Actionbar",
|
|
1624
1643
|
props: {},
|
|
1625
1644
|
mounted() {
|
|
1626
1645
|
this.$nextTick(function() {
|
|
1627
|
-
import("./actionbar.component.min-
|
|
1646
|
+
import("./actionbar.component.min-b204f76f.mjs").then((t) => {
|
|
1628
1647
|
window.customElements.get("iam-actionbar") || window.customElements.define("iam-actionbar", t.default);
|
|
1629
1648
|
}).catch((t) => {
|
|
1630
1649
|
console.log(t.message);
|
|
@@ -1632,21 +1651,21 @@ const si = /* @__PURE__ */ p(La, [["render", Sa]]), qa = {
|
|
|
1632
1651
|
});
|
|
1633
1652
|
}
|
|
1634
1653
|
};
|
|
1635
|
-
function
|
|
1654
|
+
function qa(t, a, e, o, i, s) {
|
|
1636
1655
|
return r(), l("iam-actionbar", null, [
|
|
1637
1656
|
f(t.$slots, "default")
|
|
1638
1657
|
]);
|
|
1639
1658
|
}
|
|
1640
|
-
const
|
|
1659
|
+
const os = /* @__PURE__ */ h(Ea, [["render", qa]]);
|
|
1641
1660
|
/*!
|
|
1642
|
-
* iamKey v5.5.1-beta-
|
|
1661
|
+
* iamKey v5.5.1-beta-2
|
|
1643
1662
|
* Copyright 2022-2024 iamproperty
|
|
1644
1663
|
*/
|
|
1645
1664
|
class z extends HTMLElement {
|
|
1646
1665
|
constructor() {
|
|
1647
1666
|
super(), this.attachShadow({ mode: "open" });
|
|
1648
|
-
const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", e = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`,
|
|
1649
|
-
|
|
1667
|
+
const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", e = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, o = document.createElement("template");
|
|
1668
|
+
o.innerHTML = `
|
|
1650
1669
|
<style>
|
|
1651
1670
|
@import "${e}";
|
|
1652
1671
|
:host{container-type:inline-size;display:block}.pagination{display:block}@container (width > 23.4375em){.pagination{display:flex;align-items:center;justify-content:space-between !important;padding-top:2rem}}.pagination>div{display:flex;align-items:center}.pagination div:is(.page-jump,.per-page){border:1px solid var(--colour-light);height:3.25rem;display:none;align-items:center;padding-inline:1rem}.pagination div:is(.page-jump,.per-page) .select--minimal{height:3.25rem;line-height:3.25rem;margin-left:-1rem;padding-left:1rem;font-weight:bold}.pagination div:is(.page-jump,.per-page) div:has(>select){margin-bottom:0}.page-jump{border-right:none !important}.total-pages{white-space:nowrap}:host([data-page-jump][data-minimal]) .page-jump{display:flex !important}@container (width > 23.4375em){:host([data-page-jump]) .page-jump{display:flex !important}}@container (width > 23.4375em){:host([data-per-page]:not([data-page-jump][data-item-count])) .per-page{display:flex !important}}@container (width > 48em){:host([data-per-page][data-page-jump][data-item-count]) .per-page{display:flex !important}}.pagination>.item-count{display:block;text-align:center;margin-bottom:1rem;margin-inline:auto}@container (width > 23.4375em){.pagination>.item-count{display:none}:host([data-item-count]) .pagination>.item-count{display:flex !important;margin:0}}*:where(.prev,.next){border:1px solid var(--colour-light);line-height:3.25rem;height:3.25rem;margin:0;display:none;background:none;padding-inline:1rem}@container (width > 23.4375em){*:where(.prev,.next){display:inline-block}}*:where(.prev,.next):after{margin-left:.5em;font-size:.8rem;content:"";font-family:"Font Awesome 6 Pro";color:var(--colour-info)}*:where(.prev,.next):is(:hover,:focus):not(:disabled){background-color:var(--colour-light)}*:where(.prev,.next):is(:active):not(:disabled){background-color:#e0e0e0}@media screen and (prefers-color-scheme: dark){*:where(.prev,.next):is(:hover,:focus):not(:disabled){background-color:var(--colour-canvas)}*:where(.prev,.next):is(:active):not(:disabled){background-color:var(--colour-canvas)}}*:where(.prev,.next):disabled:after,*:where(.prev,.next):disabled:before{color:inherit !important}:host([data-minimal]) .pagination{justify-content:flex-end}@container (width > 23.4375em){:host([data-minimal]) .pagination{justify-content:space-between}}:host([data-minimal]) *:where(.prev,.next){display:inline-block !important}.prev{border-right:none}.prev:after{display:none}.prev:before{margin-right:.5em;font-size:.8rem;content:"";font-family:"Font Awesome 6 Pro";color:var(--colour-info)}.mobile-controls{display:block}:host([data-minimal]) .pagination{padding-top:1.5rem;display:flex;align-items:center;justify-content:flex-end}:host([data-minimal]) *:is(.mobile-controls,.item-count){display:none}@container (width > 23.4375em){.mobile-controls{display:none !important}:host([data-item-count]) .item-count{display:flex !important}}.fa-spin{display:none !important;font-size:3rem;color:var(--colour-info)}:host([data-loading]) .mobile-controls{padding-top:2rem}:host([data-loading]) .item-count,:host([data-loading]) .mobile-controls>*:not(.fa-spin){display:none !important}:host([data-loading]) .fa-spin{display:block !important;margin:auto}/*# sourceMappingURL=assets/css/components/pagination.css.map */
|
|
@@ -1684,17 +1703,17 @@ class z extends HTMLElement {
|
|
|
1684
1703
|
<button class="load-more btn btn-primary m-auto">Load more</a>
|
|
1685
1704
|
</div>
|
|
1686
1705
|
</div>
|
|
1687
|
-
`, this.shadowRoot.appendChild(
|
|
1706
|
+
`, this.shadowRoot.appendChild(o.content.cloneNode(!0));
|
|
1688
1707
|
}
|
|
1689
1708
|
connectedCallback() {
|
|
1690
1709
|
const a = new URLSearchParams(window.location.search);
|
|
1691
1710
|
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"));
|
|
1692
|
-
const e = this.shadowRoot.querySelector(".page-jump select"),
|
|
1711
|
+
const e = this.shadowRoot.querySelector(".page-jump select"), o = this.shadowRoot.querySelector(".prev"), i = this.shadowRoot.querySelector(".next"), s = this.shadowRoot.querySelector(".per-page select"), n = this.shadowRoot.querySelector(".load-more");
|
|
1693
1712
|
this.setup(), e.addEventListener("change", (d) => {
|
|
1694
1713
|
this.setAttribute("data-show", this.getAttribute("data-increment")), this.setAttribute("data-page", d.target.value);
|
|
1695
|
-
}), o.addEventListener("click", (d) => {
|
|
1696
|
-
e.value = parseInt(e.value) + 1, e.dispatchEvent(new Event("change"));
|
|
1697
1714
|
}), i.addEventListener("click", (d) => {
|
|
1715
|
+
e.value = parseInt(e.value) + 1, e.dispatchEvent(new Event("change"));
|
|
1716
|
+
}), o.addEventListener("click", (d) => {
|
|
1698
1717
|
e.value = parseInt(e.value) - 1, e.dispatchEvent(new Event("change"));
|
|
1699
1718
|
}), s.addEventListener("change", (d) => {
|
|
1700
1719
|
this.setAttribute("data-increment", d.target.value);
|
|
@@ -1704,39 +1723,39 @@ class z extends HTMLElement {
|
|
|
1704
1723
|
});
|
|
1705
1724
|
}
|
|
1706
1725
|
setup() {
|
|
1707
|
-
const a = this.shadowRoot.querySelector(".pagination"), e = this.shadowRoot.querySelector(".page-jump select"),
|
|
1708
|
-
|
|
1726
|
+
const a = this.shadowRoot.querySelector(".pagination"), e = this.shadowRoot.querySelector(".page-jump select"), o = this.shadowRoot.querySelector(".prev"), i = this.shadowRoot.querySelector(".next"), s = this.shadowRoot.querySelector(".item-count"), n = this.shadowRoot.querySelector(".per-page select"), d = this.shadowRoot.querySelector(".total-pages"), u = parseInt(this.getAttribute("data-page")), m = parseInt(this.getAttribute("data-total")), y = parseInt(this.getAttribute("data-show")), p = parseInt(this.getAttribute("data-increment")), g = Math.ceil(m / p);
|
|
1727
|
+
m > y && a.classList.remove("d-none");
|
|
1709
1728
|
let v = "";
|
|
1710
|
-
for (let
|
|
1711
|
-
v += `<option value="${
|
|
1712
|
-
e.innerHTML = v, d.innerHTML = `of ${
|
|
1713
|
-
let
|
|
1714
|
-
s.innerHTML = `${
|
|
1715
|
-
const
|
|
1716
|
-
|
|
1717
|
-
<option value="${
|
|
1718
|
-
<option value="${
|
|
1719
|
-
<option value="${
|
|
1729
|
+
for (let L = 1; L <= g; L++)
|
|
1730
|
+
v += `<option value="${L}" ${L == u ? "selected" : ""}>${L}</option>`;
|
|
1731
|
+
e.innerHTML = v, d.innerHTML = `of ${g}`, u == g ? i.setAttribute("disabled", "disabled") : i.removeAttribute("disabled"), u == 1 ? o.setAttribute("disabled", "disabled") : o.removeAttribute("disabled");
|
|
1732
|
+
let _ = u == 1 ? 1 : (u - 1) * y + 1, k = u == 1 ? y : u * y;
|
|
1733
|
+
s.innerHTML = `${_} - ${k > m ? m : k} of ${m} items`;
|
|
1734
|
+
const A = [15, 25, 40, 50];
|
|
1735
|
+
p && n.value != p && !A.includes(p) && (n.innerHTML = `<option value="${p}">${p}</option>
|
|
1736
|
+
<option value="${p * 2}">${p * 2}</option>
|
|
1737
|
+
<option value="${p * 3}">${p * 3}</option>
|
|
1738
|
+
<option value="${p * 4}">${p * 4}</option>`), n.value = p;
|
|
1720
1739
|
}
|
|
1721
1740
|
static get observedAttributes() {
|
|
1722
1741
|
return ["data-total", "data-increment", "data-page", "data-show"];
|
|
1723
1742
|
}
|
|
1724
|
-
attributeChangedCallback(a, e,
|
|
1743
|
+
attributeChangedCallback(a, e, o) {
|
|
1725
1744
|
switch (a) {
|
|
1726
1745
|
case "data-total": {
|
|
1727
|
-
e !=
|
|
1746
|
+
e != o && (this.setAttribute("data-page", 1), this.setup());
|
|
1728
1747
|
break;
|
|
1729
1748
|
}
|
|
1730
1749
|
case "data-show": {
|
|
1731
|
-
e !=
|
|
1750
|
+
e != o && (this.setAttribute("data-page", 1), this.setup(), this.dispatchEvent(new CustomEvent("update-show", { detail: { show: o } })));
|
|
1732
1751
|
break;
|
|
1733
1752
|
}
|
|
1734
1753
|
case "data-increment": {
|
|
1735
|
-
e !=
|
|
1754
|
+
e != o && (this.setAttribute("data-show", o), this.setAttribute("data-page", 1), this.setup(), this.dispatchEvent(new CustomEvent("update-show", { detail: { show: o } })));
|
|
1736
1755
|
break;
|
|
1737
1756
|
}
|
|
1738
1757
|
case "data-page": {
|
|
1739
|
-
e && e !=
|
|
1758
|
+
e && e != o && (this.setup(), this.dispatchEvent(new CustomEvent("update-page", { detail: { page: o } })));
|
|
1740
1759
|
break;
|
|
1741
1760
|
}
|
|
1742
1761
|
}
|
|
@@ -1757,14 +1776,14 @@ const Ta = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1757
1776
|
updated() {
|
|
1758
1777
|
}
|
|
1759
1778
|
};
|
|
1760
|
-
function Ma(t, a, e,
|
|
1779
|
+
function Ma(t, a, e, o, i, s) {
|
|
1761
1780
|
return r(), l("iam-pagination");
|
|
1762
1781
|
}
|
|
1763
|
-
const
|
|
1782
|
+
const rs = /* @__PURE__ */ h(Ha, [["render", Ma]]), Ca = {
|
|
1764
1783
|
name: "Address Lookup",
|
|
1765
1784
|
mounted() {
|
|
1766
1785
|
this.$nextTick(function() {
|
|
1767
|
-
|
|
1786
|
+
N(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/address-lookup/address-lookup.component.js": () => import("./address-lookup.component-5aabf606.mjs"), "../../../assets/js/components/address-lookup/address-lookup.component.min.js": () => import("./address-lookup.component.min-07f51c45.mjs") }), "../../../assets/js/components/address-lookup/address-lookup.component.js").then((t) => {
|
|
1768
1787
|
window.customElements.get("iam-address-lookup") || window.customElements.define("iam-address-lookup", t.default);
|
|
1769
1788
|
}).catch((t) => {
|
|
1770
1789
|
console.log(t.message);
|
|
@@ -1772,22 +1791,22 @@ const ri = /* @__PURE__ */ p(Ha, [["render", Ma]]), Ca = {
|
|
|
1772
1791
|
});
|
|
1773
1792
|
}
|
|
1774
1793
|
};
|
|
1775
|
-
function
|
|
1794
|
+
function Na(t, a, e, o, i, s) {
|
|
1776
1795
|
return r(), l("iam-address-lookup", null, [
|
|
1777
1796
|
f(t.$slots, "default")
|
|
1778
1797
|
]);
|
|
1779
1798
|
}
|
|
1780
|
-
const
|
|
1799
|
+
const ls = /* @__PURE__ */ h(Ca, [["render", Na]]);
|
|
1781
1800
|
/*!
|
|
1782
|
-
* iamKey v5.5.1-beta-
|
|
1801
|
+
* iamKey v5.5.1-beta-2
|
|
1783
1802
|
* Copyright 2022-2024 iamproperty
|
|
1784
1803
|
*/
|
|
1785
1804
|
window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "collapsible side menu" });
|
|
1786
|
-
class
|
|
1805
|
+
class ja extends HTMLElement {
|
|
1787
1806
|
constructor() {
|
|
1788
1807
|
super(), this.attachShadow({ mode: "open" });
|
|
1789
|
-
const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", e = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`,
|
|
1790
|
-
|
|
1808
|
+
const a = document.body.hasAttribute("data-assets-location") ? document.body.getAttribute("data-assets-location") : "/assets", e = document.body.hasAttribute("data-core-css") ? document.body.getAttribute("data-core-css") : `${a}/css/core.min.css`, o = document.createElement("template");
|
|
1809
|
+
o.innerHTML = `
|
|
1791
1810
|
<style class="styles">
|
|
1792
1811
|
@import "${e}";
|
|
1793
1812
|
:host{--colour-border: #e9e9e9;--side-link-hover: var(--colour-canvas-2);display:block;min-height:calc(100vh - var(--nav-height));padding-top:0 !important;margin-inline:auto;max-width:80rem;overflow:hidden;position:relative}@media screen and (prefers-color-scheme: light){:host{--side-link-hover: #eeeeee}}.container{position:static;min-height:100%;padding-top:0 !important;padding-bottom:0 !important;padding-left:0 !important}@media screen and (min-width: 62em){.container{padding-left:5.25rem !important;overflow:hidden}}.side-menu{position:absolute;top:0;left:0;height:100%;min-height:calc(100vh - var(--nav-height));width:1.875rem;height:100%;background-color:var(--colour-canvas);transition:width 1s}.side-menu:before{content:"";position:absolute;top:0;right:0;height:100%;border-right:2px solid var(--colour-border)}@media screen and (min-width: 36em){.side-menu{left:0;width:2.5rem}}@media screen and (min-width: 62em){.side-menu{left:calc(50% - 34.75rem);margin-left:-5.25rem}.side-menu:after{content:"";position:absolute;top:0;height:100%;border-right:2px solid var(--colour-border);left:0;opacity:1;transition:all 1s;width:2.5rem;background:var(--colour-canvas)}.side-menu:not(.open).hover{width:21.5rem}.side-menu:not(.open).hover .btn[class*=fa-]:before{content:"" !important}}.side-menu .btn{position:absolute;top:2rem;right:0;margin-bottom:0;margin-right:-1.25rem;background-color:var(--colour-canvas-2);border:2px solid var(--colour-border);z-index:99}.side-menu .btn[aria-expanded][class*=fa-]:before{content:"" !important}@media screen and (min-width: 62em){.side-menu .btn[aria-expanded]{opacity:0;transition:opacity .5s}.side-menu .btn[aria-expanded]:is(:hover,:focus,:active){opacity:1}}.side-menu:is(.open){width:calc(100% - var(--container-padding-x))}@media screen and (min-width: 36em){.side-menu:is(.open){width:23.875rem}}@media screen and (min-width: 62em){.side-menu:is(.open){width:21.5rem}}.side-menu .side-menu-content{position:absolute;top:0;right:0;padding:2rem 2.5rem 0 0;width:21.9375rem;opacity:0;transition:opacity 1s;min-height:100%;overflow:auto;max-height:100%}.side-menu .side-menu-content .h3{padding-left:1.5rem}@media screen and (min-width: 36em){.side-menu .side-menu-content{width:23.875rem}.side-menu .side-menu-content .h3{padding-left:2.5rem}}@media screen and (min-width: 62em){.side-menu .side-menu-content{width:19rem}}.side-menu:not(.hover):not(.open) .side-menu-content.closed{display:none}.side-menu.open .side-menu-content{opacity:1}@media screen and (min-width: 62em){.side-menu.hover .side-menu-content{opacity:1}}::slotted(*[slot=menu]){padding-left:1.5rem}@media screen and (min-width: 36em){::slotted(*[slot=menu]){padding-left:2.5rem !important}}::slotted(hr){border-bottom:2px solid var(--colour-border) !important;margin-right:-2.5rem !important}::slotted(a[slot=menu]){display:block;display:block !important;line-height:1.25rem !important;padding:1rem 2.5rem 1rem 1.5rem !important;margin:0 !important;flex-shrink:0;font-size:1rem !important;font-weight:normal !important;text-decoration:none;border-bottom:2px solid var(--colour-border) !important;margin-right:-2.5rem !important;border-right:2px solid var(--colour-border) !important}@media screen and (min-width: 36em){::slotted(a[slot=menu]){padding-left:2.5rem !important}}::slotted(a[slot=menu]):after{display:none}::slotted(a[slot=menu]:where(:hover,:focus,[aria-expanded])){background-color:var(--side-link-hover) !important}::slotted(a[slot=menu]:active){background-color:var(--side-link-hover) !important;font-weight:bold !important}::slotted(a[slot=menu][aria-expanded]){background-color:var(--side-link-hover) !important;font-weight:bold !important;margin-right:-2.5rem !important;position:relative;border-right:2px solid var(--colour-info) !important}::slotted(a[slot=menu][aria-expanded]):before{content:"";position:absolute;top:0;right:0;height:calc(100% + 4px);margin-top:-2px;width:2px;border-right:2px solid var(--colour-info);margin-right:-2px}@media(forced-colors: active){::slotted(a[slot=menu][aria-expanded]):before{border-right:10px solid var(--colour-info)}}.main-content{padding-top:1.5rem;padding-left:3.75rem}@media screen and (min-width: 36em){.main-content{padding-left:5rem}}@media screen and (min-width: 62em){.main-content{padding-top:2.5rem !important;padding-left:0}}.main-content>span.h3{padding-top:.75rem;border-bottom:2px solid var(--colour-border);margin-bottom:2.5rem !important}@media screen and (min-width: 62em){.main-content>span.h3{display:none}}::slotted(.main-content__title){border-bottom:2px solid var(--colour-border);margin-bottom:2.5rem !important;max-width:100% !important;display:block}@media screen and (min-width: 62em){.side-menu.open+.main-content{padding-left:18.75rem}::slotted(.main-content__title){display:none}}/*# sourceMappingURL=assets/css/components/collapsible-side.css.map */
|
|
@@ -1809,17 +1828,17 @@ class Na extends HTMLElement {
|
|
|
1809
1828
|
</div>
|
|
1810
1829
|
|
|
1811
1830
|
</div>
|
|
1812
|
-
`, this.shadowRoot.appendChild(
|
|
1831
|
+
`, this.shadowRoot.appendChild(o.content.cloneNode(!0));
|
|
1813
1832
|
}
|
|
1814
1833
|
connectedCallback() {
|
|
1815
|
-
const a = this.shadowRoot.querySelector(".side-menu"), e = this.shadowRoot.querySelector(".side-menu-content"),
|
|
1816
|
-
this.hasAttribute("data-css") && this.shadowRoot.querySelector(".styles").insertAdjacentHTML("beforeend", `@import "${this.getAttribute("data-css")}";`), this.hasAttribute("data-title") || this.setAttribute("data-title", "configuration"), e.insertAdjacentHTML("afterbegin", `<span class="h3">${this.getAttribute("data-title")}</span>`),
|
|
1817
|
-
a.classList.contains("open") ? (a.classList.remove("open"),
|
|
1834
|
+
const a = this.shadowRoot.querySelector(".side-menu"), e = this.shadowRoot.querySelector(".side-menu-content"), o = this.shadowRoot.querySelector(".main-content"), i = this.shadowRoot.querySelector(".side-menu > .btn");
|
|
1835
|
+
this.hasAttribute("data-css") && this.shadowRoot.querySelector(".styles").insertAdjacentHTML("beforeend", `@import "${this.getAttribute("data-css")}";`), this.hasAttribute("data-title") || this.setAttribute("data-title", "configuration"), e.insertAdjacentHTML("afterbegin", `<span class="h3">${this.getAttribute("data-title")}</span>`), o.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")), i.addEventListener("click", (s) => {
|
|
1836
|
+
a.classList.contains("open") ? (a.classList.remove("open"), i.removeAttribute("aria-expanded"), setTimeout(function() {
|
|
1818
1837
|
e.classList.add("closed");
|
|
1819
1838
|
}, 1e3), a.classList.add("pe-none"), setTimeout(function() {
|
|
1820
1839
|
a.classList.remove("pe-none");
|
|
1821
1840
|
}, 1e3)) : (e.classList.remove("closed"), setTimeout(function() {
|
|
1822
|
-
a.classList.add("open"),
|
|
1841
|
+
a.classList.add("open"), i.setAttribute("aria-expanded", !0);
|
|
1823
1842
|
}, 100));
|
|
1824
1843
|
}), a.addEventListener("mouseenter", (s) => {
|
|
1825
1844
|
window.innerWidth > 992 && (a.classList.contains("open") || e.classList.remove("closed"), a.classList.add("hover"));
|
|
@@ -1832,45 +1851,45 @@ class Na extends HTMLElement {
|
|
|
1832
1851
|
});
|
|
1833
1852
|
}
|
|
1834
1853
|
}
|
|
1835
|
-
window.customElements.get("iam-collapsible-side") || window.customElements.define("iam-collapsible-side",
|
|
1854
|
+
window.customElements.get("iam-collapsible-side") || window.customElements.define("iam-collapsible-side", ja);
|
|
1836
1855
|
const Ra = {
|
|
1837
1856
|
name: "CollapsibleSideMenu",
|
|
1838
1857
|
props: {},
|
|
1839
1858
|
mounted() {
|
|
1840
1859
|
}
|
|
1841
1860
|
};
|
|
1842
|
-
function Pa(t, a, e,
|
|
1861
|
+
function Pa(t, a, e, o, i, s) {
|
|
1843
1862
|
return r(), l("iam-collapsible-side", null, [
|
|
1844
1863
|
f(t.$slots, "default")
|
|
1845
1864
|
]);
|
|
1846
1865
|
}
|
|
1847
|
-
const
|
|
1866
|
+
const ds = /* @__PURE__ */ h(Ra, [["render", Pa]]);
|
|
1848
1867
|
export {
|
|
1849
|
-
|
|
1868
|
+
Da as Accordion,
|
|
1850
1869
|
Va as AccordionItem,
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1870
|
+
os as Actionbar,
|
|
1871
|
+
ls as AddressLookup,
|
|
1872
|
+
ss as AppliedFilters,
|
|
1854
1873
|
Ba as Banner,
|
|
1855
1874
|
Oa as Card,
|
|
1856
1875
|
Ua as Carousel,
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1876
|
+
ds as CollapsibleSideMenu,
|
|
1877
|
+
Ia as FileUpload,
|
|
1878
|
+
is as Filterlist,
|
|
1860
1879
|
Wa as Header,
|
|
1861
|
-
|
|
1862
|
-
|
|
1880
|
+
P as Input,
|
|
1881
|
+
za as Logo,
|
|
1863
1882
|
Ya as Nav,
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1883
|
+
as as NoteFeed,
|
|
1884
|
+
ns as Notification,
|
|
1885
|
+
rs as Pagination,
|
|
1867
1886
|
Qa as PropertySearchbar,
|
|
1868
1887
|
Xa as Snapshot,
|
|
1869
1888
|
Za as Step,
|
|
1870
1889
|
Ja as Stepper,
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1890
|
+
ts as Tab,
|
|
1891
|
+
R as Table,
|
|
1892
|
+
es as Tabs,
|
|
1874
1893
|
Ka as Testimonial,
|
|
1875
1894
|
Ga as Timeline
|
|
1876
1895
|
};
|