@iamproperty/components 2.5.1 → 2.6.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/assets/sass/_corefiles.scss +0 -1
- package/assets/sass/{foundations/fonts.scss → _fonts.scss} +0 -0
- package/assets/sass/_functions/mixins.scss +10 -0
- package/assets/sass/_print.scss +60 -0
- package/assets/sass/components/nav.scss +1 -1
- package/assets/sass/core.scss +3 -1
- package/assets/sass/elements/tables.scss +16 -6
- package/assets/sass/elements/type.scss +1 -1
- package/assets/sass/foundations/reboot.scss +4 -0
- package/assets/sass/foundations/root.scss +26 -24
- package/assets/sass/main.scss +2 -0
- package/dist/components.common.js +10 -6
- 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 +10 -6
- 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 +1 -1
- package/src/elements/Table/README.md +1 -0
- package/src/elements/Table/Table.vue +5 -1
|
File without changes
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
@mixin media-breakpoint-up($name, $breakpoints: $grid-breakpoints) {
|
|
2
|
+
$min: breakpoint-min($name, $breakpoints);
|
|
3
|
+
@if $min {
|
|
4
|
+
@media screen and (min-width: $min) {
|
|
5
|
+
@content;
|
|
6
|
+
}
|
|
7
|
+
} @else {
|
|
8
|
+
@content;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
1
11
|
|
|
2
12
|
// Example: @include prefix(transition, transform 1.5s, webkit ms o);
|
|
3
13
|
@mixin prefix($property, $value, $prefixes: (webkit ms o))
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
$printMedia: print!default;
|
|
2
|
+
@media #{$printMedia} {
|
|
3
|
+
:root {
|
|
4
|
+
--content-max-width: 100%;
|
|
5
|
+
}
|
|
6
|
+
html {
|
|
7
|
+
font-size: 11pt;
|
|
8
|
+
padding-left: 10px;
|
|
9
|
+
padding-right: 10px;
|
|
10
|
+
|
|
11
|
+
body {
|
|
12
|
+
background: white;
|
|
13
|
+
height: auto;
|
|
14
|
+
min-height: 100%;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
.container {
|
|
18
|
+
padding-left: 0;
|
|
19
|
+
padding-right: 0;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
}
|
|
22
|
+
.print-header {
|
|
23
|
+
background-image: linear-gradient(45deg, var(--colour-secondary) 0%, transparent 80%) !important;
|
|
24
|
+
}
|
|
25
|
+
p a[href^=http]:after,
|
|
26
|
+
p a[href^=mailto]:after,
|
|
27
|
+
a.youtube-embed:after {
|
|
28
|
+
content: " (" attr(href) ")";
|
|
29
|
+
display: inline!important;
|
|
30
|
+
color: inherit;
|
|
31
|
+
mask: none;
|
|
32
|
+
-webkit-mask: none;
|
|
33
|
+
background: none;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// Nav fixes
|
|
37
|
+
.nav {
|
|
38
|
+
position: relative;
|
|
39
|
+
box-shadow: none!important;
|
|
40
|
+
}
|
|
41
|
+
.nav [class*="col"]:not(.nav__logo){
|
|
42
|
+
display: none;
|
|
43
|
+
}
|
|
44
|
+
nav + main > *:first-child {
|
|
45
|
+
padding-top: 0;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
@media print {
|
|
49
|
+
|
|
50
|
+
html {
|
|
51
|
+
padding: 0;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
tr, img, svg, li {
|
|
55
|
+
break-inside: avoid;
|
|
56
|
+
}
|
|
57
|
+
[class*="bg-"]:not(.print-header) {
|
|
58
|
+
background: none!important;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
display: flex;
|
|
8
8
|
flex-direction: column;
|
|
9
9
|
flex-wrap: nowrap;
|
|
10
|
-
overflow: auto;
|
|
11
10
|
|
|
12
11
|
> .container {
|
|
13
12
|
|
|
@@ -258,6 +257,7 @@ nav + main > *:first-child {
|
|
|
258
257
|
#showMenu:checked ~ .nav__inner {
|
|
259
258
|
|
|
260
259
|
height: 100vh;
|
|
260
|
+
overflow: auto;
|
|
261
261
|
}
|
|
262
262
|
|
|
263
263
|
#showMenu:checked ~ div .nav__menu,
|
package/assets/sass/core.scss
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
// #region Default table
|
|
2
2
|
table {
|
|
3
|
+
--border-width: 2px;
|
|
4
|
+
--inner-border-width: 1px;
|
|
3
5
|
width: 100%;
|
|
4
6
|
font-size: rem(16);
|
|
5
7
|
border: none;
|
|
@@ -27,18 +29,18 @@ th {
|
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
tr {
|
|
30
|
-
border-bottom:
|
|
32
|
+
border-bottom: var(--inner-border-width) solid currentColor;
|
|
31
33
|
@include var(border-color,--colour-border);
|
|
32
34
|
|
|
33
35
|
&:last-child {
|
|
34
|
-
border-bottom:
|
|
36
|
+
border-bottom: var(--border-width) solid currentColor;
|
|
35
37
|
@include var(border-color,--colour-border);
|
|
36
38
|
}
|
|
37
39
|
}
|
|
38
40
|
|
|
39
41
|
thead {
|
|
40
42
|
tr:first-child {
|
|
41
|
-
border-top:
|
|
43
|
+
border-top: var(--border-width) solid currentColor;
|
|
42
44
|
@include var(border-color,--colour-border);
|
|
43
45
|
}
|
|
44
46
|
|
|
@@ -50,20 +52,28 @@ thead {
|
|
|
50
52
|
@include media-breakpoint-up(sm) {
|
|
51
53
|
|
|
52
54
|
font-size: rem(18);
|
|
55
|
+
white-space: nowrap;
|
|
53
56
|
}
|
|
54
57
|
|
|
55
58
|
font-weight: bold;
|
|
56
59
|
vertical-align: bottom;
|
|
57
|
-
white-space: nowrap;
|
|
58
60
|
}
|
|
59
61
|
}
|
|
60
62
|
|
|
61
63
|
tbody:first-child{
|
|
62
64
|
tr:first-child {
|
|
63
|
-
border-top:
|
|
65
|
+
border-top: var(--border-width) solid currentColor;
|
|
64
66
|
@include var(border-color,--colour-border);
|
|
65
67
|
}
|
|
66
68
|
}
|
|
69
|
+
|
|
70
|
+
.table__wrapper.border-0 table,
|
|
71
|
+
table.border-0 {
|
|
72
|
+
|
|
73
|
+
--border-width: 0px;
|
|
74
|
+
--inner-border-width: 0px;
|
|
75
|
+
}
|
|
76
|
+
|
|
67
77
|
// #endregion
|
|
68
78
|
|
|
69
79
|
// #region Table wrapper - Add via JS if needed, provides a safe space to scroll
|
|
@@ -85,7 +95,7 @@ tbody:first-child{
|
|
|
85
95
|
// #endregion
|
|
86
96
|
|
|
87
97
|
// #region Tables are only stacked on mobile
|
|
88
|
-
@media (max-width: 36em) {
|
|
98
|
+
@media screen and (max-width: 36em) {
|
|
89
99
|
.table__wrapper:not(.table-fullwidth) {
|
|
90
100
|
thead {
|
|
91
101
|
display: none;
|
|
@@ -14,32 +14,34 @@
|
|
|
14
14
|
--colour-heading: var(--colour-primary);
|
|
15
15
|
--alpha: var(--bs-bg-opacity);
|
|
16
16
|
--#{$variable-prefix}gradient: #{$gradient};
|
|
17
|
+
--content-max-width: #{$content-max-width};
|
|
17
18
|
}
|
|
18
19
|
|
|
20
|
+
@media screen {
|
|
21
|
+
/* Override the colours when on a drark background */
|
|
22
|
+
.bg-primary:not(.prevent-invert),
|
|
23
|
+
.bg-dark:not(.prevent-invert),
|
|
24
|
+
.bg-danger:not(.prevent-invert),
|
|
25
|
+
.invert-colours {
|
|
26
|
+
> * {
|
|
19
27
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
--colour-
|
|
28
|
-
--colour-
|
|
29
|
-
--colour-
|
|
30
|
-
--colour-
|
|
28
|
+
--colour-secondary-rgb: 255,255,255;
|
|
29
|
+
--colour-primary-rgb: 255,255,255;
|
|
30
|
+
--colour-secondary: white;
|
|
31
|
+
--colour-primary: white;
|
|
32
|
+
}
|
|
33
|
+
--colour-body: white;
|
|
34
|
+
--colour-link: white;
|
|
35
|
+
--colour-hover: white;
|
|
36
|
+
--colour-active: white;
|
|
37
|
+
--colour-heading: white;
|
|
38
|
+
--colour-underline: white;
|
|
39
|
+
--colour-border: white;
|
|
40
|
+
color: white;
|
|
31
41
|
}
|
|
32
|
-
--colour-body: white;
|
|
33
|
-
--colour-link: white;
|
|
34
|
-
--colour-hover: white;
|
|
35
|
-
--colour-active: white;
|
|
36
|
-
--colour-heading: white;
|
|
37
|
-
--colour-underline: white;
|
|
38
|
-
--colour-border: white;
|
|
39
|
-
color: white;
|
|
40
|
-
}
|
|
41
42
|
|
|
42
|
-
.bg-light:not(.prevent-invert) {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
43
|
+
.bg-light:not(.prevent-invert) {
|
|
44
|
+
--colour-heading: var(--colour-dark);
|
|
45
|
+
color: var(--colour-dark);
|
|
46
|
+
}
|
|
47
|
+
}
|
package/assets/sass/main.scss
CHANGED
|
@@ -696,16 +696,16 @@ var Logo_component = normalizeComponent(
|
|
|
696
696
|
)
|
|
697
697
|
|
|
698
698
|
/* harmony default export */ var Logo = (Logo_component.exports);
|
|
699
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5b04c7e2-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/elements/Table/Table.vue?vue&type=template&id=
|
|
700
|
-
var
|
|
699
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"5b04c7e2-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/elements/Table/Table.vue?vue&type=template&id=4b6328a7&
|
|
700
|
+
var Tablevue_type_template_id_4b6328a7_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"wrapper",staticClass:"table__wrapper",attrs:{"data-sortby":_vm.sortby,"data-sort":_vm.sort,"data-show":_vm.show,"data-page":_vm.page,"data-reorder":_vm.reorder}},[_c('table',[(_vm.fields)?_c('thead',[_c('tr',{class:_vm.headingclass},_vm._l((_vm.fields),function(field){return _c('th',{key:field.key,attrs:{"data-sortable":field.sortable,"data-filterable":field.filterable}},[_vm._v(_vm._s(_vm.cellHeading(field.key)))])}),0)]):_vm._e(),(_vm.items)?_c('tbody',_vm._l((_vm.items),function(value,index){return _c('tr',{key:index,attrs:{"data-row-id":value['rowid']}},_vm._l((Object.fromEntries(Object.entries(value).filter(function (ref) {
|
|
701
701
|
var key = ref[0];
|
|
702
702
|
|
|
703
703
|
return key !== 'rowid';
|
|
704
704
|
}))),function(cellValue,cellIndex){return _c('td',{key:cellIndex,attrs:{"data-label":_vm.cellHeading(cellIndex),"data-numeric":_vm.numericValue(cellValue)},domProps:{"innerHTML":_vm._s(cellValue)}})}),0)}),0):_vm._e()]),_vm._t("default")],2)}
|
|
705
|
-
var
|
|
705
|
+
var Tablevue_type_template_id_4b6328a7_staticRenderFns = []
|
|
706
706
|
|
|
707
707
|
|
|
708
|
-
// CONCATENATED MODULE: ./src/elements/Table/Table.vue?vue&type=template&id=
|
|
708
|
+
// CONCATENATED MODULE: ./src/elements/Table/Table.vue?vue&type=template&id=4b6328a7&
|
|
709
709
|
|
|
710
710
|
// CONCATENATED MODULE: ./src/helpers/strings.js
|
|
711
711
|
var ucfirst = str => str.charAt(0).toUpperCase() + str.slice(1);
|
|
@@ -1263,6 +1263,10 @@ function table(tableElement) {
|
|
|
1263
1263
|
type: String,
|
|
1264
1264
|
required: false
|
|
1265
1265
|
},
|
|
1266
|
+
headingclass: {
|
|
1267
|
+
type: String,
|
|
1268
|
+
required: false
|
|
1269
|
+
},
|
|
1266
1270
|
items: {
|
|
1267
1271
|
type: Array,
|
|
1268
1272
|
required: true
|
|
@@ -1335,8 +1339,8 @@ function table(tableElement) {
|
|
|
1335
1339
|
|
|
1336
1340
|
var Table_component = normalizeComponent(
|
|
1337
1341
|
Table_Tablevue_type_script_lang_js_,
|
|
1338
|
-
|
|
1339
|
-
|
|
1342
|
+
Tablevue_type_template_id_4b6328a7_render,
|
|
1343
|
+
Tablevue_type_template_id_4b6328a7_staticRenderFns,
|
|
1340
1344
|
false,
|
|
1341
1345
|
null,
|
|
1342
1346
|
null,
|