@iamproperty/components 3.2.0 → 3.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/css/core.min.css.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 +405 -421
- package/dist/components.umd.js +8 -8
- package/package.json +48 -35
- 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/components/Drawer/Drawer.vue +1 -1
- 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 -4
- 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/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/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 o, createElementBlock as l, createElementVNode as s, toDisplayString as w, normalizeClass as v, createCommentVNode as
|
|
1
|
+
import { openBlock as o, createElementBlock as l, createElementVNode as s, toDisplayString as w, normalizeClass as v, createCommentVNode as p, Fragment as S, renderList as x, renderSlot as b, withDirectives as N, mergeProps as T, vModelDynamic as F, vModelText as J, vModelSelect as X, resolveComponent as C, createVNode as A, createTextVNode as P, normalizeStyle as ee, withModifiers as te } from "vue";
|
|
2
2
|
const g = (e, n) => {
|
|
3
3
|
const t = e.__vccOpts || e;
|
|
4
|
-
for (const [
|
|
5
|
-
t[
|
|
4
|
+
for (const [d, h] of n)
|
|
5
|
+
t[d] = h;
|
|
6
6
|
return t;
|
|
7
7
|
}, se = {
|
|
8
8
|
name: "Icon",
|
|
@@ -19,7 +19,7 @@ const g = (e, n) => {
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
}, ae = { class: "icon" }, ie = ["xlink:href"];
|
|
22
|
-
function ne(e, n, t,
|
|
22
|
+
function ne(e, n, t, d, h, a) {
|
|
23
23
|
return o(), l("svg", ae, [
|
|
24
24
|
s("title", null, w(t.id), 1),
|
|
25
25
|
s("use", {
|
|
@@ -27,7 +27,7 @@ function ne(e, n, t, c, h, a) {
|
|
|
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]]), oe = {
|
|
31
31
|
name: "Logo",
|
|
32
32
|
props: {
|
|
33
33
|
id: {
|
|
@@ -52,8 +52,8 @@ const re = /* @__PURE__ */ g(se, [["render", ne], ["__file", "/Users/james/works
|
|
|
52
52
|
return "brand brand--" + this.id;
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
}, le = ["xlink:href"],
|
|
56
|
-
function
|
|
55
|
+
}, le = ["xlink:href"], de = ["innerHTML"];
|
|
56
|
+
function ce(e, n, t, d, h, a) {
|
|
57
57
|
return o(), l("div", {
|
|
58
58
|
class: v(a.className)
|
|
59
59
|
}, [
|
|
@@ -66,181 +66,182 @@ function de(e, n, t, c, h, a) {
|
|
|
66
66
|
t.desc ? (o(), l("span", {
|
|
67
67
|
key: 0,
|
|
68
68
|
innerHTML: t.desc
|
|
69
|
-
}, null, 8,
|
|
69
|
+
}, null, 8, de)) : p("", !0)
|
|
70
70
|
], 2);
|
|
71
71
|
}
|
|
72
|
-
const ue = /* @__PURE__ */ g(oe, [["render",
|
|
72
|
+
const ue = /* @__PURE__ */ g(oe, [["render", ce]]), 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) &&
|
|
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));
|
|
76
77
|
}, _e = (e, n) => String(e).padStart(n, "0");
|
|
77
|
-
function
|
|
78
|
+
function Z(e) {
|
|
78
79
|
if (typeof e != "object")
|
|
79
80
|
return !1;
|
|
80
|
-
const n = e.querySelector("thead"), t = e.querySelector("tbody"),
|
|
81
|
+
const n = e.querySelector("thead"), t = e.querySelector("tbody"), d = t.cloneNode(!0), h = new Event("sorted"), a = new Event("filtered"), r = 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 $ = function(m, u) {
|
|
85
|
+
let c = [];
|
|
85
86
|
Array.from(t.querySelectorAll("tr")).forEach((y, L) => {
|
|
86
|
-
let k = y.querySelector('td[data-label="' +
|
|
87
|
+
let k = y.querySelector('td[data-label="' + m + '"], th[data-label="' + m + '"]').textContent;
|
|
87
88
|
me(k) && (k = _e(k, 10));
|
|
88
|
-
const
|
|
89
|
+
const O = {
|
|
89
90
|
index: k,
|
|
90
91
|
row: y
|
|
91
92
|
};
|
|
92
|
-
|
|
93
|
-
}),
|
|
94
|
-
let
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
}), t.innerHTML =
|
|
93
|
+
c.push(O);
|
|
94
|
+
}), c.sort((y, L) => y.index > L.index ? 1 : -1), u == "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 u =
|
|
100
|
+
if (e.addEventListener("click", function(m) {
|
|
101
|
+
for (var u = m.target; u && u != this; u = u.parentNode)
|
|
101
102
|
if (u.matches("[data-sortable]")) {
|
|
102
|
-
let
|
|
103
|
-
Array.from(e.querySelectorAll("[data-sortable]")).forEach((
|
|
104
|
-
|
|
105
|
-
}), u.setAttribute("aria-sort",
|
|
106
|
-
|
|
103
|
+
let c = u.getAttribute("aria-sort") == "ascending" ? "descending" : "ascending";
|
|
104
|
+
Array.from(e.querySelectorAll("[data-sortable]")).forEach((_, y) => {
|
|
105
|
+
_.setAttribute("aria-sort", "none");
|
|
106
|
+
}), u.setAttribute("aria-sort", c), e.setAttribute("data-sort", c), e.setAttribute("data-sortBy", u.textContent), $(u.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((u,
|
|
113
|
-
u.textContent == e.getAttribute("data-sortBy") && (u.setAttribute("aria-sort",
|
|
112
|
+
let m = e.getAttribute("data-sort") == "ascending" ? "descending" : "ascending";
|
|
113
|
+
Array.from(e.querySelectorAll("[data-sortable]")).forEach((u, c) => {
|
|
114
|
+
u.textContent == e.getAttribute("data-sortBy") && (u.setAttribute("aria-sort", m), u.click());
|
|
114
115
|
});
|
|
115
116
|
}
|
|
116
|
-
const q = function(
|
|
117
|
+
const q = function(m) {
|
|
117
118
|
const u = document.createElement("div");
|
|
118
119
|
u.classList.add("table__filters"), u.classList.add("row"), u.classList.add("pt-1"), u.classList.add("pb-3");
|
|
119
|
-
const
|
|
120
|
-
let
|
|
121
|
-
|
|
122
|
-
Array.from(e.querySelectorAll('td[data-label="' + k.textContent + '"]')).forEach((
|
|
123
|
-
|
|
120
|
+
const c = Array.from(e.querySelectorAll("th[data-filterable]"));
|
|
121
|
+
let _ = {};
|
|
122
|
+
c.forEach((k, O) => {
|
|
123
|
+
Array.from(e.querySelectorAll('td[data-label="' + k.textContent + '"]')).forEach((j, gi) => {
|
|
124
|
+
_[j.textContent] = j.textContent;
|
|
124
125
|
});
|
|
125
126
|
});
|
|
126
|
-
const y =
|
|
127
|
+
const y = c.length == 1 ? "Filter by " + c[0].textContent : "Filter", L = c.length == 1 ? "d-none" : "d-sm-flex";
|
|
127
128
|
u.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((k) => `<option value="${k}"></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
|
+
${'<span class="pe-3 text-nowrap h5 mb-0">Filter by: </span>' + c.map((k) => `<div class="form-check pe-3 mt-0 mb-0"><input class="form-check-input" type="checkbox" id="${i}_${k.textContent.replace(" ", "_").toLowerCase()}" checked="checked" /><label class="form-check-label text-nowrap" for="${i}_${k.textContent.replace(" ", "_").toLowerCase()}">${k.textContent}</label></div>`).join("")}
|
|
138
139
|
</div>`, e.prepend(u);
|
|
139
|
-
}, M = function(
|
|
140
|
+
}, M = function(m) {
|
|
140
141
|
let u = [];
|
|
141
|
-
Array.from(
|
|
142
|
+
Array.from(d.querySelectorAll("tr")).forEach((_, y) => {
|
|
142
143
|
let L = "";
|
|
143
|
-
if (Array.from(e.querySelectorAll('[type="checkbox"]:checked + label')).forEach((k,
|
|
144
|
-
L +=
|
|
145
|
-
}), L.indexOf(
|
|
146
|
-
const k = { row:
|
|
144
|
+
if (Array.from(e.querySelectorAll('[type="checkbox"]:checked + label')).forEach((k, O) => {
|
|
145
|
+
L += _.querySelector('td[data-label="' + k.textContent + '"]').textContent + " | ";
|
|
146
|
+
}), L.indexOf(m) >= 0) {
|
|
147
|
+
const k = { row: _ };
|
|
147
148
|
u.push(k);
|
|
148
149
|
}
|
|
149
150
|
});
|
|
150
|
-
let
|
|
151
|
-
u.forEach((
|
|
152
|
-
|
|
153
|
-
}), t.innerHTML =
|
|
154
|
-
},
|
|
155
|
-
let
|
|
156
|
-
Array.from(e.querySelectorAll('[type="checkbox"]:checked + label')).forEach((
|
|
157
|
-
|
|
151
|
+
let c = "";
|
|
152
|
+
u.forEach((_, y) => {
|
|
153
|
+
c += _.row.outerHTML;
|
|
154
|
+
}), t.innerHTML = c, e.dispatchEvent(a);
|
|
155
|
+
}, z = function() {
|
|
156
|
+
let m = [];
|
|
157
|
+
Array.from(e.querySelectorAll('[type="checkbox"]:checked + label')).forEach((_, y) => {
|
|
158
|
+
m.push(_.textContent);
|
|
158
159
|
});
|
|
159
160
|
let u = [];
|
|
160
|
-
|
|
161
|
-
Array.from(e.querySelectorAll('td[data-label="' +
|
|
161
|
+
m.forEach((_, y) => {
|
|
162
|
+
Array.from(e.querySelectorAll('td[data-label="' + _ + '"]')).forEach((L, k) => {
|
|
162
163
|
u[L.textContent] = L.textContent;
|
|
163
164
|
});
|
|
164
165
|
});
|
|
165
|
-
let
|
|
166
|
-
|
|
166
|
+
let c = e.querySelector("datalist");
|
|
167
|
+
c.innerHTML = Object.keys(u).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 u =
|
|
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 u = m.target; u && u != this; u = u.parentNode)
|
|
170
171
|
if (u.matches('input[type="search"]')) {
|
|
171
|
-
const
|
|
172
|
-
M(
|
|
172
|
+
const c = u.value;
|
|
173
|
+
M(c);
|
|
173
174
|
}
|
|
174
|
-
}), e.addEventListener("change", function(
|
|
175
|
-
for (var u =
|
|
175
|
+
}), e.addEventListener("change", function(m) {
|
|
176
|
+
for (var u = m.target; u && u != this; u = u.parentNode)
|
|
176
177
|
if (u.matches('input[type="search"]')) {
|
|
177
|
-
const
|
|
178
|
-
M(
|
|
178
|
+
const c = u.value;
|
|
179
|
+
M(c);
|
|
179
180
|
}
|
|
180
|
-
}), e.addEventListener("change", function(
|
|
181
|
-
for (var u =
|
|
181
|
+
}), e.addEventListener("change", function(m) {
|
|
182
|
+
for (var u = m.target; u && u != this; u = u.parentNode)
|
|
182
183
|
if (u.matches('input[type="checkbox"]')) {
|
|
183
|
-
const
|
|
184
|
-
M(
|
|
184
|
+
const c = e.querySelector('input[type="search"]').value;
|
|
185
|
+
M(c), z();
|
|
185
186
|
}
|
|
186
187
|
}));
|
|
187
|
-
const H = function(
|
|
188
|
-
let
|
|
189
|
-
|
|
190
|
-
const
|
|
191
|
-
|
|
188
|
+
const H = function(m, u) {
|
|
189
|
+
let c = document.getElementById(i + "_style");
|
|
190
|
+
c == null && (c = document.createElement("style"), c.setAttribute("id", i + "_style"));
|
|
191
|
+
const _ = m * (u - 1) + 1, y = m * u;
|
|
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"]') && (H(y.value, u), D(i, e, y.value, u,
|
|
215
|
-
}), e.addEventListener("click", function(
|
|
216
|
-
for (var y =
|
|
217
|
-
y.matches(".page-item:not(.active):not(.disabled) .page-link") && (H(e.getAttribute("data-show"), y.getAttribute("data-page")), D(i, e, e.getAttribute("data-show"), y.getAttribute("data-page"),
|
|
218
|
-
}, !1), e.addEventListener("change", function(
|
|
219
|
-
for (var y =
|
|
220
|
-
y.matches(".table__pagination select") && (H(e.getAttribute("data-show"), y.value), D(i, e, e.getAttribute("data-show"), y.value,
|
|
212
|
+
const m = parseInt(e.getAttribute("data-show")), u = parseInt(e.getAttribute("data-page")) ? parseInt(e.getAttribute("data-page")) : 1, c = e.querySelectorAll("tbody tr").length;
|
|
213
|
+
m < c && (H(m, u), U(i, e, m, u, c), D(i, e, m, u, c), e.addEventListener("change", function(_) {
|
|
214
|
+
for (var y = _.target; y && y != this; y = y.parentNode)
|
|
215
|
+
y.matches('.table__pagination input[type="number"]') && (H(y.value, u), D(i, e, y.value, u, 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") && (H(e.getAttribute("data-show"), y.getAttribute("data-page")), D(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") && (H(e.getAttribute("data-show"), y.value), D(i, e, e.getAttribute("data-show"), y.value, c));
|
|
221
222
|
}));
|
|
222
223
|
}
|
|
223
|
-
function Y(
|
|
224
|
-
|
|
224
|
+
function Y(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 V = function() {
|
|
228
|
+
Array.from(t.querySelectorAll("tr")).forEach((m, u) => {
|
|
229
|
+
if (m.querySelector('[data-label="Order"]') == null) {
|
|
230
|
+
const c = document.createElement("th");
|
|
231
|
+
c.innerHTML = u + 1, c.setAttribute("data-label", "Order"), m.prepend(c);
|
|
231
232
|
}
|
|
232
|
-
|
|
233
|
+
m.setAttribute("id", i + "_row_" + (u + 1)), m.setAttribute("data-order", u + 1), m.setAttribute("draggable", "true"), m.addEventListener("dragstart", Y);
|
|
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"), n.querySelector("tr").prepend(m), V(), e.addEventListener("click", function(u) {
|
|
239
|
+
for (var c = u.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"), $("Order", "ascending"), Array.from(e.querySelectorAll("tbody tr")).forEach((_, y) => {
|
|
244
|
+
_.setAttribute("draggable", "true");
|
|
244
245
|
});
|
|
245
246
|
break;
|
|
246
247
|
}
|
|
@@ -248,41 +249,41 @@ function E(e) {
|
|
|
248
249
|
u.preventDefault();
|
|
249
250
|
}, !1), document.addEventListener("dragenter", function(u) {
|
|
250
251
|
u.preventDefault(), u.dataTransfer.dropEffect = "move";
|
|
251
|
-
for (var
|
|
252
|
-
|
|
252
|
+
for (var c = u.target; c && c != this; c = c.parentNode)
|
|
253
|
+
c.matches("[data-reorder] tbody tr") && c.classList.add("tr--dropable");
|
|
253
254
|
}, !1), document.addEventListener("dragleave", function(u) {
|
|
254
255
|
u.preventDefault();
|
|
255
|
-
for (var
|
|
256
|
-
|
|
256
|
+
for (var c = u.target; c && c != this; c = c.parentNode)
|
|
257
|
+
c.matches("[data-reorder] tbody tr") && c.classList.remove("tr--dropable");
|
|
257
258
|
}, !1), document.addEventListener("drop", function(u) {
|
|
258
259
|
u.preventDefault();
|
|
259
|
-
for (var
|
|
260
|
-
if (
|
|
261
|
-
|
|
262
|
-
|
|
260
|
+
for (var c = u.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);
|
|
263
264
|
}), e.dispatchEvent(r));
|
|
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 u = parseInt(e.getAttribute("data-show")),
|
|
271
|
-
|
|
269
|
+
e.addEventListener("filtered", function(m) {
|
|
270
|
+
if (e.getAttribute("data-sortBy") && e.getAttribute("data-sort") && $(e.getAttribute("data-sortBy"), e.getAttribute("data-sort")), e.getAttribute("data-show")) {
|
|
271
|
+
const u = parseInt(e.getAttribute("data-show")), c = e.querySelectorAll("tbody tr").length, _ = e.querySelector(".table__pagination");
|
|
272
|
+
_ != null && _.remove(), u < c && (H(u, 1), U(i, e, u, 1, c), D(i, e, u, 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(
|
|
274
|
+
e.getAttribute("data-reorder") && V();
|
|
275
|
+
}, !1), e.addEventListener("sorted", function(m) {
|
|
276
|
+
e.getAttribute("data-reorder") && V();
|
|
277
|
+
}, !1), e.addEventListener("populated", function(m) {
|
|
277
278
|
var u = e.querySelector(".table__filters");
|
|
278
279
|
u.remove();
|
|
279
|
-
var
|
|
280
|
-
|
|
281
|
-
var
|
|
282
|
-
e.parentNode.replaceChild(
|
|
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, n, t, d, 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">
|
|
@@ -298,7 +299,7 @@ ${h > 20 ? '<option value="20">20</option>' : ""}
|
|
|
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
301
|
<div class="col mw-fit-content d-sm-flex justify-content-end align-items-center" id="${e}_paginationBtns"></div>`, n.append(a);
|
|
301
|
-
}, D = function(e, n, t,
|
|
302
|
+
}, D = function(e, n, t, d, h) {
|
|
302
303
|
const a = document.getElementById(e + "_paginationBtns");
|
|
303
304
|
if (a == null)
|
|
304
305
|
return !1;
|
|
@@ -308,16 +309,16 @@ ${h > 20 ? '<option value="20">20</option>' : ""}
|
|
|
308
309
|
else if (r < 5) {
|
|
309
310
|
let i = "";
|
|
310
311
|
for (let f = 1; f <= r; f++)
|
|
311
|
-
f ==
|
|
312
|
+
f == d ? 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
|
+
${d == 1 ? '<li class="page-item disabled"><span class="page-link">Previous</span></li>' : `<li class="page-item"><button class="page-link" data-page="${parseInt(d) - 1}">Previous</button></li>`}
|
|
314
315
|
${i}
|
|
315
|
-
${
|
|
316
|
+
${d == r ? '<li class="page-item disabled"><span class="page-link">Next</span></li>' : `<li class="page-item"><button class="page-link" data-page="${parseInt(d) + 1}">Next</button></li>`}
|
|
316
317
|
</ul>`;
|
|
317
318
|
} else {
|
|
318
319
|
let i = "";
|
|
319
320
|
for (let f = 1; f <= r; f++)
|
|
320
|
-
f ==
|
|
321
|
+
f == d ? 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");
|
|
@@ -386,16 +387,16 @@ const pe = {
|
|
|
386
387
|
updated() {
|
|
387
388
|
this.$nextTick(function() {
|
|
388
389
|
let e = this.$refs.wrapper.querySelector("tbody"), n = "";
|
|
389
|
-
this.items.forEach((
|
|
390
|
-
let a =
|
|
391
|
-
|
|
390
|
+
this.items.forEach((d, h) => {
|
|
391
|
+
let a = d.rowid ? d.rowid : "";
|
|
392
|
+
d = Object.fromEntries(Object.entries(d).filter(([r]) => r !== "rowid")), n += `<tr data-row-id="${a}">${Object.keys(d).map((r) => `<td data-label="${W(K(r))}" data-numeric="${G(d[r])}">${d[r]}</td>`).join("")}</tr>`;
|
|
392
393
|
}), e.innerHTML = n;
|
|
393
394
|
const t = new Event("filtered");
|
|
394
395
|
this.$refs.wrapper.dispatchEvent(t);
|
|
395
396
|
});
|
|
396
397
|
}
|
|
397
|
-
},
|
|
398
|
-
function
|
|
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 $e(e, n, t, d, h, a) {
|
|
399
400
|
return o(), l("div", {
|
|
400
401
|
class: "table__wrapper",
|
|
401
402
|
ref: "wrapper",
|
|
@@ -410,31 +411,31 @@ function Se(e, n, t, c, h, a) {
|
|
|
410
411
|
s("tr", {
|
|
411
412
|
class: v(t.headingclass)
|
|
412
413
|
}, [
|
|
413
|
-
(o(!0), l(
|
|
414
|
+
(o(!0), l(S, null, x(t.fields, (r) => (o(), l("th", {
|
|
414
415
|
key: r.key,
|
|
415
416
|
"data-sortable": r.sortable,
|
|
416
417
|
"data-filterable": r.filterable
|
|
417
418
|
}, w(a.cellHeading(r.key)), 9, ve))), 128))
|
|
418
419
|
], 2)
|
|
419
|
-
])) :
|
|
420
|
+
])) : p("", !0),
|
|
420
421
|
t.items ? (o(), l("tbody", ge, [
|
|
421
|
-
(o(!0), l(
|
|
422
|
+
(o(!0), l(S, null, x(t.items, (r, i) => (o(), l("tr", {
|
|
422
423
|
key: i,
|
|
423
424
|
"data-row-id": r.rowid
|
|
424
425
|
}, [
|
|
425
|
-
(o(!0), l(
|
|
426
|
-
key:
|
|
426
|
+
(o(!0), l(S, null, x(Object.fromEntries(Object.entries(r).filter(([f]) => f !== "rowid")), (f, $) => (o(), l("td", {
|
|
427
|
+
key: $,
|
|
427
428
|
innerHTML: f,
|
|
428
|
-
"data-label": a.cellHeading(
|
|
429
|
+
"data-label": a.cellHeading($),
|
|
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
|
b(e.$slots, "default")
|
|
435
|
-
], 8,
|
|
436
|
+
], 8, pe);
|
|
436
437
|
}
|
|
437
|
-
const
|
|
438
|
+
const E = /* @__PURE__ */ g(ye, [["render", $e]]), Ae = {
|
|
438
439
|
name: "Input",
|
|
439
440
|
props: {
|
|
440
441
|
value: {
|
|
@@ -618,14 +619,14 @@ const R = /* @__PURE__ */ g(pe, [["render", Se], ["__file", "/Users/james/worksp
|
|
|
618
619
|
this.$emit("bus");
|
|
619
620
|
}
|
|
620
621
|
}
|
|
621
|
-
},
|
|
622
|
+
}, Se = ["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
|
}, Ce = ["type", "name", "id", "pattern", "list"], He = { class: "input-group-text border-0 col-2 col-sm-1 px-0" }, Ne = {
|
|
625
626
|
key: 6,
|
|
626
627
|
class: "input-group"
|
|
627
|
-
}, De = ["type", "name", "id", "pattern", "list"], Be = { class: "input-group-text flex-fill" },
|
|
628
|
-
function
|
|
628
|
+
}, De = ["type", "name", "id", "pattern", "list"], Be = { class: "input-group-text flex-fill" }, Pe = ["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, n, t, d, h, a) {
|
|
629
630
|
return o(), l("div", {
|
|
630
631
|
class: v(a.wrapperClass()),
|
|
631
632
|
ref: "wrapper"
|
|
@@ -636,21 +637,19 @@ function Ke(e, n, t, c, h, a) {
|
|
|
636
637
|
for: t.id,
|
|
637
638
|
innerHTML: a.displayLabel(),
|
|
638
639
|
title: t.title
|
|
639
|
-
}, null, 10,
|
|
640
|
-
m(" Prefix and Suffix "),
|
|
640
|
+
}, null, 10, Se)) : p("", !0),
|
|
641
641
|
t.prefix ? (o(), l("span", {
|
|
642
642
|
key: 1,
|
|
643
643
|
class: v(`prefix ${this.prefixClass} ${t.size ? `prefix-${t.size}` : ""}`),
|
|
644
644
|
innerHTML: t.prefix,
|
|
645
645
|
role: "presentation"
|
|
646
|
-
}, null, 10, xe)) :
|
|
646
|
+
}, null, 10, xe)) : p("", !0),
|
|
647
647
|
t.suffix ? (o(), l("span", {
|
|
648
648
|
key: 2,
|
|
649
649
|
class: v(`suffix ${this.suffixClass} ${t.size ? `suffix-${t.size}` : ""}`),
|
|
650
650
|
innerHTML: t.suffix,
|
|
651
651
|
role: "presentation"
|
|
652
|
-
}, null, 10, qe)) :
|
|
653
|
-
m(" Standard input field "),
|
|
652
|
+
}, null, 10, qe)) : p("", !0),
|
|
654
653
|
a.isInput() ? N((o(), l("input", T({
|
|
655
654
|
key: 3,
|
|
656
655
|
"onUpdate:modelValue": n[0] || (n[0] = (r) => a.inputVal = r),
|
|
@@ -663,9 +662,8 @@ function Ke(e, n, t, c, h, a) {
|
|
|
663
662
|
}, e.$attrs, {
|
|
664
663
|
onKeyup: n[1] || (n[1] = (...r) => a.inputKeyup && a.inputKeyup(...r))
|
|
665
664
|
}), null, 16, Le)), [
|
|
666
|
-
[
|
|
667
|
-
]) :
|
|
668
|
-
m(" Textarea "),
|
|
665
|
+
[F, a.inputVal]
|
|
666
|
+
]) : p("", !0),
|
|
669
667
|
t.type == "textarea" ? N((o(), l("textarea", T({
|
|
670
668
|
key: 4,
|
|
671
669
|
"onUpdate:modelValue": n[2] || (n[2] = (r) => a.inputVal = r),
|
|
@@ -676,8 +674,7 @@ 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
|
-
m(" Range "),
|
|
677
|
+
]) : p("", !0),
|
|
681
678
|
t.type == "range" ? (o(), l("div", Me, [
|
|
682
679
|
N(s("input", T({
|
|
683
680
|
"onUpdate:modelValue": n[3] || (n[3] = (r) => a.inputVal = r),
|
|
@@ -688,11 +685,10 @@ function Ke(e, n, t, c, h, a) {
|
|
|
688
685
|
pattern: a.needPattern(),
|
|
689
686
|
list: a.hasOptions()
|
|
690
687
|
}, e.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, Ce), [
|
|
691
|
-
[
|
|
688
|
+
[F, a.inputVal]
|
|
692
689
|
]),
|
|
693
690
|
s("output", He, w(t.value), 1)
|
|
694
|
-
])) :
|
|
695
|
-
m(" Color picker "),
|
|
691
|
+
])) : p("", !0),
|
|
696
692
|
t.type == "color" ? (o(), l("div", Ne, [
|
|
697
693
|
N(s("input", T({
|
|
698
694
|
"onUpdate:modelValue": n[4] || (n[4] = (r) => a.inputVal = r),
|
|
@@ -703,11 +699,10 @@ function Ke(e, n, t, c, h, a) {
|
|
|
703
699
|
pattern: a.needPattern(),
|
|
704
700
|
list: a.hasOptions()
|
|
705
701
|
}, e.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, De), [
|
|
706
|
-
[
|
|
702
|
+
[F, a.inputVal]
|
|
707
703
|
]),
|
|
708
704
|
s("output", Be, w(t.value ? e.vale : "#000000"), 1)
|
|
709
|
-
])) :
|
|
710
|
-
m(" Select/dropdown "),
|
|
705
|
+
])) : p("", !0),
|
|
711
706
|
t.type == "select" ? N((o(), l("select", T({
|
|
712
707
|
key: 7,
|
|
713
708
|
"onUpdate:modelValue": n[5] || (n[5] = (r) => a.inputVal = r),
|
|
@@ -717,37 +712,35 @@ function Ke(e, n, t, c, h, a) {
|
|
|
717
712
|
id: t.id,
|
|
718
713
|
pattern: a.needPattern()
|
|
719
714
|
}, e.$attrs), [
|
|
720
|
-
(o(!0), l(
|
|
715
|
+
(o(!0), l(S, null, x(t.options, (r, i) => (o(), l("option", {
|
|
721
716
|
key: i,
|
|
722
717
|
value: r.value
|
|
723
|
-
}, w(r.display ? r.display : r.value), 9,
|
|
724
|
-
], 16,
|
|
718
|
+
}, w(r.display ? r.display : r.value), 9, Ie))), 128))
|
|
719
|
+
], 16, Pe)), [
|
|
725
720
|
[X, a.inputVal]
|
|
726
|
-
]) :
|
|
721
|
+
]) : p("", !0),
|
|
727
722
|
a.allowDatalist() ? (o(), l("datalist", {
|
|
728
723
|
key: 8,
|
|
729
724
|
id: t.id + "-list"
|
|
730
725
|
}, [
|
|
731
|
-
(o(!0), l(
|
|
726
|
+
(o(!0), l(S, null, x(t.options, (r, i) => (o(), l("option", {
|
|
732
727
|
key: i,
|
|
733
728
|
value: r.value
|
|
734
|
-
}, w(r.value), 9,
|
|
735
|
-
], 8,
|
|
736
|
-
m(" Checkbox "),
|
|
729
|
+
}, w(r.value), 9, Ve))), 128))
|
|
730
|
+
], 8, ze)) : p("", !0),
|
|
737
731
|
t.type == "checkbox" || t.type == "radio" ? (o(), l("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,
|
|
737
|
+
}, e.$attrs), null, 16, Oe)) : p("", !0),
|
|
744
738
|
t.type == "checkbox" || t.type == "radio" ? (o(), l("label", {
|
|
745
739
|
key: 10,
|
|
746
740
|
class: v(`form-label form-check-label${t.labelclass ? ` ${t.labelclass}` : ""}`),
|
|
747
741
|
for: t.id,
|
|
748
742
|
innerHTML: t.label
|
|
749
|
-
}, null, 10,
|
|
750
|
-
m(" Checkbox Button "),
|
|
743
|
+
}, null, 10, Fe)) : p("", !0),
|
|
751
744
|
t.type == "checkbox-btn" || t.type == "radio-btn" ? (o(), l("input", T({
|
|
752
745
|
key: 11,
|
|
753
746
|
class: `btn-check${t.inputclass ? ` ${t.inputclass}` : ""}`,
|
|
@@ -755,26 +748,25 @@ function Ke(e, n, t, c, h, a) {
|
|
|
755
748
|
autocomplete: "off",
|
|
756
749
|
name: t.name ? t.name : t.id,
|
|
757
750
|
id: t.id
|
|
758
|
-
}, e.$attrs), null, 16,
|
|
751
|
+
}, e.$attrs), null, 16, je)) : p("", !0),
|
|
759
752
|
t.type == "checkbox-btn" || t.type == "radio-btn" ? (o(), l("label", {
|
|
760
753
|
key: 12,
|
|
761
754
|
class: v(`btn${t.labelclass ? ` ${t.labelclass}` : ""}`),
|
|
762
755
|
for: t.id,
|
|
763
756
|
innerHTML: t.label,
|
|
764
757
|
onClick: n[6] || (n[6] = (...r) => a.clickEvent && a.clickEvent(...r))
|
|
765
|
-
}, null, 10,
|
|
766
|
-
m(" Error message "),
|
|
758
|
+
}, null, 10, We)) : p("", !0),
|
|
767
759
|
t.errormsg ? (o(), l("p", {
|
|
768
760
|
key: 13,
|
|
769
761
|
class: "invalid-feedback mb-0",
|
|
770
762
|
innerHTML: t.errormsg
|
|
771
|
-
}, null, 8,
|
|
763
|
+
}, null, 8, Ke)) : p("", !0),
|
|
772
764
|
b(e.$slots, "default")
|
|
773
765
|
], 2);
|
|
774
766
|
}
|
|
775
|
-
const
|
|
767
|
+
const I = /* @__PURE__ */ g(Ae, [["render", Ue]]), Ge = {
|
|
776
768
|
components: {
|
|
777
|
-
Input:
|
|
769
|
+
Input: I
|
|
778
770
|
},
|
|
779
771
|
name: "FileUploads",
|
|
780
772
|
props: {
|
|
@@ -795,17 +787,17 @@ 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" }, Ee = { class: "row" }, Re = { class: "col-12 col-md me-auto" }, Qe = /* @__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
796
|
], -1), Ye = ["data-maxfiles"];
|
|
805
|
-
function Je(e, n, t,
|
|
797
|
+
function Je(e, n, t, d, h, a) {
|
|
806
798
|
const r = C("Input");
|
|
807
|
-
return o(), l("div",
|
|
808
|
-
s("div",
|
|
799
|
+
return o(), l("div", Ze, [
|
|
800
|
+
s("div", Ee, [
|
|
809
801
|
s("div", {
|
|
810
802
|
class: v(`${t.inputcolclass ? t.inputcolclass : "col-12 col-sm-4"}`)
|
|
811
803
|
}, [
|
|
@@ -820,7 +812,7 @@ 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",
|
|
815
|
+
s("div", Re, [
|
|
824
816
|
b(e.$slots, "default")
|
|
825
817
|
]),
|
|
826
818
|
Qe
|
|
@@ -833,14 +825,14 @@ function Je(e, n, t, c, h, a) {
|
|
|
833
825
|
}, "+ Add file", 8, Ye)
|
|
834
826
|
]);
|
|
835
827
|
}
|
|
836
|
-
const ki = /* @__PURE__ */ g(Ge, [["render", Je]
|
|
828
|
+
const ki = /* @__PURE__ */ g(Ge, [["render", Je]]);
|
|
837
829
|
function Xe(e) {
|
|
838
830
|
if (!e.classList.contains("accordion--keep-open")) {
|
|
839
831
|
const n = e.querySelectorAll(":scope > details");
|
|
840
832
|
n.forEach((t) => {
|
|
841
833
|
t.addEventListener("click", () => {
|
|
842
|
-
n.forEach((
|
|
843
|
-
|
|
834
|
+
n.forEach((d) => {
|
|
835
|
+
d !== t && d.removeAttribute("open");
|
|
844
836
|
});
|
|
845
837
|
});
|
|
846
838
|
});
|
|
@@ -866,12 +858,12 @@ const et = {
|
|
|
866
858
|
class: "container accordion",
|
|
867
859
|
ref: "wrapper"
|
|
868
860
|
};
|
|
869
|
-
function st(e, n, t,
|
|
861
|
+
function st(e, n, t, d, h, a) {
|
|
870
862
|
return o(), l("div", tt, [
|
|
871
863
|
b(e.$slots, "default")
|
|
872
864
|
], 512);
|
|
873
865
|
}
|
|
874
|
-
const
|
|
866
|
+
const $i = /* @__PURE__ */ g(et, [["render", st]]), at = {
|
|
875
867
|
name: "AccordionItem",
|
|
876
868
|
props: {
|
|
877
869
|
title: {
|
|
@@ -910,7 +902,7 @@ const Si = /* @__PURE__ */ g(et, [["render", st], ["__file", "/Users/james/works
|
|
|
910
902
|
key: 0,
|
|
911
903
|
class: "accordion-body"
|
|
912
904
|
};
|
|
913
|
-
function ot(e, n, t,
|
|
905
|
+
function ot(e, n, t, d, h, a) {
|
|
914
906
|
return o(), l("details", {
|
|
915
907
|
class: "accordion-item",
|
|
916
908
|
id: a.createID(t.title)
|
|
@@ -920,19 +912,19 @@ function ot(e, n, t, c, h, a) {
|
|
|
920
912
|
onClick: n[0] || (n[0] = (r) => h.show = !0)
|
|
921
913
|
}, [
|
|
922
914
|
s("span", nt, [
|
|
923
|
-
|
|
915
|
+
P(w(t.title), 1),
|
|
924
916
|
t.badge ? (o(), l("span", {
|
|
925
917
|
key: 0,
|
|
926
918
|
class: v(`badge bg-${t.badgecolour}`)
|
|
927
|
-
}, w(t.badge), 3)) :
|
|
919
|
+
}, w(t.badge), 3)) : p("", !0)
|
|
928
920
|
])
|
|
929
921
|
], 2),
|
|
930
922
|
h.show ? (o(), l("div", rt, [
|
|
931
923
|
b(e.$slots, "default")
|
|
932
|
-
])) :
|
|
924
|
+
])) : p("", !0)
|
|
933
925
|
], 8, it);
|
|
934
926
|
}
|
|
935
|
-
const Ai = /* @__PURE__ */ g(at, [["render", ot]
|
|
927
|
+
const Ai = /* @__PURE__ */ g(at, [["render", ot]]), lt = {
|
|
936
928
|
name: "Header",
|
|
937
929
|
props: {
|
|
938
930
|
title: {
|
|
@@ -949,13 +941,13 @@ const Ai = /* @__PURE__ */ g(at, [["render", ot], ["__file", "/Users/james/works
|
|
|
949
941
|
required: !1
|
|
950
942
|
}
|
|
951
943
|
}
|
|
952
|
-
},
|
|
953
|
-
function _t(e, n, t,
|
|
954
|
-
return o(), l("div",
|
|
944
|
+
}, dt = { class: "container" }, ct = { 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"];
|
|
945
|
+
function _t(e, n, t, d, h, a) {
|
|
946
|
+
return o(), l("div", dt, [
|
|
955
947
|
s("div", {
|
|
956
948
|
class: v("bg-" + t.background + " mb-4")
|
|
957
949
|
}, [
|
|
958
|
-
s("div",
|
|
950
|
+
s("div", ct, [
|
|
959
951
|
s("div", ut, [
|
|
960
952
|
s("div", ft, [
|
|
961
953
|
s("h2", null, w(t.title), 1),
|
|
@@ -968,14 +960,14 @@ function _t(e, n, t, c, h, a) {
|
|
|
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 Si = /* @__PURE__ */ g(lt, [["render", _t]]);
|
|
970
|
+
const yt = {
|
|
979
971
|
name: "Card",
|
|
980
972
|
props: {
|
|
981
973
|
link: {
|
|
@@ -1054,23 +1046,23 @@ const pt = {
|
|
|
1054
1046
|
default:
|
|
1055
1047
|
return "bg-body text-white";
|
|
1056
1048
|
}
|
|
1057
|
-
}, n = 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>` : "",
|
|
1049
|
+
}, n = 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>` : "", d = `
|
|
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 `${n}${t}${
|
|
1054
|
+
return `${n}${t}${d}${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"], $t = ["src"], At = ["innerHTML"], St = {
|
|
1070
1062
|
key: 1,
|
|
1071
1063
|
class: "card-footer"
|
|
1072
1064
|
}, xt = { class: "visually-hidden" };
|
|
1073
|
-
function qt(e, n, t,
|
|
1065
|
+
function qt(e, n, t, d, h, a) {
|
|
1074
1066
|
return o(), l("a", {
|
|
1075
1067
|
href: t.link,
|
|
1076
1068
|
class: v("card" + (t.type ? " card--" + t.type : "") + " " + t.cardClass),
|
|
@@ -1089,12 +1081,12 @@ function qt(e, n, t, c, h, a) {
|
|
|
1089
1081
|
key: 0,
|
|
1090
1082
|
class: "badge bg-primary p-2 me-2",
|
|
1091
1083
|
innerHTML: a.cardStatus()
|
|
1092
|
-
}, null, 8, wt)) :
|
|
1084
|
+
}, null, 8, wt)) : p("", !0),
|
|
1093
1085
|
this.details && (this.details.images || this.details.videos) ? (o(), l("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
1091
|
t.details && t.details.logo ? (o(), l("img", {
|
|
1100
1092
|
key: 0,
|
|
@@ -1102,26 +1094,26 @@ function qt(e, n, t, c, h, a) {
|
|
|
1102
1094
|
alt: "",
|
|
1103
1095
|
loading: "lazy",
|
|
1104
1096
|
class: "card-logo"
|
|
1105
|
-
}, null, 8,
|
|
1106
|
-
])) :
|
|
1097
|
+
}, null, 8, $t)) : p("", !0)
|
|
1098
|
+
])) : p("", !0),
|
|
1107
1099
|
s("div", {
|
|
1108
1100
|
class: "card-body",
|
|
1109
1101
|
innerHTML: a.cardContent()
|
|
1110
1102
|
}, null, 8, At),
|
|
1111
|
-
t.hidectatext == !1 ? (o(), l("div",
|
|
1103
|
+
t.hidectatext == !1 ? (o(), l("div", St, [
|
|
1112
1104
|
s("span", {
|
|
1113
1105
|
class: v(`${t.btntype == "link" ? "link" : `btn btn-${t.btntype}`} mb-0`)
|
|
1114
1106
|
}, [
|
|
1115
|
-
|
|
1107
|
+
P(w(t.ctatext), 1),
|
|
1116
1108
|
s("span", xt, ": " + w(t.title), 1)
|
|
1117
1109
|
], 2)
|
|
1118
|
-
])) :
|
|
1119
|
-
], 10,
|
|
1110
|
+
])) : p("", !0)
|
|
1111
|
+
], 10, pt);
|
|
1120
1112
|
}
|
|
1121
|
-
const
|
|
1113
|
+
const R = /* @__PURE__ */ g(yt, [["render", qt]]);
|
|
1122
1114
|
const Lt = {
|
|
1123
1115
|
components: {
|
|
1124
|
-
Card:
|
|
1116
|
+
Card: R
|
|
1125
1117
|
},
|
|
1126
1118
|
name: "CardDeck",
|
|
1127
1119
|
props: {
|
|
@@ -1176,7 +1168,7 @@ const Lt = {
|
|
|
1176
1168
|
}
|
|
1177
1169
|
}
|
|
1178
1170
|
}, Tt = ["data-card-type"];
|
|
1179
|
-
function Mt(e, n, t,
|
|
1171
|
+
function Mt(e, n, t, d, h, a) {
|
|
1180
1172
|
const r = C("Card");
|
|
1181
1173
|
return o(), l("div", {
|
|
1182
1174
|
class: "container card-deck prevent-invert",
|
|
@@ -1186,7 +1178,7 @@ function Mt(e, n, t, c, h, a) {
|
|
|
1186
1178
|
s("div", {
|
|
1187
1179
|
class: v(`row row-cols-${t.cols} row-cols-sm-${t.smcols} row-cols-md-${t.mdcols} ${t.gap ? `g-${t.gap}` : ""}`)
|
|
1188
1180
|
}, [
|
|
1189
|
-
(o(!0), l(
|
|
1181
|
+
(o(!0), l(S, null, x(t.items, (i, f) => (o(), l("div", {
|
|
1190
1182
|
class: "col",
|
|
1191
1183
|
key: f
|
|
1192
1184
|
}, [
|
|
@@ -1203,24 +1195,24 @@ function Mt(e, n, t, c, h, a) {
|
|
|
1203
1195
|
b(e.$slots, "after")
|
|
1204
1196
|
], 8, Tt);
|
|
1205
1197
|
}
|
|
1206
|
-
const Ct = /* @__PURE__ */ g(Lt, [["render", Mt]
|
|
1198
|
+
const Ct = /* @__PURE__ */ g(Lt, [["render", Mt]]);
|
|
1207
1199
|
function Ht(e) {
|
|
1208
1200
|
var n;
|
|
1209
|
-
let t = e.querySelector(".carousel__inner"),
|
|
1201
|
+
let t = e.querySelector(".carousel__inner"), d = 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
1204
|
e.querySelector(".carousel__controls a").classList.add("active"), t.addEventListener("scroll", function(r) {
|
|
1213
1205
|
clearTimeout(n), n = setTimeout(function() {
|
|
1214
|
-
let i = t.clientWidth, f = t.scrollWidth,
|
|
1215
|
-
Array.from(e.querySelectorAll(".carousel__controls a")).forEach((
|
|
1216
|
-
|
|
1206
|
+
let i = t.clientWidth, f = t.scrollWidth, $ = t.scrollLeft, q = Math.round($ / f * d) + 1, M = e.querySelector(".carousel__item:last-child").offsetLeft;
|
|
1207
|
+
Array.from(e.querySelectorAll(".carousel__controls a")).forEach((z, H) => {
|
|
1208
|
+
z.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
1211
|
}, !1), e.addEventListener("click", function(r) {
|
|
1220
1212
|
for (var i = r.target; i && i != this; i = i.parentNode)
|
|
1221
1213
|
if (i.matches(".carousel__controls a")) {
|
|
1222
|
-
r.preventDefault(), Array.from(e.querySelectorAll(".carousel__controls a")).forEach((
|
|
1223
|
-
|
|
1214
|
+
r.preventDefault(), Array.from(e.querySelectorAll(".carousel__controls a")).forEach(($, q) => {
|
|
1215
|
+
$.classList.remove("active");
|
|
1224
1216
|
}), i.classList.add("active");
|
|
1225
1217
|
const f = document.querySelector(i.getAttribute("href"));
|
|
1226
1218
|
t.scroll({
|
|
@@ -1242,7 +1234,7 @@ function Ht(e) {
|
|
|
1242
1234
|
});
|
|
1243
1235
|
break;
|
|
1244
1236
|
}
|
|
1245
|
-
}, !1),
|
|
1237
|
+
}, !1), d == 1 && e.classList.add("hide-btns"), h >= d && e.classList.add("hide-sm-btns"), a >= d && e.classList.add("hide-md-btns");
|
|
1246
1238
|
}
|
|
1247
1239
|
let B = Ct.props;
|
|
1248
1240
|
B.gap.default = 0;
|
|
@@ -1251,7 +1243,7 @@ B.smcols.default = 2;
|
|
|
1251
1243
|
B.mdcols.default = 4;
|
|
1252
1244
|
const Nt = {
|
|
1253
1245
|
components: {
|
|
1254
|
-
Card:
|
|
1246
|
+
Card: R
|
|
1255
1247
|
},
|
|
1256
1248
|
name: "Carousel",
|
|
1257
1249
|
data() {
|
|
@@ -1280,15 +1272,15 @@ const Nt = {
|
|
|
1280
1272
|
Ht(this.$refs.wrapper);
|
|
1281
1273
|
});
|
|
1282
1274
|
}
|
|
1283
|
-
}, Dt = ["id", "data-cols", "data-sm-cols", "data-md-cols"], Bt = { class: "carousel__wrapper" },
|
|
1275
|
+
}, Dt = ["id", "data-cols", "data-sm-cols", "data-md-cols"], Bt = { class: "carousel__wrapper" }, Pt = { 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
|
|
1283
|
+
function jt(e, n, t, d, h, a) {
|
|
1292
1284
|
const r = C("Card");
|
|
1293
1285
|
return o(), l("div", {
|
|
1294
1286
|
class: "container carousel",
|
|
@@ -1298,16 +1290,14 @@ 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
|
-
b(e.$slots, "default",
|
|
1302
|
-
m(" Use for titles etc ")
|
|
1303
|
-
]),
|
|
1293
|
+
b(e.$slots, "default"),
|
|
1304
1294
|
s("div", Bt, [
|
|
1305
|
-
s("div",
|
|
1295
|
+
s("div", Pt, [
|
|
1306
1296
|
t.type == "card" ? (o(), l("div", {
|
|
1307
1297
|
key: 0,
|
|
1308
1298
|
class: v(`row row-cols-${e.cols} row-cols-sm-${e.smcols} row-cols-md-${e.mdcols} ${e.gap ? `g-${e.gap}` : ""}`)
|
|
1309
1299
|
}, [
|
|
1310
|
-
(o(!0), l(
|
|
1300
|
+
(o(!0), l(S, null, x(e.items, (i, f) => (o(), l("div", {
|
|
1311
1301
|
class: v(`col carousel__item${t.colclass ? ` ${t.colclass}` : ""}`),
|
|
1312
1302
|
key: f,
|
|
1313
1303
|
id: "carousel" + h.id + "slide" + (f + 1)
|
|
@@ -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)) :
|
|
1313
|
+
], 10, It))), 128))
|
|
1314
|
+
], 2)) : p("", !0),
|
|
1325
1315
|
t.type != "card" ? (o(), l("div", {
|
|
1326
1316
|
key: 1,
|
|
1327
1317
|
class: v(`row row-cols-${e.cols} row-cols-sm-${e.smcols} row-cols-md-${e.mdcols} ${e.gap ? `g-${e.gap}` : ""}`)
|
|
1328
1318
|
}, [
|
|
1329
|
-
(o(!0), l(
|
|
1319
|
+
(o(!0), l(S, null, x(e.items, (i, f) => (o(), l("div", {
|
|
1330
1320
|
class: v(`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
1328
|
class: v(`carousel__controls cols-${e.cols} cols-sm-${e.smcols} cols-md-${e.mdcols}`)
|
|
1339
1329
|
}, [
|
|
1340
|
-
(o(!0), l(
|
|
1330
|
+
(o(!0), l(S, null, x(e.items, (i, f) => (o(), l("a", {
|
|
1341
1331
|
key: f,
|
|
1342
1332
|
href: "#carousel" + h.id + "slide" + (f + 1),
|
|
1343
1333
|
class: v(`control-${f + 1}`)
|
|
1344
|
-
}, "Slide " + w(f + 1), 11,
|
|
1334
|
+
}, "Slide " + w(f + 1), 11, Vt))), 128))
|
|
1345
1335
|
], 2),
|
|
1346
|
-
|
|
1347
|
-
|
|
1336
|
+
Ot,
|
|
1337
|
+
Ft
|
|
1348
1338
|
])
|
|
1349
1339
|
], 8, Dt);
|
|
1350
1340
|
}
|
|
1351
|
-
const xi = /* @__PURE__ */ g(Nt, [["render",
|
|
1352
|
-
const
|
|
1341
|
+
const xi = /* @__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"], Et = { key: 0 }, Rt = ["srcset"], Qt = /* @__PURE__ */ s("img", {
|
|
1365
1355
|
src: "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
|
|
1366
1356
|
alt: ""
|
|
1367
1357
|
}, null, -1);
|
|
1368
|
-
function Yt(e, n, t,
|
|
1369
|
-
return o(), l("header",
|
|
1370
|
-
s("div",
|
|
1371
|
-
m(" Space for a breadcrumb trail "),
|
|
1358
|
+
function Yt(e, n, t, d, h, a) {
|
|
1359
|
+
return o(), l("header", Kt, [
|
|
1360
|
+
s("div", Ut, [
|
|
1372
1361
|
b(e.$slots, "breadcrumb"),
|
|
1373
1362
|
s("div", Gt, [
|
|
1374
|
-
s("h1", { innerHTML: t.title }, null, 8,
|
|
1363
|
+
s("h1", { innerHTML: t.title }, null, 8, Zt),
|
|
1375
1364
|
b(e.$slots, "default")
|
|
1376
1365
|
])
|
|
1377
1366
|
]),
|
|
1378
|
-
t.image ? (o(), l("picture",
|
|
1379
|
-
m(" Actual image only loaded on desktops "),
|
|
1367
|
+
t.image ? (o(), l("picture", Et, [
|
|
1380
1368
|
s("source", {
|
|
1381
1369
|
srcset: t.image,
|
|
1382
1370
|
media: "(min-width: 62em)"
|
|
1383
|
-
}, null, 8,
|
|
1384
|
-
m(" Placeholder image "),
|
|
1371
|
+
}, null, 8, Rt),
|
|
1385
1372
|
Qt
|
|
1386
|
-
])) :
|
|
1373
|
+
])) : p("", !0)
|
|
1387
1374
|
]);
|
|
1388
1375
|
}
|
|
1389
|
-
const qi = /* @__PURE__ */ g(
|
|
1376
|
+
const qi = /* @__PURE__ */ g(Wt, [["render", Yt]]);
|
|
1390
1377
|
function Jt(e) {
|
|
1391
1378
|
var n;
|
|
1392
|
-
const t = e.querySelector(".testimonial__images"),
|
|
1393
|
-
if (
|
|
1379
|
+
const t = e.querySelector(".testimonial__images"), d = t.querySelectorAll("img").length;
|
|
1380
|
+
if (d == 1)
|
|
1394
1381
|
return !1;
|
|
1395
1382
|
e.classList.add("testimonial--multi");
|
|
1396
1383
|
const h = function(a) {
|
|
1397
1384
|
const r = e.querySelector(".btn-next"), i = e.querySelector(".btn-prev");
|
|
1398
|
-
r.setAttribute("data-go", a + 1), i.setAttribute("data-go", a - 1), r.removeAttribute("disabled"), i.removeAttribute("disabled"), a == 1 ? i.setAttribute("disabled", !0) : a ==
|
|
1385
|
+
r.setAttribute("data-go", a + 1), i.setAttribute("data-go", a - 1), r.removeAttribute("disabled"), i.removeAttribute("disabled"), a == 1 ? i.setAttribute("disabled", !0) : a == d && r.setAttribute("disabled", !0);
|
|
1399
1386
|
};
|
|
1400
1387
|
t.addEventListener("scroll", function(a) {
|
|
1401
1388
|
clearTimeout(n), n = setTimeout(function() {
|
|
1402
|
-
let r = t.scrollWidth, i = t.scrollHeight, f = t.scrollLeft,
|
|
1403
|
-
f == 0 &&
|
|
1389
|
+
let r = t.scrollWidth, i = t.scrollHeight, f = t.scrollLeft, $ = t.scrollTop, q = Math.round(f / r * d) + 1;
|
|
1390
|
+
f == 0 && $ != 0 && (q = Math.round($ / i * d) + 1), e.setAttribute("data-show", q), h(q);
|
|
1404
1391
|
}, 300);
|
|
1405
1392
|
}, !1), e.addEventListener("click", function(a) {
|
|
1406
1393
|
for (var r = a.target; r && r != this; r = r.parentNode)
|
|
1407
1394
|
if (r.matches("[data-go]")) {
|
|
1408
|
-
let i = parseInt(r.getAttribute("data-go")), f = 0,
|
|
1409
|
-
q > M ?
|
|
1395
|
+
let i = parseInt(r.getAttribute("data-go")), f = 0, $ = 0, q = t.scrollWidth, M = t.scrollHeight;
|
|
1396
|
+
q > M ? $ = Math.floor(q * ((i - 1) / d)) : f = Math.floor(M * ((i - 1) / d)), t.scroll({
|
|
1410
1397
|
top: f,
|
|
1411
|
-
left:
|
|
1398
|
+
left: $,
|
|
1412
1399
|
behavior: "smooth"
|
|
1413
1400
|
});
|
|
1414
1401
|
break;
|
|
@@ -1445,8 +1432,8 @@ const Xt = {
|
|
|
1445
1432
|
"data-go": "2",
|
|
1446
1433
|
class: "btn-next"
|
|
1447
1434
|
}, "Next")
|
|
1448
|
-
], -1), rs = { class: "col-md-7" }, os = /* @__PURE__ */ s("h2", null, "What our customers think
|
|
1449
|
-
function hs(e, n, t,
|
|
1435
|
+
], -1), rs = { class: "col-md-7" }, os = /* @__PURE__ */ s("h2", null, "What our customers think…", -1), ls = { class: "testimonial__content" }, ds = ["innerHTML"], cs = ["innerHTML"], us = { class: "testimonial__after" }, fs = /* @__PURE__ */ s("span", { class: "circle circle--dots d-none d-md-block" }, null, -1);
|
|
1436
|
+
function hs(e, n, t, d, h, a) {
|
|
1450
1437
|
return o(), l("div", es, [
|
|
1451
1438
|
s("div", {
|
|
1452
1439
|
class: v("bg-" + t.background)
|
|
@@ -1454,7 +1441,7 @@ function hs(e, n, t, c, h, a) {
|
|
|
1454
1441
|
s("div", ts, [
|
|
1455
1442
|
s("div", ss, [
|
|
1456
1443
|
s("div", as, [
|
|
1457
|
-
(o(!0), l(
|
|
1444
|
+
(o(!0), l(S, null, x(t.items, (r, i) => (o(), l("img", {
|
|
1458
1445
|
key: i,
|
|
1459
1446
|
src: r.image ? r.image : "data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",
|
|
1460
1447
|
alt: "",
|
|
@@ -1466,16 +1453,16 @@ function hs(e, n, t, c, h, a) {
|
|
|
1466
1453
|
s("div", rs, [
|
|
1467
1454
|
os,
|
|
1468
1455
|
s("div", ls, [
|
|
1469
|
-
(o(!0), l(
|
|
1456
|
+
(o(!0), l(S, null, x(t.items, (r, i) => (o(), l("blockquote", {
|
|
1470
1457
|
key: i,
|
|
1471
1458
|
class: v(r.class)
|
|
1472
1459
|
}, [
|
|
1473
1460
|
s("div", {
|
|
1474
1461
|
innerHTML: r.quote
|
|
1475
|
-
}, null, 8,
|
|
1462
|
+
}, null, 8, ds),
|
|
1476
1463
|
s("cite", {
|
|
1477
1464
|
innerHTML: r.cite
|
|
1478
|
-
}, null, 8,
|
|
1465
|
+
}, null, 8, cs)
|
|
1479
1466
|
], 2))), 128))
|
|
1480
1467
|
]),
|
|
1481
1468
|
s("div", us, [
|
|
@@ -1487,10 +1474,10 @@ function hs(e, n, t, c, h, a) {
|
|
|
1487
1474
|
], 2)
|
|
1488
1475
|
], 512);
|
|
1489
1476
|
}
|
|
1490
|
-
const Li = /* @__PURE__ */ g(Xt, [["render", hs]
|
|
1477
|
+
const Li = /* @__PURE__ */ g(Xt, [["render", hs]]);
|
|
1491
1478
|
const ms = {
|
|
1492
1479
|
components: {
|
|
1493
|
-
Input:
|
|
1480
|
+
Input: I
|
|
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,24 +1624,24 @@ 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" }, $s = /* @__PURE__ */ s("span", { class: "form-label d-none d-md-block" }, "Number of beds", -1), As = {
|
|
1644
1631
|
class: "row",
|
|
1645
1632
|
"data-input-range": ""
|
|
1646
|
-
},
|
|
1633
|
+
}, Ss = { class: "col-12 col-md-2" }, xs = /* @__PURE__ */ s("div", { class: "col-12 col-md mw-md-fit-content d-flex property-searchbar__btn" }, [
|
|
1647
1634
|
/* @__PURE__ */ s("button", {
|
|
1648
1635
|
class: "btn w-100 me-0",
|
|
1649
1636
|
type: "submit",
|
|
1650
1637
|
value: "submit"
|
|
1651
1638
|
}, "Search")
|
|
1652
1639
|
], -1);
|
|
1653
|
-
function qs(e, n, t,
|
|
1640
|
+
function qs(e, n, t, d, h, a) {
|
|
1654
1641
|
const r = C("Input");
|
|
1655
1642
|
return o(), l("div", _s, [
|
|
1656
1643
|
b(e.$slots, "default"),
|
|
1657
|
-
s("div",
|
|
1644
|
+
s("div", ys, [
|
|
1658
1645
|
s("form", {
|
|
1659
1646
|
class: "row",
|
|
1660
1647
|
action: t.formaction,
|
|
@@ -1703,7 +1690,7 @@ function qs(e, n, t, c, h, a) {
|
|
|
1703
1690
|
])
|
|
1704
1691
|
]),
|
|
1705
1692
|
s("fieldset", ks, [
|
|
1706
|
-
|
|
1693
|
+
$s,
|
|
1707
1694
|
s("div", As, [
|
|
1708
1695
|
A(r, {
|
|
1709
1696
|
class: "col-6",
|
|
@@ -1723,7 +1710,7 @@ function qs(e, n, t, c, h, a) {
|
|
|
1723
1710
|
}, null, 8, ["options"])
|
|
1724
1711
|
])
|
|
1725
1712
|
]),
|
|
1726
|
-
s("fieldset",
|
|
1713
|
+
s("fieldset", Ss, [
|
|
1727
1714
|
A(r, {
|
|
1728
1715
|
label: "Property type",
|
|
1729
1716
|
id: "property-type",
|
|
@@ -1732,16 +1719,16 @@ 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
|
b(e.$slots, "after")
|
|
1738
1725
|
], 512);
|
|
1739
1726
|
}
|
|
1740
|
-
const Ti = /* @__PURE__ */ g(ms, [["render", qs]
|
|
1727
|
+
const Ti = /* @__PURE__ */ g(ms, [["render", qs]]), Ls = (e) => {
|
|
1741
1728
|
Array.from(e.querySelectorAll("details")).forEach((n, t) => {
|
|
1742
|
-
n.addEventListener("mouseenter", function(
|
|
1729
|
+
n.addEventListener("mouseenter", function(d) {
|
|
1743
1730
|
window.matchMedia("(min-width: 62em)").matches && n.setAttribute("open", "true");
|
|
1744
|
-
}, !1), n.addEventListener("mouseleave", function(
|
|
1731
|
+
}, !1), n.addEventListener("mouseleave", function(d) {
|
|
1745
1732
|
window.matchMedia("(min-width: 62em)").matches && n.removeAttribute("open");
|
|
1746
1733
|
}, !1);
|
|
1747
1734
|
}), "IntersectionObserver" in window && new IntersectionObserver(
|
|
@@ -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: I,
|
|
1755
1742
|
Logo: ue,
|
|
1756
1743
|
Icon: re
|
|
1757
1744
|
},
|
|
@@ -1841,30 +1828,30 @@ const Ts = {
|
|
|
1841
1828
|
name: "showAccount",
|
|
1842
1829
|
id: "showAccount",
|
|
1843
1830
|
class: "d-none"
|
|
1844
|
-
}, null, -1), Ns = { class: "nav__mobile-bar" }, Ds = { class: "container" }, Bs = { class: "row" },
|
|
1831
|
+
}, null, -1), Ns = { class: "nav__mobile-bar" }, Ds = { class: "container" }, Bs = { class: "row" }, Ps = {
|
|
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"
|
|
@@ -1885,9 +1872,9 @@ const Ts = {
|
|
|
1885
1872
|
class: "icon__outline"
|
|
1886
1873
|
})
|
|
1887
1874
|
])
|
|
1888
|
-
], -1),
|
|
1889
|
-
|
|
1890
|
-
],
|
|
1875
|
+
], -1), Es = [
|
|
1876
|
+
Zs
|
|
1877
|
+
], Rs = /* @__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
1879
|
], -1), Qs = { class: "col-12 col-md nav__menu ms-auto flex-row align-items-center" }, Ys = {
|
|
1893
1880
|
key: 3,
|
|
@@ -1921,7 +1908,7 @@ const Ts = {
|
|
|
1921
1908
|
}, na = { class: "bg-gradient pt-4" }, ra = { class: "container" }, oa = {
|
|
1922
1909
|
key: 0,
|
|
1923
1910
|
class: "nav__menu--account"
|
|
1924
|
-
}, la = { class: "container" },
|
|
1911
|
+
}, la = { class: "container" }, da = { class: "row mb-4" }, ca = {
|
|
1925
1912
|
key: 0,
|
|
1926
1913
|
class: "col mw-md-fit-content nav__logo"
|
|
1927
1914
|
}, ua = {
|
|
@@ -1933,7 +1920,7 @@ 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
|
|
1923
|
+
function ya(e, n, t, d, h, a) {
|
|
1937
1924
|
const r = C("Logo");
|
|
1938
1925
|
return o(), l("nav", {
|
|
1939
1926
|
class: v(`nav${a.hasSecondarySlot ? " has-secondary" : ""}`),
|
|
@@ -1942,14 +1929,13 @@ function pa(e, n, t, c, h, a) {
|
|
|
1942
1929
|
Ms,
|
|
1943
1930
|
Cs,
|
|
1944
1931
|
Hs,
|
|
1945
|
-
m(" Mobile bar "),
|
|
1946
1932
|
s("div", Ns, [
|
|
1947
1933
|
s("div", Ds, [
|
|
1948
1934
|
s("div", Bs, [
|
|
1949
|
-
a.hasLogoSlot ? (o(), l("div",
|
|
1935
|
+
a.hasLogoSlot ? (o(), l("div", Ps, [
|
|
1950
1936
|
b(e.$slots, "logo")
|
|
1951
|
-
])) : (o(), l("div",
|
|
1952
|
-
s("a",
|
|
1937
|
+
])) : (o(), l("div", Is, [
|
|
1938
|
+
s("a", zs, [
|
|
1953
1939
|
A(r, {
|
|
1954
1940
|
id: t.logo,
|
|
1955
1941
|
path: t.logopath,
|
|
@@ -1958,17 +1944,17 @@ 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 ? (o(), l("div",
|
|
1951
|
+
s("div", Os, [
|
|
1952
|
+
s("div", Fs, [
|
|
1953
|
+
s("div", js, [
|
|
1954
|
+
a.hasLogoSlot ? (o(), l("div", Ws, [
|
|
1969
1955
|
b(e.$slots, "logo")
|
|
1970
|
-
])) : (o(), l("div",
|
|
1971
|
-
s("a",
|
|
1956
|
+
])) : (o(), l("div", Ks, [
|
|
1957
|
+
s("a", Us, [
|
|
1972
1958
|
A(r, {
|
|
1973
1959
|
id: t.logo,
|
|
1974
1960
|
path: t.logopath,
|
|
@@ -1977,39 +1963,38 @@ function pa(e, n, t, c, h, a) {
|
|
|
1977
1963
|
}, null, 8, ["id", "path", "desc"])
|
|
1978
1964
|
])
|
|
1979
1965
|
])),
|
|
1980
|
-
a.hasSearchSlot ? (o(), l("div", Gs,
|
|
1981
|
-
|
|
1982
|
-
m(" Main menu "),
|
|
1966
|
+
a.hasSearchSlot ? (o(), l("div", Gs, Es)) : p("", !0),
|
|
1967
|
+
Rs,
|
|
1983
1968
|
s("div", Qs, [
|
|
1984
1969
|
b(e.$slots, "default")
|
|
1985
1970
|
]),
|
|
1986
|
-
a.hasAccountSlot ? (o(), l("div", Ys, Xs)) :
|
|
1971
|
+
a.hasAccountSlot ? (o(), l("div", Ys, Xs)) : p("", !0),
|
|
1987
1972
|
t.btnlink ? (o(), l("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
1981
|
a.hasSecondarySlot ? (o(), l("div", sa, [
|
|
1997
1982
|
s("div", aa, [
|
|
1998
1983
|
b(e.$slots, "secondary")
|
|
1999
1984
|
])
|
|
2000
|
-
])) :
|
|
1985
|
+
])) : p("", !0),
|
|
2001
1986
|
a.hasSearchSlot ? (o(), l("div", ia, [
|
|
2002
1987
|
s("div", na, [
|
|
2003
1988
|
s("div", ra, [
|
|
2004
1989
|
b(e.$slots, "search")
|
|
2005
1990
|
])
|
|
2006
1991
|
])
|
|
2007
|
-
])) :
|
|
1992
|
+
])) : p("", !0)
|
|
2008
1993
|
]),
|
|
2009
1994
|
a.hasAccountSlot ? (o(), l("div", oa, [
|
|
2010
1995
|
s("div", la, [
|
|
2011
|
-
s("div",
|
|
2012
|
-
a.hasLogoSlot ? (o(), l("div",
|
|
1996
|
+
s("div", da, [
|
|
1997
|
+
a.hasLogoSlot ? (o(), l("div", ca, [
|
|
2013
1998
|
b(e.$slots, "logo")
|
|
2014
1999
|
])) : (o(), l("div", ua, [
|
|
2015
2000
|
s("a", fa, [
|
|
@@ -2027,14 +2012,14 @@ function pa(e, n, t, c, h, a) {
|
|
|
2027
2012
|
s("div", ma, [
|
|
2028
2013
|
b(e.$slots, "account")
|
|
2029
2014
|
])
|
|
2030
|
-
])) :
|
|
2015
|
+
])) : p("", !0),
|
|
2031
2016
|
_a
|
|
2032
2017
|
], 2);
|
|
2033
2018
|
}
|
|
2034
|
-
const Mi = /* @__PURE__ */ g(Ts, [["render",
|
|
2019
|
+
const Mi = /* @__PURE__ */ g(Ts, [["render", ya]]), pa = (e) => {
|
|
2035
2020
|
const n = new IntersectionObserver(
|
|
2036
|
-
function([
|
|
2037
|
-
|
|
2021
|
+
function([d]) {
|
|
2022
|
+
d.target.classList.toggle("in-view", d.intersectionRatio > 0), document.getElementById("showDrawer").checked = !1;
|
|
2038
2023
|
},
|
|
2039
2024
|
{ threshold: [1] }
|
|
2040
2025
|
), t = document.getElementById("drawer-end");
|
|
@@ -2053,7 +2038,7 @@ const ba = {
|
|
|
2053
2038
|
let e = this.$refs.wrapper;
|
|
2054
2039
|
const n = document.createDocumentFragment();
|
|
2055
2040
|
Array.from(e.childNodes).forEach((t) => n.appendChild(t)), e.parentNode.insertBefore(n, e), e.parentNode.removeChild(e), this.$nextTick(function() {
|
|
2056
|
-
|
|
2041
|
+
pa(this.$refs.drawer);
|
|
2057
2042
|
});
|
|
2058
2043
|
});
|
|
2059
2044
|
}
|
|
@@ -2062,43 +2047,43 @@ const ba = {
|
|
|
2062
2047
|
name: "showDrawer",
|
|
2063
2048
|
id: "showDrawer",
|
|
2064
2049
|
class: "d-none"
|
|
2065
|
-
}, null, -1), wa = { class: "drawer__btn pb-0" }, ka = { class: "container text-end pb-0" },
|
|
2050
|
+
}, null, -1), wa = { class: "drawer__btn pb-0" }, ka = { class: "container text-end pb-0" }, $a = {
|
|
2066
2051
|
for: "showDrawer",
|
|
2067
2052
|
class: "btn btn-secondary me-0"
|
|
2068
2053
|
}, Aa = {
|
|
2069
2054
|
class: "drawer",
|
|
2070
2055
|
id: "drawer",
|
|
2071
2056
|
ref: "drawer"
|
|
2072
|
-
},
|
|
2057
|
+
}, Sa = /* @__PURE__ */ s("div", { class: "container text-end pb-0" }, [
|
|
2073
2058
|
/* @__PURE__ */ s("label", {
|
|
2074
2059
|
for: "showDrawer",
|
|
2075
2060
|
class: "btn btn-tertiary mb-0 me-0 py-1 px-2"
|
|
2076
2061
|
}, [
|
|
2077
2062
|
/* @__PURE__ */ s("span", { class: "visually-hidden" }, "Close"),
|
|
2078
|
-
/* @__PURE__ */
|
|
2063
|
+
/* @__PURE__ */ P("✕")
|
|
2079
2064
|
])
|
|
2080
2065
|
], -1), xa = /* @__PURE__ */ s("hr", { id: "drawer-end" }, null, -1);
|
|
2081
|
-
function qa(e, n, t,
|
|
2066
|
+
function qa(e, n, t, d, h, a) {
|
|
2082
2067
|
return o(), l("div", va, [
|
|
2083
2068
|
ga,
|
|
2084
2069
|
s("div", wa, [
|
|
2085
2070
|
s("div", ka, [
|
|
2086
|
-
s("label",
|
|
2071
|
+
s("label", $a, w(t.label), 1)
|
|
2087
2072
|
])
|
|
2088
2073
|
]),
|
|
2089
2074
|
s("div", Aa, [
|
|
2090
|
-
|
|
2075
|
+
Sa,
|
|
2091
2076
|
b(e.$slots, "default")
|
|
2092
2077
|
], 512),
|
|
2093
2078
|
xa
|
|
2094
2079
|
], 512);
|
|
2095
2080
|
}
|
|
2096
|
-
const Ci = /* @__PURE__ */ g(ba, [["render", qa]
|
|
2097
|
-
const n = e.querySelectorAll(".modal__outer a, .modal__outer button"), t = n[0],
|
|
2081
|
+
const Ci = /* @__PURE__ */ g(ba, [["render", qa]]), La = (e) => {
|
|
2082
|
+
const n = e.querySelectorAll(".modal__outer a, .modal__outer button"), t = n[0], d = n[n.length - 1], h = e.getAttribute("id"), a = function() {
|
|
2098
2083
|
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
2084
|
};
|
|
2100
2085
|
e.addEventListener("keydown", function(i) {
|
|
2101
|
-
i.key === "Tab" && i.shiftKey && document.activeElement == t ? (i.preventDefault(),
|
|
2086
|
+
i.key === "Tab" && i.shiftKey && document.activeElement == t ? (i.preventDefault(), d.focus()) : i.key === "Tab" && !i.shiftKey && document.activeElement == d && (i.preventDefault(), t.focus());
|
|
2102
2087
|
}), document.addEventListener("keydown", function(i) {
|
|
2103
2088
|
i.key === "Escape" && document.querySelector(".modal:target") && a();
|
|
2104
2089
|
}), e.addEventListener("click", function(i) {
|
|
@@ -2143,14 +2128,14 @@ const Ta = {
|
|
|
2143
2128
|
}
|
|
2144
2129
|
}, Ma = ["id"], Ca = ["href"], Ha = /* @__PURE__ */ s("span", { class: "visually-hidden" }, "Close", -1), Na = [
|
|
2145
2130
|
Ha
|
|
2146
|
-
], Da = { class: "modal__outer" }, Ba = ["href"],
|
|
2131
|
+
], Da = { class: "modal__outer" }, Ba = ["href"], Pa = /* @__PURE__ */ s("span", { class: "visually-hidden" }, "Close", -1), Ia = { class: "modal__inner" }, za = /* @__PURE__ */ s("button", {
|
|
2147
2132
|
class: "modal__dock--left btn btn-prev",
|
|
2148
2133
|
tabindex: "-1"
|
|
2149
|
-
}, "Left", -1),
|
|
2134
|
+
}, "Left", -1), Va = /* @__PURE__ */ s("button", {
|
|
2150
2135
|
class: "modal__dock--right btn btn-next",
|
|
2151
2136
|
tabindex: "-1"
|
|
2152
2137
|
}, "Right", -1);
|
|
2153
|
-
function
|
|
2138
|
+
function Oa(e, n, t, d, h, a) {
|
|
2154
2139
|
return o(), l("div", {
|
|
2155
2140
|
class: "modal",
|
|
2156
2141
|
id: t.id,
|
|
@@ -2167,19 +2152,19 @@ function Fa(e, n, t, c, h, a) {
|
|
|
2167
2152
|
href: `#${t.returnid ? t.returnid : ""}`,
|
|
2168
2153
|
class: "btn btn-tertiary py-1 px-2"
|
|
2169
2154
|
}, [
|
|
2170
|
-
|
|
2171
|
-
|
|
2155
|
+
Pa,
|
|
2156
|
+
P("✕")
|
|
2172
2157
|
], 8, Ba),
|
|
2173
|
-
s("div",
|
|
2158
|
+
s("div", Ia, [
|
|
2174
2159
|
b(e.$slots, "default")
|
|
2175
2160
|
])
|
|
2176
2161
|
]),
|
|
2177
|
-
|
|
2178
|
-
|
|
2162
|
+
za,
|
|
2163
|
+
Va
|
|
2179
2164
|
], 8, Ma);
|
|
2180
2165
|
}
|
|
2181
|
-
const Hi = /* @__PURE__ */ g(Ta, [["render",
|
|
2182
|
-
const
|
|
2166
|
+
const Hi = /* @__PURE__ */ g(Ta, [["render", Oa]]);
|
|
2167
|
+
const Fa = {
|
|
2183
2168
|
name: "Stepper",
|
|
2184
2169
|
props: {
|
|
2185
2170
|
label: {
|
|
@@ -2192,27 +2177,25 @@ const za = {
|
|
|
2192
2177
|
default: "Complete"
|
|
2193
2178
|
}
|
|
2194
2179
|
}
|
|
2195
|
-
},
|
|
2180
|
+
}, ja = { class: "container" }, Wa = ["aria-label"], Ka = {
|
|
2196
2181
|
key: 0,
|
|
2197
2182
|
class: "h6 stepper__start"
|
|
2198
|
-
},
|
|
2199
|
-
function
|
|
2200
|
-
return o(), l("div",
|
|
2183
|
+
}, Ua = { class: "list-unstyled" }, Ga = { class: "h6 stepper__end" };
|
|
2184
|
+
function Za(e, n, t, d, h, a) {
|
|
2185
|
+
return o(), l("div", ja, [
|
|
2201
2186
|
s("nav", {
|
|
2202
2187
|
class: "stepper",
|
|
2203
2188
|
"aria-label": t.label ? t.label : "Progress"
|
|
2204
2189
|
}, [
|
|
2205
|
-
t.label ? (o(), l("span",
|
|
2206
|
-
s("ol",
|
|
2207
|
-
b(e.$slots, "default"
|
|
2208
|
-
m(" Use for titles etc ")
|
|
2209
|
-
])
|
|
2190
|
+
t.label ? (o(), l("span", Ka, w(t.label), 1)) : p("", !0),
|
|
2191
|
+
s("ol", Ua, [
|
|
2192
|
+
b(e.$slots, "default")
|
|
2210
2193
|
]),
|
|
2211
2194
|
s("span", Ga, w(t.endlabel), 1)
|
|
2212
|
-
], 8,
|
|
2195
|
+
], 8, Wa)
|
|
2213
2196
|
]);
|
|
2214
2197
|
}
|
|
2215
|
-
const Ni = /* @__PURE__ */ g(
|
|
2198
|
+
const Ni = /* @__PURE__ */ g(Fa, [["render", Za]]), Ea = {
|
|
2216
2199
|
name: "Stepper",
|
|
2217
2200
|
props: {
|
|
2218
2201
|
url: {
|
|
@@ -2228,11 +2211,11 @@ const Ni = /* @__PURE__ */ g(za, [["render", Ea], ["__file", "/Users/james/works
|
|
|
2228
2211
|
required: !1
|
|
2229
2212
|
}
|
|
2230
2213
|
}
|
|
2231
|
-
},
|
|
2214
|
+
}, Ra = ["href", "aria-current"], Qa = {
|
|
2232
2215
|
key: 0,
|
|
2233
2216
|
class: "visually-hidden"
|
|
2234
2217
|
};
|
|
2235
|
-
function Ya(e, n, t,
|
|
2218
|
+
function Ya(e, n, t, d, h, a) {
|
|
2236
2219
|
return o(), l("li", null, [
|
|
2237
2220
|
s("a", {
|
|
2238
2221
|
href: t.url,
|
|
@@ -2242,11 +2225,11 @@ function Ya(e, n, t, c, h, a) {
|
|
|
2242
2225
|
s("span", null, [
|
|
2243
2226
|
b(e.$slots, "default")
|
|
2244
2227
|
]),
|
|
2245
|
-
t.status ? (o(), l("em", Qa, " - status: " + w(t.status), 1)) :
|
|
2246
|
-
], 10,
|
|
2228
|
+
t.status ? (o(), l("em", Qa, " - status: " + w(t.status), 1)) : p("", !0)
|
|
2229
|
+
], 10, Ra)
|
|
2247
2230
|
]);
|
|
2248
2231
|
}
|
|
2249
|
-
const Di = /* @__PURE__ */ g(
|
|
2232
|
+
const Di = /* @__PURE__ */ g(Ea, [["render", Ya]]);
|
|
2250
2233
|
const Ja = {
|
|
2251
2234
|
name: "Tabs",
|
|
2252
2235
|
data() {
|
|
@@ -2259,9 +2242,9 @@ const Ja = {
|
|
|
2259
2242
|
return () => {
|
|
2260
2243
|
const e = [];
|
|
2261
2244
|
let n = 1;
|
|
2262
|
-
for (const [t,
|
|
2263
|
-
if (
|
|
2264
|
-
let h =
|
|
2245
|
+
for (const [t, d] of Object.entries(this.$slots.default()))
|
|
2246
|
+
if (d.props && d.props.title) {
|
|
2247
|
+
let h = d.props.title, a = {
|
|
2265
2248
|
name: this.tabsID,
|
|
2266
2249
|
id: this.tabsID + "_tab" + n++,
|
|
2267
2250
|
tabTitle: h
|
|
@@ -2275,17 +2258,17 @@ const Ja = {
|
|
|
2275
2258
|
methods: {
|
|
2276
2259
|
openTab: function(e) {
|
|
2277
2260
|
let n = 0;
|
|
2278
|
-
for (const [t,
|
|
2279
|
-
|
|
2261
|
+
for (const [t, d] of Object.entries(this.$slots.default()))
|
|
2262
|
+
d.props && d.props.title && (n == e && (console.log(d), d.type.data().show = !0), n++);
|
|
2280
2263
|
}
|
|
2281
2264
|
}
|
|
2282
2265
|
}, Xa = {
|
|
2283
2266
|
class: "container tabs__container",
|
|
2284
2267
|
ref: "wrapper"
|
|
2285
2268
|
}, ei = ["data-key", "name", "id", "checked"], ti = { class: "tabs__links" }, si = ["for", "onClick"], ai = { class: "tabs" };
|
|
2286
|
-
function ii(e, n, t,
|
|
2269
|
+
function ii(e, n, t, d, h, a) {
|
|
2287
2270
|
return o(), l("div", Xa, [
|
|
2288
|
-
(o(!0), l(
|
|
2271
|
+
(o(!0), l(S, null, x(a.tabLinks(), (r, i) => (o(), l("input", {
|
|
2289
2272
|
type: "radio",
|
|
2290
2273
|
class: "tab__input",
|
|
2291
2274
|
key: i,
|
|
@@ -2295,7 +2278,7 @@ function ii(e, n, t, c, h, a) {
|
|
|
2295
2278
|
checked: i == 0
|
|
2296
2279
|
}, null, 8, ei))), 128)),
|
|
2297
2280
|
s("div", ti, [
|
|
2298
|
-
(o(!0), l(
|
|
2281
|
+
(o(!0), l(S, null, x(a.tabLinks(), (r, i) => (o(), l("label", {
|
|
2299
2282
|
key: i,
|
|
2300
2283
|
for: r.id,
|
|
2301
2284
|
class: "link",
|
|
@@ -2307,7 +2290,7 @@ function ii(e, n, t, c, h, a) {
|
|
|
2307
2290
|
])
|
|
2308
2291
|
], 512);
|
|
2309
2292
|
}
|
|
2310
|
-
const Bi = /* @__PURE__ */ g(Ja, [["render", ii]
|
|
2293
|
+
const Bi = /* @__PURE__ */ g(Ja, [["render", ii]]), ni = {
|
|
2311
2294
|
name: "Tab",
|
|
2312
2295
|
props: {
|
|
2313
2296
|
title: {
|
|
@@ -2333,16 +2316,16 @@ const Bi = /* @__PURE__ */ g(Ja, [["render", ii], ["__file", "/Users/james/works
|
|
|
2333
2316
|
key: 0,
|
|
2334
2317
|
class: "tab"
|
|
2335
2318
|
};
|
|
2336
|
-
function oi(e, n, t,
|
|
2319
|
+
function oi(e, n, t, d, h, a) {
|
|
2337
2320
|
return h.show ? (o(), l("div", ri, [
|
|
2338
2321
|
b(e.$slots, "default")
|
|
2339
|
-
])) :
|
|
2322
|
+
])) : p("", !0);
|
|
2340
2323
|
}
|
|
2341
|
-
const
|
|
2324
|
+
const Pi = /* @__PURE__ */ g(ni, [["render", oi]]);
|
|
2342
2325
|
function li(e) {
|
|
2343
2326
|
if (e.addEventListener("click", function(t) {
|
|
2344
|
-
for (var
|
|
2345
|
-
if (
|
|
2327
|
+
for (var d = t.target; d && d != this; d = d.parentNode)
|
|
2328
|
+
if (d.matches(".btn-close")) {
|
|
2346
2329
|
t.preventDefault(), e.classList.remove("show"), setTimeout(function() {
|
|
2347
2330
|
e.remove();
|
|
2348
2331
|
}, 300);
|
|
@@ -2364,7 +2347,7 @@ function li(e) {
|
|
|
2364
2347
|
let n = document.querySelector(".alert__holder");
|
|
2365
2348
|
e.classList.contains("alert--fixed") && !e.parentNode.classList.contains("alert__wrapper") && n.appendChild(e);
|
|
2366
2349
|
}
|
|
2367
|
-
const
|
|
2350
|
+
const di = {
|
|
2368
2351
|
name: "Alert",
|
|
2369
2352
|
props: {
|
|
2370
2353
|
dismissible: {
|
|
@@ -2385,14 +2368,14 @@ const ci = {
|
|
|
2385
2368
|
mounted() {
|
|
2386
2369
|
li(this.$refs.wrapper);
|
|
2387
2370
|
}
|
|
2388
|
-
},
|
|
2371
|
+
}, ci = ["data-timeout"], ui = {
|
|
2389
2372
|
key: 0,
|
|
2390
2373
|
type: "button",
|
|
2391
2374
|
class: "btn-close",
|
|
2392
2375
|
"data-bs-dismiss": "alert",
|
|
2393
2376
|
"aria-label": "Close"
|
|
2394
2377
|
};
|
|
2395
|
-
function fi(e, n, t,
|
|
2378
|
+
function fi(e, n, t, d, h, a) {
|
|
2396
2379
|
return o(), l("div", {
|
|
2397
2380
|
class: v(`container alert pb-0 ${t.dismissible ? "alert--dismissible fade show" : ""}`),
|
|
2398
2381
|
ref: "wrapper",
|
|
@@ -2403,32 +2386,33 @@ function fi(e, n, t, c, h, a) {
|
|
|
2403
2386
|
class: v(`alert__inner bg-${t.colour}`),
|
|
2404
2387
|
role: "alert"
|
|
2405
2388
|
}, [
|
|
2406
|
-
t.dismissible ? (o(), l("button", ui)) :
|
|
2389
|
+
t.dismissible ? (o(), l("button", ui)) : p("", !0),
|
|
2407
2390
|
b(e.$slots, "default")
|
|
2408
2391
|
], 2)
|
|
2409
|
-
], 14,
|
|
2392
|
+
], 14, ci);
|
|
2410
2393
|
}
|
|
2411
|
-
const
|
|
2412
|
-
let Q =
|
|
2394
|
+
const Ii = /* @__PURE__ */ g(di, [["render", fi]]);
|
|
2395
|
+
let Q = E.props;
|
|
2413
2396
|
Q.fields.required = !1;
|
|
2414
2397
|
const hi = {
|
|
2415
2398
|
components: {
|
|
2416
|
-
Table:
|
|
2417
|
-
Input:
|
|
2399
|
+
Table: E,
|
|
2400
|
+
Input: I
|
|
2418
2401
|
},
|
|
2419
2402
|
data() {
|
|
2420
2403
|
return {
|
|
2421
2404
|
itemsData: [...this.items]
|
|
2405
|
+
// Redefine data to avoid bleeding of data to other components
|
|
2422
2406
|
};
|
|
2423
2407
|
},
|
|
2424
2408
|
methods: {
|
|
2425
2409
|
submitForm: function(e) {
|
|
2426
2410
|
console.log(this);
|
|
2427
2411
|
const n = new FormData(e.target);
|
|
2428
|
-
let t = new Date();
|
|
2429
|
-
const
|
|
2412
|
+
let t = /* @__PURE__ */ new Date();
|
|
2413
|
+
const d = t.getFullYear();
|
|
2430
2414
|
let h = t.getMonth() + 1, a = t.getDate();
|
|
2431
|
-
a < 10 && (a = "0" + a), h < 10 && (h = "0" + h), t = a + "/" + h + "/" +
|
|
2415
|
+
a < 10 && (a = "0" + a), h < 10 && (h = "0" + h), t = a + "/" + h + "/" + d, this.itemsData.unshift({
|
|
2432
2416
|
date_added: t,
|
|
2433
2417
|
user: n.get("user"),
|
|
2434
2418
|
note: n.get("addNote")
|
|
@@ -2456,15 +2440,15 @@ const hi = {
|
|
|
2456
2440
|
required: !1
|
|
2457
2441
|
}
|
|
2458
2442
|
}
|
|
2459
|
-
}, mi = { class: "container note-feed mb-2" }, _i = ["innerHTML"],
|
|
2460
|
-
function vi(e, n, t,
|
|
2443
|
+
}, mi = { class: "container note-feed mb-2" }, _i = ["innerHTML"], yi = ["action", "method"], pi = ["value"], bi = /* @__PURE__ */ s("button", { class: "btn btn-tertiary" }, "Submit note", -1);
|
|
2444
|
+
function vi(e, n, t, d, h, a) {
|
|
2461
2445
|
const r = C("Table"), i = C("Input");
|
|
2462
2446
|
return o(), l("div", mi, [
|
|
2463
2447
|
t.title ? (o(), l("span", {
|
|
2464
2448
|
key: 0,
|
|
2465
2449
|
class: "h3",
|
|
2466
2450
|
innerHTML: t.title
|
|
2467
|
-
}, null, 8, _i)) :
|
|
2451
|
+
}, null, 8, _i)) : p("", !0),
|
|
2468
2452
|
A(r, T({
|
|
2469
2453
|
fields: [{ key: "date_added" }, { key: "user" }, { key: "note" }],
|
|
2470
2454
|
items: h.itemsData
|
|
@@ -2478,7 +2462,7 @@ function vi(e, n, t, c, h, a) {
|
|
|
2478
2462
|
type: "hidden",
|
|
2479
2463
|
value: t.user,
|
|
2480
2464
|
name: "user"
|
|
2481
|
-
}, null, 8,
|
|
2465
|
+
}, null, 8, pi),
|
|
2482
2466
|
A(i, {
|
|
2483
2467
|
id: "addNote",
|
|
2484
2468
|
type: "textarea",
|
|
@@ -2487,32 +2471,32 @@ function vi(e, n, t, c, h, a) {
|
|
|
2487
2471
|
class: "mw-100"
|
|
2488
2472
|
}),
|
|
2489
2473
|
bi
|
|
2490
|
-
], 40,
|
|
2474
|
+
], 40, yi)
|
|
2491
2475
|
]);
|
|
2492
2476
|
}
|
|
2493
|
-
const
|
|
2477
|
+
const zi = /* @__PURE__ */ g(hi, [["render", vi]]);
|
|
2494
2478
|
export {
|
|
2495
|
-
|
|
2479
|
+
$i as Accordion,
|
|
2496
2480
|
Ai as AccordionItem,
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2481
|
+
Ii as Alert,
|
|
2482
|
+
Si as Banner,
|
|
2483
|
+
R as Card,
|
|
2500
2484
|
Ct as CardDeck,
|
|
2501
2485
|
xi as Carousel,
|
|
2502
2486
|
Ci as Drawer,
|
|
2503
2487
|
ki as FileUploads,
|
|
2504
2488
|
qi as Header,
|
|
2505
2489
|
re as Icon,
|
|
2506
|
-
|
|
2490
|
+
I as Input,
|
|
2507
2491
|
ue as Logo,
|
|
2508
2492
|
Hi as Modal,
|
|
2509
2493
|
Mi as Nav,
|
|
2510
|
-
|
|
2494
|
+
zi as NoteFeed,
|
|
2511
2495
|
Ti as PropertySearchbar,
|
|
2512
2496
|
Di as Step,
|
|
2513
2497
|
Ni as Stepper,
|
|
2514
|
-
|
|
2515
|
-
|
|
2498
|
+
Pi as Tab,
|
|
2499
|
+
E as Table,
|
|
2516
2500
|
Bi as Tabs,
|
|
2517
2501
|
Li as Testimonial
|
|
2518
2502
|
};
|