@iamproperty/components 5.6.0 → 5.6.1-beta10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/css/components/card.css +1 -1
- package/assets/css/components/card.css.map +1 -1
- package/assets/css/components/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/inline-edit.preload.css +1 -1
- package/assets/css/components/inline-edit.preload.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/table.global.css +1 -1
- package/assets/css/components/table.global.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 +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 +3 -3
- package/assets/js/components/address-lookup/address-lookup.component.min.js +6 -6
- 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 +5 -4
- package/assets/js/components/card/card.component.min.js +9 -9
- package/assets/js/components/card/card.component.min.js.map +1 -1
- package/assets/js/components/carousel/carousel.component.js +3 -3
- package/assets/js/components/carousel/carousel.component.min.js +5 -5
- package/assets/js/components/carousel/carousel.component.min.js.map +1 -1
- package/assets/js/components/collapsible-side/collapsible-side.component.js +14 -10
- package/assets/js/components/collapsible-side/collapsible-side.component.min.js +14 -14
- package/assets/js/components/collapsible-side/collapsible-side.component.min.js.map +1 -1
- package/assets/js/components/fileupload/fileupload.component.js +3 -3
- package/assets/js/components/fileupload/fileupload.component.min.js +8 -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 +11 -3
- package/assets/js/components/inline-edit/inline-edit.component.min.js +7 -7
- 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 +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/slider/slider.component.min.js +1 -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 +2 -2
- package/assets/js/dynamic.min.js +5 -5
- package/assets/js/dynamic.min.js.map +1 -1
- package/assets/js/modules/dialogs.js +10 -5
- package/assets/js/modules/dynamicEvents.js +3 -0
- package/assets/js/modules/fileupload.js +2 -9
- package/assets/js/modules/helpers.js +4 -0
- package/assets/js/scripts.bundle.js +17 -17
- 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 +47 -0
- package/assets/sass/_functions/variables.scss +1 -1
- package/assets/sass/components/card.scss +88 -1
- package/assets/sass/components/collapsible-side.scss +63 -48
- package/assets/sass/components/fileupload.scss +1 -0
- package/assets/sass/components/inline-edit.preload.scss +57 -3
- package/assets/sass/components/multiselect.scss +5 -1
- package/assets/sass/components/table.global.scss +4 -19
- package/assets/sass/components/tabs.scss +1 -6
- package/assets/sass/elements/buttons.scss +1 -1
- package/assets/sass/elements/dialog.scss +29 -1
- package/assets/sass/elements/forms.scss +40 -9
- package/assets/sass/elements/progress.scss +159 -17
- package/assets/sass/foundations/reboot.scss +3 -3
- package/assets/sass/foundations/root.scss +2 -2
- package/assets/ts/components/actionbar/actionbar.component.ts +7 -7
- package/assets/ts/components/address-lookup/address-lookup.component.ts +3 -3
- package/assets/ts/components/card/card.component.ts +6 -4
- package/assets/ts/components/carousel/carousel.component.ts +3 -3
- package/assets/ts/components/collapsible-side/collapsible-side.component.ts +17 -11
- package/assets/ts/components/fileupload/fileupload.component.ts +3 -3
- package/assets/ts/components/filterlist/filterlist.component.ts +2 -2
- package/assets/ts/components/inline-edit/inline-edit.component.ts +15 -4
- package/assets/ts/components/multiselect/multiselect.component.ts +4 -3
- package/assets/ts/components/notification/notification.component.ts +1 -1
- package/assets/ts/modules/dialogs.ts +13 -5
- package/assets/ts/modules/dynamicEvents.ts +3 -0
- package/assets/ts/modules/fileupload.ts +3 -14
- package/assets/ts/modules/helpers.ts +6 -0
- package/dist/components.es.js +550 -621
- package/dist/components.umd.js +86 -86
- package/dist/style.css +1 -1
- package/package.json +4 -4
- package/src/components/Card/README.md +1 -0
- 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 x, mergeProps as w, vModelDynamic as S, 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 Pa = /* @__PURE__ */ m(U, [["render", G]]), Q = (t) => t.charAt(0).toUpperCase() + t.slice(1), Y = (t) => t.replace(/_/g, " "), J = (t) => t.replace(/ /g, "_"), X = function(t) {
|
|
50
|
+
return t = t.toLowerCase(), t = J(t), t = t.replace(/\W/g, ""), t;
|
|
51
|
+
}, Z = {
|
|
52
52
|
name: "Table",
|
|
53
53
|
props: {
|
|
54
54
|
items: {
|
|
@@ -62,7 +62,7 @@ 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) => `${Q(Y(t))}`;
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
created() {
|
|
@@ -71,7 +71,7 @@ const Pi = /* @__PURE__ */ p(B, [["render", W]]), K = (t) => t.charAt(0).toUpper
|
|
|
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(() => La).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"], xe = ["value"];
|
|
304
|
+
function Le(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() ? x((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
|
+
[S, s.inputVal]
|
|
341
|
+
]) : p("", !0),
|
|
342
|
+
e.type == "textarea" ? x((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
|
+
x(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
|
+
[S, 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
|
+
x(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
|
+
[S, 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" ? x((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, xe))), 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", Le]]), Se = {
|
|
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-625bb079.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
|
+
}, Ra = /* @__PURE__ */ Object.assign(Se, {
|
|
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-d924027b.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 ja = /* @__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 Ia = /* @__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 Da = /* @__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-9f366742.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 Va = /* @__PURE__ */ m(ze, [["render", Be]]), Oe = {
|
|
679
609
|
name: "Header",
|
|
680
610
|
props: {
|
|
681
611
|
title: {
|
|
@@ -689,7 +619,7 @@ const Fi = /* @__PURE__ */ p(Be, [["render", Ue]]), Oe = {
|
|
|
689
619
|
},
|
|
690
620
|
mounted() {
|
|
691
621
|
this.$nextTick(function() {
|
|
692
|
-
import("./carousel.component.min-
|
|
622
|
+
import("./carousel.component.min-3840e135.mjs").then((t) => {
|
|
693
623
|
window.customElements.get("iam-carousel") || window.customElements.define("iam-carousel", t.default);
|
|
694
624
|
}).catch((t) => {
|
|
695
625
|
console.log(t.message);
|
|
@@ -697,12 +627,12 @@ const Fi = /* @__PURE__ */ p(Be, [["render", Ue]]), Oe = {
|
|
|
697
627
|
});
|
|
698
628
|
}
|
|
699
629
|
};
|
|
700
|
-
function
|
|
701
|
-
return
|
|
702
|
-
|
|
630
|
+
function Ue(t, a, e, i, r, s) {
|
|
631
|
+
return o(), l("iam-carousel", null, [
|
|
632
|
+
u(t.$slots, "default")
|
|
703
633
|
]);
|
|
704
634
|
}
|
|
705
|
-
const
|
|
635
|
+
const Fa = /* @__PURE__ */ m(Oe, [["render", Ue]]), We = {
|
|
706
636
|
name: "Header",
|
|
707
637
|
props: {
|
|
708
638
|
title: {
|
|
@@ -716,54 +646,54 @@ const Vi = /* @__PURE__ */ p(Oe, [["render", We]]), Ke = {
|
|
|
716
646
|
},
|
|
717
647
|
mounted() {
|
|
718
648
|
this.$nextTick(function() {
|
|
719
|
-
import("./header.component.min-
|
|
649
|
+
import("./header.component.min-55899ec0.mjs").then((t) => {
|
|
720
650
|
window.customElements.get("iam-header") || window.customElements.define("iam-header", t.default);
|
|
721
651
|
}).catch((t) => {
|
|
722
652
|
console.log(t.message);
|
|
723
653
|
});
|
|
724
654
|
});
|
|
725
655
|
}
|
|
726
|
-
},
|
|
727
|
-
function
|
|
728
|
-
return
|
|
729
|
-
|
|
730
|
-
e.title ? (
|
|
656
|
+
}, Ke = ["image"], Ge = ["innerHTML"];
|
|
657
|
+
function Qe(t, a, e, i, r, s) {
|
|
658
|
+
return o(), l("iam-header", { image: e.image }, [
|
|
659
|
+
u(t.$slots, "breadcrumb"),
|
|
660
|
+
e.title ? (o(), l("h1", {
|
|
731
661
|
key: 0,
|
|
732
662
|
innerHTML: e.title
|
|
733
|
-
}, null, 8,
|
|
734
|
-
|
|
735
|
-
], 8,
|
|
663
|
+
}, null, 8, Ge)) : p("", !0),
|
|
664
|
+
u(t.$slots, "default")
|
|
665
|
+
], 8, Ke);
|
|
736
666
|
}
|
|
737
|
-
const
|
|
738
|
-
function
|
|
739
|
-
var
|
|
740
|
-
const e = t.querySelector(".testimonial__images"),
|
|
741
|
-
if (
|
|
667
|
+
const za = /* @__PURE__ */ m(We, [["render", Qe]]);
|
|
668
|
+
function Ye(t) {
|
|
669
|
+
var a;
|
|
670
|
+
const e = t.querySelector(".testimonial__images"), i = e.querySelectorAll("img").length;
|
|
671
|
+
if (i == 1)
|
|
742
672
|
return !1;
|
|
743
673
|
t.classList.add("testimonial--multi");
|
|
744
|
-
const
|
|
745
|
-
const n = t.querySelector(".btn-next"),
|
|
746
|
-
n.setAttribute("data-go",
|
|
674
|
+
const r = function(s) {
|
|
675
|
+
const n = t.querySelector(".btn-next"), c = t.querySelector(".btn-prev");
|
|
676
|
+
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
677
|
};
|
|
748
|
-
e.addEventListener("scroll", function(
|
|
749
|
-
clearTimeout(
|
|
750
|
-
let n = e.scrollWidth,
|
|
751
|
-
|
|
678
|
+
e.addEventListener("scroll", function(s) {
|
|
679
|
+
clearTimeout(a), a = setTimeout(function() {
|
|
680
|
+
let n = e.scrollWidth, c = e.scrollHeight, h = e.scrollLeft, _ = e.scrollTop, g = Math.round(h / n * i) + 1;
|
|
681
|
+
h == 0 && _ != 0 && (g = Math.round(_ / c * i) + 1), t.setAttribute("data-show", g), r(g);
|
|
752
682
|
}, 300);
|
|
753
|
-
}, !1), t.addEventListener("click", function(
|
|
754
|
-
for (var n =
|
|
683
|
+
}, !1), t.addEventListener("click", function(s) {
|
|
684
|
+
for (var n = s.target; n && n != this; n = n.parentNode)
|
|
755
685
|
if (n.matches("[data-go]")) {
|
|
756
|
-
let
|
|
757
|
-
g > f ?
|
|
758
|
-
top:
|
|
759
|
-
left:
|
|
686
|
+
let c = parseInt(n.getAttribute("data-go")), h = 0, _ = 0, g = e.scrollWidth, f = e.scrollHeight;
|
|
687
|
+
g > f ? _ = Math.floor(g * ((c - 1) / i)) : h = Math.floor(f * ((c - 1) / i)), e.scroll({
|
|
688
|
+
top: h,
|
|
689
|
+
left: _,
|
|
760
690
|
behavior: "smooth"
|
|
761
691
|
});
|
|
762
692
|
break;
|
|
763
693
|
}
|
|
764
694
|
}, !1);
|
|
765
695
|
}
|
|
766
|
-
const
|
|
696
|
+
const Je = {
|
|
767
697
|
name: "Testimonial",
|
|
768
698
|
props: {
|
|
769
699
|
items: {
|
|
@@ -777,66 +707,66 @@ const Xe = {
|
|
|
777
707
|
}
|
|
778
708
|
},
|
|
779
709
|
mounted() {
|
|
780
|
-
|
|
710
|
+
Ye(this.$refs.wrapper);
|
|
781
711
|
}
|
|
782
|
-
},
|
|
712
|
+
}, Xe = {
|
|
783
713
|
class: "container testimonial mb-5",
|
|
784
714
|
"data-show": "1",
|
|
785
715
|
ref: "wrapper"
|
|
786
|
-
},
|
|
787
|
-
/* @__PURE__ */
|
|
716
|
+
}, Ze = { class: "row" }, et = { class: "col-md-5 position-relative" }, tt = { class: "testimonial__images" }, at = ["src"], st = /* @__PURE__ */ d("div", { class: "testimonial__controls" }, [
|
|
717
|
+
/* @__PURE__ */ d("button", {
|
|
788
718
|
"data-go": "0",
|
|
789
719
|
disabled: "",
|
|
790
720
|
class: "btn-prev"
|
|
791
721
|
}, "Previous"),
|
|
792
|
-
/* @__PURE__ */
|
|
722
|
+
/* @__PURE__ */ d("button", {
|
|
793
723
|
"data-go": "2",
|
|
794
724
|
class: "btn-next"
|
|
795
725
|
}, "Next")
|
|
796
|
-
], -1),
|
|
797
|
-
function
|
|
798
|
-
return
|
|
799
|
-
|
|
800
|
-
class:
|
|
726
|
+
], -1), it = { class: "col-md-7" }, nt = /* @__PURE__ */ d("h2", null, "What our customers think…", -1), ot = { class: "testimonial__content" }, lt = ["innerHTML"], rt = ["innerHTML"], dt = { class: "testimonial__after" }, ct = /* @__PURE__ */ d("span", { class: "circle circle--dots d-none d-md-block" }, null, -1);
|
|
727
|
+
function ut(t, a, e, i, r, s) {
|
|
728
|
+
return o(), l("div", Xe, [
|
|
729
|
+
d("div", {
|
|
730
|
+
class: b("bg-" + e.background)
|
|
801
731
|
}, [
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
(
|
|
806
|
-
key:
|
|
732
|
+
d("div", Ze, [
|
|
733
|
+
d("div", et, [
|
|
734
|
+
d("div", tt, [
|
|
735
|
+
(o(!0), l($, null, k(e.items, (n, c) => (o(), l("img", {
|
|
736
|
+
key: c,
|
|
807
737
|
src: n.image ? n.image : "data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",
|
|
808
738
|
alt: "",
|
|
809
|
-
class:
|
|
739
|
+
class: b("h-100 w-100 object-cover" + (n.image ? "" : " opacity-0"))
|
|
810
740
|
}, null, 10, at))), 128))
|
|
811
741
|
]),
|
|
812
|
-
|
|
742
|
+
st
|
|
813
743
|
]),
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
(
|
|
818
|
-
key:
|
|
819
|
-
class:
|
|
744
|
+
d("div", it, [
|
|
745
|
+
nt,
|
|
746
|
+
d("div", ot, [
|
|
747
|
+
(o(!0), l($, null, k(e.items, (n, c) => (o(), l("blockquote", {
|
|
748
|
+
key: c,
|
|
749
|
+
class: b(n.class)
|
|
820
750
|
}, [
|
|
821
|
-
|
|
751
|
+
d("div", {
|
|
822
752
|
innerHTML: n.quote
|
|
823
753
|
}, null, 8, lt),
|
|
824
|
-
|
|
754
|
+
d("cite", {
|
|
825
755
|
innerHTML: n.cite
|
|
826
|
-
}, null, 8,
|
|
756
|
+
}, null, 8, rt)
|
|
827
757
|
], 2))), 128))
|
|
828
758
|
]),
|
|
829
|
-
|
|
830
|
-
|
|
759
|
+
d("div", dt, [
|
|
760
|
+
u(t.$slots, "default")
|
|
831
761
|
])
|
|
832
762
|
])
|
|
833
763
|
]),
|
|
834
|
-
|
|
764
|
+
ct
|
|
835
765
|
], 2)
|
|
836
766
|
], 512);
|
|
837
767
|
}
|
|
838
|
-
const
|
|
839
|
-
const
|
|
768
|
+
const Ba = /* @__PURE__ */ m(Je, [["render", ut]]);
|
|
769
|
+
const mt = {
|
|
840
770
|
name: "Timeline",
|
|
841
771
|
props: {
|
|
842
772
|
image: {
|
|
@@ -844,23 +774,23 @@ const pt = {
|
|
|
844
774
|
required: !1
|
|
845
775
|
}
|
|
846
776
|
}
|
|
847
|
-
},
|
|
848
|
-
function
|
|
849
|
-
return
|
|
850
|
-
|
|
851
|
-
|
|
777
|
+
}, pt = { class: "timeline" }, ht = { class: "timeline__content" }, ft = ["src"];
|
|
778
|
+
function bt(t, a, e, i, r, s) {
|
|
779
|
+
return o(), l("div", pt, [
|
|
780
|
+
d("div", ht, [
|
|
781
|
+
u(t.$slots, "default")
|
|
852
782
|
]),
|
|
853
|
-
e.image ? (
|
|
783
|
+
e.image ? (o(), l("img", {
|
|
854
784
|
key: 0,
|
|
855
785
|
src: e.image,
|
|
856
786
|
alt: ""
|
|
857
|
-
}, null, 8,
|
|
787
|
+
}, null, 8, ft)) : p("", !0)
|
|
858
788
|
]);
|
|
859
789
|
}
|
|
860
|
-
const
|
|
790
|
+
const Oa = /* @__PURE__ */ m(mt, [["render", bt]]);
|
|
861
791
|
const yt = {
|
|
862
792
|
components: {
|
|
863
|
-
Input:
|
|
793
|
+
Input: N
|
|
864
794
|
},
|
|
865
795
|
name: "PropertySearchbar",
|
|
866
796
|
props: {
|
|
@@ -1007,43 +937,43 @@ const yt = {
|
|
|
1007
937
|
}, _t = {
|
|
1008
938
|
class: "container",
|
|
1009
939
|
ref: "wrapper"
|
|
1010
|
-
},
|
|
940
|
+
}, gt = { class: "property-searchbar" }, vt = ["action", "method"], wt = { class: "col-12 col-md-3" }, $t = { class: "col-12 col-md" }, kt = /* @__PURE__ */ d("span", { class: "form-label d-none d-md-block" }, "Price range", -1), At = {
|
|
1011
941
|
class: "row",
|
|
1012
942
|
"data-input-range": ""
|
|
1013
|
-
},
|
|
943
|
+
}, xt = { class: "col-12 col-md" }, Lt = /* @__PURE__ */ d("span", { class: "form-label d-none d-md-block" }, "Number of beds", -1), St = {
|
|
1014
944
|
class: "row",
|
|
1015
945
|
"data-input-range": ""
|
|
1016
|
-
}, qt = { class: "col-12 col-md-2" },
|
|
1017
|
-
/* @__PURE__ */
|
|
946
|
+
}, qt = { class: "col-12 col-md-2" }, Tt = /* @__PURE__ */ d("div", { class: "col-12 col-md mw-md-fit-content d-flex property-searchbar__btn" }, [
|
|
947
|
+
/* @__PURE__ */ d("button", {
|
|
1018
948
|
class: "btn w-100 me-0",
|
|
1019
949
|
type: "submit",
|
|
1020
950
|
value: "submit"
|
|
1021
951
|
}, "Search")
|
|
1022
952
|
], -1);
|
|
1023
|
-
function
|
|
1024
|
-
const n =
|
|
1025
|
-
return
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
953
|
+
function Et(t, a, e, i, r, s) {
|
|
954
|
+
const n = q("Input");
|
|
955
|
+
return o(), l("div", _t, [
|
|
956
|
+
u(t.$slots, "default"),
|
|
957
|
+
d("div", gt, [
|
|
958
|
+
d("form", {
|
|
1029
959
|
class: "row",
|
|
1030
960
|
action: e.formaction,
|
|
1031
961
|
method: e.formmethod
|
|
1032
962
|
}, [
|
|
1033
|
-
|
|
1034
|
-
|
|
963
|
+
d("fieldset", wt, [
|
|
964
|
+
v(n, {
|
|
1035
965
|
inputClass: "input--locations",
|
|
1036
|
-
modelValue:
|
|
1037
|
-
"onUpdate:modelValue":
|
|
966
|
+
modelValue: s.locationSet,
|
|
967
|
+
"onUpdate:modelValue": a[0] || (a[0] = (c) => s.locationSet = c),
|
|
1038
968
|
label: "Location",
|
|
1039
969
|
id: "location",
|
|
1040
|
-
options:
|
|
970
|
+
options: s.locationsList(),
|
|
1041
971
|
required: "",
|
|
1042
972
|
placeholder: "i.e. Newcastle or NE1",
|
|
1043
|
-
onKeyupEvent:
|
|
973
|
+
onKeyupEvent: a[1] || (a[1] = (c) => s.locationKeyup(...arguments)),
|
|
1044
974
|
ref: "search"
|
|
1045
975
|
}, null, 8, ["modelValue", "options"]),
|
|
1046
|
-
|
|
976
|
+
v(n, {
|
|
1047
977
|
class: "select--miles",
|
|
1048
978
|
label: "Miles",
|
|
1049
979
|
id: "miles",
|
|
@@ -1051,10 +981,10 @@ function Ht(t, i, e, s, o, a) {
|
|
|
1051
981
|
options: e.distances
|
|
1052
982
|
}, null, 8, ["options"])
|
|
1053
983
|
]),
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
984
|
+
d("fieldset", $t, [
|
|
985
|
+
kt,
|
|
986
|
+
d("div", At, [
|
|
987
|
+
v(n, {
|
|
1058
988
|
class: "col-6",
|
|
1059
989
|
label: "Minimum price",
|
|
1060
990
|
id: "price-min",
|
|
@@ -1062,7 +992,7 @@ function Ht(t, i, e, s, o, a) {
|
|
|
1062
992
|
type: "select",
|
|
1063
993
|
options: e.pricemin
|
|
1064
994
|
}, null, 8, ["options"]),
|
|
1065
|
-
|
|
995
|
+
v(n, {
|
|
1066
996
|
class: "col-6",
|
|
1067
997
|
label: "Maximum price",
|
|
1068
998
|
id: "price-max",
|
|
@@ -1072,10 +1002,10 @@ function Ht(t, i, e, s, o, a) {
|
|
|
1072
1002
|
}, null, 8, ["options"])
|
|
1073
1003
|
])
|
|
1074
1004
|
]),
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1005
|
+
d("fieldset", xt, [
|
|
1006
|
+
Lt,
|
|
1007
|
+
d("div", St, [
|
|
1008
|
+
v(n, {
|
|
1079
1009
|
class: "col-6",
|
|
1080
1010
|
label: "Minimum beds",
|
|
1081
1011
|
id: "beds-min",
|
|
@@ -1083,7 +1013,7 @@ function Ht(t, i, e, s, o, a) {
|
|
|
1083
1013
|
type: "select",
|
|
1084
1014
|
options: e.bedsmin
|
|
1085
1015
|
}, null, 8, ["options"]),
|
|
1086
|
-
|
|
1016
|
+
v(n, {
|
|
1087
1017
|
class: "col-6",
|
|
1088
1018
|
label: "Maximum beds",
|
|
1089
1019
|
id: "beds-max",
|
|
@@ -1093,26 +1023,26 @@ function Ht(t, i, e, s, o, a) {
|
|
|
1093
1023
|
}, null, 8, ["options"])
|
|
1094
1024
|
])
|
|
1095
1025
|
]),
|
|
1096
|
-
|
|
1097
|
-
|
|
1026
|
+
d("fieldset", qt, [
|
|
1027
|
+
v(n, {
|
|
1098
1028
|
label: "Property type",
|
|
1099
1029
|
id: "property-type",
|
|
1100
1030
|
type: "select",
|
|
1101
1031
|
options: e.propertytypes
|
|
1102
1032
|
}, null, 8, ["options"])
|
|
1103
1033
|
]),
|
|
1104
|
-
|
|
1105
|
-
], 8,
|
|
1034
|
+
Tt
|
|
1035
|
+
], 8, vt)
|
|
1106
1036
|
]),
|
|
1107
|
-
|
|
1037
|
+
u(t.$slots, "after")
|
|
1108
1038
|
], 512);
|
|
1109
1039
|
}
|
|
1110
|
-
const
|
|
1040
|
+
const Ua = /* @__PURE__ */ m(yt, [["render", Et]]), Ht = {
|
|
1111
1041
|
components: {},
|
|
1112
1042
|
name: "Nav",
|
|
1113
1043
|
mounted() {
|
|
1114
1044
|
this.$nextTick(function() {
|
|
1115
|
-
import("./nav.component.min-
|
|
1045
|
+
import("./nav.component.min-476aecec.mjs").then((t) => {
|
|
1116
1046
|
window.customElements.get("iam-nav") || window.customElements.define("iam-nav", t.default);
|
|
1117
1047
|
}).catch((t) => {
|
|
1118
1048
|
console.log(t.message);
|
|
@@ -1120,14 +1050,14 @@ const Wi = /* @__PURE__ */ p(yt, [["render", Ht]]), Mt = {
|
|
|
1120
1050
|
});
|
|
1121
1051
|
},
|
|
1122
1052
|
methods: {}
|
|
1123
|
-
},
|
|
1124
|
-
function
|
|
1125
|
-
return
|
|
1126
|
-
|
|
1053
|
+
}, Mt = { ref: "wrapper" };
|
|
1054
|
+
function Ct(t, a, e, i, r, s) {
|
|
1055
|
+
return o(), l("iam-nav", Mt, [
|
|
1056
|
+
u(t.$slots, "default")
|
|
1127
1057
|
], 512);
|
|
1128
1058
|
}
|
|
1129
|
-
const
|
|
1130
|
-
const
|
|
1059
|
+
const Wa = /* @__PURE__ */ m(Ht, [["render", Ct]]);
|
|
1060
|
+
const Nt = {
|
|
1131
1061
|
name: "Stepper",
|
|
1132
1062
|
props: {
|
|
1133
1063
|
label: {
|
|
@@ -1140,26 +1070,26 @@ const Rt = {
|
|
|
1140
1070
|
default: "Complete"
|
|
1141
1071
|
}
|
|
1142
1072
|
}
|
|
1143
|
-
}, Pt = { class: "container" },
|
|
1073
|
+
}, Pt = { class: "container" }, Rt = ["aria-label"], jt = {
|
|
1144
1074
|
key: 0,
|
|
1145
1075
|
class: "h6 stepper__start"
|
|
1146
1076
|
}, It = { class: "list-unstyled" }, Dt = { class: "h6 stepper__end" };
|
|
1147
|
-
function
|
|
1148
|
-
return
|
|
1149
|
-
|
|
1077
|
+
function Vt(t, a, e, i, r, s) {
|
|
1078
|
+
return o(), l("div", Pt, [
|
|
1079
|
+
d("nav", {
|
|
1150
1080
|
class: "stepper",
|
|
1151
1081
|
"aria-label": e.label ? e.label : "Progress"
|
|
1152
1082
|
}, [
|
|
1153
|
-
e.label ? (
|
|
1154
|
-
|
|
1155
|
-
|
|
1083
|
+
e.label ? (o(), l("span", jt, y(e.label), 1)) : p("", !0),
|
|
1084
|
+
d("ol", It, [
|
|
1085
|
+
u(t.$slots, "default")
|
|
1156
1086
|
]),
|
|
1157
|
-
|
|
1158
|
-
], 8,
|
|
1087
|
+
d("span", Dt, y(e.endlabel), 1)
|
|
1088
|
+
], 8, Rt)
|
|
1159
1089
|
]);
|
|
1160
1090
|
}
|
|
1161
|
-
const
|
|
1162
|
-
const
|
|
1091
|
+
const Ka = /* @__PURE__ */ m(Nt, [["render", Vt]]);
|
|
1092
|
+
const Ft = {
|
|
1163
1093
|
name: "Snapshot",
|
|
1164
1094
|
props: {
|
|
1165
1095
|
items: {
|
|
@@ -1167,33 +1097,33 @@ const Vt = {
|
|
|
1167
1097
|
required: !0
|
|
1168
1098
|
}
|
|
1169
1099
|
}
|
|
1170
|
-
},
|
|
1100
|
+
}, zt = {
|
|
1171
1101
|
class: "container snapshot",
|
|
1172
1102
|
ref: "wrapper"
|
|
1173
|
-
},
|
|
1174
|
-
function
|
|
1175
|
-
return
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
(
|
|
1103
|
+
}, Bt = { class: "row" }, Ot = ["href"], Ut = { class: "lead snapshot__title" }, Wt = { class: "stat" };
|
|
1104
|
+
function Kt(t, a, e, i, r, s) {
|
|
1105
|
+
return o(), l("div", zt, [
|
|
1106
|
+
u(t.$slots, "default"),
|
|
1107
|
+
d("div", Bt, [
|
|
1108
|
+
(o(!0), l($, null, k(e.items, (n, c) => (o(), l("div", {
|
|
1179
1109
|
class: "col",
|
|
1180
|
-
key:
|
|
1110
|
+
key: c
|
|
1181
1111
|
}, [
|
|
1182
|
-
n.link ? (
|
|
1112
|
+
n.link ? (o(), l("a", {
|
|
1183
1113
|
key: 0,
|
|
1184
1114
|
href: n.link
|
|
1185
|
-
}, "View " +
|
|
1186
|
-
|
|
1187
|
-
class:
|
|
1115
|
+
}, "View " + y(n.title), 9, Ot)) : p("", !0),
|
|
1116
|
+
d("div", {
|
|
1117
|
+
class: b(`snapshot__item ${n.bg ? "bg-" + n.bg : ""}`)
|
|
1188
1118
|
}, [
|
|
1189
|
-
|
|
1190
|
-
|
|
1119
|
+
d("span", Ut, y(n.title), 1),
|
|
1120
|
+
d("span", Wt, y(n.number), 1)
|
|
1191
1121
|
], 2)
|
|
1192
1122
|
]))), 128))
|
|
1193
1123
|
])
|
|
1194
1124
|
], 512);
|
|
1195
1125
|
}
|
|
1196
|
-
const
|
|
1126
|
+
const Ga = /* @__PURE__ */ m(Ft, [["render", Kt]]), Gt = {
|
|
1197
1127
|
name: "Stepper",
|
|
1198
1128
|
props: {
|
|
1199
1129
|
url: {
|
|
@@ -1209,43 +1139,43 @@ const Qi = /* @__PURE__ */ p(Vt, [["render", Gt]]), Qt = {
|
|
|
1209
1139
|
required: !1
|
|
1210
1140
|
}
|
|
1211
1141
|
}
|
|
1212
|
-
},
|
|
1142
|
+
}, Qt = ["href", "aria-current"], Yt = {
|
|
1213
1143
|
key: 0,
|
|
1214
1144
|
class: "visually-hidden"
|
|
1215
1145
|
};
|
|
1216
|
-
function
|
|
1217
|
-
return
|
|
1218
|
-
|
|
1146
|
+
function Jt(t, a, e, i, r, s) {
|
|
1147
|
+
return o(), l("li", null, [
|
|
1148
|
+
d("a", {
|
|
1219
1149
|
href: e.url,
|
|
1220
|
-
class:
|
|
1150
|
+
class: b(`${e.status ? "bg-" + e.status : ""}${typeof e.current < "u" ? "current" : ""}`),
|
|
1221
1151
|
"aria-current": typeof e.current < "u" ? "step" : !1
|
|
1222
1152
|
}, [
|
|
1223
|
-
|
|
1224
|
-
|
|
1153
|
+
d("span", null, [
|
|
1154
|
+
u(t.$slots, "default")
|
|
1225
1155
|
]),
|
|
1226
|
-
e.status ? (
|
|
1227
|
-
], 10,
|
|
1156
|
+
e.status ? (o(), l("em", Yt, " - status: " + y(e.status), 1)) : p("", !0)
|
|
1157
|
+
], 10, Qt)
|
|
1228
1158
|
]);
|
|
1229
1159
|
}
|
|
1230
|
-
const
|
|
1231
|
-
const
|
|
1160
|
+
const Qa = /* @__PURE__ */ m(Gt, [["render", Jt]]);
|
|
1161
|
+
const Xt = {
|
|
1232
1162
|
name: "Tabs",
|
|
1233
1163
|
created() {
|
|
1234
1164
|
this.$nextTick(function() {
|
|
1235
|
-
import("./tabs.component.min-
|
|
1165
|
+
import("./tabs.component.min-a3dcb1cb.mjs").then((t) => {
|
|
1236
1166
|
window.customElements.get("iam-tabs") || window.customElements.define("iam-tabs", t.default);
|
|
1237
1167
|
}).catch((t) => {
|
|
1238
1168
|
console.log(t.message);
|
|
1239
1169
|
});
|
|
1240
1170
|
});
|
|
1241
1171
|
}
|
|
1242
|
-
},
|
|
1243
|
-
function
|
|
1244
|
-
return
|
|
1245
|
-
|
|
1172
|
+
}, Zt = { ref: "wrapper" };
|
|
1173
|
+
function ea(t, a, e, i, r, s) {
|
|
1174
|
+
return o(), l("iam-tabs", Zt, [
|
|
1175
|
+
u(t.$slots, "default")
|
|
1246
1176
|
], 512);
|
|
1247
1177
|
}
|
|
1248
|
-
const
|
|
1178
|
+
const Ya = /* @__PURE__ */ m(Xt, [["render", ea]]), ta = {
|
|
1249
1179
|
name: "Tab",
|
|
1250
1180
|
props: {
|
|
1251
1181
|
title: {
|
|
@@ -1267,23 +1197,23 @@ const Ji = /* @__PURE__ */ p(Zt, [["render", ti]]), ii = {
|
|
|
1267
1197
|
isDisabled: !!this.disabled
|
|
1268
1198
|
};
|
|
1269
1199
|
}
|
|
1270
|
-
},
|
|
1271
|
-
function
|
|
1272
|
-
return
|
|
1273
|
-
|
|
1200
|
+
}, aa = { class: "tab" }, sa = ["innerHTML"];
|
|
1201
|
+
function ia(t, a, e, i, r, s) {
|
|
1202
|
+
return o(), l("details", aa, [
|
|
1203
|
+
d("summary", {
|
|
1274
1204
|
innerHTML: e.title,
|
|
1275
|
-
class:
|
|
1276
|
-
}, null, 10,
|
|
1277
|
-
|
|
1205
|
+
class: b({ disabled: r.isDisabled })
|
|
1206
|
+
}, null, 10, sa),
|
|
1207
|
+
u(t.$slots, "default")
|
|
1278
1208
|
]);
|
|
1279
1209
|
}
|
|
1280
|
-
const
|
|
1281
|
-
let P =
|
|
1210
|
+
const Ja = /* @__PURE__ */ m(ta, [["render", ia]]);
|
|
1211
|
+
let P = C.props;
|
|
1282
1212
|
P.fields.required = !1;
|
|
1283
|
-
const
|
|
1213
|
+
const na = {
|
|
1284
1214
|
components: {
|
|
1285
|
-
Table:
|
|
1286
|
-
Input:
|
|
1215
|
+
Table: C,
|
|
1216
|
+
Input: N
|
|
1287
1217
|
},
|
|
1288
1218
|
data() {
|
|
1289
1219
|
return {
|
|
@@ -1294,14 +1224,14 @@ const oi = {
|
|
|
1294
1224
|
methods: {
|
|
1295
1225
|
submitForm: function(t) {
|
|
1296
1226
|
console.log(this);
|
|
1297
|
-
const
|
|
1227
|
+
const a = new FormData(t.target);
|
|
1298
1228
|
let e = /* @__PURE__ */ new Date();
|
|
1299
|
-
const
|
|
1300
|
-
let
|
|
1301
|
-
|
|
1229
|
+
const i = e.getFullYear();
|
|
1230
|
+
let r = e.getMonth() + 1, s = e.getDate();
|
|
1231
|
+
s < 10 && (s = "0" + s), r < 10 && (r = "0" + r), e = s + "/" + r + "/" + i, this.itemsData.unshift({
|
|
1302
1232
|
date_added: e,
|
|
1303
|
-
user:
|
|
1304
|
-
note:
|
|
1233
|
+
user: a.get("user"),
|
|
1234
|
+
note: a.get("addNote")
|
|
1305
1235
|
}), this.$emit("formSubmitted", t);
|
|
1306
1236
|
}
|
|
1307
1237
|
},
|
|
@@ -1326,41 +1256,41 @@ const oi = {
|
|
|
1326
1256
|
required: !1
|
|
1327
1257
|
}
|
|
1328
1258
|
}
|
|
1329
|
-
},
|
|
1330
|
-
function
|
|
1331
|
-
const n =
|
|
1332
|
-
return
|
|
1333
|
-
e.title ? (
|
|
1259
|
+
}, oa = { class: "container note-feed mb-2" }, la = ["innerHTML"], ra = ["action", "method"], da = ["value"], ca = /* @__PURE__ */ d("button", { class: "btn btn-tertiary" }, "Submit note", -1);
|
|
1260
|
+
function ua(t, a, e, i, r, s) {
|
|
1261
|
+
const n = q("Table"), c = q("Input");
|
|
1262
|
+
return o(), l("div", oa, [
|
|
1263
|
+
e.title ? (o(), l("span", {
|
|
1334
1264
|
key: 0,
|
|
1335
1265
|
class: "h3",
|
|
1336
1266
|
innerHTML: e.title
|
|
1337
|
-
}, null, 8,
|
|
1338
|
-
|
|
1267
|
+
}, null, 8, la)) : p("", !0),
|
|
1268
|
+
v(n, w({
|
|
1339
1269
|
fields: [{ key: "date_added" }, { key: "user" }, { key: "note" }],
|
|
1340
|
-
items:
|
|
1270
|
+
items: r.itemsData
|
|
1341
1271
|
}, t.$props, { class: "mb-0" }), null, 16, ["items"]),
|
|
1342
|
-
|
|
1272
|
+
d("form", {
|
|
1343
1273
|
action: e.action,
|
|
1344
1274
|
method: e.method,
|
|
1345
|
-
onSubmit:
|
|
1275
|
+
onSubmit: a[0] || (a[0] = O((h) => s.submitForm(...arguments), ["prevent"]))
|
|
1346
1276
|
}, [
|
|
1347
|
-
|
|
1277
|
+
d("input", {
|
|
1348
1278
|
type: "hidden",
|
|
1349
1279
|
value: e.user,
|
|
1350
1280
|
name: "user"
|
|
1351
|
-
}, null, 8,
|
|
1352
|
-
|
|
1281
|
+
}, null, 8, da),
|
|
1282
|
+
v(c, {
|
|
1353
1283
|
id: "addNote",
|
|
1354
1284
|
type: "textarea",
|
|
1355
1285
|
label: "Add note",
|
|
1356
1286
|
required: "",
|
|
1357
1287
|
class: "mw-100"
|
|
1358
1288
|
}),
|
|
1359
|
-
|
|
1360
|
-
], 40,
|
|
1289
|
+
ca
|
|
1290
|
+
], 40, ra)
|
|
1361
1291
|
]);
|
|
1362
1292
|
}
|
|
1363
|
-
const
|
|
1293
|
+
const Xa = /* @__PURE__ */ m(na, [["render", ua]]), ma = {
|
|
1364
1294
|
name: "Applied Filter",
|
|
1365
1295
|
mounted() {
|
|
1366
1296
|
this.$nextTick(function() {
|
|
@@ -1372,41 +1302,41 @@ const Zi = /* @__PURE__ */ p(oi, [["render", mi]]), pi = {
|
|
|
1372
1302
|
});
|
|
1373
1303
|
}
|
|
1374
1304
|
};
|
|
1375
|
-
function
|
|
1376
|
-
return
|
|
1377
|
-
|
|
1305
|
+
function pa(t, a, e, i, r, s) {
|
|
1306
|
+
return o(), l("iam-applied-filters", null, [
|
|
1307
|
+
u(t.$slots, "default")
|
|
1378
1308
|
]);
|
|
1379
1309
|
}
|
|
1380
|
-
const
|
|
1310
|
+
const Za = /* @__PURE__ */ m(ma, [["render", pa]]);
|
|
1381
1311
|
/*!
|
|
1382
|
-
* iamKey v5.6.
|
|
1312
|
+
* iamKey v5.6.1-beta10
|
|
1383
1313
|
* Copyright 2022-2024 iamproperty
|
|
1384
1314
|
*/
|
|
1385
|
-
function
|
|
1386
|
-
|
|
1315
|
+
function ha(t, a) {
|
|
1316
|
+
fa(t, a);
|
|
1387
1317
|
}
|
|
1388
|
-
function
|
|
1318
|
+
function fa(t, a) {
|
|
1389
1319
|
var e;
|
|
1390
|
-
|
|
1320
|
+
a.addEventListener("keyup", (i) => {
|
|
1391
1321
|
clearTimeout(e), e = setTimeout(function() {
|
|
1392
|
-
|
|
1322
|
+
M(t, a.value);
|
|
1393
1323
|
}, 500);
|
|
1394
|
-
}),
|
|
1395
|
-
clearTimeout(e),
|
|
1324
|
+
}), a.addEventListener("change", (i) => {
|
|
1325
|
+
clearTimeout(e), M(t, a.value);
|
|
1396
1326
|
});
|
|
1397
1327
|
}
|
|
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:
|
|
1328
|
+
const M = function(t, a) {
|
|
1329
|
+
Array.from(t.querySelectorAll(":scope > li")).forEach((e, i) => {
|
|
1330
|
+
let r = e.textContent.toLowerCase();
|
|
1331
|
+
e.classList.add("d-none"), r.includes(a.toLowerCase()) && e.classList.remove("d-none");
|
|
1332
|
+
}), window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "Filtered list", value: a });
|
|
1403
1333
|
};
|
|
1404
1334
|
window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "filterlist" });
|
|
1405
|
-
class
|
|
1335
|
+
class ba extends HTMLElement {
|
|
1406
1336
|
constructor() {
|
|
1407
1337
|
super(), this.attachShadow({ mode: "open" });
|
|
1408
|
-
const
|
|
1409
|
-
|
|
1338
|
+
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");
|
|
1339
|
+
i.innerHTML = `
|
|
1410
1340
|
<style>
|
|
1411
1341
|
@import "${e}";
|
|
1412
1342
|
${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
|
|
@@ -1428,56 +1358,56 @@ class gi extends HTMLElement {
|
|
|
1428
1358
|
<div class="form-control__wrapper">
|
|
1429
1359
|
<label for="search" class="visually-hidden">Search</label>
|
|
1430
1360
|
<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" />
|
|
1361
|
+
<input name="search" id="search" type="text" class="form-control" autocomplete="off" placeholder="Search" part="search-input" />
|
|
1432
1362
|
</div>
|
|
1433
|
-
<div class="list__wrapper">
|
|
1363
|
+
<div class="list__wrapper" part="wrapper">
|
|
1434
1364
|
<slot></slot>
|
|
1435
1365
|
</div>
|
|
1436
|
-
`, this.shadowRoot.appendChild(
|
|
1366
|
+
`, this.shadowRoot.appendChild(i.content.cloneNode(!0));
|
|
1437
1367
|
}
|
|
1438
1368
|
connectedCallback() {
|
|
1439
|
-
let
|
|
1440
|
-
this.shadowRoot.querySelector(".list__wrapper").setAttribute("class", `list__wrapper ${
|
|
1369
|
+
let a = this.classList.toString();
|
|
1370
|
+
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>'), ha(this.querySelector("ul"), this.shadowRoot.querySelector("#search"));
|
|
1441
1371
|
}
|
|
1442
1372
|
}
|
|
1443
|
-
window.customElements.get("iam-filterlist") || window.customElements.define("iam-filterlist",
|
|
1444
|
-
const
|
|
1373
|
+
window.customElements.get("iam-filterlist") || window.customElements.define("iam-filterlist", ba);
|
|
1374
|
+
const ya = {
|
|
1445
1375
|
name: "Filter list"
|
|
1446
1376
|
};
|
|
1447
|
-
function
|
|
1448
|
-
return
|
|
1449
|
-
|
|
1377
|
+
function _a(t, a, e, i, r, s) {
|
|
1378
|
+
return o(), l("iam-filterlist", null, [
|
|
1379
|
+
u(t.$slots, "default")
|
|
1450
1380
|
]);
|
|
1451
1381
|
}
|
|
1452
|
-
const
|
|
1453
|
-
function
|
|
1382
|
+
const es = /* @__PURE__ */ m(ya, [["render", _a]]);
|
|
1383
|
+
function ga(t) {
|
|
1454
1384
|
if (t.hasAttribute("data-type") && t.getAttribute("data-type") == "toast") {
|
|
1455
1385
|
let e = document.querySelector(".notification__holder");
|
|
1456
1386
|
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
1387
|
}
|
|
1458
1388
|
if (t.setAttribute("role", "alert"), t.addEventListener("click", function(e) {
|
|
1459
|
-
event && event.target instanceof HTMLElement && event.target.closest("[data-dismiss-button]") && (e.preventDefault(),
|
|
1389
|
+
event && event.target instanceof HTMLElement && event.target.closest("[data-dismiss-button]") && (e.preventDefault(), T(t));
|
|
1460
1390
|
}, !1), t.hasAttribute("data-timeout")) {
|
|
1461
1391
|
let e = t.getAttribute("data-timeout");
|
|
1462
|
-
var
|
|
1463
|
-
|
|
1392
|
+
var a = new va(function() {
|
|
1393
|
+
T(t);
|
|
1464
1394
|
}, e);
|
|
1465
|
-
t.addEventListener("mouseenter", (
|
|
1466
|
-
|
|
1467
|
-
}), t.addEventListener("mouseleave", (
|
|
1468
|
-
|
|
1395
|
+
t.addEventListener("mouseenter", (i) => {
|
|
1396
|
+
a.pause();
|
|
1397
|
+
}), t.addEventListener("mouseleave", (i) => {
|
|
1398
|
+
a.resume();
|
|
1469
1399
|
});
|
|
1470
1400
|
}
|
|
1471
1401
|
}
|
|
1472
|
-
function
|
|
1473
|
-
var e,
|
|
1402
|
+
function va(t, a) {
|
|
1403
|
+
var e, i, r = a;
|
|
1474
1404
|
this.pause = function() {
|
|
1475
|
-
window.clearTimeout(e),
|
|
1405
|
+
window.clearTimeout(e), r -= /* @__PURE__ */ new Date() - i;
|
|
1476
1406
|
}, this.resume = function() {
|
|
1477
|
-
|
|
1407
|
+
i = /* @__PURE__ */ new Date(), window.clearTimeout(e), e = window.setTimeout(t, r);
|
|
1478
1408
|
}, this.resume();
|
|
1479
1409
|
}
|
|
1480
|
-
const
|
|
1410
|
+
const T = function(t) {
|
|
1481
1411
|
t.classList.add("d-none");
|
|
1482
1412
|
};
|
|
1483
1413
|
window.dataLayer = window.dataLayer || [];
|
|
@@ -1485,32 +1415,32 @@ window.dataLayer.push({
|
|
|
1485
1415
|
event: "customElementRegistered",
|
|
1486
1416
|
element: "Notification"
|
|
1487
1417
|
});
|
|
1488
|
-
class
|
|
1418
|
+
class wa extends HTMLElement {
|
|
1489
1419
|
constructor() {
|
|
1490
1420
|
super(), this.attachShadow({ mode: "open" });
|
|
1491
|
-
const
|
|
1492
|
-
Array.from(
|
|
1493
|
-
|
|
1494
|
-
}), (
|
|
1421
|
+
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");
|
|
1422
|
+
Array.from(s).forEach((c, h) => {
|
|
1423
|
+
c.setAttribute("slot", "btns"), c.classList.add("link");
|
|
1424
|
+
}), (s.length || this.hasAttribute("data-dismiss")) && this.classList.add("notification--dismissable");
|
|
1495
1425
|
const n = document.createElement("template");
|
|
1496
1426
|
n.innerHTML = `
|
|
1497
1427
|
<style>
|
|
1498
1428
|
@import "${e}";
|
|
1499
|
-
${
|
|
1429
|
+
${i}
|
|
1500
1430
|
${this.hasAttribute("data-css") ? `${this.getAttribute("data-css")}` : ""}
|
|
1501
1431
|
</style>
|
|
1502
1432
|
|
|
1503
1433
|
<div class="notification">
|
|
1504
1434
|
<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>' : ""}
|
|
1435
|
+
<div class="notification__inner"><div class="notification__text"><slot></slot></div>${s.length ? '<div class="notification__btns"><slot name="btns"></slot></div>' : ""}</div>
|
|
1436
|
+
${this.hasAttribute("data-dismiss") ? '<div class="notification__dismiss"><button data-dismiss-button part="dismiss-btn">Dismiss</button></div>' : ""}
|
|
1507
1437
|
</div>
|
|
1508
|
-
`, this.shadowRoot.appendChild(n.content.cloneNode(!0)), document.getElementById("notificationHolder") || document.head.insertAdjacentHTML("beforeend", `<style id="notificationHolder">${
|
|
1438
|
+
`, this.shadowRoot.appendChild(n.content.cloneNode(!0)), document.getElementById("notificationHolder") || document.head.insertAdjacentHTML("beforeend", `<style id="notificationHolder">${r}</style>`);
|
|
1509
1439
|
}
|
|
1510
1440
|
connectedCallback() {
|
|
1511
|
-
const
|
|
1441
|
+
const a = this.shadowRoot.querySelector("[data-dismiss-button]"), e = this.hasAttribute("data-status") ? this.getAttribute("data-status") : "white";
|
|
1512
1442
|
this.hasAttribute("data-type") ? this.classList.add(`bg-${e}`) : this.classList.add(`colour-${e}`);
|
|
1513
|
-
const
|
|
1443
|
+
const i = this;
|
|
1514
1444
|
if (!this.querySelector("i"))
|
|
1515
1445
|
switch (e) {
|
|
1516
1446
|
case "danger":
|
|
@@ -1525,31 +1455,31 @@ class $i extends HTMLElement {
|
|
|
1525
1455
|
default:
|
|
1526
1456
|
this.innerHTML += '<i class="fa-solid fa-circle-info" aria-hidden="true" slot="icon"></i>';
|
|
1527
1457
|
}
|
|
1528
|
-
|
|
1529
|
-
|
|
1458
|
+
ga(i), a && a.addEventListener("click", function(r) {
|
|
1459
|
+
T(i);
|
|
1530
1460
|
}, !1);
|
|
1531
1461
|
}
|
|
1532
1462
|
}
|
|
1533
|
-
const
|
|
1463
|
+
const $a = {
|
|
1534
1464
|
name: "Notification",
|
|
1535
1465
|
props: {},
|
|
1536
1466
|
created() {
|
|
1537
1467
|
this.$nextTick(function() {
|
|
1538
|
-
window.customElements.get("iam-notification") || window.customElements.define("iam-notification",
|
|
1468
|
+
window.customElements.get("iam-notification") || window.customElements.define("iam-notification", wa);
|
|
1539
1469
|
});
|
|
1540
1470
|
}
|
|
1541
1471
|
};
|
|
1542
|
-
function
|
|
1543
|
-
return
|
|
1544
|
-
|
|
1472
|
+
function ka(t, a, e, i, r, s) {
|
|
1473
|
+
return o(), l("iam-notification", null, [
|
|
1474
|
+
u(t.$slots, "default")
|
|
1545
1475
|
]);
|
|
1546
1476
|
}
|
|
1547
|
-
const
|
|
1477
|
+
const ts = /* @__PURE__ */ m($a, [["render", ka]]), Aa = {
|
|
1548
1478
|
name: "Actionbar",
|
|
1549
1479
|
props: {},
|
|
1550
1480
|
mounted() {
|
|
1551
1481
|
this.$nextTick(function() {
|
|
1552
|
-
import("./actionbar.component.min-
|
|
1482
|
+
import("./actionbar.component.min-0c275400.mjs").then((t) => {
|
|
1553
1483
|
window.customElements.get("iam-actionbar") || window.customElements.define("iam-actionbar", t.default);
|
|
1554
1484
|
}).catch((t) => {
|
|
1555
1485
|
console.log(t.message);
|
|
@@ -1557,21 +1487,21 @@ const ia = /* @__PURE__ */ p(ki, [["render", xi]]), Ai = {
|
|
|
1557
1487
|
});
|
|
1558
1488
|
}
|
|
1559
1489
|
};
|
|
1560
|
-
function
|
|
1561
|
-
return
|
|
1562
|
-
|
|
1490
|
+
function xa(t, a, e, i, r, s) {
|
|
1491
|
+
return o(), l("iam-actionbar", null, [
|
|
1492
|
+
u(t.$slots, "default")
|
|
1563
1493
|
]);
|
|
1564
1494
|
}
|
|
1565
|
-
const
|
|
1495
|
+
const as = /* @__PURE__ */ m(Aa, [["render", xa]]);
|
|
1566
1496
|
/*!
|
|
1567
|
-
* iamKey v5.6.
|
|
1497
|
+
* iamKey v5.6.1-beta10
|
|
1568
1498
|
* Copyright 2022-2024 iamproperty
|
|
1569
1499
|
*/
|
|
1570
|
-
class
|
|
1500
|
+
class R extends HTMLElement {
|
|
1571
1501
|
constructor() {
|
|
1572
1502
|
super(), this.attachShadow({ mode: "open" });
|
|
1573
|
-
const
|
|
1574
|
-
|
|
1503
|
+
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");
|
|
1504
|
+
i.innerHTML = `
|
|
1575
1505
|
<style>
|
|
1576
1506
|
@import "${e}";
|
|
1577
1507
|
: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{--select-padding-left: rem(16);height:3.25rem;line-height:3.25rem;margin-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 */
|
|
@@ -1609,36 +1539,36 @@ class z extends HTMLElement {
|
|
|
1609
1539
|
<button class="load-more btn btn-primary m-auto">Load more</a>
|
|
1610
1540
|
</div>
|
|
1611
1541
|
</div>
|
|
1612
|
-
`, this.shadowRoot.appendChild(
|
|
1542
|
+
`, this.shadowRoot.appendChild(i.content.cloneNode(!0));
|
|
1613
1543
|
}
|
|
1614
1544
|
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
|
-
}),
|
|
1545
|
+
const a = new URLSearchParams(window.location.search);
|
|
1546
|
+
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"));
|
|
1547
|
+
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");
|
|
1548
|
+
this.setup(), e.addEventListener("change", (c) => {
|
|
1549
|
+
this.setAttribute("data-show", this.getAttribute("data-increment")), this.setAttribute("data-page", c.target.value);
|
|
1550
|
+
}), r.addEventListener("click", (c) => {
|
|
1621
1551
|
e.value = parseInt(e.value) + 1, e.dispatchEvent(new Event("change"));
|
|
1622
|
-
}),
|
|
1552
|
+
}), i.addEventListener("click", (c) => {
|
|
1623
1553
|
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",
|
|
1554
|
+
}), s.addEventListener("change", (c) => {
|
|
1555
|
+
this.setAttribute("data-increment", c.target.value);
|
|
1556
|
+
}), n.addEventListener("click", (c) => {
|
|
1557
|
+
let h = parseInt(this.getAttribute("data-show")) + parseInt(this.getAttribute("data-increment"));
|
|
1558
|
+
this.setAttribute("data-show", h), h > parseInt(this.getAttribute("data-total")) && n.remove();
|
|
1629
1559
|
});
|
|
1630
1560
|
}
|
|
1631
1561
|
setup() {
|
|
1632
|
-
const
|
|
1633
|
-
|
|
1634
|
-
let
|
|
1635
|
-
for (let
|
|
1636
|
-
|
|
1637
|
-
e.innerHTML =
|
|
1638
|
-
let
|
|
1639
|
-
|
|
1640
|
-
const
|
|
1641
|
-
f && n.value != f && !
|
|
1562
|
+
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")), L = Math.ceil(_ / f);
|
|
1563
|
+
_ > g && a.classList.remove("d-none");
|
|
1564
|
+
let E = "";
|
|
1565
|
+
for (let A = 1; A <= L; A++)
|
|
1566
|
+
E += `<option value="${A}" ${A == h ? "selected" : ""}>${A}</option>`;
|
|
1567
|
+
e.innerHTML = E, c.innerHTML = `of ${L}`, h == L ? r.setAttribute("disabled", "disabled") : r.removeAttribute("disabled"), h == 1 ? i.setAttribute("disabled", "disabled") : i.removeAttribute("disabled");
|
|
1568
|
+
let j = h == 1 ? 1 : (h - 1) * g + 1, H = h == 1 ? g : h * g;
|
|
1569
|
+
s.innerHTML = `${j} - ${H > _ ? _ : H} of ${_} items`;
|
|
1570
|
+
const I = [15, 25, 40, 50];
|
|
1571
|
+
f && n.value != f && !I.includes(f) && (n.innerHTML = `<option value="${f}">${f}</option>
|
|
1642
1572
|
<option value="${f * 2}">${f * 2}</option>
|
|
1643
1573
|
<option value="${f * 3}">${f * 3}</option>
|
|
1644
1574
|
<option value="${f * 4}">${f * 4}</option>`), n.value = f;
|
|
@@ -1646,50 +1576,50 @@ class z extends HTMLElement {
|
|
|
1646
1576
|
static get observedAttributes() {
|
|
1647
1577
|
return ["data-total", "data-increment", "data-page", "data-show"];
|
|
1648
1578
|
}
|
|
1649
|
-
attributeChangedCallback(
|
|
1650
|
-
switch (
|
|
1579
|
+
attributeChangedCallback(a, e, i) {
|
|
1580
|
+
switch (a) {
|
|
1651
1581
|
case "data-total": {
|
|
1652
|
-
e !=
|
|
1582
|
+
e != i && (this.setAttribute("data-page", 1), this.setup());
|
|
1653
1583
|
break;
|
|
1654
1584
|
}
|
|
1655
1585
|
case "data-show": {
|
|
1656
|
-
e !=
|
|
1586
|
+
e != i && (this.setAttribute("data-page", 1), this.setup(), this.dispatchEvent(new CustomEvent("update-show", { detail: { show: i } })));
|
|
1657
1587
|
break;
|
|
1658
1588
|
}
|
|
1659
1589
|
case "data-increment": {
|
|
1660
|
-
e !=
|
|
1590
|
+
e != i && (this.setAttribute("data-show", i), this.setAttribute("data-page", 1), this.setup(), this.dispatchEvent(new CustomEvent("update-show", { detail: { show: i } })));
|
|
1661
1591
|
break;
|
|
1662
1592
|
}
|
|
1663
1593
|
case "data-page": {
|
|
1664
|
-
e && e !=
|
|
1594
|
+
e && e != i && (this.setup(), this.dispatchEvent(new CustomEvent("update-page", { detail: { page: i } })));
|
|
1665
1595
|
break;
|
|
1666
1596
|
}
|
|
1667
1597
|
}
|
|
1668
1598
|
}
|
|
1669
1599
|
}
|
|
1670
|
-
const
|
|
1600
|
+
const La = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1671
1601
|
__proto__: null,
|
|
1672
|
-
default:
|
|
1673
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1602
|
+
default: R
|
|
1603
|
+
}, Symbol.toStringTag, { value: "Module" })), Sa = {
|
|
1674
1604
|
name: "Pagination",
|
|
1675
1605
|
props: {},
|
|
1676
1606
|
computed: {},
|
|
1677
1607
|
created() {
|
|
1678
1608
|
this.$nextTick(function() {
|
|
1679
|
-
window.customElements.get("iam-pagination") || window.customElements.define("iam-pagination",
|
|
1609
|
+
window.customElements.get("iam-pagination") || window.customElements.define("iam-pagination", R);
|
|
1680
1610
|
});
|
|
1681
1611
|
},
|
|
1682
1612
|
updated() {
|
|
1683
1613
|
}
|
|
1684
1614
|
};
|
|
1685
|
-
function
|
|
1686
|
-
return
|
|
1615
|
+
function qa(t, a, e, i, r, s) {
|
|
1616
|
+
return o(), l("iam-pagination");
|
|
1687
1617
|
}
|
|
1688
|
-
const
|
|
1618
|
+
const ss = /* @__PURE__ */ m(Sa, [["render", qa]]), Ta = {
|
|
1689
1619
|
name: "Address Lookup",
|
|
1690
1620
|
mounted() {
|
|
1691
1621
|
this.$nextTick(function() {
|
|
1692
|
-
import("./address-lookup.component.min-
|
|
1622
|
+
import("./address-lookup.component.min-c3186305.mjs").then((t) => {
|
|
1693
1623
|
window.customElements.get("iam-address-lookup") || window.customElements.define("iam-address-lookup", t.default);
|
|
1694
1624
|
}).catch((t) => {
|
|
1695
1625
|
console.log(t.message);
|
|
@@ -1697,105 +1627,104 @@ const na = /* @__PURE__ */ p(Ti, [["render", qi]]), Ei = {
|
|
|
1697
1627
|
});
|
|
1698
1628
|
}
|
|
1699
1629
|
};
|
|
1700
|
-
function
|
|
1701
|
-
return
|
|
1702
|
-
|
|
1630
|
+
function Ea(t, a, e, i, r, s) {
|
|
1631
|
+
return o(), l("iam-address-lookup", null, [
|
|
1632
|
+
u(t.$slots, "default")
|
|
1703
1633
|
]);
|
|
1704
1634
|
}
|
|
1705
|
-
const
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
class
|
|
1635
|
+
const is = /* @__PURE__ */ m(Ta, [["render", Ea]]);
|
|
1636
|
+
window.dataLayer = window.dataLayer || [];
|
|
1637
|
+
window.dataLayer.push({
|
|
1638
|
+
event: "customElementRegistered",
|
|
1639
|
+
element: "collapsible side menu"
|
|
1640
|
+
});
|
|
1641
|
+
class Ha extends HTMLElement {
|
|
1712
1642
|
constructor() {
|
|
1713
1643
|
super(), this.attachShadow({ mode: "open" });
|
|
1714
|
-
const
|
|
1715
|
-
|
|
1644
|
+
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");
|
|
1645
|
+
r.innerHTML = `
|
|
1716
1646
|
<style class="styles">
|
|
1717
1647
|
@import "${e}";
|
|
1718
|
-
|
|
1719
|
-
|
|
1648
|
+
${i}
|
|
1720
1649
|
${this.hasAttribute("css") ? `@import "${this.getAttribute("css")}";` : ""}
|
|
1721
1650
|
</style>
|
|
1722
1651
|
<link rel="stylesheet" href="https://kit.fontawesome.com/26fdbf0179.css" crossorigin="anonymous">
|
|
1723
|
-
|
|
1652
|
+
<div class="container" part="container">
|
|
1724
1653
|
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1654
|
+
<div class="side-menu" part="side-menu">
|
|
1655
|
+
<button class="btn btn-compact fa-chevron-right btn-secondary btn-sm btn-collapse" part="btn">Open or close Collapsible menu</button>
|
|
1656
|
+
<div class="side-menu-content closed" part="side-menu-content">
|
|
1657
|
+
<slot name="menu"></slot>
|
|
1658
|
+
</div>
|
|
1729
1659
|
</div>
|
|
1730
|
-
</div>
|
|
1731
1660
|
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1661
|
+
<div class="main-content" part="main-content">
|
|
1662
|
+
<slot></slot>
|
|
1663
|
+
</div>
|
|
1735
1664
|
|
|
1736
|
-
|
|
1737
|
-
`, this.shadowRoot.appendChild(
|
|
1665
|
+
</div>
|
|
1666
|
+
`, this.shadowRoot.appendChild(r.content.cloneNode(!0));
|
|
1738
1667
|
}
|
|
1739
1668
|
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
|
-
|
|
1669
|
+
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");
|
|
1670
|
+
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) => {
|
|
1671
|
+
a.classList.contains("open") ? (a.classList.remove("open"), r.removeAttribute("aria-expanded"), setTimeout(function() {
|
|
1743
1672
|
e.classList.add("closed");
|
|
1744
|
-
}, 1e3),
|
|
1745
|
-
|
|
1673
|
+
}, 1e3), a.classList.add("pe-none"), setTimeout(function() {
|
|
1674
|
+
a.classList.remove("pe-none");
|
|
1746
1675
|
}, 1e3)) : (e.classList.remove("closed"), setTimeout(function() {
|
|
1747
|
-
|
|
1676
|
+
a.classList.add("open"), r.setAttribute("aria-expanded", !0);
|
|
1748
1677
|
}, 100));
|
|
1749
|
-
}),
|
|
1750
|
-
window.innerWidth > 992 && (
|
|
1751
|
-
}),
|
|
1752
|
-
window.innerWidth > 992 && (
|
|
1753
|
-
}),
|
|
1754
|
-
window.innerWidth > 992 && (
|
|
1678
|
+
}), a.addEventListener("mouseenter", (s) => {
|
|
1679
|
+
window.innerWidth > 992 && (a.classList.contains("open") || e.classList.remove("closed"), a.classList.add("hover"));
|
|
1680
|
+
}), a.addEventListener("mousemove", (s) => {
|
|
1681
|
+
window.innerWidth > 992 && (a.classList.contains("open") || e.classList.remove("closed"));
|
|
1682
|
+
}), a.addEventListener("mouseleave", (s) => {
|
|
1683
|
+
window.innerWidth > 992 && (a.classList.remove("hover"), a.classList.contains("open") || setTimeout(function() {
|
|
1755
1684
|
e.classList.add("closed");
|
|
1756
1685
|
}, 1e3));
|
|
1757
1686
|
});
|
|
1758
1687
|
}
|
|
1759
1688
|
}
|
|
1760
|
-
window.customElements.get("iam-collapsible-side") || window.customElements.define("iam-collapsible-side",
|
|
1761
|
-
const
|
|
1689
|
+
window.customElements.get("iam-collapsible-side") || window.customElements.define("iam-collapsible-side", Ha);
|
|
1690
|
+
const Ma = {
|
|
1762
1691
|
name: "CollapsibleSideMenu",
|
|
1763
1692
|
props: {},
|
|
1764
1693
|
mounted() {
|
|
1765
1694
|
}
|
|
1766
1695
|
};
|
|
1767
|
-
function
|
|
1768
|
-
return
|
|
1769
|
-
|
|
1696
|
+
function Ca(t, a, e, i, r, s) {
|
|
1697
|
+
return o(), l("iam-collapsible-side", null, [
|
|
1698
|
+
u(t.$slots, "default")
|
|
1770
1699
|
]);
|
|
1771
1700
|
}
|
|
1772
|
-
const
|
|
1701
|
+
const ns = /* @__PURE__ */ m(Ma, [["render", Ca]]);
|
|
1773
1702
|
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
|
-
|
|
1703
|
+
ja as Accordion,
|
|
1704
|
+
Ia as AccordionItem,
|
|
1705
|
+
as as Actionbar,
|
|
1706
|
+
is as AddressLookup,
|
|
1707
|
+
Za as AppliedFilters,
|
|
1708
|
+
Da as Banner,
|
|
1709
|
+
Va as Card,
|
|
1710
|
+
Fa as Carousel,
|
|
1711
|
+
ns as CollapsibleSideMenu,
|
|
1712
|
+
Ra as FileUpload,
|
|
1713
|
+
es as Filterlist,
|
|
1714
|
+
za as Header,
|
|
1715
|
+
N as Input,
|
|
1716
|
+
Pa as Logo,
|
|
1717
|
+
Wa as Nav,
|
|
1718
|
+
Xa as NoteFeed,
|
|
1719
|
+
ts as Notification,
|
|
1720
|
+
ss as Pagination,
|
|
1721
|
+
Ua as PropertySearchbar,
|
|
1722
|
+
Ga as Snapshot,
|
|
1723
|
+
Qa as Step,
|
|
1724
|
+
Ka as Stepper,
|
|
1725
|
+
Ja as Tab,
|
|
1726
|
+
C as Table,
|
|
1727
|
+
Ya as Tabs,
|
|
1728
|
+
Ba as Testimonial,
|
|
1729
|
+
Oa as Timeline
|
|
1801
1730
|
};
|