@iamproperty/components 2.0.1 → 2.1.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/README.md +12 -2
- package/assets/.DS_Store +0 -0
- 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/img/.DS_Store +0 -0
- package/assets/js/main.js +4 -0
- package/assets/js/modules/accordion.js +13 -10
- package/assets/js/modules/modal.js +72 -0
- package/assets/js/scripts.bundle.js +98 -65
- 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/.DS_Store +0 -0
- package/assets/sass/_components.scss +4 -0
- package/assets/sass/_corefiles.scss +1 -0
- package/assets/sass/components/accordion.scss +79 -3
- package/assets/sass/components/charts.scss +562 -0
- package/assets/sass/components/modal.scss +78 -3
- package/assets/sass/components/snapshot.scss +69 -0
- package/assets/sass/components/timeline.scss +93 -0
- package/assets/sass/elements/buttons.scss +1 -1
- package/assets/sass/elements/tooltips.scss +71 -0
- package/assets/sass/foundations/reboot.scss +12 -0
- package/assets/svg/.DS_Store +0 -0
- package/assets/svg/flat/.DS_Store +0 -0
- package/dist/components.common.js +1318 -630
- package/dist/components.common.js.map +1 -1
- package/dist/components.css +1 -1
- package/dist/components.css.map +1 -1
- package/dist/components.umd.js +1318 -630
- package/dist/components.umd.js.map +1 -1
- package/dist/components.umd.min.js +1 -1
- package/dist/components.umd.min.js.map +1 -1
- package/package.json +34 -31
- package/src/.DS_Store +0 -0
- package/src/components/Accordion/Accordion.vue +0 -18
- package/src/components/Accordion/AccordionItem.vue +43 -0
- package/src/components/Accordion/README.md +21 -8
- package/src/components/Card/Card.vue +12 -12
- package/src/components/Card/README.md +7 -7
- package/src/components/CardDeck/CardDeck.vue +11 -11
- package/src/components/CardDeck/README.md +6 -6
- package/src/components/Carousel/Carousel.vue +10 -10
- package/src/components/Carousel/README.md +1 -1
- package/src/components/Chart/Chart.vue +246 -0
- package/src/components/Chart/README.md +18 -0
- package/src/components/Modal/Modal.vue +15 -4
- package/src/components/Modal/README.md +1 -0
- package/src/components/Nav/README.md +3 -3
- package/src/components/PropertySearchbar/PropertySearchbar.vue +13 -13
- package/src/components/Snapshot/README.md +21 -0
- package/src/components/Snapshot/Snapshot.vue +33 -0
- package/src/components/Timeline/README.md +18 -0
- package/src/components/Timeline/Timeline.vue +25 -0
- package/src/elements/Input/Input.vue +15 -15
- package/src/elements/Input/README.md +4 -4
- package/src/elements/Table/Table.vue +17 -3
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
.snapshot {
|
|
2
|
+
|
|
3
|
+
> .row {
|
|
4
|
+
|
|
5
|
+
padding-bottom: 1rem;
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
> .row > .col {
|
|
10
|
+
|
|
11
|
+
margin-bottom: 1rem;
|
|
12
|
+
min-width: rem(150);
|
|
13
|
+
position: relative;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@include media-breakpoint-up(sm) {
|
|
17
|
+
> .row > .col:nth-child(8) ~ .col {
|
|
18
|
+
max-width: 25%;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@include media-breakpoint-up(md) {
|
|
23
|
+
> .row > .col:nth-child(8) ~ .col {
|
|
24
|
+
max-width: 12.5%;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&__item {
|
|
29
|
+
|
|
30
|
+
position: relative;
|
|
31
|
+
display: flex;
|
|
32
|
+
flex-direction: column;
|
|
33
|
+
justify-content: space-between;
|
|
34
|
+
height: 100%;
|
|
35
|
+
padding: 1rem;
|
|
36
|
+
|
|
37
|
+
&:not([class*="bg-"]){
|
|
38
|
+
border: 1px solid var(--colour-border);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
a {
|
|
44
|
+
position: absolute;
|
|
45
|
+
top: 0;
|
|
46
|
+
left: 0;
|
|
47
|
+
height: 100%;
|
|
48
|
+
width: 100%;
|
|
49
|
+
opacity: 0;
|
|
50
|
+
z-index: 1;
|
|
51
|
+
|
|
52
|
+
&:hover + .snapshot__item {
|
|
53
|
+
opacity: 0.8;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&__title {
|
|
58
|
+
margin-bottom: 1rem;
|
|
59
|
+
|
|
60
|
+
&:after {
|
|
61
|
+
content: ":";
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.stat {
|
|
66
|
+
text-decoration: none;
|
|
67
|
+
margin-bottom: 0;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
.timeline {
|
|
2
|
+
|
|
3
|
+
--breakpoint:(100% - #{rem(992)});
|
|
4
|
+
--pl: clamp(0rem, var(--breakpoint) * -1000, 4rem);
|
|
5
|
+
--line-pos: clamp(1rem, var(--breakpoint) * 1000, 50%);
|
|
6
|
+
--circle-pos: 1rem;
|
|
7
|
+
--line-length: 100%;
|
|
8
|
+
--img-order: 1;
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
position: relative;
|
|
12
|
+
padding-top: rem(4);
|
|
13
|
+
padding-left: var(--pl);
|
|
14
|
+
padding-bottom: 1rem;
|
|
15
|
+
width: 100%;
|
|
16
|
+
display: flex;
|
|
17
|
+
justify-content: space-between;
|
|
18
|
+
flex-direction: row;
|
|
19
|
+
flex-wrap: wrap;
|
|
20
|
+
align-items: flex-start;
|
|
21
|
+
|
|
22
|
+
.timeline__container:not(.timeline--simple) & {
|
|
23
|
+
|
|
24
|
+
align-items: center;
|
|
25
|
+
|
|
26
|
+
@include media-breakpoint-up(md) {
|
|
27
|
+
--img-order: 0;
|
|
28
|
+
--circle-pos: 50%;
|
|
29
|
+
--line-length: 50%;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&:before {
|
|
34
|
+
content: " ";
|
|
35
|
+
display: block;
|
|
36
|
+
background: black;
|
|
37
|
+
width: 4px;
|
|
38
|
+
height: 100%;
|
|
39
|
+
position: absolute;
|
|
40
|
+
top: 0;
|
|
41
|
+
left: var(--line-pos);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&:after {
|
|
45
|
+
content: " ";
|
|
46
|
+
display: block;
|
|
47
|
+
background: white;
|
|
48
|
+
width: 2rem;
|
|
49
|
+
height: 2rem;
|
|
50
|
+
margin-top: -1rem;
|
|
51
|
+
position: absolute;
|
|
52
|
+
top: var(--circle-pos);
|
|
53
|
+
left: var(--line-pos);
|
|
54
|
+
margin-left: calc(-1rem + 2px);
|
|
55
|
+
border: 4px solid black;
|
|
56
|
+
border-radius: 50%;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
> * {
|
|
60
|
+
max-width: rem((1320 / 2) - 96);
|
|
61
|
+
order: 1;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
> img {
|
|
65
|
+
max-width: min(100%, #{rem((1320 / 2) - 96)});
|
|
66
|
+
margin-bottom: 2rem;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
&:nth-child(even) > img {
|
|
70
|
+
order: var(--img-order);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&:first-child {
|
|
74
|
+
|
|
75
|
+
&:before {
|
|
76
|
+
top: var(--circle-pos);
|
|
77
|
+
height: var(--line-length);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&:last-child {
|
|
82
|
+
padding-bottom: 0;
|
|
83
|
+
margin-bottom: 2rem;
|
|
84
|
+
|
|
85
|
+
&:before {
|
|
86
|
+
height: var(--line-length);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
> img {
|
|
90
|
+
margin-bottom: 0;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
abbr[title],
|
|
2
|
+
.tooltip {
|
|
3
|
+
|
|
4
|
+
text-decoration: underline;
|
|
5
|
+
text-underline-offset: 0.2em;
|
|
6
|
+
text-decoration-thickness: 2px;
|
|
7
|
+
text-decoration-style: dashed;
|
|
8
|
+
text-decoration-color: var(--colour-underline);
|
|
9
|
+
position: relative;
|
|
10
|
+
cursor: help;
|
|
11
|
+
|
|
12
|
+
&:hover,
|
|
13
|
+
&:focus,
|
|
14
|
+
&:active{
|
|
15
|
+
|
|
16
|
+
text-decoration: none;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@mixin tooltip(){
|
|
21
|
+
|
|
22
|
+
display: block;
|
|
23
|
+
z-index: 2;
|
|
24
|
+
position: absolute;
|
|
25
|
+
top: calc(100% + 0.25rem);
|
|
26
|
+
left: 50%;
|
|
27
|
+
min-width: max(120%, #{rem(100)});
|
|
28
|
+
transform: translate(-50%,0);
|
|
29
|
+
background: #eee;
|
|
30
|
+
padding: 0.5em;
|
|
31
|
+
border-radius: 3px;
|
|
32
|
+
box-shadow: 1px 1px 3px 1px rgba(0,0,0,0.3);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.tooltip {
|
|
36
|
+
|
|
37
|
+
.tooltip__content {
|
|
38
|
+
|
|
39
|
+
opacity: 0;
|
|
40
|
+
position: absolute;
|
|
41
|
+
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&:hover,
|
|
45
|
+
&:focus,
|
|
46
|
+
&:active{
|
|
47
|
+
|
|
48
|
+
.tooltip__content {
|
|
49
|
+
|
|
50
|
+
opacity: 1;
|
|
51
|
+
@include tooltip();
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@media (hover: none) {
|
|
57
|
+
|
|
58
|
+
abbr[title],
|
|
59
|
+
.tooltip[title] {
|
|
60
|
+
|
|
61
|
+
&:hover,
|
|
62
|
+
&:focus,
|
|
63
|
+
&:active{
|
|
64
|
+
|
|
65
|
+
&::after {
|
|
66
|
+
content: attr(title);
|
|
67
|
+
@include tooltip();
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -5,6 +5,7 @@ html {
|
|
|
5
5
|
overflow: hidden;
|
|
6
6
|
overflow-x: hidden;
|
|
7
7
|
overflow-y: scroll;
|
|
8
|
+
height: 100%;
|
|
8
9
|
|
|
9
10
|
font-size: vw($device-xs-width);
|
|
10
11
|
|
|
@@ -37,6 +38,17 @@ body {
|
|
|
37
38
|
@include var(color,--colour-body);
|
|
38
39
|
width: 100%;
|
|
39
40
|
line-height: 1.5;
|
|
41
|
+
height: 100%;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
#app {
|
|
45
|
+
min-height: 100%;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
body > footer,
|
|
49
|
+
body > #app > footer {
|
|
50
|
+
position: sticky;
|
|
51
|
+
top: 100vh;
|
|
40
52
|
}
|
|
41
53
|
|
|
42
54
|
address {
|
|
Binary file
|
|
Binary file
|