@iamproperty/components 7.2.1 → 7.2.2--beta2
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/fileupload.css +1 -1
- package/assets/css/components/fileupload.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/bento-grid/bento-grid.component.min.js +1 -1
- package/assets/js/components/card/card.component.js +19 -0
- package/assets/js/components/card/card.component.min.js +6 -6
- package/assets/js/components/card/card.component.min.js.map +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/doughnutchart/doughnutchart.component.min.js +1 -1
- package/assets/js/components/fileupload/fileupload.component.js +1 -1
- package/assets/js/components/fileupload/fileupload.component.min.js +4 -4
- package/assets/js/components/fileupload/fileupload.component.min.js.map +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/menu/menu.component.min.js +1 -1
- package/assets/js/components/multi-step/multi-step.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/rank/rank.component.min.js +1 -1
- package/assets/js/components/rankings/rankings.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/table-ajax/table-ajax.component.min.js +1 -1
- package/assets/js/components/table-basic/table-basic.component.min.js +1 -1
- package/assets/js/components/table-no-submit/table-no-submit.component.min.js +1 -1
- package/assets/js/components/table-submit/table-submit.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/modules/fileupload.js +2 -2
- package/assets/js/scripts.bundle.js +1 -1
- package/assets/js/scripts.bundle.min.js +1 -1
- package/assets/sass/components/fileupload.scss +1 -0
- package/assets/ts/components/card/card.component.ts +29 -0
- package/assets/ts/components/fileupload/fileupload.component.ts +1 -1
- package/assets/ts/modules/fileupload.ts +2 -2
- package/dist/components.es.js +18 -18
- package/dist/components.umd.js +88 -88
- package/package.json +1 -1
|
@@ -57,8 +57,37 @@ class iamCard extends HTMLElement {
|
|
|
57
57
|
<slot name="btns"></slot>
|
|
58
58
|
</div>
|
|
59
59
|
</div>`;
|
|
60
|
+
|
|
61
|
+
// safari and firefox anchor fix for cards
|
|
62
|
+
if (!CSS.supports('top', 'anchor(top)')) {
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
const actionButton = this.shadowRoot?.querySelector('[popovertarget="actions"]');
|
|
66
|
+
const actionPopover = this.shadowRoot?.querySelector('[popover]');
|
|
67
|
+
|
|
68
|
+
actionButton?.addEventListener('click', (event) => {
|
|
69
|
+
|
|
70
|
+
this.style.setProperty('overflow', 'visible');
|
|
71
|
+
this.style.setProperty('z-index', '999999');
|
|
72
|
+
|
|
73
|
+
const viewportOffset = actionButton.getBoundingClientRect();
|
|
74
|
+
const top = viewportOffset.top;
|
|
75
|
+
const left = viewportOffset.left;
|
|
76
|
+
|
|
77
|
+
actionPopover.style.setProperty('display', 'block');
|
|
78
|
+
actionPopover.style.setProperty('top', top + 'px');
|
|
79
|
+
actionPopover.style.setProperty('left', (left - 100) + 'px');
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
document.addEventListener("scroll", (event) => {
|
|
83
|
+
|
|
84
|
+
actionPopover.style.setProperty('display', 'none');
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
}
|
|
60
88
|
}
|
|
61
89
|
|
|
90
|
+
|
|
62
91
|
// Make sure slotted buttons and links have correct button classes
|
|
63
92
|
Array.from(cardComponent.querySelectorAll('[slot="btns"]')).forEach((button) => {
|
|
64
93
|
button.classList.add('btn');
|
|
@@ -66,7 +66,7 @@ class iamFileupload extends HTMLElement {
|
|
|
66
66
|
const filesWrapper = this.shadowRoot.querySelector('.files');
|
|
67
67
|
|
|
68
68
|
if (newVal != null && newVal != 'null' && newVal != '')
|
|
69
|
-
filesWrapper.innerHTML = `<span class="file">${newVal} <button data-file="${newVal}">Remove</button></span>`;
|
|
69
|
+
filesWrapper.innerHTML = `<span class="file" part="file">${newVal} <button data-file="${newVal}" part="file__remove">Remove</button></span>`;
|
|
70
70
|
}
|
|
71
71
|
break;
|
|
72
72
|
}
|
|
@@ -128,7 +128,7 @@ function fileupload(fileupload: Element, wrapper: Element): void {
|
|
|
128
128
|
filesWrapper.innerHTML = '';
|
|
129
129
|
|
|
130
130
|
for (const file of input.files) {
|
|
131
|
-
filesWrapper.innerHTML += `<span class="file" part="file">${file.name} <button data-file="${file.name}">Remove</button></span>`;
|
|
131
|
+
filesWrapper.innerHTML += `<span class="file" part="file">${file.name} <button data-file="${file.name}" part="file__remove">Remove</button></span>`;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
const elementChangeEvent = new CustomEvent('elementchange', { detail: { files: input.files } });
|
|
@@ -144,7 +144,7 @@ function fileupload(fileupload: Element, wrapper: Element): void {
|
|
|
144
144
|
const filename = fileupload.getAttribute('data-filename');
|
|
145
145
|
|
|
146
146
|
if (filename)
|
|
147
|
-
filesWrapper.innerHTML = `<span class="file">${filename} <button data-file="${filename}">Remove</button></span>`;
|
|
147
|
+
filesWrapper.innerHTML = `<span class="file" part="file">${filename} <button data-file="${filename}" part="file__remove">Remove</button></span>`;
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
|
package/dist/components.es.js
CHANGED
|
@@ -382,7 +382,7 @@ const R = /* @__PURE__ */ u(Q, [["render", gt]]), bt = {
|
|
|
382
382
|
props: {},
|
|
383
383
|
mounted() {
|
|
384
384
|
this.$nextTick(function() {
|
|
385
|
-
import("./accordion.component.min-
|
|
385
|
+
import("./accordion.component.min-BwwVokPG.js").then((e) => {
|
|
386
386
|
window.customElements.get("iam-accordion") || window.customElements.define("iam-accordion", e.default);
|
|
387
387
|
}).catch((e) => {
|
|
388
388
|
console.log(e.message);
|
|
@@ -452,7 +452,7 @@ const Qi = /* @__PURE__ */ u(At, [["render", Lt]]), St = {
|
|
|
452
452
|
props: {},
|
|
453
453
|
mounted() {
|
|
454
454
|
this.$nextTick(function() {
|
|
455
|
-
import("./actionbar.component.min-
|
|
455
|
+
import("./actionbar.component.min-D_tNSNAa.js").then((e) => {
|
|
456
456
|
window.customElements.get("iam-actionbar") || window.customElements.define("iam-actionbar", e.default);
|
|
457
457
|
}).catch((e) => {
|
|
458
458
|
console.log(e.message);
|
|
@@ -545,7 +545,7 @@ const Zi = /* @__PURE__ */ u(Ct, [["render", Dt]]), Ft = {
|
|
|
545
545
|
name: "Barchart",
|
|
546
546
|
created() {
|
|
547
547
|
this.$nextTick(function() {
|
|
548
|
-
import("./barchart.component.min-
|
|
548
|
+
import("./barchart.component.min-C3tGfwpn.js").then((e) => {
|
|
549
549
|
window.customElements.get("iam-barchart") || window.customElements.define("iam-barchart", e.default);
|
|
550
550
|
}).catch((e) => {
|
|
551
551
|
console.log(e.message);
|
|
@@ -562,7 +562,7 @@ const ta = /* @__PURE__ */ u(Ft, [["render", zt]]), Bt = { ref: "wrapper" }, ea
|
|
|
562
562
|
__name: "BentoGrid",
|
|
563
563
|
setup(e) {
|
|
564
564
|
return L(() => {
|
|
565
|
-
import("./bento-grid.component.min-
|
|
565
|
+
import("./bento-grid.component.min-PJ5Sw2cN.js").then((i) => {
|
|
566
566
|
window.customElements.get("iam-bento-grid") || window.customElements.define("iam-bento-grid", i.default);
|
|
567
567
|
}).catch((i) => {
|
|
568
568
|
console.log(i.message);
|
|
@@ -575,7 +575,7 @@ const ta = /* @__PURE__ */ u(Ft, [["render", zt]]), Bt = { ref: "wrapper" }, ea
|
|
|
575
575
|
name: "Card",
|
|
576
576
|
created() {
|
|
577
577
|
this.$nextTick(function() {
|
|
578
|
-
import("./card.component.min-
|
|
578
|
+
import("./card.component.min-CvHsSEgW.js").then((e) => {
|
|
579
579
|
window.customElements.get("iam-card") || window.customElements.define("iam-card", e.default);
|
|
580
580
|
}).catch((e) => {
|
|
581
581
|
console.log(e.message);
|
|
@@ -592,7 +592,7 @@ const ia = /* @__PURE__ */ u(Ot, [["render", Ut]]), Wt = {
|
|
|
592
592
|
name: "Header",
|
|
593
593
|
mounted() {
|
|
594
594
|
this.$nextTick(function() {
|
|
595
|
-
import("./carousel.component.min-
|
|
595
|
+
import("./carousel.component.min-CfrGKzmB.js").then((e) => {
|
|
596
596
|
window.customElements.get("iam-carousel") || window.customElements.define("iam-carousel", e.default);
|
|
597
597
|
}).catch((e) => {
|
|
598
598
|
console.log(e.message);
|
|
@@ -685,7 +685,7 @@ const na = /* @__PURE__ */ u(Qt, [["render", Yt]]), Jt = {
|
|
|
685
685
|
},
|
|
686
686
|
created() {
|
|
687
687
|
this.$nextTick(function() {
|
|
688
|
-
import("./fileupload.component.min-
|
|
688
|
+
import("./fileupload.component.min-B8qXjoWV.js").then((e) => {
|
|
689
689
|
window.customElements.get("iam-fileupload") || window.customElements.define("iam-fileupload", e.default);
|
|
690
690
|
}).catch((e) => {
|
|
691
691
|
console.log(e.message);
|
|
@@ -715,7 +715,7 @@ const na = /* @__PURE__ */ u(Qt, [["render", Yt]]), Jt = {
|
|
|
715
715
|
name: "Card",
|
|
716
716
|
created() {
|
|
717
717
|
this.$nextTick(function() {
|
|
718
|
-
import("./filter-card.component.min-
|
|
718
|
+
import("./filter-card.component.min-DDPqKkJW.js").then((e) => {
|
|
719
719
|
window.customElements.get("iam-filter-card") || window.customElements.define("iam-filter-card", e.default);
|
|
720
720
|
}).catch((e) => {
|
|
721
721
|
console.log(e.message);
|
|
@@ -730,7 +730,7 @@ function Zt(e, i, t, n, s, a) {
|
|
|
730
730
|
}
|
|
731
731
|
const oa = /* @__PURE__ */ u(Xt, [["render", Zt]]);
|
|
732
732
|
/*!
|
|
733
|
-
* iamKey v7.2.
|
|
733
|
+
* iamKey v7.2.2--beta2
|
|
734
734
|
* Copyright 2022-2025 iamproperty
|
|
735
735
|
*/
|
|
736
736
|
function te(e, i) {
|
|
@@ -814,7 +814,7 @@ const ra = /* @__PURE__ */ u(ae, [["render", ne]]), se = {
|
|
|
814
814
|
},
|
|
815
815
|
mounted() {
|
|
816
816
|
this.$nextTick(function() {
|
|
817
|
-
import("./header.component.min-
|
|
817
|
+
import("./header.component.min-BZX2ZoiZ.js").then((e) => {
|
|
818
818
|
window.customElements.get("iam-header") || window.customElements.define("iam-header", e.default);
|
|
819
819
|
}).catch((e) => {
|
|
820
820
|
console.log(e.message);
|
|
@@ -865,7 +865,7 @@ const la = /* @__PURE__ */ u(se, [["render", le]]), ce = {
|
|
|
865
865
|
name: "Multiselect",
|
|
866
866
|
mounted() {
|
|
867
867
|
this.$nextTick(function() {
|
|
868
|
-
import("./multiselect.component.min-
|
|
868
|
+
import("./multiselect.component.min-rt55cqlJ.js").then((e) => {
|
|
869
869
|
window.customElements.get("iam-multiselect") || window.customElements.define("iam-multiselect", e.default);
|
|
870
870
|
}).catch((e) => {
|
|
871
871
|
console.log(e.message);
|
|
@@ -913,7 +913,7 @@ const ua = /* @__PURE__ */ u(ue, [["render", he]]), fe = {
|
|
|
913
913
|
name: "Nav",
|
|
914
914
|
mounted() {
|
|
915
915
|
this.$nextTick(function() {
|
|
916
|
-
import("./nav.component.min-
|
|
916
|
+
import("./nav.component.min-DPo7kA0d.js").then((e) => {
|
|
917
917
|
window.customElements.get("iam-nav") || window.customElements.define("iam-nav", e.default);
|
|
918
918
|
}).catch((e) => {
|
|
919
919
|
console.log(e.message);
|
|
@@ -946,7 +946,7 @@ const pa = /* @__PURE__ */ u(fe, [["render", be]]), ye = {
|
|
|
946
946
|
},
|
|
947
947
|
created() {
|
|
948
948
|
this.$nextTick(function() {
|
|
949
|
-
import("./table.component.min-
|
|
949
|
+
import("./table.component.min-BxT7sNsr.js").then((e) => {
|
|
950
950
|
window.customElements.get("iam-table") || window.customElements.define("iam-table", e.default);
|
|
951
951
|
}).catch((e) => {
|
|
952
952
|
console.log(e.message);
|
|
@@ -1164,7 +1164,7 @@ function Ne(e, i, t, n, s, a) {
|
|
|
1164
1164
|
}
|
|
1165
1165
|
const fa = /* @__PURE__ */ u(Ce, [["render", Ne]]);
|
|
1166
1166
|
/*!
|
|
1167
|
-
* iamKey v7.2.
|
|
1167
|
+
* iamKey v7.2.2--beta2
|
|
1168
1168
|
* Copyright 2022-2025 iamproperty
|
|
1169
1169
|
*/
|
|
1170
1170
|
class I extends HTMLElement {
|
|
@@ -1537,7 +1537,7 @@ const ba = /* @__PURE__ */ u(Ie, [["render", Ke]]), Qe = {
|
|
|
1537
1537
|
name: "Card",
|
|
1538
1538
|
created() {
|
|
1539
1539
|
this.$nextTick(function() {
|
|
1540
|
-
import("./record-card.component.min-
|
|
1540
|
+
import("./record-card.component.min-CLabRJU8.js").then((e) => {
|
|
1541
1541
|
window.customElements.get("iam-record-card") || window.customElements.define("iam-record-card", e.default);
|
|
1542
1542
|
}).catch((e) => {
|
|
1543
1543
|
console.log(e.message);
|
|
@@ -1571,7 +1571,7 @@ const _a = /* @__PURE__ */ u(Je, [["render", Xe]]), Ze = {
|
|
|
1571
1571
|
name: "Slider",
|
|
1572
1572
|
mounted() {
|
|
1573
1573
|
this.$nextTick(function() {
|
|
1574
|
-
import("./slider.component.min-
|
|
1574
|
+
import("./slider.component.min-B-U6uHO1.js").then((e) => {
|
|
1575
1575
|
window.customElements.get("iam-slider") || window.customElements.define("iam-slider", e.default);
|
|
1576
1576
|
}).catch((e) => {
|
|
1577
1577
|
console.log(e.message);
|
|
@@ -1687,7 +1687,7 @@ const ka = /* @__PURE__ */ u(fi, [["render", yi]]), _i = {
|
|
|
1687
1687
|
name: "Tabs",
|
|
1688
1688
|
created() {
|
|
1689
1689
|
this.$nextTick(function() {
|
|
1690
|
-
import("./tabs.component.min-
|
|
1690
|
+
import("./tabs.component.min-Cf-gwDcj.js").then((e) => {
|
|
1691
1691
|
window.customElements.get("iam-tabs") || window.customElements.define("iam-tabs", e.default);
|
|
1692
1692
|
}).catch((e) => {
|
|
1693
1693
|
console.log(e.message);
|
|
@@ -1869,7 +1869,7 @@ const Sa = /* @__PURE__ */ u(Vi, [["render", Bi]]), Oi = {
|
|
|
1869
1869
|
name: "Video card",
|
|
1870
1870
|
created() {
|
|
1871
1871
|
this.$nextTick(function() {
|
|
1872
|
-
import("./video-card.component.min-
|
|
1872
|
+
import("./video-card.component.min-n3Oq-45b.js").then((e) => {
|
|
1873
1873
|
window.customElements.get("iam-video-card") || window.customElements.define("iam-video-card", e.default);
|
|
1874
1874
|
}).catch((e) => {
|
|
1875
1875
|
console.log(e.message);
|