@iamproperty/components 3.2.0 → 3.4.5
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/README.md +30 -66
- package/assets/css/core.min.css.map +1 -1
- package/assets/css/style.min.css.map +1 -1
- package/assets/js/main.js +9 -9
- package/assets/js/modules/accordion.js +1 -0
- package/assets/js/modules/alert.js +37 -53
- package/assets/js/modules/carousel.js +74 -100
- package/assets/js/modules/chart.js +142 -209
- package/assets/js/modules/drawer.js +9 -15
- package/assets/js/modules/file-upload.js +30 -45
- package/assets/js/modules/form.js +111 -157
- package/assets/js/modules/helpers.js +64 -93
- package/assets/js/modules/modal.js +67 -88
- package/assets/js/modules/nav.js +17 -27
- package/assets/js/modules/orderablelist.js +84 -115
- package/assets/js/modules/table.js +387 -521
- package/assets/js/modules/testimonial.js +61 -80
- package/assets/js/modules/youtubevideo.js +104 -135
- package/assets/js/scripts.bundle.js +870 -936
- package/assets/js/scripts.bundle.js.map +1 -1
- package/assets/js/scripts.bundle.min.js +3 -3
- package/assets/js/scripts.bundle.min.js.map +1 -1
- package/assets/sass/_corefiles.scss +9 -9
- package/assets/sass/_forms.scss +1 -1
- package/assets/sass/_tests/{sass.spec.js → colours.spec.js} +2 -2
- package/assets/sass/_tests/func.spec.js +9 -0
- package/assets/sass/_tests/mixins.spec.js +9 -0
- package/assets/sass/_tests/typography.spec.js +9 -0
- package/assets/ts/main.ts +9 -9
- package/assets/ts/modules/accordion.ts +1 -0
- package/assets/ts/modules/alert.ts +58 -0
- package/assets/ts/modules/carousel.ts +103 -0
- package/assets/ts/modules/chart.ts +219 -0
- package/assets/ts/modules/drawer.ts +17 -0
- package/assets/ts/modules/file-upload.ts +49 -0
- package/assets/ts/modules/form.ts +169 -0
- package/assets/ts/modules/helpers.ts +120 -0
- package/assets/ts/modules/modal.ts +91 -0
- package/assets/ts/modules/nav.ts +29 -0
- package/assets/ts/modules/orderablelist.ts +123 -0
- package/assets/ts/modules/table.ts +586 -0
- package/assets/ts/modules/testimonial.ts +84 -0
- package/assets/ts/modules/youtubevideo.ts +146 -0
- package/dist/components.es.js +671 -750
- package/dist/components.umd.js +13 -13
- package/dist/style.css +1 -1
- package/package.json +54 -38
- package/src/components/Accordion/Accordion.vue +1 -1
- package/src/components/Alert/Alert.vue +1 -1
- package/src/{elements → components}/Card/Card.vue +1 -1
- package/src/components/CardDeck/CardDeck.spec.js +1 -1
- package/src/components/CardDeck/CardDeck.vue +1 -1
- package/src/components/Carousel/Carousel.vue +2 -2
- package/src/components/Chart/Chart.vue +2 -2
- package/src/{elements → components}/FileUploads/FileUploads.vue +1 -1
- package/src/components/Modal/Modal.vue +1 -1
- package/src/components/Nav/Nav.vue +2 -2
- package/src/components/NoteFeed/NoteFeed.vue +2 -2
- package/src/components/PropertySearchbar/PropertySearchbar.vue +1 -1
- package/src/{elements → components}/Table/Table.vue +1 -1
- package/src/components/Testimonial/Testimonial.vue +1 -1
- package/src/foundations/YoutubeVideo/YoutubeVideo.vue +1 -1
- package/src/index.js +4 -5
- package/assets/.DS_Store +0 -0
- package/assets/css/email.min.css +0 -1
- package/assets/css/email.min.css.map +0 -1
- package/assets/css/error.min.css +0 -1
- package/assets/css/error.min.css.map +0 -1
- package/assets/sass/components/drawer.scss +0 -47
- package/assets/ts/main.js +0 -57
- package/assets/ts/main.js.map +0 -1
- package/assets/ts/modules/accordion.js +0 -33
- package/assets/ts/modules/accordion.js.map +0 -1
- package/src/.DS_Store +0 -0
- package/src/components/Accordion/Accordion.screenshot.vue +0 -57
- package/src/components/Accordion/__screenshots__/win32/laptop/Accordion.png +0 -0
- package/src/components/Accordion/__screenshots__/win32/mobile/Accordion.png +0 -0
- package/src/components/Accordion/__screenshots__/win32/tablet/Accordion.png +0 -0
- package/src/components/Drawer/Drawer.vue +0 -53
- package/src/components/Drawer/README.md +0 -23
- /package/assets/sass/{elements → components}/buttons.scss +0 -0
- /package/assets/sass/{elements → components}/card.scss +0 -0
- /package/assets/sass/{elements → components}/container.scss +0 -0
- /package/assets/sass/{elements → components}/forms.scss +0 -0
- /package/assets/sass/{elements → components}/links.scss +0 -0
- /package/assets/sass/{elements → components}/lists.scss +0 -0
- /package/assets/sass/{elements → components}/panel.scss +0 -0
- /package/assets/sass/{elements → components}/tables.scss +0 -0
- /package/assets/sass/{elements → components}/tooltips.scss +0 -0
- /package/assets/sass/{elements → foundations}/type.scss +0 -0
- /package/src/{elements → components}/Card/README.md +0 -0
- /package/src/{elements → components}/FileUploads/README.md +0 -0
- /package/src/{elements → components}/Input/Input.vue +0 -0
- /package/src/{elements → components}/Input/README.md +0 -0
- /package/src/{elements → components}/Table/README.md +0 -0
- /package/src/{elements → components}/Table/Table.spec.js +0 -0
package/dist/components.es.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { openBlock as
|
|
2
|
-
const g = (e,
|
|
1
|
+
import { openBlock as l, createElementBlock as o, createElementVNode as s, toDisplayString as k, normalizeClass as b, createCommentVNode as p, Fragment as $, renderList as x, renderSlot as v, withDirectives as N, mergeProps as T, vModelDynamic as O, vModelText as J, vModelSelect as X, resolveComponent as H, createVNode as S, createTextVNode as F, normalizeStyle as ee, withModifiers as te } from "vue";
|
|
2
|
+
const g = (e, r) => {
|
|
3
3
|
const t = e.__vccOpts || e;
|
|
4
|
-
for (const [
|
|
5
|
-
t[
|
|
4
|
+
for (const [u, h] of r)
|
|
5
|
+
t[u] = h;
|
|
6
6
|
return t;
|
|
7
7
|
}, se = {
|
|
8
8
|
name: "Icon",
|
|
@@ -19,15 +19,15 @@ const g = (e, n) => {
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
}, ae = { class: "icon" }, ie = ["xlink:href"];
|
|
22
|
-
function ne(e,
|
|
23
|
-
return
|
|
24
|
-
s("title", null,
|
|
22
|
+
function ne(e, r, t, u, h, a) {
|
|
23
|
+
return l(), o("svg", ae, [
|
|
24
|
+
s("title", null, k(t.id), 1),
|
|
25
25
|
s("use", {
|
|
26
26
|
"xlink:href": t.path + "#icon-" + t.id
|
|
27
27
|
}, null, 8, ie)
|
|
28
28
|
]);
|
|
29
29
|
}
|
|
30
|
-
const re = /* @__PURE__ */ g(se, [["render", ne]
|
|
30
|
+
const re = /* @__PURE__ */ g(se, [["render", ne]]), le = {
|
|
31
31
|
name: "Logo",
|
|
32
32
|
props: {
|
|
33
33
|
id: {
|
|
@@ -52,237 +52,238 @@ const re = /* @__PURE__ */ g(se, [["render", ne], ["__file", "/Users/james/works
|
|
|
52
52
|
return "brand brand--" + this.id;
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
},
|
|
56
|
-
function de(e,
|
|
57
|
-
return
|
|
58
|
-
class:
|
|
55
|
+
}, oe = ["xlink:href"], ce = ["innerHTML"];
|
|
56
|
+
function de(e, r, t, u, h, a) {
|
|
57
|
+
return l(), o("div", {
|
|
58
|
+
class: b(a.className)
|
|
59
59
|
}, [
|
|
60
|
-
(
|
|
61
|
-
s("title", null, "iam " +
|
|
60
|
+
(l(), o("svg", null, [
|
|
61
|
+
s("title", null, "iam " + k(t.id), 1),
|
|
62
62
|
s("use", {
|
|
63
63
|
"xlink:href": t.path + a.src
|
|
64
|
-
}, null, 8,
|
|
64
|
+
}, null, 8, oe)
|
|
65
65
|
])),
|
|
66
|
-
t.desc ? (
|
|
66
|
+
t.desc ? (l(), o("span", {
|
|
67
67
|
key: 0,
|
|
68
68
|
innerHTML: t.desc
|
|
69
|
-
}, null, 8, ce)) :
|
|
69
|
+
}, null, 8, ce)) : p("", !0)
|
|
70
70
|
], 2);
|
|
71
71
|
}
|
|
72
|
-
const ue = /* @__PURE__ */ g(
|
|
72
|
+
const ue = /* @__PURE__ */ g(le, [["render", de]]), W = (e) => e.charAt(0).toUpperCase() + e.slice(1), K = (e) => e.replace(/_/g, " "), fe = (e) => e.replace(/ /g, "_"), he = function(e) {
|
|
73
73
|
return e = e.toLowerCase(), e = fe(e), e = e.replace(/\W/g, ""), e;
|
|
74
74
|
}, me = function(e) {
|
|
75
|
-
return typeof e != "string" ? !1 : !isNaN(e) &&
|
|
76
|
-
|
|
77
|
-
|
|
75
|
+
return typeof e != "string" ? !1 : !isNaN(e) && // use type coercion to parse the _entirety_ of the string (`parseFloat` alone does not do this)...
|
|
76
|
+
!isNaN(parseFloat(e));
|
|
77
|
+
}, _e = (e, r) => String(e).padStart(r, "0");
|
|
78
|
+
function Z(e) {
|
|
78
79
|
if (typeof e != "object")
|
|
79
80
|
return !1;
|
|
80
|
-
const
|
|
81
|
+
const r = e.querySelector("thead"), t = e.querySelector("tbody"), u = t.cloneNode(!0), h = new Event("sorted"), a = new Event("filtered"), n = new Event("reordered"), i = "table_" + Math.random().toString(36).substr(2, 9);
|
|
81
82
|
let f;
|
|
82
83
|
e.setAttribute("id", i);
|
|
83
|
-
const
|
|
84
|
-
let
|
|
84
|
+
const A = function(m, d) {
|
|
85
|
+
let c = [];
|
|
85
86
|
Array.from(t.querySelectorAll("tr")).forEach((y, L) => {
|
|
86
|
-
let
|
|
87
|
-
me(
|
|
88
|
-
const
|
|
89
|
-
index:
|
|
87
|
+
let w = y.querySelector('td[data-label="' + m + '"], th[data-label="' + m + '"]').textContent;
|
|
88
|
+
me(w) && (w = _e(w, 10));
|
|
89
|
+
const V = {
|
|
90
|
+
index: w,
|
|
90
91
|
row: y
|
|
91
92
|
};
|
|
92
|
-
|
|
93
|
-
}),
|
|
94
|
-
let
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
}), t.innerHTML =
|
|
93
|
+
c.push(V);
|
|
94
|
+
}), c.sort((y, L) => y.index > L.index ? 1 : -1), d == "descending" && (c = c.reverse());
|
|
95
|
+
let _ = "";
|
|
96
|
+
c.forEach((y, L) => {
|
|
97
|
+
_ += y.row.outerHTML;
|
|
98
|
+
}), t.innerHTML = _, e.dispatchEvent(h);
|
|
98
99
|
};
|
|
99
|
-
if (e.addEventListener("click", function(
|
|
100
|
-
for (var
|
|
101
|
-
if (
|
|
102
|
-
let
|
|
103
|
-
Array.from(e.querySelectorAll("[data-sortable]")).forEach((
|
|
104
|
-
|
|
105
|
-
}),
|
|
106
|
-
|
|
100
|
+
if (e.addEventListener("click", function(m) {
|
|
101
|
+
for (var d = m.target; d && d != this; d = d.parentNode)
|
|
102
|
+
if (d.matches("[data-sortable]")) {
|
|
103
|
+
let c = d.getAttribute("aria-sort") == "ascending" ? "descending" : "ascending";
|
|
104
|
+
Array.from(e.querySelectorAll("[data-sortable]")).forEach((_, y) => {
|
|
105
|
+
_.setAttribute("aria-sort", "none");
|
|
106
|
+
}), d.setAttribute("aria-sort", c), e.setAttribute("data-sort", c), e.setAttribute("data-sortBy", d.textContent), A(d.textContent, c), Array.from(e.querySelectorAll("tr[draggable]")).forEach((_, y) => {
|
|
107
|
+
_.removeAttribute("draggable");
|
|
107
108
|
});
|
|
108
109
|
break;
|
|
109
110
|
}
|
|
110
111
|
}, !1), e.getAttribute("data-sortBy")) {
|
|
111
|
-
let
|
|
112
|
-
Array.from(e.querySelectorAll("[data-sortable]")).forEach((
|
|
113
|
-
|
|
112
|
+
let m = e.getAttribute("data-sort") == "ascending" ? "descending" : "ascending";
|
|
113
|
+
Array.from(e.querySelectorAll("[data-sortable]")).forEach((d, c) => {
|
|
114
|
+
d.textContent == e.getAttribute("data-sortBy") && (d.setAttribute("aria-sort", m), d.click());
|
|
114
115
|
});
|
|
115
116
|
}
|
|
116
|
-
const q = function(
|
|
117
|
-
const
|
|
118
|
-
|
|
119
|
-
const
|
|
120
|
-
let
|
|
121
|
-
|
|
122
|
-
Array.from(e.querySelectorAll('td[data-label="' +
|
|
123
|
-
|
|
117
|
+
const q = function(m) {
|
|
118
|
+
const d = document.createElement("div");
|
|
119
|
+
d.classList.add("table__filters"), d.classList.add("row"), d.classList.add("pt-1"), d.classList.add("pb-3");
|
|
120
|
+
const c = Array.from(e.querySelectorAll("th[data-filterable]"));
|
|
121
|
+
let _ = {};
|
|
122
|
+
c.forEach((w, V) => {
|
|
123
|
+
Array.from(e.querySelectorAll('td[data-label="' + w.textContent + '"]')).forEach((j, ci) => {
|
|
124
|
+
_[j.textContent] = j.textContent;
|
|
124
125
|
});
|
|
125
126
|
});
|
|
126
|
-
const y =
|
|
127
|
-
|
|
127
|
+
const y = c.length == 1 ? "Filter by " + c[0].textContent : "Filter", L = c.length == 1 ? "d-none" : "d-sm-flex";
|
|
128
|
+
d.innerHTML = `<div class="col-sm-6 col-md-4 pb-3">
|
|
128
129
|
<div class="form-control__wrapper form-control-inline mb-0">
|
|
129
130
|
<label for="${i}_filter" class="form-label">${y}:</label>
|
|
130
131
|
<input type="search" name="${i}_filter" id="${i}_filter" class="form-control form-control-sm" placeholder="" list="${i}_list" />
|
|
131
132
|
</div>
|
|
132
133
|
<datalist id="${i}_list">
|
|
133
|
-
${Object.keys(
|
|
134
|
+
${Object.keys(_).map((w) => `<option value="${w}"></option>`).join("")}
|
|
134
135
|
</datalist>
|
|
135
136
|
</div>
|
|
136
137
|
<div class="col-md-8 align-items-center pb-3 ${L}">
|
|
137
|
-
${'<span class="pe-3 text-nowrap h5 mb-0">Filter by: </span>' +
|
|
138
|
-
</div>`, e.prepend(
|
|
139
|
-
}, M = function(
|
|
140
|
-
let
|
|
141
|
-
Array.from(
|
|
138
|
+
${'<span class="pe-3 text-nowrap h5 mb-0">Filter by: </span>' + c.map((w) => `<div class="form-check pe-3 mt-0 mb-0"><input class="form-check-input" type="checkbox" id="${i}_${w.textContent.replace(" ", "_").toLowerCase()}" checked="checked" /><label class="form-check-label text-nowrap" for="${i}_${w.textContent.replace(" ", "_").toLowerCase()}">${w.textContent}</label></div>`).join("")}
|
|
139
|
+
</div>`, e.prepend(d);
|
|
140
|
+
}, M = function(m) {
|
|
141
|
+
let d = [];
|
|
142
|
+
Array.from(u.querySelectorAll("tr")).forEach((_, y) => {
|
|
142
143
|
let L = "";
|
|
143
|
-
if (Array.from(e.querySelectorAll('[type="checkbox"]:checked + label')).forEach((
|
|
144
|
-
L +=
|
|
145
|
-
}), L.indexOf(
|
|
146
|
-
const
|
|
147
|
-
|
|
144
|
+
if (Array.from(e.querySelectorAll('[type="checkbox"]:checked + label')).forEach((w, V) => {
|
|
145
|
+
L += _.querySelector('td[data-label="' + w.textContent + '"]').textContent + " | ";
|
|
146
|
+
}), L.indexOf(m) >= 0) {
|
|
147
|
+
const w = { row: _ };
|
|
148
|
+
d.push(w);
|
|
148
149
|
}
|
|
149
150
|
});
|
|
150
|
-
let
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
}), t.innerHTML =
|
|
151
|
+
let c = "";
|
|
152
|
+
d.forEach((_, y) => {
|
|
153
|
+
c += _.row.outerHTML;
|
|
154
|
+
}), t.innerHTML = c, e.dispatchEvent(a);
|
|
154
155
|
}, I = function() {
|
|
155
|
-
let
|
|
156
|
-
Array.from(e.querySelectorAll('[type="checkbox"]:checked + label')).forEach((
|
|
157
|
-
|
|
156
|
+
let m = [];
|
|
157
|
+
Array.from(e.querySelectorAll('[type="checkbox"]:checked + label')).forEach((_, y) => {
|
|
158
|
+
m.push(_.textContent);
|
|
158
159
|
});
|
|
159
|
-
let
|
|
160
|
-
|
|
161
|
-
Array.from(e.querySelectorAll('td[data-label="' +
|
|
162
|
-
|
|
160
|
+
let d = [];
|
|
161
|
+
m.forEach((_, y) => {
|
|
162
|
+
Array.from(e.querySelectorAll('td[data-label="' + _ + '"]')).forEach((L, w) => {
|
|
163
|
+
d[L.textContent] = L.textContent;
|
|
163
164
|
});
|
|
164
165
|
});
|
|
165
|
-
let
|
|
166
|
-
|
|
166
|
+
let c = e.querySelector("datalist");
|
|
167
|
+
c.innerHTML = Object.keys(d).map((_) => `<option value="${_}"></option>`).join("");
|
|
167
168
|
};
|
|
168
|
-
Array.from(e.querySelectorAll("[data-filterable]")).length && (q(e, Array.from(e.querySelectorAll("[data-filterable]")).length), e.addEventListener("keyup", function(
|
|
169
|
-
for (var
|
|
170
|
-
if (
|
|
171
|
-
const
|
|
172
|
-
M(
|
|
169
|
+
Array.from(e.querySelectorAll("[data-filterable]")).length && (q(e, Array.from(e.querySelectorAll("[data-filterable]")).length), e.addEventListener("keyup", function(m) {
|
|
170
|
+
for (var d = m.target; d && d != this; d = d.parentNode)
|
|
171
|
+
if (d.matches('input[type="search"]')) {
|
|
172
|
+
const c = d.value;
|
|
173
|
+
M(c);
|
|
173
174
|
}
|
|
174
|
-
}), e.addEventListener("change", function(
|
|
175
|
-
for (var
|
|
176
|
-
if (
|
|
177
|
-
const
|
|
178
|
-
M(
|
|
175
|
+
}), e.addEventListener("change", function(m) {
|
|
176
|
+
for (var d = m.target; d && d != this; d = d.parentNode)
|
|
177
|
+
if (d.matches('input[type="search"]')) {
|
|
178
|
+
const c = d.value;
|
|
179
|
+
M(c);
|
|
179
180
|
}
|
|
180
|
-
}), e.addEventListener("change", function(
|
|
181
|
-
for (var
|
|
182
|
-
if (
|
|
183
|
-
const
|
|
184
|
-
M(
|
|
181
|
+
}), e.addEventListener("change", function(m) {
|
|
182
|
+
for (var d = m.target; d && d != this; d = d.parentNode)
|
|
183
|
+
if (d.matches('input[type="checkbox"]')) {
|
|
184
|
+
const c = e.querySelector('input[type="search"]').value;
|
|
185
|
+
M(c), I();
|
|
185
186
|
}
|
|
186
187
|
}));
|
|
187
|
-
const
|
|
188
|
-
let
|
|
189
|
-
|
|
190
|
-
const
|
|
191
|
-
|
|
188
|
+
const C = function(m, d) {
|
|
189
|
+
let c = document.getElementById(i + "_style");
|
|
190
|
+
c == null && (c = document.createElement("style"), c.setAttribute("id", i + "_style"));
|
|
191
|
+
const _ = m * (d - 1) + 1, y = m * d;
|
|
192
|
+
c.innerHTML = `
|
|
192
193
|
#${i} tbody tr {
|
|
193
194
|
display: none;
|
|
194
195
|
}
|
|
195
|
-
#${i} tbody tr:nth-child(${
|
|
196
|
-
#${i} tbody tr:nth-child(${
|
|
196
|
+
#${i} tbody tr:nth-child(${_}),
|
|
197
|
+
#${i} tbody tr:nth-child(${_}) ~ tr{
|
|
197
198
|
display: block;
|
|
198
199
|
}
|
|
199
200
|
@media screen and (min-width: 36em) {
|
|
200
|
-
#${i} tbody tr:nth-child(${
|
|
201
|
-
#${i} tbody tr:nth-child(${
|
|
201
|
+
#${i} tbody tr:nth-child(${_}),
|
|
202
|
+
#${i} tbody tr:nth-child(${_}) ~ tr{
|
|
202
203
|
display: table-row;
|
|
203
204
|
}
|
|
204
205
|
}
|
|
205
206
|
#${i} tbody tr:nth-child(${y}) ~ tr{
|
|
206
207
|
display: none;
|
|
207
208
|
}
|
|
208
|
-
`, e.append(
|
|
209
|
+
`, e.append(c);
|
|
209
210
|
};
|
|
210
211
|
if (e.getAttribute("data-show")) {
|
|
211
|
-
const
|
|
212
|
-
|
|
213
|
-
for (var y =
|
|
214
|
-
y.matches('.table__pagination input[type="number"]') && (
|
|
215
|
-
}), e.addEventListener("click", function(
|
|
216
|
-
for (var y =
|
|
217
|
-
y.matches(".page-item:not(.active):not(.disabled) .page-link") && (
|
|
218
|
-
}, !1), e.addEventListener("change", function(
|
|
219
|
-
for (var y =
|
|
220
|
-
y.matches(".table__pagination select") && (
|
|
212
|
+
const m = parseInt(e.getAttribute("data-show")), d = parseInt(e.getAttribute("data-page")) ? parseInt(e.getAttribute("data-page")) : 1, c = e.querySelectorAll("tbody tr").length;
|
|
213
|
+
m < c && (C(m, d), U(i, e, m, d, c), B(i, e, m, d, c), e.addEventListener("change", function(_) {
|
|
214
|
+
for (var y = _.target; y && y != this; y = y.parentNode)
|
|
215
|
+
y.matches('.table__pagination input[type="number"]') && (C(y.value, d), B(i, e, y.value, d, c), e.setAttribute("data-show", y.value));
|
|
216
|
+
}), e.addEventListener("click", function(_) {
|
|
217
|
+
for (var y = _.target; y && y != this; y = y.parentNode)
|
|
218
|
+
y.matches(".page-item:not(.active):not(.disabled) .page-link") && (C(e.getAttribute("data-show"), y.getAttribute("data-page")), B(i, e, e.getAttribute("data-show"), y.getAttribute("data-page"), c));
|
|
219
|
+
}, !1), e.addEventListener("change", function(_) {
|
|
220
|
+
for (var y = _.target; y && y != this; y = y.parentNode)
|
|
221
|
+
y.matches(".table__pagination select") && (C(e.getAttribute("data-show"), y.value), B(i, e, e.getAttribute("data-show"), y.value, c));
|
|
221
222
|
}));
|
|
222
223
|
}
|
|
223
|
-
function
|
|
224
|
-
|
|
224
|
+
function E(m) {
|
|
225
|
+
m.dataTransfer.setData("text/plain", m.target.id), f = m.target, m.target.classList.add("tr--dragging");
|
|
225
226
|
}
|
|
226
|
-
const
|
|
227
|
-
Array.from(t.querySelectorAll("tr")).forEach((
|
|
228
|
-
if (
|
|
229
|
-
const
|
|
230
|
-
|
|
227
|
+
const z = function() {
|
|
228
|
+
Array.from(t.querySelectorAll("tr")).forEach((m, d) => {
|
|
229
|
+
if (m.querySelector('[data-label="Order"]') == null) {
|
|
230
|
+
const c = document.createElement("th");
|
|
231
|
+
c.innerHTML = d + 1, c.setAttribute("data-label", "Order"), m.prepend(c);
|
|
231
232
|
}
|
|
232
|
-
|
|
233
|
+
m.setAttribute("id", i + "_row_" + (d + 1)), m.setAttribute("data-order", d + 1), m.setAttribute("draggable", "true"), m.addEventListener("dragstart", E);
|
|
233
234
|
});
|
|
234
235
|
};
|
|
235
236
|
if (e.getAttribute("data-reorder") && e.getAttribute("data-reorder") != "false") {
|
|
236
|
-
const
|
|
237
|
-
|
|
238
|
-
for (var
|
|
239
|
-
if (
|
|
240
|
-
Array.from(e.querySelectorAll("[data-sortable]")).forEach((
|
|
241
|
-
|
|
242
|
-
}), e.removeAttribute("data-sort"), e.removeAttribute("data-sortBy"),
|
|
243
|
-
|
|
237
|
+
const m = document.createElement("th");
|
|
238
|
+
m.innerHTML = "Order", m.title = "Click here to enable re-ordering via drag and drop", m.classList.add("table-order-reset"), r.querySelector("tr").prepend(m), z(), e.addEventListener("click", function(d) {
|
|
239
|
+
for (var c = d.target; c && c != this; c = c.parentNode)
|
|
240
|
+
if (c.matches(".table-order-reset")) {
|
|
241
|
+
Array.from(e.querySelectorAll("[data-sortable]")).forEach((_, y) => {
|
|
242
|
+
_.setAttribute("aria-sort", "none");
|
|
243
|
+
}), e.removeAttribute("data-sort"), e.removeAttribute("data-sortBy"), A("Order", "ascending"), Array.from(e.querySelectorAll("tbody tr")).forEach((_, y) => {
|
|
244
|
+
_.setAttribute("draggable", "true");
|
|
244
245
|
});
|
|
245
246
|
break;
|
|
246
247
|
}
|
|
247
|
-
}, !1), document.addEventListener("dragover", function(
|
|
248
|
-
|
|
249
|
-
}, !1), document.addEventListener("dragenter", function(
|
|
250
|
-
|
|
251
|
-
for (var
|
|
252
|
-
|
|
253
|
-
}, !1), document.addEventListener("dragleave", function(
|
|
254
|
-
|
|
255
|
-
for (var
|
|
256
|
-
|
|
257
|
-
}, !1), document.addEventListener("drop", function(
|
|
258
|
-
|
|
259
|
-
for (var
|
|
260
|
-
if (
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
}), e.dispatchEvent(
|
|
248
|
+
}, !1), document.addEventListener("dragover", function(d) {
|
|
249
|
+
d.preventDefault();
|
|
250
|
+
}, !1), document.addEventListener("dragenter", function(d) {
|
|
251
|
+
d.preventDefault(), d.dataTransfer.dropEffect = "move";
|
|
252
|
+
for (var c = d.target; c && c != this; c = c.parentNode)
|
|
253
|
+
c.matches("[data-reorder] tbody tr") && c.classList.add("tr--dropable");
|
|
254
|
+
}, !1), document.addEventListener("dragleave", function(d) {
|
|
255
|
+
d.preventDefault();
|
|
256
|
+
for (var c = d.target; c && c != this; c = c.parentNode)
|
|
257
|
+
c.matches("[data-reorder] tbody tr") && c.classList.remove("tr--dropable");
|
|
258
|
+
}, !1), document.addEventListener("drop", function(d) {
|
|
259
|
+
d.preventDefault();
|
|
260
|
+
for (var c = d.target; c && c != this; c = c.parentNode)
|
|
261
|
+
if (c.matches("[data-reorder] tbody tr")) {
|
|
262
|
+
c.parentNode != null && f.parentNode != null && c != f && (f.parentNode.removeChild(f), f.getAttribute("data-order") > c.getAttribute("data-order") ? c.parentNode.insertBefore(f, c) : c.parentNode.insertBefore(f, c.nextElementSibling), Array.from(t.querySelectorAll("tr")).forEach((_, y) => {
|
|
263
|
+
_.classList.remove("tr--dragging"), _.classList.remove("tr--dropable"), _.querySelector("th").innerHTML = y + 1, _.setAttribute("data-order", y + 1);
|
|
264
|
+
}), e.dispatchEvent(n));
|
|
264
265
|
break;
|
|
265
266
|
}
|
|
266
267
|
}, !1);
|
|
267
268
|
}
|
|
268
|
-
e.addEventListener("filtered", function(
|
|
269
|
-
if (e.getAttribute("data-sortBy") && e.getAttribute("data-sort") &&
|
|
270
|
-
const
|
|
271
|
-
|
|
269
|
+
e.addEventListener("filtered", function(m) {
|
|
270
|
+
if (e.getAttribute("data-sortBy") && e.getAttribute("data-sort") && A(e.getAttribute("data-sortBy"), e.getAttribute("data-sort")), e.getAttribute("data-show")) {
|
|
271
|
+
const d = parseInt(e.getAttribute("data-show")), c = e.querySelectorAll("tbody tr").length, _ = e.querySelector(".table__pagination");
|
|
272
|
+
_ != null && _.remove(), d < c && (C(d, 1), U(i, e, d, 1, c), B(i, e, d, 1, c));
|
|
272
273
|
}
|
|
273
|
-
e.getAttribute("data-reorder") &&
|
|
274
|
-
}, !1), e.addEventListener("sorted", function(
|
|
275
|
-
e.getAttribute("data-reorder") &&
|
|
276
|
-
}, !1), e.addEventListener("populated", function(
|
|
277
|
-
var
|
|
278
|
-
u.remove();
|
|
279
|
-
var d = e.querySelector(".table__pagination");
|
|
274
|
+
e.getAttribute("data-reorder") && z();
|
|
275
|
+
}, !1), e.addEventListener("sorted", function(m) {
|
|
276
|
+
e.getAttribute("data-reorder") && z();
|
|
277
|
+
}, !1), e.addEventListener("populated", function(m) {
|
|
278
|
+
var d = e.querySelector(".table__filters");
|
|
280
279
|
d.remove();
|
|
281
|
-
var
|
|
282
|
-
|
|
280
|
+
var c = e.querySelector(".table__pagination");
|
|
281
|
+
c.remove();
|
|
282
|
+
var _ = e.cloneNode(!0);
|
|
283
|
+
e.parentNode.replaceChild(_, e), Z(_);
|
|
283
284
|
}, !1);
|
|
284
285
|
}
|
|
285
|
-
const
|
|
286
|
+
const U = function(e, r, t, u, h) {
|
|
286
287
|
const a = document.createElement("div");
|
|
287
288
|
a.classList.add("table__pagination"), a.classList.add("row"), a.classList.add("pt-3"), a.classList.add("pb-3"), a.innerHTML = `<div class="col mw-fit-content mb-3">
|
|
288
289
|
<div class="form-control__wrapper form-control-inline mb-0">
|
|
@@ -297,27 +298,27 @@ ${h > 20 ? '<option value="20">20</option>' : ""}
|
|
|
297
298
|
</datalist>
|
|
298
299
|
</div>
|
|
299
300
|
<div class="col mw-fit-content me-auto d-flex align-items-center mb-3"><span class="label">per page</span></div>
|
|
300
|
-
<div class="col mw-fit-content d-sm-flex justify-content-end align-items-center" id="${e}_paginationBtns"></div>`,
|
|
301
|
-
},
|
|
301
|
+
<div class="col mw-fit-content d-sm-flex justify-content-end align-items-center" id="${e}_paginationBtns"></div>`, r.append(a);
|
|
302
|
+
}, B = function(e, r, t, u, h) {
|
|
302
303
|
const a = document.getElementById(e + "_paginationBtns");
|
|
303
304
|
if (a == null)
|
|
304
305
|
return !1;
|
|
305
|
-
const
|
|
306
|
-
if (
|
|
306
|
+
const n = Math.ceil(h / t);
|
|
307
|
+
if (n == 1)
|
|
307
308
|
a.innerHTML = "";
|
|
308
|
-
else if (
|
|
309
|
+
else if (n < 5) {
|
|
309
310
|
let i = "";
|
|
310
|
-
for (let f = 1; f <=
|
|
311
|
-
f ==
|
|
311
|
+
for (let f = 1; f <= n; f++)
|
|
312
|
+
f == u ? i += `<li class="page-item active" aria-current="page"><span class="page-link">${f}</span></li>` : i += `<li class="page-item"><button class="page-link" data-page="${f}">${f}</button></li>`;
|
|
312
313
|
a.innerHTML = `<span class="pe-2 mb-3">Page: </span><ul class="pagination mb-3">
|
|
313
|
-
${
|
|
314
|
+
${u == 1 ? '<li class="page-item disabled"><span class="page-link">Previous</span></li>' : `<li class="page-item"><button class="page-link" data-page="${parseInt(u) - 1}">Previous</button></li>`}
|
|
314
315
|
${i}
|
|
315
|
-
${
|
|
316
|
+
${u == n ? '<li class="page-item disabled"><span class="page-link">Next</span></li>' : `<li class="page-item"><button class="page-link" data-page="${parseInt(u) + 1}">Next</button></li>`}
|
|
316
317
|
</ul>`;
|
|
317
318
|
} else {
|
|
318
319
|
let i = "";
|
|
319
|
-
for (let f = 1; f <=
|
|
320
|
-
f ==
|
|
320
|
+
for (let f = 1; f <= n; f++)
|
|
321
|
+
f == u ? i += `<option value="${f}" selected>Page ${f}</option>` : i += `<option value="${f}">Page ${f}</option>`;
|
|
321
322
|
a.innerHTML = `
|
|
322
323
|
<div class="form-control__wrapper page-number mb-2">
|
|
323
324
|
<select class="form-select">
|
|
@@ -328,9 +329,9 @@ ${i}
|
|
|
328
329
|
}
|
|
329
330
|
};
|
|
330
331
|
let G = function(e) {
|
|
331
|
-
return typeof e != "string" ? e : (e = e.replace("
|
|
332
|
+
return typeof e != "string" ? e : (e = e.replace("£", ""), e = e.replace("%", ""), Number.isNaN(Number.parseFloat(e)) ? 0 : Number.parseFloat(e));
|
|
332
333
|
};
|
|
333
|
-
const
|
|
334
|
+
const ye = {
|
|
334
335
|
name: "Table",
|
|
335
336
|
props: {
|
|
336
337
|
reorder: {
|
|
@@ -368,7 +369,7 @@ const pe = {
|
|
|
368
369
|
},
|
|
369
370
|
computed: {
|
|
370
371
|
cellHeading() {
|
|
371
|
-
return (e) => `${
|
|
372
|
+
return (e) => `${W(K(e))}`;
|
|
372
373
|
},
|
|
373
374
|
numericValue() {
|
|
374
375
|
return (e) => (e = G(e), e);
|
|
@@ -376,7 +377,7 @@ const pe = {
|
|
|
376
377
|
},
|
|
377
378
|
mounted() {
|
|
378
379
|
this.$nextTick(function() {
|
|
379
|
-
|
|
380
|
+
Z(this.$refs.wrapper), this.$el.addEventListener("sorted", function(e) {
|
|
380
381
|
console.log("Table sorted");
|
|
381
382
|
}, !1), this.$el.addEventListener("filtered", function(e) {
|
|
382
383
|
console.log("Table filtered");
|
|
@@ -385,18 +386,18 @@ const pe = {
|
|
|
385
386
|
},
|
|
386
387
|
updated() {
|
|
387
388
|
this.$nextTick(function() {
|
|
388
|
-
let e = this.$refs.wrapper.querySelector("tbody"),
|
|
389
|
-
this.items.forEach((
|
|
390
|
-
let a =
|
|
391
|
-
|
|
392
|
-
}), e.innerHTML =
|
|
389
|
+
let e = this.$refs.wrapper.querySelector("tbody"), r = "";
|
|
390
|
+
this.items.forEach((u, h) => {
|
|
391
|
+
let a = u.rowid ? u.rowid : "";
|
|
392
|
+
u = Object.fromEntries(Object.entries(u).filter(([n]) => n !== "rowid")), r += `<tr data-row-id="${a}">${Object.keys(u).map((n) => `<td data-label="${W(K(n))}" data-numeric="${G(u[n])}">${u[n]}</td>`).join("")}</tr>`;
|
|
393
|
+
}), e.innerHTML = r;
|
|
393
394
|
const t = new Event("filtered");
|
|
394
395
|
this.$refs.wrapper.dispatchEvent(t);
|
|
395
396
|
});
|
|
396
397
|
}
|
|
397
|
-
},
|
|
398
|
-
function
|
|
399
|
-
return
|
|
398
|
+
}, pe = ["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"];
|
|
399
|
+
function Ae(e, r, t, u, h, a) {
|
|
400
|
+
return l(), o("div", {
|
|
400
401
|
class: "table__wrapper",
|
|
401
402
|
ref: "wrapper",
|
|
402
403
|
"data-sortby": t.sortby,
|
|
@@ -406,35 +407,35 @@ function Se(e, n, t, c, h, a) {
|
|
|
406
407
|
"data-reorder": t.reorder
|
|
407
408
|
}, [
|
|
408
409
|
s("table", null, [
|
|
409
|
-
t.fields ? (
|
|
410
|
+
t.fields ? (l(), o("thead", be, [
|
|
410
411
|
s("tr", {
|
|
411
|
-
class:
|
|
412
|
+
class: b(t.headingclass)
|
|
412
413
|
}, [
|
|
413
|
-
(
|
|
414
|
-
key:
|
|
415
|
-
"data-sortable":
|
|
416
|
-
"data-filterable":
|
|
417
|
-
},
|
|
414
|
+
(l(!0), o($, null, x(t.fields, (n) => (l(), o("th", {
|
|
415
|
+
key: n.key,
|
|
416
|
+
"data-sortable": n.sortable,
|
|
417
|
+
"data-filterable": n.filterable
|
|
418
|
+
}, k(a.cellHeading(n.key)), 9, ve))), 128))
|
|
418
419
|
], 2)
|
|
419
|
-
])) :
|
|
420
|
-
t.items ? (
|
|
421
|
-
(
|
|
420
|
+
])) : p("", !0),
|
|
421
|
+
t.items ? (l(), o("tbody", ge, [
|
|
422
|
+
(l(!0), o($, null, x(t.items, (n, i) => (l(), o("tr", {
|
|
422
423
|
key: i,
|
|
423
|
-
"data-row-id":
|
|
424
|
+
"data-row-id": n.rowid
|
|
424
425
|
}, [
|
|
425
|
-
(
|
|
426
|
-
key:
|
|
426
|
+
(l(!0), o($, null, x(Object.fromEntries(Object.entries(n).filter(([f]) => f !== "rowid")), (f, A) => (l(), o("td", {
|
|
427
|
+
key: A,
|
|
427
428
|
innerHTML: f,
|
|
428
|
-
"data-label": a.cellHeading(
|
|
429
|
+
"data-label": a.cellHeading(A),
|
|
429
430
|
"data-numeric": a.numericValue(f)
|
|
430
431
|
}, null, 8, ke))), 128))
|
|
431
432
|
], 8, we))), 128))
|
|
432
|
-
])) :
|
|
433
|
+
])) : p("", !0)
|
|
433
434
|
]),
|
|
434
|
-
|
|
435
|
-
], 8,
|
|
435
|
+
v(e.$slots, "default")
|
|
436
|
+
], 8, pe);
|
|
436
437
|
}
|
|
437
|
-
const R = /* @__PURE__ */ g(
|
|
438
|
+
const R = /* @__PURE__ */ g(ye, [["render", Ae]]), Se = {
|
|
438
439
|
name: "Input",
|
|
439
440
|
props: {
|
|
440
441
|
value: {
|
|
@@ -605,8 +606,8 @@ const R = /* @__PURE__ */ g(pe, [["render", Se], ["__file", "/Users/james/worksp
|
|
|
605
606
|
this.$nextTick(function() {
|
|
606
607
|
let e = this.$refs.wrapper;
|
|
607
608
|
if (e.parentNode && e.parentNode.classList.contains("form-check") || e.classList.length == 0) {
|
|
608
|
-
const
|
|
609
|
-
Array.from(e.childNodes).forEach((t) =>
|
|
609
|
+
const r = document.createDocumentFragment();
|
|
610
|
+
Array.from(e.childNodes).forEach((t) => r.appendChild(t)), e.parentNode.insertBefore(r, e), e.parentNode.removeChild(e);
|
|
610
611
|
}
|
|
611
612
|
});
|
|
612
613
|
},
|
|
@@ -621,39 +622,37 @@ const R = /* @__PURE__ */ g(pe, [["render", Se], ["__file", "/Users/james/worksp
|
|
|
621
622
|
}, $e = ["for", "innerHTML", "title"], xe = ["innerHTML"], qe = ["innerHTML"], Le = ["type", "name", "id", "pattern", "list"], Te = ["type", "name", "id", "pattern"], Me = {
|
|
622
623
|
key: 5,
|
|
623
624
|
class: "input-group"
|
|
624
|
-
},
|
|
625
|
+
}, He = ["type", "name", "id", "pattern", "list"], Ce = { class: "input-group-text border-0 col-2 col-sm-1 px-0" }, Ne = {
|
|
625
626
|
key: 6,
|
|
626
627
|
class: "input-group"
|
|
627
|
-
},
|
|
628
|
-
function
|
|
629
|
-
return
|
|
630
|
-
class:
|
|
628
|
+
}, Be = ["type", "name", "id", "pattern", "list"], Pe = { class: "input-group-text flex-fill" }, De = ["type", "name", "id", "pattern"], Ie = ["value"], ze = ["id"], Ve = ["value"], Oe = ["type", "name", "id"], Fe = ["for", "innerHTML"], je = ["type", "name", "id"], We = ["for", "innerHTML"], Ke = ["innerHTML"];
|
|
629
|
+
function Ue(e, r, t, u, h, a) {
|
|
630
|
+
return l(), o("div", {
|
|
631
|
+
class: b(a.wrapperClass()),
|
|
631
632
|
ref: "wrapper"
|
|
632
633
|
}, [
|
|
633
|
-
a.needsLabel() ? (
|
|
634
|
+
a.needsLabel() ? (l(), o("label", {
|
|
634
635
|
key: 0,
|
|
635
|
-
class:
|
|
636
|
+
class: b(`form-label${t.labelclass ? ` ${t.labelclass}` : ""}`),
|
|
636
637
|
for: t.id,
|
|
637
638
|
innerHTML: a.displayLabel(),
|
|
638
639
|
title: t.title
|
|
639
|
-
}, null, 10, $e)) :
|
|
640
|
-
|
|
641
|
-
t.prefix ? (o(), l("span", {
|
|
640
|
+
}, null, 10, $e)) : p("", !0),
|
|
641
|
+
t.prefix ? (l(), o("span", {
|
|
642
642
|
key: 1,
|
|
643
|
-
class:
|
|
643
|
+
class: b(`prefix ${this.prefixClass} ${t.size ? `prefix-${t.size}` : ""}`),
|
|
644
644
|
innerHTML: t.prefix,
|
|
645
645
|
role: "presentation"
|
|
646
|
-
}, null, 10, xe)) :
|
|
647
|
-
t.suffix ? (
|
|
646
|
+
}, null, 10, xe)) : p("", !0),
|
|
647
|
+
t.suffix ? (l(), o("span", {
|
|
648
648
|
key: 2,
|
|
649
|
-
class:
|
|
649
|
+
class: b(`suffix ${this.suffixClass} ${t.size ? `suffix-${t.size}` : ""}`),
|
|
650
650
|
innerHTML: t.suffix,
|
|
651
651
|
role: "presentation"
|
|
652
|
-
}, null, 10, qe)) :
|
|
653
|
-
|
|
654
|
-
a.isInput() ? N((o(), l("input", T({
|
|
652
|
+
}, null, 10, qe)) : p("", !0),
|
|
653
|
+
a.isInput() ? N((l(), o("input", T({
|
|
655
654
|
key: 3,
|
|
656
|
-
"onUpdate:modelValue":
|
|
655
|
+
"onUpdate:modelValue": r[0] || (r[0] = (n) => a.inputVal = n),
|
|
657
656
|
class: `form-control${t.size ? ` form-control-${t.size}` : ""}${t.inputclass ? ` ${t.inputclass}` : ""}`,
|
|
658
657
|
type: t.type,
|
|
659
658
|
name: t.name ? t.name : t.id,
|
|
@@ -661,14 +660,13 @@ function Ke(e, n, t, c, h, a) {
|
|
|
661
660
|
pattern: a.needPattern(),
|
|
662
661
|
list: a.hasOptions()
|
|
663
662
|
}, e.$attrs, {
|
|
664
|
-
onKeyup:
|
|
663
|
+
onKeyup: r[1] || (r[1] = (...n) => a.inputKeyup && a.inputKeyup(...n))
|
|
665
664
|
}), null, 16, Le)), [
|
|
666
|
-
[
|
|
667
|
-
]) :
|
|
668
|
-
|
|
669
|
-
t.type == "textarea" ? N((o(), l("textarea", T({
|
|
665
|
+
[O, a.inputVal]
|
|
666
|
+
]) : p("", !0),
|
|
667
|
+
t.type == "textarea" ? N((l(), o("textarea", T({
|
|
670
668
|
key: 4,
|
|
671
|
-
"onUpdate:modelValue":
|
|
669
|
+
"onUpdate:modelValue": r[2] || (r[2] = (n) => a.inputVal = n),
|
|
672
670
|
class: `form-control${t.size ? ` form-control-${t.size}` : ""}${t.inputclass ? ` ${t.inputclass}` : ""}`,
|
|
673
671
|
type: t.type,
|
|
674
672
|
name: t.name ? t.name : t.id,
|
|
@@ -676,105 +674,99 @@ function Ke(e, n, t, c, h, a) {
|
|
|
676
674
|
pattern: a.needPattern()
|
|
677
675
|
}, e.$attrs), null, 16, Te)), [
|
|
678
676
|
[J, a.inputVal]
|
|
679
|
-
]) :
|
|
680
|
-
|
|
681
|
-
t.type == "range" ? (o(), l("div", Me, [
|
|
677
|
+
]) : p("", !0),
|
|
678
|
+
t.type == "range" ? (l(), o("div", Me, [
|
|
682
679
|
N(s("input", T({
|
|
683
|
-
"onUpdate:modelValue":
|
|
680
|
+
"onUpdate:modelValue": r[3] || (r[3] = (n) => a.inputVal = n),
|
|
684
681
|
class: `form-range${t.inputclass ? ` ${t.inputclass}` : ""}`,
|
|
685
682
|
type: t.type,
|
|
686
683
|
name: t.name ? t.name : t.id,
|
|
687
684
|
id: t.id,
|
|
688
685
|
pattern: a.needPattern(),
|
|
689
686
|
list: a.hasOptions()
|
|
690
|
-
}, e.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16,
|
|
691
|
-
[
|
|
687
|
+
}, e.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, He), [
|
|
688
|
+
[O, a.inputVal]
|
|
692
689
|
]),
|
|
693
|
-
s("output",
|
|
694
|
-
])) :
|
|
695
|
-
|
|
696
|
-
t.type == "color" ? (o(), l("div", Ne, [
|
|
690
|
+
s("output", Ce, k(t.value), 1)
|
|
691
|
+
])) : p("", !0),
|
|
692
|
+
t.type == "color" ? (l(), o("div", Ne, [
|
|
697
693
|
N(s("input", T({
|
|
698
|
-
"onUpdate:modelValue":
|
|
694
|
+
"onUpdate:modelValue": r[4] || (r[4] = (n) => a.inputVal = n),
|
|
699
695
|
class: `form-control form-control-color${t.inputclass ? ` ${t.inputclass}` : ""}`,
|
|
700
696
|
type: t.type,
|
|
701
697
|
name: t.name ? t.name : t.id,
|
|
702
698
|
id: t.id,
|
|
703
699
|
pattern: a.needPattern(),
|
|
704
700
|
list: a.hasOptions()
|
|
705
|
-
}, e.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16,
|
|
706
|
-
[
|
|
701
|
+
}, e.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, Be), [
|
|
702
|
+
[O, a.inputVal]
|
|
707
703
|
]),
|
|
708
|
-
s("output",
|
|
709
|
-
])) :
|
|
710
|
-
|
|
711
|
-
t.type == "select" ? N((o(), l("select", T({
|
|
704
|
+
s("output", Pe, k(t.value ? e.vale : "#000000"), 1)
|
|
705
|
+
])) : p("", !0),
|
|
706
|
+
t.type == "select" ? N((l(), o("select", T({
|
|
712
707
|
key: 7,
|
|
713
|
-
"onUpdate:modelValue":
|
|
708
|
+
"onUpdate:modelValue": r[5] || (r[5] = (n) => a.inputVal = n),
|
|
714
709
|
class: `form-select${t.size ? ` form-select-${t.size}` : ""}${t.inputclass ? ` ${t.inputclass}` : ""}`,
|
|
715
710
|
type: t.type,
|
|
716
711
|
name: t.id,
|
|
717
712
|
id: t.id,
|
|
718
713
|
pattern: a.needPattern()
|
|
719
714
|
}, e.$attrs), [
|
|
720
|
-
(
|
|
715
|
+
(l(!0), o($, null, x(t.options, (n, i) => (l(), o("option", {
|
|
721
716
|
key: i,
|
|
722
|
-
value:
|
|
723
|
-
},
|
|
724
|
-
], 16,
|
|
717
|
+
value: n.value
|
|
718
|
+
}, k(n.display ? n.display : n.value), 9, Ie))), 128))
|
|
719
|
+
], 16, De)), [
|
|
725
720
|
[X, a.inputVal]
|
|
726
|
-
]) :
|
|
727
|
-
a.allowDatalist() ? (
|
|
721
|
+
]) : p("", !0),
|
|
722
|
+
a.allowDatalist() ? (l(), o("datalist", {
|
|
728
723
|
key: 8,
|
|
729
724
|
id: t.id + "-list"
|
|
730
725
|
}, [
|
|
731
|
-
(
|
|
726
|
+
(l(!0), o($, null, x(t.options, (n, i) => (l(), o("option", {
|
|
732
727
|
key: i,
|
|
733
|
-
value:
|
|
734
|
-
},
|
|
735
|
-
], 8,
|
|
736
|
-
|
|
737
|
-
t.type == "checkbox" || t.type == "radio" ? (o(), l("input", T({
|
|
728
|
+
value: n.value
|
|
729
|
+
}, k(n.value), 9, Ve))), 128))
|
|
730
|
+
], 8, ze)) : p("", !0),
|
|
731
|
+
t.type == "checkbox" || t.type == "radio" ? (l(), o("input", T({
|
|
738
732
|
key: 9,
|
|
739
733
|
class: "form-check-input",
|
|
740
734
|
type: t.type,
|
|
741
735
|
name: t.name ? t.name : t.id,
|
|
742
736
|
id: t.id
|
|
743
|
-
}, e.$attrs), null, 16,
|
|
744
|
-
t.type == "checkbox" || t.type == "radio" ? (
|
|
737
|
+
}, e.$attrs), null, 16, Oe)) : p("", !0),
|
|
738
|
+
t.type == "checkbox" || t.type == "radio" ? (l(), o("label", {
|
|
745
739
|
key: 10,
|
|
746
|
-
class:
|
|
740
|
+
class: b(`form-label form-check-label${t.labelclass ? ` ${t.labelclass}` : ""}`),
|
|
747
741
|
for: t.id,
|
|
748
742
|
innerHTML: t.label
|
|
749
|
-
}, null, 10,
|
|
750
|
-
|
|
751
|
-
t.type == "checkbox-btn" || t.type == "radio-btn" ? (o(), l("input", T({
|
|
743
|
+
}, null, 10, Fe)) : p("", !0),
|
|
744
|
+
t.type == "checkbox-btn" || t.type == "radio-btn" ? (l(), o("input", T({
|
|
752
745
|
key: 11,
|
|
753
746
|
class: `btn-check${t.inputclass ? ` ${t.inputclass}` : ""}`,
|
|
754
747
|
type: t.type.replace("-btn", ""),
|
|
755
748
|
autocomplete: "off",
|
|
756
749
|
name: t.name ? t.name : t.id,
|
|
757
750
|
id: t.id
|
|
758
|
-
}, e.$attrs), null, 16,
|
|
759
|
-
t.type == "checkbox-btn" || t.type == "radio-btn" ? (
|
|
751
|
+
}, e.$attrs), null, 16, je)) : p("", !0),
|
|
752
|
+
t.type == "checkbox-btn" || t.type == "radio-btn" ? (l(), o("label", {
|
|
760
753
|
key: 12,
|
|
761
|
-
class:
|
|
754
|
+
class: b(`btn${t.labelclass ? ` ${t.labelclass}` : ""}`),
|
|
762
755
|
for: t.id,
|
|
763
756
|
innerHTML: t.label,
|
|
764
|
-
onClick:
|
|
765
|
-
}, null, 10,
|
|
766
|
-
|
|
767
|
-
t.errormsg ? (o(), l("p", {
|
|
757
|
+
onClick: r[6] || (r[6] = (...n) => a.clickEvent && a.clickEvent(...n))
|
|
758
|
+
}, null, 10, We)) : p("", !0),
|
|
759
|
+
t.errormsg ? (l(), o("p", {
|
|
768
760
|
key: 13,
|
|
769
761
|
class: "invalid-feedback mb-0",
|
|
770
762
|
innerHTML: t.errormsg
|
|
771
|
-
}, null, 8,
|
|
772
|
-
|
|
763
|
+
}, null, 8, Ke)) : p("", !0),
|
|
764
|
+
v(e.$slots, "default")
|
|
773
765
|
], 2);
|
|
774
766
|
}
|
|
775
|
-
const
|
|
767
|
+
const D = /* @__PURE__ */ g(Se, [["render", Ue]]), Ge = {
|
|
776
768
|
components: {
|
|
777
|
-
Input:
|
|
769
|
+
Input: D
|
|
778
770
|
},
|
|
779
771
|
name: "FileUploads",
|
|
780
772
|
props: {
|
|
@@ -795,21 +787,21 @@ const P = /* @__PURE__ */ g(Ae, [["render", Ke], ["__file", "/Users/james/worksp
|
|
|
795
787
|
required: !1
|
|
796
788
|
}
|
|
797
789
|
}
|
|
798
|
-
},
|
|
790
|
+
}, Ze = { class: "multiple-file-uploads mb-4" }, Re = { class: "row" }, Qe = { class: "col-12 col-md me-auto" }, Ye = /* @__PURE__ */ s("div", { class: "col mw-fit-content" }, [
|
|
799
791
|
/* @__PURE__ */ s("button", {
|
|
800
792
|
type: "button",
|
|
801
793
|
class: "btn btn-tertiary me-0",
|
|
802
794
|
"data-delete": ""
|
|
803
795
|
}, "Delete")
|
|
804
|
-
], -1),
|
|
805
|
-
function Je(e,
|
|
806
|
-
const
|
|
807
|
-
return
|
|
796
|
+
], -1), Ee = ["data-maxfiles"];
|
|
797
|
+
function Je(e, r, t, u, h, a) {
|
|
798
|
+
const n = H("Input");
|
|
799
|
+
return l(), o("div", Ze, [
|
|
808
800
|
s("div", Re, [
|
|
809
801
|
s("div", {
|
|
810
|
-
class:
|
|
802
|
+
class: b(`${t.inputcolclass ? t.inputcolclass : "col-12 col-sm-4"}`)
|
|
811
803
|
}, [
|
|
812
|
-
|
|
804
|
+
S(n, {
|
|
813
805
|
type: "file",
|
|
814
806
|
id: t.id,
|
|
815
807
|
name: `${t.id}[]`,
|
|
@@ -820,39 +812,39 @@ function Je(e, n, t, c, h, a) {
|
|
|
820
812
|
"data-filesize": t.maxfilesize
|
|
821
813
|
}, null, 8, ["id", "name", "data-filesize"])
|
|
822
814
|
], 2),
|
|
823
|
-
s("div",
|
|
824
|
-
|
|
815
|
+
s("div", Qe, [
|
|
816
|
+
v(e.$slots, "default")
|
|
825
817
|
]),
|
|
826
|
-
|
|
818
|
+
Ye
|
|
827
819
|
]),
|
|
828
820
|
s("button", {
|
|
829
821
|
type: "button",
|
|
830
822
|
class: "btn btn-secondary me-0",
|
|
831
823
|
"data-add": "",
|
|
832
824
|
"data-maxfiles": t.maxfiles
|
|
833
|
-
}, "+ Add file", 8,
|
|
825
|
+
}, "+ Add file", 8, Ee)
|
|
834
826
|
]);
|
|
835
827
|
}
|
|
836
|
-
const
|
|
828
|
+
const ui = /* @__PURE__ */ g(Ge, [["render", Je]]);
|
|
837
829
|
function Xe(e) {
|
|
838
830
|
if (!e.classList.contains("accordion--keep-open")) {
|
|
839
|
-
const
|
|
840
|
-
|
|
831
|
+
const r = e.querySelectorAll(":scope > details");
|
|
832
|
+
r.forEach((t) => {
|
|
841
833
|
t.addEventListener("click", () => {
|
|
842
|
-
|
|
843
|
-
|
|
834
|
+
r.forEach((u) => {
|
|
835
|
+
u !== t && u.removeAttribute("open");
|
|
844
836
|
});
|
|
845
837
|
});
|
|
846
838
|
});
|
|
847
839
|
}
|
|
848
840
|
if (window.location.hash && document.querySelector(window.location.hash + ":not([open]) summary")) {
|
|
849
|
-
const
|
|
850
|
-
|
|
841
|
+
const r = document.querySelector(window.location.hash + " summary");
|
|
842
|
+
r instanceof HTMLElement && r.click();
|
|
851
843
|
}
|
|
852
844
|
window.addEventListener("hashchange", function() {
|
|
853
845
|
if (window.location.hash && document.querySelector(window.location.hash + " summary")) {
|
|
854
|
-
const
|
|
855
|
-
|
|
846
|
+
const r = document.querySelector(window.location.hash + " summary");
|
|
847
|
+
r instanceof HTMLElement && r.click();
|
|
856
848
|
}
|
|
857
849
|
});
|
|
858
850
|
}
|
|
@@ -866,12 +858,12 @@ const et = {
|
|
|
866
858
|
class: "container accordion",
|
|
867
859
|
ref: "wrapper"
|
|
868
860
|
};
|
|
869
|
-
function st(e,
|
|
870
|
-
return
|
|
871
|
-
|
|
861
|
+
function st(e, r, t, u, h, a) {
|
|
862
|
+
return l(), o("div", tt, [
|
|
863
|
+
v(e.$slots, "default")
|
|
872
864
|
], 512);
|
|
873
865
|
}
|
|
874
|
-
const
|
|
866
|
+
const fi = /* @__PURE__ */ g(et, [["render", st]]), at = {
|
|
875
867
|
name: "AccordionItem",
|
|
876
868
|
props: {
|
|
877
869
|
title: {
|
|
@@ -910,29 +902,29 @@ const Si = /* @__PURE__ */ g(et, [["render", st], ["__file", "/Users/james/works
|
|
|
910
902
|
key: 0,
|
|
911
903
|
class: "accordion-body"
|
|
912
904
|
};
|
|
913
|
-
function
|
|
914
|
-
return
|
|
905
|
+
function lt(e, r, t, u, h, a) {
|
|
906
|
+
return l(), o("details", {
|
|
915
907
|
class: "accordion-item",
|
|
916
908
|
id: a.createID(t.title)
|
|
917
909
|
}, [
|
|
918
910
|
s("summary", {
|
|
919
|
-
class:
|
|
920
|
-
onClick:
|
|
911
|
+
class: b(`${t.titlecolour ? `bg-${t.titlecolour}` : ""}`),
|
|
912
|
+
onClick: r[0] || (r[0] = (n) => h.show = !0)
|
|
921
913
|
}, [
|
|
922
914
|
s("span", nt, [
|
|
923
|
-
|
|
924
|
-
t.badge ? (
|
|
915
|
+
F(k(t.title), 1),
|
|
916
|
+
t.badge ? (l(), o("span", {
|
|
925
917
|
key: 0,
|
|
926
|
-
class:
|
|
927
|
-
},
|
|
918
|
+
class: b(`badge bg-${t.badgecolour}`)
|
|
919
|
+
}, k(t.badge), 3)) : p("", !0)
|
|
928
920
|
])
|
|
929
921
|
], 2),
|
|
930
|
-
h.show ? (
|
|
931
|
-
|
|
932
|
-
])) :
|
|
922
|
+
h.show ? (l(), o("div", rt, [
|
|
923
|
+
v(e.$slots, "default")
|
|
924
|
+
])) : p("", !0)
|
|
933
925
|
], 8, it);
|
|
934
926
|
}
|
|
935
|
-
const
|
|
927
|
+
const hi = /* @__PURE__ */ g(at, [["render", lt]]), ot = {
|
|
936
928
|
name: "Header",
|
|
937
929
|
props: {
|
|
938
930
|
title: {
|
|
@@ -950,32 +942,32 @@ const Ai = /* @__PURE__ */ g(at, [["render", ot], ["__file", "/Users/james/works
|
|
|
950
942
|
}
|
|
951
943
|
}
|
|
952
944
|
}, ct = { class: "container" }, dt = { class: "row" }, ut = { class: "col-sm-6" }, ft = { class: "pt-5 pb-3 px-4" }, ht = { class: "col-sm-6 col-md-5 ms-auto" }, mt = ["src"];
|
|
953
|
-
function _t(e,
|
|
954
|
-
return
|
|
945
|
+
function _t(e, r, t, u, h, a) {
|
|
946
|
+
return l(), o("div", ct, [
|
|
955
947
|
s("div", {
|
|
956
|
-
class:
|
|
948
|
+
class: b("bg-" + t.background + " mb-4")
|
|
957
949
|
}, [
|
|
958
950
|
s("div", dt, [
|
|
959
951
|
s("div", ut, [
|
|
960
952
|
s("div", ft, [
|
|
961
|
-
s("h2", null,
|
|
962
|
-
|
|
953
|
+
s("h2", null, k(t.title), 1),
|
|
954
|
+
v(e.$slots, "default")
|
|
963
955
|
])
|
|
964
956
|
]),
|
|
965
957
|
s("div", ht, [
|
|
966
|
-
t.image ? (
|
|
958
|
+
t.image ? (l(), o("img", {
|
|
967
959
|
key: 0,
|
|
968
960
|
src: t.image,
|
|
969
961
|
alt: "",
|
|
970
962
|
class: "h-100 w-100 object-cover"
|
|
971
|
-
}, null, 8, mt)) :
|
|
963
|
+
}, null, 8, mt)) : p("", !0)
|
|
972
964
|
])
|
|
973
965
|
])
|
|
974
966
|
], 2)
|
|
975
967
|
]);
|
|
976
968
|
}
|
|
977
|
-
const
|
|
978
|
-
const
|
|
969
|
+
const mi = /* @__PURE__ */ g(ot, [["render", _t]]);
|
|
970
|
+
const yt = {
|
|
979
971
|
name: "Card",
|
|
980
972
|
props: {
|
|
981
973
|
link: {
|
|
@@ -1054,30 +1046,30 @@ const pt = {
|
|
|
1054
1046
|
default:
|
|
1055
1047
|
return "bg-body text-white";
|
|
1056
1048
|
}
|
|
1057
|
-
},
|
|
1049
|
+
}, r = this.details && this.details.tags ? this.details.tags.map((h) => `<span class="badge rounded-pill py-2 px-3 mb-3 me-2 ${e(h)}">${h}</span>`).join("") : "", t = this.title ? `<span class="card-title d-block ${this.titleclass}">${this.title}${this.subtitle ? ` <span class="d-block fw-normal font-body text-body small">${this.subtitle}</span>` : ""}</span>` : "", u = `
|
|
1058
1050
|
${this.details && this.details.guideprice ? `<span class="d-block h6 text-dark mb-1">Price guide: ${this.details.guideprice}</span>` : ""}
|
|
1059
1051
|
${this.details && this.details.auctiontime ? `<span class="d-block h6 text-primary mb-4">Auction time left: ${this.details.auctiontime}</span>` : ""}
|
|
1060
1052
|
${this.details && this.details.readtime ? `<span class="d-block h6 text-primary mb-4"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="22" height="23" viewBox="0 0 22 23" class="icon ms-0 me-2"><path d="M11 1.63c-5.176 0-9.37 4.194-9.37 9.37 0 5.176 4.194 9.37 9.37 9.37 5.176 0 9.37-4.194 9.37-9.37 0-5.176-4.194-9.37-9.37-9.37M11 0c6.075 0 11 4.925 11 11s-4.925 11-11 11S0 17.075 0 11 4.925 0 11 0" fill="var(--colour-secondary)" /><path d="M9.62 5.39c0-.473.368-.856.82-.856.454 0 .822.383.822.855v6.27l3.25 1.898c.395.23.536.75.314 1.16-.22.412-.72.558-1.115.328l-4.09-2.39V5.39z" fill="var(--colour-primary)"/></svg>${this.details.readtime}</span>` : ""}
|
|
1061
1053
|
`;
|
|
1062
|
-
return `${
|
|
1054
|
+
return `${r}${t}${u}${this.content}`;
|
|
1063
1055
|
};
|
|
1064
1056
|
}
|
|
1065
1057
|
}
|
|
1066
|
-
},
|
|
1058
|
+
}, pt = ["href", "title", "target"], bt = {
|
|
1067
1059
|
key: 0,
|
|
1068
1060
|
class: "card-header__wrapper"
|
|
1069
|
-
}, vt = ["src"], gt = { class: "card-header" }, wt = ["innerHTML"], kt = ["innerHTML"],
|
|
1061
|
+
}, vt = ["src"], gt = { class: "card-header" }, wt = ["innerHTML"], kt = ["innerHTML"], At = ["src"], St = ["innerHTML"], $t = {
|
|
1070
1062
|
key: 1,
|
|
1071
1063
|
class: "card-footer"
|
|
1072
1064
|
}, xt = { class: "visually-hidden" };
|
|
1073
|
-
function qt(e,
|
|
1074
|
-
return
|
|
1065
|
+
function qt(e, r, t, u, h, a) {
|
|
1066
|
+
return l(), o("a", {
|
|
1075
1067
|
href: t.link,
|
|
1076
|
-
class:
|
|
1068
|
+
class: b("card" + (t.type ? " card--" + t.type : "") + " " + t.cardClass),
|
|
1077
1069
|
title: t.ctatext + ": " + t.title + (t.subtitle ? " - " + t.subtitle : ""),
|
|
1078
1070
|
target: t.target
|
|
1079
1071
|
}, [
|
|
1080
|
-
t.image ? (
|
|
1072
|
+
t.image ? (l(), o("div", bt, [
|
|
1081
1073
|
s("img", {
|
|
1082
1074
|
src: t.image,
|
|
1083
1075
|
alt: "",
|
|
@@ -1085,43 +1077,43 @@ function qt(e, n, t, c, h, a) {
|
|
|
1085
1077
|
class: "card-image"
|
|
1086
1078
|
}, null, 8, vt),
|
|
1087
1079
|
s("div", gt, [
|
|
1088
|
-
this.details && this.details.status ? (
|
|
1080
|
+
this.details && this.details.status ? (l(), o("span", {
|
|
1089
1081
|
key: 0,
|
|
1090
1082
|
class: "badge bg-primary p-2 me-2",
|
|
1091
1083
|
innerHTML: a.cardStatus()
|
|
1092
|
-
}, null, 8, wt)) :
|
|
1093
|
-
this.details && (this.details.images || this.details.videos) ? (
|
|
1084
|
+
}, null, 8, wt)) : p("", !0),
|
|
1085
|
+
this.details && (this.details.images || this.details.videos) ? (l(), o("span", {
|
|
1094
1086
|
key: 1,
|
|
1095
1087
|
class: "badge bg-black bg-opacity-50 p-2 align-self-end",
|
|
1096
1088
|
innerHTML: a.cardMedia()
|
|
1097
|
-
}, null, 8, kt)) :
|
|
1089
|
+
}, null, 8, kt)) : p("", !0)
|
|
1098
1090
|
]),
|
|
1099
|
-
t.details && t.details.logo ? (
|
|
1091
|
+
t.details && t.details.logo ? (l(), o("img", {
|
|
1100
1092
|
key: 0,
|
|
1101
1093
|
src: t.details.logo,
|
|
1102
1094
|
alt: "",
|
|
1103
1095
|
loading: "lazy",
|
|
1104
1096
|
class: "card-logo"
|
|
1105
|
-
}, null, 8,
|
|
1106
|
-
])) :
|
|
1097
|
+
}, null, 8, At)) : p("", !0)
|
|
1098
|
+
])) : p("", !0),
|
|
1107
1099
|
s("div", {
|
|
1108
1100
|
class: "card-body",
|
|
1109
1101
|
innerHTML: a.cardContent()
|
|
1110
|
-
}, null, 8,
|
|
1111
|
-
t.hidectatext == !1 ? (
|
|
1102
|
+
}, null, 8, St),
|
|
1103
|
+
t.hidectatext == !1 ? (l(), o("div", $t, [
|
|
1112
1104
|
s("span", {
|
|
1113
|
-
class:
|
|
1105
|
+
class: b(`${t.btntype == "link" ? "link" : `btn btn-${t.btntype}`} mb-0`)
|
|
1114
1106
|
}, [
|
|
1115
|
-
|
|
1116
|
-
s("span", xt, ": " +
|
|
1107
|
+
F(k(t.ctatext), 1),
|
|
1108
|
+
s("span", xt, ": " + k(t.title), 1)
|
|
1117
1109
|
], 2)
|
|
1118
|
-
])) :
|
|
1119
|
-
], 10,
|
|
1110
|
+
])) : p("", !0)
|
|
1111
|
+
], 10, pt);
|
|
1120
1112
|
}
|
|
1121
|
-
const
|
|
1113
|
+
const Q = /* @__PURE__ */ g(yt, [["render", qt]]);
|
|
1122
1114
|
const Lt = {
|
|
1123
1115
|
components: {
|
|
1124
|
-
Card:
|
|
1116
|
+
Card: Q
|
|
1125
1117
|
},
|
|
1126
1118
|
name: "CardDeck",
|
|
1127
1119
|
props: {
|
|
@@ -1176,21 +1168,21 @@ const Lt = {
|
|
|
1176
1168
|
}
|
|
1177
1169
|
}
|
|
1178
1170
|
}, Tt = ["data-card-type"];
|
|
1179
|
-
function Mt(e,
|
|
1180
|
-
const
|
|
1181
|
-
return
|
|
1171
|
+
function Mt(e, r, t, u, h, a) {
|
|
1172
|
+
const n = H("Card");
|
|
1173
|
+
return l(), o("div", {
|
|
1182
1174
|
class: "container card-deck prevent-invert",
|
|
1183
1175
|
"data-card-type": t.cardtype
|
|
1184
1176
|
}, [
|
|
1185
|
-
|
|
1177
|
+
v(e.$slots, "default"),
|
|
1186
1178
|
s("div", {
|
|
1187
|
-
class:
|
|
1179
|
+
class: b(`row row-cols-${t.cols} row-cols-sm-${t.smcols} row-cols-md-${t.mdcols} ${t.gap ? `g-${t.gap}` : ""}`)
|
|
1188
1180
|
}, [
|
|
1189
|
-
(
|
|
1181
|
+
(l(!0), o($, null, x(t.items, (i, f) => (l(), o("div", {
|
|
1190
1182
|
class: "col",
|
|
1191
1183
|
key: f
|
|
1192
1184
|
}, [
|
|
1193
|
-
|
|
1185
|
+
S(n, T(i, {
|
|
1194
1186
|
class: t.cardclass,
|
|
1195
1187
|
type: t.cardtype,
|
|
1196
1188
|
btntype: i.btntype ? i.btntype : t.btntype,
|
|
@@ -1200,27 +1192,27 @@ function Mt(e, n, t, c, h, a) {
|
|
|
1200
1192
|
}), null, 16, ["class", "type", "btntype", "titleclass", "ctatext", "hidectatext"])
|
|
1201
1193
|
]))), 128))
|
|
1202
1194
|
], 2),
|
|
1203
|
-
|
|
1195
|
+
v(e.$slots, "after")
|
|
1204
1196
|
], 8, Tt);
|
|
1205
1197
|
}
|
|
1206
|
-
const
|
|
1207
|
-
function
|
|
1208
|
-
var
|
|
1209
|
-
let t = e.querySelector(".carousel__inner"),
|
|
1198
|
+
const Ht = /* @__PURE__ */ g(Lt, [["render", Mt]]);
|
|
1199
|
+
function Ct(e) {
|
|
1200
|
+
var r;
|
|
1201
|
+
let t = e.querySelector(".carousel__inner"), u = e.querySelectorAll(".carousel__item").length;
|
|
1210
1202
|
e.getAttribute("data-cols");
|
|
1211
1203
|
let h = e.getAttribute("data-sm-cols"), a = e.getAttribute("data-md-cols");
|
|
1212
|
-
e.querySelector(".carousel__controls a").classList.add("active"), t.addEventListener("scroll", function(
|
|
1213
|
-
clearTimeout(
|
|
1214
|
-
let i = t.clientWidth, f = t.scrollWidth,
|
|
1215
|
-
Array.from(e.querySelectorAll(".carousel__controls a")).forEach((I,
|
|
1204
|
+
e.querySelector(".carousel__controls a").classList.add("active"), t.addEventListener("scroll", function(n) {
|
|
1205
|
+
clearTimeout(r), r = setTimeout(function() {
|
|
1206
|
+
let i = t.clientWidth, f = t.scrollWidth, A = t.scrollLeft, q = Math.round(A / f * u) + 1, M = e.querySelector(".carousel__item:last-child").offsetLeft;
|
|
1207
|
+
Array.from(e.querySelectorAll(".carousel__controls a")).forEach((I, C) => {
|
|
1216
1208
|
I.classList.remove("active");
|
|
1217
1209
|
}), e.querySelector(".control-" + q).classList.add("active"), q == 1 ? e.querySelector(".btn-prev").setAttribute("disabled", "disabled") : e.querySelector(".btn-prev").removeAttribute("disabled"), t.scrollLeft + i > M ? e.querySelector(".btn-next").setAttribute("disabled", "disabled") : e.querySelector(".btn-next").removeAttribute("disabled");
|
|
1218
1210
|
}, 100);
|
|
1219
|
-
}, !1), e.addEventListener("click", function(
|
|
1220
|
-
for (var i =
|
|
1211
|
+
}, !1), e.addEventListener("click", function(n) {
|
|
1212
|
+
for (var i = n.target; i && i != this; i = i.parentNode)
|
|
1221
1213
|
if (i.matches(".carousel__controls a")) {
|
|
1222
|
-
|
|
1223
|
-
|
|
1214
|
+
n.preventDefault(), Array.from(e.querySelectorAll(".carousel__controls a")).forEach((A, q) => {
|
|
1215
|
+
A.classList.remove("active");
|
|
1224
1216
|
}), i.classList.add("active");
|
|
1225
1217
|
const f = document.querySelector(i.getAttribute("href"));
|
|
1226
1218
|
t.scroll({
|
|
@@ -1230,10 +1222,10 @@ function Ht(e) {
|
|
|
1230
1222
|
});
|
|
1231
1223
|
break;
|
|
1232
1224
|
}
|
|
1233
|
-
}, !1), e.addEventListener("click", function(
|
|
1234
|
-
for (var i =
|
|
1225
|
+
}, !1), e.addEventListener("click", function(n) {
|
|
1226
|
+
for (var i = n.target; i && i != this; i = i.parentNode)
|
|
1235
1227
|
if (i.matches(".btn-next, .btn-prev")) {
|
|
1236
|
-
|
|
1228
|
+
n.preventDefault();
|
|
1237
1229
|
let f = i.classList.contains("btn-prev") ? t.scrollLeft - t.clientWidth : t.scrollLeft + t.clientWidth;
|
|
1238
1230
|
t.scroll({
|
|
1239
1231
|
top: 0,
|
|
@@ -1242,16 +1234,16 @@ function Ht(e) {
|
|
|
1242
1234
|
});
|
|
1243
1235
|
break;
|
|
1244
1236
|
}
|
|
1245
|
-
}, !1),
|
|
1237
|
+
}, !1), u == 1 && e.classList.add("hide-btns"), h >= u && e.classList.add("hide-sm-btns"), a >= u && e.classList.add("hide-md-btns");
|
|
1246
1238
|
}
|
|
1247
|
-
let
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1239
|
+
let P = Ht.props;
|
|
1240
|
+
P.gap.default = 0;
|
|
1241
|
+
P.cols.default = 1;
|
|
1242
|
+
P.smcols.default = 2;
|
|
1243
|
+
P.mdcols.default = 4;
|
|
1252
1244
|
const Nt = {
|
|
1253
1245
|
components: {
|
|
1254
|
-
Card:
|
|
1246
|
+
Card: Q
|
|
1255
1247
|
},
|
|
1256
1248
|
name: "Carousel",
|
|
1257
1249
|
data() {
|
|
@@ -1260,7 +1252,7 @@ const Nt = {
|
|
|
1260
1252
|
};
|
|
1261
1253
|
},
|
|
1262
1254
|
props: {
|
|
1263
|
-
...
|
|
1255
|
+
...P,
|
|
1264
1256
|
colclass: {
|
|
1265
1257
|
type: String,
|
|
1266
1258
|
required: !1
|
|
@@ -1277,20 +1269,20 @@ const Nt = {
|
|
|
1277
1269
|
},
|
|
1278
1270
|
mounted() {
|
|
1279
1271
|
this.id = this._uid, this.$nextTick(function() {
|
|
1280
|
-
|
|
1272
|
+
Ct(this.$refs.wrapper);
|
|
1281
1273
|
});
|
|
1282
1274
|
}
|
|
1283
|
-
},
|
|
1275
|
+
}, Bt = ["id", "data-cols", "data-sm-cols", "data-md-cols"], Pt = { class: "carousel__wrapper" }, Dt = { class: "carousel__inner" }, It = ["id"], zt = ["innerHTML", "id"], Vt = ["href"], Ot = /* @__PURE__ */ s("button", {
|
|
1284
1276
|
class: "btn btn-prev",
|
|
1285
1277
|
"data-go": "0",
|
|
1286
1278
|
disabled: ""
|
|
1287
|
-
}, "Prev", -1),
|
|
1279
|
+
}, "Prev", -1), Ft = /* @__PURE__ */ s("button", {
|
|
1288
1280
|
class: "btn btn-next",
|
|
1289
1281
|
"data-go": "2"
|
|
1290
1282
|
}, "Next", -1);
|
|
1291
|
-
function
|
|
1292
|
-
const
|
|
1293
|
-
return
|
|
1283
|
+
function jt(e, r, t, u, h, a) {
|
|
1284
|
+
const n = H("Card");
|
|
1285
|
+
return l(), o("div", {
|
|
1294
1286
|
class: "container carousel",
|
|
1295
1287
|
id: "carousel" + h.id,
|
|
1296
1288
|
ref: "wrapper",
|
|
@@ -1298,21 +1290,19 @@ function Vt(e, n, t, c, h, a) {
|
|
|
1298
1290
|
"data-sm-cols": e.smcols,
|
|
1299
1291
|
"data-md-cols": e.mdcols
|
|
1300
1292
|
}, [
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
s("div", jt, [
|
|
1306
|
-
t.type == "card" ? (o(), l("div", {
|
|
1293
|
+
v(e.$slots, "default"),
|
|
1294
|
+
s("div", Pt, [
|
|
1295
|
+
s("div", Dt, [
|
|
1296
|
+
t.type == "card" ? (l(), o("div", {
|
|
1307
1297
|
key: 0,
|
|
1308
|
-
class:
|
|
1298
|
+
class: b(`row row-cols-${e.cols} row-cols-sm-${e.smcols} row-cols-md-${e.mdcols} ${e.gap ? `g-${e.gap}` : ""}`)
|
|
1309
1299
|
}, [
|
|
1310
|
-
(
|
|
1311
|
-
class:
|
|
1300
|
+
(l(!0), o($, null, x(e.items, (i, f) => (l(), o("div", {
|
|
1301
|
+
class: b(`col carousel__item${t.colclass ? ` ${t.colclass}` : ""}`),
|
|
1312
1302
|
key: f,
|
|
1313
1303
|
id: "carousel" + h.id + "slide" + (f + 1)
|
|
1314
1304
|
}, [
|
|
1315
|
-
|
|
1305
|
+
S(n, T(i, {
|
|
1316
1306
|
class: e.cardclass,
|
|
1317
1307
|
type: e.cardtype,
|
|
1318
1308
|
btnyype: e.btntype,
|
|
@@ -1320,36 +1310,36 @@ function Vt(e, n, t, c, h, a) {
|
|
|
1320
1310
|
ctatext: e.ctatext,
|
|
1321
1311
|
hidectatext: e.hidectatext
|
|
1322
1312
|
}), null, 16, ["class", "type", "btnyype", "titleclass", "ctatext", "hidectatext"])
|
|
1323
|
-
], 10,
|
|
1324
|
-
], 2)) :
|
|
1325
|
-
t.type != "card" ? (
|
|
1313
|
+
], 10, It))), 128))
|
|
1314
|
+
], 2)) : p("", !0),
|
|
1315
|
+
t.type != "card" ? (l(), o("div", {
|
|
1326
1316
|
key: 1,
|
|
1327
|
-
class:
|
|
1317
|
+
class: b(`row row-cols-${e.cols} row-cols-sm-${e.smcols} row-cols-md-${e.mdcols} ${e.gap ? `g-${e.gap}` : ""}`)
|
|
1328
1318
|
}, [
|
|
1329
|
-
(
|
|
1330
|
-
class:
|
|
1319
|
+
(l(!0), o($, null, x(e.items, (i, f) => (l(), o("div", {
|
|
1320
|
+
class: b(`col carousel__item${t.colclass ? ` ${t.colclass}` : ""}`),
|
|
1331
1321
|
key: f,
|
|
1332
1322
|
innerHTML: a.content(i),
|
|
1333
1323
|
id: "carousel" + h.id + "slide" + (f + 1)
|
|
1334
|
-
}, null, 10,
|
|
1335
|
-
], 2)) :
|
|
1324
|
+
}, null, 10, zt))), 128))
|
|
1325
|
+
], 2)) : p("", !0)
|
|
1336
1326
|
]),
|
|
1337
1327
|
s("div", {
|
|
1338
|
-
class:
|
|
1328
|
+
class: b(`carousel__controls cols-${e.cols} cols-sm-${e.smcols} cols-md-${e.mdcols}`)
|
|
1339
1329
|
}, [
|
|
1340
|
-
(
|
|
1330
|
+
(l(!0), o($, null, x(e.items, (i, f) => (l(), o("a", {
|
|
1341
1331
|
key: f,
|
|
1342
1332
|
href: "#carousel" + h.id + "slide" + (f + 1),
|
|
1343
|
-
class:
|
|
1344
|
-
}, "Slide " +
|
|
1333
|
+
class: b(`control-${f + 1}`)
|
|
1334
|
+
}, "Slide " + k(f + 1), 11, Vt))), 128))
|
|
1345
1335
|
], 2),
|
|
1346
|
-
|
|
1347
|
-
|
|
1336
|
+
Ot,
|
|
1337
|
+
Ft
|
|
1348
1338
|
])
|
|
1349
|
-
], 8,
|
|
1339
|
+
], 8, Bt);
|
|
1350
1340
|
}
|
|
1351
|
-
const
|
|
1352
|
-
const
|
|
1341
|
+
const _i = /* @__PURE__ */ g(Nt, [["render", jt]]);
|
|
1342
|
+
const Wt = {
|
|
1353
1343
|
name: "Header",
|
|
1354
1344
|
props: {
|
|
1355
1345
|
title: {
|
|
@@ -1361,54 +1351,51 @@ const Ot = {
|
|
|
1361
1351
|
required: !1
|
|
1362
1352
|
}
|
|
1363
1353
|
}
|
|
1364
|
-
},
|
|
1354
|
+
}, Kt = { class: "header-banner" }, Ut = { class: "container" }, Gt = { class: "header-banner__inner" }, Zt = ["innerHTML"], Rt = { key: 0 }, Qt = ["srcset"], Yt = /* @__PURE__ */ s("img", {
|
|
1365
1355
|
src: "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
|
|
1366
1356
|
alt: ""
|
|
1367
1357
|
}, null, -1);
|
|
1368
|
-
function
|
|
1369
|
-
return
|
|
1370
|
-
s("div",
|
|
1371
|
-
|
|
1372
|
-
b(e.$slots, "breadcrumb"),
|
|
1358
|
+
function Et(e, r, t, u, h, a) {
|
|
1359
|
+
return l(), o("header", Kt, [
|
|
1360
|
+
s("div", Ut, [
|
|
1361
|
+
v(e.$slots, "breadcrumb"),
|
|
1373
1362
|
s("div", Gt, [
|
|
1374
|
-
s("h1", { innerHTML: t.title }, null, 8,
|
|
1375
|
-
|
|
1363
|
+
s("h1", { innerHTML: t.title }, null, 8, Zt),
|
|
1364
|
+
v(e.$slots, "default")
|
|
1376
1365
|
])
|
|
1377
1366
|
]),
|
|
1378
|
-
t.image ? (
|
|
1379
|
-
m(" Actual image only loaded on desktops "),
|
|
1367
|
+
t.image ? (l(), o("picture", Rt, [
|
|
1380
1368
|
s("source", {
|
|
1381
1369
|
srcset: t.image,
|
|
1382
1370
|
media: "(min-width: 62em)"
|
|
1383
|
-
}, null, 8,
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
])) : m("v-if", !0)
|
|
1371
|
+
}, null, 8, Qt),
|
|
1372
|
+
Yt
|
|
1373
|
+
])) : p("", !0)
|
|
1387
1374
|
]);
|
|
1388
1375
|
}
|
|
1389
|
-
const
|
|
1376
|
+
const yi = /* @__PURE__ */ g(Wt, [["render", Et]]);
|
|
1390
1377
|
function Jt(e) {
|
|
1391
|
-
var
|
|
1392
|
-
const t = e.querySelector(".testimonial__images"),
|
|
1393
|
-
if (
|
|
1378
|
+
var r;
|
|
1379
|
+
const t = e.querySelector(".testimonial__images"), u = t.querySelectorAll("img").length;
|
|
1380
|
+
if (u == 1)
|
|
1394
1381
|
return !1;
|
|
1395
1382
|
e.classList.add("testimonial--multi");
|
|
1396
1383
|
const h = function(a) {
|
|
1397
|
-
const
|
|
1398
|
-
|
|
1384
|
+
const n = e.querySelector(".btn-next"), i = e.querySelector(".btn-prev");
|
|
1385
|
+
n.setAttribute("data-go", a + 1), i.setAttribute("data-go", a - 1), n.removeAttribute("disabled"), i.removeAttribute("disabled"), a == 1 ? i.setAttribute("disabled", !0) : a == u && n.setAttribute("disabled", !0);
|
|
1399
1386
|
};
|
|
1400
1387
|
t.addEventListener("scroll", function(a) {
|
|
1401
|
-
clearTimeout(
|
|
1402
|
-
let
|
|
1403
|
-
f == 0 &&
|
|
1388
|
+
clearTimeout(r), r = setTimeout(function() {
|
|
1389
|
+
let n = t.scrollWidth, i = t.scrollHeight, f = t.scrollLeft, A = t.scrollTop, q = Math.round(f / n * u) + 1;
|
|
1390
|
+
f == 0 && A != 0 && (q = Math.round(A / i * u) + 1), e.setAttribute("data-show", q), h(q);
|
|
1404
1391
|
}, 300);
|
|
1405
1392
|
}, !1), e.addEventListener("click", function(a) {
|
|
1406
|
-
for (var
|
|
1407
|
-
if (
|
|
1408
|
-
let i = parseInt(
|
|
1409
|
-
q > M ?
|
|
1393
|
+
for (var n = a.target; n && n != this; n = n.parentNode)
|
|
1394
|
+
if (n.matches("[data-go]")) {
|
|
1395
|
+
let i = parseInt(n.getAttribute("data-go")), f = 0, A = 0, q = t.scrollWidth, M = t.scrollHeight;
|
|
1396
|
+
q > M ? A = Math.floor(q * ((i - 1) / u)) : f = Math.floor(M * ((i - 1) / u)), t.scroll({
|
|
1410
1397
|
top: f,
|
|
1411
|
-
left:
|
|
1398
|
+
left: A,
|
|
1412
1399
|
behavior: "smooth"
|
|
1413
1400
|
});
|
|
1414
1401
|
break;
|
|
@@ -1445,41 +1432,41 @@ const Xt = {
|
|
|
1445
1432
|
"data-go": "2",
|
|
1446
1433
|
class: "btn-next"
|
|
1447
1434
|
}, "Next")
|
|
1448
|
-
], -1), rs = { class: "col-md-7" },
|
|
1449
|
-
function hs(e,
|
|
1450
|
-
return
|
|
1435
|
+
], -1), rs = { class: "col-md-7" }, ls = /* @__PURE__ */ s("h2", null, "What our customers think…", -1), os = { class: "testimonial__content" }, cs = ["innerHTML"], ds = ["innerHTML"], us = { class: "testimonial__after" }, fs = /* @__PURE__ */ s("span", { class: "circle circle--dots d-none d-md-block" }, null, -1);
|
|
1436
|
+
function hs(e, r, t, u, h, a) {
|
|
1437
|
+
return l(), o("div", es, [
|
|
1451
1438
|
s("div", {
|
|
1452
|
-
class:
|
|
1439
|
+
class: b("bg-" + t.background)
|
|
1453
1440
|
}, [
|
|
1454
1441
|
s("div", ts, [
|
|
1455
1442
|
s("div", ss, [
|
|
1456
1443
|
s("div", as, [
|
|
1457
|
-
(
|
|
1444
|
+
(l(!0), o($, null, x(t.items, (n, i) => (l(), o("img", {
|
|
1458
1445
|
key: i,
|
|
1459
|
-
src:
|
|
1446
|
+
src: n.image ? n.image : "data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",
|
|
1460
1447
|
alt: "",
|
|
1461
|
-
class:
|
|
1448
|
+
class: b("h-100 w-100 object-cover" + (n.image ? "" : " opacity-0"))
|
|
1462
1449
|
}, null, 10, is))), 128))
|
|
1463
1450
|
]),
|
|
1464
1451
|
ns
|
|
1465
1452
|
]),
|
|
1466
1453
|
s("div", rs, [
|
|
1467
|
-
|
|
1468
|
-
s("div",
|
|
1469
|
-
(
|
|
1454
|
+
ls,
|
|
1455
|
+
s("div", os, [
|
|
1456
|
+
(l(!0), o($, null, x(t.items, (n, i) => (l(), o("blockquote", {
|
|
1470
1457
|
key: i,
|
|
1471
|
-
class:
|
|
1458
|
+
class: b(n.class)
|
|
1472
1459
|
}, [
|
|
1473
1460
|
s("div", {
|
|
1474
|
-
innerHTML:
|
|
1461
|
+
innerHTML: n.quote
|
|
1475
1462
|
}, null, 8, cs),
|
|
1476
1463
|
s("cite", {
|
|
1477
|
-
innerHTML:
|
|
1464
|
+
innerHTML: n.cite
|
|
1478
1465
|
}, null, 8, ds)
|
|
1479
1466
|
], 2))), 128))
|
|
1480
1467
|
]),
|
|
1481
1468
|
s("div", us, [
|
|
1482
|
-
|
|
1469
|
+
v(e.$slots, "default")
|
|
1483
1470
|
])
|
|
1484
1471
|
])
|
|
1485
1472
|
]),
|
|
@@ -1487,10 +1474,10 @@ function hs(e, n, t, c, h, a) {
|
|
|
1487
1474
|
], 2)
|
|
1488
1475
|
], 512);
|
|
1489
1476
|
}
|
|
1490
|
-
const
|
|
1477
|
+
const pi = /* @__PURE__ */ g(Xt, [["render", hs]]);
|
|
1491
1478
|
const ms = {
|
|
1492
1479
|
components: {
|
|
1493
|
-
Input:
|
|
1480
|
+
Input: D
|
|
1494
1481
|
},
|
|
1495
1482
|
name: "PropertySearchbar",
|
|
1496
1483
|
props: {
|
|
@@ -1515,8 +1502,8 @@ const ms = {
|
|
|
1515
1502
|
required: !1,
|
|
1516
1503
|
default() {
|
|
1517
1504
|
return [
|
|
1518
|
-
{ value: "0.25", display: "
|
|
1519
|
-
{ value: "0.5", display: "
|
|
1505
|
+
{ value: "0.25", display: "+¼ mi" },
|
|
1506
|
+
{ value: "0.5", display: "+½ mi" },
|
|
1520
1507
|
{ value: "1", display: "+1 mi" },
|
|
1521
1508
|
{ value: "2", display: "+2 mi" },
|
|
1522
1509
|
{ value: "3", display: "+3 mi" },
|
|
@@ -1531,12 +1518,12 @@ const ms = {
|
|
|
1531
1518
|
default() {
|
|
1532
1519
|
return [
|
|
1533
1520
|
{ value: "0", display: "No min" },
|
|
1534
|
-
{ value: "50000", display: "
|
|
1535
|
-
{ value: "75000", display: "
|
|
1536
|
-
{ value: "100000", display: "
|
|
1537
|
-
{ value: "150000", display: "
|
|
1538
|
-
{ value: "200000", display: "
|
|
1539
|
-
{ value: "250000", display: "
|
|
1521
|
+
{ value: "50000", display: "£50k min" },
|
|
1522
|
+
{ value: "75000", display: "£75k min" },
|
|
1523
|
+
{ value: "100000", display: "£100k min" },
|
|
1524
|
+
{ value: "150000", display: "£150k min" },
|
|
1525
|
+
{ value: "200000", display: "£200k min" },
|
|
1526
|
+
{ value: "250000", display: "£250k min" }
|
|
1540
1527
|
];
|
|
1541
1528
|
}
|
|
1542
1529
|
},
|
|
@@ -1546,12 +1533,12 @@ const ms = {
|
|
|
1546
1533
|
default() {
|
|
1547
1534
|
return [
|
|
1548
1535
|
{ value: "any", display: "No max" },
|
|
1549
|
-
{ value: "50000", display: "
|
|
1550
|
-
{ value: "75000", display: "
|
|
1551
|
-
{ value: "100000", display: "
|
|
1552
|
-
{ value: "150000", display: "
|
|
1553
|
-
{ value: "200000", display: "
|
|
1554
|
-
{ value: "250000", display: "
|
|
1536
|
+
{ value: "50000", display: "£50k max" },
|
|
1537
|
+
{ value: "75000", display: "£75k max" },
|
|
1538
|
+
{ value: "100000", display: "£100k max" },
|
|
1539
|
+
{ value: "150000", display: "£150k max" },
|
|
1540
|
+
{ value: "200000", display: "£200k max" },
|
|
1541
|
+
{ value: "250000", display: "£250k max" }
|
|
1555
1542
|
];
|
|
1556
1543
|
}
|
|
1557
1544
|
},
|
|
@@ -1637,10 +1624,10 @@ const ms = {
|
|
|
1637
1624
|
}, _s = {
|
|
1638
1625
|
class: "container",
|
|
1639
1626
|
ref: "wrapper"
|
|
1640
|
-
},
|
|
1627
|
+
}, ys = { class: "property-searchbar" }, ps = ["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 = {
|
|
1641
1628
|
class: "row",
|
|
1642
1629
|
"data-input-range": ""
|
|
1643
|
-
}, ks = { class: "col-12 col-md" },
|
|
1630
|
+
}, ks = { class: "col-12 col-md" }, As = /* @__PURE__ */ s("span", { class: "form-label d-none d-md-block" }, "Number of beds", -1), Ss = {
|
|
1644
1631
|
class: "row",
|
|
1645
1632
|
"data-input-range": ""
|
|
1646
1633
|
}, $s = { class: "col-12 col-md-2" }, xs = /* @__PURE__ */ s("div", { class: "col-12 col-md mw-md-fit-content d-flex property-searchbar__btn" }, [
|
|
@@ -1650,30 +1637,30 @@ const ms = {
|
|
|
1650
1637
|
value: "submit"
|
|
1651
1638
|
}, "Search")
|
|
1652
1639
|
], -1);
|
|
1653
|
-
function qs(e,
|
|
1654
|
-
const
|
|
1655
|
-
return
|
|
1656
|
-
|
|
1657
|
-
s("div",
|
|
1640
|
+
function qs(e, r, t, u, h, a) {
|
|
1641
|
+
const n = H("Input");
|
|
1642
|
+
return l(), o("div", _s, [
|
|
1643
|
+
v(e.$slots, "default"),
|
|
1644
|
+
s("div", ys, [
|
|
1658
1645
|
s("form", {
|
|
1659
1646
|
class: "row",
|
|
1660
1647
|
action: t.formaction,
|
|
1661
1648
|
method: t.formmethod
|
|
1662
1649
|
}, [
|
|
1663
1650
|
s("fieldset", bs, [
|
|
1664
|
-
|
|
1651
|
+
S(n, {
|
|
1665
1652
|
inputClass: "input--locations",
|
|
1666
1653
|
modelValue: a.locationSet,
|
|
1667
|
-
"onUpdate:modelValue":
|
|
1654
|
+
"onUpdate:modelValue": r[0] || (r[0] = (i) => a.locationSet = i),
|
|
1668
1655
|
label: "Location",
|
|
1669
1656
|
id: "location",
|
|
1670
1657
|
options: a.locationsList(),
|
|
1671
1658
|
required: "",
|
|
1672
1659
|
placeholder: "i.e. Newcastle or NE1",
|
|
1673
|
-
onKeyupEvent:
|
|
1660
|
+
onKeyupEvent: r[1] || (r[1] = (i) => a.locationKeyup(...arguments)),
|
|
1674
1661
|
ref: "search"
|
|
1675
1662
|
}, null, 8, ["modelValue", "options"]),
|
|
1676
|
-
|
|
1663
|
+
S(n, {
|
|
1677
1664
|
class: "select--miles",
|
|
1678
1665
|
label: "Miles",
|
|
1679
1666
|
id: "miles",
|
|
@@ -1684,7 +1671,7 @@ function qs(e, n, t, c, h, a) {
|
|
|
1684
1671
|
s("fieldset", vs, [
|
|
1685
1672
|
gs,
|
|
1686
1673
|
s("div", ws, [
|
|
1687
|
-
|
|
1674
|
+
S(n, {
|
|
1688
1675
|
class: "col-6",
|
|
1689
1676
|
label: "Minimum price",
|
|
1690
1677
|
id: "price-min",
|
|
@@ -1692,7 +1679,7 @@ function qs(e, n, t, c, h, a) {
|
|
|
1692
1679
|
type: "select",
|
|
1693
1680
|
options: t.pricemin
|
|
1694
1681
|
}, null, 8, ["options"]),
|
|
1695
|
-
|
|
1682
|
+
S(n, {
|
|
1696
1683
|
class: "col-6",
|
|
1697
1684
|
label: "Maximum price",
|
|
1698
1685
|
id: "price-max",
|
|
@@ -1703,9 +1690,9 @@ function qs(e, n, t, c, h, a) {
|
|
|
1703
1690
|
])
|
|
1704
1691
|
]),
|
|
1705
1692
|
s("fieldset", ks, [
|
|
1706
|
-
|
|
1707
|
-
s("div",
|
|
1708
|
-
|
|
1693
|
+
As,
|
|
1694
|
+
s("div", Ss, [
|
|
1695
|
+
S(n, {
|
|
1709
1696
|
class: "col-6",
|
|
1710
1697
|
label: "Minimum beds",
|
|
1711
1698
|
id: "beds-min",
|
|
@@ -1713,7 +1700,7 @@ function qs(e, n, t, c, h, a) {
|
|
|
1713
1700
|
type: "select",
|
|
1714
1701
|
options: t.bedsmin
|
|
1715
1702
|
}, null, 8, ["options"]),
|
|
1716
|
-
|
|
1703
|
+
S(n, {
|
|
1717
1704
|
class: "col-6",
|
|
1718
1705
|
label: "Maximum beds",
|
|
1719
1706
|
id: "beds-max",
|
|
@@ -1724,7 +1711,7 @@ function qs(e, n, t, c, h, a) {
|
|
|
1724
1711
|
])
|
|
1725
1712
|
]),
|
|
1726
1713
|
s("fieldset", $s, [
|
|
1727
|
-
|
|
1714
|
+
S(n, {
|
|
1728
1715
|
label: "Property type",
|
|
1729
1716
|
id: "property-type",
|
|
1730
1717
|
type: "select",
|
|
@@ -1732,17 +1719,17 @@ function qs(e, n, t, c, h, a) {
|
|
|
1732
1719
|
}, null, 8, ["options"])
|
|
1733
1720
|
]),
|
|
1734
1721
|
xs
|
|
1735
|
-
], 8,
|
|
1722
|
+
], 8, ps)
|
|
1736
1723
|
]),
|
|
1737
|
-
|
|
1724
|
+
v(e.$slots, "after")
|
|
1738
1725
|
], 512);
|
|
1739
1726
|
}
|
|
1740
|
-
const
|
|
1741
|
-
Array.from(e.querySelectorAll("details")).forEach((
|
|
1742
|
-
|
|
1743
|
-
window.matchMedia("(min-width: 62em)").matches &&
|
|
1744
|
-
}, !1),
|
|
1745
|
-
window.matchMedia("(min-width: 62em)").matches &&
|
|
1727
|
+
const bi = /* @__PURE__ */ g(ms, [["render", qs]]), Ls = (e) => {
|
|
1728
|
+
Array.from(e.querySelectorAll("details")).forEach((r, t) => {
|
|
1729
|
+
r.addEventListener("mouseenter", function(u) {
|
|
1730
|
+
window.matchMedia("(min-width: 62em)").matches && r.setAttribute("open", "true");
|
|
1731
|
+
}, !1), r.addEventListener("mouseleave", function(u) {
|
|
1732
|
+
window.matchMedia("(min-width: 62em)").matches && r.removeAttribute("open");
|
|
1746
1733
|
}, !1);
|
|
1747
1734
|
}), "IntersectionObserver" in window && new IntersectionObserver(
|
|
1748
1735
|
([t]) => t.target.classList.toggle("is-stuck", t.intersectionRatio < 1),
|
|
@@ -1751,7 +1738,7 @@ const Ti = /* @__PURE__ */ g(ms, [["render", qs], ["__file", "/Users/james/works
|
|
|
1751
1738
|
};
|
|
1752
1739
|
const Ts = {
|
|
1753
1740
|
components: {
|
|
1754
|
-
Input:
|
|
1741
|
+
Input: D,
|
|
1755
1742
|
Logo: ue,
|
|
1756
1743
|
Icon: re
|
|
1757
1744
|
},
|
|
@@ -1831,40 +1818,40 @@ const Ts = {
|
|
|
1831
1818
|
name: "showMenu",
|
|
1832
1819
|
id: "showMenu",
|
|
1833
1820
|
class: "d-none"
|
|
1834
|
-
}, null, -1),
|
|
1821
|
+
}, null, -1), Hs = /* @__PURE__ */ s("input", {
|
|
1835
1822
|
type: "checkbox",
|
|
1836
1823
|
name: "showSearch",
|
|
1837
1824
|
id: "showSearch",
|
|
1838
1825
|
class: "d-none"
|
|
1839
|
-
}, null, -1),
|
|
1826
|
+
}, null, -1), Cs = /* @__PURE__ */ s("input", {
|
|
1840
1827
|
type: "checkbox",
|
|
1841
1828
|
name: "showAccount",
|
|
1842
1829
|
id: "showAccount",
|
|
1843
1830
|
class: "d-none"
|
|
1844
|
-
}, null, -1), Ns = { class: "nav__mobile-bar" },
|
|
1831
|
+
}, null, -1), Ns = { class: "nav__mobile-bar" }, Bs = { class: "container" }, Ps = { class: "row" }, Ds = {
|
|
1845
1832
|
key: 0,
|
|
1846
1833
|
class: "col mw-md-fit-content nav__logo"
|
|
1847
|
-
},
|
|
1834
|
+
}, Is = {
|
|
1848
1835
|
key: 1,
|
|
1849
1836
|
class: "col mw-md-fit-content nav__logo"
|
|
1850
|
-
},
|
|
1837
|
+
}, zs = {
|
|
1851
1838
|
href: "/",
|
|
1852
1839
|
class: "text-decoration-none mb-0"
|
|
1853
|
-
},
|
|
1840
|
+
}, Vs = /* @__PURE__ */ s("div", { class: "col mw-fit-content d-md-none flex-row align-items-center nav__menu-btn" }, [
|
|
1854
1841
|
/* @__PURE__ */ s("label", { for: "showMenu" }, "Menu")
|
|
1855
|
-
], -1),
|
|
1842
|
+
], -1), Os = { class: "nav__inner" }, Fs = { class: "container" }, js = { class: "row" }, Ws = {
|
|
1856
1843
|
key: 0,
|
|
1857
1844
|
class: "col mw-md-fit-content nav__logo"
|
|
1858
|
-
},
|
|
1845
|
+
}, Ks = {
|
|
1859
1846
|
key: 1,
|
|
1860
1847
|
class: "col mw-md-fit-content nav__logo"
|
|
1861
|
-
},
|
|
1848
|
+
}, Us = {
|
|
1862
1849
|
href: "/",
|
|
1863
1850
|
class: "text-decoration-none mb-0"
|
|
1864
1851
|
}, Gs = {
|
|
1865
1852
|
key: 2,
|
|
1866
1853
|
class: "col mw-fit-content nav__search-btn flex-row align-items-center"
|
|
1867
|
-
},
|
|
1854
|
+
}, Zs = /* @__PURE__ */ s("label", { for: "showSearch" }, [
|
|
1868
1855
|
/* @__PURE__ */ s("svg", {
|
|
1869
1856
|
class: "icon",
|
|
1870
1857
|
viewBox: "0 0 32 32"
|
|
@@ -1886,10 +1873,10 @@ const Ts = {
|
|
|
1886
1873
|
})
|
|
1887
1874
|
])
|
|
1888
1875
|
], -1), Rs = [
|
|
1889
|
-
|
|
1890
|
-
],
|
|
1876
|
+
Zs
|
|
1877
|
+
], Qs = /* @__PURE__ */ s("div", { class: "col mw-fit-content d-md-none flex-row align-items-center nav__menu-btn" }, [
|
|
1891
1878
|
/* @__PURE__ */ s("label", { for: "showMenu" }, "Menu")
|
|
1892
|
-
], -1),
|
|
1879
|
+
], -1), Ys = { class: "col-12 col-md nav__menu ms-auto flex-row align-items-center" }, Es = {
|
|
1893
1880
|
key: 3,
|
|
1894
1881
|
class: "col nav__account-btn flex-row align-items-center"
|
|
1895
1882
|
}, Js = /* @__PURE__ */ s("label", { for: "showAccount" }, [
|
|
@@ -1918,10 +1905,10 @@ const Ts = {
|
|
|
1918
1905
|
}, aa = { class: "container" }, ia = {
|
|
1919
1906
|
key: 1,
|
|
1920
1907
|
class: "nav__menu--search"
|
|
1921
|
-
}, na = { class: "bg-gradient pt-4" }, ra = { class: "container" },
|
|
1908
|
+
}, na = { class: "bg-gradient pt-4" }, ra = { class: "container" }, la = {
|
|
1922
1909
|
key: 0,
|
|
1923
1910
|
class: "nav__menu--account"
|
|
1924
|
-
},
|
|
1911
|
+
}, oa = { class: "container" }, ca = { class: "row mb-4" }, da = {
|
|
1925
1912
|
key: 0,
|
|
1926
1913
|
class: "col mw-md-fit-content nav__logo"
|
|
1927
1914
|
}, ua = {
|
|
@@ -1933,24 +1920,23 @@ const Ts = {
|
|
|
1933
1920
|
}, ha = /* @__PURE__ */ s("div", { class: "col mw-fit-content d-md-none flex-row align-items-center nav__menu-btn" }, [
|
|
1934
1921
|
/* @__PURE__ */ s("label", { for: "showAccount" }, "Account")
|
|
1935
1922
|
], -1), ma = { class: "container" }, _a = /* @__PURE__ */ s("span", { class: "nav__bg" }, null, -1);
|
|
1936
|
-
function
|
|
1937
|
-
const
|
|
1938
|
-
return
|
|
1939
|
-
class:
|
|
1923
|
+
function ya(e, r, t, u, h, a) {
|
|
1924
|
+
const n = H("Logo");
|
|
1925
|
+
return l(), o("nav", {
|
|
1926
|
+
class: b(`nav${a.hasSecondarySlot ? " has-secondary" : ""}`),
|
|
1940
1927
|
ref: "wrapper"
|
|
1941
1928
|
}, [
|
|
1942
1929
|
Ms,
|
|
1943
|
-
Cs,
|
|
1944
1930
|
Hs,
|
|
1945
|
-
|
|
1931
|
+
Cs,
|
|
1946
1932
|
s("div", Ns, [
|
|
1947
|
-
s("div",
|
|
1948
|
-
s("div",
|
|
1949
|
-
a.hasLogoSlot ? (
|
|
1950
|
-
|
|
1951
|
-
])) : (
|
|
1952
|
-
s("a",
|
|
1953
|
-
|
|
1933
|
+
s("div", Bs, [
|
|
1934
|
+
s("div", Ps, [
|
|
1935
|
+
a.hasLogoSlot ? (l(), o("div", Ds, [
|
|
1936
|
+
v(e.$slots, "logo")
|
|
1937
|
+
])) : (l(), o("div", Is, [
|
|
1938
|
+
s("a", zs, [
|
|
1939
|
+
S(n, {
|
|
1954
1940
|
id: t.logo,
|
|
1955
1941
|
path: t.logopath,
|
|
1956
1942
|
desc: t.logotext,
|
|
@@ -1958,18 +1944,18 @@ function pa(e, n, t, c, h, a) {
|
|
|
1958
1944
|
}, null, 8, ["id", "path", "desc"])
|
|
1959
1945
|
])
|
|
1960
1946
|
])),
|
|
1961
|
-
|
|
1947
|
+
Vs
|
|
1962
1948
|
])
|
|
1963
1949
|
])
|
|
1964
1950
|
]),
|
|
1965
|
-
s("div",
|
|
1966
|
-
s("div",
|
|
1967
|
-
s("div",
|
|
1968
|
-
a.hasLogoSlot ? (
|
|
1969
|
-
|
|
1970
|
-
])) : (
|
|
1971
|
-
s("a",
|
|
1972
|
-
|
|
1951
|
+
s("div", Os, [
|
|
1952
|
+
s("div", Fs, [
|
|
1953
|
+
s("div", js, [
|
|
1954
|
+
a.hasLogoSlot ? (l(), o("div", Ws, [
|
|
1955
|
+
v(e.$slots, "logo")
|
|
1956
|
+
])) : (l(), o("div", Ks, [
|
|
1957
|
+
s("a", Us, [
|
|
1958
|
+
S(n, {
|
|
1973
1959
|
id: t.logo,
|
|
1974
1960
|
path: t.logopath,
|
|
1975
1961
|
desc: t.logotext,
|
|
@@ -1977,43 +1963,42 @@ function pa(e, n, t, c, h, a) {
|
|
|
1977
1963
|
}, null, 8, ["id", "path", "desc"])
|
|
1978
1964
|
])
|
|
1979
1965
|
])),
|
|
1980
|
-
a.hasSearchSlot ? (
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
b(e.$slots, "default")
|
|
1966
|
+
a.hasSearchSlot ? (l(), o("div", Gs, Rs)) : p("", !0),
|
|
1967
|
+
Qs,
|
|
1968
|
+
s("div", Ys, [
|
|
1969
|
+
v(e.$slots, "default")
|
|
1985
1970
|
]),
|
|
1986
|
-
a.hasAccountSlot ? (
|
|
1987
|
-
t.btnlink ? (
|
|
1971
|
+
a.hasAccountSlot ? (l(), o("div", Es, Xs)) : p("", !0),
|
|
1972
|
+
t.btnlink ? (l(), o("div", ea, [
|
|
1988
1973
|
s("a", {
|
|
1989
1974
|
href: t.btnlink,
|
|
1990
1975
|
class: "btn me-0",
|
|
1991
1976
|
innerHTML: t.btntext
|
|
1992
1977
|
}, null, 8, ta)
|
|
1993
|
-
])) :
|
|
1978
|
+
])) : p("", !0)
|
|
1994
1979
|
])
|
|
1995
1980
|
]),
|
|
1996
|
-
a.hasSecondarySlot ? (
|
|
1981
|
+
a.hasSecondarySlot ? (l(), o("div", sa, [
|
|
1997
1982
|
s("div", aa, [
|
|
1998
|
-
|
|
1983
|
+
v(e.$slots, "secondary")
|
|
1999
1984
|
])
|
|
2000
|
-
])) :
|
|
2001
|
-
a.hasSearchSlot ? (
|
|
1985
|
+
])) : p("", !0),
|
|
1986
|
+
a.hasSearchSlot ? (l(), o("div", ia, [
|
|
2002
1987
|
s("div", na, [
|
|
2003
1988
|
s("div", ra, [
|
|
2004
|
-
|
|
1989
|
+
v(e.$slots, "search")
|
|
2005
1990
|
])
|
|
2006
1991
|
])
|
|
2007
|
-
])) :
|
|
1992
|
+
])) : p("", !0)
|
|
2008
1993
|
]),
|
|
2009
|
-
a.hasAccountSlot ? (
|
|
2010
|
-
s("div",
|
|
1994
|
+
a.hasAccountSlot ? (l(), o("div", la, [
|
|
1995
|
+
s("div", oa, [
|
|
2011
1996
|
s("div", ca, [
|
|
2012
|
-
a.hasLogoSlot ? (
|
|
2013
|
-
|
|
2014
|
-
])) : (
|
|
1997
|
+
a.hasLogoSlot ? (l(), o("div", da, [
|
|
1998
|
+
v(e.$slots, "logo")
|
|
1999
|
+
])) : (l(), o("div", ua, [
|
|
2015
2000
|
s("a", fa, [
|
|
2016
|
-
|
|
2001
|
+
S(n, {
|
|
2017
2002
|
id: t.logo,
|
|
2018
2003
|
path: t.logopath,
|
|
2019
2004
|
desc: t.logotext,
|
|
@@ -2025,80 +2010,18 @@ function pa(e, n, t, c, h, a) {
|
|
|
2025
2010
|
])
|
|
2026
2011
|
]),
|
|
2027
2012
|
s("div", ma, [
|
|
2028
|
-
|
|
2013
|
+
v(e.$slots, "account")
|
|
2029
2014
|
])
|
|
2030
|
-
])) :
|
|
2015
|
+
])) : p("", !0),
|
|
2031
2016
|
_a
|
|
2032
2017
|
], 2);
|
|
2033
2018
|
}
|
|
2034
|
-
const
|
|
2035
|
-
const
|
|
2036
|
-
function([c]) {
|
|
2037
|
-
c.target.classList.toggle("in-view", c.intersectionRatio > 0), document.getElementById("showDrawer").checked = !1;
|
|
2038
|
-
},
|
|
2039
|
-
{ threshold: [1] }
|
|
2040
|
-
), t = document.getElementById("drawer-end");
|
|
2041
|
-
n.observe(t);
|
|
2042
|
-
};
|
|
2043
|
-
const ba = {
|
|
2044
|
-
name: "Header",
|
|
2045
|
-
props: {
|
|
2046
|
-
label: {
|
|
2047
|
-
type: String,
|
|
2048
|
-
required: !0
|
|
2049
|
-
}
|
|
2050
|
-
},
|
|
2051
|
-
mounted() {
|
|
2052
|
-
this.$nextTick(function() {
|
|
2053
|
-
let e = this.$refs.wrapper;
|
|
2054
|
-
const n = document.createDocumentFragment();
|
|
2055
|
-
Array.from(e.childNodes).forEach((t) => n.appendChild(t)), e.parentNode.insertBefore(n, e), e.parentNode.removeChild(e), this.$nextTick(function() {
|
|
2056
|
-
ya(this.$refs.drawer);
|
|
2057
|
-
});
|
|
2058
|
-
});
|
|
2059
|
-
}
|
|
2060
|
-
}, va = { ref: "wrapper" }, ga = /* @__PURE__ */ s("input", {
|
|
2061
|
-
type: "checkbox",
|
|
2062
|
-
name: "showDrawer",
|
|
2063
|
-
id: "showDrawer",
|
|
2064
|
-
class: "d-none"
|
|
2065
|
-
}, null, -1), wa = { class: "drawer__btn pb-0" }, ka = { class: "container text-end pb-0" }, Sa = {
|
|
2066
|
-
for: "showDrawer",
|
|
2067
|
-
class: "btn btn-secondary me-0"
|
|
2068
|
-
}, Aa = {
|
|
2069
|
-
class: "drawer",
|
|
2070
|
-
id: "drawer",
|
|
2071
|
-
ref: "drawer"
|
|
2072
|
-
}, $a = /* @__PURE__ */ s("div", { class: "container text-end pb-0" }, [
|
|
2073
|
-
/* @__PURE__ */ s("label", {
|
|
2074
|
-
for: "showDrawer",
|
|
2075
|
-
class: "btn btn-tertiary mb-0 me-0 py-1 px-2"
|
|
2076
|
-
}, [
|
|
2077
|
-
/* @__PURE__ */ s("span", { class: "visually-hidden" }, "Close"),
|
|
2078
|
-
/* @__PURE__ */ j("\u2715")
|
|
2079
|
-
])
|
|
2080
|
-
], -1), xa = /* @__PURE__ */ s("hr", { id: "drawer-end" }, null, -1);
|
|
2081
|
-
function qa(e, n, t, c, h, a) {
|
|
2082
|
-
return o(), l("div", va, [
|
|
2083
|
-
ga,
|
|
2084
|
-
s("div", wa, [
|
|
2085
|
-
s("div", ka, [
|
|
2086
|
-
s("label", Sa, w(t.label), 1)
|
|
2087
|
-
])
|
|
2088
|
-
]),
|
|
2089
|
-
s("div", Aa, [
|
|
2090
|
-
$a,
|
|
2091
|
-
b(e.$slots, "default")
|
|
2092
|
-
], 512),
|
|
2093
|
-
xa
|
|
2094
|
-
], 512);
|
|
2095
|
-
}
|
|
2096
|
-
const Ci = /* @__PURE__ */ g(ba, [["render", qa], ["__file", "/Users/james/workspace/work/component-library/src/components/Drawer/Drawer.vue"]]), La = (e) => {
|
|
2097
|
-
const n = e.querySelectorAll(".modal__outer a, .modal__outer button"), t = n[0], c = n[n.length - 1], h = e.getAttribute("id"), a = function() {
|
|
2019
|
+
const vi = /* @__PURE__ */ g(Ts, [["render", ya]]), pa = (e) => {
|
|
2020
|
+
const r = e.querySelectorAll(".modal__outer a, .modal__outer button"), t = r[0], u = r[r.length - 1], h = e.getAttribute("id"), a = function() {
|
|
2098
2021
|
document.querySelector('[href="' + window.location.hash + '"]').focus(), window.location.hash = "close", history.replaceState("", document.title, window.location.pathname + window.location.search), typeof window.player < "u" && typeof window.player.pauseVideo == "function" && window.player.pauseVideo();
|
|
2099
2022
|
};
|
|
2100
2023
|
e.addEventListener("keydown", function(i) {
|
|
2101
|
-
i.key === "Tab" && i.shiftKey && document.activeElement == t ? (i.preventDefault(),
|
|
2024
|
+
i.key === "Tab" && i.shiftKey && document.activeElement == t ? (i.preventDefault(), u.focus()) : i.key === "Tab" && !i.shiftKey && document.activeElement == u && (i.preventDefault(), t.focus());
|
|
2102
2025
|
}), document.addEventListener("keydown", function(i) {
|
|
2103
2026
|
i.key === "Escape" && document.querySelector(".modal:target") && a();
|
|
2104
2027
|
}), e.addEventListener("click", function(i) {
|
|
@@ -2114,16 +2037,16 @@ const Ci = /* @__PURE__ */ g(ba, [["render", qa], ["__file", "/Users/james/works
|
|
|
2114
2037
|
break;
|
|
2115
2038
|
}
|
|
2116
2039
|
});
|
|
2117
|
-
function
|
|
2040
|
+
function n() {
|
|
2118
2041
|
if (location.hash === "#" + h) {
|
|
2119
2042
|
console.log("Modal is now open");
|
|
2120
2043
|
const i = document.querySelector(".modal:target .modal__inner > .youtube-embed:first-child:last-child a");
|
|
2121
2044
|
console.log(i), i && i.click();
|
|
2122
2045
|
}
|
|
2123
2046
|
}
|
|
2124
|
-
window.onhashchange =
|
|
2047
|
+
window.onhashchange = n;
|
|
2125
2048
|
};
|
|
2126
|
-
const
|
|
2049
|
+
const ba = {
|
|
2127
2050
|
name: "Modal",
|
|
2128
2051
|
props: {
|
|
2129
2052
|
id: {
|
|
@@ -2138,20 +2061,20 @@ const Ta = {
|
|
|
2138
2061
|
},
|
|
2139
2062
|
mounted() {
|
|
2140
2063
|
this.$nextTick(function() {
|
|
2141
|
-
|
|
2064
|
+
pa(this.$refs.modal);
|
|
2142
2065
|
});
|
|
2143
2066
|
}
|
|
2144
|
-
},
|
|
2145
|
-
|
|
2146
|
-
],
|
|
2067
|
+
}, va = ["id"], ga = ["href"], wa = /* @__PURE__ */ s("span", { class: "visually-hidden" }, "Close", -1), ka = [
|
|
2068
|
+
wa
|
|
2069
|
+
], Aa = { class: "modal__outer" }, Sa = ["href"], $a = /* @__PURE__ */ s("span", { class: "visually-hidden" }, "Close", -1), xa = { class: "modal__inner" }, qa = /* @__PURE__ */ s("button", {
|
|
2147
2070
|
class: "modal__dock--left btn btn-prev",
|
|
2148
2071
|
tabindex: "-1"
|
|
2149
|
-
}, "Left", -1),
|
|
2072
|
+
}, "Left", -1), La = /* @__PURE__ */ s("button", {
|
|
2150
2073
|
class: "modal__dock--right btn btn-next",
|
|
2151
2074
|
tabindex: "-1"
|
|
2152
2075
|
}, "Right", -1);
|
|
2153
|
-
function
|
|
2154
|
-
return
|
|
2076
|
+
function Ta(e, r, t, u, h, a) {
|
|
2077
|
+
return l(), o("div", {
|
|
2155
2078
|
class: "modal",
|
|
2156
2079
|
id: t.id,
|
|
2157
2080
|
role: "dialog",
|
|
@@ -2161,25 +2084,25 @@ function Fa(e, n, t, c, h, a) {
|
|
|
2161
2084
|
s("a", {
|
|
2162
2085
|
href: `#${t.returnid ? t.returnid : ""}`,
|
|
2163
2086
|
tabindex: "-1"
|
|
2164
|
-
},
|
|
2165
|
-
s("div",
|
|
2087
|
+
}, ka, 8, ga),
|
|
2088
|
+
s("div", Aa, [
|
|
2166
2089
|
s("a", {
|
|
2167
2090
|
href: `#${t.returnid ? t.returnid : ""}`,
|
|
2168
2091
|
class: "btn btn-tertiary py-1 px-2"
|
|
2169
2092
|
}, [
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
], 8,
|
|
2173
|
-
s("div",
|
|
2174
|
-
|
|
2093
|
+
$a,
|
|
2094
|
+
F("✕")
|
|
2095
|
+
], 8, Sa),
|
|
2096
|
+
s("div", xa, [
|
|
2097
|
+
v(e.$slots, "default")
|
|
2175
2098
|
])
|
|
2176
2099
|
]),
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
], 8,
|
|
2100
|
+
qa,
|
|
2101
|
+
La
|
|
2102
|
+
], 8, va);
|
|
2180
2103
|
}
|
|
2181
|
-
const
|
|
2182
|
-
const
|
|
2104
|
+
const gi = /* @__PURE__ */ g(ba, [["render", Ta]]);
|
|
2105
|
+
const Ma = {
|
|
2183
2106
|
name: "Stepper",
|
|
2184
2107
|
props: {
|
|
2185
2108
|
label: {
|
|
@@ -2192,27 +2115,25 @@ const za = {
|
|
|
2192
2115
|
default: "Complete"
|
|
2193
2116
|
}
|
|
2194
2117
|
}
|
|
2195
|
-
},
|
|
2118
|
+
}, Ha = { class: "container" }, Ca = ["aria-label"], Na = {
|
|
2196
2119
|
key: 0,
|
|
2197
2120
|
class: "h6 stepper__start"
|
|
2198
|
-
},
|
|
2199
|
-
function
|
|
2200
|
-
return
|
|
2121
|
+
}, Ba = { class: "list-unstyled" }, Pa = { class: "h6 stepper__end" };
|
|
2122
|
+
function Da(e, r, t, u, h, a) {
|
|
2123
|
+
return l(), o("div", Ha, [
|
|
2201
2124
|
s("nav", {
|
|
2202
2125
|
class: "stepper",
|
|
2203
2126
|
"aria-label": t.label ? t.label : "Progress"
|
|
2204
2127
|
}, [
|
|
2205
|
-
t.label ? (
|
|
2206
|
-
s("ol",
|
|
2207
|
-
|
|
2208
|
-
m(" Use for titles etc ")
|
|
2209
|
-
])
|
|
2128
|
+
t.label ? (l(), o("span", Na, k(t.label), 1)) : p("", !0),
|
|
2129
|
+
s("ol", Ba, [
|
|
2130
|
+
v(e.$slots, "default")
|
|
2210
2131
|
]),
|
|
2211
|
-
s("span",
|
|
2212
|
-
], 8,
|
|
2132
|
+
s("span", Pa, k(t.endlabel), 1)
|
|
2133
|
+
], 8, Ca)
|
|
2213
2134
|
]);
|
|
2214
2135
|
}
|
|
2215
|
-
const
|
|
2136
|
+
const wi = /* @__PURE__ */ g(Ma, [["render", Da]]), Ia = {
|
|
2216
2137
|
name: "Stepper",
|
|
2217
2138
|
props: {
|
|
2218
2139
|
url: {
|
|
@@ -2228,26 +2149,26 @@ const Ni = /* @__PURE__ */ g(za, [["render", Ea], ["__file", "/Users/james/works
|
|
|
2228
2149
|
required: !1
|
|
2229
2150
|
}
|
|
2230
2151
|
}
|
|
2231
|
-
},
|
|
2152
|
+
}, za = ["href", "aria-current"], Va = {
|
|
2232
2153
|
key: 0,
|
|
2233
2154
|
class: "visually-hidden"
|
|
2234
2155
|
};
|
|
2235
|
-
function
|
|
2236
|
-
return
|
|
2156
|
+
function Oa(e, r, t, u, h, a) {
|
|
2157
|
+
return l(), o("li", null, [
|
|
2237
2158
|
s("a", {
|
|
2238
2159
|
href: t.url,
|
|
2239
|
-
class:
|
|
2160
|
+
class: b(`${t.status ? "bg-" + t.status : ""}${typeof t.current < "u" ? "current" : ""}`),
|
|
2240
2161
|
"aria-current": typeof t.current < "u"
|
|
2241
2162
|
}, [
|
|
2242
2163
|
s("span", null, [
|
|
2243
|
-
|
|
2164
|
+
v(e.$slots, "default")
|
|
2244
2165
|
]),
|
|
2245
|
-
t.status ? (
|
|
2246
|
-
], 10,
|
|
2166
|
+
t.status ? (l(), o("em", Va, " - status: " + k(t.status), 1)) : p("", !0)
|
|
2167
|
+
], 10, za)
|
|
2247
2168
|
]);
|
|
2248
2169
|
}
|
|
2249
|
-
const
|
|
2250
|
-
const
|
|
2170
|
+
const ki = /* @__PURE__ */ g(Ia, [["render", Oa]]);
|
|
2171
|
+
const Fa = {
|
|
2251
2172
|
name: "Tabs",
|
|
2252
2173
|
data() {
|
|
2253
2174
|
return {
|
|
@@ -2258,12 +2179,12 @@ const Ja = {
|
|
|
2258
2179
|
tabLinks() {
|
|
2259
2180
|
return () => {
|
|
2260
2181
|
const e = [];
|
|
2261
|
-
let
|
|
2262
|
-
for (const [t,
|
|
2263
|
-
if (
|
|
2264
|
-
let h =
|
|
2182
|
+
let r = 1;
|
|
2183
|
+
for (const [t, u] of Object.entries(this.$slots.default()))
|
|
2184
|
+
if (u.props && u.props.title) {
|
|
2185
|
+
let h = u.props.title, a = {
|
|
2265
2186
|
name: this.tabsID,
|
|
2266
|
-
id: this.tabsID + "_tab" +
|
|
2187
|
+
id: this.tabsID + "_tab" + r++,
|
|
2267
2188
|
tabTitle: h
|
|
2268
2189
|
};
|
|
2269
2190
|
e.push(a);
|
|
@@ -2274,40 +2195,40 @@ const Ja = {
|
|
|
2274
2195
|
},
|
|
2275
2196
|
methods: {
|
|
2276
2197
|
openTab: function(e) {
|
|
2277
|
-
let
|
|
2278
|
-
for (const [t,
|
|
2279
|
-
|
|
2198
|
+
let r = 0;
|
|
2199
|
+
for (const [t, u] of Object.entries(this.$slots.default()))
|
|
2200
|
+
u.props && u.props.title && (r == e && (console.log(u), u.type.data().show = !0), r++);
|
|
2280
2201
|
}
|
|
2281
2202
|
}
|
|
2282
|
-
},
|
|
2203
|
+
}, ja = {
|
|
2283
2204
|
class: "container tabs__container",
|
|
2284
2205
|
ref: "wrapper"
|
|
2285
|
-
},
|
|
2286
|
-
function
|
|
2287
|
-
return
|
|
2288
|
-
(
|
|
2206
|
+
}, Wa = ["data-key", "name", "id", "checked"], Ka = { class: "tabs__links" }, Ua = ["for", "onClick"], Ga = { class: "tabs" };
|
|
2207
|
+
function Za(e, r, t, u, h, a) {
|
|
2208
|
+
return l(), o("div", ja, [
|
|
2209
|
+
(l(!0), o($, null, x(a.tabLinks(), (n, i) => (l(), o("input", {
|
|
2289
2210
|
type: "radio",
|
|
2290
2211
|
class: "tab__input",
|
|
2291
2212
|
key: i,
|
|
2292
2213
|
"data-key": i,
|
|
2293
|
-
name:
|
|
2294
|
-
id:
|
|
2214
|
+
name: n.name,
|
|
2215
|
+
id: n.id,
|
|
2295
2216
|
checked: i == 0
|
|
2296
|
-
}, null, 8,
|
|
2297
|
-
s("div",
|
|
2298
|
-
(
|
|
2217
|
+
}, null, 8, Wa))), 128)),
|
|
2218
|
+
s("div", Ka, [
|
|
2219
|
+
(l(!0), o($, null, x(a.tabLinks(), (n, i) => (l(), o("label", {
|
|
2299
2220
|
key: i,
|
|
2300
|
-
for:
|
|
2221
|
+
for: n.id,
|
|
2301
2222
|
class: "link",
|
|
2302
2223
|
onClick: (f) => a.openTab(i)
|
|
2303
|
-
},
|
|
2224
|
+
}, k(n.tabTitle), 9, Ua))), 128))
|
|
2304
2225
|
]),
|
|
2305
|
-
s("div",
|
|
2306
|
-
|
|
2226
|
+
s("div", Ga, [
|
|
2227
|
+
v(e.$slots, "default")
|
|
2307
2228
|
])
|
|
2308
2229
|
], 512);
|
|
2309
2230
|
}
|
|
2310
|
-
const
|
|
2231
|
+
const Ai = /* @__PURE__ */ g(Fa, [["render", Za]]), Ra = {
|
|
2311
2232
|
name: "Tab",
|
|
2312
2233
|
props: {
|
|
2313
2234
|
title: {
|
|
@@ -2325,24 +2246,24 @@ const Bi = /* @__PURE__ */ g(Ja, [["render", ii], ["__file", "/Users/james/works
|
|
|
2325
2246
|
};
|
|
2326
2247
|
},
|
|
2327
2248
|
watch: {
|
|
2328
|
-
show(e,
|
|
2249
|
+
show(e, r) {
|
|
2329
2250
|
console.log(e);
|
|
2330
2251
|
}
|
|
2331
2252
|
}
|
|
2332
|
-
},
|
|
2253
|
+
}, Qa = {
|
|
2333
2254
|
key: 0,
|
|
2334
2255
|
class: "tab"
|
|
2335
2256
|
};
|
|
2336
|
-
function
|
|
2337
|
-
return h.show ? (
|
|
2338
|
-
|
|
2339
|
-
])) :
|
|
2257
|
+
function Ya(e, r, t, u, h, a) {
|
|
2258
|
+
return h.show ? (l(), o("div", Qa, [
|
|
2259
|
+
v(e.$slots, "default")
|
|
2260
|
+
])) : p("", !0);
|
|
2340
2261
|
}
|
|
2341
|
-
const
|
|
2342
|
-
function
|
|
2262
|
+
const Si = /* @__PURE__ */ g(Ra, [["render", Ya]]);
|
|
2263
|
+
function Ea(e) {
|
|
2343
2264
|
if (e.addEventListener("click", function(t) {
|
|
2344
|
-
for (var
|
|
2345
|
-
if (
|
|
2265
|
+
for (var u = t.target; u && u != this; u = u.parentNode)
|
|
2266
|
+
if (u.matches(".btn-close")) {
|
|
2346
2267
|
t.preventDefault(), e.classList.remove("show"), setTimeout(function() {
|
|
2347
2268
|
e.remove();
|
|
2348
2269
|
}, 300);
|
|
@@ -2361,10 +2282,10 @@ function li(e) {
|
|
|
2361
2282
|
let t = document.createElement("div");
|
|
2362
2283
|
t.classList.add("alert__holder"), document.querySelector("main") ? document.querySelector("main").appendChild(t) : document.body.appendChild(t);
|
|
2363
2284
|
}
|
|
2364
|
-
let
|
|
2365
|
-
e.classList.contains("alert--fixed") && !e.parentNode.classList.contains("alert__wrapper") &&
|
|
2285
|
+
let r = document.querySelector(".alert__holder");
|
|
2286
|
+
e.classList.contains("alert--fixed") && !e.parentNode.classList.contains("alert__wrapper") && r.appendChild(e);
|
|
2366
2287
|
}
|
|
2367
|
-
const
|
|
2288
|
+
const Ja = {
|
|
2368
2289
|
name: "Alert",
|
|
2369
2290
|
props: {
|
|
2370
2291
|
dismissible: {
|
|
@@ -2383,55 +2304,56 @@ const ci = {
|
|
|
2383
2304
|
}
|
|
2384
2305
|
},
|
|
2385
2306
|
mounted() {
|
|
2386
|
-
|
|
2307
|
+
Ea(this.$refs.wrapper);
|
|
2387
2308
|
}
|
|
2388
|
-
},
|
|
2309
|
+
}, Xa = ["data-timeout"], ei = {
|
|
2389
2310
|
key: 0,
|
|
2390
2311
|
type: "button",
|
|
2391
2312
|
class: "btn-close",
|
|
2392
2313
|
"data-bs-dismiss": "alert",
|
|
2393
2314
|
"aria-label": "Close"
|
|
2394
2315
|
};
|
|
2395
|
-
function
|
|
2396
|
-
return
|
|
2397
|
-
class:
|
|
2316
|
+
function ti(e, r, t, u, h, a) {
|
|
2317
|
+
return l(), o("div", {
|
|
2318
|
+
class: b(`container alert pb-0 ${t.dismissible ? "alert--dismissible fade show" : ""}`),
|
|
2398
2319
|
ref: "wrapper",
|
|
2399
2320
|
"data-timeout": t.timeout,
|
|
2400
2321
|
style: ee(t.timeout ? `--animation-length: ${t.timeout}ms` : "")
|
|
2401
2322
|
}, [
|
|
2402
2323
|
s("div", {
|
|
2403
|
-
class:
|
|
2324
|
+
class: b(`alert__inner bg-${t.colour}`),
|
|
2404
2325
|
role: "alert"
|
|
2405
2326
|
}, [
|
|
2406
|
-
t.dismissible ? (
|
|
2407
|
-
|
|
2327
|
+
t.dismissible ? (l(), o("button", ei)) : p("", !0),
|
|
2328
|
+
v(e.$slots, "default")
|
|
2408
2329
|
], 2)
|
|
2409
|
-
], 14,
|
|
2330
|
+
], 14, Xa);
|
|
2410
2331
|
}
|
|
2411
|
-
const
|
|
2412
|
-
let
|
|
2413
|
-
|
|
2414
|
-
const
|
|
2332
|
+
const $i = /* @__PURE__ */ g(Ja, [["render", ti]]);
|
|
2333
|
+
let Y = R.props;
|
|
2334
|
+
Y.fields.required = !1;
|
|
2335
|
+
const si = {
|
|
2415
2336
|
components: {
|
|
2416
2337
|
Table: R,
|
|
2417
|
-
Input:
|
|
2338
|
+
Input: D
|
|
2418
2339
|
},
|
|
2419
2340
|
data() {
|
|
2420
2341
|
return {
|
|
2421
2342
|
itemsData: [...this.items]
|
|
2343
|
+
// Redefine data to avoid bleeding of data to other components
|
|
2422
2344
|
};
|
|
2423
2345
|
},
|
|
2424
2346
|
methods: {
|
|
2425
2347
|
submitForm: function(e) {
|
|
2426
2348
|
console.log(this);
|
|
2427
|
-
const
|
|
2428
|
-
let t = new Date();
|
|
2429
|
-
const
|
|
2349
|
+
const r = new FormData(e.target);
|
|
2350
|
+
let t = /* @__PURE__ */ new Date();
|
|
2351
|
+
const u = t.getFullYear();
|
|
2430
2352
|
let h = t.getMonth() + 1, a = t.getDate();
|
|
2431
|
-
a < 10 && (a = "0" + a), h < 10 && (h = "0" + h), t = a + "/" + h + "/" +
|
|
2353
|
+
a < 10 && (a = "0" + a), h < 10 && (h = "0" + h), t = a + "/" + h + "/" + u, this.itemsData.unshift({
|
|
2432
2354
|
date_added: t,
|
|
2433
|
-
user:
|
|
2434
|
-
note:
|
|
2355
|
+
user: r.get("user"),
|
|
2356
|
+
note: r.get("addNote")
|
|
2435
2357
|
}), this.$emit("formSubmitted", e);
|
|
2436
2358
|
}
|
|
2437
2359
|
},
|
|
@@ -2441,7 +2363,7 @@ const hi = {
|
|
|
2441
2363
|
type: String,
|
|
2442
2364
|
required: !0
|
|
2443
2365
|
},
|
|
2444
|
-
...
|
|
2366
|
+
...Y,
|
|
2445
2367
|
title: {
|
|
2446
2368
|
type: String,
|
|
2447
2369
|
required: !1
|
|
@@ -2456,63 +2378,62 @@ const hi = {
|
|
|
2456
2378
|
required: !1
|
|
2457
2379
|
}
|
|
2458
2380
|
}
|
|
2459
|
-
},
|
|
2460
|
-
function
|
|
2461
|
-
const
|
|
2462
|
-
return
|
|
2463
|
-
t.title ? (
|
|
2381
|
+
}, ai = { class: "container note-feed mb-2" }, ii = ["innerHTML"], ni = ["action", "method"], ri = ["value"], li = /* @__PURE__ */ s("button", { class: "btn btn-tertiary" }, "Submit note", -1);
|
|
2382
|
+
function oi(e, r, t, u, h, a) {
|
|
2383
|
+
const n = H("Table"), i = H("Input");
|
|
2384
|
+
return l(), o("div", ai, [
|
|
2385
|
+
t.title ? (l(), o("span", {
|
|
2464
2386
|
key: 0,
|
|
2465
2387
|
class: "h3",
|
|
2466
2388
|
innerHTML: t.title
|
|
2467
|
-
}, null, 8,
|
|
2468
|
-
|
|
2389
|
+
}, null, 8, ii)) : p("", !0),
|
|
2390
|
+
S(n, T({
|
|
2469
2391
|
fields: [{ key: "date_added" }, { key: "user" }, { key: "note" }],
|
|
2470
2392
|
items: h.itemsData
|
|
2471
2393
|
}, e.$props, { class: "mb-0" }), null, 16, ["items"]),
|
|
2472
2394
|
s("form", {
|
|
2473
2395
|
action: t.action,
|
|
2474
2396
|
method: t.method,
|
|
2475
|
-
onSubmit:
|
|
2397
|
+
onSubmit: r[0] || (r[0] = te((f) => a.submitForm(...arguments), ["prevent"]))
|
|
2476
2398
|
}, [
|
|
2477
2399
|
s("input", {
|
|
2478
2400
|
type: "hidden",
|
|
2479
2401
|
value: t.user,
|
|
2480
2402
|
name: "user"
|
|
2481
|
-
}, null, 8,
|
|
2482
|
-
|
|
2403
|
+
}, null, 8, ri),
|
|
2404
|
+
S(i, {
|
|
2483
2405
|
id: "addNote",
|
|
2484
2406
|
type: "textarea",
|
|
2485
2407
|
label: "Add note",
|
|
2486
2408
|
required: "",
|
|
2487
2409
|
class: "mw-100"
|
|
2488
2410
|
}),
|
|
2489
|
-
|
|
2490
|
-
], 40,
|
|
2411
|
+
li
|
|
2412
|
+
], 40, ni)
|
|
2491
2413
|
]);
|
|
2492
2414
|
}
|
|
2493
|
-
const
|
|
2415
|
+
const xi = /* @__PURE__ */ g(si, [["render", oi]]);
|
|
2494
2416
|
export {
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
qi as Header,
|
|
2417
|
+
fi as Accordion,
|
|
2418
|
+
hi as AccordionItem,
|
|
2419
|
+
$i as Alert,
|
|
2420
|
+
mi as Banner,
|
|
2421
|
+
Q as Card,
|
|
2422
|
+
Ht as CardDeck,
|
|
2423
|
+
_i as Carousel,
|
|
2424
|
+
ui as FileUploads,
|
|
2425
|
+
yi as Header,
|
|
2505
2426
|
re as Icon,
|
|
2506
|
-
|
|
2427
|
+
D as Input,
|
|
2507
2428
|
ue as Logo,
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2429
|
+
gi as Modal,
|
|
2430
|
+
vi as Nav,
|
|
2431
|
+
xi as NoteFeed,
|
|
2432
|
+
bi as PropertySearchbar,
|
|
2433
|
+
ki as Step,
|
|
2434
|
+
wi as Stepper,
|
|
2435
|
+
Si as Tab,
|
|
2515
2436
|
R as Table,
|
|
2516
|
-
|
|
2517
|
-
|
|
2437
|
+
Ai as Tabs,
|
|
2438
|
+
pi as Testimonial
|
|
2518
2439
|
};
|