@iamproperty/components 3.0.0 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. package/README.md +141 -16
  2. package/assets/.DS_Store +0 -0
  3. package/assets/css/core.min.css +1 -1
  4. package/assets/css/core.min.css.map +1 -1
  5. package/assets/css/email.min.css +1 -1
  6. package/assets/css/email.min.css.map +1 -1
  7. package/assets/css/error.min.css +1 -1
  8. package/assets/css/error.min.css.map +1 -1
  9. package/assets/css/style.min.css +1 -1
  10. package/assets/css/style.min.css.map +1 -1
  11. package/assets/favicons/manifest.json +31 -31
  12. package/assets/js/main.js +57 -57
  13. package/assets/js/modules/accordion.js +32 -32
  14. package/assets/js/modules/alert.js +56 -56
  15. package/assets/js/modules/carousel.js +101 -101
  16. package/assets/js/modules/chart.js +218 -218
  17. package/assets/js/modules/drawer.js +15 -15
  18. package/assets/js/modules/file-upload.js +48 -0
  19. package/assets/js/modules/form.js +168 -159
  20. package/assets/js/modules/helpers.js +119 -119
  21. package/assets/js/modules/modal.js +89 -89
  22. package/assets/js/modules/nav.js +28 -28
  23. package/assets/js/modules/orderablelist.js +122 -0
  24. package/assets/js/modules/table.js +585 -585
  25. package/assets/js/modules/testimonial.js +82 -82
  26. package/assets/js/modules/youtubevideo.js +145 -145
  27. package/assets/js/scripts.bundle.js +256 -242
  28. package/assets/js/scripts.bundle.js.map +1 -1
  29. package/assets/js/scripts.bundle.min.js +2 -2
  30. package/assets/js/scripts.bundle.min.js.map +1 -1
  31. package/assets/sass/_components.scss +14 -14
  32. package/assets/sass/_corefiles.scss +40 -40
  33. package/assets/sass/_fonts.scss +16 -16
  34. package/assets/sass/_forms.scss +9 -9
  35. package/assets/sass/_func.scss +12 -12
  36. package/assets/sass/_functions/functions.scss +141 -141
  37. package/assets/sass/_functions/mixins.scss +170 -170
  38. package/assets/sass/_functions/utilities.scss +143 -250
  39. package/assets/sass/_functions/variables.scss +467 -467
  40. package/assets/sass/_print.scss +61 -61
  41. package/assets/sass/_tests/colours.spec.scss +44 -44
  42. package/assets/sass/_tests/func.spec.scss +232 -232
  43. package/assets/sass/_tests/mixins.spec.scss +194 -194
  44. package/assets/sass/_tests/sass.spec.js +9 -9
  45. package/assets/sass/_tests/typography.spec.scss +35 -35
  46. package/assets/sass/components/accordion.scss +197 -197
  47. package/assets/sass/components/alert.scss +98 -98
  48. package/assets/sass/components/cardDeck.scss +107 -107
  49. package/assets/sass/components/carousel.scss +234 -234
  50. package/assets/sass/components/charts.scss +569 -569
  51. package/assets/sass/components/drawer.scss +46 -46
  52. package/assets/sass/components/header.scss +63 -63
  53. package/assets/sass/components/modal.scss +136 -136
  54. package/assets/sass/components/nav.scss +960 -918
  55. package/assets/sass/components/property-searchbar.scss +143 -143
  56. package/assets/sass/components/snapshot.scss +70 -70
  57. package/assets/sass/components/stepper.scss +164 -164
  58. package/assets/sass/components/tabs.scss +87 -87
  59. package/assets/sass/components/testimonial.scss +132 -132
  60. package/assets/sass/components/timeline.scss +95 -95
  61. package/assets/sass/core.scss +6 -6
  62. package/assets/sass/elements/buttons.scss +251 -209
  63. package/assets/sass/elements/card.scss +289 -177
  64. package/assets/sass/elements/container.scss +236 -225
  65. package/assets/sass/elements/forms.scss +262 -194
  66. package/assets/sass/elements/links.scss +97 -96
  67. package/assets/sass/elements/lists.scss +159 -112
  68. package/assets/sass/elements/panel.scss +161 -161
  69. package/assets/sass/elements/tables.scss +290 -290
  70. package/assets/sass/elements/tooltips.scss +84 -84
  71. package/assets/sass/elements/type.scss +136 -136
  72. package/assets/sass/email.scss +65 -65
  73. package/assets/sass/error.scss +4 -4
  74. package/assets/sass/foundations/brand.scss +76 -72
  75. package/assets/sass/foundations/circles.scss +74 -74
  76. package/assets/sass/foundations/icons.scss +80 -72
  77. package/assets/sass/foundations/media.scss +50 -50
  78. package/assets/sass/foundations/reboot.scss +130 -130
  79. package/assets/sass/foundations/root.scss +125 -106
  80. package/assets/sass/main.scss +7 -7
  81. package/assets/svg/icons.svg +598 -598
  82. package/assets/svg/logo.svg +49 -43
  83. package/assets/ts/main.js +56 -56
  84. package/assets/ts/main.ts +68 -68
  85. package/assets/ts/modules/accordion.js +32 -32
  86. package/assets/ts/modules/accordion.ts +43 -43
  87. package/dist/components.es.js +393 -379
  88. package/dist/components.umd.js +16 -16
  89. package/dist/style.css +1 -1
  90. package/package.json +96 -108
  91. package/src/.DS_Store +0 -0
  92. package/src/components/Accordion/Accordion.screenshot.vue +57 -57
  93. package/src/components/Accordion/Accordion.spec.js +63 -63
  94. package/src/components/Accordion/Accordion.vue +22 -22
  95. package/src/components/Accordion/AccordionItem.vue +52 -52
  96. package/src/components/Accordion/README.md +34 -34
  97. package/src/components/Alert/Alert.spec.js +49 -49
  98. package/src/components/Alert/Alert.vue +39 -39
  99. package/src/components/Alert/README.md +28 -28
  100. package/src/components/Banner/Banner.spec.js +28 -28
  101. package/src/components/Banner/Banner.vue +38 -38
  102. package/src/components/Banner/README.md +23 -23
  103. package/src/components/CardDeck/CardDeck.spec.js +99 -99
  104. package/src/components/CardDeck/CardDeck.vue +77 -77
  105. package/src/components/CardDeck/README.md +24 -24
  106. package/src/components/Carousel/Carousel.spec.js +45 -45
  107. package/src/components/Carousel/Carousel.vue +85 -85
  108. package/src/components/Carousel/README.md +19 -19
  109. package/src/components/Chart/Chart.spec.js +201 -201
  110. package/src/components/Chart/Chart.vue +88 -88
  111. package/src/components/Chart/README.md +17 -17
  112. package/src/components/Drawer/Drawer.vue +53 -53
  113. package/src/components/Drawer/README.md +22 -22
  114. package/src/components/Header/Header.spec.js +33 -33
  115. package/src/components/Header/Header.vue +38 -38
  116. package/src/components/Header/README.md +27 -27
  117. package/src/components/Modal/Modal.spec.js +22 -22
  118. package/src/components/Modal/Modal.vue +43 -43
  119. package/src/components/Modal/README.md +19 -19
  120. package/src/components/Nav/Nav.spec.js +35 -35
  121. package/src/components/Nav/Nav.vue +215 -215
  122. package/src/components/Nav/README.md +22 -22
  123. package/src/components/NoteFeed/NoteFeed.vue +79 -79
  124. package/src/components/NoteFeed/README.md +16 -16
  125. package/src/components/PropertySearchbar/PropertySearchbar.vue +204 -204
  126. package/src/components/PropertySearchbar/README.md +25 -25
  127. package/src/components/Snapshot/README.md +20 -20
  128. package/src/components/Snapshot/Snapshot.vue +32 -32
  129. package/src/components/Stepper/README.md +32 -32
  130. package/src/components/Stepper/Step.vue +28 -28
  131. package/src/components/Stepper/Stepper.spec.js +99 -99
  132. package/src/components/Stepper/Stepper.vue +33 -33
  133. package/src/components/Tabs/README.md +27 -27
  134. package/src/components/Tabs/Tab.vue +32 -32
  135. package/src/components/Tabs/Tabs.vue +77 -77
  136. package/src/components/Testimonial/README.md +25 -25
  137. package/src/components/Testimonial/Testimonial.spec.js +57 -57
  138. package/src/components/Testimonial/Testimonial.vue +60 -60
  139. package/src/components/Timeline/README.md +18 -18
  140. package/src/components/Timeline/Timeline.spec.js +17 -17
  141. package/src/components/Timeline/Timeline.vue +24 -24
  142. package/src/elements/Card/Card.vue +122 -113
  143. package/src/elements/Card/README.md +24 -24
  144. package/src/elements/FileUploads/FileUploads.vue +48 -48
  145. package/src/elements/FileUploads/README.md +24 -24
  146. package/src/elements/Input/Input.vue +272 -268
  147. package/src/elements/Input/README.md +19 -19
  148. package/src/elements/Table/README.md +62 -62
  149. package/src/elements/Table/Table.spec.js +90 -90
  150. package/src/elements/Table/Table.vue +129 -129
  151. package/src/foundations/Icon/Icon.spec.js +24 -24
  152. package/src/foundations/Icon/Icon.vue +24 -24
  153. package/src/foundations/Icon/README.md +11 -11
  154. package/src/foundations/Logo/Logo.spec.js +56 -56
  155. package/src/foundations/Logo/Logo.vue +39 -39
  156. package/src/foundations/Logo/README.md +20 -20
  157. package/src/foundations/YoutubeVideo/README.md +11 -11
  158. package/src/foundations/YoutubeVideo/YoutubeVideo.vue +24 -24
  159. package/src/helpers/strings.js +12 -12
  160. package/src/index.js +27 -27
  161. package/src/vue-shim.d.ts +6 -6
@@ -1,8 +1,8 @@
1
- import { openBlock as o, createElementBlock as l, createElementVNode as s, toDisplayString as w, normalizeClass as v, createCommentVNode as h, Fragment as S, renderList as x, renderSlot as b, withDirectives as N, mergeProps as T, vModelDynamic as V, vModelText as Y, vModelSelect as X, resolveComponent as M, createVNode as A, createTextVNode as P, normalizeStyle as ee, withModifiers as te } from "vue";
1
+ import { openBlock as o, createElementBlock as l, createElementVNode as s, toDisplayString as w, normalizeClass as v, createCommentVNode as m, Fragment as $, renderList as x, renderSlot as b, withDirectives as N, mergeProps as T, vModelDynamic as z, vModelText as J, vModelSelect as X, resolveComponent as C, createVNode as A, createTextVNode as j, normalizeStyle as ee, withModifiers as te } from "vue";
2
2
  const g = (e, n) => {
3
3
  const t = e.__vccOpts || e;
4
- for (const [c, m] of n)
5
- t[c] = m;
4
+ for (const [c, h] of n)
5
+ t[c] = 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, c, m, a) {
22
+ function ne(e, n, t, c, 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, m, a) {
27
27
  }, null, 8, ie)
28
28
  ]);
29
29
  }
