@iamproperty/components 3.7.3 → 3.7.4
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/css/components/dialog.css +1 -1
- package/assets/css/components/dialog.css.map +1 -1
- package/assets/css/components/table.css +1 -1
- package/assets/css/components/table.css.map +1 -1
- package/assets/css/components/tooltips.css +1 -1
- package/assets/css/components/tooltips.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.js +5 -5
- package/assets/js/components/accordion/accordion.component.min.js +6 -5
- package/assets/js/components/accordion/accordion.component.min.js.map +1 -1
- package/assets/js/components/applied-filters/applied-filters.component.js +10 -3
- package/assets/js/components/applied-filters/applied-filters.component.min.js +5 -5
- package/assets/js/components/applied-filters/applied-filters.component.min.js.map +1 -1
- package/assets/js/components/card/card.component.js +11 -3
- 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/filterlist/filterlist.component.js +2 -1
- package/assets/js/components/filterlist/filterlist.component.min.js +4 -4
- package/assets/js/components/filterlist/filterlist.component.min.js.map +1 -1
- package/assets/js/components/header/header.component.js +3 -5
- package/assets/js/components/header/header.component.min.js +4 -8
- package/assets/js/components/header/header.component.min.js.map +1 -1
- package/assets/js/components/pagination/pagination.component.js +4 -1
- package/assets/js/components/pagination/pagination.component.min.js +13 -11
- package/assets/js/components/pagination/pagination.component.min.js.map +1 -1
- package/assets/js/components/table/table.component.js +4 -1
- package/assets/js/components/table/table.component.min.js +16 -14
- package/assets/js/components/table/table.component.min.js.map +1 -1
- package/assets/js/components/tabs/tabs.component.js +2 -1
- package/assets/js/components/tabs/tabs.component.min.js +3 -3
- package/assets/js/components/tabs/tabs.component.min.js.map +1 -1
- package/assets/js/dynamic.min.js +2 -2
- package/assets/js/dynamic.min.js.map +1 -1
- package/assets/js/modules/dialogs.js +8 -1
- package/assets/js/modules/table.js +9 -2
- package/assets/js/scripts.bundle.js +37 -37
- 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/_corefiles.scss +1 -0
- package/assets/sass/components/card.scss +2 -3
- package/assets/sass/components/dialog.scss +38 -4
- package/assets/sass/components/table.scss +20 -8
- package/assets/sass/components/tooltips.scss +137 -49
- package/assets/sass/foundations/buttons.scss +1 -1
- package/assets/sass/foundations/reboot.scss +32 -2
- package/assets/ts/components/accordion/accordion.component.ts +6 -8
- package/assets/ts/components/applied-filters/applied-filters.component.ts +12 -3
- package/assets/ts/components/card/card.component.ts +16 -4
- package/assets/ts/components/filterlist/filterlist.component.ts +4 -2
- package/assets/ts/components/header/header.component.ts +4 -5
- package/assets/ts/components/pagination/pagination.component.ts +4 -1
- package/assets/ts/components/table/table.component.ts +4 -1
- package/assets/ts/components/tabs/tabs.component.ts +3 -1
- package/assets/ts/modules/dialogs.ts +11 -4
- package/assets/ts/modules/table.ts +12 -3
- package/dist/components.es.js +1174 -1148
- package/dist/components.umd.js +55 -36
- package/package.json +1 -1
- package/src/components/Accordion/Accordion.vue +1 -1
- package/src/components/AppliedFilters/AppliedFilters.vue +1 -1
- package/src/components/Filterlist/Filterlist.vue +1 -1
- package/src/components/Header/Header.vue +9 -5
- package/src/components/Pagination/Pagination.vue +1 -1
- package/src/components/Table/Table.vue +1 -1
- package/src/components/Tabs/Tabs.vue +1 -1
- package/src/components/Header/Header.spec.js +0 -34
|
@@ -58,10 +58,9 @@
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
&:is(:hover,:focus,.hover) {
|
|
61
|
-
--icon-right: 0.5rem;
|
|
61
|
+
--card-icon-right: 0.5rem;
|
|
62
62
|
outline: 2px solid var(--colour, var(--colour-primary));
|
|
63
63
|
outline-offset: -2px;
|
|
64
|
-
|
|
65
64
|
}
|
|
66
65
|
|
|
67
66
|
// Update arrow cololur
|
|
@@ -76,7 +75,7 @@
|
|
|
76
75
|
}
|
|
77
76
|
|
|
78
77
|
&:is(:active, .active){
|
|
79
|
-
--icon-right: 0.5rem;
|
|
78
|
+
--card-icon-right: 0.5rem;
|
|
80
79
|
outline: none;
|
|
81
80
|
|
|
82
81
|
&:before {
|
|
@@ -428,9 +428,13 @@ dialog::backdrop {
|
|
|
428
428
|
|
|
429
429
|
position: relative;
|
|
430
430
|
display: inline-block;
|
|
431
|
+
margin-bottom: calc(var(--btn-margin) - 0.25rem);
|
|
431
432
|
|
|
432
433
|
|
|
433
434
|
> .btn:first-child {
|
|
435
|
+
|
|
436
|
+
margin-bottom: 0.25rem;
|
|
437
|
+
|
|
434
438
|
&:after {
|
|
435
439
|
content: "";
|
|
436
440
|
|
|
@@ -471,14 +475,32 @@ dialog::backdrop {
|
|
|
471
475
|
z-index: var(--index-floating);
|
|
472
476
|
min-width: rem(320);
|
|
473
477
|
border-radius: rem(16);
|
|
474
|
-
|
|
478
|
+
width: rem(319);
|
|
479
|
+
padding: rem(24);
|
|
480
|
+
|
|
481
|
+
@include media-breakpoint-up(sm) {
|
|
482
|
+
width: rem(335);
|
|
483
|
+
}
|
|
484
|
+
@include media-breakpoint-up(md) {
|
|
485
|
+
width: rem(360);
|
|
486
|
+
}
|
|
475
487
|
}
|
|
476
488
|
|
|
477
489
|
&.dialog__wrapper--right > dialog[open]{
|
|
478
490
|
|
|
479
491
|
right: 0;
|
|
480
492
|
left: auto;
|
|
481
|
-
}
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
&.dialog__wrapper--sm > dialog[open] {
|
|
496
|
+
|
|
497
|
+
width: rem(239);
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
&.dialog__wrapper--lg > dialog[open] {
|
|
501
|
+
|
|
502
|
+
width: rem(319);
|
|
503
|
+
}
|
|
482
504
|
|
|
483
505
|
@include media-breakpoint-up(sm) {
|
|
484
506
|
|
|
@@ -491,7 +513,13 @@ dialog::backdrop {
|
|
|
491
513
|
|
|
492
514
|
right: 0;
|
|
493
515
|
left: auto;
|
|
494
|
-
}
|
|
516
|
+
}
|
|
517
|
+
&.dialog__wrapper--sm > dialog[open] {
|
|
518
|
+
width: rem(265);
|
|
519
|
+
}
|
|
520
|
+
&.dialog__wrapper--lg > dialog[open] {
|
|
521
|
+
width: rem(452);
|
|
522
|
+
}
|
|
495
523
|
}
|
|
496
524
|
|
|
497
525
|
@include media-breakpoint-up(md) {
|
|
@@ -505,7 +533,13 @@ dialog::backdrop {
|
|
|
505
533
|
|
|
506
534
|
right: 0;
|
|
507
535
|
left: auto;
|
|
508
|
-
}
|
|
536
|
+
}
|
|
537
|
+
&.dialog__wrapper--sm > dialog[open] {
|
|
538
|
+
width: rem(266);
|
|
539
|
+
}
|
|
540
|
+
&.dialog__wrapper--lg > dialog[open] {
|
|
541
|
+
width: rem(454);
|
|
542
|
+
}
|
|
509
543
|
}
|
|
510
544
|
}
|
|
511
545
|
|
|
@@ -510,12 +510,17 @@ table {
|
|
|
510
510
|
[data-content="medium"],
|
|
511
511
|
[data-content="high"],
|
|
512
512
|
[data-content="unknown"],
|
|
513
|
+
[data-content="overdue"],
|
|
513
514
|
[data-content="incomplete"],
|
|
514
515
|
[data-content="requires approval"],
|
|
516
|
+
[data-content="approval required"],
|
|
517
|
+
[data-content="warning"],
|
|
515
518
|
[data-content="verified"],
|
|
516
519
|
[data-content="not started"],
|
|
520
|
+
[data-content="to do"],
|
|
517
521
|
[data-content="completed"],
|
|
518
|
-
|
|
522
|
+
[data-content="complete"],
|
|
523
|
+
.alert-status:not([data-content="0"]):not([data-content=""]):not(:empty)
|
|
519
524
|
) {
|
|
520
525
|
|
|
521
526
|
position: relative;
|
|
@@ -566,31 +571,38 @@ table {
|
|
|
566
571
|
color: var(--colour-muted);
|
|
567
572
|
}
|
|
568
573
|
|
|
569
|
-
:is([data-content="
|
|
574
|
+
:is([data-content="overdue"],[data-content="incomplete"]):after {
|
|
570
575
|
|
|
571
576
|
content: "\f024";
|
|
572
577
|
font-weight: light;
|
|
573
578
|
color: var(--colour-danger);
|
|
574
579
|
}
|
|
575
580
|
|
|
576
|
-
[data-content="
|
|
581
|
+
:is([data-content="not started"],[data-content="to do"]):after {
|
|
582
|
+
|
|
583
|
+
content: "\f024";
|
|
584
|
+
font-weight: light;
|
|
585
|
+
color: var(--colour-muted);
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
:is([data-content="requires approval"],[data-content="approval required"],[data-content="warning"]):after {
|
|
577
589
|
|
|
578
590
|
content: "\f024";
|
|
579
591
|
font-weight: light;
|
|
580
592
|
color: var(--colour-warning);
|
|
581
593
|
}
|
|
582
594
|
|
|
583
|
-
:is([data-content="verified"],[data-content="completed"]):after {
|
|
595
|
+
:is([data-content="verified"],[data-content="completed"],[data-content="complete"]):after {
|
|
584
596
|
|
|
585
597
|
content: "\f00c";
|
|
586
598
|
font-weight: normal;
|
|
587
599
|
color: var(--colour-complete);
|
|
588
600
|
}
|
|
589
601
|
|
|
590
|
-
.alert-status:not([data-content="0"]):not(:empty):after {
|
|
602
|
+
.alert-status:not([data-content="0"]):not([data-content=""]):not(:empty):after {
|
|
591
603
|
|
|
592
|
-
content: "\
|
|
604
|
+
content: "\f0f3";
|
|
593
605
|
font-weight: light;
|
|
594
|
-
color: var(--colour-
|
|
606
|
+
color: var(--colour-primary);
|
|
595
607
|
}
|
|
596
|
-
}
|
|
608
|
+
}
|
|
@@ -1,85 +1,173 @@
|
|
|
1
1
|
@use "../_func.scss" as *;
|
|
2
2
|
|
|
3
|
-
:is(abbr[title], .tooltip) {
|
|
4
3
|
|
|
5
|
-
|
|
6
|
-
text-underline-offset: 0.2em;
|
|
7
|
-
text-decoration-thickness: 2px;
|
|
8
|
-
text-decoration-style: dashed;
|
|
9
|
-
text-decoration-color: var(--colour-underline);
|
|
10
|
-
position: relative;
|
|
11
|
-
cursor: help;
|
|
4
|
+
@mixin tooltip(){
|
|
12
5
|
|
|
13
|
-
|
|
6
|
+
display: block;
|
|
7
|
+
z-index: var(--index-floating);
|
|
8
|
+
position: absolute;
|
|
9
|
+
top: calc(100% + 0.5rem);
|
|
10
|
+
left: auto;
|
|
11
|
+
right: 0.85em;
|
|
12
|
+
width: #{rem(270)};
|
|
13
|
+
transform: translate(50%,0);
|
|
14
|
+
background: var(--colour-primary);
|
|
15
|
+
color: var(--colour-white);
|
|
16
|
+
padding: rem(24);
|
|
17
|
+
border-radius: 0.5rem;
|
|
18
|
+
box-shadow: 0px 2px 9px rgba(0, 0, 0, 0.11);
|
|
19
|
+
|
|
20
|
+
> strong:first-child {
|
|
21
|
+
display: block;
|
|
22
|
+
padding-bottom: 1rem;
|
|
23
|
+
}
|
|
14
24
|
|
|
15
|
-
|
|
25
|
+
@include media-breakpoint-up(sm) {
|
|
26
|
+
|
|
27
|
+
width: #{rem(335)};
|
|
16
28
|
}
|
|
17
|
-
|
|
29
|
+
|
|
30
|
+
@include media-breakpoint-up(md) {
|
|
18
31
|
|
|
19
|
-
|
|
32
|
+
width: #{rem(360)};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&::after {
|
|
36
|
+
content: "";
|
|
37
|
+
position: absolute;
|
|
38
|
+
bottom: 100%;
|
|
39
|
+
left: 50%;
|
|
40
|
+
margin-left: -0.25rem;
|
|
41
|
+
border-width: 0.5rem;
|
|
42
|
+
border-style: solid;
|
|
43
|
+
border-color: transparent transparent var(--colour-primary) transparent;
|
|
44
|
+
margin-bottom: -1px;
|
|
45
|
+
}
|
|
20
46
|
|
|
21
|
-
display: block;
|
|
22
|
-
z-index: var(--index-above);
|
|
23
|
-
position: absolute;
|
|
24
|
-
top: calc(100% + 0.25rem);
|
|
25
|
-
left: 50%;
|
|
26
|
-
min-width: max(120%, #{rem(100)});
|
|
27
|
-
transform: translate(-50%,0);
|
|
28
|
-
background: var(--colour-canvas-2);
|
|
29
|
-
color: inherit;
|
|
30
|
-
padding: 0.5em;
|
|
31
|
-
border-radius: 3px;
|
|
32
|
-
box-shadow: 1px 1px 3px 1px rgba(0,0,0,0.3);
|
|
33
47
|
}
|
|
34
48
|
|
|
35
|
-
.tooltip {
|
|
36
49
|
|
|
37
50
|
|
|
51
|
+
:is(abbr[title], .tooltip) {
|
|
52
|
+
|
|
53
|
+
text-decoration: none;
|
|
54
|
+
position: relative;
|
|
55
|
+
|
|
56
|
+
&:is(:hover, :focus, :active){
|
|
57
|
+
|
|
58
|
+
text-decoration: none;
|
|
59
|
+
}
|
|
60
|
+
|
|
38
61
|
&:after{
|
|
39
62
|
|
|
40
|
-
|
|
63
|
+
font-family: "Font Awesome 6 Pro";
|
|
64
|
+
font-weight: 900;
|
|
65
|
+
content: "\f059";
|
|
41
66
|
display: inline-block;
|
|
42
|
-
margin-left: 0.
|
|
67
|
+
margin-left: 0.2em;
|
|
68
|
+
margin-right: 0.1em;
|
|
43
69
|
margin-bottom: 0.1em;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
vertical-align: text-bottom;
|
|
47
|
-
background: currentColor;
|
|
48
|
-
mask-image: var(--icon-question);
|
|
49
|
-
mask-size: 100%;
|
|
50
|
-
mask-repeat: no-repeat;
|
|
51
|
-
mask-position: 50% 50%;
|
|
52
|
-
-webkit-mask-image: var(--icon-question);
|
|
53
|
-
-webkit-mask-size: 100%;
|
|
54
|
-
-webkit-mask-repeat: no-repeat;
|
|
55
|
-
-webkit-mask-position: 50% 50%;
|
|
70
|
+
color: var(--colour-primary);
|
|
71
|
+
|
|
56
72
|
}
|
|
57
73
|
|
|
58
|
-
|
|
74
|
+
> span {
|
|
59
75
|
|
|
60
76
|
opacity: 0;
|
|
61
77
|
position: absolute;
|
|
62
78
|
|
|
63
79
|
}
|
|
64
80
|
|
|
65
|
-
&:is(:hover, :focus, :active){
|
|
81
|
+
&:is(:hover, .hover, :focus, :active){
|
|
66
82
|
|
|
67
|
-
|
|
83
|
+
> span {
|
|
68
84
|
|
|
69
85
|
opacity: 1;
|
|
70
86
|
@include tooltip();
|
|
71
87
|
}
|
|
72
88
|
}
|
|
73
|
-
}
|
|
74
89
|
|
|
75
|
-
|
|
90
|
+
&.tooltip--top span{
|
|
91
|
+
|
|
92
|
+
top: auto;
|
|
93
|
+
bottom: calc(100% + 0.5rem);
|
|
94
|
+
left: auto;
|
|
95
|
+
right: 0.85em;
|
|
96
|
+
|
|
97
|
+
&:after {
|
|
98
|
+
|
|
99
|
+
top: 100%;
|
|
100
|
+
bottom: auto;
|
|
101
|
+
left: 50%;
|
|
102
|
+
border-color: var(--colour-primary) transparent transparent transparent;
|
|
103
|
+
margin-top: -1px;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
&.shift--left span{
|
|
109
|
+
transform: translate(calc(0% + 1.5rem), 0);
|
|
110
|
+
|
|
111
|
+
&:after {
|
|
112
|
+
left: calc(100% - 1.5rem);
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
&.shift--right span{
|
|
116
|
+
transform: translate(calc(100% - 1rem), 0);
|
|
117
|
+
|
|
118
|
+
&:after {
|
|
119
|
+
left: 1rem;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
76
123
|
|
|
77
|
-
|
|
124
|
+
@include media-breakpoint-up(sm) {
|
|
78
125
|
|
|
79
|
-
&:is(
|
|
126
|
+
&:is(.shift--left,.shift--right) span{
|
|
127
|
+
transform: translate(50%, 0);
|
|
128
|
+
|
|
129
|
+
&:after {
|
|
130
|
+
left: 50%
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
&.tooltip--left span{
|
|
80
135
|
|
|
81
|
-
|
|
82
|
-
|
|
136
|
+
top: 50%;
|
|
137
|
+
bottom: auto;
|
|
138
|
+
left: auto;
|
|
139
|
+
right: 1.6em;
|
|
140
|
+
|
|
141
|
+
transform: translate(0,-50%);
|
|
142
|
+
|
|
143
|
+
&:after {
|
|
144
|
+
|
|
145
|
+
top: calc(50% - 0.5em);
|
|
146
|
+
bottom: auto;
|
|
147
|
+
left: calc(100% + 0.25em - 1px);
|
|
148
|
+
border-color: transparent transparent transparent var(--colour-primary);
|
|
149
|
+
margin-bottom: 0;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
&.tooltip--right span{
|
|
153
|
+
|
|
154
|
+
top: 50%;
|
|
155
|
+
bottom: auto;
|
|
156
|
+
left: calc(100% + 0.5rem);
|
|
157
|
+
right: auto;
|
|
158
|
+
|
|
159
|
+
transform: translate(0,-50%);
|
|
160
|
+
|
|
161
|
+
&:after {
|
|
162
|
+
|
|
163
|
+
top: calc(50% - 0.5em);
|
|
164
|
+
bottom: auto;
|
|
165
|
+
left: auto;
|
|
166
|
+
right: calc(100% - 1px);
|
|
167
|
+
border-color: transparent var(--colour-primary) transparent transparent;
|
|
168
|
+
margin-bottom: 0;
|
|
169
|
+
}
|
|
83
170
|
}
|
|
171
|
+
|
|
84
172
|
}
|
|
85
|
-
}
|
|
173
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
@use "sass:math";
|
|
1
2
|
@use "../_func" as *;
|
|
2
3
|
|
|
3
4
|
@import "../../bootstrap/scss/_reboot.scss";
|
|
@@ -139,10 +140,39 @@ details {
|
|
|
139
140
|
width: 100%;
|
|
140
141
|
}
|
|
141
142
|
|
|
143
|
+
|
|
142
144
|
// #region Undefined web components
|
|
145
|
+
:is(*):not(:defined) {
|
|
146
|
+
display: block;
|
|
147
|
+
padding: rem(24);
|
|
148
|
+
margin-bottom: rem(24);
|
|
149
|
+
border-radius: rem(8);
|
|
150
|
+
margin-left: auto;
|
|
151
|
+
margin-right: auto;
|
|
152
|
+
max-width: 80rem;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
main > :is(*):not(:defined) {
|
|
156
|
+
|
|
157
|
+
padding: var(--container-padding);
|
|
158
|
+
padding-top: 1rem;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
@include media-breakpoint-up(md) {
|
|
162
|
+
|
|
163
|
+
main > :is(*):not(:defined) {
|
|
164
|
+
max-width: 100%!important;
|
|
165
|
+
padding-inline: calc(50% - #{rem(math.div(1112,2))});
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
iam-header:not(:defined) {
|
|
169
|
+
min-height: rem(470);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
|
|
143
173
|
iam-card:not(:defined) {
|
|
144
|
-
box-shadow: var(--card-
|
|
174
|
+
box-shadow: var(--card-box-shadow);
|
|
145
175
|
border-radius: var(--card-border-radius);
|
|
146
176
|
padding: var(--card-top-padding) var(--card-right-padding) var(--card-bottom-padding) var(--card-left-padding);
|
|
147
177
|
}
|
|
148
|
-
// #endregion
|
|
178
|
+
// #endregion
|
|
@@ -8,20 +8,21 @@ window.dataLayer.push({
|
|
|
8
8
|
"element": "accordion"
|
|
9
9
|
});
|
|
10
10
|
|
|
11
|
-
const assetLocation = document.body.hasAttribute('data-assets-location') ? document.body.getAttribute('data-assets-location') : '/assets'
|
|
12
|
-
|
|
13
11
|
class iamAccordion extends HTMLElement {
|
|
14
12
|
|
|
15
13
|
constructor(){
|
|
16
14
|
super();
|
|
17
15
|
this.attachShadow({ mode: 'open'});
|
|
18
|
-
|
|
16
|
+
|
|
17
|
+
const assetLocation = document.body.hasAttribute('data-assets-location') ? document.body.getAttribute('data-assets-location') : '/assets'
|
|
18
|
+
const coreCSS = document.body.hasAttribute('data-core-css') ? document.body.getAttribute('data-core-css') : `${assetLocation}/css/core.min.css`;
|
|
19
|
+
const loadCSS = `@import "${assetLocation}/css/components/accordion.css";`;
|
|
19
20
|
|
|
20
21
|
const template = document.createElement('template');
|
|
21
22
|
template.innerHTML = `
|
|
22
23
|
<style>
|
|
23
|
-
@import "${
|
|
24
|
-
|
|
24
|
+
@import "${coreCSS}";
|
|
25
|
+
${loadCSS}
|
|
25
26
|
${this.hasAttribute('css') ? `@import "${this.getAttribute('css')}";` : ``}
|
|
26
27
|
</style>
|
|
27
28
|
<div class="accordion">
|
|
@@ -34,9 +35,6 @@ class iamAccordion extends HTMLElement {
|
|
|
34
35
|
connectedCallback() {
|
|
35
36
|
|
|
36
37
|
accordion(this);
|
|
37
|
-
|
|
38
|
-
// Load in the component CSS into the root so we can style the content of the component
|
|
39
|
-
this.insertAdjacentHTML("beforebegin", `<link rel="stylesheet" href="${assetLocation}/css/components/accordion.css">`)
|
|
40
38
|
}
|
|
41
39
|
}
|
|
42
40
|
|
|
@@ -1,20 +1,29 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import createAppliedFilters from "../../modules/applied-filters";
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
// Data layer Web component created
|
|
5
|
+
window.dataLayer = window.dataLayer || [];
|
|
6
|
+
window.dataLayer.push({
|
|
7
|
+
"event": "customElementRegistered",
|
|
8
|
+
"element": "Applied Filters"
|
|
9
|
+
});
|
|
10
|
+
|
|
6
11
|
|
|
7
12
|
class iamAppliedFilters extends HTMLElement {
|
|
8
13
|
|
|
9
14
|
constructor(){
|
|
10
15
|
super();
|
|
11
16
|
this.attachShadow({ mode: 'open'});
|
|
17
|
+
|
|
18
|
+
const assetLocation = document.body.hasAttribute('data-assets-location') ? document.body.getAttribute('data-assets-location') : '/assets'
|
|
19
|
+
const coreCSS = document.body.hasAttribute('data-core-css') ? document.body.getAttribute('data-core-css') : `${assetLocation}/css/core.min.css`;
|
|
20
|
+
const loadCSS = `@import "${assetLocation}/css/components/applied-filters.css";`;
|
|
12
21
|
|
|
13
22
|
let classList = this.classList.toString();
|
|
14
23
|
const template = document.createElement('template');
|
|
15
24
|
template.innerHTML = `
|
|
16
25
|
<style>
|
|
17
|
-
@import "${
|
|
26
|
+
@import "${coreCSS}";
|
|
18
27
|
${loadCSS}
|
|
19
28
|
${this.hasAttribute('css') ? `@import "${this.getAttribute('css')}";` : ``}
|
|
20
29
|
</style>
|
|
@@ -1,22 +1,32 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
|
+
|
|
3
|
+
// Data layer Web component created
|
|
4
|
+
window.dataLayer = window.dataLayer || [];
|
|
5
|
+
window.dataLayer.push({
|
|
6
|
+
"event": "customElementRegistered",
|
|
7
|
+
"element": "Card"
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
|
|
2
11
|
class iamCard extends HTMLElement {
|
|
3
12
|
|
|
4
13
|
constructor(){
|
|
5
14
|
super();
|
|
6
15
|
this.attachShadow({ mode: 'open'});
|
|
7
16
|
|
|
8
|
-
const assetLocation = document.body.hasAttribute('data-assets-location') ? document.body.getAttribute('data-assets-location') : '/assets';
|
|
9
|
-
const loadCSS = `@import "${assetLocation}/css/components/card.css";`;
|
|
10
|
-
|
|
11
17
|
if(this.querySelector('[class*="fa-"]'))
|
|
12
18
|
this.classList.add('card--has-icon');
|
|
13
19
|
|
|
14
20
|
let classList = this.classList.toString();
|
|
21
|
+
|
|
22
|
+
const assetLocation = document.body.hasAttribute('data-assets-location') ? document.body.getAttribute('data-assets-location') : '/assets'
|
|
23
|
+
const coreCSS = document.body.hasAttribute('data-core-css') ? document.body.getAttribute('data-core-css') : `${assetLocation}/css/core.min.css`;
|
|
24
|
+
const loadCSS = `@import "${assetLocation}/css/components/card.css";`;
|
|
15
25
|
|
|
16
26
|
const template = document.createElement('template');
|
|
17
27
|
template.innerHTML = `
|
|
18
28
|
<style>
|
|
19
|
-
@import "${
|
|
29
|
+
@import "${coreCSS}";
|
|
20
30
|
${loadCSS}
|
|
21
31
|
${this.hasAttribute('css') ? `@import "${this.getAttribute('css')}";` : ``}
|
|
22
32
|
</style>
|
|
@@ -35,6 +45,8 @@ class iamCard extends HTMLElement {
|
|
|
35
45
|
|
|
36
46
|
connectedCallback() {
|
|
37
47
|
|
|
48
|
+
this.classList.add('loaded');
|
|
49
|
+
|
|
38
50
|
// Mimic clicking the parent node so the focus and target events can be on the card
|
|
39
51
|
const parentNode = this.parentNode.closest('a, button, label')
|
|
40
52
|
const card = this.shadowRoot.querySelector('.card')
|
|
@@ -14,11 +14,13 @@ class iamFilterlist extends HTMLElement {
|
|
|
14
14
|
super();
|
|
15
15
|
this.attachShadow({ mode: 'open'});
|
|
16
16
|
|
|
17
|
-
const assetLocation = document.body.hasAttribute('data-assets-location') ? document.body.getAttribute('data-assets-location') : '/assets'
|
|
17
|
+
const assetLocation = document.body.hasAttribute('data-assets-location') ? document.body.getAttribute('data-assets-location') : '/assets'
|
|
18
|
+
const coreCSS = document.body.hasAttribute('data-core-css') ? document.body.getAttribute('data-core-css') : `${assetLocation}/css/core.min.css`;
|
|
19
|
+
|
|
18
20
|
const template = document.createElement('template');
|
|
19
21
|
template.innerHTML = `
|
|
20
22
|
<style>
|
|
21
|
-
@import "${
|
|
23
|
+
@import "${coreCSS}";
|
|
22
24
|
${this.hasAttribute('css') ? `@import "${this.getAttribute('css')}";` : ``}
|
|
23
25
|
|
|
24
26
|
:host {
|
|
@@ -14,18 +14,15 @@ class iamHeader extends HTMLElement {
|
|
|
14
14
|
this.attachShadow({ mode: 'open'});
|
|
15
15
|
|
|
16
16
|
const assetLocation = document.body.hasAttribute('data-assets-location') ? document.body.getAttribute('data-assets-location') : '/assets';
|
|
17
|
+
const coreCSS = document.body.hasAttribute('data-core-css') ? document.body.getAttribute('data-core-css') : `${assetLocation}/css/core.min.css`;
|
|
17
18
|
const loadCSS = `@import "${assetLocation}/css/components/header.css";`;
|
|
18
19
|
|
|
19
20
|
const template = document.createElement('template');
|
|
20
21
|
template.innerHTML = `
|
|
21
22
|
<style>
|
|
22
|
-
@import "${
|
|
23
|
+
@import "${coreCSS}";
|
|
23
24
|
${loadCSS}
|
|
24
25
|
${this.hasAttribute('css') ? `@import "${this.getAttribute('css')}";` : ``}
|
|
25
|
-
:host {
|
|
26
|
-
max-width:100%!important;
|
|
27
|
-
padding:0!important;
|
|
28
|
-
}
|
|
29
26
|
</style>
|
|
30
27
|
<div class="header-banner">
|
|
31
28
|
<div class="container" part="container">
|
|
@@ -47,6 +44,8 @@ class iamHeader extends HTMLElement {
|
|
|
47
44
|
|
|
48
45
|
connectedCallback() {
|
|
49
46
|
|
|
47
|
+
this.classList.add('loaded');
|
|
48
|
+
|
|
50
49
|
const picture = this.shadowRoot.querySelector('picture');
|
|
51
50
|
const source = this.shadowRoot.querySelector('picture source');
|
|
52
51
|
|
|
@@ -7,11 +7,14 @@ class iamPagination extends HTMLElement {
|
|
|
7
7
|
super();
|
|
8
8
|
this.attachShadow({ mode: 'open'});
|
|
9
9
|
const assetLocation = document.body.hasAttribute('data-assets-location') ? document.body.getAttribute('data-assets-location') : '/assets';
|
|
10
|
+
const coreCSS = document.body.hasAttribute('data-core-css') ? document.body.getAttribute('data-core-css') : `${assetLocation}/css/core.min.css`;
|
|
10
11
|
|
|
11
12
|
const template = document.createElement('template');
|
|
12
13
|
template.innerHTML = `
|
|
13
14
|
<style>
|
|
14
|
-
@import "${
|
|
15
|
+
@import "${coreCSS}";
|
|
16
|
+
|
|
17
|
+
${this.hasAttribute('css') ? `@import "${this.getAttribute('css')}";` : ``}
|
|
15
18
|
</style>
|
|
16
19
|
<div class="pagination__wrapper d-none">
|
|
17
20
|
</div>
|
|
@@ -8,6 +8,7 @@ class iamTable extends HTMLElement {
|
|
|
8
8
|
super();
|
|
9
9
|
this.attachShadow({ mode: 'open'});
|
|
10
10
|
const assetLocation = document.body.hasAttribute('data-assets-location') ? document.body.getAttribute('data-assets-location') : '/assets';
|
|
11
|
+
const coreCSS = document.body.hasAttribute('data-core-css') ? document.body.getAttribute('data-core-css') : `${assetLocation}/css/core.min.css`;
|
|
11
12
|
|
|
12
13
|
const isCTA = this.classList.contains('table--cta');
|
|
13
14
|
const isExportable = this.classList.contains('table--export');
|
|
@@ -20,7 +21,7 @@ class iamTable extends HTMLElement {
|
|
|
20
21
|
const template = document.createElement('template');
|
|
21
22
|
template.innerHTML = `
|
|
22
23
|
<style>
|
|
23
|
-
@import "${
|
|
24
|
+
@import "${coreCSS}";
|
|
24
25
|
|
|
25
26
|
:host(.mh-sm){
|
|
26
27
|
max-height: none!important;
|
|
@@ -31,6 +32,8 @@ class iamTable extends HTMLElement {
|
|
|
31
32
|
:host(.mh-lg){
|
|
32
33
|
max-height: none!important;
|
|
33
34
|
}
|
|
35
|
+
|
|
36
|
+
${this.hasAttribute('css') ? `@import "${this.getAttribute('css')}";` : ``}
|
|
34
37
|
</style>
|
|
35
38
|
${isCTA ? '<div class="table--cta">' : ''}
|
|
36
39
|
<div class="table__wrapper ${classList}">
|
|
@@ -15,10 +15,12 @@ class iamTabs extends HTMLElement {
|
|
|
15
15
|
this.attachShadow({ mode: 'open'});
|
|
16
16
|
|
|
17
17
|
const assetLocation = document.body.hasAttribute('data-assets-location') ? document.body.getAttribute('data-assets-location') : '/assets';
|
|
18
|
+
const coreCSS = document.body.hasAttribute('data-core-css') ? document.body.getAttribute('data-core-css') : `${assetLocation}/css/core.min.css`;
|
|
19
|
+
|
|
18
20
|
const template = document.createElement('template');
|
|
19
21
|
template.innerHTML = `
|
|
20
22
|
<style>
|
|
21
|
-
@import "${
|
|
23
|
+
@import "${coreCSS}";
|
|
22
24
|
|
|
23
25
|
:host(.admin-panel){
|
|
24
26
|
display: contents!important;
|