@iamproperty/components 6.1.0--beta3 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/css/core.min.css +1 -1
- package/assets/css/core.min.css.map +1 -1
- package/assets/css/style.min.css +1 -1
- package/assets/css/style.min.css.map +1 -1
- package/assets/js/components/accordion/accordion.component.min.js +1 -1
- package/assets/js/components/actionbar/actionbar.component.min.js +1 -1
- package/assets/js/components/address-lookup/address-lookup.component.min.js +1 -1
- package/assets/js/components/applied-filters/applied-filters.component.min.js +1 -1
- package/assets/js/components/barchart/barchart.component.min.js +1 -1
- package/assets/js/components/card/card.component.min.js +1 -1
- package/assets/js/components/carousel/carousel.component.min.js +1 -1
- package/assets/js/components/collapsible-side/collapsible-side.component.min.js +1 -1
- package/assets/js/components/fileupload/fileupload.component.min.js +1 -1
- package/assets/js/components/filter-card/filter-card.component.min.js +1 -1
- package/assets/js/components/filterlist/filterlist.component.min.js +1 -1
- package/assets/js/components/header/header.component.min.js +1 -1
- package/assets/js/components/inline-edit/inline-edit.component.min.js +1 -1
- package/assets/js/components/marketing/marketing.component.min.js +1 -1
- package/assets/js/components/multiselect/multiselect.component.min.js +1 -1
- package/assets/js/components/nav/nav.component.min.js +1 -1
- package/assets/js/components/notification/notification.component.min.js +1 -1
- package/assets/js/components/pagination/pagination.component.min.js +1 -1
- package/assets/js/components/record-card/record-card.component.min.js +1 -1
- package/assets/js/components/search/search.component.min.js +1 -1
- package/assets/js/components/slider/slider.component.min.js +1 -1
- package/assets/js/components/table/table.component.min.js +1 -1
- package/assets/js/components/tabs/tabs.component.min.js +1 -1
- package/assets/js/components/video-card/video-card.component.min.js +1 -1
- package/assets/js/components.bundle.js +1 -1
- package/assets/js/scripts.bundle.js +1 -1
- package/assets/js/scripts.bundle.min.js +1 -1
- package/assets/sass/foundations/grid.scss +0 -1
- package/dist/components.es.js +11 -11
- package/dist/components.umd.js +11 -11
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* iamKey
|
|
2
|
+
* iamKey v7.0.0
|
|
3
3
|
* Copyright 2022-2025 iamproperty
|
|
4
4
|
*/
|
|
5
5
|
!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";var e=e=>{if(!e.querySelector(":scope .mh-lg")&&!e.querySelector("iam-multi-step")){e.innerHTML='<div class="mh-lg">'.concat(e.innerHTML,"</div>");var t=e.querySelector(".mh-lg"),a=e.querySelector(".mh-lg :is(.h1,.h2,.h3,.h4,.h5,.h6)");if(a){var r=a.previousSibling;t.before(a),r&&a.before(r)}}e.querySelector(":scope > button:first-child")||e.insertAdjacentHTML("afterbegin",'<button class="dialog__close">Close</button>')},t=(e,t)=>{(function(e){var t=new TextEncoder("utf-8").encode(e);return crypto.subtle.digest("SHA-1",t).then((function(e){for(var t=[],a=new DataView(e),r=0;r<a.byteLength;r+=4){var n=("00000000"+a.getUint32(r).toString(16)).slice(-8);t.push(n)}return t.join("")}))})(e).then((function(e){var a=new XMLHttpRequest;a.addEventListener("load",(function(){var a=this.responseText.split("\n"),r=e.slice(5).toUpperCase(),n=!1;for(var o in a)if(a[o].substring(0,35)==r){n=!0;break}var c=new CustomEvent("hibpCheck",{detail:n});t.dispatchEvent(c)})),a.open("GET","https://api.pwnedpasswords.com/range/"+e.substr(0,5)),a.send()}))},a=e=>{function t(){if(Array.from(document.querySelectorAll("input[maxlength],textarea[maxlength]")).forEach(((e,t)=>{e.parentElement,r(e)})),Array.from(document.querySelectorAll("label input")).forEach(((e,t)=>{!e.closest("label").querySelector(".optional-text")&&!e.hasAttribute("required")&&("span"==e.parentNode.tagName.toLowerCase()?e.parentElement.insertAdjacentHTML("beforebegin",'<span class="optional-text"></span>'):e.insertAdjacentHTML("beforebegin",'<span class="optional-text"></span>'))})),document.querySelector('input[type="date"]')){let t=function(e){var t=e.getFullYear(),a=String(e.getMonth()+1).padStart(2,"0"),r=String(e.getDate()).padStart(2,"0");return"".concat(t,"-").concat(a,"-").concat(r)};var e=new Date;Array.from(document.querySelectorAll('input[type="date"]')).forEach(((a,r)=>{var n=e;if(a.hasAttribute("data-start")&&(n.setDate(n.getDate()+parseInt(a.getAttribute("data-start"))),a.setAttribute("min",t(n))),a.hasAttribute("data-period")){var o=parseInt(a.getAttribute("data-period")),c=new Date;c.setDate(n.getDate()+o),a.setAttribute("max",t(c))}if(a.hasAttribute("data-allowed-days")){var i=JSON.parse("[".concat(a.getAttribute("data-allowed-days"),"]"));a.addEventListener("input",(function(e){var t=new Date(this.value).getUTCDay();i.includes(t)?a.setCustomValidity(""):a.setCustomValidity("That day of the week is not allowed")}))}}))}}"complete"===document.readyState&&t(),document.onreadystatechange=()=>{"complete"===document.readyState&&t()},e.addEventListener("input",(e=>{if(e&&e.target instanceof HTMLElement&&e.target.closest("input,textarea,select")){var t=e.target.closest("input,textarea,select");t.parentElement,t.hasAttribute("type")&&"color"==t.getAttribute("type")&&(t.nextElementSibling.value=t.value),t.hasAttribute("maxlength")&&t.nextElementSibling&&t.nextElementSibling.setAttribute("data-count",t.value.length),t.hasAttribute("data-strength-checker")&&o(t)}})),e.addEventListener("change",(e=>{if(e&&e.target instanceof HTMLElement&&e.target.closest("select")){var t=e.target.closest("select");if(t.hasAttribute("data-change-type")&&t.hasAttribute("data-input")){var a=document.getElementById(t.getAttribute("data-input")),r=t.value;n(a,r)}}if(e&&e.target instanceof HTMLElement&&e.target.closest('dialog [type="radio"]')){var o=e.target.closest("dialog");e.target.closest('dialog [type="radio"]'),Array.from(o.querySelectorAll('[type="radio"][autofocus]')).forEach(((e,t)=>{e.removeAttribute("autofocus")})),Array.from(o.querySelectorAll('[type="radio"]:checked')).forEach(((e,t)=>{e.setAttribute("autofocus",!0)}))}})),e.addEventListener("click",(e=>{if(e&&e.target instanceof HTMLElement&&e.target.closest("[data-change-type][data-input]:not(select)")){var t=e.target.closest("[data-change-type]"),a=document.getElementById(t.getAttribute("data-input")),r=t.getAttribute("data-change-type");if(t.setAttribute("data-change-type",a.getAttribute("type")),n(a,r),t.hasAttribute("data-alt-class")){var o=t.getAttribute("data-alt-class");t.setAttribute("data-alt-class",t.getAttribute("class")),t.setAttribute("class",o)}}}))},r=e=>{var t=e.parentElement,a=e.getAttribute("maxlength");t.style.setProperty("--maxlength",a);var r=e.nextElementSibling;(!r||r&&r.classList.contains("invalid-feedback"))&&(r=document.createElement("span"),t.insertBefore(r,e.nextSibling)),r.setAttribute("data-count",e.value.length)},n=(e,t)=>{e.hasAttribute("type")&&"password"==e.getAttribute("type")&&e.setAttribute("data-password-type",!0),e.setAttribute("type",t)},o=function(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"no",r=document.getElementById(e.getAttribute("data-strength-checker")),n=e.value,c=e.hasAttribute("minlength")?e.getAttribute("minlength"):12,i=1,l="";if(n.match(/(?=.*[0-9])/)&&(i+=1),n.match(/(?=.*[!,%,&,#,$,^,*,?,_,~,<,>,])/)&&(i+=1),n.match(/(?=.*[a-z])/)&&(i+=1),n.match(/(?=.*[A-Z])/)&&(i+=1),n.length<c&&(i=1,l="(must be at least ".concat(c," characters.)")),i>=3&&"no"==a){let a=function(e,t){e.detail?o(t,"danger"):o(t,"success"),t.removeEventListener("hibpCheck",a)};t(n,e),e.addEventListener("hibpCheck",(function(t){a(t,e)}))}else i>=3&&"danger"==a&&(i=3,l="(this password is very common)");r&&(i<=3?r.classList.add("invalid-feedback"):r.classList.remove("invalid-feedback"),r.setAttribute("data-strength",i),r.innerHTML="Password strength: ".concat(["Very weak","Weak","Average","Strong","Very strong"][i-1]," ").concat(l))},c=(e,t)=>{if(t||(t=e.parentNode.getAttribute("data-change-events")),!t)return!1;Array.from(JSON.parse(t)).forEach(((t,a)=>{i(e,t)}))},i=(e,t)=>{if("matches"in t)return"any"==t.matches||e.value==t.matches?l(e,t,"if"):l(e,t,"else"),!1;if("in-list"in t){var a=document.querySelector("".concat(t["in-list"],' option[value="').concat(e.value,'"]'));return document.querySelector("".concat(t["in-list"],' option[value="').concat(e.value,'"]'))?l(a,t,"if"):l(a,t,"else"),!1}"event"in t&&l(e,t,"event")},l=(e,t,a)=>{if(!(a in t))return!1;switch(t[a]){case"hide":if(document.querySelector(t.target)){var r=document.querySelector(t.target);r.classList.add("js-hide"),Array.from(r.querySelectorAll("[data-required]")).forEach(((e,t)=>{e.removeAttribute("required")}))}break;case"show":if(document.querySelector(t.target)){var n=document.querySelector(t.target);n.classList.remove("js-hide"),Array.from(n.querySelectorAll("[data-required]")).forEach(((e,t)=>{e.closest(".js-hide")||e.setAttribute("required","true")}))}break;case"populate-form":s(e,t);break;case"dispatchEvent":var o=new Event(t.value);document.querySelector("".concat(t.target)).dispatchEvent(o);break;case"setAttribute":Array.from(document.querySelectorAll("".concat(t.target))).forEach((function(e,a){e.setAttribute(t.attribute,t.value)}));break;case"focus":document.querySelector("".concat(t.target)).focus();break;case"removeAttribute":Array.from(document.querySelectorAll("".concat(t.target))).forEach((function(e,a){e.removeAttribute(t.attribute)}));break;case"updateValue":document.querySelector("".concat(t.target)).value=t.value?t.value:"";var c=new Event("change");document.querySelector("".concat(t.target)).dispatchEvent(c);break;case"submitForm":document.querySelector("".concat(t.target)).submit();break;case"openLink":document.querySelector("".concat(t.target)).value&&(window.location.href=document.querySelector("".concat(t.target)).value)}},s=function(e,t){var a=JSON.parse(e.getAttribute("data-values")),r=document.querySelector(t.target);if(!a)return!1;Object.keys(a).forEach(((t,n)=>{document.getElementById(t)&&"SPAN"==document.getElementById(t).tagName&&(document.getElementById(t).innerHTML=a[t]),r.querySelector('select[name="'.concat(t,'"] [value="').concat(a[t],'"]'))?(r.querySelector('select[name="'.concat(t,'"]')).value=a[t],e.hasAttribute("data-lock-fields")&&(r.querySelector('select[name="'.concat(t,'"]')).disabled=!0)):r.querySelector('input[name="'.concat(t,'"][type="radio"][value="').concat(a[t],'"]'))?(Array.from(r.querySelectorAll('input[name="'.concat(t,'"][type="radio"]'))).forEach((function(e,t){e.disabled=!0})),r.querySelector('input[name="'.concat(t,'"][type="radio"][value="').concat(a[t],'"]')).checked=!0,r.querySelector('input[name="'.concat(t,'"][type="radio"][value="').concat(a[t],'"]')).disabled=!1):r.querySelector('input[name="'.concat(t,'"]'))&&(r.querySelector('input[name="'.concat(t,'"]')).value=a[t],e.hasAttribute("data-lock-fields")&&r.querySelector('input[name="'.concat(t,'"]')).setAttribute("readonly","true"))}))};document.addEventListener("DOMContentLoaded",(function(){var t,r;window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"Pageview",pageTitle:document.title}),document.addEventListener("click",(e=>{var t=e.target.closest("[open] summary");if(t)window.dataLayer.push({event:"closeDetails",detailsTitle:t.textContent||""});else{var a=e.target.closest("summary"),r=e.target.closest("a"),n=e.target.closest("button");a&&window.dataLayer.push({event:"openDetails",detailsTitle:a.textContent||""}),r&&window.dataLayer.push({event:"linkClicked",linkText:r.hasAttribute("title")?r.getAttribute("title")||"":r.textContent||"",class:r.hasAttribute("class")&&r.getAttribute("class")||"",href:r.getAttribute("href")||""}),n&&window.dataLayer.push({event:"buttonClicked",buttonText:n.textContent||"",class:n.hasAttribute("class")&&n.getAttribute("class")||""})}})),document.addEventListener("change",(e=>{e&&e.target instanceof HTMLElement&&e.target.closest("[data-change-events]")&&c(e.target,e.target.closest("[data-change-events]").getAttribute("data-change-events"))})),document.addEventListener("keyup",(e=>{e&&e.target instanceof HTMLElement&&e.target.closest("[data-change-events]")&&c(e.target,e.target.closest("[data-change-events]").getAttribute("data-change-events"))})),document.addEventListener("click",(e=>{e&&e.target instanceof HTMLElement&&e.target.closest("[data-click-events]")&&c(e.target,e.target.closest("[data-click-events]").getAttribute("data-click-events"))})),(r=document.body).classList.add("js-enabled"),(-1!==navigator.userAgent.indexOf("MSIE")||navigator.appVersion.indexOf("Trident/")>0)&&r.classList.add("ie"),t=function(e){var t=document.querySelector('label[for="'.concat(e.replace("#",""),'"]')),a=document.querySelector(e+" summary"),r=document.querySelector("dialog".concat(e)),n=document.querySelector("detail".concat(e));t instanceof HTMLElement?t.click():a instanceof HTMLElement?a.click():r instanceof HTMLElement?r.showModal():n instanceof HTMLElement&&n.addAttribute("open")},location.hash&&t(location.hash),window.addEventListener("hashchange",(function(){t(location.hash)}),!1),addEventListener("popstate",(e=>{if(e&&e.state&&e.state.type&&"pagination"==e.state.type){var t=document.querySelector("#".concat(e.state.form)),a=document.querySelector("#".concat(e.state.form," [data-pagination]"));a?a.value=e.state.page:t.innerHTML+='<input name="page" type="hidden" data-pagination="true" value="'.concat(e.state.page,'" />'),t.dispatchEvent(new Event("submit"))}})),document.addEventListener("submit",(e=>{if(e&&e.target instanceof HTMLElement&&e.target.matches("form")){var t=e.target;Array.from(t.querySelectorAll("[data-password-type]")).forEach(((e,t)=>{e.setAttribute("type","password")})),(t.querySelector(":invalid")||t.querySelector('.pwd-checker[data-strength="1"]')||t.querySelector('.pwd-checker[data-strength="2"]'))&&(t.classList.add("was-validated"),e.preventDefault()),t.querySelector("iam-multiselect[data-is-required][data-error]")&&(t.classList.add("was-validated"),e.preventDefault())}})),document.addEventListener("keydown",(e=>{"Escape"===e.key&&document.querySelector(".dialog--transactional[open], .dialog--acknowledgement[open]")&&(e.preventDefault(),e.stopPropagation())})),Array.from(document.querySelectorAll("label progress")).forEach(((e,t)=>{e.closest("label").setAttribute("data-percent",e.getAttribute("value"))})),(t=>{Array.from(t.querySelectorAll("dialog[open]")).forEach(((t,a)=>{t.closest(".dialog__wrapper")||(t.removeAttribute("open"),t.showModal(),t.focus(),e(t))})),t.addEventListener("click",(t=>{if("IAM-ACTIONBAR"==t.target.tagName)return!1;if(t&&t.target instanceof HTMLElement&&t.target.closest("[data-modal]")){var a=t.target.closest("[data-modal]"),r=a.hasAttribute("data-modal")?a.getAttribute("data-modal"):a.getAttribute("data-filter"),n=document.querySelector("dialog#".concat(r));if(e(n),n.showModal(),n.focus(),!n.querySelector("iam-multi-step")){var o=n.offsetWidth;n.setAttribute("style","max-width: ".concat(o,"px;"))}Array.from(n.querySelectorAll("[data-duplicate]")).forEach(((e,t)=>{var a=e.getAttribute("data-duplicate"),r=document.getElementById(a);if(e.checked!=r.checked){e.checked=r.checked;var n=new Event("change");e.dispatchEvent(n)}})),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"openModal",id:r})}if(t&&t.target instanceof HTMLElement&&t.target.closest("button.dialog__close")){var c=t.target.closest("dialog[open]");t.preventDefault(),c.close(),Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach(((e,t)=>{e.classList.remove("active")}));var i=new CustomEvent("dialog-closed",{bubbles:!0,cancelable:!0,detail:{modalId:c.id}});t.target.dispatchEvent(i),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"closeModal",id:c.getAttribute("id")})}if(t&&t.target instanceof HTMLElement&&t.target.closest('button[formmethod="dialog"]')){var l=t.target.closest("dialog[open]");Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach(((e,t)=>{e.classList.remove("active")})),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"closeModal",id:l.getAttribute("id")})}if(t&&t.target instanceof HTMLElement&&t.target.closest("dialog[open]")){var s=t.target.closest("dialog[open]");if("contents"===window.getComputedStyle(s).display&&(s=s.parentNode.closest("dialog[open]")),!s.classList.contains("dialog--transactional")&&!s.classList.contains("dialog--acknowledgement")){var d=s.getBoundingClientRect();(t.clientX<d.left||t.clientX>d.right||t.clientY<d.top||t.clientY>d.bottom)&&(t.target.closest("dialog *")||s.close(),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"closeModal",id:s.getAttribute("id")}))}}if(t&&t.target instanceof HTMLElement&&t.target.closest(".dialog__wrapper > button")){t.stopPropagation();var u=t.target.closest(".dialog__wrapper > button"),g="openPopover",p=u.parentNode.querySelector(":scope > dialog");if(document.querySelector("*:not([data-keep-open]) > dialog[open]")&&document.querySelector("*:not([data-keep-open]) > dialog[open]")!=p&&u.closest("dialog[open]")!=document.querySelector("*:not([data-keep-open]) > dialog[open]")&&document.querySelector("*:not([data-keep-open]) > dialog[open]").close(),Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach(((e,t)=>{e.removeAttribute("aria-expanded")})),p.hasAttribute("open"))p.close(),g="closePopover",p.removeAttribute("style"),u.removeAttribute("aria-expanded");else{p.show(),u.setAttribute("aria-expanded",!0);var m=u.getBoundingClientRect(),y=m.top,v=m.left;if(u.closest("iam-table")){var f=u.closest("iam-table").parentNode.getBoundingClientRect();y-=f.top,v-=f.left}p.classList.contains("dialog--fix")&&p.setAttribute("style","position:fixed;top: ".concat(y,"px; left: ").concat(v,"px; margin: 3rem 0 0 0;"))}var h=p.getBoundingClientRect();if(h.bottom-window.scrollY>window.innerHeight-window.scrollY){var b=p.hasAttribute("style")?p.getAttribute("style")+" ":"";p.setAttribute("style",b+"transform: translate(0, calc(-100% - 4rem))"),(h=p.getBoundingClientRect()).top-window.scrollY<100&&p.removeAttribute("style")}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:g,id:u.textContent})}t&&t.target instanceof HTMLElement&&!t.target.closest("dialog[open]")&&!t.target.closest(".dialog__wrapper > button")&&(document.querySelector(".dialog__wrapper:not([data-keep-open]) > dialog[open]")&&document.querySelector(".dialog__wrapper:not([data-keep-open]) > dialog[open]").close(),Array.from(document.querySelectorAll(".dialog__wrapper:not([data-keep-open]) > button")).forEach(((e,t)=>{e.removeAttribute("aria-expanded")})))}))})(document.body),a(document.body)}))}));
|
package/dist/components.es.js
CHANGED
|
@@ -67,7 +67,7 @@ const qa = /* @__PURE__ */ m(U, [["render", G]]), Q = (t) => t.charAt(0).toUpper
|
|
|
67
67
|
},
|
|
68
68
|
created() {
|
|
69
69
|
this.$nextTick(function() {
|
|
70
|
-
import("./table.component.min-
|
|
70
|
+
import("./table.component.min-c2c01802.mjs").then((t) => {
|
|
71
71
|
window.customElements.get("iam-table") || window.customElements.define("iam-table", t.default);
|
|
72
72
|
}).catch((t) => {
|
|
73
73
|
console.log(t.message);
|
|
@@ -453,7 +453,7 @@ const N = /* @__PURE__ */ m(ne, [["render", xe]]), Se = {
|
|
|
453
453
|
},
|
|
454
454
|
created() {
|
|
455
455
|
this.$nextTick(function() {
|
|
456
|
-
import("./fileupload.component.min-
|
|
456
|
+
import("./fileupload.component.min-dff51931.mjs").then((t) => {
|
|
457
457
|
window.customElements.get("iam-fileupload") || window.customElements.define("iam-fileupload", t.default);
|
|
458
458
|
}).catch((t) => {
|
|
459
459
|
console.log(t.message);
|
|
@@ -483,7 +483,7 @@ const qe = {
|
|
|
483
483
|
props: {},
|
|
484
484
|
mounted() {
|
|
485
485
|
this.$nextTick(function() {
|
|
486
|
-
import("./accordion.component.min-
|
|
486
|
+
import("./accordion.component.min-a30b6939.mjs").then((t) => {
|
|
487
487
|
window.customElements.get("iam-accordion") || window.customElements.define("iam-accordion", t.default);
|
|
488
488
|
}).catch((t) => {
|
|
489
489
|
console.log(t.message);
|
|
@@ -592,7 +592,7 @@ const Ma = /* @__PURE__ */ m(Ne, [["render", Fe]]), ze = {
|
|
|
592
592
|
name: "Card",
|
|
593
593
|
created() {
|
|
594
594
|
this.$nextTick(function() {
|
|
595
|
-
import("./card.component.min-
|
|
595
|
+
import("./card.component.min-b08948cd.mjs").then((t) => {
|
|
596
596
|
window.customElements.get("iam-card") || window.customElements.define("iam-card", t.default);
|
|
597
597
|
}).catch((t) => {
|
|
598
598
|
console.log(t.message);
|
|
@@ -609,7 +609,7 @@ const Ca = /* @__PURE__ */ m(ze, [["render", Be]]), Oe = {
|
|
|
609
609
|
name: "Header",
|
|
610
610
|
mounted() {
|
|
611
611
|
this.$nextTick(function() {
|
|
612
|
-
import("./carousel.component.min-
|
|
612
|
+
import("./carousel.component.min-114c30d2.mjs").then((t) => {
|
|
613
613
|
window.customElements.get("iam-carousel") || window.customElements.define("iam-carousel", t.default);
|
|
614
614
|
}).catch((t) => {
|
|
615
615
|
console.log(t.message);
|
|
@@ -636,7 +636,7 @@ const Na = /* @__PURE__ */ m(Oe, [["render", Ue]]), We = {
|
|
|
636
636
|
},
|
|
637
637
|
mounted() {
|
|
638
638
|
this.$nextTick(function() {
|
|
639
|
-
import("./header.component.min-
|
|
639
|
+
import("./header.component.min-adf07366.mjs").then((t) => {
|
|
640
640
|
window.customElements.get("iam-header") || window.customElements.define("iam-header", t.default);
|
|
641
641
|
}).catch((t) => {
|
|
642
642
|
console.log(t.message);
|
|
@@ -1032,7 +1032,7 @@ const Ia = /* @__PURE__ */ m(ht, [["render", At]]), Lt = {
|
|
|
1032
1032
|
name: "Nav",
|
|
1033
1033
|
mounted() {
|
|
1034
1034
|
this.$nextTick(function() {
|
|
1035
|
-
import("./nav.component.min-
|
|
1035
|
+
import("./nav.component.min-96a56d9e.mjs").then((t) => {
|
|
1036
1036
|
window.customElements.get("iam-nav") || window.customElements.define("iam-nav", t.default);
|
|
1037
1037
|
}).catch((t) => {
|
|
1038
1038
|
console.log(t.message);
|
|
@@ -1152,7 +1152,7 @@ const Wt = {
|
|
|
1152
1152
|
name: "Tabs",
|
|
1153
1153
|
created() {
|
|
1154
1154
|
this.$nextTick(function() {
|
|
1155
|
-
import("./tabs.component.min-
|
|
1155
|
+
import("./tabs.component.min-4a5a7345.mjs").then((t) => {
|
|
1156
1156
|
window.customElements.get("iam-tabs") || window.customElements.define("iam-tabs", t.default);
|
|
1157
1157
|
}).catch((t) => {
|
|
1158
1158
|
console.log(t.message);
|
|
@@ -1299,7 +1299,7 @@ function oa(t, a, e, i, r, s) {
|
|
|
1299
1299
|
}
|
|
1300
1300
|
const Wa = /* @__PURE__ */ m(na, [["render", oa]]);
|
|
1301
1301
|
/*!
|
|
1302
|
-
* iamKey
|
|
1302
|
+
* iamKey v7.0.0
|
|
1303
1303
|
* Copyright 2022-2025 iamproperty
|
|
1304
1304
|
*/
|
|
1305
1305
|
function la(t, a) {
|
|
@@ -1469,7 +1469,7 @@ const Ga = /* @__PURE__ */ m(fa, [["render", ba]]), ya = {
|
|
|
1469
1469
|
props: {},
|
|
1470
1470
|
mounted() {
|
|
1471
1471
|
this.$nextTick(function() {
|
|
1472
|
-
import("./actionbar.component.min-
|
|
1472
|
+
import("./actionbar.component.min-2e249e14.mjs").then((t) => {
|
|
1473
1473
|
window.customElements.get("iam-actionbar") || window.customElements.define("iam-actionbar", t.default);
|
|
1474
1474
|
}).catch((t) => {
|
|
1475
1475
|
console.log(t.message);
|
|
@@ -1484,7 +1484,7 @@ function ga(t, a, e, i, r, s) {
|
|
|
1484
1484
|
}
|
|
1485
1485
|
const Qa = /* @__PURE__ */ m(ya, [["render", ga]]);
|
|
1486
1486
|
/*!
|
|
1487
|
-
* iamKey
|
|
1487
|
+
* iamKey v7.0.0
|
|
1488
1488
|
* Copyright 2022-2025 iamproperty
|
|
1489
1489
|
*/
|
|
1490
1490
|
class R extends HTMLElement {
|
package/dist/components.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
(function(x,r){typeof exports=="object"&&typeof module<"u"?r(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],r):(x=typeof globalThis<"u"?globalThis:x||self,r(x.iamkey={},x.Vue))})(this,function(x,r){"use strict";const S=(a,t)=>{const e=a.__vccOpts||a;for(const[n,i]of t)e[n]=i;return e},ot={name:"Logo",props:{id:{type:String,required:!1,default:"property"},path:{type:String,required:!1,default:"/svg/logo.svg"},desc:{type:String}},computed:{src:function(){return"#logo-"+this.id},className:function(){return"brand brand--"+this.id}}},rt=["xlink:href"],nt=["innerHTML"];function it(a,t,e,n,i,s){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(s.className)},[(r.openBlock(),r.createElementBlock("svg",null,[r.createElementVNode("title",null,"iam "+r.toDisplayString(e.id),1),r.createElementVNode("use",{"xlink:href":e.path+s.src},null,8,rt)])),e.desc?(r.openBlock(),r.createElementBlock("span",{key:0,innerHTML:e.desc},null,8,nt)):r.createCommentVNode("",!0)],2)}const st=S(ot,[["render",it]]),lt=a=>a.charAt(0).toUpperCase()+a.slice(1),ct=a=>a.replace(/_/g," "),dt=a=>a.replace(/ /g,"_"),mt=function(a){return a=a.toLowerCase(),a=dt(a),a=a.replace(/\W/g,""),a},ut={name:"Table",props:{items:{type:Array,required:!1},fields:{type:Array,required:!1}},computed:{cellHeading(){return a=>`${lt(ct(a))}`}},created(){this.$nextTick(function(){Promise.resolve().then(()=>ko).then(a=>{window.customElements.get("iam-table")||window.customElements.define("iam-table",a.default)}).catch(a=>{console.log(a.message)}),Promise.resolve().then(()=>Qa).then(a=>{window.customElements.get("iam-pagination")||window.customElements.define("iam-pagination",a.default)}).catch(a=>{console.log(a.message)})})},updated(){}},ht={key:0},pt={key:0},bt=["data-row-id"],gt=["innerHTML"];function ft(a,t,e,n,i,s){return r.openBlock(),r.createElementBlock("iam-table",null,[r.renderSlot(a.$slots,"before"),e.fields?(r.openBlock(),r.createElementBlock("table",ht,[r.createElementVNode("thead",null,[r.createElementVNode("tr",null,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.fields,o=>(r.openBlock(),r.createElementBlock("th",{key:o.key},r.toDisplayString(s.cellHeading(o.key)),1))),128))])]),e.items?(r.openBlock(),r.createElementBlock("tbody",pt,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.items,(o,l)=>(r.openBlock(),r.createElementBlock("tr",{key:l,"data-row-id":o.rowid},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(Object.fromEntries(Object.entries(o).filter(([d])=>d!=="rowid")),(d,c)=>(r.openBlock(),r.createElementBlock("td",{key:c,innerHTML:d},null,8,gt))),128))],8,bt))),128))])):r.createCommentVNode("",!0)])):r.renderSlot(a.$slots,"default",{key:1})])}const B=S(ut,[["render",ft]]),vt={name:"Input",props:{value:{type:String,required:!1},id:{type:String,required:!0},name:{type:String,required:!1},list:{type:String,required:!1},label:{type:String,required:!1},labelclass:{type:String,required:!1},inputclass:{type:String,required:!1},type:{type:String,required:!1,default:"text"},size:{type:String,required:!1},errormsg:{type:String,required:!1},options:{type:Array,required:!1},prefix:{type:String,required:!1},prefixClass:{type:String,required:!1},suffix:{type:String,required:!1},pattern:{type:String,required:!1},suffixClass:{type:String,required:!1},title:{type:String,required:!1},hint:{type:String,required:!1},multiple:{type:String,required:!1}},computed:{displayLabel(){return()=>this.$attrs.multiple?this.label+'<span class="small d-block text-body font-body fw-normal">Hold down the Ctrl (windows) or Command (Mac) button to select multiple options.</span>':this.hint?this.label+`<span class="small d-block text-body font-body fw-normal">${this.hint}</span>`:this.label},wrapperClass(){return()=>{switch(this.type){case"radio":case"checkbox":return"form-check";case"radio-btn":case"checkbox-btn":return!1;default:return"form-control__wrapper"}}},needPattern(){return()=>{if(this.pattern)return this.pattern;switch(this.type){case"datetime-local":return"[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}"}return"(.*?)"}},needsLabel(){return()=>{switch(this.type){case"radio":case"radio-btn":case"checkbox":case"checkbox-btn":return!1;default:return!0}}},isInput(){return()=>{switch(this.type){case"textarea":case"select":case"radio":case"radio-btn":case"checkbox":case"checkbox-btn":case"range":case"color":return!1;default:return!0}}},allowDatalist(){return()=>{switch(this.type){case"select":case"radio":case"radio-btn":case"checkbox":case"checkbox-btn":return!1;default:return!0}}},hasOptions(){return()=>{if(this.list)return this.list;if(this.options)return this.id+"-list"}},inputVal:{get(){return this.value==null&&this.options!=null&&this.type=="select"?this.$attrs.multiple?[]:this.options[0].value:this.value},set(a){this.$emit("input",a)}}},mounted(){this.$nextTick(function(){let a=this.$refs.wrapper;if(a.parentNode&&a.parentNode.classList.contains("form-check")||a.classList.length==0){const t=document.createDocumentFragment();Array.from(a.childNodes).forEach(e=>t.appendChild(e)),a.parentNode.insertBefore(t,a),a.parentNode.removeChild(a)}})},methods:{inputKeyup(a){this.$emit("keyupEvent",a)},clickEvent(){this.$emit("bus")}}},yt=["for","innerHTML","title"],wt=["innerHTML"],_t=["innerHTML"],kt=["type","name","id","pattern","list"],xt=["type","name","id","pattern"],At={key:5,class:"input-group"},Lt=["type","name","id","pattern","list"],St={class:"input-group-text border-0 col-2 col-sm-1 px-0"},Et={key:6,class:"input-group"},qt=["type","name","id","pattern","list"],$t={class:"input-group-text flex-fill"},Ct=["type","name","id","pattern"],Tt=["value"],Mt=["type","name","id"],zt=["for","innerHTML"],Ht=["type","name","id"],Bt=["for","innerHTML"],Rt=["innerHTML"],Nt=["id"],jt=["value"];function Ft(a,t,e,n,i,s){return r.openBlock(),r.createElementBlock("div",{class:r.normalizeClass(s.wrapperClass()),ref:"wrapper"},[s.needsLabel()?(r.openBlock(),r.createElementBlock("label",{key:0,class:r.normalizeClass(`form-label${e.labelclass?` ${e.labelclass}`:""}`),for:e.id,innerHTML:s.displayLabel(),title:e.title},null,10,yt)):r.createCommentVNode("",!0),e.prefix?(r.openBlock(),r.createElementBlock("span",{key:1,class:r.normalizeClass(`prefix ${this.prefixClass} ${e.size?`prefix-${e.size}`:""}`),innerHTML:e.prefix,role:"presentation"},null,10,wt)):r.createCommentVNode("",!0),e.suffix?(r.openBlock(),r.createElementBlock("span",{key:2,class:r.normalizeClass(`suffix ${this.suffixClass} ${e.size?`suffix-${e.size}`:""}`),innerHTML:e.suffix,role:"presentation"},null,10,_t)):r.createCommentVNode("",!0),s.isInput()?r.withDirectives((r.openBlock(),r.createElementBlock("input",r.mergeProps({key:3,"onUpdate:modelValue":t[0]||(t[0]=o=>s.inputVal=o),class:`form-control${e.size?` form-control-${e.size}`:""}${e.inputclass?` ${e.inputclass}`:""}`,type:e.type,name:e.name?e.name:e.id,id:e.id,pattern:s.needPattern(),list:s.hasOptions()},a.$attrs,{onKeyup:t[1]||(t[1]=(...o)=>s.inputKeyup&&s.inputKeyup(...o))}),null,16,kt)),[[r.vModelDynamic,s.inputVal]]):r.createCommentVNode("",!0),e.type=="textarea"?r.withDirectives((r.openBlock(),r.createElementBlock("textarea",r.mergeProps({key:4,"onUpdate:modelValue":t[2]||(t[2]=o=>s.inputVal=o),class:`form-control${e.size?` form-control-${e.size}`:""}${e.inputclass?` ${e.inputclass}`:""}`,type:e.type,name:e.name?e.name:e.id,id:e.id,pattern:s.needPattern()},a.$attrs),null,16,xt)),[[r.vModelText,s.inputVal]]):r.createCommentVNode("",!0),e.type=="range"?(r.openBlock(),r.createElementBlock("div",At,[r.withDirectives(r.createElementVNode("input",r.mergeProps({"onUpdate:modelValue":t[3]||(t[3]=o=>s.inputVal=o),class:`form-range${e.inputclass?` ${e.inputclass}`:""}`,type:e.type,name:e.name?e.name:e.id,id:e.id,pattern:s.needPattern(),list:s.hasOptions()},a.$attrs,{oninput:"this.nextElementSibling.value=this.value;"}),null,16,Lt),[[r.vModelDynamic,s.inputVal]]),r.createElementVNode("output",St,r.toDisplayString(e.value),1)])):r.createCommentVNode("",!0),e.type=="color"?(r.openBlock(),r.createElementBlock("div",Et,[r.withDirectives(r.createElementVNode("input",r.mergeProps({"onUpdate:modelValue":t[4]||(t[4]=o=>s.inputVal=o),class:`form-control form-control-color${e.inputclass?` ${e.inputclass}`:""}`,type:e.type,name:e.name?e.name:e.id,id:e.id,pattern:s.needPattern(),list:s.hasOptions()},a.$attrs,{oninput:"this.nextElementSibling.value=this.value;"}),null,16,qt),[[r.vModelDynamic,s.inputVal]]),r.createElementVNode("output",$t,r.toDisplayString(e.value?a.vale:"#000000"),1)])):r.createCommentVNode("",!0),e.type=="select"?r.withDirectives((r.openBlock(),r.createElementBlock("select",r.mergeProps({key:7,"onUpdate:modelValue":t[5]||(t[5]=o=>s.inputVal=o),class:`form-select${e.size?` form-select-${e.size}`:""}${e.inputclass?` ${e.inputclass}`:""}`,type:e.type,name:e.id,id:e.id,pattern:s.needPattern()},a.$attrs),[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.options,(o,l)=>(r.openBlock(),r.createElementBlock("option",{key:l,value:o.value},r.toDisplayString(o.display?o.display:o.value),9,Tt))),128))],16,Ct)),[[r.vModelSelect,s.inputVal]]):r.createCommentVNode("",!0),e.type=="checkbox"||e.type=="radio"?(r.openBlock(),r.createElementBlock("input",r.mergeProps({key:8,class:"form-check-input",type:e.type,name:e.name?e.name:e.id,id:e.id},a.$attrs),null,16,Mt)):r.createCommentVNode("",!0),e.type=="checkbox"||e.type=="radio"?(r.openBlock(),r.createElementBlock("label",{key:9,class:r.normalizeClass(`form-label form-check-label${e.labelclass?` ${e.labelclass}`:""}`),for:e.id,innerHTML:e.label},null,10,zt)):r.createCommentVNode("",!0),e.type=="checkbox-btn"||e.type=="radio-btn"?(r.openBlock(),r.createElementBlock("input",r.mergeProps({key:10,class:`btn-check${e.inputclass?` ${e.inputclass}`:""}`,type:e.type.replace("-btn",""),autocomplete:"off",name:e.name?e.name:e.id,id:e.id},a.$attrs),null,16,Ht)):r.createCommentVNode("",!0),e.type=="checkbox-btn"||e.type=="radio-btn"?(r.openBlock(),r.createElementBlock("label",{key:11,class:r.normalizeClass(`btn${e.labelclass?` ${e.labelclass}`:""}`),for:e.id,innerHTML:e.label,onClick:t[6]||(t[6]=(...o)=>s.clickEvent&&s.clickEvent(...o))},null,10,Bt)):r.createCommentVNode("",!0),r.renderSlot(a.$slots,"default"),e.errormsg?(r.openBlock(),r.createElementBlock("span",{key:12,class:"invalid-feedback mb-0",innerHTML:e.errormsg},null,8,Rt)):r.createCommentVNode("",!0),s.allowDatalist()?(r.openBlock(),r.createElementBlock("datalist",{key:13,id:e.id+"-list"},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.options,(o,l)=>(r.openBlock(),r.createElementBlock("option",{key:l,value:o.value},r.toDisplayString(o.value),9,jt))),128))],8,Nt)):r.createCommentVNode("",!0)],2)}const R=S(vt,[["render",Ft]]),Dt=Object.assign({name:"FileUpload",props:{maxfilesize:{type:Number,required:!1},maxfiles:{type:Number,required:!1}},created(){this.$nextTick(function(){Promise.resolve().then(()=>Ao).then(a=>{window.customElements.get("iam-fileupload")||window.customElements.define("iam-fileupload",a.default)}).catch(a=>{console.log(a.message)})})}},{emits:["elementChange","empty"],setup(a,{emit:t}){const e=t,n=r.ref(null);return r.onMounted(()=>{n.value.addEventListener("elementChange",function(i){e("elementChange",i)}),n.value.addEventListener("empty",function(i){e("empty",i)})}),(i,s)=>(r.openBlock(),r.createElementBlock("iam-fileupload",{ref_key:"$component",ref:n},[r.renderSlot(i.$slots,"default")],512))}}),ur="",Vt={name:"Accordion",props:{},mounted(){this.$nextTick(function(){Promise.resolve().then(()=>So).then(a=>{window.customElements.get("iam-accordion")||window.customElements.define("iam-accordion",a.default)}).catch(a=>{console.log(a.message)})})}},Pt={ref:"wrapper"};function Ot(a,t,e,n,i,s){return r.openBlock(),r.createElementBlock("iam-accordion",Pt,[r.renderSlot(a.$slots,"default")],512)}const It=S(Vt,[["render",Ot]]),Ut={name:"AccordionItem",props:{title:{type:String,required:!0},titlecolour:{type:String,required:!1},badge:{type:[Number,String],required:!1},badgecolour:{type:String,required:!1,default:"light"},lazy:{type:Boolean,required:!1}},computed:{createID(){return a=>`${mt(a)}`}},data(){return{show:!this.lazy}}},Wt=["id"];function Gt(a,t,e,n,i,s){return r.openBlock(),r.createElementBlock("details",{id:s.createID(e.title)},[r.createElementVNode("summary",null,[r.createTextVNode(r.toDisplayString(e.title),1),e.badge?(r.openBlock(),r.createElementBlock("span",{key:0,class:r.normalizeClass(`badge bg-${e.badgecolour}`)},r.toDisplayString(e.badge),3)):r.createCommentVNode("",!0)]),r.renderSlot(a.$slots,"default")],8,Wt)}const Xt=S(Ut,[["render",Gt]]),Yt={name:"Header",props:{title:{type:String,required:!0},image:{type:String,required:!1},background:{type:String,default:"light",required:!1}}},Kt={class:"container"},Jt={class:"row"},Qt={class:"col-sm-6"},Zt={class:"pt-5 pb-3 px-4"},te={class:"col-sm-6 col-md-5 ms-auto"},ee=["src"];function ae(a,t,e,n,i,s){return r.openBlock(),r.createElementBlock("div",Kt,[r.createElementVNode("div",{class:r.normalizeClass("bg-"+e.background+" mb-4")},[r.createElementVNode("div",Jt,[r.createElementVNode("div",Qt,[r.createElementVNode("div",Zt,[r.createElementVNode("h2",null,r.toDisplayString(e.title),1),r.renderSlot(a.$slots,"default")])]),r.createElementVNode("div",te,[e.image?(r.openBlock(),r.createElementBlock("img",{key:0,src:e.image,alt:"",class:"h-100 w-100 object-cover"},null,8,ee)):r.createCommentVNode("",!0)])])],2)])}const oe=S(Yt,[["render",ae]]),re={name:"Card",created(){this.$nextTick(function(){Promise.resolve().then(()=>zo).then(a=>{window.customElements.get("iam-card")||window.customElements.define("iam-card",a.default)}).catch(a=>{console.log(a.message)})})}};function ne(a,t,e,n,i,s){return r.openBlock(),r.createElementBlock("iam-card",null,[r.renderSlot(a.$slots,"default")])}const ie=S(re,[["render",ne]]),se={name:"Header",mounted(){this.$nextTick(function(){Promise.resolve().then(()=>Do).then(a=>{window.customElements.get("iam-carousel")||window.customElements.define("iam-carousel",a.default)}).catch(a=>{console.log(a.message)})})}};function le(a,t,e,n,i,s){return r.openBlock(),r.createElementBlock("iam-carousel",null,[r.renderSlot(a.$slots,"default")])}const ce=S(se,[["render",le]]),de={name:"Header",props:{title:{type:String,required:!0},image:{type:String,required:!1}},mounted(){this.$nextTick(function(){Promise.resolve().then(()=>Po).then(a=>{window.customElements.get("iam-header")||window.customElements.define("iam-header",a.default)}).catch(a=>{console.log(a.message)})})}},me=["image"],ue=["innerHTML"];function he(a,t,e,n,i,s){return r.openBlock(),r.createElementBlock("iam-header",{image:e.image},[r.renderSlot(a.$slots,"breadcrumb"),e.title?(r.openBlock(),r.createElementBlock("h1",{key:0,innerHTML:e.title},null,8,ue)):r.createCommentVNode("",!0),r.renderSlot(a.$slots,"default")],8,me)}const pe=S(de,[["render",he]]);function be(a){var t;const e=a.querySelector(".testimonial__images"),n=e.querySelectorAll("img").length;if(n==1)return!1;a.classList.add("testimonial--multi");const i=function(s){const o=a.querySelector(".btn-next"),l=a.querySelector(".btn-prev");o.setAttribute("data-go",s+1),l.setAttribute("data-go",s-1),o.removeAttribute("disabled"),l.removeAttribute("disabled"),s==1?l.setAttribute("disabled",!0):s==n&&o.setAttribute("disabled",!0)};e.addEventListener("scroll",function(s){clearTimeout(t),t=setTimeout(function(){let o=e.scrollWidth,l=e.scrollHeight,d=e.scrollLeft,c=e.scrollTop,m=Math.round(d/o*n)+1;d==0&&c!=0&&(m=Math.round(c/l*n)+1),a.setAttribute("data-show",m),i(m)},300)},!1),a.addEventListener("click",function(s){for(var o=s.target;o&&o!=this;o=o.parentNode)if(o.matches("[data-go]")){let l=parseInt(o.getAttribute("data-go")),d=0,c=0,m=e.scrollWidth,u=e.scrollHeight;m>u?c=Math.floor(m*((l-1)/n)):d=Math.floor(u*((l-1)/n)),e.scroll({top:d,left:c,behavior:"smooth"});break}},!1)}const hr="",ge={name:"Testimonial",props:{items:{type:Array,required:!0},background:{type:String,default:"light",required:!1}},mounted(){be(this.$refs.wrapper)}},fe={class:"container testimonial mb-5","data-show":"1",ref:"wrapper"},ve={class:"row"},ye={class:"col-md-5 position-relative"},we={class:"testimonial__images"},_e=["src"],ke={class:"col-md-7"},xe={class:"testimonial__content"},Ae=["innerHTML"],Le=["innerHTML"],Se={class:"testimonial__after"};function Ee(a,t,e,n,i,s){return r.openBlock(),r.createElementBlock("div",fe,[r.createElementVNode("div",{class:r.normalizeClass("bg-"+e.background)},[r.createElementVNode("div",ve,[r.createElementVNode("div",ye,[r.createElementVNode("div",we,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.items,(o,l)=>(r.openBlock(),r.createElementBlock("img",{key:l,src:o.image?o.image:"data:image/gif;base64,R0lGODlhAQABAIAAAHd3dwAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",alt:"",class:r.normalizeClass("h-100 w-100 object-cover"+(o.image?"":" opacity-0"))},null,10,_e))),128))]),t[0]||(t[0]=r.createElementVNode("div",{class:"testimonial__controls"},[r.createElementVNode("button",{"data-go":"0",disabled:"",class:"btn-prev"},"Previous"),r.createElementVNode("button",{"data-go":"2",class:"btn-next"},"Next")],-1))]),r.createElementVNode("div",ke,[t[1]||(t[1]=r.createElementVNode("h2",null,"What our customers think…",-1)),r.createElementVNode("div",xe,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.items,(o,l)=>(r.openBlock(),r.createElementBlock("blockquote",{key:l,class:r.normalizeClass(o.class)},[r.createElementVNode("div",{innerHTML:o.quote},null,8,Ae),r.createElementVNode("cite",{innerHTML:o.cite},null,8,Le)],2))),128))]),r.createElementVNode("div",Se,[r.renderSlot(a.$slots,"default")])])]),t[2]||(t[2]=r.createElementVNode("span",{class:"circle circle--dots d-none d-md-block"},null,-1))],2)],512)}const qe=S(ge,[["render",Ee]]),pr="",$e={name:"Timeline",props:{image:{type:String,required:!1}}},Ce={class:"timeline"},Te={class:"timeline__content"},Me=["src"];function ze(a,t,e,n,i,s){return r.openBlock(),r.createElementBlock("div",Ce,[r.createElementVNode("div",Te,[r.renderSlot(a.$slots,"default")]),e.image?(r.openBlock(),r.createElementBlock("img",{key:0,src:e.image,alt:""},null,8,Me)):r.createCommentVNode("",!0)])}const He=S($e,[["render",ze]]),br="",Be={components:{Input:R},name:"PropertySearchbar",props:{formaction:{type:String,required:!1},formmethod:{type:String,required:!1},location:{type:String,required:!1},locations:{type:Array,required:!1},distances:{type:Array,required:!1,default(){return[{value:"0.25",display:"+¼ mi"},{value:"0.5",display:"+½ mi"},{value:"1",display:"+1 mi"},{value:"2",display:"+2 mi"},{value:"3",display:"+3 mi"},{value:"4",display:"+4 mi"},{value:"5",display:"+5 mi"}]}},pricemin:{type:Array,required:!1,default(){return[{value:"0",display:"No min"},{value:"50000",display:"£50k min"},{value:"75000",display:"£75k min"},{value:"100000",display:"£100k min"},{value:"150000",display:"£150k min"},{value:"200000",display:"£200k min"},{value:"250000",display:"£250k min"}]}},pricemax:{type:Array,required:!1,default(){return[{value:"any",display:"No max"},{value:"50000",display:"£50k max"},{value:"75000",display:"£75k max"},{value:"100000",display:"£100k max"},{value:"150000",display:"£150k max"},{value:"200000",display:"£200k max"},{value:"250000",display:"£250k max"}]}},bedsmin:{type:Array,required:!1,default(){return[{value:"any",display:"No min"},{value:"0",display:"Studio min"},{value:"1",display:"1 bed min"},{value:"2",display:"2 beds min"},{value:"3",display:"3 beds min"},{value:"4",display:"4 beds min"},{value:"5",display:"5 beds min"},{value:"6",display:"6 beds min"}]}},bedsmax:{type:Array,required:!1,default(){return[{value:"any",display:"No max"},{value:"0",display:"Studio max"},{value:"1",display:"1 bed max"},{value:"2",display:"2 beds max"},{value:"3",display:"3 beds max"},{value:"4",display:"4 beds max"},{value:"5",display:"5 beds max"},{value:"6",display:"6 beds max"}]}},propertytypes:{type:Array,required:!1,default(){return[{value:"all",display:"Show all"},{value:"Bungalow",display:"Bungalow"},{value:"Character Property",display:"Character Property"},{value:"Commercial Property",display:"Commercial Property"},{value:"Flat / Apartment",display:"Flat / Apartment"},{value:"Garage / Parking",display:"Garage / Parking"},{value:"Guest House / Hotel",display:"Guest House / Hotel"},{value:"House",display:"House"},{value:"House / Flat Share",display:"House / Flat Share"},{value:"Land",display:"Land"},{value:"Mobile / Park Home",display:"Mobile / Park Home"},{value:"Private Halls",display:"Private Halls"},{value:"Retirement Property",display:"Retirement Property"}]}}},data(){return{locationSave:""}},methods:{locationKeyup:function(a){this.$emit("locationKeyup",a)}},computed:{locationSet:{get(){return this.locationSave?this.locationSave:this.location},set(a){this.locationSave=a,this.$emit("input",a)}},locationsList(){return()=>this.locations?this.locations:[{value:"Newcastle"}]}}},Re={class:"container",ref:"wrapper"},Ne={class:"property-searchbar"},je=["action","method"],Fe={class:"col-12 col-md-3"},De={class:"col-12 col-md"},Ve={class:"row","data-input-range":""},Pe={class:"col-12 col-md"},Oe={class:"row","data-input-range":""},Ie={class:"col-12 col-md-2"};function Ue(a,t,e,n,i,s){const o=r.resolveComponent("Input");return r.openBlock(),r.createElementBlock("div",Re,[r.renderSlot(a.$slots,"default"),r.createElementVNode("div",Ne,[r.createElementVNode("form",{class:"row",action:e.formaction,method:e.formmethod},[r.createElementVNode("fieldset",Fe,[r.createVNode(o,{inputClass:"input--locations",modelValue:s.locationSet,"onUpdate:modelValue":t[0]||(t[0]=l=>s.locationSet=l),label:"Location",id:"location",options:s.locationsList(),required:"",placeholder:"i.e. Newcastle or NE1",onKeyupEvent:t[1]||(t[1]=l=>s.locationKeyup(...arguments)),ref:"search"},null,8,["modelValue","options"]),r.createVNode(o,{class:"select--miles",label:"Miles",id:"miles",type:"select",options:e.distances},null,8,["options"])]),r.createElementVNode("fieldset",De,[t[2]||(t[2]=r.createElementVNode("span",{class:"form-label d-none d-md-block"},"Price range",-1)),r.createElementVNode("div",Ve,[r.createVNode(o,{class:"col-6",label:"Minimum price",id:"price-min","data-min":"true",type:"select",options:e.pricemin},null,8,["options"]),r.createVNode(o,{class:"col-6",label:"Maximum price",id:"price-max","data-max":"true",type:"select",options:e.pricemax},null,8,["options"])])]),r.createElementVNode("fieldset",Pe,[t[3]||(t[3]=r.createElementVNode("span",{class:"form-label d-none d-md-block"},"Number of beds",-1)),r.createElementVNode("div",Oe,[r.createVNode(o,{class:"col-6",label:"Minimum beds",id:"beds-min","data-min":"true",type:"select",options:e.bedsmin},null,8,["options"]),r.createVNode(o,{class:"col-6",label:"Maximum beds",id:"beds-max","data-max":"true",type:"select",options:e.bedsmax},null,8,["options"])])]),r.createElementVNode("fieldset",Ie,[r.createVNode(o,{label:"Property type",id:"property-type",type:"select",options:e.propertytypes},null,8,["options"])]),t[4]||(t[4]=r.createElementVNode("div",{class:"col-12 col-md mw-md-fit-content d-flex property-searchbar__btn"},[r.createElementVNode("button",{class:"btn w-100 me-0",type:"submit",value:"submit"},"Search")],-1))],8,je)]),r.renderSlot(a.$slots,"after")],512)}const We=S(Be,[["render",Ue]]),Ge={components:{},name:"Nav",mounted(){this.$nextTick(function(){Promise.resolve().then(()=>Oo).then(a=>{window.customElements.get("iam-nav")||window.customElements.define("iam-nav",a.default)}).catch(a=>{console.log(a.message)})})},methods:{}},Xe={ref:"wrapper"};function Ye(a,t,e,n,i,s){return r.openBlock(),r.createElementBlock("iam-nav",Xe,[r.renderSlot(a.$slots,"default")],512)}const Ke=S(Ge,[["render",Ye]]),gr="",Je={name:"Stepper",props:{label:{type:String,required:!1},endlabel:{type:String,required:!1,default:"Complete"}}},Qe={class:"container"},Ze=["aria-label"],ta={key:0,class:"h6 stepper__start"},ea={class:"list-unstyled"},aa={class:"h6 stepper__end"};function oa(a,t,e,n,i,s){return r.openBlock(),r.createElementBlock("div",Qe,[r.createElementVNode("nav",{class:"stepper","aria-label":e.label?e.label:"Progress"},[e.label?(r.openBlock(),r.createElementBlock("span",ta,r.toDisplayString(e.label),1)):r.createCommentVNode("",!0),r.createElementVNode("ol",ea,[r.renderSlot(a.$slots,"default")]),r.createElementVNode("span",aa,r.toDisplayString(e.endlabel),1)],8,Ze)])}const ra=S(Je,[["render",oa]]),fr="",na={name:"Snapshot",props:{items:{type:Array,required:!0}}},ia={class:"container snapshot",ref:"wrapper"},sa={class:"row"},la=["href"],ca={class:"lead snapshot__title"},da={class:"stat"};function ma(a,t,e,n,i,s){return r.openBlock(),r.createElementBlock("div",ia,[r.renderSlot(a.$slots,"default"),r.createElementVNode("div",sa,[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e.items,(o,l)=>(r.openBlock(),r.createElementBlock("div",{class:"col",key:l},[o.link?(r.openBlock(),r.createElementBlock("a",{key:0,href:o.link},"View "+r.toDisplayString(o.title),9,la)):r.createCommentVNode("",!0),r.createElementVNode("div",{class:r.normalizeClass(`snapshot__item ${o.bg?"bg-"+o.bg:""}`)},[r.createElementVNode("span",ca,r.toDisplayString(o.title),1),r.createElementVNode("span",da,r.toDisplayString(o.number),1)],2)]))),128))])],512)}const ua=S(na,[["render",ma]]),ha={name:"Stepper",props:{url:{type:String,required:!1},status:{type:String,required:!1},current:{type:String,required:!1}}},pa=["href","aria-current"],ba={key:0,class:"visually-hidden"};function ga(a,t,e,n,i,s){return r.openBlock(),r.createElementBlock("li",null,[r.createElementVNode("a",{href:e.url,class:r.normalizeClass(`${e.status?"bg-"+e.status:""}${typeof e.current<"u"?"current":""}`),"aria-current":typeof e.current<"u"?"step":!1},[r.createElementVNode("span",null,[r.renderSlot(a.$slots,"default")]),e.status?(r.openBlock(),r.createElementBlock("em",ba," - status: "+r.toDisplayString(e.status),1)):r.createCommentVNode("",!0)],10,pa)])}const fa=S(ha,[["render",ga]]),vr="",va={name:"Tabs",created(){this.$nextTick(function(){Promise.resolve().then(()=>Ko).then(a=>{window.customElements.get("iam-tabs")||window.customElements.define("iam-tabs",a.default)}).catch(a=>{console.log(a.message)})})}},ya={ref:"wrapper"};function wa(a,t,e,n,i,s){return r.openBlock(),r.createElementBlock("iam-tabs",ya,[r.renderSlot(a.$slots,"default")],512)}const _a=S(va,[["render",wa]]),ka={name:"Tab",props:{title:{type:String,required:!0},lazy:{type:Boolean,required:!1},disabled:{type:Boolean,required:!1}},data(){return{show:!this.lazy,isDisabled:!!this.disabled}}},xa={class:"tab"},Aa=["innerHTML"];function La(a,t,e,n,i,s){return r.openBlock(),r.createElementBlock("details",xa,[r.createElementVNode("summary",{innerHTML:e.title,class:r.normalizeClass({disabled:i.isDisabled})},null,10,Aa),r.renderSlot(a.$slots,"default")])}const Sa=S(ka,[["render",La]]);let I=B.props;I.fields.required=!1;const Ea={components:{Table:B,Input:R},data(){return{itemsData:[...this.items]}},methods:{submitForm:function(a){console.log(this);const t=new FormData(a.target);let e=new Date;const n=e.getFullYear();let i=e.getMonth()+1,s=e.getDate();s<10&&(s="0"+s),i<10&&(i="0"+i),e=s+"/"+i+"/"+n,this.itemsData.unshift({date_added:e,user:t.get("user"),note:t.get("addNote")}),this.$emit("formSubmitted",a)}},name:"NoteFeed",props:{user:{type:String,required:!0},...I,title:{type:String,required:!1},method:{type:String,required:!1,default:"post"},action:{type:String,required:!1}}},qa={class:"container note-feed mb-2"},$a=["innerHTML"],Ca=["action","method"],Ta=["value"];function Ma(a,t,e,n,i,s){const o=r.resolveComponent("Table"),l=r.resolveComponent("Input");return r.openBlock(),r.createElementBlock("div",qa,[e.title?(r.openBlock(),r.createElementBlock("span",{key:0,class:"h3",innerHTML:e.title},null,8,$a)):r.createCommentVNode("",!0),r.createVNode(o,r.mergeProps({fields:[{key:"date_added"},{key:"user"},{key:"note"}],items:i.itemsData},a.$props,{class:"mb-0"}),null,16,["items"]),r.createElementVNode("form",{action:e.action,method:e.method,onSubmit:t[0]||(t[0]=r.withModifiers(d=>s.submitForm(...arguments),["prevent"]))},[r.createElementVNode("input",{type:"hidden",value:e.user,name:"user"},null,8,Ta),r.createVNode(l,{id:"addNote",type:"textarea",label:"Add note",required:"",class:"mw-100"}),t[1]||(t[1]=r.createElementVNode("button",{class:"btn btn-tertiary"},"Submit note",-1))],40,Ca)])}const za=S(Ea,[["render",Ma]]),Ha={name:"Applied Filter",mounted(){this.$nextTick(function(){Promise.resolve().then(()=>Zo).then(a=>{window.customElements.get("iam-applied-filters")||window.customElements.define("iam-applied-filters",a.default)}).catch(a=>{console.log(a.message)})})}};function Ba(a,t,e,n,i,s){return r.openBlock(),r.createElementBlock("iam-applied-filters",null,[r.renderSlot(a.$slots,"default")])}const Ra=S(Ha,[["render",Ba]]);/*!
|
|
2
|
-
* iamKey
|
|
2
|
+
* iamKey v7.0.0
|
|
3
3
|
* Copyright 2022-2025 iamproperty
|
|
4
4
|
*/function Na(a,t){ja(a,t)}function ja(a,t){var e;t.addEventListener("keyup",n=>{clearTimeout(e),e=setTimeout(function(){U(a,t.value)},500)}),t.addEventListener("change",n=>{clearTimeout(e),U(a,t.value)})}const U=function(a,t){Array.from(a.querySelectorAll(":scope > li")).forEach((e,n)=>{let i=e.textContent.toLowerCase();e.classList.add("d-none"),i.includes(t.toLowerCase())&&e.classList.remove("d-none")}),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"Filtered list",value:t})};window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"filterlist"});class Fa extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const t=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",e=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):`${t}/css/core.min.css`,n=document.createElement("template");n.innerHTML=`
|
|
5
5
|
<style>
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
${this.hasAttribute("data-dismiss")?'<div class="notification__dismiss"><button data-dismiss-button part="dismiss-btn">Dismiss</button></div>':""}
|
|
42
42
|
</div>
|
|
43
43
|
`,this.shadowRoot.appendChild(o.content.cloneNode(!0)),document.getElementById("notificationHolder")||document.head.insertAdjacentHTML("beforeend",`<style id="notificationHolder">${i}</style>`)}connectedCallback(){const t=this.shadowRoot.querySelector("[data-dismiss-button]"),e=this.hasAttribute("data-status")?this.getAttribute("data-status"):"white";this.hasAttribute("data-type")?this.classList.add(`bg-${e}`):this.classList.add(`colour-${e}`);const n=this;if(!this.querySelector("i"))switch(e){case"danger":this.innerHTML+='<i class="fa-solid fa-circle-exclamation" aria-hidden="true" slot="icon"></i>';break;case"warning":this.innerHTML+='<i class="fa-solid fa-triangle-exclamation" aria-hidden="true" slot="icon"></i>';break;case"success":this.innerHTML+='<i class="fa-solid fa-check-circle" aria-hidden="true" slot="icon"></i>';break;default:this.innerHTML+='<i class="fa-solid fa-circle-info" aria-hidden="true" slot="icon"></i>'}Oa(n),t&&t.addEventListener("click",function(i){N(n)},!1)}}const Wa={name:"Notification",props:{},created(){this.$nextTick(function(){window.customElements.get("iam-notification")||window.customElements.define("iam-notification",Ua)})}};function Ga(a,t,e,n,i,s){return r.openBlock(),r.createElementBlock("iam-notification",null,[r.renderSlot(a.$slots,"default")])}const Xa=S(Wa,[["render",Ga]]),Ya={name:"Actionbar",props:{},mounted(){this.$nextTick(function(){Promise.resolve().then(()=>ar).then(a=>{window.customElements.get("iam-actionbar")||window.customElements.define("iam-actionbar",a.default)}).catch(a=>{console.log(a.message)})})}};function Ka(a,t,e,n,i,s){return r.openBlock(),r.createElementBlock("iam-actionbar",null,[r.renderSlot(a.$slots,"default")])}const Ja=S(Ya,[["render",Ka]]);/*!
|
|
44
|
-
* iamKey
|
|
44
|
+
* iamKey v7.0.0
|
|
45
45
|
* Copyright 2022-2025 iamproperty
|
|
46
46
|
*/let W=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const t=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",e=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):`${t}/css/core.min.css`,n=document.createElement("template");n.innerHTML=`
|
|
47
47
|
<style>
|
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
|
|
107
107
|
</div>
|
|
108
108
|
`,this.shadowRoot.appendChild(i.content.cloneNode(!0))}connectedCallback(){const t=this.shadowRoot.querySelector(".side-menu"),e=this.shadowRoot.querySelector(".side-menu-content"),n=this.shadowRoot.querySelector(".main-content"),i=this.shadowRoot.querySelector(".side-menu > .btn");this.hasAttribute("data-css")&&this.shadowRoot.querySelector(".styles").insertAdjacentHTML("beforeend",`@import "${this.getAttribute("data-css")}";`),this.hasAttribute("data-title")||this.setAttribute("data-title","configuration"),e.insertAdjacentHTML("afterbegin",`<span class="h3">${this.getAttribute("data-title")}</span>`),n.insertAdjacentHTML("afterbegin",`<span class="h3">${this.getAttribute("data-title")}</span>`),this.querySelector(":scope > :is(h1,h2,h3,h4,h5,h6)")&&(this.querySelector(":scope > :is(h1,h2,h3,h4,h5,h6)").classList.add("h4"),this.querySelector(":scope > :is(h1,h2,h3,h4,h5,h6)").classList.add("main-content__title")),this.hasAttribute("open")&&window.innerWidth>992&&(t.classList.add("open"),i.setAttribute("aria-expanded",!0)),i.addEventListener("click",s=>{t.classList.contains("open")?(t.classList.remove("open"),i.removeAttribute("aria-expanded"),setTimeout(function(){e.classList.add("closed")},1e3),t.classList.add("pe-none"),setTimeout(function(){t.classList.remove("pe-none")},1e3)):(e.classList.remove("closed"),setTimeout(function(){t.classList.add("open"),i.setAttribute("aria-expanded",!0)},100))}),t.addEventListener("mouseenter",s=>{window.innerWidth>992&&(t.classList.contains("open")||e.classList.remove("closed"),t.classList.add("hover"))}),t.addEventListener("mousemove",s=>{window.innerWidth>992&&(t.classList.contains("open")||e.classList.remove("closed"))}),t.addEventListener("mouseleave",s=>{window.innerWidth>992&&(t.classList.remove("hover"),t.classList.contains("open")||setTimeout(function(){e.classList.add("closed")},1e3))})}}window.customElements.get("iam-collapsible-side")||window.customElements.define("iam-collapsible-side",no);const io={name:"CollapsibleSideMenu",props:{},mounted(){}};function so(a,t,e,n,i,s){return r.openBlock(),r.createElementBlock("iam-collapsible-side",null,[r.renderSlot(a.$slots,"default")])}const lo=S(io,[["render",so]]);/*!
|
|
109
|
-
* iamKey
|
|
109
|
+
* iamKey v7.0.0
|
|
110
110
|
* Copyright 2022-2025 iamproperty
|
|
111
111
|
*/const co=function(a){return typeof a!="string"?!1:!isNaN(a)&&!isNaN(parseFloat(a))},mo=(a,t)=>String(a).padStart(t,"0"),uo=a=>a.charAt(0).toUpperCase()+a.slice(1),C=(a,t,e)=>t.split(/[\.\[\]\'\"]/).filter(n=>n).reduce((n,i)=>n?n[i]:e,a);var ho=function(a,t,e,n){function i(s){return s instanceof e?s:new e(function(o){o(s)})}return new(e||(e=Promise))(function(s,o){function l(m){try{c(n.next(m))}catch(u){o(u)}}function d(m){try{c(n.throw(m))}catch(u){o(u)}}function c(m){m.done?s(m.value):i(m.value).then(l,d)}c((n=n.apply(a,t||[])).next())})};const G=a=>{const t=Array.from(a.querySelectorAll("thead th"));Array.from(a.querySelectorAll("tbody tr")).forEach((e,n)=>{const i=Array.from(e.querySelectorAll("th, td")),s=["0","low","medium","high","unknown","n/a","pending","verified","due","overdue","incomplete","complete","completed","approval required","upcoming","requires approval","to do","on track","not started","warning","error"];i.forEach((o,l)=>{const d=t[l];if(typeof d<"u"){let c=document.createElement("div");c.innerHTML=d.innerHTML;let m=c.textContent||c.innerText||"";o.setAttribute("data-label",m),d.hasAttribute("data-td-class")&&o.setAttribute("class",d.getAttribute("data-td-class")),d.hasAttribute("data-format")&&(o.setAttribute("data-format",d.getAttribute("data-format")),o.innerHTML=F(d.getAttribute("data-format"),o.textContent.trim())),s.includes(o.textContent.trim().toLowerCase())&&o.setAttribute("data-content",o.textContent.trim().toLowerCase())}})})},po=a=>{let t=0;return Array.from(a.querySelectorAll("tbody tr")).forEach((e,n)=>{let i=window.getComputedStyle(document.querySelector("html")),s=e.querySelector(":scope > *:last-child > *:first-child");if(s){s.classList.add("text-nowrap");let o=s.offsetWidth/parseFloat(i.fontSize);o+=1.7,t=t>o?t:o}}),t},bo=(a,t)=>{if(t.classList.contains("table--fullwidth")&&!t.hasAttribute("data-expandable")||a.querySelectorAll("thead tr th").length<4&&!t.hasAttribute("data-expandable"))return!1;Array.from(a.querySelectorAll("thead tr")).forEach((e,n)=>{a.querySelectorAll("thead tr th.expand-button-heading").length||e.insertAdjacentHTML("afterbegin",'<th class="th--fixed expand-button-heading"></th>')}),Array.from(a.querySelectorAll("tbody tr")).forEach((e,n)=>{const i=e.getAttribute("data-view")==="full"?"aria-expanded":"";e.insertAdjacentHTML("afterbegin",`<td class="td--fixed td--expand"><button class="btn btn-compact btn-secondary" data-expand-button ${i}>Expand</button></td>`)})},go=a=>{a.addEventListener("click",t=>{if(t&&t.target instanceof HTMLElement&&t.target.closest("[data-expand-button]")){let e=t.target.closest("[data-expand-button]"),n=e.closest("tr");e.toggleAttribute("aria-expanded"),n.getAttribute("data-view")=="full"?n.setAttribute("data-view","default"):n.setAttribute("data-view","full"),e.blur()}})},X=(a,t)=>{let e=t.querySelector("input[data-search]");if(!e)return!1;const n=e.getAttribute("id"),i=e.getAttribute("data-search").split(",");let s=e.parentNode,o={};i.forEach((l,d)=>{Array.from(a.querySelectorAll('td[data-label="'+l.trim()+'"]')).forEach((c,m)=>{c.querySelector(".td__content")?o[c.querySelector(".td__content").textContent]=c.querySelector(".td__content").textContent:o[c.textContent]=c.textContent})}),e.setAttribute("list",`${n}_list`),e.setAttribute("autocomplete","off"),s.querySelector("datalist")||(s.innerHTML+=`<datalist id="${n}_list"></datalist>`),s.querySelector("datalist").innerHTML=`${Object.keys(o).map(l=>`<option value="${l}"></option>`).join("")}`},fo=(a,t,e,n,i)=>{var s;let o=function(c,m=!1){if(n.hasAttribute("data-no-submit")||t.classList.contains("processing"))return!1;if(Array.from(t.querySelectorAll("iam-applied-filters")).forEach((u,g)=>{var p=new Event("tags-set");u.dispatchEvent(p)}),c.type=="submit"&&(t.classList.add("processing"),Array.from(t.querySelectorAll("[data-duplicate]")).forEach((u,g)=>{const p=u.getAttribute("data-duplicate"),h=document.getElementById(p),f=document.querySelector(`[for="${p}"] iam-card`);if(h.checked!=u.checked)if(f){let b=new Event("click");f.dispatchEvent(b)}else h.checked=u.checked}),t.classList.remove("processing")),t.hasAttribute("data-ajax")){if(!m){let u=t.querySelector("[data-pagination]");u.value=1,n.setAttribute("data-page",1)}Q(a,t,e,n)}else t.hasAttribute("data-submit")?t.submit():(j(a,t,n),M(a,t));if(t.hasAttribute("data-ajax-post")){let u=new FormData(t),g=new URLSearchParams(u).toString();const p=new XMLHttpRequest;p.open("GET",`${window.location.href}?ajax=true&${g}`),p.send()}};t.querySelector("iam-actionbar[data-search]")&&t.querySelector("iam-actionbar[data-search]").addEventListener("search-submit",c=>{t.querySelector("input[data-search]")?t.querySelector("input[data-search]").value=c.detail.search:t.insertAdjacentHTML("beforeend",`<input type="hidden" name="search" data-search="${t.querySelector("iam-actionbar[data-search]").getAttribute("data-search")}" value="${c.detail.search}"/>`),clearTimeout(s),o(c)}),t.addEventListener("keyup",c=>{clearTimeout(s),c&&c.target instanceof HTMLElement&&c.target.closest("input[data-search]")&&(s=setTimeout(function(){o(c)},500))}),t.addEventListener("change",c=>{if(clearTimeout(s),c&&c.target instanceof HTMLElement&&c.target.closest("[data-sort]")&&(t.hasAttribute("data-submit")||Y(a,t,i),o(c)),c&&c.target instanceof HTMLElement&&c.target.closest("input[data-search]")&&o(c),c&&c.target instanceof HTMLElement&&c.target.closest("[data-filter][data-no-ajax]")?(j(a,t,n),M(a,t)):(c&&c.target instanceof HTMLElement&&c.target.closest("[data-filter]")&&c.target.closest("form .dialog__wrapper > dialog")||c&&c.target instanceof HTMLElement&&c.target.closest("[data-filter]")&&!c.target.closest("form dialog"))&&o(c),c&&c.target instanceof HTMLElement&&c.target.closest("[data-show]")&&o(c),c&&c.target instanceof HTMLElement&&c.target.closest("[data-mimic]")&&o(c),c&&c.target instanceof HTMLElement&&c.target.hasAttribute("id")){let m=c.target.getAttribute("id");document.querySelector(`[data-duplicate="${m}"]`)&&(document.querySelector(`[data-duplicate="${m}"]`).checked=c.target.checked)}}),t.addEventListener("click",c=>{if(clearTimeout(s),c&&c.target instanceof HTMLElement&&c.target.closest('dialog button:not([type="button"])')&&c.target.closest('dialog button:not([type="button"])').closest("dialog").close(),c&&c.target instanceof HTMLElement&&c.target.closest(".dialog__close")&&(c.preventDefault(),c.stopPropagation()),c&&c.target instanceof HTMLElement&&c.target.closest("[data-clear]")){t.classList.add("processing"),Array.from(t.querySelectorAll(".applied-filters")).forEach((u,g)=>{u.innerHTML=""});let m=t.elements;for(let u=0;u<m.length;u++)switch(m[u].type.toLowerCase()?m[u].type.toLowerCase():"text"){case"text":case"password":case"textarea":m[u].value="";break;case"radio":case"checkbox":if(m[u].checked){let g=m[u],p=g.getAttribute("id"),h=document.querySelector(`[for="${p}"`);if(h.querySelector("iam-card")){let f=h.querySelector("iam-card"),b=new Event("click");f.dispatchEvent(b)}g.checked=!1}break;case"select-one":case"select-multi":m[u].selectedIndex=-1;break}t.classList.remove("processing"),t.hasAttribute("data-submit")||Y(a,t,i),o(c)}}),t.addEventListener("submit",c=>{clearTimeout(s),t.hasAttribute("data-submit")||c.preventDefault(),o(c)}),t.addEventListener("force",c=>{o(c)}),t.addEventListener("paginate",c=>{o(c,!0)});let l=[],d=[];Array.from(t.querySelectorAll("[data-mimic]")).forEach((c,m)=>{let u=c.getAttribute("data-mimic");Array.from(document.querySelectorAll(`[name="${u}"]`)).forEach((g,p)=>{let h=g.closest("form");l.includes(h)||l.push(h),d.includes(u)||d.push(u)})}),l.forEach((c,m)=>{const u=function(){let g=[],p=new FormData(c);for(const[h,f]of p)document.querySelector(`[data-mimic="${h}"]`)&&!g.includes(h)?(g.push(h),document.querySelector(`[data-mimic="${h}"]`).value=f):document.querySelector(`[data-mimic="${h}"]`)&&(document.querySelector(`[data-mimic="${h}"]`).value+=","+f);for(const h of g){const f=new Event("force");t.dispatchEvent(f)}for(const h of d)if(!p.has(h)&&c.querySelector(`[name="${h}"]`)){document.querySelector(`[data-mimic="${h}"]`).value="";const f=new Event("force");t.dispatchEvent(f)}};c.addEventListener("force",g=>{u()}),c.addEventListener("change",g=>{u()})})},Y=(a,t,e)=>{if(t.getAttribute("data-ajax"))return!1;let n=a.querySelector("tbody"),i=t.querySelector('input[type="radio"][data-sort]:checked');if(t.querySelector("select[data-sort]")){let u=t.querySelector("select[data-sort]");i=t.querySelector(`select[data-sort] option:nth-child(${u.selectedIndex+1})`)}let s=i.getAttribute("data-sort"),o=i.getAttribute("data-order"),l=i.getAttribute("data-format");if(!s)return n.innerHTML=e.innerHTML,G(a),!1;let d=[];["asc","desc","descending"].includes(o)||(d=o.split(","));let c=[];Array.from(n.querySelectorAll("tr")).forEach((u,g)=>{let p=u.querySelector('td[data-label="'+s+'"], th[data-label="'+s+'"]').textContent.trim();u.querySelector('[data-label="'+s+'"] .td__content')&&(p=u.querySelector('[data-label="'+s+'"] .td__content').textContent.trim()),d.length&&d.includes(p)&&(p=d.indexOf(p)),co(p)&&(p=mo(p,10)),l&&l=="date"&&(p=new Date(p));const h={index:p,row:u};c.push(h)}),c.sort((u,g)=>u.index>g.index?1:-1),(o=="descending"||o=="desc")&&(c=c.reverse());let m="";c.forEach((u,g)=>{m+=u.row.outerHTML}),n.innerHTML=m},j=(a,t,e)=>{a.classList.remove("table--filtered");let n=J(t),i=[],s=0,o=t.querySelector("[data-pagination]")?parseInt(t.querySelector("[data-pagination]").value):1,l=t.querySelector("[data-show]")?parseInt(t.querySelector("[data-show]").value):15;if(Array.from(a.querySelectorAll("tbody tr")).forEach((c,m)=>{c.classList.remove("filtered"),c.classList.remove("filtered--matched"),c.classList.remove("filtered--show"),c.removeAttribute("data-filtered-by")}),t.querySelector("input[data-search]")){let c=t.querySelector("input[data-search]");t.querySelector("input[data-search]").getAttribute("data-search").split(",").forEach((m,u)=>{i.push({column:`${m.trim()}`,value:`${c.value}`})})}Array.from(t.querySelectorAll("[data-filter-count]")).forEach((c,m)=>{c.innerHTML="",c.parentNode.classList.remove("hover")});let d=0;Object.values(n).forEach((c,m)=>{typeof c=="object"&&Object.values(c).length?d+=Object.values(c).length:d++}),d&&Array.from(t.querySelectorAll("[data-filter-count]")).forEach((c,m)=>{c.innerHTML+=`(${d})`,c.parentNode.classList.add("hover")}),a.classList.add("table--filtered");for(const[c,m]of Object.entries(n))Array.from(a.querySelectorAll("tbody tr:not(.filtered)")).forEach((u,g)=>{let p=!1;m.forEach((h,f)=>{let b=u.querySelector(`[data-label="${c}"]`);if(h.includes("-date-from")){let k=new Date(h.replace("-date-from","")),A=new Date(b.textContent.toLowerCase());k.setHours(0,0,0,0),A.setHours(0,0,0,0),A<k?(u.classList.add("less-than-from-date"),p=!1):!u.classList.contains("less-than-from-date")&&!u.classList.contains("greater-than-to-date")&&(p=!0)}else if(h.includes("-date-to")){let k=new Date(h.replace("-date-to","")),A=new Date(b.textContent.toLowerCase());k.setHours(0,0,0,0),A.setHours(0,0,0,0),A>k?(u.classList.add("greater-than-to-date"),p=!1):!u.classList.contains("less-than-from-date")&&!u.classList.contains("greater-than-to-date")&&(p=!0)}if(h&&h=="$today")h=F("date",new Date);else if(h&&h=="$yesterday"){let k=new Date;k.setDate(k.getDate()-1),h=F("date",k)}else if(h&&(h=="$thisWeek"||h=="$lastWeek")){let k=new Date,A=new Date(k.setDate(k.getDate()-(k.getDay()-1))),w=new Date(k.setDate(k.getDate()-k.getDay()+7)),L=new Date(b.textContent.toLowerCase());if(k.setHours(0,0,0,0),A.setHours(0,0,0,0),w.setHours(0,0,0,0),L.setHours(0,0,0,0),h=="$thisWeek")p=L>=A&&L<=w;else{let q=new Date(A.setDate(A.getDate()-7)),$=new Date(w.setDate(w.getDate()-7));q.setHours(0,0,0,0),$.setHours(0,0,0,0),p=L>=q&&L<=$}}else if(h&&h=="$thisMonth"){let k=new Date,A=k.getFullYear(),w=k.getMonth();var v=new Date(A,w,1),_=new Date(A,w+1,0);let L=new Date(b.textContent.toLowerCase());v.setHours(0,0,0,0),_.setHours(0,0,0,0),L.setHours(0,0,0,0),p=L>=v&&L<=_}else if(h&&h=="$lastMonth"){let k=new Date,A=k.getFullYear(),w=k.getMonth();var y=new Date(A,w-1,1),E=new Date(A,w,0);let L=new Date(b.textContent.toLowerCase());y.setHours(0,0,0,0),E.setHours(0,0,0,0),L.setHours(0,0,0,0),p=L>=y&&L<=E}b&&b.textContent.toLowerCase().includes(h.replace("-"," ").toLowerCase())&&(p=!0)}),p||(u.classList.add("filtered"),u.setAttribute("data-filtered-by",c))});Array.from(a.querySelectorAll("tbody tr:not(.filtered)")).forEach((c,m)=>{let u=!(i.length>0&&i[0].value.length>=3);i.forEach((g,p)=>{let h=c.querySelector(`[data-label="${g.column}"]`);h&&g.value.length>=3&&h.textContent.toLowerCase().includes(g.value.toLowerCase())&&(u=!0)}),u||c.classList.add("filtered")}),Array.from(a.querySelectorAll("tbody tr:not(.filtered)")).forEach((c,m)=>{s++,c.classList.add("filtered--matched"),Math.ceil(s/l)==parseInt(o)&&c.classList.add("filtered--show")}),e&&(e.setAttribute("data-total",s),e.setAttribute("data-show",l),e.setAttribute("data-page",o))},M=(a,t,e)=>{Array.from(t.querySelectorAll("[data-query]")).forEach((n,i)=>{let s=n.getAttribute("data-query"),o=0;if(s=="total")e.hasAttribute("data-total")?o=e.getAttribute("data-total"):o=(a.classList.contains("table--filtered"),a.querySelectorAll("tbody tr").length);else if(!s.includes(" == ")&&s.includes(" & ")){let l=s.split(" & "),d="";l.forEach(c=>{d+=`:not([data-filtered-by="${c}"])`}),o=Array.from(a.querySelectorAll(`tbody tr${d}`)).length}else if(!s.includes(" == "))o=Array.from(a.querySelectorAll(`tbody tr:not([data-filtered-by="${s}"])`)).length;else if(s.includes(" && ")){let l=s.split(" && ");o=Array.from(a.querySelectorAll("tbody tr:not(.filtered)")).filter(function(d){let c=!0;for(const[m,u]of Object.entries(l)){let g=u.split(" == ");(!d.querySelector(`td[data-label="${g[0]}"]`)||d.querySelector(`td[data-label="${g[0]}"]`).textContent!=`${g[1]}`)&&(c=!1)}return c}).length}else{let l=s.split(" == ");o=Array.from(a.querySelectorAll(`tbody tr.filtered--matched td[data-label="${l[0]}"], tbody tr[data-filtered-by="${l[0]}"] td[data-label="${l[0]}"]`)).filter(function(d){return d.textContent===l[1]}).length}n.hasAttribute("data-total")?n.setAttribute("data-total",o):n.innerHTML=o})},vo=function(a,t,e,n){if(n.hasAttribute("data-no-submit"))return!1;e.addEventListener("update-page",i=>{let s=t.querySelector("[data-pagination]"),o=i.detail.page;if(s.value=o,t.dispatchEvent(new Event("paginate")),n.setAttribute("data-page",o),a.hasAttribute("data-show-history")){const l=new URL(location);l.searchParams.set("page",o),history.pushState({type:"pagination",form:t.getAttribute("id"),page:o},"",l)}if(!n.hasAttribute("data-no-scroll")){const l=a.getBoundingClientRect().top+window.pageYOffset+-250;window.scrollTo({top:l,behavior:"smooth"})}}),e.addEventListener("update-show",i=>{let s=t.querySelector("[data-show]"),o=i.detail.show;s.value=o,n.setAttribute("data-show",o),t.dispatchEvent(new Event("submit"))})},yo=(a,t)=>{if(!a)return!1;a.addEventListener("click",e=>{wo(t)})},wo=function(a){for(var t=[],e=a.getElementsByTagName("tr"),n=0;n<e.length;n++){for(var i=e[n].querySelectorAll("td,th"),s=[],o=0;o<i.length;o++)s.push(`"${i[o].textContent}"`);t.push(s.join(","))}t=t.join(`
|
|
112
112
|
`);let l=new Blob([t],{type:"text/csv"});var d=document.createElement("a");d.download="export.csv";var c=window.URL.createObjectURL(l);d.href=c,d.style.display="none",document.body.appendChild(d),d.click(),document.body.removeChild(d)},K=function(a,t,e,n){if(G(a),bo(a,n),M(a,t,n),n&&n.classList.contains("table--cta")){let i=function(){Array.from(a.querySelectorAll("tr")).forEach((o,l)=>{let d=o.offsetHeight;o.style.setProperty("--row-height",`${d}px`)})};const s=po(a);n.style.setProperty("--cta-width",`${s}rem`),new ResizeObserver(i).observe(a)}},J=function(a){let t=new Object;return Array.from(a.querySelectorAll("[data-filter]")).forEach((e,n)=>{if(!(e.type=="radio"&&!e.checked)&&!(e.type=="checkbox"&&!e.checked)&&e&&e.value){let i=e.getAttribute("data-filter"),s=e.value;e.hasAttribute("data-date-from")&&(s+="-date-from"),e.hasAttribute("data-date-to")&&(s+="-date-to"),t[i]||(t[i]=new Array),t[i].push(s)}}),t},Q=function(a,t,e,n){return ho(this,void 0,void 0,function*(){let i=new FormData(t),s=new URLSearchParams(i).toString(),o=a.querySelectorAll("thead tr th:not(.expand-button-heading)"),l=a.querySelector("tbody"),d=t.getAttribute("data-ajax");n.classList.add("table--loading");let c=J(t);Array.from(t.querySelectorAll("[data-filter-count]")).forEach((g,p)=>{g.innerHTML="",g.parentNode.classList.remove("hover")});let m=0;Object.values(c).forEach((g,p)=>{typeof g=="object"&&Object.values(g).length?m+=Object.values(g).length:m++}),m&&Array.from(t.querySelectorAll("[data-filter-count]")).forEach((g,p)=>{g.innerHTML+=`(${m})`,g.parentNode.classList.add("hover")}),window.controller||(window.controller=[]),window.controller[d]&&window.controller[d].abort(),window.controller[d]=new AbortController;const{signal:u}=controller[d];e.setAttribute("data-loading","true"),t.classList.add("processing");try{yield fetch(d+"?"+s,{signal:u,method:"get",credentials:"same-origin",headers:new Headers({"Content-Type":"application/json",Accept:"application/json","X-Requested-With":"XMLHttpRequest"})}).then(g=>g.json()).then(g=>{let p=t.hasAttribute("data-schema")?t.getAttribute("data-schema"):"data",h=t.hasAttribute("data-schema-total")?t.getAttribute("data-schema-total"):"meta.total",f=t.hasAttribute("data-schema-page")?t.getAttribute("data-schema-page"):"meta.current_page",b=C(g,h,15),v=C(g,f,1),_=C(g,p),y=n.hasAttribute("data-empty-msg")?n.getAttribute("data-empty-msg"):"No results found";_?(l.innerHTML="",_.forEach((E,k)=>{var A=document.createElement("tr");o.forEach((w,L)=>{let q="";var $=document.createElement("td");if($.setAttribute("data-label",w.innerText),w.getAttribute("data-output")){var T=w.getAttribute("data-output");q=T.replace(new RegExp(/{(.*?)}/,"gm"),function(sr){return C(E,sr.replace("{","").replace("}",""))})}if(w.hasAttribute("data-output-array")){var T=w.getAttribute("data-output");let lr=C(E,T.replace("{","").replace("}",""));q="",lr.forEach((at,_r)=>{let cr=w.getAttribute("data-output-array"),H="";if(w.hasAttribute("data-output-array-property")&&w.hasAttribute("data-output-array-transform")){const O=C(at,w.getAttribute("data-output-array-property")),dr=JSON.parse(w.getAttribute("data-output-array-transform"))[O];H=cr.replace(`{${w.getAttribute("data-output-array-property")}}`,dr)}H=H.replace(new RegExp(/{(.*?)}/,"gm"),function(O){return C(at,O.replace("{","").replace("}",""))}),q+=H})}w.hasAttribute("data-transform")&&(q=JSON.parse(w.getAttribute("data-transform"))[q],!q&&w.hasAttribute("data-default")&&(q=w.getAttribute("data-default"))),$.innerHTML=q,A.appendChild($)}),l.appendChild(A)}),X(a,t),n.setAttribute("data-total",parseInt(b)),n.setAttribute("data-page",parseInt(v)),K(a,t,e,n),Array.from(t.querySelectorAll("[data-ajax-query]")).forEach((E,k)=>{let A=C(g,E.getAttribute("data-ajax-query"),"");E.hasAttribute("data-total")?E.setAttribute("data-total",A):E.innerHTML=A}),parseInt(b)==0&&(l.innerHTML=`<tr><td colspan="100%"><span>${y}</span></td></tr>`),n.classList.remove("table--loading"),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"Ajax table loaded",url:d,formData:s})):l.innerHTML='<tr><td colspan="100%"><span>Error loading table</span></td></tr>',e.removeAttribute("data-loading"),t.classList.remove("processing")})}catch(g){console.log(g)}})},F=(a,t)=>{switch(a){case"datetime":return new Date(t).toLocaleDateString("en-gb",{weekday:"short",year:"2-digit",month:"long",day:"numeric"})+" "+new Date(t).toLocaleTimeString("en-gb",{hour:"2-digit",minute:"2-digit"});case"date":return new Date(t).toLocaleDateString("en-gb",{day:"numeric",month:"long",year:"2-digit"});case"capitalise":return t=uo(t)}};class _o extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const t=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",e=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):`${t}/css/core.min.css`,n=document.createElement("template");n.innerHTML=`
|
|
@@ -136,7 +136,7 @@
|
|
|
136
136
|
<iam-pagination part="pagination" class="pagination--table" ${this.hasAttribute("data-page")?`data-page="${this.getAttribute("data-page")}"`:""} ></iam-pagination>
|
|
137
137
|
`,this.shadowRoot.appendChild(n.content.cloneNode(!0)),document.getElementById("tableExtras")||document.head.insertAdjacentHTML("beforeend",`<style id="tableExtras">*:has(>iam-table){container-type:inline-size}iam-table{--hover-background: var(--colour-light);--row-bg: var(--colour-canvas-2)}iam-table thead tr{background:var(--row-bg)}iam-table tbody tr{background:var(--row-bg)}iam-table tbody tr:is(:hover,:focus-within,.hover){--bg-colour-rgb: 238,238,238;--row-bg: var(--hover-background);background:var(--row-bg)}iam-table[data-expandable] [data-expand-button][aria-expanded]{background-color:rgba(0,0,0,0)}@container (width < 23.4375em){iam-table:not(.table--fullwidth) thead{display:none}iam-table:not(.table--fullwidth) tbody{display:block;overflow:visible}iam-table:not(.table--fullwidth) tbody tr td:first-child{padding-top:0}iam-table:not(.table--fullwidth) tr{display:block;position:relative;border:none;background:var(--row-bg);padding:var(--wrapper-padding);box-shadow:0px 6px 12px rgba(0,0,0,.11);border-radius:0.5rem;height:auto}iam-table:not(.table--fullwidth) tr+tr{margin-top:2rem}iam-table:not(.table--fullwidth) tr:is(:hover,:focus,.hover){--row-bg: var(--colour-canvas-2)}iam-table:not(.table--fullwidth) :is(td,th){display:block;border-color:var(--colour-border);padding-right:0}iam-table:not(.table--fullwidth) :is(td,th):nth-child(1){border-top:none}iam-table:not(.table--fullwidth) :is(td,th)[data-label]:not([data-label=""]):before{content:attr(data-label);color:var(--colour-heading);padding:0 0 0.375rem 0;margin-bottom:0;display:block;font-weight:bold}iam-table:not(.table--fullwidth) td:first-child::after{top:1.75rem !important}iam-table:not(.table--fullwidth) td::after{top:2.5rem}iam-table:not(.table--fullwidth) .td--fixed{padding-right:50%}iam-table:not(.table--fullwidth) tbody tr td:not(:first-child){border-top:var(--border-width) solid currentColor;border-color:var(--colour-border) !important}iam-table:not(.table--fullwidth) tr:not([data-view=full]) td p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}iam-table:not(.table--fullwidth) td:has([data-expand-button]){height:0;padding:0;position:relative}iam-table:not(.table--fullwidth) td:has([data-expand-button])+td{border-top:none !important;padding-top:0 !important}iam-table:not(.table--fullwidth) [data-expand-button]{top:0;right:0;background:rgba(0,0,0,0) !important;border:none;position:absolute;overflow:hidden;--compact-size: 2rem}iam-table:not(.table--fullwidth) [data-expand-button]:before{font-family:"Font Awesome 6 Pro";content:"";font-weight:300 !important;font-size:1.75rem;line-height:var(--compact-size) !important}iam-table:not(.table--fullwidth) [data-expand-button][aria-expanded]:before{content:"";font-weight:900 !important}iam-table:not(.table--fullwidth) .dialog__wrapper:not([slot=overflow]){margin-top:-0.5rem;margin-left:-1rem;z-index:10}iam-table:not(.table--fullwidth) tbody tr:not([data-view=full]) td:not(.td--fixed)+td:not(.td--fixed)+td+td{display:none}iam-table.table--cta:not(.table--fullwidth) tr td:not(:first-child):last-child{display:block !important;position:static;width:100%;min-width:100%;margin-left:0;padding-left:0;text-align:left;min-height:0}iam-table.table--cta:not(.table--fullwidth) tr td:not(:first-child):last-child:after{display:none}}@container (width > 23.4375em){iam-table.table--cta:not(.table--loading):has(tr:first-child td:first-child:last-child){padding-right:calc(var(--wrapper-padding) + 1.5rem)}iam-table.table--cta:not(.table--loading):not(:has(tr:first-child td:first-child:last-child)) tr>th:nth-last-child(2),iam-table.table--cta:not(.table--loading):not(:has(tr:first-child td:first-child:last-child)) tr>td:nth-last-child(2){padding-right:var(--cta-width)}iam-table.table--cta:not(.table--loading):not(:has(tr:first-child td:first-child:last-child)) tr>*:not(:first-child):last-child{position:absolute;left:calc(100% - var(--cta-width));top:auto;background:rgba(0,0,0,0);width:var(--cta-width);min-height:calc(var(--row-height) - 2px);text-align:right;background:linear-gradient(90deg, transparent 0%, var(--row-bg) 1.25rem);cursor:default;padding-bottom:0}iam-table.table--cta:not(.table--loading):not(:has(tr:first-child td:first-child:last-child)) tr>*:not(:first-child):last-child a{white-space:nowrap;padding-right:.2rem;padding-bottom:0}iam-table.table--cta:not(.table--loading):not(:has(tr:first-child td:first-child:last-child)) tbody tr:hover>*:not(:first-child):last-child{background:linear-gradient(90deg, transparent 0%, var(--row-bg) 1.25rem)}}iam-table:is(.mh-sm,.mh-md,.mh-lg):not(.table--cta){position:relative}iam-table:is(.mh-sm,.mh-md,.mh-lg):not(.table--cta) thead{position:sticky;top:0;left:0;z-index:1;background-color:var(--row-bg)}iam-table:is(.mh-sm,.mh-md,.mh-lg):not(.table--cta) thead:before{content:"";position:absolute;bottom:0;left:0;width:100%;height:2px;background:var(--colour-primary)}iam-table:is(.mh-sm,.mh-md,.mh-lg):not(.table--cta) tbody{position:relative}iam-table:is(.mh-sm,.mh-md,.mh-lg):not(.table--cta) tbody tr:first-child td{border-top:0}iam-table:is(.mh-sm,.mh-md,.mh-lg):not(.table--cta) tbody tr:last-child td{border-bottom:0}table .hide-status:after{display:none}table :not(.hide-status):is([data-content=low],[data-content=medium],[data-content=high],[data-content=unknown],[data-content=due],[data-content=overdue],[data-content=incomplete],[data-content="requires approval"],[data-content=upcoming],[data-content="approval required"],[data-content=warning],[data-content=verified],[data-content="not started"],[data-content="to do"],[data-content="on track"],[data-content=completed],[data-content=complete],.alert-status:not([data-content="0"]):not([data-content=""]):not(:empty)){position:relative;padding-left:1.5rem}table :not(.hide-status):is([data-content=low],[data-content=medium],[data-content=high],[data-content=unknown],[data-content=due],[data-content=overdue],[data-content=incomplete],[data-content="requires approval"],[data-content=upcoming],[data-content="approval required"],[data-content=warning],[data-content=verified],[data-content="not started"],[data-content="to do"],[data-content="on track"],[data-content=completed],[data-content=complete],.alert-status:not([data-content="0"]):not([data-content=""]):not(:empty))::before{margin-left:-1.5rem !important}table :not(.hide-status):is([data-content=low],[data-content=medium],[data-content=high],[data-content=unknown],[data-content=due],[data-content=overdue],[data-content=incomplete],[data-content="requires approval"],[data-content=upcoming],[data-content="approval required"],[data-content=warning],[data-content=verified],[data-content="not started"],[data-content="to do"],[data-content="on track"],[data-content=completed],[data-content=complete],.alert-status:not([data-content="0"]):not([data-content=""]):not(:empty)):after{font-family:"Font Awesome 6 Pro";position:absolute;top:1rem;left:0;font-size:1rem;line-height:1;height:1rem;width:1rem;display:inline-block}table [data-content=high]:after{content:"";font-weight:normal;color:var(--colour-danger)}table [data-content=medium]:after{content:"";font-weight:normal;color:var(--colour-warning)}table [data-content=low]:after{content:"";font-weight:normal;color:var(--colour-complete)}table [data-content=unknown]:after{content:"";font-weight:normal;color:var(--colour-muted)}table :is([data-content=overdue],[data-content=due],[data-content=incomplete]):after{content:"";color:var(--colour-danger)}table :is([data-content="not started"],[data-content="to do"],[data-content="on track"]):after{content:"";color:var(--colour-muted)}table :is([data-content="requires approval"],[data-content="approval required"],[data-content="action required"],[data-content=upcoming]):after{content:"";color:var(--colour-warning)}table :is([data-content=warning]):after{content:"";color:var(--colour-warning)}table :is([data-content="manually verified"],[data-content=verified],[data-content=completed],[data-content=complete]):after{content:"";font-weight:normal;color:var(--colour-complete)}table .alert-status:not([data-content="0"]):not([data-content=""]):not(:empty):after{content:"";color:var(--colour-primary)}iam-table .table--filtered tbody tr:not(.filtered--show){display:none !important}iam-table table:not(.table--filtered):not(.table--ajax) tbody tr:nth-child(15)~tr{display:none}iam-table input:is([type=radio],[type=checkbox])+label:not(.radio--tick){padding-left:0 !important;margin:0 !important}iam-table input:is([type=radio],[type=checkbox])+label:not(.radio--tick):before,iam-table input:is([type=radio],[type=checkbox])+label:not(.radio--tick):after{top:.75rem !important;left:.25rem !important}iam-table:has([type=checkbox]:checked) tr:has([type=checkbox]) [type=checkbox]{width:100vw;height:100%;max-height:var(--row-height);max-width:100vw;cursor:pointer;pointer-events:all;top:auto;margin:0;margin-top:0rem}@container (width > 23.4375em){iam-table tr:has([type=checkbox]:checked){height:calc(4.625rem - 2px)}}iam-table tr:has([type=checkbox]:checked){--row-bg: #E0E0E0}@container (width < 23.4375em){@media screen and (prefers-color-scheme: light){iam-table:has([slot=before]) iam-actionbar{background-color:#e6eaec}}iam-table:has([slot=before]) .actionbar__sticky+*{margin-top:0 !important}iam-table input:is([type=radio],[type=checkbox])+label:not(.radio--tick){padding-left:0 !important;margin:0 !important;min-height:2rem}iam-table input:is([type=radio],[type=checkbox])+label:not(.radio--tick):before,iam-table input:is([type=radio],[type=checkbox])+label:not(.radio--tick):after{top:.25rem !important;left:0 !important}iam-table:has([type=checkbox]:checked) tr:has([type=checkbox]) [type=checkbox]{width:100%;height:100%;max-height:100%;max-width:100%;margin-top:-2rem}}iam-table.table--fullwidth:not([data-expandable]) th.expand-button-heading{display:none}iam-table.table--fullwidth:not([data-expandable]) td:has([data-expand-button]){display:none}@container (width > 23.4375em){iam-table:not([data-expandable]) th.expand-button-heading{display:none}iam-table:not([data-expandable]) td.td--expand{display:none}iam-table[data-expandable] [data-expand-button]{margin:0}iam-table[data-expandable] [data-expand-button]:before{font-family:"Font Awesome 6 Pro";content:"";font-weight:500}iam-table[data-expandable] [data-expand-button][aria-expanded]:before{content:""}iam-table[data-expandable] tr:not(:has(p)) [data-expand-button]{display:none}iam-table[data-expandable] tr:not([data-view=full]) td p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}}@container (width < 23.4375em){iam-table:not(.table--fullwidth) .td--fixed+td:not(.td--fixed){border-top:none}}@container (width > 23.4375em){iam-table{--width-adjust: 0px}iam-table:has([type=checkbox]){--width-adjust: -1rem}iam-table .th--fixed{min-width:calc(4.5rem + var(--width-adjust));position:absolute;padding:0}iam-table .th--fixed:after{top:auto;left:0;content:"";position:absolute;width:100%;height:calc(var(--row-height) - 2px);background:linear-gradient(90deg, var(--row-bg) calc(100% - 1.5rem), transparent 100%)}iam-table .td--fixed{position:absolute;position:absolute;left:auto;top:auto;z-index:3;padding:0.25rem 0 0 0;min-width:4.5rem;height:calc(var(--row-height) - 2px);text-align:left;background:linear-gradient(90deg, var(--row-bg) calc(100% - 1.5rem), transparent 100%)}iam-table .td--fixed:has([open]){z-index:4}iam-table tr:has(.td--fixed){height:3.5rem}iam-table tr:is(:hover,:focus) .td--fixed{background:linear-gradient(90deg, var(--row-bg) calc(100% - 1.5rem), transparent 100%)}iam-table tr:has([data-expand-button]){height:calc(4.625rem - 2px)}iam-table .th--fixed+th:not(.th--fixed),iam-table .td--fixed+td:not(.td--fixed){padding-left:calc(4.5rem + var(--width-adjust))}iam-table .th--fixed:not(.expand-button-heading)+.th--fixed+th:not(.th--fixed),iam-table .td--fixed:not(.td--expand)+.td--fixed+td:not(.td--fixed){padding-left:calc(7.75rem + var(--width-adjust))}iam-table[data-expandable] .th--fixed+.th--fixed+th:not(.th--fixed),iam-table[data-expandable] .td--fixed+.td--fixed+td:not(.td--fixed){padding-left:calc(7.75rem + var(--width-adjust))}iam-table .th--fixed+.th--fixed,iam-table .td--fixed+.td--fixed{padding-left:calc(3.25rem + var(--width-adjust));min-width:calc(7.75rem + var(--width-adjust))}iam-table .th--fixed:has(+.th--fixed),iam-table .td--fixed:has(+.td--fixed){min-width:calc(3.25rem + var(--width-adjust));z-index:5}iam-table .dialog__wrapper{z-index:10}iam-table .dialog__wrapper:has([open]){z-index:20}iam-table[data-expandable] input:is([type=radio],[type=checkbox])+label:before,iam-table[data-expandable] input:is([type=radio],[type=checkbox])+label:after{left:1.25rem !important}iam-table:not([data-expandable]) th.expand-button-heading+th{padding-left:0 !important}iam-table:not([data-expandable]) td.td--expand+td{padding-left:0 !important}iam-table:not([data-expandable]) th.expand-button-heading+.th--fixed{min-width:calc(4.5rem + var(--width-adjust)) !important}iam-table:not([data-expandable]) td.td--expand+.td--fixed{min-width:calc(4.5rem + var(--width-adjust)) !important}}/*# sourceMappingURL=assets/css/components/table.global.css.map */
|
|
138
138
|
</style>`)}connectedCallback(){const t=new URLSearchParams(window.location.search);this.hasAttribute("data-total")||this.setAttribute("data-total",this.querySelectorAll("table tbody tr").length),this.hasAttribute("data-page")||this.setAttribute("data-page",t.has("page")?t.get("page"):1),this.hasAttribute("data-show")||this.setAttribute("data-show",t.has("show")?t.get("show"):15),this.hasAttribute("data-increment")||this.setAttribute("data-increment",this.getAttribute("data-show"));let e=this.classList.toString();if(e=e.replace("table--cta",""),e=e.replace("table--loading",""),this.shadowRoot.querySelector(".table__wrapper").className+=` ${e}`,this.querySelector(".actionbar__sticky")&&this.shadowRoot.querySelector(".table__wrapper").classList.add("has-actionbar"),this.table=this.querySelector("table"),this.savedTableBody=this.table.querySelector("tbody").cloneNode(!0),this.pagination=this.shadowRoot.querySelector("iam-pagination"),this.pagination.setAttribute("data-total",this.getAttribute("data-total")),this.pagination.setAttribute("data-page",this.getAttribute("data-page")),this.pagination.setAttribute("data-show",this.getAttribute("data-show")),this.pagination.setAttribute("data-increment",this.getAttribute("data-show")),this.hasAttribute("data-page-jump")&&this.pagination.setAttribute("data-page-jump","true"),this.hasAttribute("data-per-page")&&this.pagination.setAttribute("data-per-page","true"),this.hasAttribute("data-item-count")&&this.pagination.setAttribute("data-item-count","true"),this.hasAttribute("data-loading")&&this.pagination.setAttribute("data-loading","true"),this.classList.contains("table--fullwidth")&&this.pagination.setAttribute("data-minimal","true"),this.classList.contains("table--cta")||this.shadowRoot.querySelector(".table--cta").classList.remove("table--cta"),this.form=document.createElement("form"),this.hasAttribute("data-filterby")?this.form=document.querySelector(`#${this.getAttribute("data-filterby")}`):this.table.parentNode.insertBefore(this.form,this.table.nextSibling),this.form.hasAttribute("data-ajax")&&this.table.classList.add("table--ajax"),X(this.table,this.form),this.form.querySelector("[data-pagination]")||this.form.insertAdjacentHTML("beforeend",`<input name="page" type="hidden" value="${this.getAttribute("data-page")}" data-pagination="true" />`),this.form.querySelector("[data-show]")||this.form.insertAdjacentHTML("beforeend",`<input name="show" type="hidden" value="${this.getAttribute("data-show")}" data-show="true" />`),go(this.table),fo(this.table,this.form,this.pagination,this,this.savedTableBody),vo(this.table,this.form,this.pagination,this),yo(this.shadowRoot.querySelector("[data-export]"),this.table),this.form.getAttribute("data-ajax"))Q(this.table,this.form,this.pagination,this);else{let n=function(s=1){return Math.floor(Math.random()*Date.now()*(s+1))};if(this.querySelector("iam-actionbar[data-selectall]")||document.querySelector(`iam-actionbar[data-for='${this.getAttribute("id")}']`)){const s=this.querySelector("iam-actionbar[data-selectall]")?this.querySelector("iam-actionbar[data-selectall]"):document.querySelector(`iam-actionbar[data-for='${this.getAttribute("id")}']`);Array.from(this.table.querySelectorAll("thead tr")).forEach((o,l)=>{o.insertAdjacentHTML("afterbegin",'<th class="th--fixed"></th>')}),Array.from(this.table.querySelectorAll("tbody tr")).forEach((o,l)=>{let d=`row${n(l)}`;o.insertAdjacentHTML("afterbegin",`<td class="td--fixed selectrow selected"><input type="checkbox" name="row" id="${d}" ${o.hasAttribute("data-selected")?'checked="true"':""}/><label for="${d}"><span class="visually-hidden">Select row</span></label></td>`)}),this.table.addEventListener("change",o=>{if(o&&o.target instanceof HTMLElement&&o.target.closest(".selectrow input")){let l=this.table.querySelectorAll('.selectrow input[type="checkbox"]').length,d=this.table.querySelectorAll('.selectrow input[type="checkbox"]:checked').length;s.setAttribute("data-selected",l==d?"all":d)}}),s.addEventListener("selected",o=>{o.detail.selected=="0"?Array.from(this.table.querySelectorAll('.selectrow input[type="checkbox"]')).forEach((l,d)=>{l.checked=!1}):o.detail.selected=="all"&&Array.from(this.table.querySelectorAll('.selectrow input[type="checkbox"]')).forEach((l,d)=>{l.checked=!0})})}let i=-1;Array.from(this.table.querySelectorAll("tbody tr")).forEach((s,o)=>{if(s.querySelector(":scope > td > .dialog__wrapper")){let l=s.querySelector(":scope > td > .dialog__wrapper").parentNode;l.classList.add("td--fixed"),i=Array.from(l.parentNode.children).indexOf(l)}}),i!=-1&&(this.table.querySelector(`thead tr th:nth-child(${i+1})`).classList.add("th--fixed"),Array.from(this.table.querySelectorAll(`tbody tr td:nth-child(${i+1})`)).forEach((s,o)=>{s.classList.add("td--fixed")})),K(this.table,this.form,this.pagination,this),this.hasAttribute("data-no-submit")||j(this.table,this.form,this),M(this.table,this.form)}this.shadowRoot.querySelector(".table__wrapper").addEventListener("scroll",n=>{this.table.querySelector("dialog[open]")&&(this.table.querySelector("dialog[open]").close(),this.table.querySelector(".dialog__wrapper > button.active").classList.remove("active"))}),this.pagination.addEventListener("update-show",n=>{let i=n.detail.show;const s=new CustomEvent("update-show",{detail:{show:i}});this.dispatchEvent(s)}),this.pagination.addEventListener("update-page",n=>{let i=n.detail.page;const s=new CustomEvent("update-page",{detail:{page:i}});this.dispatchEvent(s)})}static get observedAttributes(){return["data-total","data-page","data-show"]}attributeChangedCallback(t,e,n){switch(this.pagination=this.shadowRoot.querySelector("iam-pagination"),t){case"data-total":{e!=n&&this.pagination.setAttribute("data-total",n);break}case"data-show":{e!=n&&this.pagination.setAttribute("data-show",n);break}case"data-page":{e!=n&&this.pagination.setAttribute("data-page",n);break}}}}const ko=Object.freeze(Object.defineProperty({__proto__:null,default:_o},Symbol.toStringTag,{value:"Module"}));/*!
|
|
139
|
-
* iamKey
|
|
139
|
+
* iamKey v7.0.0
|
|
140
140
|
* Copyright 2022-2025 iamproperty
|
|
141
141
|
*/function xo(a,t){const e=t.querySelector(".files"),n=t.querySelector(".drop-area"),i=a.querySelector("input"),s=a.hasAttribute("data-maxsize")?a.getAttribute("data-maxsize"):0,o=t.querySelector(".invalid-feedback.size"),l=t.querySelector(".invalid-feedback.ext"),d=i.cloneNode();n.append(d);let c=function(m){if(!i.hasAttribute("accept"))return!0;const u=m.split(".").pop();return!!i.getAttribute("accept").includes(u)};if(t.addEventListener("click",m=>{m&&m.target instanceof HTMLElement&&m.target.closest(".btn-primary")&&(m.target.closest(".btn-primary"),l.classList.remove("d-block"),o.classList.remove("d-block"),(i.hasAttribute("multiple")?d:i).click())}),t.addEventListener("click",m=>{if(m&&m.target instanceof HTMLElement&&m.target.closest(".files button")){const u=new DataTransfer,{files:g}=i,p=m.target.closest(".files button");for(let f=0;f<g.length;f++){const b=g[f];b.name!=p.getAttribute("data-file")&&u.items.add(b)}i.files=u.files;const h=new Event("change");i.dispatchEvent(h)}}),d.addEventListener("change",m=>{if(i.hasAttribute("multiple")){const g=[...i.files,...d.files];let p=[];const h=new DataTransfer;for(let f=0;f<g.length;f++){const b=g[f],v=b.size/1e3;!p.includes(b.name)&&(s==0||v<s)&&c(b.name)&&h.items.add(b),c(b.name)||l.classList.add("d-block"),v>s&&o.classList.add("d-block"),p.push(b.name)}i.files=h.files}else i.files=d.files;const u=new Event("change");i.dispatchEvent(u)}),d.addEventListener("dragenter",m=>{d.classList.add("focus")}),d.addEventListener("dragleave",m=>{d.classList.remove("focus")}),d.addEventListener("drop",m=>{d.classList.remove("focus")}),i.addEventListener("change",m=>{if(i.files.length==1){let g=i.files[0];const p=g.size/1e3;if(!c(g.name)){l.classList.add("d-block");const h=new DataTransfer;i.files=h.files}if(p>s){o.classList.add("d-block");const h=new DataTransfer;i.files=h.files}}e.innerHTML="";for(const g of i.files)e.innerHTML+=`<span class="file" part="file">${g.name} <button data-file="${g.name}">Remove</button></span>`;const u=new CustomEvent("elementchange",{detail:{files:i.files}});if(a.dispatchEvent(u),i.files.length==0){const g=new CustomEvent("empty");a.dispatchEvent(g)}}),a.hasAttribute("data-filename")){let m=a.getAttribute("data-filename");m&&(e.innerHTML=`<span class="file">${m} <button data-file="${m}">Remove</button></span>`)}}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"fileupload"});const Ao=Object.freeze(Object.defineProperty({__proto__:null,default:class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const t=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",e=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):`${t}/css/core.min.css`,n=document.createElement("template");n.innerHTML=`
|
|
142
142
|
<style>
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
<span class="invalid-feedback size">Some files Were too large to upload.</span>
|
|
158
158
|
</div>
|
|
159
159
|
`,this.shadowRoot.appendChild(n.content.cloneNode(!0))}connectedCallback(){this.innerHTML+='<i class="fa-regular fa-arrow-up-from-bracket me-2" aria-hidden="true" slot="btn"></i>';const t=this.shadowRoot.querySelector(".file-upload"),e=this.querySelector("input"),n=this.shadowRoot.querySelector(".helper-text");this.querySelector('[slot="helper"]')||(n.innerHTML=`${this.hasAttribute("data-maxsize")?`Max file size is ${this.getAttribute("data-maxsize")}kb. `:""}${e.hasAttribute("accept")?`Supported file types are ${e.getAttribute("accept")}`:""}`),xo(this,t)}static get observedAttributes(){return["data-filename"]}attributeChangedCallback(t,e,n){switch(t){case"data-filename":{if(e!=n){const i=this.shadowRoot.querySelector(".files");n!=null&&n!="null"&&n!=""&&(i.innerHTML=`<span class="file">${n} <button data-file="${n}">Remove</button></span>`)}break}}}}},Symbol.toStringTag,{value:"Module"}));/*!
|
|
160
|
-
* iamKey
|
|
160
|
+
* iamKey v7.0.0
|
|
161
161
|
* Copyright 2022-2025 iamproperty
|
|
162
162
|
*/window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"accordion"});class Lo extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const t=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",e=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):`${t}/css/core.min.css`,n=document.createElement("template");n.innerHTML=`
|
|
163
163
|
<style>
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
</style>
|
|
176
176
|
<slot></slot>
|
|
177
177
|
`,this.shadowRoot.appendChild(n.content.cloneNode(!0))}connectedCallback(){if(!this.classList.contains("accordion--keep-open")){const t=this.querySelectorAll(":scope > details");t.forEach(e=>{e.addEventListener("toggle",()=>{t.forEach(n=>{n!==e&&e.hasAttribute("open")&&n.removeAttribute("open")})})})}}}const So=Object.freeze(Object.defineProperty({__proto__:null,default:Lo},Symbol.toStringTag,{value:"Module"}));/*!
|
|
178
|
-
* iamKey
|
|
178
|
+
* iamKey v7.0.0
|
|
179
179
|
* Copyright 2022-2025 iamproperty
|
|
180
180
|
*/const Eo=a=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:a})},qo=(a,t,e)=>(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementAdded",element:t}),e.forEach(n=>{a.addEventListener(n,function(i){let s={event:n,element:t,target:i.target};Object.keys(i.detail).forEach(o=>{const l=i.detail[o];s[o]=l}),window.dataLayer.push(s)})}),!0),$o=`<div class="card__head" part="head">
|
|
181
181
|
<slot name="head"></slot>
|
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
<slot name="btns"></slot>
|
|
207
207
|
</div>
|
|
208
208
|
</div>`),Array.from(t.querySelectorAll('[slot="btns"]')).forEach((o,l)=>{o.classList.add("btn"),o.classList.add("btn-action")}),t.querySelector('[slot="checkbox"],[slot="secondary"]')){const o=t.querySelector('[slot="checkbox"],[slot="secondary"]');o.addEventListener("mouseenter",l=>{t.classList.add("prevent-hover")}),o.addEventListener("mouseleave",l=>{t.classList.remove("prevent-hover")})}if(t.shadowRoot.querySelector(".dialog__wrapper")){const o=t.shadowRoot.querySelector(".dialog__wrapper");o.addEventListener("mouseenter",l=>{t.classList.add("prevent-hover")}),o.addEventListener("mouseleave",l=>{t.classList.remove("prevent-hover")})}const n=t.querySelector('input[type="checkbox"]');n&&n.addEventListener("change",o=>{if(n.checked){const l=new CustomEvent("select-card",{detail:{"Card value":n.value,"input name":n.getAttribute("name")}});t.dispatchEvent(l)}else{const l=new CustomEvent("unselect-card",{detail:{"Card value":n.value,"input name":n.getAttribute("name")}});t.dispatchEvent(l)}});const i=t.querySelector('[slot="secondary"]');i&&i.addEventListener("click",o=>{const l=new CustomEvent("secondary-button-clicked",{detail:{Title:i.getAttribute("title")}});t.dispatchEvent(l)});const s=t.querySelectorAll('[slot="btns"]');Array.from(s).forEach((o,l)=>{o.addEventListener("click",d=>{const c=new CustomEvent("action-button-clicked",{detail:{Title:o.getAttribute("title")}});t.dispatchEvent(c)})}),qo(t,"iam-card",["select-card","unselect-card","secondary-button-clicked","action-button-clicked"])})}static get observedAttributes(){return["data-image"]}attributeChangedCallback(t,e,n){switch(t){case"data-total":{this.shadowRoot.querySelector(".card__total")&&(this.shadowRoot.querySelector(".card__total").innerHTML=n);break}case"data-image":{if(e!=n){const i=this.shadowRoot.querySelector(".card__head img");i&&i.setAttribute("src",n)}break}}}}const zo=Object.freeze(Object.defineProperty({__proto__:null,default:Mo},Symbol.toStringTag,{value:"Module"}));/*!
|
|
209
|
-
* iamKey
|
|
209
|
+
* iamKey v7.0.0
|
|
210
210
|
* Copyright 2022-2025 iamproperty
|
|
211
211
|
*/const Ho=function(a){let t=[];return Array.from(a.querySelectorAll(":scope > div")).forEach((e,n)=>{e.hasAttribute("data-thumbnail")&&(t[n]=e.getAttribute("data-thumbnail"))}),t},Bo=function(a,t){let e=a.querySelectorAll(":scope > div").length,n="";for(let i=1;i<=e;i++){let s=null,o="";t.length&&t[i-1]?(o="has-thumbnail",s=`<img src="${t[i-1]}" alt="Slide ${i}" height="148"/>`):s=`Slide ${i}`,n+=`<button class="control-${i} ${o}" data-slide="${i}" ${i==1?"aria-current":""}>${s}</button>`}return n},D=function(a,t){return t==1?a:Math.ceil(a/t)*t-t+1},V=function(a,t){return(a-1)/(t-1)*100},Ro=function(a){var t;const e=a.shadowRoot.querySelector(".carousel");let n=e.querySelector(".carousel__inner"),i=e.querySelector(".carousel__controls"),s=e.querySelector('.carousel__progress [type="range"]'),o=a.querySelectorAll(":scope > div").length,l=n.clientWidth,d=a.querySelector(":scope > div").scrollWidth,c=Math.round(l/d);s.setAttribute("min",1),s.setAttribute("step",c);let m=D(o,c);s.setAttribute("max",m),s.value=1;let u=V(1,m);s.style.setProperty("--percent",u+"%");let g,p="mouseup",h="mousedown";"ontouchstart"in document.documentElement&&(p="touchend",h="touchstart"),n.addEventListener("scroll",function(f){clearTimeout(t),t=setTimeout(function(){let b=n.clientWidth,v=n.scrollWidth,_=n.scrollLeft,y=Math.round(_/v*o)+1,E=a.querySelector(":scope > div").scrollWidth,k=a.querySelector(":scope > div:last-child").offsetLeft,A=n.scrollLeft+b+n.getBoundingClientRect().left>=k+60,w=Math.round(b/E),L=Math.ceil(o/w)*w-o;s.setAttribute("step",w),L>0&&A&&(y=Math.floor(o/w)*w+1),Array.from(e.querySelectorAll(".carousel__controls button")).forEach((q,$)=>{q.removeAttribute("aria-current")}),e.querySelector(".control-"+y).setAttribute("aria-current",!0),y==1?e.querySelector(".btn-prev").setAttribute("disabled","disabled"):e.querySelector(".btn-prev").removeAttribute("disabled"),y>o-w?e.querySelector(".btn-next").setAttribute("disabled","disabled"):e.querySelector(".btn-next").removeAttribute("disabled"),s.value=y,m=D(o,w),s.setAttribute("max",m),u=y/m*100,u=V(y,m),s.style.setProperty("--percent",u+"%")},100)},!1),i.addEventListener("click",function(f){for(var b=f.target;b&&b!=this;b=b.parentNode)if(typeof b.matches=="function"&&b.matches("button")){f.preventDefault(),Array.from(i.querySelectorAll("button")).forEach((y,E)=>{y.removeAttribute("aria-current")}),b.setAttribute("aria-current",!0);const v=new CustomEvent("pip-clicked",{detail:{slide:b.getAttribute("data-slide")}});a.dispatchEvent(v);const _=a.querySelector(`:scope > *:nth-child(${b.getAttribute("data-slide")})`);n.scroll({top:0,left:_.offsetLeft-n.getBoundingClientRect().left,behavior:"smooth"});break}},!1),e.addEventListener("click",function(f){let b=n.clientWidth;n.scrollWidth;let v=a.querySelector(":scope > div").scrollWidth,_=Math.round(b/v),y=a.querySelector(":scope > div:last-child").offsetLeft,E=n.scrollLeft+b+n.getBoundingClientRect().left>=y+60,k=Math.ceil(o/_)*_-o,A=_-k,w=E&&k>0?A*v:n.clientWidth;for(var L=f.target;L&&L!=this;L=L.parentNode)if(typeof L.matches=="function"&&L.matches(".btn-next, .btn-prev")){let q=L.matches(".btn-next")?"next":"prev";const $=new CustomEvent(`${q}-clicked`,{detail:{slide:L.getAttribute("data-go")}});a.dispatchEvent($),f.preventDefault();let T=L.classList.contains("btn-prev")?n.scrollLeft-w:n.scrollLeft+n.clientWidth;n.scroll({top:0,left:T,behavior:"smooth"});break}},!1),s.addEventListener(h,function(f){clearInterval(g),g=setInterval(function(){l=n.clientWidth,d=a.querySelector(":scope > div").scrollWidth,c=Math.round(l/d),s.setAttribute("step",c),m=D(o,c),s.setAttribute("max",m),u=V(s.value,m),s.style.setProperty("--percent",u+"%")},10)}),s.addEventListener(p,function(f){clearInterval(g)}),s.addEventListener("change",function(f){clearInterval(g);let b=a.querySelector(`:scope > *:nth-child(${s.value})`);n.scroll({top:0,left:b?b.offsetLeft-n.getBoundingClientRect().left:0,behavior:"smooth"}),b.matches(".btn-next");const v=new CustomEvent("slider-changed",{detail:{slide:s.value}});a.dispatchEvent(v)},!1)},No=a=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:a})},jo=(a,t,e)=>(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementAdded",element:t}),e.forEach(n=>{a.addEventListener(n,function(i){let s={event:n,element:t,target:i.target};Object.keys(i.detail).forEach(o=>{const l=i.detail[o];s[o]=l}),window.dataLayer.push(s)})}),!0);No("iam-carousel");class Fo extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}),document.body.hasAttribute("data-assets-location")&&document.body.getAttribute("data-assets-location");const t=document.createElement("template");t.innerHTML=`
|
|
212
212
|
<style>
|
|
@@ -238,7 +238,7 @@
|
|
|
238
238
|
|
|
239
239
|
</div>
|
|
240
240
|
`,this.shadowRoot.appendChild(t.content.cloneNode(!0))}connectedCallback(){const t=this;this.shadowRoot.querySelector(".carousel"),this.shadowRoot.querySelector(".row");let e=[];const n=this.shadowRoot.querySelector(".carousel__controls");t.querySelector("[data-thumbnail]")&&(e=Ho(t),t.classList.add("thumbnails")),n.innerHTML=Bo(t,e),Array.from(t.querySelectorAll(":scope > div > img:first-child:last-child, :scope > div > picture:first-child:last-child img")).forEach((i,s)=>{i.style.inset="0 0.5rem 0 0.5rem",i.style.position="absolute",i.style.width="calc(100% - 1rem)",i.style.height="100%",i.style["object-fit"]="cover",i.closest("div").classList.add("image__wrapper")}),Ro(t),jo(t,"iam-carousel",["pip-clicked","next-clicked","prev-clicked","slider-changed"])}attributeChangedCallback(t,e,n){}}const Do=Object.freeze(Object.defineProperty({__proto__:null,default:Fo},Symbol.toStringTag,{value:"Module"}));/*!
|
|
241
|
-
* iamKey
|
|
241
|
+
* iamKey v7.0.0
|
|
242
242
|
* Copyright 2022-2025 iamproperty
|
|
243
243
|
*/window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"header"});class Vo extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const t=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",e=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):`${t}/css/core.min.css`,n=document.createElement("template");n.innerHTML=`
|
|
244
244
|
<style>
|
|
@@ -256,7 +256,7 @@
|
|
|
256
256
|
</div>
|
|
257
257
|
</div>
|
|
258
258
|
`,this.shadowRoot.appendChild(n.content.cloneNode(!0))}connectedCallback(){this.classList.add("bg-primary");const t=this.shadowRoot.querySelector("picture"),e=this.shadowRoot.querySelector("picture img");this.hasAttribute("image")?e.setAttribute("src",this.getAttribute("image")):t.remove()}}const Po=Object.freeze(Object.defineProperty({__proto__:null,default:Vo},Symbol.toStringTag,{value:"Module"}));/*!
|
|
259
|
-
* iamKey
|
|
259
|
+
* iamKey v7.0.0
|
|
260
260
|
* Copyright 2022-2025 iamproperty
|
|
261
261
|
*/window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"nav"});const Oo=Object.freeze(Object.defineProperty({__proto__:null,default:class extends HTMLElement{constructor(){super();const t=this.attachShadow({mode:"open"}),e=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",n=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):`${e}/css/core.min.css`,i=document.createElement("template");i.innerHTML=`
|
|
262
262
|
<style class="styles">
|
|
@@ -305,7 +305,7 @@
|
|
|
305
305
|
</div>
|
|
306
306
|
</div>
|
|
307
307
|
</dialog>`);let l=this.shadowRoot.querySelector("#search-button"),d=this.shadowRoot.querySelector("#search-close"),c=this.shadowRoot.querySelector("#search-dialog");this.hasAttribute("data-search-open")&&(c.setAttribute("open","open"),this.classList.add("search-open"),l.setAttribute("aria-expanded",!0)),l.addEventListener("click",m=>{c.setAttribute("open","open"),this.classList.add("search-open"),l.setAttribute("aria-expanded",!0)}),d.addEventListener("click",m=>{c.removeAttribute("open"),this.classList.remove("search-open"),l.removeAttribute("aria-expanded")})}}}},Symbol.toStringTag,{value:"Module"}));/*!
|
|
308
|
-
* iamKey
|
|
308
|
+
* iamKey v7.0.0
|
|
309
309
|
* Copyright 2022-2025 iamproperty
|
|
310
310
|
*/const Io=(a,t,e,n)=>{const i=Math.tan(.375*Math.PI);let s=window.innerWidth||document.body.clientWidth,o=Math.max(1,Math.floor(.01*s)),l=e-a,d=n-t,c=Math.abs(l/d),m=Math.abs(d/l);if(Math.abs(l)>o||Math.abs(d)>o){if(m<=i)return l<0?"left":"right";if(c<=i)return d<0?"top":"bottom"}else return"tap"},Uo=function(a){a.querySelectorAll(":scope > details");const t=a.querySelectorAll(":scope > details, :scope > a");a.querySelectorAll(":scope > details > summary");let e=a.querySelector(":scope > .tabs__links");if(a.shadowRoot&&a.shadowRoot.querySelector(".tabs__links")&&(e=a.shadowRoot.querySelector(".tabs__links")),!e){e=document.createElement("div"),e.classList.add("tabs__links");let i=document.createElement("div");i.classList.add("tabs__links__wrapper"),i.prepend(e),a.prepend(i)}let n=0;t.forEach((i,s)=>{let o=document.createElement("button");if(i.matches("details")){let l=i.querySelector(":scope > summary"),d=l.classList.contains("disabled");l.classList.add("visually-hidden"),i.hasAttribute("id")&&o.setAttribute("data-id",`${i.getAttribute("id")}`),i.hasAttribute("open")&&o.setAttribute("aria-pressed",!0),o.innerHTML=`${l.innerText}`,o.classList.add("link"),o.setAttribute("data-index",n),i.setAttribute("tabindex","-1"),d&&o.classList.add("disabled"),n++}else i.matches("a")&&(o=i);o.classList.add("link"),e.appendChild(o)})},Wo=function(a){let t=a.querySelectorAll(":scope > details"),e=a.querySelectorAll(":scope > details > summary"),n=a.querySelector(":scope .tabs__links"),i=a.querySelectorAll(":scope .tabs__links > button"),s=a.querySelector(":scope .tabs__next");var o;let l=!1,d=!1;if(a.shadowRoot&&(i=a.shadowRoot.querySelectorAll(".tabs__links > button"),n=a.shadowRoot.querySelector(".tabs__links"),s=a.shadowRoot.querySelector(":scope .tabs__next")),n.addEventListener("scroll",function(p){if(d)return d=!1,!1;clearTimeout(o);let h=i[0];o=setTimeout(function(){let f=Math.abs(h.getBoundingClientRect().left);i.forEach(b=>{Math.abs(b.getBoundingClientRect().left)<f&&(f=Math.abs(b.getBoundingClientRect().left),h=b)}),l=!0,h.click(),h.focus()},100)},!1),i.forEach(p=>{p.addEventListener("click",h=>{if(h.preventDefault(),d=!0,p.classList.contains("disabled"))return!1;i.forEach(f=>{let b=f==p;f.setAttribute("aria-pressed",b)}),l||n.scroll({top:0,left:p.offsetLeft,behavior:"smooth"}),l=!1,t.forEach((f,b)=>{let v=p.getAttribute("data-index")==b;v?f.setAttribute("open",v):f.removeAttribute("open")}),p.matches(":last-child")?s.setAttribute("disabled","disabled"):s.removeAttribute("disabled"),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"openTab",tabTitle:p.textContent})})}),e.forEach((p,h)=>{p.addEventListener("click",f=>{f.preventDefault(),i[h].click()})}),s.addEventListener("click",p=>{p.preventDefault();let h=n.querySelector('[aria-pressed="true"]').nextSibling;h&&h.click()}),a.classList.contains("tabs--guided")){var c=0,m=0,u=0,g=0;t.forEach(p=>{p.addEventListener("touchstart",h=>{h.stopPropagation(),c=h.changedTouches[0].screenX,m=h.changedTouches[0].screenY}),p.addEventListener("touchend",h=>{h.stopPropagation(),u=h.changedTouches[0].screenX,g=h.changedTouches[0].screenY;let f=Io(c,m,u,g),b=n.querySelector('[aria-pressed="true"]');switch(f){case"left":let v=b.nextSibling;v&&v.click();break;case"right":let _=b.previousSibling;_&&_.click();break}})})}},Go=function(a){if(!a.querySelector(":scope > details"))return!1;let t=a.querySelectorAll(":scope > details"),e=a.shadowRoot.querySelectorAll(".tabs__links > button");location.hash&&a.shadowRoot.querySelector(`.tabs__links [data-id="${location.hash.replace("#","")}"]`)?(a.shadowRoot.querySelector(`[data-id="${location.hash.replace("#","")}"]`).setAttribute("aria-pressed",!0),a.querySelector(`details[id="${location.hash.replace("#","")}"]`).setAttribute("open",!0)):a.querySelector("details[open]")||(t[0].setAttribute("open",!0),e[0].setAttribute("aria-pressed",!0))},Xo=function(a){Uo(a),Wo(a),Go(a)};window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"tabs"});class Yo extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const t=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",e=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):`${t}/css/core.min.css`,n=document.createElement("template");n.innerHTML=`
|
|
311
311
|
<style>
|
|
@@ -336,7 +336,7 @@
|
|
|
336
336
|
<div class="applied-filters ${i}"></div>
|
|
337
337
|
<slot></slot>
|
|
338
338
|
`,this.shadowRoot.appendChild(s.content.cloneNode(!0))}connectedCallback(){Jo(this,this.shadowRoot.querySelector(".applied-filters"))}}const Zo=Object.freeze(Object.defineProperty({__proto__:null,default:Qo},Symbol.toStringTag,{value:"Module"}));/*!
|
|
339
|
-
* iamKey
|
|
339
|
+
* iamKey v7.0.0
|
|
340
340
|
* Copyright 2022-2025 iamproperty
|
|
341
341
|
*/const tr=a=>(Array.from(a.querySelectorAll("dialog[open]")).forEach((t,e)=>{t.closest(".dialog__wrapper")||(t.removeAttribute("open"),t.showModal(),t.focus(),Z(t))}),a.addEventListener("click",t=>{if(t.target.tagName=="IAM-ACTIONBAR")return!1;if(t&&t.target instanceof HTMLElement&&t.target.closest("[data-modal]")){const i=t.target.closest("[data-modal]"),s=i.hasAttribute("data-modal")?i.getAttribute("data-modal"):i.getAttribute("data-filter"),o=document.querySelector(`dialog#${s}`);if(Z(o),o.showModal(),o.focus(),!o.querySelector("iam-multi-step")){let l=o.offsetWidth;o.setAttribute("style",`max-width: ${l}px;`)}Array.from(o.querySelectorAll("[data-duplicate]")).forEach((l,d)=>{const c=l.getAttribute("data-duplicate"),m=document.getElementById(c);if(l.checked!=m.checked){l.checked=m.checked;let u=new Event("change");l.dispatchEvent(u)}}),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"openModal",id:s})}if(t&&t.target instanceof HTMLElement&&t.target.closest("button.dialog__close")){const i=t.target.closest("dialog[open]");t.preventDefault(),i.close(),Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach((o,l)=>{o.classList.remove("active")});let s=new CustomEvent("dialog-closed",{bubbles:!0,cancelable:!0,detail:{modalId:i.id}});t.target.dispatchEvent(s),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"closeModal",id:i.getAttribute("id")})}if(t&&t.target instanceof HTMLElement&&t.target.closest('button[formmethod="dialog"]')){const i=t.target.closest("dialog[open]");Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach((s,o)=>{s.classList.remove("active")}),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"closeModal",id:i.getAttribute("id")})}if(t&&t.target instanceof HTMLElement&&t.target.closest("dialog[open]")){let i=t.target.closest("dialog[open]");var e=window.getComputedStyle(i);if(e.display==="contents"&&(i=i.parentNode.closest("dialog[open]")),!i.classList.contains("dialog--transactional")&&!i.classList.contains("dialog--acknowledgement")){const s=i.getBoundingClientRect();(t.clientX<s.left||t.clientX>s.right||t.clientY<s.top||t.clientY>s.bottom)&&(t.target.closest("dialog *")||i.close(),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"closeModal",id:i.getAttribute("id")}))}}if(t&&t.target instanceof HTMLElement&&t.target.closest(".dialog__wrapper > button")){t.stopPropagation();let i=t.target.closest(".dialog__wrapper > button"),s=i.parentNode,o="openPopover",l=s.querySelector(":scope > dialog");if(document.querySelector("*:not([data-keep-open]) > dialog[open]")&&document.querySelector("*:not([data-keep-open]) > dialog[open]")!=l&&i.closest("dialog[open]")!=document.querySelector("*:not([data-keep-open]) > dialog[open]")&&document.querySelector("*:not([data-keep-open]) > dialog[open]").close(),Array.from(document.querySelectorAll(".dialog__wrapper > button")).forEach((u,g)=>{u.removeAttribute("aria-expanded")}),l.hasAttribute("open"))l.close(),o="closePopover",l.removeAttribute("style"),i.removeAttribute("aria-expanded");else{l.show(),i.setAttribute("aria-expanded",!0);var n=i.getBoundingClientRect();let u=n.top,g=n.left;if(i.closest("iam-table")){let p=i.closest("iam-table").parentNode.getBoundingClientRect();u-=p.top,g-=p.left}l.classList.contains("dialog--fix")&&l.setAttribute("style",`position:fixed;top: ${u}px; left: ${g}px; margin: 3rem 0 0 0;`)}let d=l.getBoundingClientRect(),c=d.bottom-window.scrollY,m=window.innerHeight-window.scrollY;if(c>m){let u=l.hasAttribute("style")?l.getAttribute("style")+" ":"";l.setAttribute("style",u+"transform: translate(0, calc(-100% - 4rem))"),d=l.getBoundingClientRect(),d.top-window.scrollY<100&&l.removeAttribute("style")}window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:o,id:i.textContent})}t&&t.target instanceof HTMLElement&&!t.target.closest("dialog[open]")&&!t.target.closest(".dialog__wrapper > button")&&(document.querySelector(".dialog__wrapper:not([data-keep-open]) > dialog[open]")&&document.querySelector(".dialog__wrapper:not([data-keep-open]) > dialog[open]").close(),Array.from(document.querySelectorAll(".dialog__wrapper:not([data-keep-open]) > button")).forEach((i,s)=>{i.removeAttribute("aria-expanded")}))}),null),Z=a=>{if(!a.querySelector(":scope .mh-lg")&&!a.querySelector("iam-multi-step")){a.innerHTML=`<div class="mh-lg">${a.innerHTML}</div>`;let t=a.querySelector(".mh-lg"),e=a.querySelector(".mh-lg :is(.h1,.h2,.h3,.h4,.h5,.h6)");if(e){let n=e.previousSibling;t.before(e),n&&e.before(n)}}a.querySelector(":scope > button:first-child")||a.insertAdjacentHTML("afterbegin",'<button class="dialog__close">Close</button>')};window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"customElementRegistered",element:"action bar"});function tt(a,t){a&&t=="all"?(a.querySelector("input").indeterminate=!1,a.querySelector("input").checked=!0,a.querySelector("label").textContent="Select all"):a&&t==0?(a.querySelector("input").indeterminate=!1,a.querySelector("input").checked=!1,a.querySelector("label").textContent="Select all"):a&&t?(a.querySelector("input").indeterminate=!0,a.querySelector("input").checked=!1,a.querySelector("label").textContent=`${t} item${t>1?"s":""} selected`):a&&(a.querySelector("input").checked=!1,a.querySelector("input").indeterminate=!1,a.querySelector("label").textContent="Select all")}class er extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const t=document.body.hasAttribute("data-assets-location")?document.body.getAttribute("data-assets-location"):"/assets",e=document.body.hasAttribute("data-core-css")?document.body.getAttribute("data-core-css"):`${t}/css/core.min.css`,n=document.createElement("template");n.innerHTML=`
|
|
342
342
|
<style>
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"name": "iamproperty"
|
|
6
6
|
},
|
|
7
7
|
"private": false,
|
|
8
|
-
"version": "
|
|
8
|
+
"version": "7.0.0",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"temp": "rollup --environment COMPONENT:carousel --config rollup-component.config.js --sourcemap",
|
|
11
11
|
"bootstrap": "copyfiles -u 2 node_modules/bootstrap/**/* assets/bootstrap",
|