30
- const re = /* @__PURE__ */ g(se, [["render", ne], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/foundations/Icon/Icon.vue"]]), oe = {
30
+ const re = /* @__PURE__ */ g(se, [["render", ne], ["__file", "/Users/james/workspace/work/component-library/src/foundations/Icon/Icon.vue"]]), oe = {
31
31
  name: "Logo",
32
32
  props: {
33
33
  id: {
@@ -53,7 +53,7 @@ const re = /* @__PURE__ */ g(se, [["render", ne], ["__file", "C:/Users/James.Lam
53
53
  }
54
54
  }
55
55
  }, le = ["xlink:href"], ce = ["innerHTML"];
56
- function de(e, n, t, c, m, a) {
56
+ function de(e, n, t, c, h, a) {
57
57
  return o(), l("div", {
58
58
  class: v(a.className)
59
59
  }, [
@@ -66,35 +66,35 @@ function de(e, n, t, c, m, a) {
66
66
  t.desc ? (o(), l("span", {
67
67
  key: 0,
68
68
  innerHTML: t.desc
69
- }, null, 8, ce)) : h("v-if", !0)
69
+ }, null, 8, ce)) : m("v-if", !0)
70
70
  ], 2);
71
71
  }
72
- const ue = /* @__PURE__ */ g(oe, [["render", de], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/foundations/Logo/Logo.vue"]]), O = (e) => e.charAt(0).toUpperCase() + e.slice(1), j = (e) => e.replace(/_/g, " "), fe = (e) => e.replace(/ /g, "_"), me = function(e) {
72
+ const ue = /* @__PURE__ */ g(oe, [["render", de], ["__file", "/Users/james/workspace/work/component-library/src/foundations/Logo/Logo.vue"]]), O = (e) => e.charAt(0).toUpperCase() + e.slice(1), W = (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
- }, he = function(e) {
74
+ }, me = function(e) {
75
75
  return typeof e != "string" ? !1 : !isNaN(e) && !isNaN(parseFloat(e));
76
76
  }, _e = (e, n) => String(e).padStart(n, "0");
77
- function K(e) {
77
+ function E(e) {
78
78
  if (typeof e != "object")
79
79
  return !1;
80
- const n = e.querySelector("thead"), t = e.querySelector("tbody"), c = t.cloneNode(!0), m = new Event("sorted"), a = new Event("filtered"), r = new Event("reordered"), i = "table_" + Math.random().toString(36).substr(2, 9);
80
+ const n = e.querySelector("thead"), t = e.querySelector("tbody"), c = 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
81
  let f;
82
82
  e.setAttribute("id", i);
83
- const $ = function(_, u) {
83
+ const S = function(_, u) {
84
84
  let d = [];
85
- Array.from(t.querySelectorAll("tr")).forEach((y, q) => {
85
+ Array.from(t.querySelectorAll("tr")).forEach((y, L) => {
86
86
  let k = y.querySelector('td[data-label="' + _ + '"], th[data-label="' + _ + '"]').textContent;
87
- he(k) && (k = _e(k, 10));
88
- const z = {
87
+ me(k) && (k = _e(k, 10));
88
+ const F = {
89
89
  index: k,
90
90
  row: y
91
91
  };
92
- d.push(z);
93
- }), d.sort((y, q) => y.index > q.index ? 1 : -1), u == "descending" && (d = d.reverse());
92
+ d.push(F);
93
+ }), d.sort((y, L) => y.index > L.index ? 1 : -1), u == "descending" && (d = d.reverse());
94
94
  let p = "";
95
- d.forEach((y, q) => {
95
+ d.forEach((y, L) => {
96
96
  p += y.row.outerHTML;
97
- }), t.innerHTML = p, e.dispatchEvent(m);
97
+ }), t.innerHTML = p, e.dispatchEvent(h);
98
98
  };
99
99
  if (e.addEventListener("click", function(_) {
100
100
  for (var u = _.target; u && u != this; u = u.parentNode)
@@ -102,7 +102,7 @@ function K(e) {
102
102
  let d = u.getAttribute("aria-sort") == "ascending" ? "descending" : "ascending";
103
103
  Array.from(e.querySelectorAll("[data-sortable]")).forEach((p, y) => {
104
104
  p.setAttribute("aria-sort", "none");
105
- }), u.setAttribute("aria-sort", d), e.setAttribute("data-sort", d), e.setAttribute("data-sortBy", u.textContent), $(u.textContent, d), Array.from(e.querySelectorAll("tr[draggable]")).forEach((p, y) => {
105
+ }), u.setAttribute("aria-sort", d), e.setAttribute("data-sort", d), e.setAttribute("data-sortBy", u.textContent), S(u.textContent, d), Array.from(e.querySelectorAll("tr[draggable]")).forEach((p, y) => {
106
106
  p.removeAttribute("draggable");
107
107
  });
108
108
  break;
@@ -113,17 +113,17 @@ function K(e) {
113
113
  u.textContent == e.getAttribute("data-sortBy") && (u.setAttribute("aria-sort", _), u.click());
114
114
  });
115
115
  }
116
- const L = function(_) {
116
+ const q = function(_) {
117
117
  const u = document.createElement("div");
118
118
  u.classList.add("table__filters"), u.classList.add("row"), u.classList.add("pt-1"), u.classList.add("pb-3");
119
119
  const d = Array.from(e.querySelectorAll("th[data-filterable]"));
120
120
  let p = {};
121
- d.forEach((k, z) => {
122
- Array.from(e.querySelectorAll('td[data-label="' + k.textContent + '"]')).forEach((G, ki) => {
123
- p[G.textContent] = G.textContent;
121
+ d.forEach((k, F) => {
122
+ Array.from(e.querySelectorAll('td[data-label="' + k.textContent + '"]')).forEach((V, gi) => {
123
+ p[V.textContent] = V.textContent;
124
124
  });
125
125
  });
126
- const y = d.length == 1 ? "Filter by " + d[0].textContent : "Filter", q = d.length == 1 ? "d-none" : "d-sm-flex";
126
+ const y = d.length == 1 ? "Filter by " + d[0].textContent : "Filter", L = d.length == 1 ? "d-none" : "d-sm-flex";
127
127
  u.innerHTML = `<div class="col-sm-6 col-md-4 pb-3">
128
128
  <div class="form-control__wrapper form-control-inline mb-0">
129
129
  <label for="${i}_filter" class="form-label">${y}:</label>
@@ -133,16 +133,16 @@ function K(e) {
133
133
  ${Object.keys(p).map((k) => `<option value="${k}"></option>`).join("")}
134
134
  </datalist>
135
135
  </div>
136
- <div class="col-md-8 align-items-center pb-3 ${q}">
136
+ <div class="col-md-8 align-items-center pb-3 ${L}">
137
137
  ${'<span class="pe-3 text-nowrap h5 mb-0">Filter by: </span>' + d.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
138
  </div>`, e.prepend(u);
139
- }, C = function(_) {
139
+ }, M = function(_) {
140
140
  let u = [];
141
141
  Array.from(c.querySelectorAll("tr")).forEach((p, y) => {
142
- let q = "";
143
- if (Array.from(e.querySelectorAll('[type="checkbox"]:checked + label')).forEach((k, z) => {
144
- q += p.querySelector('td[data-label="' + k.textContent + '"]').textContent + " | ";
145
- }), q.indexOf(_) >= 0) {
142
+ let L = "";
143
+ if (Array.from(e.querySelectorAll('[type="checkbox"]:checked + label')).forEach((k, F) => {
144
+ L += p.querySelector('td[data-label="' + k.textContent + '"]').textContent + " | ";
145
+ }), L.indexOf(_) >= 0) {
146
146
  const k = { row: p };
147
147
  u.push(k);
148
148
  }
@@ -151,37 +151,37 @@ function K(e) {
151
151
  u.forEach((p, y) => {
152
152
  d += p.row.outerHTML;
153
153
  }), t.innerHTML = d, e.dispatchEvent(a);
154
- }, U = function() {
154
+ }, I = function() {
155
155
  let _ = [];
156
156
  Array.from(e.querySelectorAll('[type="checkbox"]:checked + label')).forEach((p, y) => {
157
157
  _.push(p.textContent);
158
158
  });
159
159
  let u = [];
160
160
  _.forEach((p, y) => {
161
- Array.from(e.querySelectorAll('td[data-label="' + p + '"]')).forEach((q, k) => {
162
- u[q.textContent] = q.textContent;
161
+ Array.from(e.querySelectorAll('td[data-label="' + p + '"]')).forEach((L, k) => {
162
+ u[L.textContent] = L.textContent;
163
163
  });
164
164
  });
165
165
  let d = e.querySelector("datalist");
166
166
  d.innerHTML = Object.keys(u).map((p) => `<option value="${p}"></option>`).join("");
167
167
  };
168
- Array.from(e.querySelectorAll("[data-filterable]")).length && (L(e, Array.from(e.querySelectorAll("[data-filterable]")).length), e.addEventListener("keyup", function(_) {
168
+ Array.from(e.querySelectorAll("[data-filterable]")).length && (q(e, Array.from(e.querySelectorAll("[data-filterable]")).length), e.addEventListener("keyup", function(_) {
169
169
  for (var u = _.target; u && u != this; u = u.parentNode)
170
170
  if (u.matches('input[type="search"]')) {
171
171
  const d = u.value;
172
- C(d);
172
+ M(d);
173
173
  }
174
174
  }), e.addEventListener("change", function(_) {
175
175
  for (var u = _.target; u && u != this; u = u.parentNode)
176
176
  if (u.matches('input[type="search"]')) {
177
177
  const d = u.value;
178
- C(d);
178
+ M(d);
179
179
  }
180
180
  }), e.addEventListener("change", function(_) {
181
181
  for (var u = _.target; u && u != this; u = u.parentNode)
182
182
  if (u.matches('input[type="checkbox"]')) {
183
183
  const d = e.querySelector('input[type="search"]').value;
184
- C(d), U();
184
+ M(d), I();
185
185
  }
186
186
  }));
187
187
  const H = function(_, u) {
@@ -209,7 +209,7 @@ function K(e) {
209
209
  };
210
210
  if (e.getAttribute("data-show")) {
211
211
  const _ = parseInt(e.getAttribute("data-show")), u = parseInt(e.getAttribute("data-page")) ? parseInt(e.getAttribute("data-page")) : 1, d = e.querySelectorAll("tbody tr").length;
212
- _ < d && (H(_, u), J(i, e, _, u, d), D(i, e, _, u, d), e.addEventListener("change", function(p) {
212
+ _ < d && (H(_, u), K(i, e, _, u, d), D(i, e, _, u, d), e.addEventListener("change", function(p) {
213
213
  for (var y = p.target; y && y != this; y = y.parentNode)
214
214
  y.matches('.table__pagination input[type="number"]') && (H(y.value, u), D(i, e, y.value, u, d), e.setAttribute("data-show", y.value));
215
215
  }), e.addEventListener("click", function(p) {
@@ -220,26 +220,26 @@ function K(e) {
220
220
  y.matches(".table__pagination select") && (H(e.getAttribute("data-show"), y.value), D(i, e, e.getAttribute("data-show"), y.value, d));
221
221
  }));
222
222
  }
223
- function Q(_) {
223
+ function Y(_) {
224
224
  _.dataTransfer.setData("text/plain", _.target.id), f = _.target, _.target.classList.add("tr--dragging");
225
225
  }
226
- const F = function() {
226
+ const U = function() {
227
227
  Array.from(t.querySelectorAll("tr")).forEach((_, u) => {
228
228
  if (_.querySelector('[data-label="Order"]') == null) {
229
229
  const d = document.createElement("th");
230
230
  d.innerHTML = u + 1, d.setAttribute("data-label", "Order"), _.prepend(d);
231
231
  }
232
- _.setAttribute("id", i + "_row_" + (u + 1)), _.setAttribute("data-order", u + 1), _.setAttribute("draggable", "true"), _.addEventListener("dragstart", Q);
232
+ _.setAttribute("id", i + "_row_" + (u + 1)), _.setAttribute("data-order", u + 1), _.setAttribute("draggable", "true"), _.addEventListener("dragstart", Y);
233
233
  });
234
234
  };
235
235
  if (e.getAttribute("data-reorder") && e.getAttribute("data-reorder") != "false") {
236
236
  const _ = document.createElement("th");
237
- _.innerHTML = "Order", _.title = "Click here to enable re-ordering via drag and drop", _.classList.add("table-order-reset"), n.querySelector("tr").prepend(_), F(), e.addEventListener("click", function(u) {
237
+ _.innerHTML = "Order", _.title = "Click here to enable re-ordering via drag and drop", _.classList.add("table-order-reset"), n.querySelector("tr").prepend(_), U(), e.addEventListener("click", function(u) {
238
238
  for (var d = u.target; d && d != this; d = d.parentNode)
239
239
  if (d.matches(".table-order-reset")) {
240
240
  Array.from(e.querySelectorAll("[data-sortable]")).forEach((p, y) => {
241
241
  p.setAttribute("aria-sort", "none");
242
- }), e.removeAttribute("data-sort"), e.removeAttribute("data-sortBy"), $("Order", "ascending"), Array.from(e.querySelectorAll("tbody tr")).forEach((p, y) => {
242
+ }), e.removeAttribute("data-sort"), e.removeAttribute("data-sortBy"), S("Order", "ascending"), Array.from(e.querySelectorAll("tbody tr")).forEach((p, y) => {
243
243
  p.setAttribute("draggable", "true");
244
244
  });
245
245
  break;
@@ -266,43 +266,43 @@ function K(e) {
266
266
  }, !1);
267
267
  }
268
268
  e.addEventListener("filtered", function(_) {
269
- if (e.getAttribute("data-sortBy") && e.getAttribute("data-sort") && $(e.getAttribute("data-sortBy"), e.getAttribute("data-sort")), e.getAttribute("data-show")) {
269
+ if (e.getAttribute("data-sortBy") && e.getAttribute("data-sort") && S(e.getAttribute("data-sortBy"), e.getAttribute("data-sort")), e.getAttribute("data-show")) {
270
270
  const u = parseInt(e.getAttribute("data-show")), d = e.querySelectorAll("tbody tr").length, p = e.querySelector(".table__pagination");
271
- p != null && p.remove(), u < d && (H(u, 1), J(i, e, u, 1, d), D(i, e, u, 1, d));
271
+ p != null && p.remove(), u < d && (H(u, 1), K(i, e, u, 1, d), D(i, e, u, 1, d));
272
272
  }
273
- e.getAttribute("data-reorder") && F();
273
+ e.getAttribute("data-reorder") && U();
274
274
  }, !1), e.addEventListener("sorted", function(_) {
275
- e.getAttribute("data-reorder") && F();
275
+ e.getAttribute("data-reorder") && U();
276
276
  }, !1), e.addEventListener("populated", function(_) {
277
277
  var u = e.querySelector(".table__filters");
278
278
  u.remove();
279
279
  var d = e.querySelector(".table__pagination");
280
280
  d.remove();
281
281
  var p = e.cloneNode(!0);
282
- e.parentNode.replaceChild(p, e), K(p);
282
+ e.parentNode.replaceChild(p, e), E(p);
283
283
  }, !1);
284
284
  }
285
- const J = function(e, n, t, c, m) {
285
+ const K = function(e, n, t, c, h) {
286
286
  const a = document.createElement("div");
287
287
  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
288
  <div class="form-control__wrapper form-control-inline mb-0">
289
289
  <label for="${e}_showing" class="form-label">Showing:</label>
290
- <input type="number" name="${e}_showing" id="${e}_showing" class="form-control form-control-sm showing-input-field" placeholder="" list="${e}_pagination" value="${t}" min="1" max="${m}" />
290
+ <input type="number" name="${e}_showing" id="${e}_showing" class="form-control form-control-sm showing-input-field" placeholder="" list="${e}_pagination" value="${t}" min="1" max="${h}" />
291
291
  </div>
292
292
  <datalist id="${e}_pagination">
293
293
  <option value="5">5</option>
294
- ${m > 10 ? '<option value="10">10</option>' : ""}
295
- ${m > 20 ? '<option value="20">20</option>' : ""}
296
- <option value="${m}">${m}</option>
294
+ ${h > 10 ? '<option value="10">10</option>' : ""}
295
+ ${h > 20 ? '<option value="20">20</option>' : ""}
296
+ <option value="${h}">${h}</option>
297
297
  </datalist>
298
298
  </div>
299
299
  <div class="col mw-fit-content me-auto d-flex align-items-center mb-3"><span class="label">per page</span></div>
300
300
  <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, c, m) {
301
+ }, D = function(e, n, t, c, h) {
302
302
  const a = document.getElementById(e + "_paginationBtns");
303
303
  if (a == null)
304
304
  return !1;
305
- const r = Math.ceil(m / t);
305
+ const r = Math.ceil(h / t);
306
306
  if (r == 1)
307
307
  a.innerHTML = "";
308
308
  else if (r < 5) {
@@ -327,7 +327,7 @@ ${i}
327
327
  `;
328
328
  }
329
329
  };
330
- let W = function(e) {
330
+ let G = function(e) {
331
331
  return typeof e != "string" ? e : (e = e.replace("\xA3", ""), e = e.replace("%", ""), Number.isNaN(Number.parseFloat(e)) ? 0 : Number.parseFloat(e));
332
332
  };
333
333
  const pe = {
@@ -368,15 +368,15 @@ const pe = {
368
368
  },
369
369
  computed: {
370
370
  cellHeading() {
371
- return (e) => `${O(j(e))}`;
371
+ return (e) => `${O(W(e))}`;
372
372
  },
373
373
  numericValue() {
374
- return (e) => (e = W(e), e);
374
+ return (e) => (e = G(e), e);
375
375
  }
376
376
  },
377
377
  mounted() {
378
378
  this.$nextTick(function() {
379
- K(this.$refs.wrapper), this.$el.addEventListener("sorted", function(e) {
379
+ E(this.$refs.wrapper), this.$el.addEventListener("sorted", function(e) {
380
380
  console.log("Table sorted");
381
381
  }, !1), this.$el.addEventListener("filtered", function(e) {
382
382
  console.log("Table filtered");
@@ -386,16 +386,16 @@ const pe = {
386
386
  updated() {
387
387
  this.$nextTick(function() {
388
388
  let e = this.$refs.wrapper.querySelector("tbody"), n = "";
389
- this.items.forEach((c, m) => {
389
+ this.items.forEach((c, h) => {
390
390
  let a = c.rowid ? c.rowid : "";
391
- c = Object.fromEntries(Object.entries(c).filter(([r]) => r !== "rowid")), n += `<tr data-row-id="${a}">${Object.keys(c).map((r) => `<td data-label="${O(j(r))}" data-numeric="${W(c[r])}">${c[r]}</td>`).join("")}</tr>`;
391
+ c = Object.fromEntries(Object.entries(c).filter(([r]) => r !== "rowid")), n += `<tr data-row-id="${a}">${Object.keys(c).map((r) => `<td data-label="${O(W(r))}" data-numeric="${G(c[r])}">${c[r]}</td>`).join("")}</tr>`;
392
392
  }), e.innerHTML = n;
393
393
  const t = new Event("filtered");
394
394
  this.$refs.wrapper.dispatchEvent(t);
395
395
  });
396
396
  }
397
397
  }, ye = ["data-sortby", "data-sort", "data-show", "data-page", "data-reorder"], be = { key: 0 }, ve = ["data-sortable", "data-filterable"], ge = { key: 1 }, we = ["data-row-id"], ke = ["innerHTML", "data-label", "data-numeric"];
398
- function $e(e, n, t, c, m, a) {
398
+ function Se(e, n, t, c, h, a) {
399
399
  return o(), l("div", {
400
400
  class: "table__wrapper",
401
401
  ref: "wrapper",
@@ -410,31 +410,31 @@ function $e(e, n, t, c, m, a) {
410
410
  s("tr", {
411
411
  class: v(t.headingclass)
412
412
  }, [
413
- (o(!0), l(S, null, x(t.fields, (r) => (o(), l("th", {
413
+ (o(!0), l($, null, x(t.fields, (r) => (o(), l("th", {
414
414
  key: r.key,
415
415
  "data-sortable": r.sortable,
416
416
  "data-filterable": r.filterable
417
417
  }, w(a.cellHeading(r.key)), 9, ve))), 128))
418
418
  ], 2)
419
- ])) : h("v-if", !0),
419
+ ])) : m("v-if", !0),
420
420
  t.items ? (o(), l("tbody", ge, [
421
- (o(!0), l(S, null, x(t.items, (r, i) => (o(), l("tr", {
421
+ (o(!0), l($, null, x(t.items, (r, i) => (o(), l("tr", {
422
422
  key: i,
423
423
  "data-row-id": r.rowid
424
424
  }, [
425
- (o(!0), l(S, null, x(Object.fromEntries(Object.entries(r).filter(([f]) => f !== "rowid")), (f, $) => (o(), l("td", {
426
- key: $,
425
+ (o(!0), l($, null, x(Object.fromEntries(Object.entries(r).filter(([f]) => f !== "rowid")), (f, S) => (o(), l("td", {
426
+ key: S,
427
427
  innerHTML: f,
428
- "data-label": a.cellHeading($),
428
+ "data-label": a.cellHeading(S),
429
429
  "data-numeric": a.numericValue(f)
430
430
  }, null, 8, ke))), 128))
431
431
  ], 8, we))), 128))
432
- ])) : h("v-if", !0)
432
+ ])) : m("v-if", !0)
433
433
  ]),
434
434
  b(e.$slots, "default")
435
435
  ], 8, ye);
436
436
  }
437
- const E = /* @__PURE__ */ g(pe, [["render", $e], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/elements/Table/Table.vue"]]), Ae = {
437
+ const R = /* @__PURE__ */ g(pe, [["render", Se], ["__file", "/Users/james/workspace/work/component-library/src/elements/Table/Table.vue"]]), Ae = {
438
438
  name: "Input",
439
439
  props: {
440
440
  value: {
@@ -505,6 +505,10 @@ const E = /* @__PURE__ */ g(pe, [["render", $e], ["__file", "C:/Users/James.Lamb
505
505
  hint: {
506
506
  type: String,
507
507
  required: !1
508
+ },
509
+ multiple: {
510
+ type: String,
511
+ required: !1
508
512
  }
509
513
  },
510
514
  computed: {
@@ -614,14 +618,14 @@ const E = /* @__PURE__ */ g(pe, [["render", $e], ["__file", "C:/Users/James.Lamb
614
618
  this.$emit("bus");
615
619
  }
616
620
  }
617
- }, Se = ["for", "innerHTML", "title"], xe = ["innerHTML"], Le = ["innerHTML"], qe = ["type", "name", "id", "pattern", "list"], Te = ["type", "name", "id", "pattern"], Ce = {
621
+ }, $e = ["for", "innerHTML", "title"], xe = ["innerHTML"], qe = ["innerHTML"], Le = ["type", "name", "id", "pattern", "list"], Te = ["type", "name", "id", "pattern"], Me = {
618
622
  key: 5,
619
623
  class: "input-group"
620
- }, Me = ["type", "name", "id", "pattern", "list"], He = { class: "input-group-text border-0 col-2 col-sm-1 px-0" }, Ne = {
624
+ }, Ce = ["type", "name", "id", "pattern", "list"], He = { class: "input-group-text border-0 col-2 col-sm-1 px-0" }, Ne = {
621
625
  key: 6,
622
626
  class: "input-group"
623
- }, De = ["type", "name", "id", "pattern", "list"], Be = { class: "input-group-text flex-fill" }, Pe = ["type", "name", "id", "pattern"], Ie = ["value"], Ue = ["id"], Fe = ["value"], ze = ["type", "name", "id"], Ve = ["for", "innerHTML"], Ge = ["type", "name", "id"], Oe = ["for", "innerHTML"], je = ["innerHTML"];
624
- function Je(e, n, t, c, m, a) {
627
+ }, De = ["type", "name", "id", "pattern", "list"], Be = { class: "input-group-text flex-fill" }, je = ["type", "name", "id", "pattern"], Pe = ["value"], Ie = ["id"], Ue = ["value"], Fe = ["type", "name", "id"], ze = ["for", "innerHTML"], Ve = ["type", "name", "id"], Oe = ["for", "innerHTML"], We = ["innerHTML"];
628
+ function Ke(e, n, t, c, h, a) {
625
629
  return o(), l("div", {
626
630
  class: v(a.wrapperClass()),
627
631
  ref: "wrapper"
@@ -632,21 +636,21 @@ function Je(e, n, t, c, m, a) {
632
636
  for: t.id,
633
637
  innerHTML: a.displayLabel(),
634
638
  title: t.title
635
- }, null, 10, Se)) : h("v-if", !0),
636
- h(" Prefix and Suffix "),
639
+ }, null, 10, $e)) : m("v-if", !0),
640
+ m(" Prefix and Suffix "),
637
641
  t.prefix ? (o(), l("span", {
638
642
  key: 1,
639
643
  class: v(`prefix ${this.prefixClass} ${t.size ? `prefix-${t.size}` : ""}`),
640
644
  innerHTML: t.prefix,
641
645
  role: "presentation"
642
- }, null, 10, xe)) : h("v-if", !0),
646
+ }, null, 10, xe)) : m("v-if", !0),
643
647
  t.suffix ? (o(), l("span", {
644
648
  key: 2,
645
649
  class: v(`suffix ${this.suffixClass} ${t.size ? `suffix-${t.size}` : ""}`),
646
650
  innerHTML: t.suffix,
647
651
  role: "presentation"
648
- }, null, 10, Le)) : h("v-if", !0),
649
- h(" Standard input field "),
652
+ }, null, 10, qe)) : m("v-if", !0),
653
+ m(" Standard input field "),
650
654
  a.isInput() ? N((o(), l("input", T({
651
655
  key: 3,
652
656
  "onUpdate:modelValue": n[0] || (n[0] = (r) => a.inputVal = r),
@@ -658,10 +662,10 @@ function Je(e, n, t, c, m, a) {
658
662
  list: a.hasOptions()
659
663
  }, e.$attrs, {
660
664
  onKeyup: n[1] || (n[1] = (...r) => a.inputKeyup && a.inputKeyup(...r))
661
- }), null, 16, qe)), [
662
- [V, a.inputVal]
663
- ]) : h("v-if", !0),
664
- h(" Textarea "),
665
+ }), null, 16, Le)), [
666
+ [z, a.inputVal]
667
+ ]) : m("v-if", !0),
668
+ m(" Textarea "),
665
669
  t.type == "textarea" ? N((o(), l("textarea", T({
666
670
  key: 4,
667
671
  "onUpdate:modelValue": n[2] || (n[2] = (r) => a.inputVal = r),
@@ -671,10 +675,10 @@ function Je(e, n, t, c, m, a) {
671
675
  id: t.id,
672
676
  pattern: a.needPattern()
673
677
  }, e.$attrs), null, 16, Te)), [
674
- [Y, a.inputVal]
675
- ]) : h("v-if", !0),
676
- h(" Range "),
677
- t.type == "range" ? (o(), l("div", Ce, [
678
+ [J, a.inputVal]
679
+ ]) : m("v-if", !0),
680
+ m(" Range "),
681
+ t.type == "range" ? (o(), l("div", Me, [
678
682
  N(s("input", T({
679
683
  "onUpdate:modelValue": n[3] || (n[3] = (r) => a.inputVal = r),
680
684
  class: `form-range${t.inputclass ? ` ${t.inputclass}` : ""}`,
@@ -683,12 +687,12 @@ function Je(e, n, t, c, m, a) {
683
687
  id: t.id,
684
688
  pattern: a.needPattern(),
685
689
  list: a.hasOptions()
686
- }, e.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, Me), [
687
- [V, a.inputVal]
690
+ }, e.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, Ce), [
691
+ [z, a.inputVal]
688
692
  ]),
689
693
  s("output", He, w(t.value), 1)
690
- ])) : h("v-if", !0),
691
- h(" Color picker "),
694
+ ])) : m("v-if", !0),
695
+ m(" Color picker "),
692
696
  t.type == "color" ? (o(), l("div", Ne, [
693
697
  N(s("input", T({
694
698
  "onUpdate:modelValue": n[4] || (n[4] = (r) => a.inputVal = r),
@@ -699,11 +703,11 @@ function Je(e, n, t, c, m, a) {
699
703
  pattern: a.needPattern(),
700
704
  list: a.hasOptions()
701
705
  }, e.$attrs, { oninput: "this.nextElementSibling.value=this.value;" }), null, 16, De), [
702
- [V, a.inputVal]
706
+ [z, a.inputVal]
703
707
  ]),
704
708
  s("output", Be, w(t.value ? e.vale : "#000000"), 1)
705
- ])) : h("v-if", !0),
706
- h(" Select/dropdown "),
709
+ ])) : m("v-if", !0),
710
+ m(" Select/dropdown "),
707
711
  t.type == "select" ? N((o(), l("select", T({
708
712
  key: 7,
709
713
  "onUpdate:modelValue": n[5] || (n[5] = (r) => a.inputVal = r),
@@ -713,37 +717,37 @@ function Je(e, n, t, c, m, a) {
713
717
  id: t.id,
714
718
  pattern: a.needPattern()
715
719
  }, e.$attrs), [
716
- (o(!0), l(S, null, x(t.options, (r, i) => (o(), l("option", {
720
+ (o(!0), l($, null, x(t.options, (r, i) => (o(), l("option", {
717
721
  key: i,
718
722
  value: r.value
719
- }, w(r.display ? r.display : r.value), 9, Ie))), 128))
720
- ], 16, Pe)), [
723
+ }, w(r.display ? r.display : r.value), 9, Pe))), 128))
724
+ ], 16, je)), [
721
725
  [X, a.inputVal]
722
- ]) : h("v-if", !0),
726
+ ]) : m("v-if", !0),
723
727
  a.allowDatalist() ? (o(), l("datalist", {
724
728
  key: 8,
725
729
  id: t.id + "-list"
726
730
  }, [
727
- (o(!0), l(S, null, x(t.options, (r, i) => (o(), l("option", {
731
+ (o(!0), l($, null, x(t.options, (r, i) => (o(), l("option", {
728
732
  key: i,
729
733
  value: r.value
730
- }, w(r.value), 9, Fe))), 128))
731
- ], 8, Ue)) : h("v-if", !0),
732
- h(" Checkbox "),
734
+ }, w(r.value), 9, Ue))), 128))
735
+ ], 8, Ie)) : m("v-if", !0),
736
+ m(" Checkbox "),
733
737
  t.type == "checkbox" || t.type == "radio" ? (o(), l("input", T({
734
738
  key: 9,
735
739
  class: "form-check-input",
736
740
  type: t.type,
737
741
  name: t.name ? t.name : t.id,
738
742
  id: t.id
739
- }, e.$attrs), null, 16, ze)) : h("v-if", !0),
743
+ }, e.$attrs), null, 16, Fe)) : m("v-if", !0),
740
744
  t.type == "checkbox" || t.type == "radio" ? (o(), l("label", {
741
745
  key: 10,
742
746
  class: v(`form-label form-check-label${t.labelclass ? ` ${t.labelclass}` : ""}`),
743
747
  for: t.id,
744
748
  innerHTML: t.label
745
- }, null, 10, Ve)) : h("v-if", !0),
746
- h(" Checkbox Button "),
749
+ }, null, 10, ze)) : m("v-if", !0),
750
+ m(" Checkbox Button "),
747
751
  t.type == "checkbox-btn" || t.type == "radio-btn" ? (o(), l("input", T({
748
752
  key: 11,
749
753
  class: `btn-check${t.inputclass ? ` ${t.inputclass}` : ""}`,
@@ -751,26 +755,26 @@ function Je(e, n, t, c, m, a) {
751
755
  autocomplete: "off",
752
756
  name: t.name ? t.name : t.id,
753
757
  id: t.id
754
- }, e.$attrs), null, 16, Ge)) : h("v-if", !0),
758
+ }, e.$attrs), null, 16, Ve)) : m("v-if", !0),
755
759
  t.type == "checkbox-btn" || t.type == "radio-btn" ? (o(), l("label", {
756
760
  key: 12,
757
761
  class: v(`btn${t.labelclass ? ` ${t.labelclass}` : ""}`),
758
762
  for: t.id,
759
763
  innerHTML: t.label,
760
764
  onClick: n[6] || (n[6] = (...r) => a.clickEvent && a.clickEvent(...r))
761
- }, null, 10, Oe)) : h("v-if", !0),
762
- h(" Error message "),
765
+ }, null, 10, Oe)) : m("v-if", !0),
766
+ m(" Error message "),
763
767
  t.errormsg ? (o(), l("p", {
764
768
  key: 13,
765
769
  class: "invalid-feedback mb-0",
766
770
  innerHTML: t.errormsg
767
- }, null, 8, je)) : h("v-if", !0),
771
+ }, null, 8, We)) : m("v-if", !0),
768
772
  b(e.$slots, "default")
769
773
  ], 2);
770
774
  }
771
- const I = /* @__PURE__ */ g(Ae, [["render", Je], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/elements/Input/Input.vue"]]), We = {
775
+ const P = /* @__PURE__ */ g(Ae, [["render", Ke], ["__file", "/Users/james/workspace/work/component-library/src/elements/Input/Input.vue"]]), Ge = {
772
776
  components: {
773
- Input: I
777
+ Input: P
774
778
  },
775
779
  name: "FileUploads",
776
780
  props: {
@@ -791,17 +795,17 @@ const I = /* @__PURE__ */ g(Ae, [["render", Je], ["__file", "C:/Users/James.Lamb
791
795
  required: !1
792
796
  }
793
797
  }
794
- }, Ke = { class: "multiple-file-uploads mb-4" }, Ee = { class: "row" }, Re = { class: "col-12 col-md me-auto" }, Ze = /* @__PURE__ */ s("div", { class: "col mw-fit-content" }, [
798
+ }, Ee = { class: "multiple-file-uploads mb-4" }, Re = { class: "row" }, Ze = { class: "col-12 col-md me-auto" }, Qe = /* @__PURE__ */ s("div", { class: "col mw-fit-content" }, [
795
799
  /* @__PURE__ */ s("button", {
796
800
  type: "button",
797
801
  class: "btn btn-tertiary me-0",
798
802
  "data-delete": ""
799
803
  }, "Delete")
800
- ], -1), Qe = ["data-maxfiles"];
801
- function Ye(e, n, t, c, m, a) {
802
- const r = M("Input");
803
- return o(), l("div", Ke, [
804
- s("div", Ee, [
804
+ ], -1), Ye = ["data-maxfiles"];
805
+ function Je(e, n, t, c, h, a) {
806
+ const r = C("Input");
807
+ return o(), l("div", Ee, [
808
+ s("div", Re, [
805
809
  s("div", {
806
810
  class: v(`${t.inputcolclass ? t.inputcolclass : "col-12 col-sm-4"}`)
807
811
  }, [
@@ -816,20 +820,20 @@ function Ye(e, n, t, c, m, a) {
816
820
  "data-filesize": t.maxfilesize
817
821
  }, null, 8, ["id", "name", "data-filesize"])
818
822
  ], 2),
819
- s("div", Re, [
823
+ s("div", Ze, [
820
824
  b(e.$slots, "default")
821
825
  ]),
822
- Ze
826
+ Qe
823
827
  ]),
824
828
  s("button", {
825
829
  type: "button",
826
830
  class: "btn btn-secondary me-0",
827
831
  "data-add": "",
828
832
  "data-maxfiles": t.maxfiles
829
- }, "+ Add file", 8, Qe)
833
+ }, "+ Add file", 8, Ye)
830
834
  ]);
831
835
  }
832
- const Ai = /* @__PURE__ */ g(We, [["render", Ye], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/elements/FileUploads/FileUploads.vue"]]);
836
+ const ki = /* @__PURE__ */ g(Ge, [["render", Je], ["__file", "/Users/james/workspace/work/component-library/src/elements/FileUploads/FileUploads.vue"]]);
833
837
  function Xe(e) {
834
838
  if (!e.classList.contains("accordion--keep-open")) {
835
839
  const n = e.querySelectorAll(":scope > details");
@@ -862,12 +866,12 @@ const et = {
862
866
  class: "container accordion",
863
867
  ref: "wrapper"
864
868
  };
865
- function st(e, n, t, c, m, a) {
869
+ function st(e, n, t, c, h, a) {
866
870
  return o(), l("div", tt, [
867
871
  b(e.$slots, "default")
868
872
  ], 512);
869
873
  }
870
- const Si = /* @__PURE__ */ g(et, [["render", st], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/Accordion/Accordion.vue"]]), at = {
874
+ const Si = /* @__PURE__ */ g(et, [["render", st], ["__file", "/Users/james/workspace/work/component-library/src/components/Accordion/Accordion.vue"]]), at = {
871
875
  name: "AccordionItem",
872
876
  props: {
873
877
  title: {
@@ -894,7 +898,7 @@ const Si = /* @__PURE__ */ g(et, [["render", st], ["__file", "C:/Users/James.Lam
894
898
  },
895
899
  computed: {
896
900
  createID() {
897
- return (e) => `${me(e)}`;
901
+ return (e) => `${he(e)}`;
898
902
  }
899
903
  },
900
904
  data() {
@@ -906,29 +910,29 @@ const Si = /* @__PURE__ */ g(et, [["render", st], ["__file", "C:/Users/James.Lam
906
910
  key: 0,
907
911
  class: "accordion-body"
908
912
  };
909
- function ot(e, n, t, c, m, a) {
913
+ function ot(e, n, t, c, h, a) {
910
914
  return o(), l("details", {
911
915
  class: "accordion-item",
912
916
  id: a.createID(t.title)
913
917
  }, [
914
918
  s("summary", {
915
919
  class: v(`${t.titlecolour ? `bg-${t.titlecolour}` : ""}`),
916
- onClick: n[0] || (n[0] = (r) => m.show = !0)
920
+ onClick: n[0] || (n[0] = (r) => h.show = !0)
917
921
  }, [
918
922
  s("span", nt, [
919
- P(w(t.title), 1),
923
+ j(w(t.title), 1),
920
924
  t.badge ? (o(), l("span", {
921
925
  key: 0,
922
926
  class: v(`badge bg-${t.badgecolour}`)
923
- }, w(t.badge), 3)) : h("v-if", !0)
927
+ }, w(t.badge), 3)) : m("v-if", !0)
924
928
  ])
925
929
  ], 2),
926
- m.show ? (o(), l("div", rt, [
930
+ h.show ? (o(), l("div", rt, [
927
931
  b(e.$slots, "default")
928
- ])) : h("v-if", !0)
932
+ ])) : m("v-if", !0)
929
933
  ], 8, it);
930
934
  }
931
- const xi = /* @__PURE__ */ g(at, [["render", ot], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/Accordion/AccordionItem.vue"]]), lt = {
935
+ const Ai = /* @__PURE__ */ g(at, [["render", ot], ["__file", "/Users/james/workspace/work/component-library/src/components/Accordion/AccordionItem.vue"]]), lt = {
932
936
  name: "Header",
933
937
  props: {
934
938
  title: {
@@ -945,8 +949,8 @@ const xi = /* @__PURE__ */ g(at, [["render", ot], ["__file", "C:/Users/James.Lam
945
949
  required: !1
946
950
  }
947
951
  }
948
- }, ct = { class: "container" }, dt = { class: "row" }, ut = { class: "col-sm-6" }, ft = { class: "pt-5 pb-3 px-4" }, mt = { class: "col-sm-6 col-md-5 ms-auto" }, ht = ["src"];
949
- function _t(e, n, t, c, m, a) {
952
+ }, 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, n, t, c, h, a) {
950
954
  return o(), l("div", ct, [
951
955
  s("div", {
952
956
  class: v("bg-" + t.background + " mb-4")
@@ -958,19 +962,19 @@ function _t(e, n, t, c, m, a) {
958
962
  b(e.$slots, "default")
959
963
  ])
960
964
  ]),
961
- s("div", mt, [
965
+ s("div", ht, [
962
966
  t.image ? (o(), l("img", {
963
967
  key: 0,
964
968
  src: t.image,
965
969
  alt: "",
966
970
  class: "h-100 w-100 object-cover"
967
- }, null, 8, ht)) : h("v-if", !0)
971
+ }, null, 8, mt)) : m("v-if", !0)
968
972
  ])
969
973
  ])
970
974
  ], 2)
971
975
  ]);
972
976
  }
973
- const Li = /* @__PURE__ */ g(lt, [["render", _t], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/Banner/Banner.vue"]]);
977
+ const $i = /* @__PURE__ */ g(lt, [["render", _t], ["__file", "/Users/james/workspace/work/component-library/src/components/Banner/Banner.vue"]]);
974
978
  const pt = {
975
979
  name: "Card",
976
980
  props: {
@@ -978,6 +982,11 @@ const pt = {
978
982
  type: String,
979
983
  required: !1
980
984
  },
985
+ cardClass: {
986
+ type: String,
987
+ required: !1,
988
+ default: ""
989
+ },
981
990
  titleclass: {
982
991
  type: String,
983
992
  required: !1,
@@ -1018,6 +1027,10 @@ const pt = {
1018
1027
  type: String,
1019
1028
  required: !1
1020
1029
  },
1030
+ target: {
1031
+ type: String,
1032
+ required: !1
1033
+ },
1021
1034
  details: {
1022
1035
  type: Object,
1023
1036
  required: !1
@@ -1032,8 +1045,8 @@ const pt = {
1032
1045
  },
1033
1046
  cardContent() {
1034
1047
  return () => {
1035
- const e = function(m) {
1036
- switch (m) {
1048
+ const e = function(h) {
1049
+ switch (h) {
1037
1050
  case "Modern method":
1038
1051
  return "bg-secondary text-primary";
1039
1052
  case "Freehold":
@@ -1041,7 +1054,7 @@ const pt = {
1041
1054
  default:
1042
1055
  return "bg-body text-white";
1043
1056
  }
1044
- }, n = this.details && this.details.tags ? this.details.tags.map((m) => `<span class="badge rounded-pill py-2 px-3 mb-3 me-2 ${e(m)}">${m}</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>` : "", c = `
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>` : "", c = `
1045
1058
  ${this.details && this.details.guideprice ? `<span class="d-block h6 text-dark mb-1">Price guide: ${this.details.guideprice}</span>` : ""}
1046
1059
  ${this.details && this.details.auctiontime ? `<span class="d-block h6 text-primary mb-4">Auction time left: ${this.details.auctiontime}</span>` : ""}
1047
1060
  ${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>` : ""}
@@ -1050,18 +1063,19 @@ const pt = {
1050
1063
  };
1051
1064
  }
1052
1065
  }
1053
- }, yt = ["href", "title"], bt = {
1066
+ }, yt = ["href", "title", "target"], bt = {
1054
1067
  key: 0,
1055
1068
  class: "card-header__wrapper"
1056
- }, vt = ["src"], gt = { class: "card-header" }, wt = ["innerHTML"], kt = ["innerHTML"], $t = ["src"], At = ["innerHTML"], St = {
1069
+ }, vt = ["src"], gt = { class: "card-header" }, wt = ["innerHTML"], kt = ["innerHTML"], St = ["src"], At = ["innerHTML"], $t = {
1057
1070
  key: 1,
1058
1071
  class: "card-footer"
1059
1072
  }, xt = { class: "visually-hidden" };
1060
- function Lt(e, n, t, c, m, a) {
1073
+ function qt(e, n, t, c, h, a) {
1061
1074
  return o(), l("a", {
1062
1075
  href: t.link,
1063
- class: v("card" + (t.type ? " card--" + t.type : "")),
1064
- title: "Find out more: " + t.title + (t.subtitle ? " - " + t.subtitle : "")
1076
+ class: v("card" + (t.type ? " card--" + t.type : "") + " " + t.cardClass),
1077
+ title: t.ctatext + ": " + t.title + (t.subtitle ? " - " + t.subtitle : ""),
1078
+ target: t.target
1065
1079
  }, [
1066
1080
  t.image ? (o(), l("div", bt, [
1067
1081
  s("img", {
@@ -1075,12 +1089,12 @@ function Lt(e, n, t, c, m, a) {
1075
1089
  key: 0,
1076
1090
  class: "badge bg-primary p-2 me-2",
1077
1091
  innerHTML: a.cardStatus()
1078
- }, null, 8, wt)) : h("v-if", !0),
1092
+ }, null, 8, wt)) : m("v-if", !0),
1079
1093
  this.details && (this.details.images || this.details.videos) ? (o(), l("span", {
1080
1094
  key: 1,
1081
1095
  class: "badge bg-black bg-opacity-50 p-2 align-self-end",
1082
1096
  innerHTML: a.cardMedia()
1083
- }, null, 8, kt)) : h("v-if", !0)
1097
+ }, null, 8, kt)) : m("v-if", !0)
1084
1098
  ]),
1085
1099
  t.details && t.details.logo ? (o(), l("img", {
1086
1100
  key: 0,
@@ -1088,26 +1102,26 @@ function Lt(e, n, t, c, m, a) {
1088
1102
  alt: "",
1089
1103
  loading: "lazy",
1090
1104
  class: "card-logo"
1091
- }, null, 8, $t)) : h("v-if", !0)
1092
- ])) : h("v-if", !0),
1105
+ }, null, 8, St)) : m("v-if", !0)
1106
+ ])) : m("v-if", !0),
1093
1107
  s("div", {
1094
1108
  class: "card-body",
1095
1109
  innerHTML: a.cardContent()
1096
1110
  }, null, 8, At),
1097
- t.hidectatext == !1 ? (o(), l("div", St, [
1111
+ t.hidectatext == !1 ? (o(), l("div", $t, [
1098
1112
  s("span", {
1099
1113
  class: v(`${t.btntype == "link" ? "link" : `btn btn-${t.btntype}`} mb-0`)
1100
1114
  }, [
1101
- P(w(t.ctatext), 1),
1102
- s("span", xt, " about " + w(t.title), 1)
1115
+ j(w(t.ctatext), 1),
1116
+ s("span", xt, ": " + w(t.title), 1)
1103
1117
  ], 2)
1104
- ])) : h("v-if", !0)
1118
+ ])) : m("v-if", !0)
1105
1119
  ], 10, yt);
1106
1120
  }
1107
- const R = /* @__PURE__ */ g(pt, [["render", Lt], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/elements/Card/Card.vue"]]);
1108
- const qt = {
1121
+ const Z = /* @__PURE__ */ g(pt, [["render", qt], ["__file", "/Users/james/workspace/work/component-library/src/elements/Card/Card.vue"]]);
1122
+ const Lt = {
1109
1123
  components: {
1110
- Card: R
1124
+ Card: Z
1111
1125
  },
1112
1126
  name: "CardDeck",
1113
1127
  props: {
@@ -1162,8 +1176,8 @@ const qt = {
1162
1176
  }
1163
1177
  }
1164
1178
  }, Tt = ["data-card-type"];
1165
- function Ct(e, n, t, c, m, a) {
1166
- const r = M("Card");
1179
+ function Mt(e, n, t, c, h, a) {
1180
+ const r = C("Card");
1167
1181
  return o(), l("div", {
1168
1182
  class: "container card-deck prevent-invert",
1169
1183
  "data-card-type": t.cardtype
@@ -1172,16 +1186,16 @@ function Ct(e, n, t, c, m, a) {
1172
1186
  s("div", {
1173
1187
  class: v(`row row-cols-${t.cols} row-cols-sm-${t.smcols} row-cols-md-${t.mdcols} ${t.gap ? `g-${t.gap}` : ""}`)
1174
1188
  }, [
1175
- (o(!0), l(S, null, x(t.items, (i, f) => (o(), l("div", {
1189
+ (o(!0), l($, null, x(t.items, (i, f) => (o(), l("div", {
1176
1190
  class: "col",
1177
1191
  key: f
1178
1192
  }, [
1179
1193
  A(r, T(i, {
1180
1194
  class: t.cardclass,
1181
1195
  type: t.cardtype,
1182
- btntype: t.btntype,
1183
- titleclass: t.titleclass,
1184
- ctatext: t.ctatext,
1196
+ btntype: i.btntype ? i.btntype : t.btntype,
1197
+ titleclass: i.titleclass ? i.titleclass : t.titleclass,
1198
+ ctatext: i.ctatext,
1185
1199
  hidectatext: t.hidectatext
1186
1200
  }), null, 16, ["class", "type", "btntype", "titleclass", "ctatext", "hidectatext"])
1187
1201
  ]))), 128))
@@ -1189,24 +1203,24 @@ function Ct(e, n, t, c, m, a) {
1189
1203
  b(e.$slots, "after")
1190
1204
  ], 8, Tt);
1191
1205
  }
1192
- const Mt = /* @__PURE__ */ g(qt, [["render", Ct], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/CardDeck/CardDeck.vue"]]);
1206
+ const Ct = /* @__PURE__ */ g(Lt, [["render", Mt], ["__file", "/Users/james/workspace/work/component-library/src/components/CardDeck/CardDeck.vue"]]);
1193
1207
  function Ht(e) {
1194
1208
  var n;
1195
1209
  let t = e.querySelector(".carousel__inner"), c = e.querySelectorAll(".carousel__item").length;
1196
1210
  e.getAttribute("data-cols");
1197
- let m = e.getAttribute("data-sm-cols"), a = e.getAttribute("data-md-cols");
1211
+ let h = e.getAttribute("data-sm-cols"), a = e.getAttribute("data-md-cols");
1198
1212
  e.querySelector(".carousel__controls a").classList.add("active"), t.addEventListener("scroll", function(r) {
1199
1213
  clearTimeout(n), n = setTimeout(function() {
1200
- let i = t.clientWidth, f = t.scrollWidth, $ = t.scrollLeft, L = Math.round($ / f * c) + 1, C = e.querySelector(".carousel__item:last-child").offsetLeft;
1201
- Array.from(e.querySelectorAll(".carousel__controls a")).forEach((U, H) => {
1202
- U.classList.remove("active");
1203
- }), e.querySelector(".control-" + L).classList.add("active"), L == 1 ? e.querySelector(".btn-prev").setAttribute("disabled", "disabled") : e.querySelector(".btn-prev").removeAttribute("disabled"), t.scrollLeft + i > C ? e.querySelector(".btn-next").setAttribute("disabled", "disabled") : e.querySelector(".btn-next").removeAttribute("disabled");
1214
+ let i = t.clientWidth, f = t.scrollWidth, S = t.scrollLeft, q = Math.round(S / f * c) + 1, M = e.querySelector(".carousel__item:last-child").offsetLeft;
1215
+ Array.from(e.querySelectorAll(".carousel__controls a")).forEach((I, H) => {
1216
+ I.classList.remove("active");
1217
+ }), 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");
1204
1218
  }, 100);
1205
1219
  }, !1), e.addEventListener("click", function(r) {
1206
1220
  for (var i = r.target; i && i != this; i = i.parentNode)
1207
1221
  if (i.matches(".carousel__controls a")) {
1208
- r.preventDefault(), Array.from(e.querySelectorAll(".carousel__controls a")).forEach(($, L) => {
1209
- $.classList.remove("active");
1222
+ r.preventDefault(), Array.from(e.querySelectorAll(".carousel__controls a")).forEach((S, q) => {
1223
+ S.classList.remove("active");
1210
1224
  }), i.classList.add("active");
1211
1225
  const f = document.querySelector(i.getAttribute("href"));
1212
1226
  t.scroll({
@@ -1228,16 +1242,16 @@ function Ht(e) {
1228
1242
  });
1229
1243
  break;
1230
1244
  }
1231
- }, !1), c == 1 && e.classList.add("hide-btns"), m >= c && e.classList.add("hide-sm-btns"), a >= c && e.classList.add("hide-md-btns");
1245
+ }, !1), c == 1 && e.classList.add("hide-btns"), h >= c && e.classList.add("hide-sm-btns"), a >= c && e.classList.add("hide-md-btns");
1232
1246
  }
1233
- let B = Mt.props;
1247
+ let B = Ct.props;
1234
1248
  B.gap.default = 0;
1235
1249
  B.cols.default = 1;
1236
1250
  B.smcols.default = 2;
1237
1251
  B.mdcols.default = 4;
1238
1252
  const Nt = {
1239
1253
  components: {
1240
- Card: R
1254
+ Card: Z
1241
1255
  },
1242
1256
  name: "Carousel",
1243
1257
  data() {
@@ -1266,37 +1280,37 @@ const Nt = {
1266
1280
  Ht(this.$refs.wrapper);
1267
1281
  });
1268
1282
  }
1269
- }, Dt = ["id", "data-cols", "data-sm-cols", "data-md-cols"], Bt = { class: "carousel__wrapper" }, Pt = { class: "carousel__inner" }, It = ["id"], Ut = ["innerHTML", "id"], Ft = ["href"], zt = /* @__PURE__ */ s("button", {
1283
+ }, Dt = ["id", "data-cols", "data-sm-cols", "data-md-cols"], Bt = { class: "carousel__wrapper" }, jt = { class: "carousel__inner" }, Pt = ["id"], It = ["innerHTML", "id"], Ut = ["href"], Ft = /* @__PURE__ */ s("button", {
1270
1284
  class: "btn btn-prev",
1271
1285
  "data-go": "0",
1272
1286
  disabled: ""
1273
- }, "Prev", -1), Vt = /* @__PURE__ */ s("button", {
1287
+ }, "Prev", -1), zt = /* @__PURE__ */ s("button", {
1274
1288
  class: "btn btn-next",
1275
1289
  "data-go": "2"
1276
1290
  }, "Next", -1);
1277
- function Gt(e, n, t, c, m, a) {
1278
- const r = M("Card");
1291
+ function Vt(e, n, t, c, h, a) {
1292
+ const r = C("Card");
1279
1293
  return o(), l("div", {
1280
1294
  class: "container carousel",
1281
- id: "carousel" + m.id,
1295
+ id: "carousel" + h.id,
1282
1296
  ref: "wrapper",
1283
1297
  "data-cols": e.cols,
1284
1298
  "data-sm-cols": e.smcols,
1285
1299
  "data-md-cols": e.mdcols
1286
1300
  }, [
1287
1301
  b(e.$slots, "default", {}, () => [
1288
- h(" Use for titles etc ")
1302
+ m(" Use for titles etc ")
1289
1303
  ]),
1290
1304
  s("div", Bt, [
1291
- s("div", Pt, [
1305
+ s("div", jt, [
1292
1306
  t.type == "card" ? (o(), l("div", {
1293
1307
  key: 0,
1294
1308
  class: v(`row row-cols-${e.cols} row-cols-sm-${e.smcols} row-cols-md-${e.mdcols} ${e.gap ? `g-${e.gap}` : ""}`)
1295
1309
  }, [
1296
- (o(!0), l(S, null, x(e.items, (i, f) => (o(), l("div", {
1310
+ (o(!0), l($, null, x(e.items, (i, f) => (o(), l("div", {
1297
1311
  class: v(`col carousel__item${t.colclass ? ` ${t.colclass}` : ""}`),
1298
1312
  key: f,
1299
- id: "carousel" + m.id + "slide" + (f + 1)
1313
+ id: "carousel" + h.id + "slide" + (f + 1)
1300
1314
  }, [
1301
1315
  A(r, T(i, {
1302
1316
  class: e.cardclass,
@@ -1306,35 +1320,35 @@ function Gt(e, n, t, c, m, a) {
1306
1320
  ctatext: e.ctatext,
1307
1321
  hidectatext: e.hidectatext
1308
1322
  }), null, 16, ["class", "type", "btnyype", "titleclass", "ctatext", "hidectatext"])
1309
- ], 10, It))), 128))
1310
- ], 2)) : h("v-if", !0),
1323
+ ], 10, Pt))), 128))
1324
+ ], 2)) : m("v-if", !0),
1311
1325
  t.type != "card" ? (o(), l("div", {
1312
1326
  key: 1,
1313
1327
  class: v(`row row-cols-${e.cols} row-cols-sm-${e.smcols} row-cols-md-${e.mdcols} ${e.gap ? `g-${e.gap}` : ""}`)
1314
1328
  }, [
1315
- (o(!0), l(S, null, x(e.items, (i, f) => (o(), l("div", {
1329
+ (o(!0), l($, null, x(e.items, (i, f) => (o(), l("div", {
1316
1330
  class: v(`col carousel__item${t.colclass ? ` ${t.colclass}` : ""}`),
1317
1331
  key: f,
1318
1332
  innerHTML: a.content(i),
1319
- id: "carousel" + m.id + "slide" + (f + 1)
1320
- }, null, 10, Ut))), 128))
1321
- ], 2)) : h("v-if", !0)
1333
+ id: "carousel" + h.id + "slide" + (f + 1)
1334
+ }, null, 10, It))), 128))
1335
+ ], 2)) : m("v-if", !0)
1322
1336
  ]),
1323
1337
  s("div", {
1324
1338
  class: v(`carousel__controls cols-${e.cols} cols-sm-${e.smcols} cols-md-${e.mdcols}`)
1325
1339
  }, [
1326
- (o(!0), l(S, null, x(e.items, (i, f) => (o(), l("a", {
1340
+ (o(!0), l($, null, x(e.items, (i, f) => (o(), l("a", {
1327
1341
  key: f,
1328
- href: "#carousel" + m.id + "slide" + (f + 1),
1342
+ href: "#carousel" + h.id + "slide" + (f + 1),
1329
1343
  class: v(`control-${f + 1}`)
1330
- }, "Slide " + w(f + 1), 11, Ft))), 128))
1344
+ }, "Slide " + w(f + 1), 11, Ut))), 128))
1331
1345
  ], 2),
1332
- zt,
1333
- Vt
1346
+ Ft,
1347
+ zt
1334
1348
  ])
1335
1349
  ], 8, Dt);
1336
1350
  }
1337
- const qi = /* @__PURE__ */ g(Nt, [["render", Gt], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/Carousel/Carousel.vue"]]);
1351
+ const xi = /* @__PURE__ */ g(Nt, [["render", Vt], ["__file", "/Users/james/workspace/work/component-library/src/components/Carousel/Carousel.vue"]]);
1338
1352
  const Ot = {
1339
1353
  name: "Header",
1340
1354
  props: {
@@ -1347,54 +1361,54 @@ const Ot = {
1347
1361
  required: !1
1348
1362
  }
1349
1363
  }
1350
- }, jt = { class: "header-banner" }, Jt = { class: "container" }, Wt = { class: "header-banner__inner" }, Kt = ["innerHTML"], Et = { key: 0 }, Rt = ["srcset"], Zt = /* @__PURE__ */ s("img", {
1364
+ }, Wt = { class: "header-banner" }, Kt = { class: "container" }, Gt = { class: "header-banner__inner" }, Et = ["innerHTML"], Rt = { key: 0 }, Zt = ["srcset"], Qt = /* @__PURE__ */ s("img", {
1351
1365
  src: "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",
1352
1366
  alt: ""
1353
1367
  }, null, -1);
1354
- function Qt(e, n, t, c, m, a) {
1355
- return o(), l("header", jt, [
1356
- s("div", Jt, [
1357
- h(" Space for a breadcrumb trail "),
1368
+ function Yt(e, n, t, c, h, a) {
1369
+ return o(), l("header", Wt, [
1370
+ s("div", Kt, [
1371
+ m(" Space for a breadcrumb trail "),
1358
1372
  b(e.$slots, "breadcrumb"),
1359
- s("div", Wt, [
1360
- s("h1", { innerHTML: t.title }, null, 8, Kt),
1373
+ s("div", Gt, [
1374
+ s("h1", { innerHTML: t.title }, null, 8, Et),
1361
1375
  b(e.$slots, "default")
1362
1376
  ])
1363
1377
  ]),
1364
- t.image ? (o(), l("picture", Et, [
1365
- h(" Actual image only loaded on desktops "),
1378
+ t.image ? (o(), l("picture", Rt, [
1379
+ m(" Actual image only loaded on desktops "),
1366
1380
  s("source", {
1367
1381
  srcset: t.image,
1368
1382
  media: "(min-width: 62em)"
1369
- }, null, 8, Rt),
1370
- h(" Placeholder image "),
1371
- Zt
1372
- ])) : h("v-if", !0)
1383
+ }, null, 8, Zt),
1384
+ m(" Placeholder image "),
1385
+ Qt
1386
+ ])) : m("v-if", !0)
1373
1387
  ]);
1374
1388
  }
1375
- const Ti = /* @__PURE__ */ g(Ot, [["render", Qt], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/Header/Header.vue"]]);
1376
- function Yt(e) {
1389
+ const qi = /* @__PURE__ */ g(Ot, [["render", Yt], ["__file", "/Users/james/workspace/work/component-library/src/components/Header/Header.vue"]]);
1390
+ function Jt(e) {
1377
1391
  var n;
1378
1392
  const t = e.querySelector(".testimonial__images"), c = t.querySelectorAll("img").length;
1379
1393
  if (c == 1)
1380
1394
  return !1;
1381
1395
  e.classList.add("testimonial--multi");
1382
- const m = function(a) {
1396
+ const h = function(a) {
1383
1397
  const r = e.querySelector(".btn-next"), i = e.querySelector(".btn-prev");
1384
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 == c && r.setAttribute("disabled", !0);
1385
1399
  };
1386
1400
  t.addEventListener("scroll", function(a) {
1387
1401
  clearTimeout(n), n = setTimeout(function() {
1388
- let r = t.scrollWidth, i = t.scrollHeight, f = t.scrollLeft, $ = t.scrollTop, L = Math.round(f / r * c) + 1;
1389
- f == 0 && $ != 0 && (L = Math.round($ / i * c) + 1), e.setAttribute("data-show", L), m(L);
1402
+ let r = t.scrollWidth, i = t.scrollHeight, f = t.scrollLeft, S = t.scrollTop, q = Math.round(f / r * c) + 1;
1403
+ f == 0 && S != 0 && (q = Math.round(S / i * c) + 1), e.setAttribute("data-show", q), h(q);
1390
1404
  }, 300);
1391
1405
  }, !1), e.addEventListener("click", function(a) {
1392
1406
  for (var r = a.target; r && r != this; r = r.parentNode)
1393
1407
  if (r.matches("[data-go]")) {
1394
- let i = parseInt(r.getAttribute("data-go")), f = 0, $ = 0, L = t.scrollWidth, C = t.scrollHeight;
1395
- L > C ? $ = Math.floor(L * ((i - 1) / c)) : f = Math.floor(C * ((i - 1) / c)), t.scroll({
1408
+ let i = parseInt(r.getAttribute("data-go")), f = 0, S = 0, q = t.scrollWidth, M = t.scrollHeight;
1409
+ q > M ? S = Math.floor(q * ((i - 1) / c)) : f = Math.floor(M * ((i - 1) / c)), t.scroll({
1396
1410
  top: f,
1397
- left: $,
1411
+ left: S,
1398
1412
  behavior: "smooth"
1399
1413
  });
1400
1414
  break;
@@ -1415,7 +1429,7 @@ const Xt = {
1415
1429
  }
1416
1430
  },
1417
1431
  mounted() {
1418
- Yt(this.$refs.wrapper);
1432
+ Jt(this.$refs.wrapper);
1419
1433
  }
1420
1434
  }, es = {
1421
1435
  class: "container testimonial mb-5",
@@ -1432,7 +1446,7 @@ const Xt = {
1432
1446
  class: "btn-next"
1433
1447
  }, "Next")
1434
1448
  ], -1), rs = { class: "col-md-7" }, os = /* @__PURE__ */ s("h2", null, "What our customers think\u2026", -1), ls = { 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);
1435
- function ms(e, n, t, c, m, a) {
1449
+ function hs(e, n, t, c, h, a) {
1436
1450
  return o(), l("div", es, [
1437
1451
  s("div", {
1438
1452
  class: v("bg-" + t.background)
@@ -1440,7 +1454,7 @@ function ms(e, n, t, c, m, a) {
1440
1454
  s("div", ts, [
1441
1455
  s("div", ss, [
1442
1456
  s("div", as, [
1443
- (o(!0), l(S, null, x(t.items, (r, i) => (o(), l("img", {
1457
+ (o(!0), l($, null, x(t.items, (r, i) => (o(), l("img", {
1444
1458
  key: i,
1445
1459
  src: r.image ? r.image : "data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",
1446
1460
  alt: "",
@@ -1452,7 +1466,7 @@ function ms(e, n, t, c, m, a) {
1452
1466
  s("div", rs, [
1453
1467
  os,
1454
1468
  s("div", ls, [
1455
- (o(!0), l(S, null, x(t.items, (r, i) => (o(), l("blockquote", {
1469
+ (o(!0), l($, null, x(t.items, (r, i) => (o(), l("blockquote", {
1456
1470
  key: i,
1457
1471
  class: v(r.class)
1458
1472
  }, [
@@ -1473,10 +1487,10 @@ function ms(e, n, t, c, m, a) {
1473
1487
  ], 2)
1474
1488
  ], 512);
1475
1489
  }
1476
- const Ci = /* @__PURE__ */ g(Xt, [["render", ms], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/Testimonial/Testimonial.vue"]]);
1477
- const hs = {
1490
+ const Li = /* @__PURE__ */ g(Xt, [["render", hs], ["__file", "/Users/james/workspace/work/component-library/src/components/Testimonial/Testimonial.vue"]]);
1491
+ const ms = {
1478
1492
  components: {
1479
- Input: I
1493
+ Input: P
1480
1494
  },
1481
1495
  name: "PropertySearchbar",
1482
1496
  props: {
@@ -1626,18 +1640,18 @@ const hs = {
1626
1640
  }, ps = { class: "property-searchbar" }, ys = ["action", "method"], bs = { class: "col-12 col-md-3" }, vs = { class: "col-12 col-md" }, gs = /* @__PURE__ */ s("span", { class: "form-label d-none d-md-block" }, "Price range", -1), ws = {
1627
1641
  class: "row",
1628
1642
  "data-input-range": ""
1629
- }, ks = { class: "col-12 col-md" }, $s = /* @__PURE__ */ s("span", { class: "form-label d-none d-md-block" }, "Number of beds", -1), As = {
1643
+ }, ks = { class: "col-12 col-md" }, Ss = /* @__PURE__ */ s("span", { class: "form-label d-none d-md-block" }, "Number of beds", -1), As = {
1630
1644
  class: "row",
1631
1645
  "data-input-range": ""
1632
- }, 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" }, [
1646
+ }, $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" }, [
1633
1647
  /* @__PURE__ */ s("button", {
1634
1648
  class: "btn w-100 me-0",
1635
1649
  type: "submit",
1636
1650
  value: "submit"
1637
1651
  }, "Search")
1638
1652
  ], -1);
1639
- function Ls(e, n, t, c, m, a) {
1640
- const r = M("Input");
1653
+ function qs(e, n, t, c, h, a) {
1654
+ const r = C("Input");
1641
1655
  return o(), l("div", _s, [
1642
1656
  b(e.$slots, "default"),
1643
1657
  s("div", ps, [
@@ -1689,7 +1703,7 @@ function Ls(e, n, t, c, m, a) {
1689
1703
  ])
1690
1704
  ]),
1691
1705
  s("fieldset", ks, [
1692
- $s,
1706
+ Ss,
1693
1707
  s("div", As, [
1694
1708
  A(r, {
1695
1709
  class: "col-6",
@@ -1709,7 +1723,7 @@ function Ls(e, n, t, c, m, a) {
1709
1723
  }, null, 8, ["options"])
1710
1724
  ])
1711
1725
  ]),
1712
- s("fieldset", Ss, [
1726
+ s("fieldset", $s, [
1713
1727
  A(r, {
1714
1728
  label: "Property type",
1715
1729
  id: "property-type",
@@ -1723,7 +1737,7 @@ function Ls(e, n, t, c, m, a) {
1723
1737
  b(e.$slots, "after")
1724
1738
  ], 512);
1725
1739
  }
1726
- const Mi = /* @__PURE__ */ g(hs, [["render", Ls], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/PropertySearchbar/PropertySearchbar.vue"]]), qs = (e) => {
1740
+ const Ti = /* @__PURE__ */ g(ms, [["render", qs], ["__file", "/Users/james/workspace/work/component-library/src/components/PropertySearchbar/PropertySearchbar.vue"]]), Ls = (e) => {
1727
1741
  Array.from(e.querySelectorAll("details")).forEach((n, t) => {
1728
1742
  n.addEventListener("mouseenter", function(c) {
1729
1743
  window.matchMedia("(min-width: 62em)").matches && n.setAttribute("open", "true");
@@ -1737,7 +1751,7 @@ const Mi = /* @__PURE__ */ g(hs, [["render", Ls], ["__file", "C:/Users/James.Lam
1737
1751
  };
1738
1752
  const Ts = {
1739
1753
  components: {
1740
- Input: I,
1754
+ Input: P,
1741
1755
  Logo: ue,
1742
1756
  Icon: re
1743
1757
  },
@@ -1809,15 +1823,15 @@ const Ts = {
1809
1823
  },
1810
1824
  mounted() {
1811
1825
  this.$nextTick(function() {
1812
- qs(this.$refs.wrapper);
1826
+ Ls(this.$refs.wrapper);
1813
1827
  });
1814
1828
  }
1815
- }, Cs = /* @__PURE__ */ s("input", {
1829
+ }, Ms = /* @__PURE__ */ s("input", {
1816
1830
  type: "checkbox",
1817
1831
  name: "showMenu",
1818
1832
  id: "showMenu",
1819
1833
  class: "d-none"
1820
- }, null, -1), Ms = /* @__PURE__ */ s("input", {
1834
+ }, null, -1), Cs = /* @__PURE__ */ s("input", {
1821
1835
  type: "checkbox",
1822
1836
  name: "showSearch",
1823
1837
  id: "showSearch",
@@ -1827,30 +1841,30 @@ const Ts = {
1827
1841
  name: "showAccount",
1828
1842
  id: "showAccount",
1829
1843
  class: "d-none"
1830
- }, null, -1), Ns = { class: "nav__mobile-bar" }, Ds = { class: "container" }, Bs = { class: "row" }, Ps = {
1844
+ }, null, -1), Ns = { class: "nav__mobile-bar" }, Ds = { class: "container" }, Bs = { class: "row" }, js = {
1831
1845
  key: 0,
1832
1846
  class: "col mw-md-fit-content nav__logo"
1833
- }, Is = {
1847
+ }, Ps = {
1834
1848
  key: 1,
1835
1849
  class: "col mw-md-fit-content nav__logo"
1836
- }, Us = {
1850
+ }, Is = {
1837
1851
  href: "/",
1838
1852
  class: "text-decoration-none mb-0"
1839
- }, Fs = /* @__PURE__ */ s("div", { class: "col mw-fit-content d-md-none flex-row align-items-center nav__menu-btn" }, [
1853
+ }, Us = /* @__PURE__ */ s("div", { class: "col mw-fit-content d-md-none flex-row align-items-center nav__menu-btn" }, [
1840
1854
  /* @__PURE__ */ s("label", { for: "showMenu" }, "Menu")
1841
- ], -1), zs = { class: "nav__inner" }, Vs = { class: "container" }, Gs = { class: "row" }, Os = {
1855
+ ], -1), Fs = { class: "nav__inner" }, zs = { class: "container" }, Vs = { class: "row" }, Os = {
1842
1856
  key: 0,
1843
1857
  class: "col mw-md-fit-content nav__logo"
1844
- }, js = {
1858
+ }, Ws = {
1845
1859
  key: 1,
1846
1860
  class: "col mw-md-fit-content nav__logo"
1847
- }, Js = {
1861
+ }, Ks = {
1848
1862
  href: "/",
1849
1863
  class: "text-decoration-none mb-0"
1850
- }, Ws = {
1864
+ }, Gs = {
1851
1865
  key: 2,
1852
1866
  class: "col mw-fit-content nav__search-btn flex-row align-items-center"
1853
- }, Ks = /* @__PURE__ */ s("label", { for: "showSearch" }, [
1867
+ }, Es = /* @__PURE__ */ s("label", { for: "showSearch" }, [
1854
1868
  /* @__PURE__ */ s("svg", {
1855
1869
  class: "icon",
1856
1870
  viewBox: "0 0 32 32"
@@ -1871,14 +1885,14 @@ const Ts = {
1871
1885
  class: "icon__outline"
1872
1886
  })
1873
1887
  ])
1874
- ], -1), Es = [
1875
- Ks
1876
- ], Rs = /* @__PURE__ */ s("div", { class: "col mw-fit-content d-md-none flex-row align-items-center nav__menu-btn" }, [
1888
+ ], -1), Rs = [
1889
+ Es
1890
+ ], Zs = /* @__PURE__ */ s("div", { class: "col mw-fit-content d-md-none flex-row align-items-center nav__menu-btn" }, [
1877
1891
  /* @__PURE__ */ s("label", { for: "showMenu" }, "Menu")
1878
- ], -1), Zs = { class: "col-12 col-md nav__menu ms-auto flex-row align-items-center" }, Qs = {
1892
+ ], -1), Qs = { class: "col-12 col-md nav__menu ms-auto flex-row align-items-center" }, Ys = {
1879
1893
  key: 3,
1880
1894
  class: "col nav__account-btn flex-row align-items-center"
1881
- }, Ys = /* @__PURE__ */ s("label", { for: "showAccount" }, [
1895
+ }, Js = /* @__PURE__ */ s("label", { for: "showAccount" }, [
1882
1896
  /* @__PURE__ */ s("svg", {
1883
1897
  class: "icon",
1884
1898
  viewBox: "0 0 28 28"
@@ -1894,7 +1908,7 @@ const Ts = {
1894
1908
  ]),
1895
1909
  /* @__PURE__ */ s("span", null, "My account")
1896
1910
  ], -1), Xs = [
1897
- Ys
1911
+ Js
1898
1912
  ], ea = {
1899
1913
  key: 4,
1900
1914
  class: "col-12 col-md nav__btn mw-md-fit-content flex-row align-items-center"
@@ -1916,26 +1930,26 @@ const Ts = {
1916
1930
  }, fa = {
1917
1931
  href: "/",
1918
1932
  class: "text-decoration-none mb-0"
1919
- }, ma = /* @__PURE__ */ s("div", { class: "col mw-fit-content d-md-none flex-row align-items-center nav__menu-btn" }, [
1933
+ }, ha = /* @__PURE__ */ s("div", { class: "col mw-fit-content d-md-none flex-row align-items-center nav__menu-btn" }, [
1920
1934
  /* @__PURE__ */ s("label", { for: "showAccount" }, "Account")
1921
- ], -1), ha = { class: "container" }, _a = /* @__PURE__ */ s("span", { class: "nav__bg" }, null, -1);
1922
- function pa(e, n, t, c, m, a) {
1923
- const r = M("Logo");
1935
+ ], -1), ma = { class: "container" }, _a = /* @__PURE__ */ s("span", { class: "nav__bg" }, null, -1);
1936
+ function pa(e, n, t, c, h, a) {
1937
+ const r = C("Logo");
1924
1938
  return o(), l("nav", {
1925
1939
  class: v(`nav${a.hasSecondarySlot ? " has-secondary" : ""}`),
1926
1940
  ref: "wrapper"
1927
1941
  }, [
1928
- Cs,
1929
1942
  Ms,
1943
+ Cs,
1930
1944
  Hs,
1931
- h(" Mobile bar "),
1945
+ m(" Mobile bar "),
1932
1946
  s("div", Ns, [
1933
1947
  s("div", Ds, [
1934
1948
  s("div", Bs, [
1935
- a.hasLogoSlot ? (o(), l("div", Ps, [
1949
+ a.hasLogoSlot ? (o(), l("div", js, [
1936
1950
  b(e.$slots, "logo")
1937
- ])) : (o(), l("div", Is, [
1938
- s("a", Us, [
1951
+ ])) : (o(), l("div", Ps, [
1952
+ s("a", Is, [
1939
1953
  A(r, {
1940
1954
  id: t.logo,
1941
1955
  path: t.logopath,
@@ -1944,17 +1958,17 @@ function pa(e, n, t, c, m, a) {
1944
1958
  }, null, 8, ["id", "path", "desc"])
1945
1959
  ])
1946
1960
  ])),
1947
- Fs
1961
+ Us
1948
1962
  ])
1949
1963
  ])
1950
1964
  ]),
1951
- s("div", zs, [
1952
- s("div", Vs, [
1953
- s("div", Gs, [
1965
+ s("div", Fs, [
1966
+ s("div", zs, [
1967
+ s("div", Vs, [
1954
1968
  a.hasLogoSlot ? (o(), l("div", Os, [
1955
1969
  b(e.$slots, "logo")
1956
- ])) : (o(), l("div", js, [
1957
- s("a", Js, [
1970
+ ])) : (o(), l("div", Ws, [
1971
+ s("a", Ks, [
1958
1972
  A(r, {
1959
1973
  id: t.logo,
1960
1974
  path: t.logopath,
@@ -1963,34 +1977,34 @@ function pa(e, n, t, c, m, a) {
1963
1977
  }, null, 8, ["id", "path", "desc"])
1964
1978
  ])
1965
1979
  ])),
1966
- a.hasSearchSlot ? (o(), l("div", Ws, Es)) : h("v-if", !0),
1967
- Rs,
1968
- h(" Main menu "),
1969
- s("div", Zs, [
1980
+ a.hasSearchSlot ? (o(), l("div", Gs, Rs)) : m("v-if", !0),
1981
+ Zs,
1982
+ m(" Main menu "),
1983
+ s("div", Qs, [
1970
1984
  b(e.$slots, "default")
1971
1985
  ]),
1972
- a.hasAccountSlot ? (o(), l("div", Qs, Xs)) : h("v-if", !0),
1986
+ a.hasAccountSlot ? (o(), l("div", Ys, Xs)) : m("v-if", !0),
1973
1987
  t.btnlink ? (o(), l("div", ea, [
1974
1988
  s("a", {
1975
1989
  href: t.btnlink,
1976
1990
  class: "btn me-0",
1977
1991
  innerHTML: t.btntext
1978
1992
  }, null, 8, ta)
1979
- ])) : h("v-if", !0)
1993
+ ])) : m("v-if", !0)
1980
1994
  ])
1981
1995
  ]),
1982
1996
  a.hasSecondarySlot ? (o(), l("div", sa, [
1983
1997
  s("div", aa, [
1984
1998
  b(e.$slots, "secondary")
1985
1999
  ])
1986
- ])) : h("v-if", !0),
2000
+ ])) : m("v-if", !0),
1987
2001
  a.hasSearchSlot ? (o(), l("div", ia, [
1988
2002
  s("div", na, [
1989
2003
  s("div", ra, [
1990
2004
  b(e.$slots, "search")
1991
2005
  ])
1992
2006
  ])
1993
- ])) : h("v-if", !0)
2007
+ ])) : m("v-if", !0)
1994
2008
  ]),
1995
2009
  a.hasAccountSlot ? (o(), l("div", oa, [
1996
2010
  s("div", la, [
@@ -2007,17 +2021,17 @@ function pa(e, n, t, c, m, a) {
2007
2021
  }, null, 8, ["id", "path", "desc"])
2008
2022
  ])
2009
2023
  ])),
2010
- ma
2024
+ ha
2011
2025
  ])
2012
2026
  ]),
2013
- s("div", ha, [
2027
+ s("div", ma, [
2014
2028
  b(e.$slots, "account")
2015
2029
  ])
2016
- ])) : h("v-if", !0),
2030
+ ])) : m("v-if", !0),
2017
2031
  _a
2018
2032
  ], 2);
2019
2033
  }
2020
- const Hi = /* @__PURE__ */ g(Ts, [["render", pa], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/Nav/Nav.vue"]]), ya = (e) => {
2034
+ const Mi = /* @__PURE__ */ g(Ts, [["render", pa], ["__file", "/Users/james/workspace/work/component-library/src/components/Nav/Nav.vue"]]), ya = (e) => {
2021
2035
  const n = new IntersectionObserver(
2022
2036
  function([c]) {
2023
2037
  c.target.classList.toggle("in-view", c.intersectionRatio > 0), document.getElementById("showDrawer").checked = !1;
@@ -2048,39 +2062,39 @@ const ba = {
2048
2062
  name: "showDrawer",
2049
2063
  id: "showDrawer",
2050
2064
  class: "d-none"
2051
- }, null, -1), wa = { class: "drawer__btn pb-0" }, ka = { class: "container text-end pb-0" }, $a = {
2065
+ }, null, -1), wa = { class: "drawer__btn pb-0" }, ka = { class: "container text-end pb-0" }, Sa = {
2052
2066
  for: "showDrawer",
2053
2067
  class: "btn btn-secondary me-0"
2054
2068
  }, Aa = {
2055
2069
  class: "drawer",
2056
2070
  id: "drawer",
2057
2071
  ref: "drawer"
2058
- }, Sa = /* @__PURE__ */ s("div", { class: "container text-end pb-0" }, [
2072
+ }, $a = /* @__PURE__ */ s("div", { class: "container text-end pb-0" }, [
2059
2073
  /* @__PURE__ */ s("label", {
2060
2074
  for: "showDrawer",
2061
2075
  class: "btn btn-tertiary mb-0 me-0 py-1 px-2"
2062
2076
  }, [
2063
2077
  /* @__PURE__ */ s("span", { class: "visually-hidden" }, "Close"),
2064
- /* @__PURE__ */ P("\u2715")
2078
+ /* @__PURE__ */ j("\u2715")
2065
2079
  ])
2066
2080
  ], -1), xa = /* @__PURE__ */ s("hr", { id: "drawer-end" }, null, -1);
2067
- function La(e, n, t, c, m, a) {
2081
+ function qa(e, n, t, c, h, a) {
2068
2082
  return o(), l("div", va, [
2069
2083
  ga,
2070
2084
  s("div", wa, [
2071
2085
  s("div", ka, [
2072
- s("label", $a, w(t.label), 1)
2086
+ s("label", Sa, w(t.label), 1)
2073
2087
  ])
2074
2088
  ]),
2075
2089
  s("div", Aa, [
2076
- Sa,
2090
+ $a,
2077
2091
  b(e.$slots, "default")
2078
2092
  ], 512),
2079
2093
  xa
2080
2094
  ], 512);
2081
2095
  }
2082
- const Ni = /* @__PURE__ */ g(ba, [["render", La], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/Drawer/Drawer.vue"]]), qa = (e) => {
2083
- const n = e.querySelectorAll(".modal__outer a, .modal__outer button"), t = n[0], c = n[n.length - 1], m = e.getAttribute("id"), a = function() {
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() {
2084
2098
  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();
2085
2099
  };
2086
2100
  e.addEventListener("keydown", function(i) {
@@ -2101,7 +2115,7 @@ const Ni = /* @__PURE__ */ g(ba, [["render", La], ["__file", "C:/Users/James.Lam
2101
2115
  }
2102
2116
  });
2103
2117
  function r() {
2104
- if (location.hash === "#" + m) {
2118
+ if (location.hash === "#" + h) {
2105
2119
  console.log("Modal is now open");
2106
2120
  const i = document.querySelector(".modal:target .modal__inner > .youtube-embed:first-child:last-child a");
2107
2121
  console.log(i), i && i.click();
@@ -2124,22 +2138,19 @@ const Ta = {
2124
2138
  },
2125
2139
  mounted() {
2126
2140
  this.$nextTick(function() {
2127
- qa(this.$refs.modal);
2141
+ La(this.$refs.modal);
2128
2142
  });
2129
2143
  }
2130
- }, Ca = ["id"], Ma = ["href"], Ha = /* @__PURE__ */ s("span", { class: "visually-hidden" }, "Close", -1), Na = [
2144
+ }, Ma = ["id"], Ca = ["href"], Ha = /* @__PURE__ */ s("span", { class: "visually-hidden" }, "Close", -1), Na = [
2131
2145
  Ha
2132
- ], Da = { class: "modal__outer" }, Ba = ["href"], Pa = /* @__PURE__ */ s("span", { class: "visually-hidden" }, "Close", -1), Ia = /* @__PURE__ */ P("\u2715"), Ua = [
2133
- Pa,
2134
- Ia
2135
- ], Fa = { class: "modal__inner" }, za = /* @__PURE__ */ s("button", {
2146
+ ], Da = { class: "modal__outer" }, Ba = ["href"], ja = /* @__PURE__ */ s("span", { class: "visually-hidden" }, "Close", -1), Pa = { class: "modal__inner" }, Ia = /* @__PURE__ */ s("button", {
2136
2147
  class: "modal__dock--left btn btn-prev",
2137
2148
  tabindex: "-1"
2138
- }, "Left", -1), Va = /* @__PURE__ */ s("button", {
2149
+ }, "Left", -1), Ua = /* @__PURE__ */ s("button", {
2139
2150
  class: "modal__dock--right btn btn-next",
2140
2151
  tabindex: "-1"
2141
2152
  }, "Right", -1);
2142
- function Ga(e, n, t, c, m, a) {
2153
+ function Fa(e, n, t, c, h, a) {
2143
2154
  return o(), l("div", {
2144
2155
  class: "modal",
2145
2156
  id: t.id,
@@ -2150,22 +2161,25 @@ function Ga(e, n, t, c, m, a) {
2150
2161
  s("a", {
2151
2162
  href: `#${t.returnid ? t.returnid : ""}`,
2152
2163
  tabindex: "-1"
2153
- }, Na, 8, Ma),
2164
+ }, Na, 8, Ca),
2154
2165
  s("div", Da, [
2155
2166
  s("a", {
2156
2167
  href: `#${t.returnid ? t.returnid : ""}`,
2157
2168
  class: "btn btn-tertiary py-1 px-2"
2158
- }, Ua, 8, Ba),
2159
- s("div", Fa, [
2169
+ }, [
2170
+ ja,
2171
+ j("\u2715")
2172
+ ], 8, Ba),
2173
+ s("div", Pa, [
2160
2174
  b(e.$slots, "default")
2161
2175
  ])
2162
2176
  ]),
2163
- za,
2164
- Va
2165
- ], 8, Ca);
2177
+ Ia,
2178
+ Ua
2179
+ ], 8, Ma);
2166
2180
  }
2167
- const Di = /* @__PURE__ */ g(Ta, [["render", Ga], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/Modal/Modal.vue"]]);
2168
- const Oa = {
2181
+ const Hi = /* @__PURE__ */ g(Ta, [["render", Fa], ["__file", "/Users/james/workspace/work/component-library/src/components/Modal/Modal.vue"]]);
2182
+ const za = {
2169
2183
  name: "Stepper",
2170
2184
  props: {
2171
2185
  label: {
@@ -2178,27 +2192,27 @@ const Oa = {
2178
2192
  default: "Complete"
2179
2193
  }
2180
2194
  }
2181
- }, ja = { class: "container" }, Ja = ["aria-label"], Wa = {
2195
+ }, Va = { class: "container" }, Oa = ["aria-label"], Wa = {
2182
2196
  key: 0,
2183
2197
  class: "h6 stepper__start"
2184
- }, Ka = { class: "list-unstyled" }, Ea = { class: "h6 stepper__end" };
2185
- function Ra(e, n, t, c, m, a) {
2186
- return o(), l("div", ja, [
2198
+ }, Ka = { class: "list-unstyled" }, Ga = { class: "h6 stepper__end" };
2199
+ function Ea(e, n, t, c, h, a) {
2200
+ return o(), l("div", Va, [
2187
2201
  s("nav", {
2188
2202
  class: "stepper",
2189
2203
  "aria-label": t.label ? t.label : "Progress"
2190
2204
  }, [
2191
- t.label ? (o(), l("span", Wa, w(t.label), 1)) : h("v-if", !0),
2205
+ t.label ? (o(), l("span", Wa, w(t.label), 1)) : m("v-if", !0),
2192
2206
  s("ol", Ka, [
2193
2207
  b(e.$slots, "default", {}, () => [
2194
- h(" Use for titles etc ")
2208
+ m(" Use for titles etc ")
2195
2209
  ])
2196
2210
  ]),
2197
- s("span", Ea, w(t.endlabel), 1)
2198
- ], 8, Ja)
2211
+ s("span", Ga, w(t.endlabel), 1)
2212
+ ], 8, Oa)
2199
2213
  ]);
2200
2214
  }
2201
- const Bi = /* @__PURE__ */ g(Oa, [["render", Ra], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/Stepper/Stepper.vue"]]), Za = {
2215
+ const Ni = /* @__PURE__ */ g(za, [["render", Ea], ["__file", "/Users/james/workspace/work/component-library/src/components/Stepper/Stepper.vue"]]), Ra = {
2202
2216
  name: "Stepper",
2203
2217
  props: {
2204
2218
  url: {
@@ -2214,11 +2228,11 @@ const Bi = /* @__PURE__ */ g(Oa, [["render", Ra], ["__file", "C:/Users/James.Lam
2214
2228
  required: !1
2215
2229
  }
2216
2230
  }
2217
- }, Qa = ["href", "aria-current"], Ya = {
2231
+ }, Za = ["href", "aria-current"], Qa = {
2218
2232
  key: 0,
2219
2233
  class: "visually-hidden"
2220
2234
  };
2221
- function Xa(e, n, t, c, m, a) {
2235
+ function Ya(e, n, t, c, h, a) {
2222
2236
  return o(), l("li", null, [
2223
2237
  s("a", {
2224
2238
  href: t.url,
@@ -2228,12 +2242,12 @@ function Xa(e, n, t, c, m, a) {
2228
2242
  s("span", null, [
2229
2243
  b(e.$slots, "default")
2230
2244
  ]),
2231
- t.status ? (o(), l("em", Ya, " - status: " + w(t.status), 1)) : h("v-if", !0)
2232
- ], 10, Qa)
2245
+ t.status ? (o(), l("em", Qa, " - status: " + w(t.status), 1)) : m("v-if", !0)
2246
+ ], 10, Za)
2233
2247
  ]);
2234
2248
  }
2235
- const Pi = /* @__PURE__ */ g(Za, [["render", Xa], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/Stepper/Step.vue"]]);
2236
- const ei = {
2249
+ const Di = /* @__PURE__ */ g(Ra, [["render", Ya], ["__file", "/Users/james/workspace/work/component-library/src/components/Stepper/Step.vue"]]);
2250
+ const Ja = {
2237
2251
  name: "Tabs",
2238
2252
  data() {
2239
2253
  return {
@@ -2247,10 +2261,10 @@ const ei = {
2247
2261
  let n = 1;
2248
2262
  for (const [t, c] of Object.entries(this.$slots.default()))
2249
2263
  if (c.props && c.props.title) {
2250
- let m = c.props.title, a = {
2264
+ let h = c.props.title, a = {
2251
2265
  name: this.tabsID,
2252
2266
  id: this.tabsID + "_tab" + n++,
2253
- tabTitle: m
2267
+ tabTitle: h
2254
2268
  };
2255
2269
  e.push(a);
2256
2270
  }
@@ -2265,13 +2279,13 @@ const ei = {
2265
2279
  c.props && c.props.title && (n == e && (console.log(c), c.type.data().show = !0), n++);
2266
2280
  }
2267
2281
  }
2268
- }, ti = {
2282
+ }, Xa = {
2269
2283
  class: "container tabs__container",
2270
2284
  ref: "wrapper"
2271
- }, si = ["data-key", "name", "id", "checked"], ai = { class: "tabs__links" }, ii = ["for", "onClick"], ni = { class: "tabs" };
2272
- function ri(e, n, t, c, m, a) {
2273
- return o(), l("div", ti, [
2274
- (o(!0), l(S, null, x(a.tabLinks(), (r, i) => (o(), l("input", {
2285
+ }, ei = ["data-key", "name", "id", "checked"], ti = { class: "tabs__links" }, si = ["for", "onClick"], ai = { class: "tabs" };
2286
+ function ii(e, n, t, c, h, a) {
2287
+ return o(), l("div", Xa, [
2288
+ (o(!0), l($, null, x(a.tabLinks(), (r, i) => (o(), l("input", {
2275
2289
  type: "radio",
2276
2290
  class: "tab__input",
2277
2291
  key: i,
@@ -2279,21 +2293,21 @@ function ri(e, n, t, c, m, a) {
2279
2293
  name: r.name,
2280
2294
  id: r.id,
2281
2295
  checked: i == 0
2282
- }, null, 8, si))), 128)),
2283
- s("div", ai, [
2284
- (o(!0), l(S, null, x(a.tabLinks(), (r, i) => (o(), l("label", {
2296
+ }, null, 8, ei))), 128)),
2297
+ s("div", ti, [
2298
+ (o(!0), l($, null, x(a.tabLinks(), (r, i) => (o(), l("label", {
2285
2299
  key: i,
2286
2300
  for: r.id,
2287
2301
  class: "link",
2288
2302
  onClick: (f) => a.openTab(i)
2289
- }, w(r.tabTitle), 9, ii))), 128))
2303
+ }, w(r.tabTitle), 9, si))), 128))
2290
2304
  ]),
2291
- s("div", ni, [
2305
+ s("div", ai, [
2292
2306
  b(e.$slots, "default")
2293
2307
  ])
2294
2308
  ], 512);
2295
2309
  }
2296
- const Ii = /* @__PURE__ */ g(ei, [["render", ri], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/Tabs/Tabs.vue"]]), oi = {
2310
+ const Bi = /* @__PURE__ */ g(Ja, [["render", ii], ["__file", "/Users/james/workspace/work/component-library/src/components/Tabs/Tabs.vue"]]), ni = {
2297
2311
  name: "Tab",
2298
2312
  props: {
2299
2313
  title: {
@@ -2315,17 +2329,17 @@ const Ii = /* @__PURE__ */ g(ei, [["render", ri], ["__file", "C:/Users/James.Lam
2315
2329
  console.log(e);
2316
2330
  }
2317
2331
  }
2318
- }, li = {
2332
+ }, ri = {
2319
2333
  key: 0,
2320
2334
  class: "tab"
2321
2335
  };
2322
- function ci(e, n, t, c, m, a) {
2323
- return m.show ? (o(), l("div", li, [
2336
+ function oi(e, n, t, c, h, a) {
2337
+ return h.show ? (o(), l("div", ri, [
2324
2338
  b(e.$slots, "default")
2325
- ])) : h("v-if", !0);
2339
+ ])) : m("v-if", !0);
2326
2340
  }
2327
- const Ui = /* @__PURE__ */ g(oi, [["render", ci], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/Tabs/Tab.vue"]]);
2328
- function di(e) {
2341
+ const ji = /* @__PURE__ */ g(ni, [["render", oi], ["__file", "/Users/james/workspace/work/component-library/src/components/Tabs/Tab.vue"]]);
2342
+ function li(e) {
2329
2343
  if (e.addEventListener("click", function(t) {
2330
2344
  for (var c = t.target; c && c != this; c = c.parentNode)
2331
2345
  if (c.matches(".btn-close")) {
@@ -2350,7 +2364,7 @@ function di(e) {
2350
2364
  let n = document.querySelector(".alert__holder");
2351
2365
  e.classList.contains("alert--fixed") && !e.parentNode.classList.contains("alert__wrapper") && n.appendChild(e);
2352
2366
  }
2353
- const ui = {
2367
+ const ci = {
2354
2368
  name: "Alert",
2355
2369
  props: {
2356
2370
  dismissible: {
@@ -2369,16 +2383,16 @@ const ui = {
2369
2383
  }
2370
2384
  },
2371
2385
  mounted() {
2372
- di(this.$refs.wrapper);
2386
+ li(this.$refs.wrapper);
2373
2387
  }
2374
- }, fi = ["data-timeout"], mi = {
2388
+ }, di = ["data-timeout"], ui = {
2375
2389
  key: 0,
2376
2390
  type: "button",
2377
2391
  class: "btn-close",
2378
2392
  "data-bs-dismiss": "alert",
2379
2393
  "aria-label": "Close"
2380
2394
  };
2381
- function hi(e, n, t, c, m, a) {
2395
+ function fi(e, n, t, c, h, a) {
2382
2396
  return o(), l("div", {
2383
2397
  class: v(`container alert pb-0 ${t.dismissible ? "alert--dismissible fade show" : ""}`),
2384
2398
  ref: "wrapper",
@@ -2389,18 +2403,18 @@ function hi(e, n, t, c, m, a) {
2389
2403
  class: v(`alert__inner bg-${t.colour}`),
2390
2404
  role: "alert"
2391
2405
  }, [
2392
- t.dismissible ? (o(), l("button", mi)) : h("v-if", !0),
2406
+ t.dismissible ? (o(), l("button", ui)) : m("v-if", !0),
2393
2407
  b(e.$slots, "default")
2394
2408
  ], 2)
2395
- ], 14, fi);
2409
+ ], 14, di);
2396
2410
  }
2397
- const Fi = /* @__PURE__ */ g(ui, [["render", hi], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/Alert/Alert.vue"]]);
2398
- let Z = E.props;
2399
- Z.fields.required = !1;
2400
- const _i = {
2411
+ const Pi = /* @__PURE__ */ g(ci, [["render", fi], ["__file", "/Users/james/workspace/work/component-library/src/components/Alert/Alert.vue"]]);
2412
+ let Q = R.props;
2413
+ Q.fields.required = !1;
2414
+ const hi = {
2401
2415
  components: {
2402
- Table: E,
2403
- Input: I
2416
+ Table: R,
2417
+ Input: P
2404
2418
  },
2405
2419
  data() {
2406
2420
  return {
@@ -2413,8 +2427,8 @@ const _i = {
2413
2427
  const n = new FormData(e.target);
2414
2428
  let t = new Date();
2415
2429
  const c = t.getFullYear();
2416
- let m = t.getMonth() + 1, a = t.getDate();
2417
- a < 10 && (a = "0" + a), m < 10 && (m = "0" + m), t = a + "/" + m + "/" + c, this.itemsData.unshift({
2430
+ let h = t.getMonth() + 1, a = t.getDate();
2431
+ a < 10 && (a = "0" + a), h < 10 && (h = "0" + h), t = a + "/" + h + "/" + c, this.itemsData.unshift({
2418
2432
  date_added: t,
2419
2433
  user: n.get("user"),
2420
2434
  note: n.get("addNote")
@@ -2427,7 +2441,7 @@ const _i = {
2427
2441
  type: String,
2428
2442
  required: !0
2429
2443
  },
2430
- ...Z,
2444
+ ...Q,
2431
2445
  title: {
2432
2446
  type: String,
2433
2447
  required: !1
@@ -2442,18 +2456,18 @@ const _i = {
2442
2456
  required: !1
2443
2457
  }
2444
2458
  }
2445
- }, pi = { class: "container note-feed mb-2" }, yi = ["innerHTML"], bi = ["action", "method"], vi = ["value"], gi = /* @__PURE__ */ s("button", { class: "btn btn-tertiary" }, "Submit note", -1);
2446
- function wi(e, n, t, c, m, a) {
2447
- const r = M("Table"), i = M("Input");
2448
- return o(), l("div", pi, [
2459
+ }, mi = { class: "container note-feed mb-2" }, _i = ["innerHTML"], pi = ["action", "method"], yi = ["value"], bi = /* @__PURE__ */ s("button", { class: "btn btn-tertiary" }, "Submit note", -1);
2460
+ function vi(e, n, t, c, h, a) {
2461
+ const r = C("Table"), i = C("Input");
2462
+ return o(), l("div", mi, [
2449
2463
  t.title ? (o(), l("span", {
2450
2464
  key: 0,
2451
2465
  class: "h3",
2452
2466
  innerHTML: t.title
2453
- }, null, 8, yi)) : h("v-if", !0),
2467
+ }, null, 8, _i)) : m("v-if", !0),
2454
2468
  A(r, T({
2455
2469
  fields: [{ key: "date_added" }, { key: "user" }, { key: "note" }],
2456
- items: m.itemsData
2470
+ items: h.itemsData
2457
2471
  }, e.$props, { class: "mb-0" }), null, 16, ["items"]),
2458
2472
  s("form", {
2459
2473
  action: t.action,
@@ -2464,7 +2478,7 @@ function wi(e, n, t, c, m, a) {
2464
2478
  type: "hidden",
2465
2479
  value: t.user,
2466
2480
  name: "user"
2467
- }, null, 8, vi),
2481
+ }, null, 8, yi),
2468
2482
  A(i, {
2469
2483
  id: "addNote",
2470
2484
  type: "textarea",
@@ -2472,33 +2486,33 @@ function wi(e, n, t, c, m, a) {
2472
2486
  required: "",
2473
2487
  class: "mw-100"
2474
2488
  }),
2475
- gi
2476
- ], 40, bi)
2489
+ bi
2490
+ ], 40, pi)
2477
2491
  ]);
2478
2492
  }
2479
- const zi = /* @__PURE__ */ g(_i, [["render", wi], ["__file", "C:/Users/James.Lambert/Documents/Github/iamproperty-vue-component-library/src/components/NoteFeed/NoteFeed.vue"]]);
2493
+ const Ii = /* @__PURE__ */ g(hi, [["render", vi], ["__file", "/Users/james/workspace/work/component-library/src/components/NoteFeed/NoteFeed.vue"]]);
2480
2494
  export {
2481
2495
  Si as Accordion,
2482
- xi as AccordionItem,
2483
- Fi as Alert,
2484
- Li as Banner,
2485
- R as Card,
2486
- Mt as CardDeck,
2487
- qi as Carousel,
2488
- Ni as Drawer,
2489
- Ai as FileUploads,
2490
- Ti as Header,
2496
+ Ai as AccordionItem,
2497
+ Pi as Alert,
2498
+ $i as Banner,
2499
+ Z as Card,
2500
+ Ct as CardDeck,
2501
+ xi as Carousel,
2502
+ Ci as Drawer,
2503
+ ki as FileUploads,
2504
+ qi as Header,
2491
2505
  re as Icon,
2492
- I as Input,
2506
+ P as Input,
2493
2507
  ue as Logo,
2494
- Di as Modal,
2495
- Hi as Nav,
2496
- zi as NoteFeed,
2497
- Mi as PropertySearchbar,
2498
- Pi as Step,
2499
- Bi as Stepper,
2500
- Ui as Tab,
2501
- E as Table,
2502
- Ii as Tabs,
2503
- Ci as Testimonial
2508
+ Hi as Modal,
2509
+ Mi as Nav,
2510
+ Ii as NoteFeed,
2511
+ Ti as PropertySearchbar,
2512
+ Di as Step,
2513
+ Ni as Stepper,
2514
+ ji as Tab,
2515
+ R as Table,
2516
+ Bi as Tabs,
2517
+ Li as Testimonial
2504
2518
  };