@iamproperty/components 3.0.0 → 3.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/main.js +1 -1
- package/assets/js/modules/file-upload.js +48 -0
- package/assets/js/modules/form.js +27 -18
- package/assets/js/modules/orderablelist.js +122 -0
- package/assets/js/scripts.bundle.js +43 -35
- 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/_functions/utilities.scss +0 -107
- package/assets/sass/_tests/colours.spec.scss +1 -1
- package/assets/sass/components/carousel.scss +1 -1
- package/assets/sass/components/nav.scss +42 -0
- package/assets/sass/elements/buttons.scss +46 -4
- package/assets/sass/elements/card.scss +112 -0
- package/assets/sass/elements/container.scss +13 -2
- package/assets/sass/elements/forms.scss +68 -0
- package/assets/sass/elements/links.scss +2 -1
- package/assets/sass/elements/lists.scss +48 -1
- package/assets/sass/elements/tables.scss +1 -1
- package/assets/sass/foundations/icons.scss +8 -0
- package/assets/sass/foundations/root.scss +19 -0
- package/assets/ts/main.ts +1 -1
- package/dist/components.es.js +88 -74
- package/dist/components.umd.js +6 -6
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/src/components/Accordion/Accordion.vue +1 -1
- package/src/components/CardDeck/CardDeck.vue +1 -1
- package/src/elements/Card/Card.vue +11 -2
- package/src/elements/Input/Input.vue +14 -10
package/dist/components.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openBlock as o, createElementBlock as l, createElementVNode as s, toDisplayString as w, normalizeClass as v, createCommentVNode as h, Fragment as
|
|
1
|
+
import { openBlock as o, createElementBlock as l, createElementVNode as s, toDisplayString as w, normalizeClass as v, createCommentVNode as h, Fragment as A, renderList as x, renderSlot as b, withDirectives as N, mergeProps as T, vModelDynamic as V, vModelText as Y, vModelSelect as X, resolveComponent as M, createVNode as $, createTextVNode as P, normalizeStyle as ee, withModifiers as te } from "vue";
|
|
2
2
|
const g = (e, n) => {
|
|
3
3
|
const t = e.__vccOpts || e;
|
|
4
4
|
for (const [c, m] of n)
|
|
@@ -80,7 +80,7 @@ function K(e) {
|
|
|
80
80
|
const n = e.querySelector("thead"), t = e.querySelector("tbody"), c = t.cloneNode(!0), m = new Event("sorted"), a = new Event("filtered"), r = new Event("reordered"), i = "table_" + Math.random().toString(36).substr(2, 9);
|
|
81
81
|
let f;
|
|
82
82
|
e.setAttribute("id", i);
|
|
83
|
-
const
|
|
83
|
+
const S = function(_, u) {
|
|
84
84
|
let d = [];
|
|
85
85
|
Array.from(t.querySelectorAll("tr")).forEach((y, q) => {
|
|
86
86
|
let k = y.querySelector('td[data-label="' + _ + '"], th[data-label="' + _ + '"]').textContent;
|
|
@@ -102,7 +102,7 @@ function K(e) {
|
|
|
102
102
|
let d = u.getAttribute("aria-sort") == "ascending" ? "descending" : "ascending";
|
|
103
103
|
Array.from(e.querySelectorAll("[data-sortable]")).forEach((p, y) => {
|
|
104
104
|
p.setAttribute("aria-sort", "none");
|
|
105
|
-
}), u.setAttribute("aria-sort", d), e.setAttribute("data-sort", d), e.setAttribute("data-sortBy", u.textContent),
|
|
105
|
+
}), u.setAttribute("aria-sort", d), e.setAttribute("data-sort", d), e.setAttribute("data-sortBy", u.textContent), S(u.textContent, d), Array.from(e.querySelectorAll("tr[draggable]")).forEach((p, y) => {
|
|
106
106
|
p.removeAttribute("draggable");
|
|
107
107
|
});
|
|
108
108
|
break;
|
|
@@ -239,7 +239,7 @@ function K(e) {
|
|
|
239
239
|
if (d.matches(".table-order-reset")) {
|
|
240
240
|
Array.from(e.querySelectorAll("[data-sortable]")).forEach((p, y) => {
|
|
241
241
|
p.setAttribute("aria-sort", "none");
|
|
242
|
-
}), e.removeAttribute("data-sort"), e.removeAttribute("data-sortBy"),
|
|
242
|
+
}), e.removeAttribute("data-sort"), e.removeAttribute("data-sortBy"), S("Order", "ascending"), Array.from(e.querySelectorAll("tbody tr")).forEach((p, y) => {
|
|
243
243
|
p.setAttribute("draggable", "true");
|
|
244
244
|
});
|
|
245
245
|
break;
|
|
@@ -266,7 +266,7 @@ function K(e) {
|
|
|
266
266
|
}, !1);
|
|
267
267
|
}
|
|
268
268
|
e.addEventListener("filtered", function(_) {
|
|
269
|
-
if (e.getAttribute("data-sortBy") && e.getAttribute("data-sort") &&
|
|
269
|
+
if (e.getAttribute("data-sortBy") && e.getAttribute("data-sort") && S(e.getAttribute("data-sortBy"), e.getAttribute("data-sort")), e.getAttribute("data-show")) {
|
|
270
270
|
const u = parseInt(e.getAttribute("data-show")), d = e.querySelectorAll("tbody tr").length, p = e.querySelector(".table__pagination");
|
|
271
271
|
p != null && p.remove(), u < d && (H(u, 1), J(i, e, u, 1, d), D(i, e, u, 1, d));
|
|
272
272
|
}
|
|
@@ -395,7 +395,7 @@ const pe = {
|
|
|
395
395
|
});
|
|
396
396
|
}
|
|
397
397
|
}, ye = ["data-sortby", "data-sort", "data-show", "data-page", "data-reorder"], be = { key: 0 }, ve = ["data-sortable", "data-filterable"], ge = { key: 1 }, we = ["data-row-id"], ke = ["innerHTML", "data-label", "data-numeric"];
|
|
398
|
-
function
|
|
398
|
+
function Se(e, n, t, c, m, a) {
|
|
399
399
|
return o(), l("div", {
|
|
400
400
|
class: "table__wrapper",
|
|
401
401
|
ref: "wrapper",
|
|
@@ -410,7 +410,7 @@ function $e(e, n, t, c, m, a) {
|
|
|
410
410
|
s("tr", {
|
|
411
411
|
class: v(t.headingclass)
|
|
412
412
|
}, [
|
|
413
|
-
(o(!0), l(
|
|
413
|
+
(o(!0), l(A, null, x(t.fields, (r) => (o(), l("th", {
|
|
414
414
|
key: r.key,
|
|
415
415
|
"data-sortable": r.sortable,
|
|
416
416
|
"data-filterable": r.filterable
|
|
@@ -418,14 +418,14 @@ function $e(e, n, t, c, m, a) {
|
|
|
418
418
|
], 2)
|
|
419
419
|
])) : h("v-if", !0),
|
|
420
420
|
t.items ? (o(), l("tbody", ge, [
|
|
421
|
-
(o(!0), l(
|
|
421
|
+
(o(!0), l(A, null, x(t.items, (r, i) => (o(), l("tr", {
|
|
422
422
|
key: i,
|
|
423
423
|
"data-row-id": r.rowid
|
|
424
424
|
}, [
|
|
425
|
-
(o(!0), l(
|
|
426
|
-
key:
|
|
425
|
+
(o(!0), l(A, null, x(Object.fromEntries(Object.entries(r).filter(([f]) => f !== "rowid")), (f, S) => (o(), l("td", {
|
|
426
|
+
key: S,
|
|
427
427
|
innerHTML: f,
|
|
428
|
-
"data-label": a.cellHeading(
|
|
428
|
+
"data-label": a.cellHeading(S),
|
|
429
429
|
"data-numeric": a.numericValue(f)
|
|
430
430
|
}, null, 8, ke))), 128))
|
|
431
431
|
], 8, we))), 128))
|
|
@@ -434,7 +434,7 @@ function $e(e, n, t, c, m, a) {
|
|
|
434
434
|
b(e.$slots, "default")
|
|
435
435
|
], 8, ye);
|
|
436
436
|
}
|
|
437
|
-
const E = /* @__PURE__ */ g(pe, [["render",
|
|
437
|
+
const E = /* @__PURE__ */ g(pe, [["render", Se], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/elements/Table/Table.vue"]]), $e = {
|
|
438
438
|
name: "Input",
|
|
439
439
|
props: {
|
|
440
440
|
value: {
|
|
@@ -505,6 +505,10 @@ const E = /* @__PURE__ */ g(pe, [["render", $e], ["__file", "C:/Users/James.Lamb
|
|
|
505
505
|
hint: {
|
|
506
506
|
type: String,
|
|
507
507
|
required: !1
|
|
508
|
+
},
|
|
509
|
+
multiple: {
|
|
510
|
+
type: String,
|
|
511
|
+
required: !1
|
|
508
512
|
}
|
|
509
513
|
},
|
|
510
514
|
computed: {
|
|
@@ -614,7 +618,7 @@ const E = /* @__PURE__ */ g(pe, [["render", $e], ["__file", "C:/Users/James.Lamb
|
|
|
614
618
|
this.$emit("bus");
|
|
615
619
|
}
|
|
616
620
|
}
|
|
617
|
-
},
|
|
621
|
+
}, Ae = ["for", "innerHTML", "title"], xe = ["innerHTML"], Le = ["innerHTML"], qe = ["type", "name", "id", "pattern", "list"], Te = ["type", "name", "id", "pattern"], Ce = {
|
|
618
622
|
key: 5,
|
|
619
623
|
class: "input-group"
|
|
620
624
|
}, Me = ["type", "name", "id", "pattern", "list"], He = { class: "input-group-text border-0 col-2 col-sm-1 px-0" }, Ne = {
|
|
@@ -632,7 +636,7 @@ function Je(e, n, t, c, m, a) {
|
|
|
632
636
|
for: t.id,
|
|
633
637
|
innerHTML: a.displayLabel(),
|
|
634
638
|
title: t.title
|
|
635
|
-
}, null, 10,
|
|
639
|
+
}, null, 10, Ae)) : h("v-if", !0),
|
|
636
640
|
h(" Prefix and Suffix "),
|
|
637
641
|
t.prefix ? (o(), l("span", {
|
|
638
642
|
key: 1,
|
|
@@ -713,7 +717,7 @@ function Je(e, n, t, c, m, a) {
|
|
|
713
717
|
id: t.id,
|
|
714
718
|
pattern: a.needPattern()
|
|
715
719
|
}, e.$attrs), [
|
|
716
|
-
(o(!0), l(
|
|
720
|
+
(o(!0), l(A, null, x(t.options, (r, i) => (o(), l("option", {
|
|
717
721
|
key: i,
|
|
718
722
|
value: r.value
|
|
719
723
|
}, w(r.display ? r.display : r.value), 9, Ie))), 128))
|
|
@@ -724,7 +728,7 @@ function Je(e, n, t, c, m, a) {
|
|
|
724
728
|
key: 8,
|
|
725
729
|
id: t.id + "-list"
|
|
726
730
|
}, [
|
|
727
|
-
(o(!0), l(
|
|
731
|
+
(o(!0), l(A, null, x(t.options, (r, i) => (o(), l("option", {
|
|
728
732
|
key: i,
|
|
729
733
|
value: r.value
|
|
730
734
|
}, w(r.value), 9, Fe))), 128))
|
|
@@ -768,7 +772,7 @@ function Je(e, n, t, c, m, a) {
|
|
|
768
772
|
b(e.$slots, "default")
|
|
769
773
|
], 2);
|
|
770
774
|
}
|
|
771
|
-
const I = /* @__PURE__ */ g(
|
|
775
|
+
const I = /* @__PURE__ */ g($e, [["render", Je], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/elements/Input/Input.vue"]]), We = {
|
|
772
776
|
components: {
|
|
773
777
|
Input: I
|
|
774
778
|
},
|
|
@@ -805,7 +809,7 @@ function Ye(e, n, t, c, m, a) {
|
|
|
805
809
|
s("div", {
|
|
806
810
|
class: v(`${t.inputcolclass ? t.inputcolclass : "col-12 col-sm-4"}`)
|
|
807
811
|
}, [
|
|
808
|
-
|
|
812
|
+
$(r, {
|
|
809
813
|
type: "file",
|
|
810
814
|
id: t.id,
|
|
811
815
|
name: `${t.id}[]`,
|
|
@@ -829,7 +833,7 @@ function Ye(e, n, t, c, m, a) {
|
|
|
829
833
|
}, "+ Add file", 8, Qe)
|
|
830
834
|
]);
|
|
831
835
|
}
|
|
832
|
-
const
|
|
836
|
+
const $i = /* @__PURE__ */ g(We, [["render", Ye], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/elements/FileUploads/FileUploads.vue"]]);
|
|
833
837
|
function Xe(e) {
|
|
834
838
|
if (!e.classList.contains("accordion--keep-open")) {
|
|
835
839
|
const n = e.querySelectorAll(":scope > details");
|
|
@@ -867,7 +871,7 @@ function st(e, n, t, c, m, a) {
|
|
|
867
871
|
b(e.$slots, "default")
|
|
868
872
|
], 512);
|
|
869
873
|
}
|
|
870
|
-
const
|
|
874
|
+
const Ai = /* @__PURE__ */ g(et, [["render", st], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/Accordion/Accordion.vue"]]), at = {
|
|
871
875
|
name: "AccordionItem",
|
|
872
876
|
props: {
|
|
873
877
|
title: {
|
|
@@ -978,6 +982,11 @@ const pt = {
|
|
|
978
982
|
type: String,
|
|
979
983
|
required: !1
|
|
980
984
|
},
|
|
985
|
+
cardClass: {
|
|
986
|
+
type: String,
|
|
987
|
+
required: !1,
|
|
988
|
+
default: ""
|
|
989
|
+
},
|
|
981
990
|
titleclass: {
|
|
982
991
|
type: String,
|
|
983
992
|
required: !1,
|
|
@@ -1018,6 +1027,10 @@ const pt = {
|
|
|
1018
1027
|
type: String,
|
|
1019
1028
|
required: !1
|
|
1020
1029
|
},
|
|
1030
|
+
target: {
|
|
1031
|
+
type: String,
|
|
1032
|
+
required: !1
|
|
1033
|
+
},
|
|
1021
1034
|
details: {
|
|
1022
1035
|
type: Object,
|
|
1023
1036
|
required: !1
|
|
@@ -1050,18 +1063,19 @@ const pt = {
|
|
|
1050
1063
|
};
|
|
1051
1064
|
}
|
|
1052
1065
|
}
|
|
1053
|
-
}, yt = ["href", "title"], bt = {
|
|
1066
|
+
}, yt = ["href", "title", "target"], bt = {
|
|
1054
1067
|
key: 0,
|
|
1055
1068
|
class: "card-header__wrapper"
|
|
1056
|
-
}, vt = ["src"], gt = { class: "card-header" }, wt = ["innerHTML"], kt = ["innerHTML"],
|
|
1069
|
+
}, vt = ["src"], gt = { class: "card-header" }, wt = ["innerHTML"], kt = ["innerHTML"], St = ["src"], $t = ["innerHTML"], At = {
|
|
1057
1070
|
key: 1,
|
|
1058
1071
|
class: "card-footer"
|
|
1059
1072
|
}, xt = { class: "visually-hidden" };
|
|
1060
1073
|
function Lt(e, n, t, c, m, a) {
|
|
1061
1074
|
return o(), l("a", {
|
|
1062
1075
|
href: t.link,
|
|
1063
|
-
class: v("card" + (t.type ? " card--" + t.type : "")),
|
|
1064
|
-
title:
|
|
1076
|
+
class: v("card" + (t.type ? " card--" + t.type : "") + " " + t.cardClass),
|
|
1077
|
+
title: t.ctatext + ": " + t.title + (t.subtitle ? " - " + t.subtitle : ""),
|
|
1078
|
+
target: t.target
|
|
1065
1079
|
}, [
|
|
1066
1080
|
t.image ? (o(), l("div", bt, [
|
|
1067
1081
|
s("img", {
|
|
@@ -1088,18 +1102,18 @@ function Lt(e, n, t, c, m, a) {
|
|
|
1088
1102
|
alt: "",
|
|
1089
1103
|
loading: "lazy",
|
|
1090
1104
|
class: "card-logo"
|
|
1091
|
-
}, null, 8,
|
|
1105
|
+
}, null, 8, St)) : h("v-if", !0)
|
|
1092
1106
|
])) : h("v-if", !0),
|
|
1093
1107
|
s("div", {
|
|
1094
1108
|
class: "card-body",
|
|
1095
1109
|
innerHTML: a.cardContent()
|
|
1096
|
-
}, null, 8,
|
|
1097
|
-
t.hidectatext == !1 ? (o(), l("div",
|
|
1110
|
+
}, null, 8, $t),
|
|
1111
|
+
t.hidectatext == !1 ? (o(), l("div", At, [
|
|
1098
1112
|
s("span", {
|
|
1099
1113
|
class: v(`${t.btntype == "link" ? "link" : `btn btn-${t.btntype}`} mb-0`)
|
|
1100
1114
|
}, [
|
|
1101
1115
|
P(w(t.ctatext), 1),
|
|
1102
|
-
s("span", xt, "
|
|
1116
|
+
s("span", xt, ": " + w(t.title), 1)
|
|
1103
1117
|
], 2)
|
|
1104
1118
|
])) : h("v-if", !0)
|
|
1105
1119
|
], 10, yt);
|
|
@@ -1172,16 +1186,16 @@ function Ct(e, n, t, c, m, a) {
|
|
|
1172
1186
|
s("div", {
|
|
1173
1187
|
class: v(`row row-cols-${t.cols} row-cols-sm-${t.smcols} row-cols-md-${t.mdcols} ${t.gap ? `g-${t.gap}` : ""}`)
|
|
1174
1188
|
}, [
|
|
1175
|
-
(o(!0), l(
|
|
1189
|
+
(o(!0), l(A, null, x(t.items, (i, f) => (o(), l("div", {
|
|
1176
1190
|
class: "col",
|
|
1177
1191
|
key: f
|
|
1178
1192
|
}, [
|
|
1179
|
-
|
|
1193
|
+
$(r, T(i, {
|
|
1180
1194
|
class: t.cardclass,
|
|
1181
1195
|
type: t.cardtype,
|
|
1182
|
-
btntype: t.btntype,
|
|
1183
|
-
titleclass: t.titleclass,
|
|
1184
|
-
ctatext:
|
|
1196
|
+
btntype: i.btntype ? i.btntype : t.btntype,
|
|
1197
|
+
titleclass: i.titleclass ? i.titleclass : t.titleclass,
|
|
1198
|
+
ctatext: i.ctatext,
|
|
1185
1199
|
hidectatext: t.hidectatext
|
|
1186
1200
|
}), null, 16, ["class", "type", "btntype", "titleclass", "ctatext", "hidectatext"])
|
|
1187
1201
|
]))), 128))
|
|
@@ -1197,7 +1211,7 @@ function Ht(e) {
|
|
|
1197
1211
|
let m = e.getAttribute("data-sm-cols"), a = e.getAttribute("data-md-cols");
|
|
1198
1212
|
e.querySelector(".carousel__controls a").classList.add("active"), t.addEventListener("scroll", function(r) {
|
|
1199
1213
|
clearTimeout(n), n = setTimeout(function() {
|
|
1200
|
-
let i = t.clientWidth, f = t.scrollWidth,
|
|
1214
|
+
let i = t.clientWidth, f = t.scrollWidth, S = t.scrollLeft, L = Math.round(S / f * c) + 1, C = e.querySelector(".carousel__item:last-child").offsetLeft;
|
|
1201
1215
|
Array.from(e.querySelectorAll(".carousel__controls a")).forEach((U, H) => {
|
|
1202
1216
|
U.classList.remove("active");
|
|
1203
1217
|
}), e.querySelector(".control-" + L).classList.add("active"), L == 1 ? e.querySelector(".btn-prev").setAttribute("disabled", "disabled") : e.querySelector(".btn-prev").removeAttribute("disabled"), t.scrollLeft + i > C ? e.querySelector(".btn-next").setAttribute("disabled", "disabled") : e.querySelector(".btn-next").removeAttribute("disabled");
|
|
@@ -1205,8 +1219,8 @@ function Ht(e) {
|
|
|
1205
1219
|
}, !1), e.addEventListener("click", function(r) {
|
|
1206
1220
|
for (var i = r.target; i && i != this; i = i.parentNode)
|
|
1207
1221
|
if (i.matches(".carousel__controls a")) {
|
|
1208
|
-
r.preventDefault(), Array.from(e.querySelectorAll(".carousel__controls a")).forEach((
|
|
1209
|
-
|
|
1222
|
+
r.preventDefault(), Array.from(e.querySelectorAll(".carousel__controls a")).forEach((S, L) => {
|
|
1223
|
+
S.classList.remove("active");
|
|
1210
1224
|
}), i.classList.add("active");
|
|
1211
1225
|
const f = document.querySelector(i.getAttribute("href"));
|
|
1212
1226
|
t.scroll({
|
|
@@ -1293,12 +1307,12 @@ function Gt(e, n, t, c, m, a) {
|
|
|
1293
1307
|
key: 0,
|
|
1294
1308
|
class: v(`row row-cols-${e.cols} row-cols-sm-${e.smcols} row-cols-md-${e.mdcols} ${e.gap ? `g-${e.gap}` : ""}`)
|
|
1295
1309
|
}, [
|
|
1296
|
-
(o(!0), l(
|
|
1310
|
+
(o(!0), l(A, null, x(e.items, (i, f) => (o(), l("div", {
|
|
1297
1311
|
class: v(`col carousel__item${t.colclass ? ` ${t.colclass}` : ""}`),
|
|
1298
1312
|
key: f,
|
|
1299
1313
|
id: "carousel" + m.id + "slide" + (f + 1)
|
|
1300
1314
|
}, [
|
|
1301
|
-
|
|
1315
|
+
$(r, T(i, {
|
|
1302
1316
|
class: e.cardclass,
|
|
1303
1317
|
type: e.cardtype,
|
|
1304
1318
|
btnyype: e.btntype,
|
|
@@ -1312,7 +1326,7 @@ function Gt(e, n, t, c, m, a) {
|
|
|
1312
1326
|
key: 1,
|
|
1313
1327
|
class: v(`row row-cols-${e.cols} row-cols-sm-${e.smcols} row-cols-md-${e.mdcols} ${e.gap ? `g-${e.gap}` : ""}`)
|
|
1314
1328
|
}, [
|
|
1315
|
-
(o(!0), l(
|
|
1329
|
+
(o(!0), l(A, null, x(e.items, (i, f) => (o(), l("div", {
|
|
1316
1330
|
class: v(`col carousel__item${t.colclass ? ` ${t.colclass}` : ""}`),
|
|
1317
1331
|
key: f,
|
|
1318
1332
|
innerHTML: a.content(i),
|
|
@@ -1323,7 +1337,7 @@ function Gt(e, n, t, c, m, a) {
|
|
|
1323
1337
|
s("div", {
|
|
1324
1338
|
class: v(`carousel__controls cols-${e.cols} cols-sm-${e.smcols} cols-md-${e.mdcols}`)
|
|
1325
1339
|
}, [
|
|
1326
|
-
(o(!0), l(
|
|
1340
|
+
(o(!0), l(A, null, x(e.items, (i, f) => (o(), l("a", {
|
|
1327
1341
|
key: f,
|
|
1328
1342
|
href: "#carousel" + m.id + "slide" + (f + 1),
|
|
1329
1343
|
class: v(`control-${f + 1}`)
|
|
@@ -1385,16 +1399,16 @@ function Yt(e) {
|
|
|
1385
1399
|
};
|
|
1386
1400
|
t.addEventListener("scroll", function(a) {
|
|
1387
1401
|
clearTimeout(n), n = setTimeout(function() {
|
|
1388
|
-
let r = t.scrollWidth, i = t.scrollHeight, f = t.scrollLeft,
|
|
1389
|
-
f == 0 &&
|
|
1402
|
+
let r = t.scrollWidth, i = t.scrollHeight, f = t.scrollLeft, S = t.scrollTop, L = Math.round(f / r * c) + 1;
|
|
1403
|
+
f == 0 && S != 0 && (L = Math.round(S / i * c) + 1), e.setAttribute("data-show", L), m(L);
|
|
1390
1404
|
}, 300);
|
|
1391
1405
|
}, !1), e.addEventListener("click", function(a) {
|
|
1392
1406
|
for (var r = a.target; r && r != this; r = r.parentNode)
|
|
1393
1407
|
if (r.matches("[data-go]")) {
|
|
1394
|
-
let i = parseInt(r.getAttribute("data-go")), f = 0,
|
|
1395
|
-
L > C ?
|
|
1408
|
+
let i = parseInt(r.getAttribute("data-go")), f = 0, S = 0, L = t.scrollWidth, C = t.scrollHeight;
|
|
1409
|
+
L > C ? S = Math.floor(L * ((i - 1) / c)) : f = Math.floor(C * ((i - 1) / c)), t.scroll({
|
|
1396
1410
|
top: f,
|
|
1397
|
-
left:
|
|
1411
|
+
left: S,
|
|
1398
1412
|
behavior: "smooth"
|
|
1399
1413
|
});
|
|
1400
1414
|
break;
|
|
@@ -1440,7 +1454,7 @@ function ms(e, n, t, c, m, a) {
|
|
|
1440
1454
|
s("div", ts, [
|
|
1441
1455
|
s("div", ss, [
|
|
1442
1456
|
s("div", as, [
|
|
1443
|
-
(o(!0), l(
|
|
1457
|
+
(o(!0), l(A, null, x(t.items, (r, i) => (o(), l("img", {
|
|
1444
1458
|
key: i,
|
|
1445
1459
|
src: r.image ? r.image : "data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",
|
|
1446
1460
|
alt: "",
|
|
@@ -1452,7 +1466,7 @@ function ms(e, n, t, c, m, a) {
|
|
|
1452
1466
|
s("div", rs, [
|
|
1453
1467
|
os,
|
|
1454
1468
|
s("div", ls, [
|
|
1455
|
-
(o(!0), l(
|
|
1469
|
+
(o(!0), l(A, null, x(t.items, (r, i) => (o(), l("blockquote", {
|
|
1456
1470
|
key: i,
|
|
1457
1471
|
class: v(r.class)
|
|
1458
1472
|
}, [
|
|
@@ -1626,10 +1640,10 @@ const hs = {
|
|
|
1626
1640
|
}, ps = { class: "property-searchbar" }, ys = ["action", "method"], bs = { class: "col-12 col-md-3" }, vs = { class: "col-12 col-md" }, gs = /* @__PURE__ */ s("span", { class: "form-label d-none d-md-block" }, "Price range", -1), ws = {
|
|
1627
1641
|
class: "row",
|
|
1628
1642
|
"data-input-range": ""
|
|
1629
|
-
}, ks = { class: "col-12 col-md" },
|
|
1643
|
+
}, ks = { class: "col-12 col-md" }, Ss = /* @__PURE__ */ s("span", { class: "form-label d-none d-md-block" }, "Number of beds", -1), $s = {
|
|
1630
1644
|
class: "row",
|
|
1631
1645
|
"data-input-range": ""
|
|
1632
|
-
},
|
|
1646
|
+
}, As = { class: "col-12 col-md-2" }, xs = /* @__PURE__ */ s("div", { class: "col-12 col-md mw-md-fit-content d-flex property-searchbar__btn" }, [
|
|
1633
1647
|
/* @__PURE__ */ s("button", {
|
|
1634
1648
|
class: "btn w-100 me-0",
|
|
1635
1649
|
type: "submit",
|
|
@@ -1647,7 +1661,7 @@ function Ls(e, n, t, c, m, a) {
|
|
|
1647
1661
|
method: t.formmethod
|
|
1648
1662
|
}, [
|
|
1649
1663
|
s("fieldset", bs, [
|
|
1650
|
-
|
|
1664
|
+
$(r, {
|
|
1651
1665
|
inputClass: "input--locations",
|
|
1652
1666
|
modelValue: a.locationSet,
|
|
1653
1667
|
"onUpdate:modelValue": n[0] || (n[0] = (i) => a.locationSet = i),
|
|
@@ -1659,7 +1673,7 @@ function Ls(e, n, t, c, m, a) {
|
|
|
1659
1673
|
onKeyupEvent: n[1] || (n[1] = (i) => a.locationKeyup(...arguments)),
|
|
1660
1674
|
ref: "search"
|
|
1661
1675
|
}, null, 8, ["modelValue", "options"]),
|
|
1662
|
-
|
|
1676
|
+
$(r, {
|
|
1663
1677
|
class: "select--miles",
|
|
1664
1678
|
label: "Miles",
|
|
1665
1679
|
id: "miles",
|
|
@@ -1670,7 +1684,7 @@ function Ls(e, n, t, c, m, a) {
|
|
|
1670
1684
|
s("fieldset", vs, [
|
|
1671
1685
|
gs,
|
|
1672
1686
|
s("div", ws, [
|
|
1673
|
-
|
|
1687
|
+
$(r, {
|
|
1674
1688
|
class: "col-6",
|
|
1675
1689
|
label: "Minimum price",
|
|
1676
1690
|
id: "price-min",
|
|
@@ -1678,7 +1692,7 @@ function Ls(e, n, t, c, m, a) {
|
|
|
1678
1692
|
type: "select",
|
|
1679
1693
|
options: t.pricemin
|
|
1680
1694
|
}, null, 8, ["options"]),
|
|
1681
|
-
|
|
1695
|
+
$(r, {
|
|
1682
1696
|
class: "col-6",
|
|
1683
1697
|
label: "Maximum price",
|
|
1684
1698
|
id: "price-max",
|
|
@@ -1689,9 +1703,9 @@ function Ls(e, n, t, c, m, a) {
|
|
|
1689
1703
|
])
|
|
1690
1704
|
]),
|
|
1691
1705
|
s("fieldset", ks, [
|
|
1692
|
-
|
|
1693
|
-
s("div",
|
|
1694
|
-
|
|
1706
|
+
Ss,
|
|
1707
|
+
s("div", $s, [
|
|
1708
|
+
$(r, {
|
|
1695
1709
|
class: "col-6",
|
|
1696
1710
|
label: "Minimum beds",
|
|
1697
1711
|
id: "beds-min",
|
|
@@ -1699,7 +1713,7 @@ function Ls(e, n, t, c, m, a) {
|
|
|
1699
1713
|
type: "select",
|
|
1700
1714
|
options: t.bedsmin
|
|
1701
1715
|
}, null, 8, ["options"]),
|
|
1702
|
-
|
|
1716
|
+
$(r, {
|
|
1703
1717
|
class: "col-6",
|
|
1704
1718
|
label: "Maximum beds",
|
|
1705
1719
|
id: "beds-max",
|
|
@@ -1709,8 +1723,8 @@ function Ls(e, n, t, c, m, a) {
|
|
|
1709
1723
|
}, null, 8, ["options"])
|
|
1710
1724
|
])
|
|
1711
1725
|
]),
|
|
1712
|
-
s("fieldset",
|
|
1713
|
-
|
|
1726
|
+
s("fieldset", As, [
|
|
1727
|
+
$(r, {
|
|
1714
1728
|
label: "Property type",
|
|
1715
1729
|
id: "property-type",
|
|
1716
1730
|
type: "select",
|
|
@@ -1936,7 +1950,7 @@ function pa(e, n, t, c, m, a) {
|
|
|
1936
1950
|
b(e.$slots, "logo")
|
|
1937
1951
|
])) : (o(), l("div", Is, [
|
|
1938
1952
|
s("a", Us, [
|
|
1939
|
-
|
|
1953
|
+
$(r, {
|
|
1940
1954
|
id: t.logo,
|
|
1941
1955
|
path: t.logopath,
|
|
1942
1956
|
desc: t.logotext,
|
|
@@ -1955,7 +1969,7 @@ function pa(e, n, t, c, m, a) {
|
|
|
1955
1969
|
b(e.$slots, "logo")
|
|
1956
1970
|
])) : (o(), l("div", js, [
|
|
1957
1971
|
s("a", Js, [
|
|
1958
|
-
|
|
1972
|
+
$(r, {
|
|
1959
1973
|
id: t.logo,
|
|
1960
1974
|
path: t.logopath,
|
|
1961
1975
|
desc: t.logotext,
|
|
@@ -1999,7 +2013,7 @@ function pa(e, n, t, c, m, a) {
|
|
|
1999
2013
|
b(e.$slots, "logo")
|
|
2000
2014
|
])) : (o(), l("div", ua, [
|
|
2001
2015
|
s("a", fa, [
|
|
2002
|
-
|
|
2016
|
+
$(r, {
|
|
2003
2017
|
id: t.logo,
|
|
2004
2018
|
path: t.logopath,
|
|
2005
2019
|
desc: t.logotext,
|
|
@@ -2048,14 +2062,14 @@ const ba = {
|
|
|
2048
2062
|
name: "showDrawer",
|
|
2049
2063
|
id: "showDrawer",
|
|
2050
2064
|
class: "d-none"
|
|
2051
|
-
}, null, -1), wa = { class: "drawer__btn pb-0" }, ka = { class: "container text-end pb-0" },
|
|
2065
|
+
}, null, -1), wa = { class: "drawer__btn pb-0" }, ka = { class: "container text-end pb-0" }, Sa = {
|
|
2052
2066
|
for: "showDrawer",
|
|
2053
2067
|
class: "btn btn-secondary me-0"
|
|
2054
|
-
},
|
|
2068
|
+
}, $a = {
|
|
2055
2069
|
class: "drawer",
|
|
2056
2070
|
id: "drawer",
|
|
2057
2071
|
ref: "drawer"
|
|
2058
|
-
},
|
|
2072
|
+
}, Aa = /* @__PURE__ */ s("div", { class: "container text-end pb-0" }, [
|
|
2059
2073
|
/* @__PURE__ */ s("label", {
|
|
2060
2074
|
for: "showDrawer",
|
|
2061
2075
|
class: "btn btn-tertiary mb-0 me-0 py-1 px-2"
|
|
@@ -2069,11 +2083,11 @@ function La(e, n, t, c, m, a) {
|
|
|
2069
2083
|
ga,
|
|
2070
2084
|
s("div", wa, [
|
|
2071
2085
|
s("div", ka, [
|
|
2072
|
-
s("label",
|
|
2086
|
+
s("label", Sa, w(t.label), 1)
|
|
2073
2087
|
])
|
|
2074
2088
|
]),
|
|
2075
|
-
s("div",
|
|
2076
|
-
|
|
2089
|
+
s("div", $a, [
|
|
2090
|
+
Aa,
|
|
2077
2091
|
b(e.$slots, "default")
|
|
2078
2092
|
], 512),
|
|
2079
2093
|
xa
|
|
@@ -2271,7 +2285,7 @@ const ei = {
|
|
|
2271
2285
|
}, si = ["data-key", "name", "id", "checked"], ai = { class: "tabs__links" }, ii = ["for", "onClick"], ni = { class: "tabs" };
|
|
2272
2286
|
function ri(e, n, t, c, m, a) {
|
|
2273
2287
|
return o(), l("div", ti, [
|
|
2274
|
-
(o(!0), l(
|
|
2288
|
+
(o(!0), l(A, null, x(a.tabLinks(), (r, i) => (o(), l("input", {
|
|
2275
2289
|
type: "radio",
|
|
2276
2290
|
class: "tab__input",
|
|
2277
2291
|
key: i,
|
|
@@ -2281,7 +2295,7 @@ function ri(e, n, t, c, m, a) {
|
|
|
2281
2295
|
checked: i == 0
|
|
2282
2296
|
}, null, 8, si))), 128)),
|
|
2283
2297
|
s("div", ai, [
|
|
2284
|
-
(o(!0), l(
|
|
2298
|
+
(o(!0), l(A, null, x(a.tabLinks(), (r, i) => (o(), l("label", {
|
|
2285
2299
|
key: i,
|
|
2286
2300
|
for: r.id,
|
|
2287
2301
|
class: "link",
|
|
@@ -2451,7 +2465,7 @@ function wi(e, n, t, c, m, a) {
|
|
|
2451
2465
|
class: "h3",
|
|
2452
2466
|
innerHTML: t.title
|
|
2453
2467
|
}, null, 8, yi)) : h("v-if", !0),
|
|
2454
|
-
|
|
2468
|
+
$(r, T({
|
|
2455
2469
|
fields: [{ key: "date_added" }, { key: "user" }, { key: "note" }],
|
|
2456
2470
|
items: m.itemsData
|
|
2457
2471
|
}, e.$props, { class: "mb-0" }), null, 16, ["items"]),
|
|
@@ -2465,7 +2479,7 @@ function wi(e, n, t, c, m, a) {
|
|
|
2465
2479
|
value: t.user,
|
|
2466
2480
|
name: "user"
|
|
2467
2481
|
}, null, 8, vi),
|
|
2468
|
-
|
|
2482
|
+
$(i, {
|
|
2469
2483
|
id: "addNote",
|
|
2470
2484
|
type: "textarea",
|
|
2471
2485
|
label: "Add note",
|
|
@@ -2478,7 +2492,7 @@ function wi(e, n, t, c, m, a) {
|
|
|
2478
2492
|
}
|
|
2479
2493
|
const zi = /* @__PURE__ */ g(_i, [["render", wi], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/NoteFeed/NoteFeed.vue"]]);
|
|
2480
2494
|
export {
|
|
2481
|
-
|
|
2495
|
+
Ai as Accordion,
|
|
2482
2496
|
xi as AccordionItem,
|
|
2483
2497
|
Fi as Alert,
|
|
2484
2498
|
Li as Banner,
|
|
@@ -2486,7 +2500,7 @@ export {
|
|
|
2486
2500
|
Mt as CardDeck,
|
|
2487
2501
|
qi as Carousel,
|
|
2488
2502
|
Ni as Drawer,
|
|
2489
|
-
|
|
2503
|
+
$i as FileUploads,
|
|
2490
2504
|
Ti as Header,
|
|
2491
2505
|
re as Icon,
|
|
2492
2506
|
I as Input,
|