@iamproperty/components 5.2.0 → 5.3.0-beta1
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/components/card.css +1 -1
- package/assets/css/components/card.css.map +1 -1
- package/assets/js/components/accordion/accordion.component.min.js +2 -2
- package/assets/js/components/actionbar/actionbar.component.min.js +2 -2
- package/assets/js/components/address-lookup/address-lookup.component.min.js +2 -2
- package/assets/js/components/applied-filters/applied-filters.component.min.js +2 -2
- package/assets/js/components/card/card.component.js +12 -2
- package/assets/js/components/card/card.component.min.js +9 -8
- package/assets/js/components/card/card.component.min.js.map +1 -1
- package/assets/js/components/collapsible-side/collapsible-side.component.min.js +2 -2
- package/assets/js/components/fileupload/fileupload.component.min.js +2 -2
- package/assets/js/components/filterlist/filterlist.component.min.js +2 -2
- package/assets/js/components/header/header.component.min.js +2 -2
- package/assets/js/components/nav/nav.component.min.js +2 -2
- package/assets/js/components/notification/notification.component.min.js +2 -2
- package/assets/js/components/pagination/pagination.component.min.js +2 -2
- package/assets/js/components/search/search.component.min.js +2 -2
- package/assets/js/components/table/table.component.min.js +2 -2
- package/assets/js/components/tabs/tabs.component.min.js +2 -2
- package/assets/js/dynamic.min.js +2 -2
- package/assets/js/scripts.bundle.js +12 -11
- package/assets/js/scripts.bundle.js.map +1 -1
- package/assets/js/scripts.bundle.min.js +3 -3
- package/assets/js/scripts.bundle.min.js.map +1 -1
- package/assets/sass/components/card.scss +54 -3
- package/assets/ts/components/card/card.component.ts +16 -2
- package/dist/components.es.js +16 -16
- package/dist/components.umd.js +38 -36
- package/package.json +1 -1
|
@@ -122,6 +122,14 @@
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
.card__total {
|
|
128
|
+
font-size: rem(48);
|
|
129
|
+
line-height: rem(48);
|
|
130
|
+
padding-right: rem(16);
|
|
131
|
+
margin-top: 0.5rem;
|
|
132
|
+
}
|
|
125
133
|
}
|
|
126
134
|
|
|
127
135
|
::slotted(i){
|
|
@@ -218,9 +226,8 @@
|
|
|
218
226
|
}
|
|
219
227
|
|
|
220
228
|
.card__total {
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
padding-right: rem(16);
|
|
229
|
+
margin-top: 0;
|
|
230
|
+
order: -1;
|
|
224
231
|
}
|
|
225
232
|
}
|
|
226
233
|
|
|
@@ -319,3 +326,47 @@
|
|
|
319
326
|
}
|
|
320
327
|
}
|
|
321
328
|
// #endregion
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
//#region Dashboard card
|
|
332
|
+
.card--secondary {
|
|
333
|
+
|
|
334
|
+
--card-top-padding: #{rem(16)};
|
|
335
|
+
--card-bottom-padding: #{rem(24)};
|
|
336
|
+
|
|
337
|
+
&:before,
|
|
338
|
+
&:after {
|
|
339
|
+
display: none;
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.card--secondary .btn-compact {
|
|
344
|
+
position: absolute;
|
|
345
|
+
top: 0;
|
|
346
|
+
right: 0;
|
|
347
|
+
margin: 0.5rem 0.5rem 0 0;
|
|
348
|
+
z-index: 99;
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.card--secondary:has(.btn-compact:is(:hover, :focus, :active)) {
|
|
352
|
+
|
|
353
|
+
pointer-events: none;
|
|
354
|
+
outline: none;
|
|
355
|
+
|
|
356
|
+
.card__body {
|
|
357
|
+
background: none;
|
|
358
|
+
border-color: transparent!important;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
.btn-compact {
|
|
362
|
+
pointer-events: all;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.card--secondary ::slotted(i) {
|
|
367
|
+
display: block !important;
|
|
368
|
+
font-size: rem(40)!important;
|
|
369
|
+
margin: 0.5rem 0 0.5rem 0!important;
|
|
370
|
+
line-height: rem(40);
|
|
371
|
+
}
|
|
372
|
+
// #endregion
|
|
@@ -31,15 +31,16 @@ class iamCard extends HTMLElement {
|
|
|
31
31
|
${loadCSS}
|
|
32
32
|
${this.hasAttribute('css') ? `@import "${this.getAttribute('css')}";` : ``}
|
|
33
33
|
</style>
|
|
34
|
+
<link rel="stylesheet" href="https://kit.fontawesome.com/26fdbf0179.css" crossorigin="anonymous">
|
|
34
35
|
<div class="card ${classList}" tabindex="0" role="button">
|
|
35
36
|
${this.hasAttribute('data-image') ? `<div class="card__head"><img src="${this.getAttribute('data-image')}" alt="" loading="lazy" /><div class="card__badges"><slot name="badges"></slot></div></div>` : ''}
|
|
36
37
|
<div class="card__body">
|
|
37
38
|
${!this.hasAttribute('data-image') ? `<div class="card__badges"><slot name="badges"></slot></div>` : ''}
|
|
38
|
-
${this.classList.contains('card--filter') && this.hasAttribute('data-total') ? `<div class="card__total">${this.getAttribute('data-total')}</div>` : ''}
|
|
39
39
|
${this.hasAttribute('data-illustration') ? `<div class="card__illustration"><img src="${this.getAttribute('data-illustration')}" alt="" loading="lazy" /></div>` : ''}
|
|
40
40
|
<slot></slot>
|
|
41
|
+
${this.hasAttribute('data-total') ? `<div class="card__total">${this.getAttribute('data-total')}</div>` : ''}
|
|
41
42
|
</div>
|
|
42
|
-
|
|
43
|
+
${this.hasAttribute('data-add-link') ? `<button class="btn btn-compact btn-secondary fa-plus">Add property</button>` : ''}
|
|
43
44
|
<slot name="checkbox"></slot>
|
|
44
45
|
${this.hasAttribute('data-cta') ? `<div class="card__footer"><span class="link">${this.getAttribute('data-cta')}</span></div>` : ''}
|
|
45
46
|
</div>
|
|
@@ -58,6 +59,7 @@ class iamCard extends HTMLElement {
|
|
|
58
59
|
// Mimic clicking the parent node so the focus and target events can be on the card
|
|
59
60
|
const parentNode = this.parentNode.closest('a, button, label')
|
|
60
61
|
const card = this.shadowRoot.querySelector('.card')
|
|
62
|
+
const btnCompact = this.shadowRoot.querySelector('.btn-compact');
|
|
61
63
|
|
|
62
64
|
parentNode.setAttribute('tabindex','-1');
|
|
63
65
|
|
|
@@ -157,6 +159,18 @@ class iamCard extends HTMLElement {
|
|
|
157
159
|
break;
|
|
158
160
|
}
|
|
159
161
|
});
|
|
162
|
+
|
|
163
|
+
if(btnCompact){
|
|
164
|
+
|
|
165
|
+
let addLocation = this.getAttribute('data-add-link');
|
|
166
|
+
|
|
167
|
+
btnCompact.addEventListener('click', (event) => {
|
|
168
|
+
|
|
169
|
+
event.stopPropagation();
|
|
170
|
+
event.preventDefault();
|
|
171
|
+
window.location = addLocation;
|
|
172
|
+
});
|
|
173
|
+
}
|
|
160
174
|
}
|
|
161
175
|
|
|
162
176
|
static get observedAttributes() {
|
package/dist/components.es.js
CHANGED
|
@@ -48,8 +48,8 @@ function vt(e, a, t, i, s, o) {
|
|
|
48
48
|
}
|
|
49
49
|
const Li = /* @__PURE__ */ y(gt, [["render", vt]]);
|
|
50
50
|
/*!
|
|
51
|
-
* iamKey v5.
|
|
52
|
-
* Copyright 2022-
|
|
51
|
+
* iamKey v5.3.0-beta1
|
|
52
|
+
* Copyright 2022-2024 iamproperty
|
|
53
53
|
*/
|
|
54
54
|
const _t = function(e) {
|
|
55
55
|
return typeof e != "string" ? !1 : !isNaN(e) && !isNaN(parseFloat(e));
|
|
@@ -557,8 +557,8 @@ class Mt extends HTMLElement {
|
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
559
|
/*!
|
|
560
|
-
* iamKey v5.
|
|
561
|
-
* Copyright 2022-
|
|
560
|
+
* iamKey v5.3.0-beta1
|
|
561
|
+
* Copyright 2022-2024 iamproperty
|
|
562
562
|
*/
|
|
563
563
|
class ot extends HTMLElement {
|
|
564
564
|
constructor() {
|
|
@@ -1152,7 +1152,7 @@ const be = {
|
|
|
1152
1152
|
props: {},
|
|
1153
1153
|
mounted() {
|
|
1154
1154
|
this.$nextTick(function() {
|
|
1155
|
-
N(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/accordion/accordion.component.js": () => import("./accordion.component-bd9af0d7.mjs"), "../../../assets/js/components/accordion/accordion.component.min.js": () => import("./accordion.component.min-
|
|
1155
|
+
N(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/accordion/accordion.component.js": () => import("./accordion.component-bd9af0d7.mjs"), "../../../assets/js/components/accordion/accordion.component.min.js": () => import("./accordion.component.min-1515894d.mjs") }), "../../../assets/js/components/accordion/accordion.component.js").then((e) => {
|
|
1156
1156
|
window.customElements.get("iam-accordion") || window.customElements.define("iam-accordion", e.default);
|
|
1157
1157
|
}).catch((e) => {
|
|
1158
1158
|
console.log(e.message);
|
|
@@ -1263,7 +1263,7 @@ const Ei = /* @__PURE__ */ y(xe, [["render", Ee]]), Te = {
|
|
|
1263
1263
|
name: "Card",
|
|
1264
1264
|
mounted() {
|
|
1265
1265
|
this.$nextTick(function() {
|
|
1266
|
-
N(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/card/card.component.js": () => import("./card.component-
|
|
1266
|
+
N(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/card/card.component.js": () => import("./card.component-8399b3cb.mjs"), "../../../assets/js/components/card/card.component.min.js": () => import("./card.component.min-def4451e.mjs") }), "../../../assets/js/components/card/card.component.js").then((e) => {
|
|
1267
1267
|
window.customElements.get("iam-card") || window.customElements.define("iam-card", e.default);
|
|
1268
1268
|
}).catch((e) => {
|
|
1269
1269
|
console.log(e.message);
|
|
@@ -1317,7 +1317,7 @@ const Hi = /* @__PURE__ */ y(Me, [["render", je]]), Ce = {
|
|
|
1317
1317
|
},
|
|
1318
1318
|
mounted() {
|
|
1319
1319
|
this.$nextTick(function() {
|
|
1320
|
-
N(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/header/header.component.js": () => import("./header.component-cc8263fb.mjs"), "../../../assets/js/components/header/header.component.min.js": () => import("./header.component.min-
|
|
1320
|
+
N(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/header/header.component.js": () => import("./header.component-cc8263fb.mjs"), "../../../assets/js/components/header/header.component.min.js": () => import("./header.component.min-73a64e36.mjs") }), "../../../assets/js/components/header/header.component.js").then((e) => {
|
|
1321
1321
|
window.customElements.get("iam-header") || window.customElements.define("iam-header", e.default);
|
|
1322
1322
|
}).catch((e) => {
|
|
1323
1323
|
console.log(e.message);
|
|
@@ -1713,7 +1713,7 @@ const Di = /* @__PURE__ */ y(oa, [["render", ya]]), wa = {
|
|
|
1713
1713
|
name: "Nav",
|
|
1714
1714
|
mounted() {
|
|
1715
1715
|
this.$nextTick(function() {
|
|
1716
|
-
N(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/nav/nav.component.js": () => import("./nav.component-ff8d1484.mjs"), "../../../assets/js/components/nav/nav.component.min.js": () => import("./nav.component.min-
|
|
1716
|
+
N(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/nav/nav.component.js": () => import("./nav.component-ff8d1484.mjs"), "../../../assets/js/components/nav/nav.component.min.js": () => import("./nav.component.min-0812bdc7.mjs") }), "../../../assets/js/components/nav/nav.component.js").then((e) => {
|
|
1717
1717
|
window.customElements.get("iam-nav") || window.customElements.define("iam-nav", e.default);
|
|
1718
1718
|
}).catch((e) => {
|
|
1719
1719
|
console.log(e.message);
|
|
@@ -1833,7 +1833,7 @@ const Pa = {
|
|
|
1833
1833
|
name: "Tabs",
|
|
1834
1834
|
mounted() {
|
|
1835
1835
|
this.$nextTick(function() {
|
|
1836
|
-
N(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/tabs/tabs.component.js": () => import("./tabs.component-1dfbdb3b.mjs"), "../../../assets/js/components/tabs/tabs.component.min.js": () => import("./tabs.component.min-
|
|
1836
|
+
N(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/tabs/tabs.component.js": () => import("./tabs.component-1dfbdb3b.mjs"), "../../../assets/js/components/tabs/tabs.component.min.js": () => import("./tabs.component.min-f0407824.mjs") }), "../../../assets/js/components/tabs/tabs.component.js").then((e) => {
|
|
1837
1837
|
window.customElements.get("iam-tabs") || window.customElements.define("iam-tabs", e.default);
|
|
1838
1838
|
}).catch((e) => {
|
|
1839
1839
|
console.log(e.message);
|
|
@@ -1963,8 +1963,8 @@ function Za(e, a, t, i, s, o) {
|
|
|
1963
1963
|
}
|
|
1964
1964
|
const Oi = /* @__PURE__ */ y(Ka, [["render", Za]]);
|
|
1965
1965
|
/*!
|
|
1966
|
-
* iamKey v5.
|
|
1967
|
-
* Copyright 2022-
|
|
1966
|
+
* iamKey v5.3.0-beta1
|
|
1967
|
+
* Copyright 2022-2024 iamproperty
|
|
1968
1968
|
*/
|
|
1969
1969
|
function ti(e, a) {
|
|
1970
1970
|
function t(i, s) {
|
|
@@ -2059,8 +2059,8 @@ function ii(e, a, t, i, s, o) {
|
|
|
2059
2059
|
}
|
|
2060
2060
|
const Bi = /* @__PURE__ */ y(ai, [["render", ii]]);
|
|
2061
2061
|
/*!
|
|
2062
|
-
* iamKey v5.
|
|
2063
|
-
* Copyright 2022-
|
|
2062
|
+
* iamKey v5.3.0-beta1
|
|
2063
|
+
* Copyright 2022-2024 iamproperty
|
|
2064
2064
|
*/
|
|
2065
2065
|
function ni(e, a) {
|
|
2066
2066
|
oi(e, a);
|
|
@@ -2229,7 +2229,7 @@ const Vi = /* @__PURE__ */ y(mi, [["render", hi]]), pi = {
|
|
|
2229
2229
|
props: {},
|
|
2230
2230
|
mounted() {
|
|
2231
2231
|
this.$nextTick(function() {
|
|
2232
|
-
N(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/actionbar/actionbar.component.js": () => import("./actionbar.component-3f2c98c0.mjs"), "../../../assets/js/components/actionbar/actionbar.component.min.js": () => import("./actionbar.component.min-
|
|
2232
|
+
N(/* @__PURE__ */ Object.assign({ "../../../assets/js/components/actionbar/actionbar.component.js": () => import("./actionbar.component-3f2c98c0.mjs"), "../../../assets/js/components/actionbar/actionbar.component.min.js": () => import("./actionbar.component.min-d93c7710.mjs") }), "../../../assets/js/components/actionbar/actionbar.component.js").then((e) => {
|
|
2233
2233
|
window.customElements.get("iam-actionbar") || window.customElements.define("iam-actionbar", e.default);
|
|
2234
2234
|
}).catch((e) => {
|
|
2235
2235
|
console.log(e.message);
|
|
@@ -2276,8 +2276,8 @@ function wi(e, a, t, i, s, o) {
|
|
|
2276
2276
|
}
|
|
2277
2277
|
const Gi = /* @__PURE__ */ y(yi, [["render", wi]]);
|
|
2278
2278
|
/*!
|
|
2279
|
-
* iamKey v5.
|
|
2280
|
-
* Copyright 2022-
|
|
2279
|
+
* iamKey v5.3.0-beta1
|
|
2280
|
+
* Copyright 2022-2024 iamproperty
|
|
2281
2281
|
*/
|
|
2282
2282
|
window.dataLayer = window.dataLayer || [], window.dataLayer.push({ event: "customElementRegistered", element: "collapsible side menu" });
|
|
2283
2283
|
class vi extends HTMLElement {
|