@iamproperty/components 5.6.1-beta2 → 5.6.1-beta21
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/address-lookup.css +1 -1
- package/assets/css/components/address-lookup.css.map +1 -1
- package/assets/css/components/card.css +1 -1
- package/assets/css/components/card.css.map +1 -1
- package/assets/css/components/carousel.css +1 -1
- package/assets/css/components/carousel.css.map +1 -1
- package/assets/css/components/collapsible-side.css +1 -1
- package/assets/css/components/collapsible-side.css.map +1 -1
- package/assets/css/components/fileupload.css +1 -1
- package/assets/css/components/fileupload.css.map +1 -1
- package/assets/css/components/multiselect.css +1 -1
- package/assets/css/components/multiselect.css.map +1 -1
- package/assets/css/components/pagination.css +1 -1
- package/assets/css/components/pagination.css.map +1 -1
- package/assets/css/components/table.global.css +1 -1
- package/assets/css/components/table.global.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 +7 -7
- package/assets/js/components/actionbar/actionbar.component.min.js +10 -10
- package/assets/js/components/actionbar/actionbar.component.min.js.map +1 -1
- package/assets/js/components/address-lookup/address-lookup.component.js +24 -13
- package/assets/js/components/address-lookup/address-lookup.component.min.js +9 -8
- package/assets/js/components/address-lookup/address-lookup.component.min.js.map +1 -1
- package/assets/js/components/applied-filters/applied-filters.component.min.js +1 -1
- package/assets/js/components/card/card.component.js +40 -20
- package/assets/js/components/card/card.component.min.js +19 -19
- package/assets/js/components/card/card.component.min.js.map +1 -1
- package/assets/js/components/carousel/carousel.component.js +17 -4
- package/assets/js/components/carousel/carousel.component.min.js +8 -8
- package/assets/js/components/carousel/carousel.component.min.js.map +1 -1
- package/assets/js/components/collapsible-side/collapsible-side.component.js +5 -5
- package/assets/js/components/collapsible-side/collapsible-side.component.min.js +7 -7
- package/assets/js/components/collapsible-side/collapsible-side.component.min.js.map +1 -1
- package/assets/js/components/fileupload/fileupload.component.js +19 -3
- package/assets/js/components/fileupload/fileupload.component.min.js +10 -8
- package/assets/js/components/fileupload/fileupload.component.min.js.map +1 -1
- package/assets/js/components/filterlist/filterlist.component.js +2 -2
- package/assets/js/components/filterlist/filterlist.component.min.js +5 -5
- package/assets/js/components/filterlist/filterlist.component.min.js.map +1 -1
- package/assets/js/components/header/header.component.min.js +1 -1
- package/assets/js/components/inline-edit/inline-edit.component.js +3 -3
- package/assets/js/components/inline-edit/inline-edit.component.min.js +4 -4
- package/assets/js/components/inline-edit/inline-edit.component.min.js.map +1 -1
- package/assets/js/components/marketing/marketing.component.min.js +1 -1
- package/assets/js/components/multiselect/multiselect.component.js +4 -3
- package/assets/js/components/multiselect/multiselect.component.min.js +6 -6
- package/assets/js/components/multiselect/multiselect.component.min.js.map +1 -1
- package/assets/js/components/nav/nav.component.min.js +1 -1
- package/assets/js/components/notification/notification.component.js +1 -1
- package/assets/js/components/notification/notification.component.min.js +2 -2
- package/assets/js/components/notification/notification.component.min.js.map +1 -1
- package/assets/js/components/pagination/pagination.component.min.js +3 -3
- 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/slider/slider.component.min.js +1 -1
- package/assets/js/components/table/table.component.js +16 -1
- package/assets/js/components/table/table.component.min.js +5 -5
- package/assets/js/components/table/table.component.min.js.map +1 -1
- package/assets/js/components/tabs/tabs.component.min.js +1 -1
- package/assets/js/dynamic.min.js +5 -5
- package/assets/js/dynamic.min.js.map +1 -1
- package/assets/js/modules/carousel.js +30 -8
- package/assets/js/modules/dialogs.js +7 -1
- package/assets/js/modules/dynamicEvents.js +3 -0
- package/assets/js/modules/fileupload.js +44 -19
- package/assets/js/modules/helpers.js +4 -0
- package/assets/js/modules/inputs.js +1 -1
- package/assets/js/modules/table.js +6 -1
- package/assets/js/scripts.bundle.js +29 -29
- 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/_components.scss +54 -0
- package/assets/sass/components/address-lookup.scss +4 -0
- package/assets/sass/components/card.scss +88 -1
- package/assets/sass/components/carousel.scss +31 -7
- package/assets/sass/components/collapsible-side.scss +8 -1
- package/assets/sass/components/fileupload.scss +1 -10
- package/assets/sass/components/multiselect.scss +5 -1
- package/assets/sass/components/pagination.scss +11 -16
- package/assets/sass/components/table.global.scss +4 -19
- package/assets/sass/elements/dialog.scss +1 -1
- package/assets/sass/elements/forms.scss +39 -10
- package/assets/sass/elements/progress.scss +159 -17
- package/assets/ts/components/actionbar/actionbar.component.ts +7 -7
- package/assets/ts/components/address-lookup/address-lookup.component.ts +28 -14
- package/assets/ts/components/card/card.component.ts +51 -23
- package/assets/ts/components/carousel/carousel.component.ts +20 -4
- package/assets/ts/components/collapsible-side/collapsible-side.component.ts +5 -5
- package/assets/ts/components/fileupload/fileupload.component.ts +29 -3
- package/assets/ts/components/filterlist/filterlist.component.ts +2 -2
- package/assets/ts/components/inline-edit/inline-edit.component.ts +3 -3
- package/assets/ts/components/multiselect/multiselect.component.ts +4 -3
- package/assets/ts/components/notification/notification.component.ts +1 -1
- package/assets/ts/components/table/table.component.ts +24 -1
- package/assets/ts/modules/carousel.ts +40 -9
- package/assets/ts/modules/dialogs.ts +9 -1
- package/assets/ts/modules/dynamicEvents.ts +3 -0
- package/assets/ts/modules/fileupload.ts +64 -31
- package/assets/ts/modules/helpers.ts +6 -0
- package/assets/ts/modules/inputs.ts +1 -1
- package/assets/ts/modules/table.ts +8 -2
- package/dist/components.es.js +546 -611
- package/dist/components.umd.js +98 -95
- package/dist/style.css +1 -1
- package/package.json +3 -3
- package/src/components/Card/README.md +1 -0
- package/src/components/Carousel/Carousel.vue +5 -1
- package/src/components/CollapsibleSideMenu/CollapsibleSideMenu.vue +1 -1
- package/src/components/FileUpload/FileUpload.vue +29 -6
package/dist/components.es.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { openBlock as
|
|
2
|
-
const
|
|
1
|
+
import { openBlock as o, createElementBlock as l, normalizeClass as b, createElementVNode as d, toDisplayString as y, createCommentVNode as p, renderSlot as u, Fragment as $, renderList as k, withDirectives as L, mergeProps as w, vModelDynamic as x, vModelText as D, vModelSelect as V, ref as F, onMounted as z, createTextVNode as B, resolveComponent as q, createVNode as v, withModifiers as O } from "vue";
|
|
2
|
+
const m = (t, a) => {
|
|
3
3
|
const e = t.__vccOpts || t;
|
|
4
|
-
for (const [
|
|
5
|
-
e[
|
|
4
|
+
for (const [i, r] of a)
|
|
5
|
+
e[i] = r;
|
|
6
6
|
return e;
|
|
7
|
-
},
|
|
7
|
+
}, U = {
|
|
8
8
|
name: "Logo",
|
|
9
9
|
props: {
|
|
10
10
|
id: {
|
|
@@ -29,26 +29,26 @@ const p = (t, i) => {
|
|
|
29
29
|
return "brand brand--" + this.id;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
},
|
|
33
|
-
function
|
|
34
|
-
return
|
|
35
|
-
class:
|
|
32
|
+
}, W = ["xlink:href"], K = ["innerHTML"];
|
|
33
|
+
function G(t, a, e, i, r, s) {
|
|
34
|
+
return o(), l("div", {
|
|
35
|
+
class: b(s.className)
|
|
36
36
|
}, [
|
|
37
|
-
(
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"xlink:href": e.path +
|
|
41
|
-
}, null, 8,
|
|
37
|
+
(o(), l("svg", null, [
|
|
38
|
+
d("title", null, "iam " + y(e.id), 1),
|
|
39
|
+
d("use", {
|
|
40
|
+
"xlink:href": e.path + s.src
|
|
41
|
+
}, null, 8, W)
|
|
42
42
|
])),
|
|
43
|
-
e.desc ? (
|
|
43
|
+
e.desc ? (o(), l("span", {
|
|
44
44
|
key: 0,
|
|
45
45
|
innerHTML: e.desc
|
|
46
|
-
}, null, 8,
|
|
46
|
+
}, null, 8, K)) : p("", !0)
|
|
47
47
|
], 2);
|
|
48
48
|
}
|
|
49
|
-
const
|
|
50
|
-
return t = t.toLowerCase(), t =
|
|
51
|
-
},
|
|
49
|
+
const Ra = /* @__PURE__ */ m(U, [["render", G]]), J = (t) => t.charAt(0).toUpperCase() + t.slice(1), Q = (t) => t.replace(/_/g, " "), Y = (t) => t.replace(/ /g, "_"), X = function(t) {
|
|
50
|
+
return t = t.toLowerCase(), t = Y(t), t = t.replace(/\W/g, ""), t;
|
|
51
|
+
}, Z = {
|
|
52
52
|
name: "Table",
|
|
53
53
|
props: {
|
|
54
54
|
items: {
|
|
@@ -62,16 +62,16 @@ const Pi = /* @__PURE__ */ p(B, [["render", W]]), K = (t) => t.charAt(0).toUpper
|
|
|
62
62
|
},
|
|
63
63
|
computed: {
|
|
64
64
|
cellHeading() {
|
|
65
|
-
return (t) => `${
|
|
65
|
+
return (t) => `${J(Q(t))}`;
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
created() {
|
|
69
69
|
this.$nextTick(function() {
|
|
70
|
-
import("./table.component-
|
|
70
|
+
import("./table.component-f20ca683.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);
|
|
74
|
-
}), Promise.resolve().then(() =>
|
|
74
|
+
}), Promise.resolve().then(() => xa).then((t) => {
|
|
75
75
|
window.customElements.get("iam-pagination") || window.customElements.define("iam-pagination", t.default);
|
|
76
76
|
}).catch((t) => {
|
|
77
77
|
console.log(t.message);
|
|
@@ -80,33 +80,33 @@ const Pi = /* @__PURE__ */ p(B, [["render", W]]), K = (t) => t.charAt(0).toUpper
|
|
|
80
80
|
},
|
|
81
81
|
updated() {
|
|
82
82
|
}
|
|
83
|
-
},
|
|
84
|
-
function ie(t,
|
|
85
|
-
return
|
|
86
|
-
|
|
87
|
-
e.fields ? (
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
(
|
|
83
|
+
}, ee = { key: 0 }, te = { key: 0 }, ae = ["data-row-id"], se = ["innerHTML"];
|
|
84
|
+
function ie(t, a, e, i, r, s) {
|
|
85
|
+
return o(), l("iam-table", null, [
|
|
86
|
+
u(t.$slots, "before"),
|
|
87
|
+
e.fields ? (o(), l("table", ee, [
|
|
88
|
+
d("thead", null, [
|
|
89
|
+
d("tr", null, [
|
|
90
|
+
(o(!0), l($, null, k(e.fields, (n) => (o(), l("th", {
|
|
91
91
|
key: n.key
|
|
92
|
-
},
|
|
92
|
+
}, y(s.cellHeading(n.key)), 1))), 128))
|
|
93
93
|
])
|
|
94
94
|
]),
|
|
95
|
-
e.items ? (
|
|
96
|
-
(
|
|
97
|
-
key:
|
|
95
|
+
e.items ? (o(), l("tbody", te, [
|
|
96
|
+
(o(!0), l($, null, k(e.items, (n, c) => (o(), l("tr", {
|
|
97
|
+
key: c,
|
|
98
98
|
"data-row-id": n.rowid
|
|
99
99
|
}, [
|
|
100
|
-
(
|
|
101
|
-
key:
|
|
102
|
-
innerHTML:
|
|
103
|
-
}, null, 8,
|
|
104
|
-
], 8,
|
|
105
|
-
])) :
|
|
106
|
-
])) :
|
|
100
|
+
(o(!0), l($, null, k(Object.fromEntries(Object.entries(n).filter(([h]) => h !== "rowid")), (h, _) => (o(), l("td", {
|
|
101
|
+
key: _,
|
|
102
|
+
innerHTML: h
|
|
103
|
+
}, null, 8, se))), 128))
|
|
104
|
+
], 8, ae))), 128))
|
|
105
|
+
])) : p("", !0)
|
|
106
|
+
])) : u(t.$slots, "default", { key: 1 })
|
|
107
107
|
]);
|
|
108
108
|
}
|
|
109
|
-
const
|
|
109
|
+
const C = /* @__PURE__ */ m(Z, [["render", ie]]), ne = {
|
|
110
110
|
name: "Input",
|
|
111
111
|
props: {
|
|
112
112
|
value: {
|
|
@@ -281,8 +281,8 @@ const N = /* @__PURE__ */ p(J, [["render", ie]]), ae = {
|
|
|
281
281
|
this.$nextTick(function() {
|
|
282
282
|
let t = this.$refs.wrapper;
|
|
283
283
|
if (t.parentNode && t.parentNode.classList.contains("form-check") || t.classList.length == 0) {
|
|
284
|
-
const
|
|
285
|
-
Array.from(t.childNodes).forEach((e) =>
|
|
284
|
+
const a = document.createDocumentFragment();
|
|
285
|
+
Array.from(t.childNodes).forEach((e) => a.appendChild(e)), t.parentNode.insertBefore(a, t), t.parentNode.removeChild(t);
|
|
286
286
|
}
|
|
287
287
|
});
|
|
288
288
|
},
|
|
@@ -294,237 +294,152 @@ const N = /* @__PURE__ */ p(J, [["render", ie]]), ae = {
|
|
|
294
294
|
this.$emit("bus");
|
|
295
295
|
}
|
|
296
296
|
}
|
|
297
|
-
},
|
|
297
|
+
}, oe = ["for", "innerHTML", "title"], le = ["innerHTML"], re = ["innerHTML"], de = ["type", "name", "id", "pattern", "list"], ce = ["type", "name", "id", "pattern"], ue = {
|
|
298
298
|
key: 5,
|
|
299
299
|
class: "input-group"
|
|
300
|
-
},
|
|
300
|
+
}, me = ["type", "name", "id", "pattern", "list"], pe = { class: "input-group-text border-0 col-2 col-sm-1 px-0" }, he = {
|
|
301
301
|
key: 6,
|
|
302
302
|
class: "input-group"
|
|
303
|
-
},
|
|
304
|
-
function
|
|
305
|
-
return
|
|
306
|
-
class:
|
|
303
|
+
}, fe = ["type", "name", "id", "pattern", "list"], be = { class: "input-group-text flex-fill" }, ye = ["type", "name", "id", "pattern"], _e = ["value"], ge = ["type", "name", "id"], ve = ["for", "innerHTML"], we = ["type", "name", "id"], $e = ["for", "innerHTML"], ke = ["innerHTML"], Ae = ["id"], Le = ["value"];
|
|
304
|
+
function Se(t, a, e, i, r, s) {
|
|
305
|
+
return o(), l("div", {
|
|
306
|
+
class: b(s.wrapperClass()),
|
|
307
307
|
ref: "wrapper"
|
|
308
308
|
}, [
|
|
309
|
-
|
|
309
|
+
s.needsLabel() ? (o(), l("label", {
|
|
310
310
|
key: 0,
|
|
311
|
-
class:
|
|
311
|
+
class: b(`form-label${e.labelclass ? ` ${e.labelclass}` : ""}`),
|
|
312
312
|
for: e.id,
|
|
313
|
-
innerHTML:
|
|
313
|
+
innerHTML: s.displayLabel(),
|
|
314
314
|
title: e.title
|
|
315
|
-
}, null, 10,
|
|
316
|
-
e.prefix ? (
|
|
315
|
+
}, null, 10, oe)) : p("", !0),
|
|
316
|
+
e.prefix ? (o(), l("span", {
|
|
317
317
|
key: 1,
|
|
318
|
-
class:
|
|
318
|
+
class: b(`prefix ${this.prefixClass} ${e.size ? `prefix-${e.size}` : ""}`),
|
|
319
319
|
innerHTML: e.prefix,
|
|
320
320
|
role: "presentation"
|
|
321
|
-
}, null, 10,
|
|
322
|
-
e.suffix ? (
|
|
321
|
+
}, null, 10, le)) : p("", !0),
|
|
322
|
+
e.suffix ? (o(), l("span", {
|
|
323
323
|
key: 2,
|
|
324
|
-
class:
|
|
324
|
+
class: b(`suffix ${this.suffixClass} ${e.size ? `suffix-${e.size}` : ""}`),
|
|
325
325
|
innerHTML: e.suffix,
|
|
326
326
|
role: "presentation"
|
|
327
|
-
}, null, 10,
|
|
328
|
-
|
|
327
|
+
}, null, 10, re)) : p("", !0),
|
|
328
|
+
s.isInput() ? L((o(), l("input", w({
|
|
329
329
|
key: 3,
|
|
330
|
-
"onUpdate:modelValue":
|
|
330
|
+
"onUpdate:modelValue": a[0] || (a[0] = (n) => s.inputVal = n),
|
|
331
331
|
class: `form-control${e.size ? ` form-control-${e.size}` : ""}${e.inputclass ? ` ${e.inputclass}` : ""}`,
|
|
332
332
|
type: e.type,
|
|
333
333
|
name: e.name ? e.name : e.id,
|
|
334
334
|
id: e.id,
|
|
335
|
-
pattern:
|
|
336
|
-
list:
|
|
335
|
+
pattern: s.needPattern(),
|
|
336
|
+
list: s.hasOptions()
|
|
337
337
|
}, t.$attrs, {
|
|
338
|
-
onKeyup:
|
|
339
|
-
}), null, 16,
|
|
340
|
-
[
|
|
341
|
-
]) :
|
|
342
|
-
e.type == "textarea" ?
|
|
338
|
+
onKeyup: a[1] || (a[1] = (...n) => s.inputKeyup && s.inputKeyup(...n))
|
|
339
|
+
}), null, 16, de)), [
|
|
340
|
+
[x, s.inputVal]
|
|
341
|
+
]) : p("", !0),
|
|
342
|
+
e.type == "textarea" ? L((o(), l("textarea", w({
|
|
343
343
|
key: 4,
|
|
344
|
-
"onUpdate:modelValue":
|
|
344
|
+
"onUpdate:modelValue": a[2] || (a[2] = (n) => s.inputVal = n),
|
|
345
345
|
class: `form-control${e.size ? ` form-control-${e.size}` : ""}${e.inputclass ? ` ${e.inputclass}` : ""}`,
|
|
346
346
|
type: e.type,
|
|
347
347
|
name: e.name ? e.name : e.id,
|
|
348
348
|
id: e.id,
|
|
349
|
-
pattern:
|
|
350
|
-
}, t.$attrs), null, 16,
|
|
351
|
-
[
|
|
352
|
-
]) :
|
|
353
|
-
e.type == "range" ? (
|
|
354
|
-
|
|
355
|
-
"onUpdate:modelValue":
|
|
349
|
+
pattern: s.needPattern()
|
|
350
|
+
}, t.$attrs), null, 16, ce)), [
|
|
351
|
+
[D, s.inputVal]
|
|
352
|
+
]) : p("", !0),
|
|
353
|
+
e.type == "range" ? (o(), l("div", ue, [
|
|
354
|
+
L(d("input", w({
|
|
355
|
+
"onUpdate:modelValue": a[3] || (a[3] = (n) => s.inputVal = n),
|
|
356
356
|
class: `form-range${e.inputclass ? ` ${e.inputclass}` : ""}`,
|
|
357
357
|
type: e.type,
|
|
358
358
|
name: e.name ? e.name : e.id,
|
|
359
359
|
id: e.id,
|
|
360
|
-
pattern:
|
|
361
|
-
list:
|
|
362
|
-
}, t.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16,
|
|
363
|
-
[
|
|
360
|
+
pattern: s.needPattern(),
|
|
361
|
+
list: s.hasOptions()
|
|
362
|
+
}, t.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, me), [
|
|
363
|
+
[x, s.inputVal]
|
|
364
364
|
]),
|
|
365
|
-
|
|
366
|
-
])) :
|
|
367
|
-
e.type == "color" ? (
|
|
368
|
-
|
|
369
|
-
"onUpdate:modelValue":
|
|
365
|
+
d("output", pe, y(e.value), 1)
|
|
366
|
+
])) : p("", !0),
|
|
367
|
+
e.type == "color" ? (o(), l("div", he, [
|
|
368
|
+
L(d("input", w({
|
|
369
|
+
"onUpdate:modelValue": a[4] || (a[4] = (n) => s.inputVal = n),
|
|
370
370
|
class: `form-control form-control-color${e.inputclass ? ` ${e.inputclass}` : ""}`,
|
|
371
371
|
type: e.type,
|
|
372
372
|
name: e.name ? e.name : e.id,
|
|
373
373
|
id: e.id,
|
|
374
|
-
pattern:
|
|
375
|
-
list:
|
|
376
|
-
}, t.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16,
|
|
377
|
-
[
|
|
374
|
+
pattern: s.needPattern(),
|
|
375
|
+
list: s.hasOptions()
|
|
376
|
+
}, t.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, fe), [
|
|
377
|
+
[x, s.inputVal]
|
|
378
378
|
]),
|
|
379
|
-
|
|
380
|
-
])) :
|
|
381
|
-
e.type == "select" ?
|
|
379
|
+
d("output", be, y(e.value ? t.vale : "#000000"), 1)
|
|
380
|
+
])) : p("", !0),
|
|
381
|
+
e.type == "select" ? L((o(), l("select", w({
|
|
382
382
|
key: 7,
|
|
383
|
-
"onUpdate:modelValue":
|
|
383
|
+
"onUpdate:modelValue": a[5] || (a[5] = (n) => s.inputVal = n),
|
|
384
384
|
class: `form-select${e.size ? ` form-select-${e.size}` : ""}${e.inputclass ? ` ${e.inputclass}` : ""}`,
|
|
385
385
|
type: e.type,
|
|
386
386
|
name: e.id,
|
|
387
387
|
id: e.id,
|
|
388
|
-
pattern:
|
|
388
|
+
pattern: s.needPattern()
|
|
389
389
|
}, t.$attrs), [
|
|
390
|
-
(
|
|
391
|
-
key:
|
|
390
|
+
(o(!0), l($, null, k(e.options, (n, c) => (o(), l("option", {
|
|
391
|
+
key: c,
|
|
392
392
|
value: n.value
|
|
393
|
-
},
|
|
394
|
-
], 16,
|
|
395
|
-
[
|
|
396
|
-
]) :
|
|
397
|
-
e.type == "checkbox" || e.type == "radio" ? (
|
|
393
|
+
}, y(n.display ? n.display : n.value), 9, _e))), 128))
|
|
394
|
+
], 16, ye)), [
|
|
395
|
+
[V, s.inputVal]
|
|
396
|
+
]) : p("", !0),
|
|
397
|
+
e.type == "checkbox" || e.type == "radio" ? (o(), l("input", w({
|
|
398
398
|
key: 8,
|
|
399
399
|
class: "form-check-input",
|
|
400
400
|
type: e.type,
|
|
401
401
|
name: e.name ? e.name : e.id,
|
|
402
402
|
id: e.id
|
|
403
|
-
}, t.$attrs), null, 16, ge)) :
|
|
404
|
-
e.type == "checkbox" || e.type == "radio" ? (
|
|
403
|
+
}, t.$attrs), null, 16, ge)) : p("", !0),
|
|
404
|
+
e.type == "checkbox" || e.type == "radio" ? (o(), l("label", {
|
|
405
405
|
key: 9,
|
|
406
|
-
class:
|
|
406
|
+
class: b(`form-label form-check-label${e.labelclass ? ` ${e.labelclass}` : ""}`),
|
|
407
407
|
for: e.id,
|
|
408
408
|
innerHTML: e.label
|
|
409
|
-
}, null, 10,
|
|
410
|
-
e.type == "checkbox-btn" || e.type == "radio-btn" ? (
|
|
409
|
+
}, null, 10, ve)) : p("", !0),
|
|
410
|
+
e.type == "checkbox-btn" || e.type == "radio-btn" ? (o(), l("input", w({
|
|
411
411
|
key: 10,
|
|
412
412
|
class: `btn-check${e.inputclass ? ` ${e.inputclass}` : ""}`,
|
|
413
413
|
type: e.type.replace("-btn", ""),
|
|
414
414
|
autocomplete: "off",
|
|
415
415
|
name: e.name ? e.name : e.id,
|
|
416
416
|
id: e.id
|
|
417
|
-
}, t.$attrs), null, 16,
|
|
418
|
-
e.type == "checkbox-btn" || e.type == "radio-btn" ? (
|
|
417
|
+
}, t.$attrs), null, 16, we)) : p("", !0),
|
|
418
|
+
e.type == "checkbox-btn" || e.type == "radio-btn" ? (o(), l("label", {
|
|
419
419
|
key: 11,
|
|
420
|
-
class:
|
|
420
|
+
class: b(`btn${e.labelclass ? ` ${e.labelclass}` : ""}`),
|
|
421
421
|
for: e.id,
|
|
422
422
|
innerHTML: e.label,
|
|
423
|
-
onClick:
|
|
424
|
-
}, null, 10,
|
|
425
|
-
|
|
426
|
-
e.errormsg ? (
|
|
423
|
+
onClick: a[6] || (a[6] = (...n) => s.clickEvent && s.clickEvent(...n))
|
|
424
|
+
}, null, 10, $e)) : p("", !0),
|
|
425
|
+
u(t.$slots, "default"),
|
|
426
|
+
e.errormsg ? (o(), l("span", {
|
|
427
427
|
key: 12,
|
|
428
428
|
class: "invalid-feedback mb-0",
|
|
429
429
|
innerHTML: e.errormsg
|
|
430
|
-
}, null, 8,
|
|
431
|
-
|
|
430
|
+
}, null, 8, ke)) : p("", !0),
|
|
431
|
+
s.allowDatalist() ? (o(), l("datalist", {
|
|
432
432
|
key: 13,
|
|
433
433
|
id: e.id + "-list"
|
|
434
434
|
}, [
|
|
435
|
-
(
|
|
436
|
-
key:
|
|
435
|
+
(o(!0), l($, null, k(e.options, (n, c) => (o(), l("option", {
|
|
436
|
+
key: c,
|
|
437
437
|
value: n.value
|
|
438
|
-
},
|
|
439
|
-
], 8,
|
|
438
|
+
}, y(n.value), 9, Le))), 128))
|
|
439
|
+
], 8, Ae)) : p("", !0)
|
|
440
440
|
], 2);
|
|
441
441
|
}
|
|
442
|
-
const
|
|
443
|
-
function Ae(t, i) {
|
|
444
|
-
const e = i.querySelector(".files"), s = i.querySelector(".drop-area"), o = t.querySelector("input"), a = t.hasAttribute("data-maxsize") ? t.getAttribute("data-maxsize") : 0, n = o.cloneNode();
|
|
445
|
-
if (s.append(n), i.addEventListener("click", (d) => {
|
|
446
|
-
d && d.target instanceof HTMLElement && d.target.closest(".btn-primary") && (d.target.closest(".btn-primary"), (o.hasAttribute("multiple") ? n : o).click());
|
|
447
|
-
}), i.addEventListener("click", (d) => {
|
|
448
|
-
if (d && d.target instanceof HTMLElement && d.target.closest(".files button")) {
|
|
449
|
-
const u = new DataTransfer(), { files: b } = o, g = d.target.closest(".files button");
|
|
450
|
-
for (let v = 0; v < b.length; v++) {
|
|
451
|
-
const w = b[v];
|
|
452
|
-
w.name != g.getAttribute("data-file") && u.items.add(w);
|
|
453
|
-
}
|
|
454
|
-
if (o.files = u.files, o.files.length == 0) {
|
|
455
|
-
const v = new Event("empty");
|
|
456
|
-
t.dispatchEvent(v);
|
|
457
|
-
}
|
|
458
|
-
const f = new Event("change");
|
|
459
|
-
o.dispatchEvent(f);
|
|
460
|
-
}
|
|
461
|
-
}), n.addEventListener("change", (d) => {
|
|
462
|
-
if (o.hasAttribute("multiple")) {
|
|
463
|
-
const g = [...o.files, ...n.files];
|
|
464
|
-
let f = [];
|
|
465
|
-
const v = new DataTransfer();
|
|
466
|
-
for (let w = 0; w < g.length; w++) {
|
|
467
|
-
const L = g[w], q = L.size / 1e3;
|
|
468
|
-
!f.includes(L.name) && (a == 0 || q < a) && v.items.add(L), f.push(L.name);
|
|
469
|
-
}
|
|
470
|
-
o.files = v.files;
|
|
471
|
-
} else
|
|
472
|
-
o.files = n.files;
|
|
473
|
-
const u = new Event("change");
|
|
474
|
-
o.dispatchEvent(u);
|
|
475
|
-
const b = new Event("elementChange");
|
|
476
|
-
t.dispatchEvent(b);
|
|
477
|
-
}), n.addEventListener("dragenter", (d) => {
|
|
478
|
-
n.classList.add("focus");
|
|
479
|
-
}), n.addEventListener("dragleave", (d) => {
|
|
480
|
-
n.classList.remove("focus");
|
|
481
|
-
}), n.addEventListener("drop", (d) => {
|
|
482
|
-
n.classList.remove("focus");
|
|
483
|
-
}), o.addEventListener("change", (d) => {
|
|
484
|
-
e.innerHTML = "";
|
|
485
|
-
for (const u of o.files)
|
|
486
|
-
e.innerHTML += `<span class="file">${u.name} <button data-file="${u.name}">Remove</button></span>`;
|
|
487
|
-
}), t.hasAttribute("data-filename")) {
|
|
488
|
-
let d = t.getAttribute("data-filename");
|
|
489
|
-
d && (e.innerHTML += `<span class="file">${d} <button data-file="${d}">Remove</button></span>`);
|
|
490
|
-
}
|
|
491
|
-
i.addEventListener("click", (d) => {
|
|
492
|
-
d && d.target instanceof HTMLElement && d.target.closest(".btn-primary") && (d.target.closest(".btn-primary"), (o.hasAttribute("multiple") ? n : o).click());
|
|
493
|
-
});
|
|
494
|
-
}
|
|
495
|
-
window.dataLayer = window.dataLayer || [];
|
|
496
|
-
window.dataLayer.push({
|
|
497
|
-
event: "customElementRegistered",
|
|
498
|
-
element: "fileupload"
|
|
499
|
-
});
|
|
500
|
-
class Le extends HTMLElement {
|
|
501
|
-
constructor() {
|
|
502
|
-
super(), this.attachShadow({ mode: "open" });
|
|
503
|
-
const i = 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") : `${i}/css/core.min.css`, s = `@import "${i}/css/components/fileupload.css";`, o = document.createElement("template");
|
|
504
|
-
o.innerHTML = `
|
|
505
|
-
<style>
|
|
506
|
-
@import "${e}";
|
|
507
|
-
${s}
|
|
508
|
-
${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
|
|
509
|
-
</style>
|
|
510
|
-
<div class="file-upload">
|
|
511
|
-
<span class="file-upload__title">Upload file</span>
|
|
512
|
-
<p class="helper-text"><slot name="helper"></slot></p>
|
|
513
|
-
<button class="btn btn-primary"><slot name="btn"></slot> Upload ${this.hasAttribute("data-filetype") ? this.getAttribute("data-filetype") : "file"}</button>
|
|
514
|
-
<div class="drop-area"></div>
|
|
515
|
-
<hr/>
|
|
516
|
-
<slot></slot>
|
|
517
|
-
<div class="files"><slot name="files"></slot></div>
|
|
518
|
-
</div>
|
|
519
|
-
`, this.shadowRoot.appendChild(o.content.cloneNode(!0));
|
|
520
|
-
}
|
|
521
|
-
connectedCallback() {
|
|
522
|
-
this.innerHTML += '<i class="fa-regular fa-arrow-up-from-bracket me-2" aria-hidden="true" slot="btn"></i>';
|
|
523
|
-
const i = this.shadowRoot.querySelector(".file-upload"), e = this.querySelector("input"), s = this.shadowRoot.querySelector(".helper-text");
|
|
524
|
-
this.querySelector('[slot="helper"]') || (s.innerHTML = `${this.hasAttribute("data-maxsize") ? `Max file size is ${this.getAttribute("data-maxsize")}kb. ` : ""}${e.hasAttribute("accept") ? `Supported file types are ${e.getAttribute("accept")}` : ""}`), Ae(this, i);
|
|
525
|
-
}
|
|
526
|
-
}
|
|
527
|
-
const Se = {
|
|
442
|
+
const N = /* @__PURE__ */ m(ne, [["render", Se]]), xe = {
|
|
528
443
|
name: "FileUpload",
|
|
529
444
|
props: {
|
|
530
445
|
maxfilesize: {
|
|
@@ -536,37 +451,52 @@ const Se = {
|
|
|
536
451
|
required: !1
|
|
537
452
|
}
|
|
538
453
|
},
|
|
539
|
-
|
|
454
|
+
created() {
|
|
540
455
|
this.$nextTick(function() {
|
|
541
|
-
|
|
456
|
+
import("./fileupload.component.min-2dd5ee41.mjs").then((t) => {
|
|
457
|
+
window.customElements.get("iam-fileupload") || window.customElements.define("iam-fileupload", t.default);
|
|
458
|
+
}).catch((t) => {
|
|
459
|
+
console.log(t.message);
|
|
460
|
+
});
|
|
542
461
|
});
|
|
543
462
|
}
|
|
544
|
-
}
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
463
|
+
}, ja = /* @__PURE__ */ Object.assign(xe, {
|
|
464
|
+
emits: ["elementChange", "empty"],
|
|
465
|
+
setup(t, { emit: a }) {
|
|
466
|
+
const e = F(null);
|
|
467
|
+
return z(() => {
|
|
468
|
+
e.value.addEventListener("elementChange", function(i) {
|
|
469
|
+
a("elementChange", i);
|
|
470
|
+
}), e.value.addEventListener("empty", function(i) {
|
|
471
|
+
a("empty", i);
|
|
472
|
+
});
|
|
473
|
+
}), (i, r) => (o(), l("iam-fileupload", {
|
|
474
|
+
ref_key: "$component",
|
|
475
|
+
ref: e
|
|
476
|
+
}, [
|
|
477
|
+
u(i.$slots, "default")
|
|
478
|
+
], 512));
|
|
479
|
+
}
|
|
480
|
+
});
|
|
551
481
|
const qe = {
|
|
552
482
|
name: "Accordion",
|
|
553
483
|
props: {},
|
|
554
484
|
mounted() {
|
|
555
485
|
this.$nextTick(function() {
|
|
556
|
-
import("./accordion.component.min-
|
|
486
|
+
import("./accordion.component.min-d6a0f423.mjs").then((t) => {
|
|
557
487
|
window.customElements.get("iam-accordion") || window.customElements.define("iam-accordion", t.default);
|
|
558
488
|
}).catch((t) => {
|
|
559
489
|
console.log(t.message);
|
|
560
490
|
});
|
|
561
491
|
});
|
|
562
492
|
}
|
|
563
|
-
},
|
|
564
|
-
function
|
|
565
|
-
return
|
|
566
|
-
|
|
493
|
+
}, Te = { ref: "wrapper" };
|
|
494
|
+
function Ee(t, a, e, i, r, s) {
|
|
495
|
+
return o(), l("iam-accordion", Te, [
|
|
496
|
+
u(t.$slots, "default")
|
|
567
497
|
], 512);
|
|
568
498
|
}
|
|
569
|
-
const
|
|
499
|
+
const Ia = /* @__PURE__ */ m(qe, [["render", Ee]]), He = {
|
|
570
500
|
name: "AccordionItem",
|
|
571
501
|
props: {
|
|
572
502
|
title: {
|
|
@@ -593,7 +523,7 @@ const ji = /* @__PURE__ */ p(qe, [["render", He]]), Me = {
|
|
|
593
523
|
},
|
|
594
524
|
computed: {
|
|
595
525
|
createID() {
|
|
596
|
-
return (t) => `${
|
|
526
|
+
return (t) => `${X(t)}`;
|
|
597
527
|
}
|
|
598
528
|
},
|
|
599
529
|
data() {
|
|
@@ -601,22 +531,22 @@ const ji = /* @__PURE__ */ p(qe, [["render", He]]), Me = {
|
|
|
601
531
|
show: !this.lazy
|
|
602
532
|
};
|
|
603
533
|
}
|
|
604
|
-
},
|
|
605
|
-
function
|
|
606
|
-
return
|
|
607
|
-
id:
|
|
534
|
+
}, Me = ["id"];
|
|
535
|
+
function Ce(t, a, e, i, r, s) {
|
|
536
|
+
return o(), l("details", {
|
|
537
|
+
id: s.createID(e.title)
|
|
608
538
|
}, [
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
e.badge ? (
|
|
539
|
+
d("summary", null, [
|
|
540
|
+
B(y(e.title), 1),
|
|
541
|
+
e.badge ? (o(), l("span", {
|
|
612
542
|
key: 0,
|
|
613
|
-
class:
|
|
614
|
-
},
|
|
543
|
+
class: b(`badge bg-${e.badgecolour}`)
|
|
544
|
+
}, y(e.badge), 3)) : p("", !0)
|
|
615
545
|
]),
|
|
616
|
-
|
|
617
|
-
], 8,
|
|
546
|
+
u(t.$slots, "default")
|
|
547
|
+
], 8, Me);
|
|
618
548
|
}
|
|
619
|
-
const
|
|
549
|
+
const Da = /* @__PURE__ */ m(He, [["render", Ce]]), Ne = {
|
|
620
550
|
name: "Header",
|
|
621
551
|
props: {
|
|
622
552
|
title: {
|
|
@@ -633,36 +563,36 @@ const Ii = /* @__PURE__ */ p(Me, [["render", Ne]]), Re = {
|
|
|
633
563
|
required: !1
|
|
634
564
|
}
|
|
635
565
|
}
|
|
636
|
-
}, Pe = { class: "container" },
|
|
637
|
-
function
|
|
638
|
-
return
|
|
639
|
-
|
|
640
|
-
class:
|
|
566
|
+
}, Pe = { class: "container" }, Re = { class: "row" }, je = { class: "col-sm-6" }, Ie = { class: "pt-5 pb-3 px-4" }, De = { class: "col-sm-6 col-md-5 ms-auto" }, Ve = ["src"];
|
|
567
|
+
function Fe(t, a, e, i, r, s) {
|
|
568
|
+
return o(), l("div", Pe, [
|
|
569
|
+
d("div", {
|
|
570
|
+
class: b("bg-" + e.background + " mb-4")
|
|
641
571
|
}, [
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
572
|
+
d("div", Re, [
|
|
573
|
+
d("div", je, [
|
|
574
|
+
d("div", Ie, [
|
|
575
|
+
d("h2", null, y(e.title), 1),
|
|
576
|
+
u(t.$slots, "default")
|
|
647
577
|
])
|
|
648
578
|
]),
|
|
649
|
-
|
|
650
|
-
e.image ? (
|
|
579
|
+
d("div", De, [
|
|
580
|
+
e.image ? (o(), l("img", {
|
|
651
581
|
key: 0,
|
|
652
582
|
src: e.image,
|
|
653
583
|
alt: "",
|
|
654
584
|
class: "h-100 w-100 object-cover"
|
|
655
|
-
}, null, 8,
|
|
585
|
+
}, null, 8, Ve)) : p("", !0)
|
|
656
586
|
])
|
|
657
587
|
])
|
|
658
588
|
], 2)
|
|
659
589
|
]);
|
|
660
590
|
}
|
|
661
|
-
const
|
|
591
|
+
const Va = /* @__PURE__ */ m(Ne, [["render", Fe]]), ze = {
|
|
662
592
|
name: "Card",
|
|
663
593
|
created() {
|
|
664
594
|
this.$nextTick(function() {
|
|
665
|
-
import("./card.component-
|
|
595
|
+
import("./card.component-a11e9b92.mjs").then((t) => {
|
|
666
596
|
window.customElements.get("iam-card") || window.customElements.define("iam-card", t.default);
|
|
667
597
|
}).catch((t) => {
|
|
668
598
|
console.log(t.message);
|
|
@@ -670,12 +600,12 @@ const Di = /* @__PURE__ */ p(Re, [["render", Ve]]), Be = {
|
|
|
670
600
|
});
|
|
671
601
|
}
|
|
672
602
|
};
|
|
673
|
-
function
|
|
674
|
-
return
|
|
675
|
-
|
|
603
|
+
function Be(t, a, e, i, r, s) {
|
|
604
|
+
return o(), l("iam-card", null, [
|
|
605
|
+
u(t.$slots, "default")
|
|
676
606
|
]);
|
|
677
607
|
}
|
|
678
|
-
const
|
|
608
|
+
const Fa = /* @__PURE__ */ m(ze, [["render", Be]]), Oe = {
|
|
679
609
|
name: "Header",
|
|
680
610
|
props: {
|
|
681
611
|
title: {
|
|
@@ -685,24 +615,30 @@ const Fi = /* @__PURE__ */ p(Be, [["render", Ue]]), Oe = {
|
|
|
685
615
|
image: {
|
|
686
616
|
type: String,
|
|
687
617
|
required: !1
|
|
618
|
+
},
|
|
619
|
+
thumbnails: {
|
|
620
|
+
type: Array,
|
|
621
|
+
default: () => []
|
|
688
622
|
}
|
|
689
623
|
},
|
|
690
624
|
mounted() {
|
|
691
625
|
this.$nextTick(function() {
|
|
692
|
-
import("./carousel.component.min-
|
|
626
|
+
import("./carousel.component.min-655528a6.mjs").then((t) => {
|
|
693
627
|
window.customElements.get("iam-carousel") || window.customElements.define("iam-carousel", t.default);
|
|
694
628
|
}).catch((t) => {
|
|
695
629
|
console.log(t.message);
|
|
696
630
|
});
|
|
697
631
|
});
|
|
698
632
|
}
|
|
699
|
-
};
|
|
700
|
-
function We(t,
|
|
701
|
-
return
|
|
702
|
-
|
|
703
|
-
|
|
633
|
+
}, Ue = ["data-thumbnails"];
|
|
634
|
+
function We(t, a, e, i, r, s) {
|
|
635
|
+
return o(), l("iam-carousel", {
|
|
636
|
+
"data-thumbnails": JSON.stringify(e.thumbnails)
|
|
637
|
+
}, [
|
|
638
|
+
u(t.$slots, "default")
|
|
639
|
+
], 8, Ue);
|
|
704
640
|
}
|
|
705
|
-
const
|
|
641
|
+
const za = /* @__PURE__ */ m(Oe, [["render", We]]), Ke = {
|
|
706
642
|
name: "Header",
|
|
707
643
|
props: {
|
|
708
644
|
title: {
|
|
@@ -716,47 +652,47 @@ const Vi = /* @__PURE__ */ p(Oe, [["render", We]]), Ke = {
|
|
|
716
652
|
},
|
|
717
653
|
mounted() {
|
|
718
654
|
this.$nextTick(function() {
|
|
719
|
-
import("./header.component.min-
|
|
655
|
+
import("./header.component.min-f9cf9d07.mjs").then((t) => {
|
|
720
656
|
window.customElements.get("iam-header") || window.customElements.define("iam-header", t.default);
|
|
721
657
|
}).catch((t) => {
|
|
722
658
|
console.log(t.message);
|
|
723
659
|
});
|
|
724
660
|
});
|
|
725
661
|
}
|
|
726
|
-
}, Ge = ["image"],
|
|
727
|
-
function
|
|
728
|
-
return
|
|
729
|
-
|
|
730
|
-
e.title ? (
|
|
662
|
+
}, Ge = ["image"], Je = ["innerHTML"];
|
|
663
|
+
function Qe(t, a, e, i, r, s) {
|
|
664
|
+
return o(), l("iam-header", { image: e.image }, [
|
|
665
|
+
u(t.$slots, "breadcrumb"),
|
|
666
|
+
e.title ? (o(), l("h1", {
|
|
731
667
|
key: 0,
|
|
732
668
|
innerHTML: e.title
|
|
733
|
-
}, null, 8,
|
|
734
|
-
|
|
669
|
+
}, null, 8, Je)) : p("", !0),
|
|
670
|
+
u(t.$slots, "default")
|
|
735
671
|
], 8, Ge);
|
|
736
672
|
}
|
|
737
|
-
const
|
|
738
|
-
function
|
|
739
|
-
var
|
|
740
|
-
const e = t.querySelector(".testimonial__images"),
|
|
741
|
-
if (
|
|
673
|
+
const Ba = /* @__PURE__ */ m(Ke, [["render", Qe]]);
|
|
674
|
+
function Ye(t) {
|
|
675
|
+
var a;
|
|
676
|
+
const e = t.querySelector(".testimonial__images"), i = e.querySelectorAll("img").length;
|
|
677
|
+
if (i == 1)
|
|
742
678
|
return !1;
|
|
743
679
|
t.classList.add("testimonial--multi");
|
|
744
|
-
const
|
|
745
|
-
const n = t.querySelector(".btn-next"),
|
|
746
|
-
n.setAttribute("data-go",
|
|
680
|
+
const r = function(s) {
|
|
681
|
+
const n = t.querySelector(".btn-next"), c = t.querySelector(".btn-prev");
|
|
682
|
+
n.setAttribute("data-go", s + 1), c.setAttribute("data-go", s - 1), n.removeAttribute("disabled"), c.removeAttribute("disabled"), s == 1 ? c.setAttribute("disabled", !0) : s == i && n.setAttribute("disabled", !0);
|
|
747
683
|
};
|
|
748
|
-
e.addEventListener("scroll", function(
|
|
749
|
-
clearTimeout(
|
|
750
|
-
let n = e.scrollWidth,
|
|
751
|
-
|
|
684
|
+
e.addEventListener("scroll", function(s) {
|
|
685
|
+
clearTimeout(a), a = setTimeout(function() {
|
|
686
|
+
let n = e.scrollWidth, c = e.scrollHeight, h = e.scrollLeft, _ = e.scrollTop, g = Math.round(h / n * i) + 1;
|
|
687
|
+
h == 0 && _ != 0 && (g = Math.round(_ / c * i) + 1), t.setAttribute("data-show", g), r(g);
|
|
752
688
|
}, 300);
|
|
753
|
-
}, !1), t.addEventListener("click", function(
|
|
754
|
-
for (var n =
|
|
689
|
+
}, !1), t.addEventListener("click", function(s) {
|
|
690
|
+
for (var n = s.target; n && n != this; n = n.parentNode)
|
|
755
691
|
if (n.matches("[data-go]")) {
|
|
756
|
-
let
|
|
757
|
-
g > f ?
|
|
758
|
-
top:
|
|
759
|
-
left:
|
|
692
|
+
let c = parseInt(n.getAttribute("data-go")), h = 0, _ = 0, g = e.scrollWidth, f = e.scrollHeight;
|
|
693
|
+
g > f ? _ = Math.floor(g * ((c - 1) / i)) : h = Math.floor(f * ((c - 1) / i)), e.scroll({
|
|
694
|
+
top: h,
|
|
695
|
+
left: _,
|
|
760
696
|
behavior: "smooth"
|
|
761
697
|
});
|
|
762
698
|
break;
|
|
@@ -777,57 +713,57 @@ const Xe = {
|
|
|
777
713
|
}
|
|
778
714
|
},
|
|
779
715
|
mounted() {
|
|
780
|
-
|
|
716
|
+
Ye(this.$refs.wrapper);
|
|
781
717
|
}
|
|
782
718
|
}, Ze = {
|
|
783
719
|
class: "container testimonial mb-5",
|
|
784
720
|
"data-show": "1",
|
|
785
721
|
ref: "wrapper"
|
|
786
|
-
}, et = { class: "row" }, tt = { class: "col-md-5 position-relative" },
|
|
787
|
-
/* @__PURE__ */
|
|
722
|
+
}, et = { class: "row" }, tt = { class: "col-md-5 position-relative" }, at = { class: "testimonial__images" }, st = ["src"], it = /* @__PURE__ */ d("div", { class: "testimonial__controls" }, [
|
|
723
|
+
/* @__PURE__ */ d("button", {
|
|
788
724
|
"data-go": "0",
|
|
789
725
|
disabled: "",
|
|
790
726
|
class: "btn-prev"
|
|
791
727
|
}, "Previous"),
|
|
792
|
-
/* @__PURE__ */
|
|
728
|
+
/* @__PURE__ */ d("button", {
|
|
793
729
|
"data-go": "2",
|
|
794
730
|
class: "btn-next"
|
|
795
731
|
}, "Next")
|
|
796
|
-
], -1),
|
|
797
|
-
function mt(t,
|
|
798
|
-
return
|
|
799
|
-
|
|
800
|
-
class:
|
|
732
|
+
], -1), nt = { class: "col-md-7" }, ot = /* @__PURE__ */ d("h2", null, "What our customers think…", -1), lt = { class: "testimonial__content" }, rt = ["innerHTML"], dt = ["innerHTML"], ct = { class: "testimonial__after" }, ut = /* @__PURE__ */ d("span", { class: "circle circle--dots d-none d-md-block" }, null, -1);
|
|
733
|
+
function mt(t, a, e, i, r, s) {
|
|
734
|
+
return o(), l("div", Ze, [
|
|
735
|
+
d("div", {
|
|
736
|
+
class: b("bg-" + e.background)
|
|
801
737
|
}, [
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
(
|
|
806
|
-
key:
|
|
738
|
+
d("div", et, [
|
|
739
|
+
d("div", tt, [
|
|
740
|
+
d("div", at, [
|
|
741
|
+
(o(!0), l($, null, k(e.items, (n, c) => (o(), l("img", {
|
|
742
|
+
key: c,
|
|
807
743
|
src: n.image ? n.image : "data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",
|
|
808
744
|
alt: "",
|
|
809
|
-
class:
|
|
810
|
-
}, null, 10,
|
|
745
|
+
class: b("h-100 w-100 object-cover" + (n.image ? "" : " opacity-0"))
|
|
746
|
+
}, null, 10, st))), 128))
|
|
811
747
|
]),
|
|
812
|
-
|
|
748
|
+
it
|
|
813
749
|
]),
|
|
814
|
-
|
|
750
|
+
d("div", nt, [
|
|
815
751
|
ot,
|
|
816
|
-
|
|
817
|
-
(
|
|
818
|
-
key:
|
|
819
|
-
class:
|
|
752
|
+
d("div", lt, [
|
|
753
|
+
(o(!0), l($, null, k(e.items, (n, c) => (o(), l("blockquote", {
|
|
754
|
+
key: c,
|
|
755
|
+
class: b(n.class)
|
|
820
756
|
}, [
|
|
821
|
-
|
|
757
|
+
d("div", {
|
|
822
758
|
innerHTML: n.quote
|
|
823
|
-
}, null, 8,
|
|
824
|
-
|
|
759
|
+
}, null, 8, rt),
|
|
760
|
+
d("cite", {
|
|
825
761
|
innerHTML: n.cite
|
|
826
762
|
}, null, 8, dt)
|
|
827
763
|
], 2))), 128))
|
|
828
764
|
]),
|
|
829
|
-
|
|
830
|
-
|
|
765
|
+
d("div", ct, [
|
|
766
|
+
u(t.$slots, "default")
|
|
831
767
|
])
|
|
832
768
|
])
|
|
833
769
|
]),
|
|
@@ -835,7 +771,7 @@ function mt(t, i, e, s, o, a) {
|
|
|
835
771
|
], 2)
|
|
836
772
|
], 512);
|
|
837
773
|
}
|
|
838
|
-
const
|
|
774
|
+
const Oa = /* @__PURE__ */ m(Xe, [["render", mt]]);
|
|
839
775
|
const pt = {
|
|
840
776
|
name: "Timeline",
|
|
841
777
|
props: {
|
|
@@ -845,22 +781,22 @@ const pt = {
|
|
|
845
781
|
}
|
|
846
782
|
}
|
|
847
783
|
}, ht = { class: "timeline" }, ft = { class: "timeline__content" }, bt = ["src"];
|
|
848
|
-
function
|
|
849
|
-
return
|
|
850
|
-
|
|
851
|
-
|
|
784
|
+
function yt(t, a, e, i, r, s) {
|
|
785
|
+
return o(), l("div", ht, [
|
|
786
|
+
d("div", ft, [
|
|
787
|
+
u(t.$slots, "default")
|
|
852
788
|
]),
|
|
853
|
-
e.image ? (
|
|
789
|
+
e.image ? (o(), l("img", {
|
|
854
790
|
key: 0,
|
|
855
791
|
src: e.image,
|
|
856
792
|
alt: ""
|
|
857
|
-
}, null, 8, bt)) :
|
|
793
|
+
}, null, 8, bt)) : p("", !0)
|
|
858
794
|
]);
|
|
859
795
|
}
|
|
860
|
-
const
|
|
861
|
-
const
|
|
796
|
+
const Ua = /* @__PURE__ */ m(pt, [["render", yt]]);
|
|
797
|
+
const _t = {
|
|
862
798
|
components: {
|
|
863
|
-
Input:
|
|
799
|
+
Input: N
|
|
864
800
|
},
|
|
865
801
|
name: "PropertySearchbar",
|
|
866
802
|
props: {
|
|
@@ -1004,46 +940,46 @@ const yt = {
|
|
|
1004
940
|
];
|
|
1005
941
|
}
|
|
1006
942
|
}
|
|
1007
|
-
},
|
|
943
|
+
}, gt = {
|
|
1008
944
|
class: "container",
|
|
1009
945
|
ref: "wrapper"
|
|
1010
|
-
}, vt = { class: "property-searchbar" }, wt = ["action", "method"], $t = { class: "col-12 col-md-3" }, kt = { class: "col-12 col-md" },
|
|
946
|
+
}, vt = { class: "property-searchbar" }, wt = ["action", "method"], $t = { class: "col-12 col-md-3" }, kt = { class: "col-12 col-md" }, At = /* @__PURE__ */ d("span", { class: "form-label d-none d-md-block" }, "Price range", -1), Lt = {
|
|
1011
947
|
class: "row",
|
|
1012
948
|
"data-input-range": ""
|
|
1013
|
-
},
|
|
949
|
+
}, St = { class: "col-12 col-md" }, xt = /* @__PURE__ */ d("span", { class: "form-label d-none d-md-block" }, "Number of beds", -1), qt = {
|
|
1014
950
|
class: "row",
|
|
1015
951
|
"data-input-range": ""
|
|
1016
|
-
},
|
|
1017
|
-
/* @__PURE__ */
|
|
952
|
+
}, Tt = { class: "col-12 col-md-2" }, Et = /* @__PURE__ */ d("div", { class: "col-12 col-md mw-md-fit-content d-flex property-searchbar__btn" }, [
|
|
953
|
+
/* @__PURE__ */ d("button", {
|
|
1018
954
|
class: "btn w-100 me-0",
|
|
1019
955
|
type: "submit",
|
|
1020
956
|
value: "submit"
|
|
1021
957
|
}, "Search")
|
|
1022
958
|
], -1);
|
|
1023
|
-
function Ht(t,
|
|
1024
|
-
const n =
|
|
1025
|
-
return
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
959
|
+
function Ht(t, a, e, i, r, s) {
|
|
960
|
+
const n = q("Input");
|
|
961
|
+
return o(), l("div", gt, [
|
|
962
|
+
u(t.$slots, "default"),
|
|
963
|
+
d("div", vt, [
|
|
964
|
+
d("form", {
|
|
1029
965
|
class: "row",
|
|
1030
966
|
action: e.formaction,
|
|
1031
967
|
method: e.formmethod
|
|
1032
968
|
}, [
|
|
1033
|
-
|
|
1034
|
-
|
|
969
|
+
d("fieldset", $t, [
|
|
970
|
+
v(n, {
|
|
1035
971
|
inputClass: "input--locations",
|
|
1036
|
-
modelValue:
|
|
1037
|
-
"onUpdate:modelValue":
|
|
972
|
+
modelValue: s.locationSet,
|
|
973
|
+
"onUpdate:modelValue": a[0] || (a[0] = (c) => s.locationSet = c),
|
|
1038
974
|
label: "Location",
|
|
1039
975
|
id: "location",
|
|
1040
|
-
options:
|
|
976
|
+
options: s.locationsList(),
|
|
1041
977
|
required: "",
|
|
1042
978
|
placeholder: "i.e. Newcastle or NE1",
|
|
1043
|
-
onKeyupEvent:
|
|
979
|
+
onKeyupEvent: a[1] || (a[1] = (c) => s.locationKeyup(...arguments)),
|
|
1044
980
|
ref: "search"
|
|
1045
981
|
}, null, 8, ["modelValue", "options"]),
|
|
1046
|
-
|
|
982
|
+
v(n, {
|
|
1047
983
|
class: "select--miles",
|
|
1048
984
|
label: "Miles",
|
|
1049
985
|
id: "miles",
|
|
@@ -1051,10 +987,10 @@ function Ht(t, i, e, s, o, a) {
|
|
|
1051
987
|
options: e.distances
|
|
1052
988
|
}, null, 8, ["options"])
|
|
1053
989
|
]),
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
990
|
+
d("fieldset", kt, [
|
|
991
|
+
At,
|
|
992
|
+
d("div", Lt, [
|
|
993
|
+
v(n, {
|
|
1058
994
|
class: "col-6",
|
|
1059
995
|
label: "Minimum price",
|
|
1060
996
|
id: "price-min",
|
|
@@ -1062,7 +998,7 @@ function Ht(t, i, e, s, o, a) {
|
|
|
1062
998
|
type: "select",
|
|
1063
999
|
options: e.pricemin
|
|
1064
1000
|
}, null, 8, ["options"]),
|
|
1065
|
-
|
|
1001
|
+
v(n, {
|
|
1066
1002
|
class: "col-6",
|
|
1067
1003
|
label: "Maximum price",
|
|
1068
1004
|
id: "price-max",
|
|
@@ -1072,10 +1008,10 @@ function Ht(t, i, e, s, o, a) {
|
|
|
1072
1008
|
}, null, 8, ["options"])
|
|
1073
1009
|
])
|
|
1074
1010
|
]),
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1011
|
+
d("fieldset", St, [
|
|
1012
|
+
xt,
|
|
1013
|
+
d("div", qt, [
|
|
1014
|
+
v(n, {
|
|
1079
1015
|
class: "col-6",
|
|
1080
1016
|
label: "Minimum beds",
|
|
1081
1017
|
id: "beds-min",
|
|
@@ -1083,7 +1019,7 @@ function Ht(t, i, e, s, o, a) {
|
|
|
1083
1019
|
type: "select",
|
|
1084
1020
|
options: e.bedsmin
|
|
1085
1021
|
}, null, 8, ["options"]),
|
|
1086
|
-
|
|
1022
|
+
v(n, {
|
|
1087
1023
|
class: "col-6",
|
|
1088
1024
|
label: "Maximum beds",
|
|
1089
1025
|
id: "beds-max",
|
|
@@ -1093,8 +1029,8 @@ function Ht(t, i, e, s, o, a) {
|
|
|
1093
1029
|
}, null, 8, ["options"])
|
|
1094
1030
|
])
|
|
1095
1031
|
]),
|
|
1096
|
-
|
|
1097
|
-
|
|
1032
|
+
d("fieldset", Tt, [
|
|
1033
|
+
v(n, {
|
|
1098
1034
|
label: "Property type",
|
|
1099
1035
|
id: "property-type",
|
|
1100
1036
|
type: "select",
|
|
@@ -1104,15 +1040,15 @@ function Ht(t, i, e, s, o, a) {
|
|
|
1104
1040
|
Et
|
|
1105
1041
|
], 8, wt)
|
|
1106
1042
|
]),
|
|
1107
|
-
|
|
1043
|
+
u(t.$slots, "after")
|
|
1108
1044
|
], 512);
|
|
1109
1045
|
}
|
|
1110
|
-
const
|
|
1046
|
+
const Wa = /* @__PURE__ */ m(_t, [["render", Ht]]), Mt = {
|
|
1111
1047
|
components: {},
|
|
1112
1048
|
name: "Nav",
|
|
1113
1049
|
mounted() {
|
|
1114
1050
|
this.$nextTick(function() {
|
|
1115
|
-
import("./nav.component.min-
|
|
1051
|
+
import("./nav.component.min-85240e2c.mjs").then((t) => {
|
|
1116
1052
|
window.customElements.get("iam-nav") || window.customElements.define("iam-nav", t.default);
|
|
1117
1053
|
}).catch((t) => {
|
|
1118
1054
|
console.log(t.message);
|
|
@@ -1121,13 +1057,13 @@ const Wi = /* @__PURE__ */ p(yt, [["render", Ht]]), Mt = {
|
|
|
1121
1057
|
},
|
|
1122
1058
|
methods: {}
|
|
1123
1059
|
}, Ct = { ref: "wrapper" };
|
|
1124
|
-
function Nt(t,
|
|
1125
|
-
return
|
|
1126
|
-
|
|
1060
|
+
function Nt(t, a, e, i, r, s) {
|
|
1061
|
+
return o(), l("iam-nav", Ct, [
|
|
1062
|
+
u(t.$slots, "default")
|
|
1127
1063
|
], 512);
|
|
1128
1064
|
}
|
|
1129
|
-
const
|
|
1130
|
-
const
|
|
1065
|
+
const Ka = /* @__PURE__ */ m(Mt, [["render", Nt]]);
|
|
1066
|
+
const Pt = {
|
|
1131
1067
|
name: "Stepper",
|
|
1132
1068
|
props: {
|
|
1133
1069
|
label: {
|
|
@@ -1140,26 +1076,26 @@ const Rt = {
|
|
|
1140
1076
|
default: "Complete"
|
|
1141
1077
|
}
|
|
1142
1078
|
}
|
|
1143
|
-
},
|
|
1079
|
+
}, Rt = { class: "container" }, jt = ["aria-label"], It = {
|
|
1144
1080
|
key: 0,
|
|
1145
1081
|
class: "h6 stepper__start"
|
|
1146
|
-
},
|
|
1147
|
-
function Ft(t,
|
|
1148
|
-
return
|
|
1149
|
-
|
|
1082
|
+
}, Dt = { class: "list-unstyled" }, Vt = { class: "h6 stepper__end" };
|
|
1083
|
+
function Ft(t, a, e, i, r, s) {
|
|
1084
|
+
return o(), l("div", Rt, [
|
|
1085
|
+
d("nav", {
|
|
1150
1086
|
class: "stepper",
|
|
1151
1087
|
"aria-label": e.label ? e.label : "Progress"
|
|
1152
1088
|
}, [
|
|
1153
|
-
e.label ? (
|
|
1154
|
-
|
|
1155
|
-
|
|
1089
|
+
e.label ? (o(), l("span", It, y(e.label), 1)) : p("", !0),
|
|
1090
|
+
d("ol", Dt, [
|
|
1091
|
+
u(t.$slots, "default")
|
|
1156
1092
|
]),
|
|
1157
|
-
|
|
1158
|
-
], 8,
|
|
1093
|
+
d("span", Vt, y(e.endlabel), 1)
|
|
1094
|
+
], 8, jt)
|
|
1159
1095
|
]);
|
|
1160
1096
|
}
|
|
1161
|
-
const
|
|
1162
|
-
const
|
|
1097
|
+
const Ga = /* @__PURE__ */ m(Pt, [["render", Ft]]);
|
|
1098
|
+
const zt = {
|
|
1163
1099
|
name: "Snapshot",
|
|
1164
1100
|
props: {
|
|
1165
1101
|
items: {
|
|
@@ -1170,30 +1106,30 @@ const Vt = {
|
|
|
1170
1106
|
}, Bt = {
|
|
1171
1107
|
class: "container snapshot",
|
|
1172
1108
|
ref: "wrapper"
|
|
1173
|
-
},
|
|
1174
|
-
function Gt(t,
|
|
1175
|
-
return
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
(
|
|
1109
|
+
}, Ot = { class: "row" }, Ut = ["href"], Wt = { class: "lead snapshot__title" }, Kt = { class: "stat" };
|
|
1110
|
+
function Gt(t, a, e, i, r, s) {
|
|
1111
|
+
return o(), l("div", Bt, [
|
|
1112
|
+
u(t.$slots, "default"),
|
|
1113
|
+
d("div", Ot, [
|
|
1114
|
+
(o(!0), l($, null, k(e.items, (n, c) => (o(), l("div", {
|
|
1179
1115
|
class: "col",
|
|
1180
|
-
key:
|
|
1116
|
+
key: c
|
|
1181
1117
|
}, [
|
|
1182
|
-
n.link ? (
|
|
1118
|
+
n.link ? (o(), l("a", {
|
|
1183
1119
|
key: 0,
|
|
1184
1120
|
href: n.link
|
|
1185
|
-
}, "View " +
|
|
1186
|
-
|
|
1187
|
-
class:
|
|
1121
|
+
}, "View " + y(n.title), 9, Ut)) : p("", !0),
|
|
1122
|
+
d("div", {
|
|
1123
|
+
class: b(`snapshot__item ${n.bg ? "bg-" + n.bg : ""}`)
|
|
1188
1124
|
}, [
|
|
1189
|
-
|
|
1190
|
-
|
|
1125
|
+
d("span", Wt, y(n.title), 1),
|
|
1126
|
+
d("span", Kt, y(n.number), 1)
|
|
1191
1127
|
], 2)
|
|
1192
1128
|
]))), 128))
|
|
1193
1129
|
])
|
|
1194
1130
|
], 512);
|
|
1195
1131
|
}
|
|
1196
|
-
const
|
|
1132
|
+
const Ja = /* @__PURE__ */ m(zt, [["render", Gt]]), Jt = {
|
|
1197
1133
|
name: "Stepper",
|
|
1198
1134
|
props: {
|
|
1199
1135
|
url: {
|
|
@@ -1209,43 +1145,43 @@ const Qi = /* @__PURE__ */ p(Vt, [["render", Gt]]), Qt = {
|
|
|
1209
1145
|
required: !1
|
|
1210
1146
|
}
|
|
1211
1147
|
}
|
|
1212
|
-
},
|
|
1148
|
+
}, Qt = ["href", "aria-current"], Yt = {
|
|
1213
1149
|
key: 0,
|
|
1214
1150
|
class: "visually-hidden"
|
|
1215
1151
|
};
|
|
1216
|
-
function Xt(t,
|
|
1217
|
-
return
|
|
1218
|
-
|
|
1152
|
+
function Xt(t, a, e, i, r, s) {
|
|
1153
|
+
return o(), l("li", null, [
|
|
1154
|
+
d("a", {
|
|
1219
1155
|
href: e.url,
|
|
1220
|
-
class:
|
|
1156
|
+
class: b(`${e.status ? "bg-" + e.status : ""}${typeof e.current < "u" ? "current" : ""}`),
|
|
1221
1157
|
"aria-current": typeof e.current < "u" ? "step" : !1
|
|
1222
1158
|
}, [
|
|
1223
|
-
|
|
1224
|
-
|
|
1159
|
+
d("span", null, [
|
|
1160
|
+
u(t.$slots, "default")
|
|
1225
1161
|
]),
|
|
1226
|
-
e.status ? (
|
|
1227
|
-
], 10,
|
|
1162
|
+
e.status ? (o(), l("em", Yt, " - status: " + y(e.status), 1)) : p("", !0)
|
|
1163
|
+
], 10, Qt)
|
|
1228
1164
|
]);
|
|
1229
1165
|
}
|
|
1230
|
-
const
|
|
1166
|
+
const Qa = /* @__PURE__ */ m(Jt, [["render", Xt]]);
|
|
1231
1167
|
const Zt = {
|
|
1232
1168
|
name: "Tabs",
|
|
1233
1169
|
created() {
|
|
1234
1170
|
this.$nextTick(function() {
|
|
1235
|
-
import("./tabs.component.min-
|
|
1171
|
+
import("./tabs.component.min-9a9448c4.mjs").then((t) => {
|
|
1236
1172
|
window.customElements.get("iam-tabs") || window.customElements.define("iam-tabs", t.default);
|
|
1237
1173
|
}).catch((t) => {
|
|
1238
1174
|
console.log(t.message);
|
|
1239
1175
|
});
|
|
1240
1176
|
});
|
|
1241
1177
|
}
|
|
1242
|
-
},
|
|
1243
|
-
function
|
|
1244
|
-
return
|
|
1245
|
-
|
|
1178
|
+
}, ea = { ref: "wrapper" };
|
|
1179
|
+
function ta(t, a, e, i, r, s) {
|
|
1180
|
+
return o(), l("iam-tabs", ea, [
|
|
1181
|
+
u(t.$slots, "default")
|
|
1246
1182
|
], 512);
|
|
1247
1183
|
}
|
|
1248
|
-
const
|
|
1184
|
+
const Ya = /* @__PURE__ */ m(Zt, [["render", ta]]), aa = {
|
|
1249
1185
|
name: "Tab",
|
|
1250
1186
|
props: {
|
|
1251
1187
|
title: {
|
|
@@ -1267,23 +1203,23 @@ const Ji = /* @__PURE__ */ p(Zt, [["render", ti]]), ii = {
|
|
|
1267
1203
|
isDisabled: !!this.disabled
|
|
1268
1204
|
};
|
|
1269
1205
|
}
|
|
1270
|
-
},
|
|
1271
|
-
function
|
|
1272
|
-
return
|
|
1273
|
-
|
|
1206
|
+
}, sa = { class: "tab" }, ia = ["innerHTML"];
|
|
1207
|
+
function na(t, a, e, i, r, s) {
|
|
1208
|
+
return o(), l("details", sa, [
|
|
1209
|
+
d("summary", {
|
|
1274
1210
|
innerHTML: e.title,
|
|
1275
|
-
class:
|
|
1276
|
-
}, null, 10,
|
|
1277
|
-
|
|
1211
|
+
class: b({ disabled: r.isDisabled })
|
|
1212
|
+
}, null, 10, ia),
|
|
1213
|
+
u(t.$slots, "default")
|
|
1278
1214
|
]);
|
|
1279
1215
|
}
|
|
1280
|
-
const
|
|
1281
|
-
let P =
|
|
1216
|
+
const Xa = /* @__PURE__ */ m(aa, [["render", na]]);
|
|
1217
|
+
let P = C.props;
|
|
1282
1218
|
P.fields.required = !1;
|
|
1283
|
-
const
|
|
1219
|
+
const oa = {
|
|
1284
1220
|
components: {
|
|
1285
|
-
Table:
|
|
1286
|
-
Input:
|
|
1221
|
+
Table: C,
|
|
1222
|
+
Input: N
|
|
1287
1223
|
},
|
|
1288
1224
|
data() {
|
|
1289
1225
|
return {
|
|
@@ -1294,14 +1230,14 @@ const oi = {
|
|
|
1294
1230
|
methods: {
|
|
1295
1231
|
submitForm: function(t) {
|
|
1296
1232
|
console.log(this);
|
|
1297
|
-
const
|
|
1233
|
+
const a = new FormData(t.target);
|
|
1298
1234
|
let e = /* @__PURE__ */ new Date();
|
|
1299
|
-
const
|
|
1300
|
-
let
|
|
1301
|
-
|
|
1235
|
+
const i = e.getFullYear();
|
|
1236
|
+
let r = e.getMonth() + 1, s = e.getDate();
|
|
1237
|
+
s < 10 && (s = "0" + s), r < 10 && (r = "0" + r), e = s + "/" + r + "/" + i, this.itemsData.unshift({
|
|
1302
1238
|
date_added: e,
|
|
1303
|
-
user:
|
|
1304
|
-
note:
|
|
1239
|
+
user: a.get("user"),
|
|
1240
|
+
note: a.get("addNote")
|
|
1305
1241
|
}), this.$emit("formSubmitted", t);
|
|
1306
1242
|
}
|
|
1307
1243
|
},
|
|
@@ -1326,41 +1262,41 @@ const oi = {
|
|
|
1326
1262
|
required: !1
|
|
1327
1263
|
}
|
|
1328
1264
|
}
|
|
1329
|
-
},
|
|
1330
|
-
function
|
|
1331
|
-
const n =
|
|
1332
|
-
return
|
|
1333
|
-
e.title ? (
|
|
1265
|
+
}, la = { class: "container note-feed mb-2" }, ra = ["innerHTML"], da = ["action", "method"], ca = ["value"], ua = /* @__PURE__ */ d("button", { class: "btn btn-tertiary" }, "Submit note", -1);
|
|
1266
|
+
function ma(t, a, e, i, r, s) {
|
|
1267
|
+
const n = q("Table"), c = q("Input");
|
|
1268
|
+
return o(), l("div", la, [
|
|
1269
|
+
e.title ? (o(), l("span", {
|
|
1334
1270
|
key: 0,
|
|
1335
1271
|
class: "h3",
|
|
1336
1272
|
innerHTML: e.title
|
|
1337
|
-
}, null, 8,
|
|
1338
|
-
|
|
1273
|
+
}, null, 8, ra)) : p("", !0),
|
|
1274
|
+
v(n, w({
|
|
1339
1275
|
fields: [{ key: "date_added" }, { key: "user" }, { key: "note" }],
|
|
1340
|
-
items:
|
|
1276
|
+
items: r.itemsData
|
|
1341
1277
|
}, t.$props, { class: "mb-0" }), null, 16, ["items"]),
|
|
1342
|
-
|
|
1278
|
+
d("form", {
|
|
1343
1279
|
action: e.action,
|
|
1344
1280
|
method: e.method,
|
|
1345
|
-
onSubmit:
|
|
1281
|
+
onSubmit: a[0] || (a[0] = O((h) => s.submitForm(...arguments), ["prevent"]))
|
|
1346
1282
|
}, [
|
|
1347
|
-
|
|
1283
|
+
d("input", {
|
|
1348
1284
|
type: "hidden",
|
|
1349
1285
|
value: e.user,
|
|
1350
1286
|
name: "user"
|
|
1351
|
-
}, null, 8,
|
|
1352
|
-
|
|
1287
|
+
}, null, 8, ca),
|
|
1288
|
+
v(c, {
|
|
1353
1289
|
id: "addNote",
|
|
1354
1290
|
type: "textarea",
|
|
1355
1291
|
label: "Add note",
|
|
1356
1292
|
required: "",
|
|
1357
1293
|
class: "mw-100"
|
|
1358
1294
|
}),
|
|
1359
|
-
|
|
1360
|
-
], 40,
|
|
1295
|
+
ua
|
|
1296
|
+
], 40, da)
|
|
1361
1297
|
]);
|
|
1362
1298
|
}
|
|
1363
|
-
const
|
|
1299
|
+
const Za = /* @__PURE__ */ m(oa, [["render", ma]]), pa = {
|
|
1364
1300
|
name: "Applied Filter",
|
|
1365
1301
|
mounted() {
|
|
1366
1302
|
this.$nextTick(function() {
|
|
@@ -1372,41 +1308,41 @@ const Zi = /* @__PURE__ */ p(oi, [["render", mi]]), pi = {
|
|
|
1372
1308
|
});
|
|
1373
1309
|
}
|
|
1374
1310
|
};
|
|
1375
|
-
function
|
|
1376
|
-
return
|
|
1377
|
-
|
|
1311
|
+
function ha(t, a, e, i, r, s) {
|
|
1312
|
+
return o(), l("iam-applied-filters", null, [
|
|
1313
|
+
u(t.$slots, "default")
|
|
1378
1314
|
]);
|
|
1379
1315
|
}
|
|
1380
|
-
const
|
|
1316
|
+
const es = /* @__PURE__ */ m(pa, [["render", ha]]);
|
|
1381
1317
|
/*!
|
|
1382
|
-
* iamKey v5.6.1-
|
|
1318
|
+
* iamKey v5.6.1-beta21
|
|
1383
1319
|
* Copyright 2022-2024 iamproperty
|
|
1384
1320
|
*/
|
|
1385
|
-
function
|
|
1386
|
-
|
|
1321
|
+
function fa(t, a) {
|
|
1322
|
+
ba(t, a);
|
|
1387
1323
|
}
|
|
1388
|
-
function
|
|
1324
|
+
function ba(t, a) {
|
|
1389
1325
|
var e;
|
|
1390
|
-
|
|
1326
|
+
a.addEventListener("keyup", (i) => {
|
|
1391
1327
|
clearTimeout(e), e = setTimeout(function() {
|
|
1392
|
-
|
|
1328
|
+
M(t, a.value);
|
|
1393
1329
|
}, 500);
|
|
1394
|
-
}),
|
|
1395
|
-
clearTimeout(e),
|
|
1330
|
+
}), a.addEventListener("change", (i) => {
|
|
1331
|
+
clearTimeout(e), M(t, a.value);
|
|
1396
1332
|
});
|
|
1397
1333
|
}
|
|
1398
|
-
const
|
|
1399
|
-
Array.from(t.querySelectorAll(":scope > li")).forEach((e,
|
|
1400
|
-
let
|
|
1401
|
-
e.classList.add("d-none"),
|
|
1402
|
-
}), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "Filtered list", value:
|
|
1334
|
+
const M = function(t, a) {
|
|
1335
|
+
Array.from(t.querySelectorAll(":scope > li")).forEach((e, i) => {
|
|
1336
|
+
let r = e.textContent.toLowerCase();
|
|
1337
|
+
e.classList.add("d-none"), r.includes(a.toLowerCase()) && e.classList.remove("d-none");
|
|
1338
|
+
}), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "Filtered list", value: a });
|
|
1403
1339
|
};
|
|
1404
1340
|
window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "filterlist" });
|
|
1405
|
-
class
|
|
1341
|
+
class ya extends HTMLElement {
|
|
1406
1342
|
constructor() {
|
|
1407
1343
|
super(), this.attachShadow({ mode: "open" });
|
|
1408
|
-
const
|
|
1409
|
-
|
|
1344
|
+
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`, i = document.createElement("template");
|
|
1345
|
+
i.innerHTML = `
|
|
1410
1346
|
<style>
|
|
1411
1347
|
@import "${e}";
|
|
1412
1348
|
${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
|
|
@@ -1428,56 +1364,56 @@ class gi extends HTMLElement {
|
|
|
1428
1364
|
<div class="form-control__wrapper">
|
|
1429
1365
|
<label for="search" class="visually-hidden">Search</label>
|
|
1430
1366
|
<span class="suffix" role="presentation"><slot name="icon"></slot></span>
|
|
1431
|
-
<input name="search" id="search" type="text" class="form-control" autocomplete="off" placeholder="Search" />
|
|
1367
|
+
<input name="search" id="search" type="text" class="form-control" autocomplete="off" placeholder="Search" part="search-input" />
|
|
1432
1368
|
</div>
|
|
1433
|
-
<div class="list__wrapper">
|
|
1369
|
+
<div class="list__wrapper" part="wrapper">
|
|
1434
1370
|
<slot></slot>
|
|
1435
1371
|
</div>
|
|
1436
|
-
`, this.shadowRoot.appendChild(
|
|
1372
|
+
`, this.shadowRoot.appendChild(i.content.cloneNode(!0));
|
|
1437
1373
|
}
|
|
1438
1374
|
connectedCallback() {
|
|
1439
|
-
let
|
|
1440
|
-
this.shadowRoot.querySelector(".list__wrapper").setAttribute("class", `list__wrapper ${
|
|
1375
|
+
let a = this.classList.toString();
|
|
1376
|
+
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>'), fa(this.querySelector("ul"), this.shadowRoot.querySelector("#search"));
|
|
1441
1377
|
}
|
|
1442
1378
|
}
|
|
1443
|
-
window.customElements.get("iam-filterlist") || window.customElements.define("iam-filterlist",
|
|
1444
|
-
const
|
|
1379
|
+
window.customElements.get("iam-filterlist") || window.customElements.define("iam-filterlist", ya);
|
|
1380
|
+
const _a = {
|
|
1445
1381
|
name: "Filter list"
|
|
1446
1382
|
};
|
|
1447
|
-
function
|
|
1448
|
-
return
|
|
1449
|
-
|
|
1383
|
+
function ga(t, a, e, i, r, s) {
|
|
1384
|
+
return o(), l("iam-filterlist", null, [
|
|
1385
|
+
u(t.$slots, "default")
|
|
1450
1386
|
]);
|
|
1451
1387
|
}
|
|
1452
|
-
const
|
|
1453
|
-
function
|
|
1388
|
+
const ts = /* @__PURE__ */ m(_a, [["render", ga]]);
|
|
1389
|
+
function va(t) {
|
|
1454
1390
|
if (t.hasAttribute("data-type") && t.getAttribute("data-type") == "toast") {
|
|
1455
1391
|
let e = document.querySelector(".notification__holder");
|
|
1456
1392
|
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);
|
|
1457
1393
|
}
|
|
1458
1394
|
if (t.setAttribute("role", "alert"), t.addEventListener("click", function(e) {
|
|
1459
|
-
event && event.target instanceof HTMLElement && event.target.closest("[data-dismiss-button]") && (e.preventDefault(),
|
|
1395
|
+
event && event.target instanceof HTMLElement && event.target.closest("[data-dismiss-button]") && (e.preventDefault(), T(t));
|
|
1460
1396
|
}, !1), t.hasAttribute("data-timeout")) {
|
|
1461
1397
|
let e = t.getAttribute("data-timeout");
|
|
1462
|
-
var
|
|
1463
|
-
|
|
1398
|
+
var a = new wa(function() {
|
|
1399
|
+
T(t);
|
|
1464
1400
|
}, e);
|
|
1465
|
-
t.addEventListener("mouseenter", (
|
|
1466
|
-
|
|
1467
|
-
}), t.addEventListener("mouseleave", (
|
|
1468
|
-
|
|
1401
|
+
t.addEventListener("mouseenter", (i) => {
|
|
1402
|
+
a.pause();
|
|
1403
|
+
}), t.addEventListener("mouseleave", (i) => {
|
|
1404
|
+
a.resume();
|
|
1469
1405
|
});
|
|
1470
1406
|
}
|
|
1471
1407
|
}
|
|
1472
|
-
function
|
|
1473
|
-
var e,
|
|
1408
|
+
function wa(t, a) {
|
|
1409
|
+
var e, i, r = a;
|
|
1474
1410
|
this.pause = function() {
|
|
1475
|
-
window.clearTimeout(e),
|
|
1411
|
+
window.clearTimeout(e), r -= /* @__PURE__ */ new Date() - i;
|
|
1476
1412
|
}, this.resume = function() {
|
|
1477
|
-
|
|
1413
|
+
i = /* @__PURE__ */ new Date(), window.clearTimeout(e), e = window.setTimeout(t, r);
|
|
1478
1414
|
}, this.resume();
|
|
1479
1415
|
}
|
|
1480
|
-
const
|
|
1416
|
+
const T = function(t) {
|
|
1481
1417
|
t.classList.add("d-none");
|
|
1482
1418
|
};
|
|
1483
1419
|
window.dataLayer = window.dataLayer || [];
|
|
@@ -1485,32 +1421,32 @@ window.dataLayer.push({
|
|
|
1485
1421
|
event: "customElementRegistered",
|
|
1486
1422
|
element: "Notification"
|
|
1487
1423
|
});
|
|
1488
|
-
class $
|
|
1424
|
+
class $a extends HTMLElement {
|
|
1489
1425
|
constructor() {
|
|
1490
1426
|
super(), this.attachShadow({ mode: "open" });
|
|
1491
|
-
const
|
|
1492
|
-
Array.from(
|
|
1493
|
-
|
|
1494
|
-
}), (
|
|
1427
|
+
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`, i = `@import "${a}/css/components/notification.css";`, r = `@import "${a}/css/components/notification.global.css";`, s = this.querySelectorAll("a,button");
|
|
1428
|
+
Array.from(s).forEach((c, h) => {
|
|
1429
|
+
c.setAttribute("slot", "btns"), c.classList.add("link");
|
|
1430
|
+
}), (s.length || this.hasAttribute("data-dismiss")) && this.classList.add("notification--dismissable");
|
|
1495
1431
|
const n = document.createElement("template");
|
|
1496
1432
|
n.innerHTML = `
|
|
1497
1433
|
<style>
|
|
1498
1434
|
@import "${e}";
|
|
1499
|
-
${
|
|
1435
|
+
${i}
|
|
1500
1436
|
${this.hasAttribute("data-css") ? `${this.getAttribute("data-css")}` : ""}
|
|
1501
1437
|
</style>
|
|
1502
1438
|
|
|
1503
1439
|
<div class="notification">
|
|
1504
1440
|
<div class="notification__icon"><slot name="icon"></slot></div>
|
|
1505
|
-
<div class="notification__inner"><div class="notification__text"><slot></slot></div>${
|
|
1506
|
-
${this.hasAttribute("data-dismiss") ? '<div class="notification__dismiss"><button data-dismiss-button>Dismiss</button></div>' : ""}
|
|
1441
|
+
<div class="notification__inner"><div class="notification__text"><slot></slot></div>${s.length ? '<div class="notification__btns"><slot name="btns"></slot></div>' : ""}</div>
|
|
1442
|
+
${this.hasAttribute("data-dismiss") ? '<div class="notification__dismiss"><button data-dismiss-button part="dismiss-btn">Dismiss</button></div>' : ""}
|
|
1507
1443
|
</div>
|
|
1508
|
-
`, this.shadowRoot.appendChild(n.content.cloneNode(!0)), document.getElementById("notificationHolder") || document.head.insertAdjacentHTML("beforeend", `<style id="notificationHolder">${
|
|
1444
|
+
`, this.shadowRoot.appendChild(n.content.cloneNode(!0)), document.getElementById("notificationHolder") || document.head.insertAdjacentHTML("beforeend", `<style id="notificationHolder">${r}</style>`);
|
|
1509
1445
|
}
|
|
1510
1446
|
connectedCallback() {
|
|
1511
|
-
const
|
|
1447
|
+
const a = this.shadowRoot.querySelector("[data-dismiss-button]"), e = this.hasAttribute("data-status") ? this.getAttribute("data-status") : "white";
|
|
1512
1448
|
this.hasAttribute("data-type") ? this.classList.add(`bg-${e}`) : this.classList.add(`colour-${e}`);
|
|
1513
|
-
const
|
|
1449
|
+
const i = this;
|
|
1514
1450
|
if (!this.querySelector("i"))
|
|
1515
1451
|
switch (e) {
|
|
1516
1452
|
case "danger":
|
|
@@ -1525,31 +1461,31 @@ class $i extends HTMLElement {
|
|
|
1525
1461
|
default:
|
|
1526
1462
|
this.innerHTML += '<i class="fa-solid fa-circle-info" aria-hidden="true" slot="icon"></i>';
|
|
1527
1463
|
}
|
|
1528
|
-
|
|
1529
|
-
|
|
1464
|
+
va(i), a && a.addEventListener("click", function(r) {
|
|
1465
|
+
T(i);
|
|
1530
1466
|
}, !1);
|
|
1531
1467
|
}
|
|
1532
1468
|
}
|
|
1533
|
-
const
|
|
1469
|
+
const ka = {
|
|
1534
1470
|
name: "Notification",
|
|
1535
1471
|
props: {},
|
|
1536
1472
|
created() {
|
|
1537
1473
|
this.$nextTick(function() {
|
|
1538
|
-
window.customElements.get("iam-notification") || window.customElements.define("iam-notification", $
|
|
1474
|
+
window.customElements.get("iam-notification") || window.customElements.define("iam-notification", $a);
|
|
1539
1475
|
});
|
|
1540
1476
|
}
|
|
1541
1477
|
};
|
|
1542
|
-
function
|
|
1543
|
-
return
|
|
1544
|
-
|
|
1478
|
+
function Aa(t, a, e, i, r, s) {
|
|
1479
|
+
return o(), l("iam-notification", null, [
|
|
1480
|
+
u(t.$slots, "default")
|
|
1545
1481
|
]);
|
|
1546
1482
|
}
|
|
1547
|
-
const
|
|
1483
|
+
const as = /* @__PURE__ */ m(ka, [["render", Aa]]), La = {
|
|
1548
1484
|
name: "Actionbar",
|
|
1549
1485
|
props: {},
|
|
1550
1486
|
mounted() {
|
|
1551
1487
|
this.$nextTick(function() {
|
|
1552
|
-
import("./actionbar.component.min-
|
|
1488
|
+
import("./actionbar.component.min-167ba759.mjs").then((t) => {
|
|
1553
1489
|
window.customElements.get("iam-actionbar") || window.customElements.define("iam-actionbar", t.default);
|
|
1554
1490
|
}).catch((t) => {
|
|
1555
1491
|
console.log(t.message);
|
|
@@ -1557,24 +1493,24 @@ const ia = /* @__PURE__ */ p(ki, [["render", xi]]), Ai = {
|
|
|
1557
1493
|
});
|
|
1558
1494
|
}
|
|
1559
1495
|
};
|
|
1560
|
-
function
|
|
1561
|
-
return
|
|
1562
|
-
|
|
1496
|
+
function Sa(t, a, e, i, r, s) {
|
|
1497
|
+
return o(), l("iam-actionbar", null, [
|
|
1498
|
+
u(t.$slots, "default")
|
|
1563
1499
|
]);
|
|
1564
1500
|
}
|
|
1565
|
-
const
|
|
1501
|
+
const ss = /* @__PURE__ */ m(La, [["render", Sa]]);
|
|
1566
1502
|
/*!
|
|
1567
|
-
* iamKey v5.6.1-
|
|
1503
|
+
* iamKey v5.6.1-beta21
|
|
1568
1504
|
* Copyright 2022-2024 iamproperty
|
|
1569
1505
|
*/
|
|
1570
|
-
class
|
|
1506
|
+
class R extends HTMLElement {
|
|
1571
1507
|
constructor() {
|
|
1572
1508
|
super(), this.attachShadow({ mode: "open" });
|
|
1573
|
-
const
|
|
1574
|
-
|
|
1509
|
+
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`, i = document.createElement("template");
|
|
1510
|
+
i.innerHTML = `
|
|
1575
1511
|
<style>
|
|
1576
1512
|
@import "${e}";
|
|
1577
|
-
: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{
|
|
1513
|
+
: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:calc(3.25rem - 1em);line-height:calc(3.25rem - 1em);margin-left:-1rem;font-weight:bold}.pagination div:is(.page-jump,.per-page) div:has(>select){margin-bottom:0}.pagination div:is(.page-jump,.per-page) div:has(>select):after{top:50%}.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;color:var(--colour-body)}@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(--pagination-link-color);color:var(--colour-hover)}*:where(.prev,.next):is(:active):not(:disabled){background-color:var(--pagination-link-color);color:var(--colour-active)}*: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 */
|
|
1578
1514
|
|
|
1579
1515
|
|
|
1580
1516
|
${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
|
|
@@ -1609,36 +1545,36 @@ class z extends HTMLElement {
|
|
|
1609
1545
|
<button class="load-more btn btn-primary m-auto">Load more</a>
|
|
1610
1546
|
</div>
|
|
1611
1547
|
</div>
|
|
1612
|
-
`, this.shadowRoot.appendChild(
|
|
1548
|
+
`, this.shadowRoot.appendChild(i.content.cloneNode(!0));
|
|
1613
1549
|
}
|
|
1614
1550
|
connectedCallback() {
|
|
1615
|
-
const
|
|
1616
|
-
this.hasAttribute("data-total") || this.setAttribute("data-total", 15), this.hasAttribute("data-page") || this.setAttribute("data-page",
|
|
1617
|
-
const e = this.shadowRoot.querySelector(".page-jump select"),
|
|
1618
|
-
this.setup(), e.addEventListener("change", (
|
|
1619
|
-
this.setAttribute("data-show", this.getAttribute("data-increment")), this.setAttribute("data-page",
|
|
1620
|
-
}),
|
|
1551
|
+
const a = new URLSearchParams(window.location.search);
|
|
1552
|
+
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"));
|
|
1553
|
+
const e = this.shadowRoot.querySelector(".page-jump select"), i = this.shadowRoot.querySelector(".prev"), r = this.shadowRoot.querySelector(".next"), s = this.shadowRoot.querySelector(".per-page select"), n = this.shadowRoot.querySelector(".load-more");
|
|
1554
|
+
this.setup(), e.addEventListener("change", (c) => {
|
|
1555
|
+
this.setAttribute("data-show", this.getAttribute("data-increment")), this.setAttribute("data-page", c.target.value);
|
|
1556
|
+
}), r.addEventListener("click", (c) => {
|
|
1621
1557
|
e.value = parseInt(e.value) + 1, e.dispatchEvent(new Event("change"));
|
|
1622
|
-
}),
|
|
1558
|
+
}), i.addEventListener("click", (c) => {
|
|
1623
1559
|
e.value = parseInt(e.value) - 1, e.dispatchEvent(new Event("change"));
|
|
1624
|
-
}),
|
|
1625
|
-
this.setAttribute("data-increment",
|
|
1626
|
-
}), n.addEventListener("click", (
|
|
1627
|
-
let
|
|
1628
|
-
this.setAttribute("data-show",
|
|
1560
|
+
}), s.addEventListener("change", (c) => {
|
|
1561
|
+
this.setAttribute("data-increment", c.target.value);
|
|
1562
|
+
}), n.addEventListener("click", (c) => {
|
|
1563
|
+
let h = parseInt(this.getAttribute("data-show")) + parseInt(this.getAttribute("data-increment"));
|
|
1564
|
+
this.setAttribute("data-show", h), h > parseInt(this.getAttribute("data-total")) && n.remove();
|
|
1629
1565
|
});
|
|
1630
1566
|
}
|
|
1631
1567
|
setup() {
|
|
1632
|
-
const
|
|
1633
|
-
|
|
1634
|
-
let
|
|
1635
|
-
for (let
|
|
1636
|
-
|
|
1637
|
-
e.innerHTML =
|
|
1638
|
-
let
|
|
1639
|
-
|
|
1640
|
-
const
|
|
1641
|
-
f && n.value != f && !
|
|
1568
|
+
const a = this.shadowRoot.querySelector(".pagination"), e = this.shadowRoot.querySelector(".page-jump select"), i = this.shadowRoot.querySelector(".prev"), r = this.shadowRoot.querySelector(".next"), s = this.shadowRoot.querySelector(".item-count"), n = this.shadowRoot.querySelector(".per-page select"), c = this.shadowRoot.querySelector(".total-pages"), h = parseInt(this.getAttribute("data-page")), _ = parseInt(this.getAttribute("data-total")), g = parseInt(this.getAttribute("data-show")), f = parseInt(this.getAttribute("data-increment")), S = Math.ceil(_ / f);
|
|
1569
|
+
_ > g && a.classList.remove("d-none");
|
|
1570
|
+
let E = "";
|
|
1571
|
+
for (let A = 1; A <= S; A++)
|
|
1572
|
+
E += `<option value="${A}" ${A == h ? "selected" : ""}>${A}</option>`;
|
|
1573
|
+
e.innerHTML = E, c.innerHTML = `of ${S}`, h == S ? r.setAttribute("disabled", "disabled") : r.removeAttribute("disabled"), h == 1 ? i.setAttribute("disabled", "disabled") : i.removeAttribute("disabled");
|
|
1574
|
+
let j = h == 1 ? 1 : (h - 1) * g + 1, H = h == 1 ? g : h * g;
|
|
1575
|
+
s.innerHTML = `${j} - ${H > _ ? _ : H} of ${_} items`;
|
|
1576
|
+
const I = [15, 25, 40, 50];
|
|
1577
|
+
f && n.value != f && !I.includes(f) && (n.innerHTML = `<option value="${f}">${f}</option>
|
|
1642
1578
|
<option value="${f * 2}">${f * 2}</option>
|
|
1643
1579
|
<option value="${f * 3}">${f * 3}</option>
|
|
1644
1580
|
<option value="${f * 4}">${f * 4}</option>`), n.value = f;
|
|
@@ -1646,50 +1582,50 @@ class z extends HTMLElement {
|
|
|
1646
1582
|
static get observedAttributes() {
|
|
1647
1583
|
return ["data-total", "data-increment", "data-page", "data-show"];
|
|
1648
1584
|
}
|
|
1649
|
-
attributeChangedCallback(
|
|
1650
|
-
switch (
|
|
1585
|
+
attributeChangedCallback(a, e, i) {
|
|
1586
|
+
switch (a) {
|
|
1651
1587
|
case "data-total": {
|
|
1652
|
-
e !=
|
|
1588
|
+
e != i && (this.setAttribute("data-page", 1), this.setup());
|
|
1653
1589
|
break;
|
|
1654
1590
|
}
|
|
1655
1591
|
case "data-show": {
|
|
1656
|
-
e !=
|
|
1592
|
+
e != i && (this.setAttribute("data-page", 1), this.setup(), this.dispatchEvent(new CustomEvent("update-show", { detail: { show: i } })));
|
|
1657
1593
|
break;
|
|
1658
1594
|
}
|
|
1659
1595
|
case "data-increment": {
|
|
1660
|
-
e !=
|
|
1596
|
+
e != i && (this.setAttribute("data-show", i), this.setAttribute("data-page", 1), this.setup(), this.dispatchEvent(new CustomEvent("update-show", { detail: { show: i } })));
|
|
1661
1597
|
break;
|
|
1662
1598
|
}
|
|
1663
1599
|
case "data-page": {
|
|
1664
|
-
e && e !=
|
|
1600
|
+
e && e != i && (this.setup(), this.dispatchEvent(new CustomEvent("update-page", { detail: { page: i } })));
|
|
1665
1601
|
break;
|
|
1666
1602
|
}
|
|
1667
1603
|
}
|
|
1668
1604
|
}
|
|
1669
1605
|
}
|
|
1670
|
-
const
|
|
1606
|
+
const xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1671
1607
|
__proto__: null,
|
|
1672
|
-
default:
|
|
1673
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1608
|
+
default: R
|
|
1609
|
+
}, Symbol.toStringTag, { value: "Module" })), qa = {
|
|
1674
1610
|
name: "Pagination",
|
|
1675
1611
|
props: {},
|
|
1676
1612
|
computed: {},
|
|
1677
1613
|
created() {
|
|
1678
1614
|
this.$nextTick(function() {
|
|
1679
|
-
window.customElements.get("iam-pagination") || window.customElements.define("iam-pagination",
|
|
1615
|
+
window.customElements.get("iam-pagination") || window.customElements.define("iam-pagination", R);
|
|
1680
1616
|
});
|
|
1681
1617
|
},
|
|
1682
1618
|
updated() {
|
|
1683
1619
|
}
|
|
1684
1620
|
};
|
|
1685
|
-
function
|
|
1686
|
-
return
|
|
1621
|
+
function Ta(t, a, e, i, r, s) {
|
|
1622
|
+
return o(), l("iam-pagination");
|
|
1687
1623
|
}
|
|
1688
|
-
const
|
|
1624
|
+
const is = /* @__PURE__ */ m(qa, [["render", Ta]]), Ea = {
|
|
1689
1625
|
name: "Address Lookup",
|
|
1690
1626
|
mounted() {
|
|
1691
1627
|
this.$nextTick(function() {
|
|
1692
|
-
import("./address-lookup.component.min-
|
|
1628
|
+
import("./address-lookup.component.min-16beabdf.mjs").then((t) => {
|
|
1693
1629
|
window.customElements.get("iam-address-lookup") || window.customElements.define("iam-address-lookup", t.default);
|
|
1694
1630
|
}).catch((t) => {
|
|
1695
1631
|
console.log(t.message);
|
|
@@ -1697,105 +1633,104 @@ const na = /* @__PURE__ */ p(Ti, [["render", qi]]), Ei = {
|
|
|
1697
1633
|
});
|
|
1698
1634
|
}
|
|
1699
1635
|
};
|
|
1700
|
-
function
|
|
1701
|
-
return
|
|
1702
|
-
|
|
1636
|
+
function Ha(t, a, e, i, r, s) {
|
|
1637
|
+
return o(), l("iam-address-lookup", null, [
|
|
1638
|
+
u(t.$slots, "default")
|
|
1703
1639
|
]);
|
|
1704
1640
|
}
|
|
1705
|
-
const
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
class
|
|
1641
|
+
const ns = /* @__PURE__ */ m(Ea, [["render", Ha]]);
|
|
1642
|
+
window.dataLayer = window.dataLayer || [];
|
|
1643
|
+
window.dataLayer.push({
|
|
1644
|
+
event: "customElementRegistered",
|
|
1645
|
+
element: "collapsible side menu"
|
|
1646
|
+
});
|
|
1647
|
+
class Ma extends HTMLElement {
|
|
1712
1648
|
constructor() {
|
|
1713
1649
|
super(), this.attachShadow({ mode: "open" });
|
|
1714
|
-
const
|
|
1715
|
-
|
|
1650
|
+
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`, i = `@import "${a}/css/components/collapsible-side.css";`, r = document.createElement("template");
|
|
1651
|
+
r.innerHTML = `
|
|
1716
1652
|
<style class="styles">
|
|
1717
1653
|
@import "${e}";
|
|
1718
|
-
|
|
1719
|
-
|
|
1654
|
+
${i}
|
|
1720
1655
|
${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
|
|
1721
1656
|
</style>
|
|
1722
1657
|
<link rel="stylesheet" href="https://kit.fontawesome.com/26fdbf0179.css" crossorigin="anonymous">
|
|
1723
1658
|
<div class="container" part="container">
|
|
1724
1659
|
|
|
1725
|
-
<div class="side-menu">
|
|
1726
|
-
<button class="btn btn-compact fa-chevron-right btn-secondary btn-sm btn-collapse">Open or close Collapsible menu</button>
|
|
1727
|
-
<div class="side-menu-content closed">
|
|
1660
|
+
<div class="side-menu" part="side-menu">
|
|
1661
|
+
<button class="btn btn-compact fa-chevron-right btn-secondary btn-sm btn-collapse" part="btn">Open or close Collapsible menu</button>
|
|
1662
|
+
<div class="side-menu-content closed" part="side-menu-content">
|
|
1728
1663
|
<slot name="menu"></slot>
|
|
1729
1664
|
</div>
|
|
1730
1665
|
</div>
|
|
1731
1666
|
|
|
1732
|
-
<div class="main-content">
|
|
1667
|
+
<div class="main-content" part="main-content">
|
|
1733
1668
|
<slot></slot>
|
|
1734
1669
|
</div>
|
|
1735
1670
|
|
|
1736
1671
|
</div>
|
|
1737
|
-
`, this.shadowRoot.appendChild(
|
|
1672
|
+
`, this.shadowRoot.appendChild(r.content.cloneNode(!0));
|
|
1738
1673
|
}
|
|
1739
1674
|
connectedCallback() {
|
|
1740
|
-
const
|
|
1741
|
-
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>`),
|
|
1742
|
-
|
|
1675
|
+
const a = this.shadowRoot.querySelector(".side-menu"), e = this.shadowRoot.querySelector(".side-menu-content"), i = this.shadowRoot.querySelector(".main-content"), r = this.shadowRoot.querySelector(".side-menu > .btn");
|
|
1676
|
+
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>`), i.insertAdjacentHTML("afterbegin", `<span class="h3">${this.getAttribute("data-title")}</span>`), this.querySelector(":scope > :is(h1,h2,h3,h4,h5,h6)") && (this.querySelector(":scope > :is(h1,h2,h3,h4,h5,h6)").classList.add("h4"), this.querySelector(":scope > :is(h1,h2,h3,h4,h5,h6)").classList.add("main-content__title")), this.hasAttribute("open") && window.innerWidth > 992 && (a.classList.add("open"), r.setAttribute("aria-expanded", !0)), r.addEventListener("click", (s) => {
|
|
1677
|
+
a.classList.contains("open") ? (a.classList.remove("open"), r.removeAttribute("aria-expanded"), setTimeout(function() {
|
|
1743
1678
|
e.classList.add("closed");
|
|
1744
|
-
}, 1e3),
|
|
1745
|
-
|
|
1679
|
+
}, 1e3), a.classList.add("pe-none"), setTimeout(function() {
|
|
1680
|
+
a.classList.remove("pe-none");
|
|
1746
1681
|
}, 1e3)) : (e.classList.remove("closed"), setTimeout(function() {
|
|
1747
|
-
|
|
1682
|
+
a.classList.add("open"), r.setAttribute("aria-expanded", !0);
|
|
1748
1683
|
}, 100));
|
|
1749
|
-
}),
|
|
1750
|
-
window.innerWidth > 992 && (
|
|
1751
|
-
}),
|
|
1752
|
-
window.innerWidth > 992 && (
|
|
1753
|
-
}),
|
|
1754
|
-
window.innerWidth > 992 && (
|
|
1684
|
+
}), a.addEventListener("mouseenter", (s) => {
|
|
1685
|
+
window.innerWidth > 992 && (a.classList.contains("open") || e.classList.remove("closed"), a.classList.add("hover"));
|
|
1686
|
+
}), a.addEventListener("mousemove", (s) => {
|
|
1687
|
+
window.innerWidth > 992 && (a.classList.contains("open") || e.classList.remove("closed"));
|
|
1688
|
+
}), a.addEventListener("mouseleave", (s) => {
|
|
1689
|
+
window.innerWidth > 992 && (a.classList.remove("hover"), a.classList.contains("open") || setTimeout(function() {
|
|
1755
1690
|
e.classList.add("closed");
|
|
1756
1691
|
}, 1e3));
|
|
1757
1692
|
});
|
|
1758
1693
|
}
|
|
1759
1694
|
}
|
|
1760
|
-
window.customElements.get("iam-collapsible-side") || window.customElements.define("iam-collapsible-side",
|
|
1761
|
-
const
|
|
1695
|
+
window.customElements.get("iam-collapsible-side") || window.customElements.define("iam-collapsible-side", Ma);
|
|
1696
|
+
const Ca = {
|
|
1762
1697
|
name: "CollapsibleSideMenu",
|
|
1763
1698
|
props: {},
|
|
1764
1699
|
mounted() {
|
|
1765
1700
|
}
|
|
1766
1701
|
};
|
|
1767
|
-
function
|
|
1768
|
-
return
|
|
1769
|
-
|
|
1702
|
+
function Na(t, a, e, i, r, s) {
|
|
1703
|
+
return o(), l("iam-collapsible-side", null, [
|
|
1704
|
+
u(t.$slots, "default")
|
|
1770
1705
|
]);
|
|
1771
1706
|
}
|
|
1772
|
-
const
|
|
1707
|
+
const os = /* @__PURE__ */ m(Ca, [["render", Na]]);
|
|
1773
1708
|
export {
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1709
|
+
Ia as Accordion,
|
|
1710
|
+
Da as AccordionItem,
|
|
1711
|
+
ss as Actionbar,
|
|
1712
|
+
ns as AddressLookup,
|
|
1713
|
+
es as AppliedFilters,
|
|
1714
|
+
Va as Banner,
|
|
1715
|
+
Fa as Card,
|
|
1716
|
+
za as Carousel,
|
|
1717
|
+
os as CollapsibleSideMenu,
|
|
1718
|
+
ja as FileUpload,
|
|
1719
|
+
ts as Filterlist,
|
|
1720
|
+
Ba as Header,
|
|
1721
|
+
N as Input,
|
|
1722
|
+
Ra as Logo,
|
|
1723
|
+
Ka as Nav,
|
|
1724
|
+
Za as NoteFeed,
|
|
1725
|
+
as as Notification,
|
|
1726
|
+
is as Pagination,
|
|
1727
|
+
Wa as PropertySearchbar,
|
|
1728
|
+
Ja as Snapshot,
|
|
1729
|
+
Qa as Step,
|
|
1730
|
+
Ga as Stepper,
|
|
1731
|
+
Xa as Tab,
|
|
1732
|
+
C as Table,
|
|
1733
|
+
Ya as Tabs,
|
|
1734
|
+
Oa as Testimonial,
|
|
1735
|
+
Ua as Timeline
|
|
1801
1736
|
};
|