@iamproperty/components 1.0.13 → 2.2.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 +120 -12
- package/assets/.DS_Store +0 -0
- package/assets/favicons/android-chrome-192x192.png +0 -0
- package/assets/favicons/android-chrome-512x512.png +0 -0
- package/assets/favicons/apple-touch-icon.png +0 -0
- package/assets/favicons/favicon-16x16.png +0 -0
- package/assets/favicons/favicon-32x32.png +0 -0
- package/assets/favicons/favicon.ico +0 -0
- package/assets/fonts/qanelas-medium-webfont.woff +0 -0
- package/assets/fonts/qanelas-medium-webfont.woff2 +0 -0
- package/assets/fonts/qanelassoft-extrabold-webfont.woff +0 -0
- package/assets/fonts/qanelassoft-extrabold-webfont.woff2 +0 -0
- package/assets/img/.DS_Store +0 -0
- package/{src/assets → assets}/img/logo.png +0 -0
- package/assets/js/main.js +62 -0
- package/assets/js/modules/accordion.js +36 -0
- package/assets/js/modules/carousel.js +102 -0
- package/assets/js/modules/drawer.js +16 -0
- package/assets/js/modules/form.js +49 -0
- package/assets/js/modules/helpers.js +93 -0
- package/assets/js/modules/modal.js +72 -0
- package/assets/js/modules/nav.js +27 -0
- package/assets/js/modules/table.js +573 -0
- package/assets/js/modules/testimonial.js +83 -0
- package/assets/sass/.DS_Store +0 -0
- package/assets/sass/_components.scss +35 -0
- package/assets/sass/_corefiles.scss +58 -0
- package/assets/sass/_func.scss +9 -0
- package/assets/sass/_functions/functions.scss +95 -0
- package/assets/sass/_functions/mixins.scss +109 -0
- package/assets/sass/_functions/utilities.scss +238 -0
- package/assets/sass/_functions/variables.scss +411 -0
- package/assets/sass/components/accordion.scss +195 -0
- package/assets/sass/components/card.scss +168 -0
- package/assets/sass/components/cardDeck.scss +107 -0
- package/assets/sass/components/carousel.scss +265 -0
- package/assets/sass/components/charts.scss +562 -0
- package/assets/sass/components/drawer.scss +45 -0
- package/assets/sass/components/header.scss +57 -0
- package/assets/sass/components/modal.scss +133 -0
- package/assets/sass/components/nav.scss +619 -0
- package/assets/sass/components/property-searchbar.scss +138 -0
- package/assets/sass/components/snapshot.scss +69 -0
- package/assets/sass/components/tabs.scss +46 -0
- package/assets/sass/components/testimonial.scss +131 -0
- package/assets/sass/components/timeline.scss +93 -0
- package/assets/sass/core.scss +4 -0
- package/assets/sass/elements/buttons.scss +263 -0
- package/assets/sass/elements/container.scss +222 -0
- package/assets/sass/elements/forms.scss +128 -0
- package/assets/sass/elements/links.scss +95 -0
- package/assets/sass/elements/lists.scss +26 -0
- package/assets/sass/elements/media.scss +3 -0
- package/assets/sass/elements/tables.scss +247 -0
- package/assets/sass/elements/tooltips.scss +71 -0
- package/assets/sass/elements/type.scss +114 -0
- package/assets/sass/foundations/brand.scss +74 -0
- package/assets/sass/foundations/circles.scss +63 -0
- package/assets/sass/foundations/fonts.scss +17 -0
- package/assets/sass/foundations/icons.scss +46 -0
- package/assets/sass/foundations/reboot.scss +120 -0
- package/assets/sass/foundations/root.scss +45 -0
- package/assets/sass/main.scss +5 -0
- package/assets/svg/.DS_Store +0 -0
- package/assets/svg/flat/.DS_Store +0 -0
- package/assets/svg/flat/agreed.svg +1 -0
- package/assets/svg/flat/alert.svg +1 -0
- package/assets/svg/flat/asset-37.svg +1 -0
- package/assets/svg/flat/asset-73.svg +1 -0
- package/assets/svg/flat/asset-82.svg +1 -0
- package/assets/svg/flat/award.svg +1 -0
- package/assets/svg/flat/bath.svg +1 -0
- package/assets/svg/flat/bed.svg +1 -0
- package/assets/svg/flat/calculate.svg +1 -0
- package/assets/svg/flat/calendar.svg +1 -0
- package/assets/svg/flat/celebrate.svg +1 -0
- package/assets/svg/flat/chat-house.svg +1 -0
- package/assets/svg/flat/chat.svg +1 -0
- package/assets/svg/flat/circle.svg +1 -0
- package/assets/svg/flat/clean.svg +1 -0
- package/assets/svg/flat/clock.svg +1 -0
- package/assets/svg/flat/computer.svg +1 -0
- package/assets/svg/flat/down.svg +1 -0
- package/assets/svg/flat/edit.svg +1 -0
- package/assets/svg/flat/email.svg +1 -0
- package/assets/svg/flat/event.svg +1 -0
- package/assets/svg/flat/family.svg +1 -0
- package/assets/svg/flat/file.svg +1 -0
- package/assets/svg/flat/find.svg +1 -0
- package/assets/svg/flat/fireworks.svg +1 -0
- package/assets/svg/flat/fist-left.svg +1 -0
- package/assets/svg/flat/fist.svg +1 -0
- package/assets/svg/flat/folder.svg +1 -0
- package/assets/svg/flat/footprints.svg +1 -0
- package/assets/svg/flat/hand.svg +1 -0
- package/assets/svg/flat/hands.svg +1 -0
- package/assets/svg/flat/house-2.svg +1 -0
- package/assets/svg/flat/house.svg +1 -0
- package/assets/svg/flat/idea.svg +1 -0
- package/assets/svg/flat/judge-house.svg +1 -0
- package/assets/svg/flat/judge.svg +1 -0
- package/assets/svg/flat/keys-house.svg +1 -0
- package/assets/svg/flat/lock.svg +1 -0
- package/assets/svg/flat/mobile.svg +1 -0
- package/assets/svg/flat/money.svg +1 -0
- package/assets/svg/flat/monument.svg +1 -0
- package/assets/svg/flat/online-judgement.svg +1 -0
- package/assets/svg/flat/paint.svg +1 -0
- package/assets/svg/flat/person-2.svg +1 -0
- package/assets/svg/flat/person.svg +1 -0
- package/assets/svg/flat/phone.svg +1 -0
- package/assets/svg/flat/pin.svg +1 -0
- package/assets/svg/flat/pound.svg +1 -0
- package/assets/svg/flat/present.svg +1 -0
- package/assets/svg/flat/qualification.svg +1 -0
- package/assets/svg/flat/rocket.svg +1 -0
- package/assets/svg/flat/sale.svg +1 -0
- package/assets/svg/flat/save.svg +1 -0
- package/assets/svg/flat/scale.svg +1 -0
- package/assets/svg/flat/send.svg +1 -0
- package/assets/svg/flat/share.svg +1 -0
- package/assets/svg/flat/sofa.svg +1 -0
- package/assets/svg/flat/sold.svg +1 -0
- package/assets/svg/flat/star.svg +1 -0
- package/assets/svg/flat/stopwatch.svg +1 -0
- package/assets/svg/flat/task.svg +1 -0
- package/assets/svg/flat/telescope.svg +1 -0
- package/assets/svg/flat/thumb.svg +1 -0
- package/assets/svg/flat/time.svg +1 -0
- package/assets/svg/flat/up.svg +1 -0
- package/assets/svg/flat/valuation.svg +1 -0
- package/assets/svg/flat/value-house.svg +1 -0
- package/assets/svg/flat/warning.svg +1 -0
- package/assets/svg/flat/water.svg +1 -0
- package/assets/svg/icons.svg +51 -0
- package/assets/svg/illustrations/commuter1.svg +1 -0
- package/assets/svg/illustrations/commuter2.svg +1 -0
- package/assets/svg/illustrations/commuter3.svg +1 -0
- package/assets/svg/logo.svg +43 -0
- package/dist/components.common.js +8218 -390
- package/dist/components.common.js.map +1 -1
- package/dist/components.css +2 -1
- package/dist/components.css.map +1 -0
- package/dist/components.umd.js +8218 -390
- 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 +88 -57
- package/src/.DS_Store +0 -0
- package/src/components/Accordion/Accordion.vue +24 -0
- package/src/components/Accordion/AccordionItem.vue +43 -0
- package/src/components/Accordion/README.md +34 -0
- package/src/components/Banner/Banner.vue +38 -0
- package/src/components/Banner/README.md +24 -0
- package/src/components/Card/Card.vue +115 -0
- package/src/components/Card/README.md +24 -0
- package/src/components/CardDeck/CardDeck.vue +78 -0
- package/src/components/CardDeck/README.md +25 -0
- package/src/components/Carousel/Carousel.vue +86 -0
- package/src/components/Carousel/README.md +20 -0
- package/src/components/Chart/Chart.vue +246 -0
- package/src/components/Chart/README.md +18 -0
- package/src/components/Drawer/Drawer.vue +54 -0
- package/src/components/Drawer/README.md +23 -0
- package/src/components/Header/Header.vue +39 -0
- package/src/components/Header/README.md +28 -0
- package/src/components/Modal/Modal.vue +44 -0
- package/src/components/Modal/README.md +20 -0
- package/src/components/Nav/Nav.vue +129 -0
- package/src/components/Nav/README.md +23 -0
- package/src/components/PropertySearchbar/PropertySearchbar.vue +206 -0
- package/src/components/PropertySearchbar/README.md +26 -0
- package/src/components/Snapshot/README.md +21 -0
- package/src/components/Snapshot/Snapshot.vue +33 -0
- package/src/components/Tabs/README.md +27 -0
- package/src/components/Tabs/Tab.vue +17 -0
- package/src/components/Tabs/Tabs.vue +55 -0
- package/src/components/Testimonial/README.md +26 -0
- package/src/components/Testimonial/Testimonial.vue +61 -0
- package/src/components/Timeline/README.md +18 -0
- package/src/components/Timeline/Timeline.vue +25 -0
- package/src/elements/Input/Input.vue +236 -0
- package/src/elements/Input/README.md +18 -0
- package/src/elements/Table/README.md +55 -0
- package/src/elements/Table/Table.vue +112 -0
- package/src/foundations/Icon/Icon.vue +21 -0
- package/src/foundations/Icon/README.md +11 -0
- package/src/foundations/Logo/Logo.vue +39 -0
- package/src/foundations/Logo/README.md +20 -0
- package/src/helpers/strings.js +12 -0
- package/src/index.js +21 -6
- package/src/assets/css/default.css +0 -99
- package/src/assets/logo.png +0 -0
- package/src/assets/scss/_variables.scss +0 -13
- package/src/components/KeyFacts/KeyFact.vue +0 -45
- package/src/components/KeyFacts/KeyFactGroup.vue +0 -44
- package/src/components/KeyFacts/README.md +0 -23
- package/src/components/KeyInformation/KeyInformation.vue +0 -23
- package/src/components/KeyInformation/README.md +0 -32
- package/src/components/PropertyTaskIntro/PropertyTaskIntro.vue +0 -74
- package/src/components/PropertyTaskIntro/README.md +0 -27
- package/src/components/TaskTitle/README.md +0 -24
- package/src/components/TaskTitle/TaskTitle.vue +0 -68
- package/src/components/VendorTable/README.md +0 -63
- package/src/components/VendorTable/VendorTable.vue +0 -49
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
<template functional>
|
|
2
|
-
<div class="key-fact col-6 col-sm-4 col-lg-2">
|
|
3
|
-
<ul>
|
|
4
|
-
<li :class="{nil: props.keyfact.value == 0}" class="fact-value">{{ props.keyfact.value }}</li>
|
|
5
|
-
<li class="fact-label">{{ props.keyfact.label }}</li>
|
|
6
|
-
</ul>
|
|
7
|
-
</div>
|
|
8
|
-
</template>
|
|
9
|
-
|
|
10
|
-
<script>
|
|
11
|
-
export default {
|
|
12
|
-
name: 'KeyFact',
|
|
13
|
-
props: {
|
|
14
|
-
keyfact: {
|
|
15
|
-
type: Object,
|
|
16
|
-
required: true
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
</script>
|
|
21
|
-
|
|
22
|
-
<style lang="scss" scoped>
|
|
23
|
-
.key-fact {
|
|
24
|
-
text-align: center;
|
|
25
|
-
padding: 10px;
|
|
26
|
-
width:100%;
|
|
27
|
-
|
|
28
|
-
ul {
|
|
29
|
-
padding: 0;
|
|
30
|
-
margin: 0;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
li {
|
|
34
|
-
list-style: none;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.fact-value {
|
|
38
|
-
font-size:2.4rem;
|
|
39
|
-
padding-bottom: 5px;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
.nil {
|
|
43
|
-
color: red;
|
|
44
|
-
}
|
|
45
|
-
</style>
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<div>
|
|
4
|
-
<div class="key-fact-group">
|
|
5
|
-
<div class="row">
|
|
6
|
-
<key-fact
|
|
7
|
-
v-for="keyfact in keyfacts"
|
|
8
|
-
:key="keyfact.id"
|
|
9
|
-
:keyfact="keyfact">
|
|
10
|
-
</key-fact>
|
|
11
|
-
</div>
|
|
12
|
-
</div>
|
|
13
|
-
</div>
|
|
14
|
-
</div>
|
|
15
|
-
</template>
|
|
16
|
-
|
|
17
|
-
<script>
|
|
18
|
-
|
|
19
|
-
import KeyFact from '@/components/KeyFacts/KeyFact.vue'
|
|
20
|
-
|
|
21
|
-
export default {
|
|
22
|
-
name: 'KeyFactGroup',
|
|
23
|
-
props: {
|
|
24
|
-
keyfacts: {
|
|
25
|
-
type: Array,
|
|
26
|
-
required: true
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
components: {
|
|
30
|
-
KeyFact
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
</script>
|
|
34
|
-
|
|
35
|
-
<style lang="scss" scoped>
|
|
36
|
-
|
|
37
|
-
.key-fact-group {
|
|
38
|
-
background-color: #46003C;
|
|
39
|
-
color:white;
|
|
40
|
-
padding: 10px;
|
|
41
|
-
border-radius:3px;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
</style>
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# Key Facts
|
|
2
|
-
```
|
|
3
|
-
<key-fact-group></key-fact-group>
|
|
4
|
-
```
|
|
5
|
-
## Key Fact Item
|
|
6
|
-
...
|
|
7
|
-
|
|
8
|
-
<key-fact
|
|
9
|
-
v-for="keyfact in keyfacts"
|
|
10
|
-
:key="keyfact.id"
|
|
11
|
-
:keyfact="keyfact">
|
|
12
|
-
</key-fact>
|
|
13
|
-
...
|
|
14
|
-
|
|
15
|
-
## Component Reference
|
|
16
|
-
|
|
17
|
-
### Properties
|
|
18
|
-
|
|
19
|
-
| Property | Type | Default Value | Description |
|
|
20
|
-
| --------- | ----- | -------------- | -------------- |
|
|
21
|
-
| keyfacts | Object | `{}` | Up to 6 keyfact objects can be displayed |
|
|
22
|
-
| value | Number | `` | This value is passed into the key fact component from the keyfacts object |
|
|
23
|
-
| label | String | `` | This value is passed into the key fact component from the keyfacts object |
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<div class="row mb-2" :key="name" v-for="(value, name) in items">
|
|
4
|
-
<div class="col-md-3 font-weight-bold">
|
|
5
|
-
{{ name }}:
|
|
6
|
-
</div>
|
|
7
|
-
<div class="col-md-9">
|
|
8
|
-
<span v-html="value"></span>
|
|
9
|
-
</div>
|
|
10
|
-
</div>
|
|
11
|
-
</div>
|
|
12
|
-
</template>
|
|
13
|
-
<script>
|
|
14
|
-
export default {
|
|
15
|
-
name: 'KeyInformation',
|
|
16
|
-
props: {
|
|
17
|
-
items: {
|
|
18
|
-
type: Object,
|
|
19
|
-
required: true
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
</script>
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
# Key Information
|
|
2
|
-
|
|
3
|
-
```
|
|
4
|
-
<key-information :items='items'></key-information>
|
|
5
|
-
```
|
|
6
|
-
|
|
7
|
-
Example data passed into the key information component:
|
|
8
|
-
|
|
9
|
-
```
|
|
10
|
-
{
|
|
11
|
-
"Full Name": "Mr Richard Branson",
|
|
12
|
-
"Legal Capacity": "Legal Owner",
|
|
13
|
-
"Mobile Number": "07411882800",
|
|
14
|
-
"Full Address": "Branson Towers<br> London<br> London<br> SW20 0AL<br> United Kingdom",
|
|
15
|
-
"Website Link": "<a href=\"https://www.branson-towers.co.uk\" target=\"_blank\">Branson Towers</a>"
|
|
16
|
-
}
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
## Component Reference
|
|
20
|
-
|
|
21
|
-
### Properties
|
|
22
|
-
|
|
23
|
-
| Property | Type | Default Value | Description |
|
|
24
|
-
| --------- | ----- | -------------- | -------------- |
|
|
25
|
-
| items | Object | `{}` | Required. Takes a basic json object of key/value pairs |
|
|
26
|
-
|
|
27
|
-
### Component Description
|
|
28
|
-
The key information component is a way of displaying text in neat rows and columns in key/value pairs
|
|
29
|
-
|
|
30
|
-
The key information component accepts html tags so links, buttons etc will display correctly.
|
|
31
|
-
|
|
32
|
-
The columns will stack on smaller viewports.
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="property-task-intro">
|
|
3
|
-
<div class="row">
|
|
4
|
-
<div class="col-12">
|
|
5
|
-
<h2>{{ property.address }}</h2> <a :href="property.url" target="_blank">View details</a>
|
|
6
|
-
</div>
|
|
7
|
-
<div class="col-12" v-if="branch">
|
|
8
|
-
<ul class="branch-info d-sm-flex">
|
|
9
|
-
<li><strong>{{property.branchName}}</strong></li>
|
|
10
|
-
<li>Telephone: <a :href="`tel: ${property.branchTelephone}`">{{property.branchTelephone}}</a></li>
|
|
11
|
-
<li>Email: <a :href="`mailto: ${property.branchEmail}`">{{property.branchEmail}}</a></li>
|
|
12
|
-
</ul>
|
|
13
|
-
</div>
|
|
14
|
-
<div class="col-12" v-if="bid">
|
|
15
|
-
<ul class="bid-info d-sm-flex" >
|
|
16
|
-
<li>Starting Bid: £{{property.startingBid}}</li>
|
|
17
|
-
<li>Contract signed: {{property.contractSigned}} <span>{{ property.contractTime }}</span></li>
|
|
18
|
-
</ul>
|
|
19
|
-
</div>
|
|
20
|
-
<div class="col-12" v-if="auction">
|
|
21
|
-
<ul class="auction-info d-sm-flex">
|
|
22
|
-
<li>Auction start date: {{property.auctionStartDate}}</li>
|
|
23
|
-
<li>Auction end date: {{property.auctionEndDate}}</li>
|
|
24
|
-
</ul>
|
|
25
|
-
</div>
|
|
26
|
-
</div>
|
|
27
|
-
</div>
|
|
28
|
-
</template>
|
|
29
|
-
<script>
|
|
30
|
-
export default {
|
|
31
|
-
name: 'PropertTaskIntro',
|
|
32
|
-
props: {
|
|
33
|
-
property: {
|
|
34
|
-
type: Object,
|
|
35
|
-
required: true
|
|
36
|
-
},
|
|
37
|
-
auction: {
|
|
38
|
-
type: Boolean,
|
|
39
|
-
default: false
|
|
40
|
-
},
|
|
41
|
-
bid: {
|
|
42
|
-
type: Boolean,
|
|
43
|
-
default: false
|
|
44
|
-
},
|
|
45
|
-
branch: {
|
|
46
|
-
type: Boolean,
|
|
47
|
-
default: false
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
</script>
|
|
52
|
-
<style lang="scss">
|
|
53
|
-
.property-task-intro {
|
|
54
|
-
span {
|
|
55
|
-
color:red;
|
|
56
|
-
padding-left: 10px;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
ul.auction-info, ul.bid-info, ul.branch-info {
|
|
61
|
-
list-style: none;
|
|
62
|
-
li {
|
|
63
|
-
padding-left: 15px;
|
|
64
|
-
|
|
65
|
-
&:first-of-type {
|
|
66
|
-
padding-left: 0;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
@media only screen and (max-width: 576px) {
|
|
70
|
-
padding-left: 0;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
</style>
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# Property Task Intro
|
|
2
|
-
```
|
|
3
|
-
<property-task-intro
|
|
4
|
-
v-for="property in properties"
|
|
5
|
-
:key="property.id"
|
|
6
|
-
:property="property"
|
|
7
|
-
/>
|
|
8
|
-
```
|
|
9
|
-
|
|
10
|
-
## Component Reference
|
|
11
|
-
|
|
12
|
-
### Properties
|
|
13
|
-
|
|
14
|
-
| Property | Type | Default Value | Description |
|
|
15
|
-
| --------- | ----- | -------------- | -------------- |
|
|
16
|
-
| property | Object | `` | An object of property values|
|
|
17
|
-
| url | String | `` | property url link|
|
|
18
|
-
| address | String | `` | property address|
|
|
19
|
-
| startingBid | Number | `` | property starting bid|
|
|
20
|
-
| contractSigned | String | `` | property contract signed|
|
|
21
|
-
| contractTime | String | `` | property contract time|
|
|
22
|
-
| auctionStartDate | String | `` | auction start date|
|
|
23
|
-
| auctionEndDate | String | `` | auction end date|
|
|
24
|
-
| branchName | String | `` | branch name|
|
|
25
|
-
| branchTelephone | String | `` | branch telephone number|
|
|
26
|
-
| branchEmail | String | `` | branch email address|
|
|
27
|
-
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# Task Title
|
|
2
|
-
```
|
|
3
|
-
<task-title variant="task-soft-green">Task title goes here</task-title>
|
|
4
|
-
```
|
|
5
|
-
|
|
6
|
-
## Component Reference
|
|
7
|
-
|
|
8
|
-
### Properties
|
|
9
|
-
|
|
10
|
-
| Property | Type | Default Value | Description |
|
|
11
|
-
| --------- | ----- | -------------- | -------------- |
|
|
12
|
-
| variant | String | `task-punchy-mustard` | Applies one of the theme colour variants to the component |
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
### Variant Options
|
|
16
|
-
|
|
17
|
-
- task-punchy-mustard
|
|
18
|
-
- task-homely-aubergine
|
|
19
|
-
- task-fresh-blue
|
|
20
|
-
- task-deep-slate
|
|
21
|
-
- task-soft-green
|
|
22
|
-
- task-soft-pink
|
|
23
|
-
- task-grey-50
|
|
24
|
-
- task-grey-70
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="task-title" :class="variant">
|
|
3
|
-
<slot></slot>
|
|
4
|
-
</div>
|
|
5
|
-
</template>
|
|
6
|
-
|
|
7
|
-
<script>
|
|
8
|
-
export default {
|
|
9
|
-
name: 'TaskTitle',
|
|
10
|
-
props: {
|
|
11
|
-
variant: {
|
|
12
|
-
required: false,
|
|
13
|
-
type: String,
|
|
14
|
-
default: 'task-punchy-mustard'
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
</script>
|
|
19
|
-
<style lang="scss">
|
|
20
|
-
|
|
21
|
-
$deep-slate: #00313C;
|
|
22
|
-
$soft-green: /*#b4e6a5*/ #9CCD86;
|
|
23
|
-
$homely-aubergine: #46003C;
|
|
24
|
-
$soft-pink: #ffd2d2;
|
|
25
|
-
$grey-70: #6f6f6f;
|
|
26
|
-
$grey-50: #9d9d9d;
|
|
27
|
-
$fresh-blue: #1ebee6;
|
|
28
|
-
$punchy-mustard: #ffa500;
|
|
29
|
-
|
|
30
|
-
/* Define the Sass Map $brand-colors */
|
|
31
|
-
$brand-colors: (
|
|
32
|
-
punchy-mustard: $punchy-mustard,
|
|
33
|
-
homely-aubergine: $homely-aubergine,
|
|
34
|
-
fresh-blue: $fresh-blue,
|
|
35
|
-
deep-slate: $deep-slate,
|
|
36
|
-
soft-green: $soft-green,
|
|
37
|
-
soft-pink: $soft-pink,
|
|
38
|
-
grey-50: $grey-50,
|
|
39
|
-
grey-70: $grey-70,
|
|
40
|
-
);
|
|
41
|
-
/* For each key in the map, create it's own class */
|
|
42
|
-
@each $name, $value in $brand-colors {
|
|
43
|
-
@if $value == $homely-aubergine or $value == $deep-slate or $value == $grey-70 {
|
|
44
|
-
.task-#{$name} {
|
|
45
|
-
background-color: $value;
|
|
46
|
-
h4 {
|
|
47
|
-
color: #fff;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
@else {
|
|
52
|
-
.task-#{$name} {
|
|
53
|
-
background-color: $value;
|
|
54
|
-
h4 {
|
|
55
|
-
color:#000;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.task-title {
|
|
62
|
-
border-radius: 0.5rem;
|
|
63
|
-
h4 {
|
|
64
|
-
padding: 0.8rem;
|
|
65
|
-
font-weight:normal;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
</style>
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
# Vendor Table
|
|
2
|
-
|
|
3
|
-
```
|
|
4
|
-
<vendor-table :items="items" :fields="fields"></vendor-table>
|
|
5
|
-
```
|
|
6
|
-
|
|
7
|
-
Example data passed for the vendor profile table:
|
|
8
|
-
|
|
9
|
-
```
|
|
10
|
-
data () {
|
|
11
|
-
return {
|
|
12
|
-
fields: [
|
|
13
|
-
{ key: 'basic_details' },
|
|
14
|
-
{ key: 'capacity' },
|
|
15
|
-
{ key: 'contact_details' },
|
|
16
|
-
{ key: 'address' },
|
|
17
|
-
{ key: 'point_of_contact' },
|
|
18
|
-
{ key: 'actions' }
|
|
19
|
-
],
|
|
20
|
-
items: [
|
|
21
|
-
{
|
|
22
|
-
basic_details: 'mr Richard Branson<br> (Mr Richard Branson)',
|
|
23
|
-
capacity: 'Legal owner',
|
|
24
|
-
contact_details: '07411882800 (Mobile)<br> 07411882800 (Main)',
|
|
25
|
-
address: 'Branson Towers<br> London<br> London<br> SW20 0AL<br> United Kingdom',
|
|
26
|
-
point_of_contact: 'None set',
|
|
27
|
-
actions: '<a href="#">View</a><br><a href="#">Point of Contact</a>'
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
basic_details: 'mrs Laura Branson<br> (Mrs Laura Branson)',
|
|
31
|
-
capacity: 'Legal owner',
|
|
32
|
-
contact_details: '07729797870 (Main)<br> 07729797870 (Mobile)',
|
|
33
|
-
address: 'Branson Towers<br> London<br> London<br> SW20 0AL<br> United Kingdom',
|
|
34
|
-
point_of_contact: 'None set',
|
|
35
|
-
actions: '<a href="#">View</a><br><a href="#">Point of Contact</a>'
|
|
36
|
-
}
|
|
37
|
-
]
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
## Component Reference
|
|
43
|
-
|
|
44
|
-
### Properties
|
|
45
|
-
|
|
46
|
-
| Property | Type | Default Value | Description |
|
|
47
|
-
| --------- | ----- | -------------- | -------------- |
|
|
48
|
-
| items | Array | `[]` | Table row data passed |
|
|
49
|
-
| fields | Array| `[]` | Table header titles |
|
|
50
|
-
| small | Boolean | `false` | Removes cell padding |
|
|
51
|
-
|
|
52
|
-
### Component Description
|
|
53
|
-
The vendor table component is a flexible table based on `<b-table>` from the bootstrap vue component library.
|
|
54
|
-
|
|
55
|
-
The table adapts to however many column items are needed to show various vendor information. fields define the order of the columns, and which columns to display.
|
|
56
|
-
|
|
57
|
-
The vendor table component accepts html tags so links, buttons etc will display correctly.
|
|
58
|
-
|
|
59
|
-
Table columns will stack on smaller viewports.
|
|
60
|
-
|
|
61
|
-
More information on the `<b-table>` component can be found at:
|
|
62
|
-
|
|
63
|
-
https://bootstrap-vue.org/docs/components/table
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="vendor-table">
|
|
3
|
-
<b-table stacked="sm" :small="small" :items="items" :fields="fields">
|
|
4
|
-
<template #cell()="data">
|
|
5
|
-
<span v-html="data.value"></span>
|
|
6
|
-
</template>
|
|
7
|
-
</b-table>
|
|
8
|
-
</div>
|
|
9
|
-
</template>
|
|
10
|
-
|
|
11
|
-
<script>
|
|
12
|
-
|
|
13
|
-
export default {
|
|
14
|
-
name: 'VendorTable',
|
|
15
|
-
props: {
|
|
16
|
-
items: {
|
|
17
|
-
type: Array,
|
|
18
|
-
required: true
|
|
19
|
-
},
|
|
20
|
-
fields: {
|
|
21
|
-
type: Array,
|
|
22
|
-
required: true
|
|
23
|
-
},
|
|
24
|
-
small: {
|
|
25
|
-
type: Boolean,
|
|
26
|
-
required: false
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
</script>
|
|
31
|
-
<style lang="scss">
|
|
32
|
-
|
|
33
|
-
.vendor-table {
|
|
34
|
-
font-size: 1.4rem;
|
|
35
|
-
|
|
36
|
-
.table {
|
|
37
|
-
thead {
|
|
38
|
-
background-color: #f7f7f7;
|
|
39
|
-
text-transform: lowercase;
|
|
40
|
-
div::first-letter {
|
|
41
|
-
text-transform: uppercase;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
tbody {
|
|
45
|
-
background-color: #f4f4f4;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
</style>
|