@iamproperty/components 3.7.2 → 3.7.3
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/dialog.css +1 -1
- package/assets/css/components/dialog.css.map +1 -1
- package/assets/css/components/pagination.css +1 -1
- package/assets/css/components/pagination.css.map +1 -1
- package/assets/css/components/table.css +1 -1
- package/assets/css/components/table.css.map +1 -1
- 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/applied-filters/applied-filters.component.min.js +14 -0
- package/assets/js/components/applied-filters/applied-filters.component.min.js.map +1 -0
- package/assets/js/components/card/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/pagination/pagination.component.min.js +18 -0
- package/assets/js/components/pagination/pagination.component.min.js.map +1 -0
- package/assets/js/components/table/table.component.js +1 -0
- package/assets/js/components/table/table.component.min.js +13 -13
- package/assets/js/components/table/table.component.min.js.map +1 -1
- package/assets/js/components/tabs/tabs.component.min.js +1 -1
- package/assets/js/dynamic.min.js +1 -1
- package/assets/js/modules/table.js +10 -4
- package/assets/js/scripts.bundle.js +3 -3
- package/assets/js/scripts.bundle.js.map +1 -1
- package/assets/js/scripts.bundle.min.js +2 -2
- package/assets/js/scripts.bundle.min.js.map +1 -1
- package/assets/sass/components/dialog.scss +11 -0
- package/assets/sass/components/pagination.scss +2 -1
- package/assets/sass/components/table.scss +6 -4
- package/assets/ts/components/table/table.component.ts +1 -0
- package/assets/ts/modules/table.ts +13 -5
- package/dist/components.es.js +301 -296
- package/dist/components.umd.js +3 -3
- package/package.json +1 -1
|
@@ -510,6 +510,17 @@ dialog::backdrop {
|
|
|
510
510
|
}
|
|
511
511
|
|
|
512
512
|
// Show hide the indidual or multiple label
|
|
513
|
+
.dialog__wrapper :is(.empty, .individual) {
|
|
514
|
+
display: none;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
@supports selector(:has(*)) {
|
|
518
|
+
|
|
519
|
+
.dialog__wrapper :is(.empty, .individual) {
|
|
520
|
+
display: inline;
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
|
|
513
524
|
.dialog__wrapper:has(input:checked) .empty,
|
|
514
525
|
.dialog__wrapper:not(:has(input:checked)) .individual,
|
|
515
526
|
.dialog__wrapper:has(input:checked ~ input:checked) .individual,
|
|
@@ -76,6 +76,7 @@
|
|
|
76
76
|
|
|
77
77
|
.page-item {
|
|
78
78
|
display: none;
|
|
79
|
+
overflow: visible;
|
|
79
80
|
}
|
|
80
81
|
|
|
81
82
|
.page-item:is(:first-child, :last-child, :nth-child(2), :nth-last-child(2)) {
|
|
@@ -122,7 +123,7 @@
|
|
|
122
123
|
|
|
123
124
|
&:after {
|
|
124
125
|
left: auto;
|
|
125
|
-
right: calc(100% + #{rem(4)} +
|
|
126
|
+
right: calc(100% + #{rem(4)} + 1px);
|
|
126
127
|
}
|
|
127
128
|
}
|
|
128
129
|
|
|
@@ -100,7 +100,7 @@ tbody tr {
|
|
|
100
100
|
|
|
101
101
|
th,td {
|
|
102
102
|
background: var(--hover-background);
|
|
103
|
-
color: var(--colour-primary-theme);
|
|
103
|
+
//color: var(--colour-primary-theme);
|
|
104
104
|
--colour-link: var(--colour-primary-theme);
|
|
105
105
|
--colour-hover: var(--colour-primary-theme);
|
|
106
106
|
}
|
|
@@ -126,6 +126,7 @@ table.border-0 {
|
|
|
126
126
|
box-shadow: 0px 6px 12px rgba(0,0,0,0.11);
|
|
127
127
|
border-radius: rem(8);
|
|
128
128
|
margin-bottom: rem(32);
|
|
129
|
+
overflow: hidden;
|
|
129
130
|
|
|
130
131
|
&:before {
|
|
131
132
|
display: none!important;
|
|
@@ -249,7 +250,7 @@ table.border-0 {
|
|
|
249
250
|
top: 2.5rem;
|
|
250
251
|
}
|
|
251
252
|
|
|
252
|
-
tbody tr
|
|
253
|
+
tbody tr td:not(:first-child) {
|
|
253
254
|
border-top: var(--border-width) solid currentColor!important;
|
|
254
255
|
border-color: var(--colour-border)!important;
|
|
255
256
|
}
|
|
@@ -334,7 +335,7 @@ table.border-0 {
|
|
|
334
335
|
// #endregion
|
|
335
336
|
|
|
336
337
|
// #region CTA column
|
|
337
|
-
@
|
|
338
|
+
@container (width > 23.4375em) {
|
|
338
339
|
|
|
339
340
|
:is(iam-table) {
|
|
340
341
|
|
|
@@ -369,7 +370,7 @@ table.border-0 {
|
|
|
369
370
|
top: auto;
|
|
370
371
|
z-index: 3;
|
|
371
372
|
background: transparent;
|
|
372
|
-
width: calc(var(--cta-width) +
|
|
373
|
+
width: calc(var(--cta-width) + 1rem);
|
|
373
374
|
padding-left: rem(40);
|
|
374
375
|
margin-left: rem(-40);
|
|
375
376
|
min-height: var(--row-height);
|
|
@@ -388,6 +389,7 @@ table.border-0 {
|
|
|
388
389
|
|
|
389
390
|
a {
|
|
390
391
|
white-space: nowrap;
|
|
392
|
+
padding-right: 0.2rem;
|
|
391
393
|
}
|
|
392
394
|
}
|
|
393
395
|
|
|
@@ -15,6 +15,7 @@ class iamTable extends HTMLElement {
|
|
|
15
15
|
let classList = this.classList.toString();
|
|
16
16
|
|
|
17
17
|
classList = classList.replace('table--cta','');
|
|
18
|
+
classList = classList.replace('table--loading','');
|
|
18
19
|
|
|
19
20
|
const template = document.createElement('template');
|
|
20
21
|
template.innerHTML = `
|
|
@@ -43,20 +43,18 @@ export const getLargestLastColWidth = (table) => {
|
|
|
43
43
|
|
|
44
44
|
let largestWidth = 0;
|
|
45
45
|
|
|
46
|
-
Array.from(table.querySelectorAll('tr')).forEach((row, index) => {
|
|
46
|
+
Array.from(table.querySelectorAll('tbody tr')).forEach((row, index) => {
|
|
47
47
|
|
|
48
48
|
let htmlStyles = window.getComputedStyle(document.querySelector('html'));
|
|
49
49
|
let lastColChild = row.querySelector(':scope > *:last-child > *:first-child');
|
|
50
50
|
|
|
51
51
|
if(lastColChild){
|
|
52
52
|
|
|
53
|
+
lastColChild.classList.add('text-nowrap');
|
|
53
54
|
let responsiveWidth = lastColChild.offsetWidth/parseFloat(htmlStyles.fontSize);
|
|
54
|
-
responsiveWidth += 1.
|
|
55
|
+
responsiveWidth += 1.7;
|
|
55
56
|
largestWidth = largestWidth > responsiveWidth ? largestWidth : responsiveWidth;
|
|
56
57
|
}
|
|
57
|
-
|
|
58
|
-
let rowHeight = row.offsetHeight/parseFloat(htmlStyles.fontSize);
|
|
59
|
-
row.style.setProperty("--row-height", `${rowHeight}rem`);
|
|
60
58
|
});
|
|
61
59
|
|
|
62
60
|
return largestWidth;
|
|
@@ -780,6 +778,16 @@ export const makeTableFunctional = function(table, form, pagination, wrapper){
|
|
|
780
778
|
|
|
781
779
|
const largestWidth = getLargestLastColWidth(table);
|
|
782
780
|
wrapper.style.setProperty("--cta-width", `${largestWidth}rem`);
|
|
781
|
+
|
|
782
|
+
function outputsize() {
|
|
783
|
+
|
|
784
|
+
Array.from(table.querySelectorAll('tr')).forEach((row, index) => {
|
|
785
|
+
let rowHeight = row.offsetHeight;
|
|
786
|
+
row.style.setProperty("--row-height", `${rowHeight}px`);
|
|
787
|
+
});
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
new ResizeObserver(outputsize).observe(table)
|
|
783
791
|
}
|
|
784
792
|
}
|
|
785
793
|
|