@iamproperty/components 7.0.0 → 7.1.0--beta2
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/actionbar.css.map +1 -1
- package/assets/css/components/actionbar.global.css.map +1 -1
- package/assets/css/components/address-lookup.css.map +1 -1
- package/assets/css/components/applied-filters.css.map +1 -1
- package/assets/css/components/barchart.component.css +1 -1
- package/assets/css/components/barchart.component.css.map +1 -1
- package/assets/css/components/card.component.css +1 -1
- package/assets/css/components/card.component.css.map +1 -1
- package/assets/css/components/card.module.css.map +1 -1
- package/assets/css/components/carousel.component.css +1 -1
- package/assets/css/components/carousel.component.css.map +1 -1
- package/assets/css/components/carousel.config.css.map +1 -1
- package/assets/css/components/charts.config.css.map +1 -1
- package/assets/css/components/charts.css +1 -1
- package/assets/css/components/charts.css.map +1 -1
- package/assets/css/components/charts.module.css +1 -1
- package/assets/css/components/charts.module.css.map +1 -1
- package/assets/css/components/collapsible-side.css.map +1 -1
- package/assets/css/components/fileupload.css.map +1 -1
- package/assets/css/components/filter-card.component.css.map +1 -1
- package/assets/css/components/header.css.map +1 -1
- package/assets/css/components/inline-edit.css.map +1 -1
- package/assets/css/components/inline-edit.preload.css.map +1 -1
- package/assets/css/components/marketing.css.map +1 -1
- package/assets/css/components/multi-step.component.css.map +1 -1
- package/assets/css/components/multiselect.css +1 -1
- package/assets/css/components/multiselect.css.map +1 -1
- package/assets/css/components/multiselect.preload.css.map +1 -1
- package/assets/css/components/nav.css +1 -1
- package/assets/css/components/nav.css.map +1 -1
- package/assets/css/components/nav.docs.css.map +1 -1
- package/assets/css/components/nav.global.css +1 -1
- package/assets/css/components/nav.global.css.map +1 -1
- package/assets/css/components/nav.old.css +1 -1
- package/assets/css/components/nav.old.css.map +1 -1
- package/assets/css/components/nav.preload.css.map +1 -1
- package/assets/css/components/notification.css.map +1 -1
- package/assets/css/components/notification.global.css.map +1 -1
- package/assets/css/components/pagination.css.map +1 -1
- package/assets/css/components/property-searchbar.css +1 -1
- package/assets/css/components/property-searchbar.css.map +1 -1
- package/assets/css/components/record-card.component.css.map +1 -1
- package/assets/css/components/slider.css.map +1 -1
- package/assets/css/components/snapshot.css.map +1 -1
- package/assets/css/components/stepper.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/table.global.css +1 -1
- package/assets/css/components/table.global.css.map +1 -1
- package/assets/css/components/tabs.css.map +1 -1
- package/assets/css/components/testimonial.css.map +1 -1
- package/assets/css/components/timeline.css +1 -1
- package/assets/css/components/timeline.css.map +1 -1
- package/assets/css/components/video-card.component.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/_global.js +8 -8
- package/assets/js/components/accordion/accordion.component.js +13 -10
- package/assets/js/components/accordion/accordion.component.min.js +4 -4
- package/assets/js/components/accordion/accordion.component.min.js.map +1 -1
- package/assets/js/components/actionbar/actionbar.component.js +97 -83
- package/assets/js/components/actionbar/actionbar.component.min.js +5 -5
- package/assets/js/components/actionbar/actionbar.component.min.js.map +1 -1
- package/assets/js/components/address-lookup/address-lookup.component.js +30 -26
- package/assets/js/components/address-lookup/address-lookup.component.min.js +4 -4
- package/assets/js/components/address-lookup/address-lookup.component.min.js.map +1 -1
- package/assets/js/components/applied-filters/applied-filters.component.js +10 -6
- package/assets/js/components/applied-filters/applied-filters.component.min.js +3 -3
- package/assets/js/components/applied-filters/applied-filters.component.min.js.map +1 -1
- package/assets/js/components/barchart/barchart.component.js +8 -7
- package/assets/js/components/barchart/barchart.component.min.js +4 -4
- package/assets/js/components/barchart/barchart.component.min.js.map +1 -1
- package/assets/js/components/card/card.component.js +27 -12
- package/assets/js/components/card/card.component.min.js +3 -3
- package/assets/js/components/card/card.component.min.js.map +1 -1
- package/assets/js/components/carousel/carousel.component.js +18 -12
- package/assets/js/components/carousel/carousel.component.min.js +4 -4
- package/assets/js/components/carousel/carousel.component.min.js.map +1 -1
- package/assets/js/components/chart/chart.component.js +9 -8
- package/assets/js/components/collapsible-side/collapsible-side.component.js +20 -8
- package/assets/js/components/collapsible-side/collapsible-side.component.min.js +1 -1
- package/assets/js/components/collapsible-side/collapsible-side.component.min.js.map +1 -1
- package/assets/js/components/fileupload/fileupload.component.js +11 -7
- package/assets/js/components/fileupload/fileupload.component.min.js +2 -2
- package/assets/js/components/fileupload/fileupload.component.min.js.map +1 -1
- package/assets/js/components/filter-card/filter-card.component.js +19 -9
- package/assets/js/components/filter-card/filter-card.component.min.js +2 -2
- package/assets/js/components/filter-card/filter-card.component.min.js.map +1 -1
- package/assets/js/components/filterlist/filterlist.component.js +10 -6
- package/assets/js/components/filterlist/filterlist.component.min.js +3 -3
- package/assets/js/components/filterlist/filterlist.component.min.js.map +1 -1
- package/assets/js/components/header/header.component.js +8 -4
- package/assets/js/components/header/header.component.min.js +1 -1
- package/assets/js/components/header/header.component.min.js.map +1 -1
- package/assets/js/components/inline-edit/inline-edit.component.js +43 -23
- package/assets/js/components/inline-edit/inline-edit.component.min.js +4 -4
- package/assets/js/components/inline-edit/inline-edit.component.min.js.map +1 -1
- package/assets/js/components/marketing/marketing.component.js +11 -5
- package/assets/js/components/marketing/marketing.component.min.js +1 -1
- package/assets/js/components/marketing/marketing.component.min.js.map +1 -1
- package/assets/js/components/multi-step/multi-step.component.js +22 -19
- package/assets/js/components/multiselect/multiselect.component.js +62 -45
- package/assets/js/components/multiselect/multiselect.component.min.js +5 -5
- package/assets/js/components/multiselect/multiselect.component.min.js.map +1 -1
- package/assets/js/components/nav/nav.component.js +57 -38
- package/assets/js/components/nav/nav.component.min.js +5 -5
- package/assets/js/components/nav/nav.component.min.js.map +1 -1
- package/assets/js/components/notification/notification.component.js +9 -5
- package/assets/js/components/notification/notification.component.min.js +5 -5
- package/assets/js/components/notification/notification.component.min.js.map +1 -1
- package/assets/js/components/pagination/pagination.component.js +18 -14
- package/assets/js/components/pagination/pagination.component.min.js +2 -2
- package/assets/js/components/pagination/pagination.component.min.js.map +1 -1
- package/assets/js/components/record-card/record-card.component.js +10 -8
- package/assets/js/components/record-card/record-card.component.min.js +2 -2
- package/assets/js/components/record-card/record-card.component.min.js.map +1 -1
- package/assets/js/components/search/search.component.js +22 -17
- package/assets/js/components/search/search.component.min.js +4 -4
- package/assets/js/components/search/search.component.min.js.map +1 -1
- package/assets/js/components/slider/slider.component.js +25 -21
- package/assets/js/components/slider/slider.component.min.js +3 -3
- package/assets/js/components/slider/slider.component.min.js.map +1 -1
- package/assets/js/components/table/table.component.js +30 -24
- package/assets/js/components/table/table.component.min.js +7 -7
- package/assets/js/components/table/table.component.min.js.map +1 -1
- package/assets/js/components/tabs/tabs.component.js +10 -6
- 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/components/video-card/video-card.component.js +45 -33
- package/assets/js/components/video-card/video-card.component.min.js +3 -3
- package/assets/js/components/video-card/video-card.component.min.js.map +1 -1
- package/assets/js/components.bundle.js +1 -1
- package/assets/js/components.bundle.js.map +1 -1
- package/assets/js/components.js +35 -8
- package/assets/js/modules/applied-filters.js +20 -20
- package/assets/js/modules/carousel.js +65 -60
- package/assets/js/modules/chart.js +184 -134
- package/assets/js/modules/chart.module.js +74 -63
- package/assets/js/modules/data-layer.js +17 -17
- package/assets/js/modules/dialogs.js +47 -38
- package/assets/js/modules/drawer.js +1 -1
- package/assets/js/modules/dynamicEvents.js +24 -24
- package/assets/js/modules/file-upload.js +8 -9
- package/assets/js/modules/fileupload.js +5 -5
- package/assets/js/modules/filterlist.js +4 -4
- package/assets/js/modules/form.js +22 -18
- package/assets/js/modules/helpers.js +54 -44
- package/assets/js/modules/inputs.js +25 -21
- package/assets/js/modules/nav.js +3 -1
- package/assets/js/modules/notification.js +6 -6
- package/assets/js/modules/orderablelist.js +12 -12
- package/assets/js/modules/pagination.js +5 -5
- package/assets/js/modules/table.js +242 -181
- package/assets/js/modules/tabs.js +71 -60
- package/assets/js/modules/testimonial.js +11 -12
- package/assets/js/scripts.bundle.js +1 -1
- package/assets/js/scripts.bundle.js.map +1 -1
- package/assets/js/scripts.bundle.min.js +1 -1
- package/assets/js/scripts.bundle.min.js.map +1 -1
- package/assets/js/scripts.js +1 -1
- package/assets/js/tests/chart.spec.js +5 -5
- package/assets/js/tests/filterlist.spec.js +2 -2
- package/assets/js/tests/slider.spec.js +2 -2
- package/assets/js/tests/table.spec.js +2 -2
- package/assets/js/vendor/hibp.js +4 -4
- package/assets/sass/_components.scss +28 -40
- package/assets/sass/_corefiles.scss +22 -29
- package/assets/sass/_elements.scss +19 -19
- package/assets/sass/_fonts.scss +10 -7
- package/assets/sass/_func.scss +14 -14
- package/assets/sass/_functions/functions.scss +115 -90
- package/assets/sass/_functions/mixins.scss +72 -112
- package/assets/sass/_functions/utilities.scss +447 -393
- package/assets/sass/_functions/variables.scss +1357 -1371
- package/assets/sass/_print.scss +18 -16
- package/assets/sass/_tests/colours.spec.scss +15 -14
- package/assets/sass/_tests/func.spec.scss +1 -2
- package/assets/sass/_tests/mixins.spec.scss +9 -14
- package/assets/sass/_tests/typography.spec.scss +1 -2
- package/assets/sass/_utilities.scss +8 -12
- package/assets/sass/components/actionbar.global.scss +45 -64
- package/assets/sass/components/actionbar.scss +58 -84
- package/assets/sass/components/address-lookup.scss +9 -11
- package/assets/sass/components/applied-filters.scss +3 -7
- package/assets/sass/components/barchart.component.scss +68 -99
- package/assets/sass/components/card.component.scss +35 -50
- package/assets/sass/components/card.module.scss +34 -37
- package/assets/sass/components/carousel.component.scss +198 -177
- package/assets/sass/components/carousel.config.scss +13 -19
- package/assets/sass/components/charts.config.scss +16 -23
- package/assets/sass/components/charts.module.scss +139 -178
- package/assets/sass/components/charts.scss +173 -232
- package/assets/sass/components/collapsible-side.scss +65 -98
- package/assets/sass/components/fileupload.scss +17 -23
- package/assets/sass/components/filter-card.component.scss +21 -28
- package/assets/sass/components/header.scss +24 -37
- package/assets/sass/components/inline-edit.preload.scss +24 -45
- package/assets/sass/components/inline-edit.scss +4 -5
- package/assets/sass/components/marketing.scss +19 -14
- package/assets/sass/components/multi-step.component.scss +36 -42
- package/assets/sass/components/multiselect.preload.scss +9 -12
- package/assets/sass/components/multiselect.scss +20 -24
- package/assets/sass/components/nav.docs.scss +7 -15
- package/assets/sass/components/nav.global.scss +123 -177
- package/assets/sass/components/nav.old.scss +64 -135
- package/assets/sass/components/nav.preload.scss +11 -12
- package/assets/sass/components/nav.scss +126 -173
- package/assets/sass/components/notification.global.scss +2 -3
- package/assets/sass/components/notification.scss +17 -32
- package/assets/sass/components/pagination.scss +32 -44
- package/assets/sass/components/property-searchbar.scss +2 -6
- package/assets/sass/components/record-card.component.scss +42 -55
- package/assets/sass/components/slider.scss +38 -35
- package/assets/sass/components/snapshot.scss +4 -10
- package/assets/sass/components/stepper.scss +14 -22
- package/assets/sass/components/table.global.scss +130 -171
- package/assets/sass/components/table.scss +17 -27
- package/assets/sass/components/tabs.scss +23 -32
- package/assets/sass/components/testimonial.scss +6 -14
- package/assets/sass/components/timeline.scss +8 -12
- package/assets/sass/components/video-card.component.scss +9 -14
- package/assets/sass/components.reset.scss +5 -5
- package/assets/sass/core.scss +3 -3
- package/assets/sass/elements/admin-panel.scss +41 -45
- package/assets/sass/elements/badge-tag.scss +16 -26
- package/assets/sass/elements/brand.scss +13 -16
- package/assets/sass/elements/buttons.scss +80 -106
- package/assets/sass/elements/container.scss +24 -133
- package/assets/sass/elements/details.scss +30 -50
- package/assets/sass/elements/dialog.scss +4 -6
- package/assets/sass/elements/forms.scss +421 -437
- package/assets/sass/elements/icons.scss +3 -4
- package/assets/sass/elements/links.scss +17 -25
- package/assets/sass/elements/lists.scss +30 -47
- package/assets/sass/elements/media.scss +1 -4
- package/assets/sass/elements/modal.scss +54 -80
- package/assets/sass/elements/popover.scss +28 -45
- package/assets/sass/elements/progress.scss +30 -40
- package/assets/sass/elements/table.element.scss +10 -15
- package/assets/sass/elements/tooltips.scss +27 -49
- package/assets/sass/elements/type.scss +47 -53
- package/assets/sass/email.scss +7 -9
- package/assets/sass/error.scss +23 -20
- package/assets/sass/foundations/bs_grid.scss +0 -1
- package/assets/sass/foundations/grid.scss +120 -122
- package/assets/sass/foundations/reboot.scss +27 -35
- package/assets/sass/foundations/root.scss +21 -31
- package/assets/sass/helpers/dynamic.scss +5 -5
- package/assets/sass/helpers/line-clamp.scss +1 -2
- package/assets/sass/helpers/max-height.scss +28 -36
- package/assets/sass/helpers/wider-colours.scss +2 -5
- package/assets/sass/main.scss +4 -4
- package/assets/sass/templates/auth.scss +11 -18
- package/assets/sass/templates/form.scss +16 -29
- package/assets/ts/components/_global.ts +14 -17
- package/assets/ts/components/accordion/accordion.component.ts +23 -19
- package/assets/ts/components/actionbar/README.md +8 -7
- package/assets/ts/components/actionbar/actionbar.component.ts +170 -220
- package/assets/ts/components/address-lookup/address-lookup.component.ts +94 -130
- package/assets/ts/components/applied-filters/README.md +1 -1
- package/assets/ts/components/applied-filters/applied-filters.component.ts +16 -15
- package/assets/ts/components/barchart/barchart.component.ts +29 -26
- package/assets/ts/components/card/card.component.ts +56 -57
- package/assets/ts/components/carousel/README.md +8 -9
- package/assets/ts/components/carousel/carousel.component.ts +30 -33
- package/assets/ts/components/chart/README.md +1 -3
- package/assets/ts/components/chart/chart.component.ts +24 -36
- package/assets/ts/components/collapsible-side/README.md +1 -1
- package/assets/ts/components/collapsible-side/collapsible-side.component.ts +44 -57
- package/assets/ts/components/fileupload/README.md +3 -3
- package/assets/ts/components/fileupload/fileupload.component.ts +23 -28
- package/assets/ts/components/filter-card/filter-card.component.ts +32 -33
- package/assets/ts/components/filterlist/README.md +3 -3
- package/assets/ts/components/filterlist/filterlist.component.ts +18 -16
- package/assets/ts/components/header/README.md +8 -9
- package/assets/ts/components/header/header.component.ts +15 -16
- package/assets/ts/components/inline-edit/README.md +1 -0
- package/assets/ts/components/inline-edit/inline-edit.component.ts +71 -71
- package/assets/ts/components/marketing/marketing.component.ts +17 -16
- package/assets/ts/components/multi-step/multi-step.component.ts +114 -156
- package/assets/ts/components/multiselect/README.md +5 -5
- package/assets/ts/components/multiselect/multiselect.component.ts +116 -133
- package/assets/ts/components/nav/README.md +13 -13
- package/assets/ts/components/nav/nav.component.ts +171 -167
- package/assets/ts/components/notification/README.md +9 -9
- package/assets/ts/components/notification/notification.component.ts +33 -32
- package/assets/ts/components/pagination/README.md +12 -12
- package/assets/ts/components/pagination/pagination.component.ts +51 -69
- package/assets/ts/components/record-card/record-card.component.ts +24 -34
- package/assets/ts/components/search/README.md +6 -7
- package/assets/ts/components/search/search.component.ts +75 -91
- package/assets/ts/components/slider/slider.component.ts +62 -77
- package/assets/ts/components/table/README.md +8 -8
- package/assets/ts/components/table/table.component.ts +97 -134
- package/assets/ts/components/tabs/README.md +4 -4
- package/assets/ts/components/tabs/tabs.component.ts +16 -14
- package/assets/ts/components/video-card/video-card.component.ts +89 -93
- package/assets/ts/components.ts +44 -20
- package/assets/ts/html.d.ts +1 -7
- package/assets/ts/modules/applied-filters.ts +104 -135
- package/assets/ts/modules/card.module.ts +13 -18
- package/assets/ts/modules/carousel.ts +194 -195
- package/assets/ts/modules/chart.module.ts +201 -246
- package/assets/ts/modules/chart.ts +454 -472
- package/assets/ts/modules/data-layer.md +35 -31
- package/assets/ts/modules/data-layer.ts +18 -18
- package/assets/ts/modules/dialogs.ts +113 -117
- package/assets/ts/modules/drawer.ts +7 -9
- package/assets/ts/modules/dynamicEvents.ts +67 -100
- package/assets/ts/modules/file-upload.ts +43 -40
- package/assets/ts/modules/fileupload.ts +38 -60
- package/assets/ts/modules/filterlist.ts +14 -20
- package/assets/ts/modules/form.ts +126 -128
- package/assets/ts/modules/helpers.ts +114 -120
- package/assets/ts/modules/inputs.ts +88 -120
- package/assets/ts/modules/nav.ts +19 -18
- package/assets/ts/modules/notification.ts +28 -32
- package/assets/ts/modules/orderablelist.ts +90 -82
- package/assets/ts/modules/pagination.ts +14 -19
- package/assets/ts/modules/table.ts +516 -599
- package/assets/ts/modules/tabs.ts +120 -145
- package/assets/ts/modules/testimonial.ts +59 -64
- package/assets/ts/scripts.ts +7 -9
- package/assets/ts/tests/chart.spec.ts +11 -20
- package/assets/ts/tests/data-layer.spec.js +3 -4
- package/assets/ts/tests/filterlist.spec.ts +3 -6
- package/assets/ts/tests/slider.spec.ts +9 -15
- package/assets/ts/tests/table.spec.ts +7 -24
- package/assets/ts/vendor/hibp.ts +43 -43
- package/dist/components.es.js +280 -270
- package/dist/components.umd.js +67 -67
- package/dist/style.css +1 -1
- package/package.json +14 -4
- package/src/components/Accordion/Accordion.spec.js +25 -31
- package/src/components/Accordion/Accordion.vue +16 -19
- package/src/components/Accordion/AccordionItem.vue +39 -37
- package/src/components/Accordion/README.md +10 -12
- package/src/components/Actionbar/Actionbar.vue +15 -18
- package/src/components/Actionbar/README.md +8 -7
- package/src/components/AddressLookup/AddressLookup.vue +14 -16
- package/src/components/AppliedFilters/AppliedFilters.vue +14 -16
- package/src/components/Banner/Banner.spec.js +13 -15
- package/src/components/Banner/Banner.vue +19 -19
- package/src/components/Banner/README.md +8 -10
- package/src/components/BarChart/BarChart.vue +14 -16
- package/src/components/Card/Card.vue +13 -16
- package/src/components/Card/README.md +8 -8
- package/src/components/Carousel/Carousel.vue +15 -18
- package/src/components/Carousel/README.md +7 -7
- package/src/components/Chart/Chart.spec.js +64 -87
- package/src/components/Chart/Chart.vue +41 -40
- package/src/components/Chart/README.md +8 -9
- package/src/components/CollapsibleSideMenu/CollapsibleSideMenu.vue +8 -10
- package/src/components/CollapsibleSideMenu/README.md +1 -1
- package/src/components/FileUpload/FileUpload.vue +35 -40
- package/src/components/FileUpload/README.md +3 -3
- package/src/components/FilterCard/FilterCard.vue +14 -16
- package/src/components/Filterlist/Filterlist.vue +7 -9
- package/src/components/Filterlist/README.md +3 -3
- package/src/components/Header/Header.vue +23 -26
- package/src/components/Header/README.md +8 -9
- package/src/components/InlineEdit/InlineEdit.vue +26 -32
- package/src/components/Input/Input.vue +323 -233
- package/src/components/Input/README.md +11 -11
- package/src/components/Marketing/Marketing.vue +24 -27
- package/src/components/Marketing/README.md +7 -7
- package/src/components/MultiStep/MultiStep.vue +13 -15
- package/src/components/Multiselect/Multiselect.vue +14 -17
- package/src/components/Nav/Nav.vue +15 -29
- package/src/components/Nav/README.md +12 -12
- package/src/components/Nav-old/Nav.vue +88 -93
- package/src/components/Nav-old/README.md +11 -12
- package/src/components/NoteFeed/NoteFeed.vue +59 -56
- package/src/components/NoteFeed/README.md +6 -6
- package/src/components/Notification/Notification.vue +11 -15
- package/src/components/Notification/README.md +9 -9
- package/src/components/Pagination/Pagination.vue +14 -24
- package/src/components/Pagination/README.md +12 -12
- package/src/components/PropertySearchbar/PropertySearchbar.vue +191 -160
- package/src/components/PropertySearchbar/README.md +14 -15
- package/src/components/RecordCard/RecordCard.vue +14 -16
- package/src/components/Search/README.md +1 -1
- package/src/components/Search/Search.vue +13 -16
- package/src/components/Slider/Slider.vue +13 -16
- package/src/components/Snapshot/README.md +9 -10
- package/src/components/Snapshot/Snapshot.vue +15 -17
- package/src/components/Stepper/README.md +12 -13
- package/src/components/Stepper/Step.vue +22 -18
- package/src/components/Stepper/Stepper.spec.js +41 -46
- package/src/components/Stepper/Stepper.vue +17 -18
- package/src/components/Table/README.md +12 -11
- package/src/components/Table/Table.spec.js +17 -28
- package/src/components/Table/Table.vue +49 -48
- package/src/components/Tabs/README.md +8 -8
- package/src/components/Tabs/Tab.vue +21 -21
- package/src/components/Tabs/Tabs.vue +14 -17
- package/src/components/Testimonial/README.md +11 -12
- package/src/components/Testimonial/Testimonial.spec.js +22 -26
- package/src/components/Testimonial/Testimonial.vue +31 -25
- package/src/components/Timeline/README.md +3 -3
- package/src/components/Timeline/Timeline.spec.js +9 -11
- package/src/components/Timeline/Timeline.vue +10 -10
- package/src/components/VideoCard/VideoCard.vue +14 -16
- package/src/foundations/Logo/Logo.spec.js +30 -30
- package/src/foundations/Logo/Logo.vue +28 -28
- package/src/foundations/Logo/README.md +5 -4
- package/src/helpers/strings.js +11 -8
- package/src/index.js +27 -28
- package/src/vue-shim.d.ts +4 -4
|
@@ -1,115 +1,112 @@
|
|
|
1
|
-
@use
|
|
2
|
-
|
|
3
|
-
$chart-colour-1: map-get($wider-colours,
|
|
4
|
-
$chart-colour-2: map-get($wider-colours,
|
|
5
|
-
$chart-colour-3: map-get($wider-colours,
|
|
6
|
-
$chart-colour-4: map-get($wider-colours,
|
|
7
|
-
$chart-colour-5: map-get($wider-colours,
|
|
8
|
-
$chart-colour-6: map-get($wider-colours,
|
|
9
|
-
$chart-colour-7: map-get($wider-colours,
|
|
10
|
-
$chart-colour-8: map-get($wider-colours,
|
|
11
|
-
$chart-colour-9: map-get($wider-colours,
|
|
12
|
-
$chart-colour-10: map-get($wider-colours,
|
|
1
|
+
@use '../_func' as *;
|
|
2
|
+
|
|
3
|
+
$chart-colour-1: map-get($wider-colours, '3') !default;
|
|
4
|
+
$chart-colour-2: map-get($wider-colours, '4') !default;
|
|
5
|
+
$chart-colour-3: map-get($wider-colours, '5') !default;
|
|
6
|
+
$chart-colour-4: map-get($wider-colours, '6') !default;
|
|
7
|
+
$chart-colour-5: map-get($wider-colours, '7') !default;
|
|
8
|
+
$chart-colour-6: map-get($wider-colours, '8') !default;
|
|
9
|
+
$chart-colour-7: map-get($wider-colours, '9') !default;
|
|
10
|
+
$chart-colour-8: map-get($wider-colours, '10') !default;
|
|
11
|
+
$chart-colour-9: map-get($wider-colours, '11') !default;
|
|
12
|
+
$chart-colour-10: map-get($wider-colours, '12') !default;
|
|
13
13
|
|
|
14
14
|
$chart-colors: ();
|
|
15
|
-
$chart-colors: map-merge(
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
$chart-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
$chart-colour-
|
|
32
|
-
$chart-colour-
|
|
33
|
-
$chart-colour-
|
|
34
|
-
$chart-colour-
|
|
35
|
-
$chart-colour-
|
|
36
|
-
$chart-colour-
|
|
37
|
-
$chart-colour-
|
|
15
|
+
$chart-colors: map-merge(
|
|
16
|
+
(
|
|
17
|
+
1: $chart-colour-1,
|
|
18
|
+
2: $chart-colour-2,
|
|
19
|
+
3: $chart-colour-3,
|
|
20
|
+
4: $chart-colour-4,
|
|
21
|
+
5: $chart-colour-5,
|
|
22
|
+
6: $chart-colour-6,
|
|
23
|
+
7: $chart-colour-7,
|
|
24
|
+
8: $chart-colour-8,
|
|
25
|
+
9: $chart-colour-9,
|
|
26
|
+
10: $chart-colour-10,
|
|
27
|
+
),
|
|
28
|
+
$chart-colors
|
|
29
|
+
);
|
|
30
|
+
|
|
31
|
+
$chart-colour-1-hover: map-get($wider-colours-hover, '3') !default;
|
|
32
|
+
$chart-colour-2-hover: map-get($wider-colours-hover, '4') !default;
|
|
33
|
+
$chart-colour-3-hover: map-get($wider-colours-hover, '5') !default;
|
|
34
|
+
$chart-colour-4-hover: map-get($wider-colours-hover, '6') !default;
|
|
35
|
+
$chart-colour-5-hover: map-get($wider-colours-hover, '7') !default;
|
|
36
|
+
$chart-colour-6-hover: map-get($wider-colours-hover, '8') !default;
|
|
37
|
+
$chart-colour-7-hover: map-get($wider-colours-hover, '9') !default;
|
|
38
|
+
$chart-colour-8-hover: map-get($wider-colours-hover, '10') !default;
|
|
39
|
+
$chart-colour-9-hover: map-get($wider-colours-hover, '11') !default;
|
|
40
|
+
$chart-colour-10-hover: map-get($wider-colours-hover, '12') !default;
|
|
38
41
|
|
|
39
42
|
$chart-colors-hover: ();
|
|
40
|
-
$chart-colors-hover: map-merge(
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
$chart-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
43
|
+
$chart-colors-hover: map-merge(
|
|
44
|
+
(
|
|
45
|
+
1: $chart-colour-1-hover,
|
|
46
|
+
2: $chart-colour-2-hover,
|
|
47
|
+
3: $chart-colour-3-hover,
|
|
48
|
+
4: $chart-colour-4-hover,
|
|
49
|
+
5: $chart-colour-5-hover,
|
|
50
|
+
6: $chart-colour-6-hover,
|
|
51
|
+
7: $chart-colour-7-hover,
|
|
52
|
+
8: $chart-colour-8-hover,
|
|
53
|
+
9: $chart-colour-9-hover,
|
|
54
|
+
10: $chart-colour-10-hover,
|
|
55
|
+
),
|
|
56
|
+
$chart-colors-hover
|
|
57
|
+
);
|
|
58
|
+
|
|
59
|
+
$chart-height: #{rem(120)} !default;
|
|
60
|
+
$chart-height-lg: #{rem(200)} !default;
|
|
57
61
|
|
|
58
62
|
// #region Apply chart colours
|
|
59
63
|
:host {
|
|
60
|
-
|
|
61
64
|
@each $index, $value in $chart-colors {
|
|
62
|
-
--chart-colour-#{$index}-set: var(--chart-colour-#{$index}
|
|
65
|
+
--chart-colour-#{$index}-set: var(--chart-colour-#{$index}, #{$value});
|
|
63
66
|
}
|
|
64
67
|
@each $index, $value in $chart-colors-hover {
|
|
65
|
-
--chart-colour-#{$index}-hover: var(--chart-colour-#{$index}
|
|
68
|
+
--chart-colour-#{$index}-hover: var(--chart-colour-#{$index}, #{$value});
|
|
66
69
|
}
|
|
67
70
|
|
|
68
|
-
--chart-colour-success: #
|
|
69
|
-
--chart-colour-success-hover: #
|
|
70
|
-
--chart-colour-danger: #
|
|
71
|
-
--chart-colour-danger-hover: #f5c2e7!important;
|
|
72
|
-
--chart-colour-warning: #
|
|
73
|
-
--chart-colour-warning-hover: #
|
|
71
|
+
--chart-colour-success: #d2f0c9 !important;
|
|
72
|
+
--chart-colour-success-hover: #8ad873 !important;
|
|
73
|
+
--chart-colour-danger: #f5c2c7 !important;
|
|
74
|
+
--chart-colour-danger-hover: #f5c2e7 !important;
|
|
75
|
+
--chart-colour-warning: #ffd280 !important;
|
|
76
|
+
--chart-colour-warning-hover: #ffb020 !important;
|
|
74
77
|
}
|
|
75
78
|
|
|
76
79
|
@for $i from 1 to 10 {
|
|
77
|
-
|
|
78
80
|
.chart__key .key:nth-child(10n - #{10 - $i}),
|
|
79
81
|
.chart__outer table tbody tr td:not(:first-child):nth-child(10n - #{10 - ($i+1)}) {
|
|
80
|
-
|
|
81
|
-
--chart-colour: var(#{'--chart-colour-'
|
|
82
|
-
--chart-colour-hover: var(#{'--chart-colour-'+$i+'-hover'});
|
|
82
|
+
--chart-colour: var(#{'--chart-colour-' + $i + '-set'});
|
|
83
|
+
--chart-colour-hover: var(#{'--chart-colour-' + $i + '-hover'});
|
|
83
84
|
}
|
|
84
85
|
}
|
|
85
86
|
// #endregion
|
|
86
87
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
// #region Basic setup - including: container setup, css vars
|
|
88
|
+
// #region Basic setup - including: container setup, css vars
|
|
90
89
|
|
|
91
90
|
::slotted(table) {
|
|
92
|
-
display: none!important;
|
|
91
|
+
display: none !important;
|
|
93
92
|
}
|
|
94
93
|
:host {
|
|
95
|
-
container-type: inline-size;
|
|
94
|
+
container-type: inline-size;
|
|
96
95
|
margin-bottom: 2rem;
|
|
97
96
|
display: block;
|
|
98
97
|
}
|
|
99
98
|
.chart__outer {
|
|
100
|
-
|
|
101
99
|
display: flex;
|
|
102
100
|
flex-direction: column;
|
|
103
101
|
position: relative;
|
|
104
102
|
font-weight: var(--chart-font-weight, bold);
|
|
105
103
|
color: var(--chart-text-color, black);
|
|
106
104
|
|
|
107
|
-
|
|
108
105
|
> * {
|
|
109
106
|
display: block;
|
|
110
107
|
order: 2;
|
|
111
108
|
}
|
|
112
|
-
|
|
109
|
+
|
|
113
110
|
// CSS vars that can be overwritten by declaring them without the -set on the end of the variable i.e. --chart-colour-1: red; would overwrite --chart-colour-1-set
|
|
114
111
|
--body-colour-set: var(--body-colour, Canvas);
|
|
115
112
|
--text-colour-set: var(--text-colour, black);
|
|
@@ -121,10 +118,8 @@ $chart-height-lg: #{rem(200)}!default;
|
|
|
121
118
|
|
|
122
119
|
tbody {
|
|
123
120
|
--chart-direction: 360deg;
|
|
124
|
-
--chart-day-bg-pos: 100% calc(var(--single-day) * 7)
|
|
121
|
+
--chart-day-bg-pos: 100% calc(var(--single-day) * 7);
|
|
125
122
|
}
|
|
126
|
-
|
|
127
|
-
|
|
128
123
|
|
|
129
124
|
// Non-configurable css vars
|
|
130
125
|
--index-below: -1;
|
|
@@ -140,17 +135,15 @@ $chart-height-lg: #{rem(200)}!default;
|
|
|
140
135
|
--line-thickness: 1px;
|
|
141
136
|
--yaxis-width: auto;
|
|
142
137
|
--yaxis-point-display: block;
|
|
143
|
-
--yaxis-last-point-transform: translate(0
|
|
138
|
+
--yaxis-last-point-transform: translate(0, -50%);
|
|
144
139
|
--bar-gap: min(10%, 0.75rem);
|
|
145
140
|
|
|
146
141
|
@container (min-width: #{em($device-xs-width,16)}) {
|
|
147
|
-
|
|
148
142
|
:has(tr:nth-child(5) td:nth-child(4)),
|
|
149
|
-
:has(tr:nth-child(10)){
|
|
150
|
-
|
|
143
|
+
:has(tr:nth-child(10)) {
|
|
151
144
|
--yaxis-width: 0;
|
|
152
145
|
--yaxis-point-display: none;
|
|
153
|
-
--yaxis-last-point-transform: translate(0
|
|
146
|
+
--yaxis-last-point-transform: translate(0, -100%);
|
|
154
147
|
--bar-gap: 0;
|
|
155
148
|
}
|
|
156
149
|
|
|
@@ -160,18 +153,16 @@ $chart-height-lg: #{rem(200)}!default;
|
|
|
160
153
|
--line-thickness: 0.8px;
|
|
161
154
|
--yaxis-width: auto;
|
|
162
155
|
--yaxis-point-display: block;
|
|
163
|
-
--yaxis-last-point-transform: translate(0
|
|
156
|
+
--yaxis-last-point-transform: translate(0, -50%);
|
|
164
157
|
}
|
|
165
158
|
}
|
|
166
159
|
|
|
167
160
|
@container (min-width: #{em($device-sm-width,16)}) {
|
|
168
|
-
:has(tr:nth-child(10)){
|
|
169
|
-
|
|
161
|
+
:has(tr:nth-child(10)) {
|
|
170
162
|
--bar-gap: 0;
|
|
171
163
|
}
|
|
172
164
|
|
|
173
165
|
.chart__wrapper {
|
|
174
|
-
|
|
175
166
|
--label-size: #{rem(14)};
|
|
176
167
|
--pie-size: calc(25% - 1.5rem);
|
|
177
168
|
--line-thickness: 0.5px;
|
|
@@ -181,12 +172,11 @@ $chart-height-lg: #{rem(200)}!default;
|
|
|
181
172
|
.chart__spacer span {
|
|
182
173
|
opacity: 0;
|
|
183
174
|
}
|
|
184
|
-
|
|
185
175
|
}
|
|
186
176
|
// #endregion
|
|
187
177
|
|
|
188
178
|
// #region Chart key
|
|
189
|
-
.chart__outer > input[type=
|
|
179
|
+
.chart__outer > input[type='checkbox'] {
|
|
190
180
|
opacity: 0;
|
|
191
181
|
position: absolute;
|
|
192
182
|
pointer-events: none;
|
|
@@ -195,7 +185,6 @@ $chart-height-lg: #{rem(200)}!default;
|
|
|
195
185
|
}
|
|
196
186
|
|
|
197
187
|
.chart__key {
|
|
198
|
-
|
|
199
188
|
padding: 0 0 0 0;
|
|
200
189
|
margin-bottom: 1.5rem;
|
|
201
190
|
display: flex;
|
|
@@ -205,7 +194,7 @@ $chart-height-lg: #{rem(200)}!default;
|
|
|
205
194
|
//justify-content: flex-end;
|
|
206
195
|
gap: 0.5rem;
|
|
207
196
|
|
|
208
|
-
&:has(label:first-child:last-child){
|
|
197
|
+
&:has(label:first-child:last-child) {
|
|
209
198
|
display: var(--single-key-display, none);
|
|
210
199
|
}
|
|
211
200
|
|
|
@@ -213,17 +202,17 @@ $chart-height-lg: #{rem(200)}!default;
|
|
|
213
202
|
margin: 0;
|
|
214
203
|
|
|
215
204
|
&:before {
|
|
216
|
-
content:
|
|
205
|
+
content: '';
|
|
217
206
|
height: 0.8em;
|
|
218
207
|
width: 0.8em;
|
|
219
208
|
margin-right: 0.3em;
|
|
220
209
|
background-color: var(--chart-colour);
|
|
221
210
|
display: inline-block;
|
|
222
|
-
border-radius: var(--key-border-radius,4px);
|
|
211
|
+
border-radius: var(--key-border-radius, 4px);
|
|
223
212
|
}
|
|
224
213
|
|
|
225
|
-
&[data-label=
|
|
226
|
-
&[data-label=
|
|
214
|
+
&[data-label='Min'],
|
|
215
|
+
&[data-label='Max'] {
|
|
227
216
|
display: none;
|
|
228
217
|
}
|
|
229
218
|
|
|
@@ -234,55 +223,47 @@ $chart-height-lg: #{rem(200)}!default;
|
|
|
234
223
|
}
|
|
235
224
|
|
|
236
225
|
@for $i from 1 to 10 {
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
}
|
|
226
|
+
.chart__outer input[type='checkbox']:focus:nth-child(#{$i}) ~ .chart__key .key:nth-child(#{$i}) {
|
|
227
|
+
background: var(--colour-btn-action-hover-bg) !important;
|
|
228
|
+
border: var(--btn-border-width) solid var(--colour-muted) !important;
|
|
229
|
+
}
|
|
242
230
|
}
|
|
243
231
|
|
|
244
|
-
|
|
245
|
-
|
|
246
232
|
// Hide chart keys
|
|
247
|
-
.chart__outer > input[type=
|
|
248
|
-
|
|
233
|
+
.chart__outer > input[type='checkbox']:not(:checked) ~ .chart__key .key {
|
|
249
234
|
//opacity: 0.25;
|
|
250
235
|
}
|
|
251
236
|
|
|
252
237
|
@for $i from 1 to 10 {
|
|
253
|
-
|
|
254
|
-
.chart__outer > input[type="checkbox"]:nth-of-type(#{$i}):not(:checked) ~ .chart__key .key:nth-of-type(#{$i}) {
|
|
238
|
+
.chart__outer > input[type='checkbox']:nth-of-type(#{$i}):not(:checked) ~ .chart__key .key:nth-of-type(#{$i}) {
|
|
255
239
|
opacity: 0.25;
|
|
256
240
|
}
|
|
257
241
|
}
|
|
258
242
|
// #endregion
|
|
259
243
|
|
|
260
|
-
// #region y-axis
|
|
261
|
-
:host([data-yaxis]){
|
|
262
|
-
|
|
244
|
+
// #region y-axis
|
|
245
|
+
:host([data-yaxis]) {
|
|
263
246
|
--yaxis-display: flex;
|
|
264
247
|
}
|
|
265
248
|
|
|
266
249
|
.chart__yaxis {
|
|
267
|
-
|
|
268
250
|
display: var(--yaxis-display, none);
|
|
269
251
|
flex-direction: column-reverse;
|
|
270
252
|
width: var(--yaxis-width);
|
|
271
253
|
|
|
272
254
|
.axis__point {
|
|
273
|
-
|
|
274
255
|
bottom: var(--percent);
|
|
275
256
|
position: relative;
|
|
276
257
|
height: 0;
|
|
277
258
|
white-space: nowrap;
|
|
278
259
|
|
|
279
|
-
&:not(:last-child){
|
|
260
|
+
&:not(:last-child) {
|
|
280
261
|
display: var(--yaxis-point-display);
|
|
281
262
|
}
|
|
282
263
|
|
|
283
264
|
span {
|
|
284
265
|
display: block;
|
|
285
|
-
transform: translate(0
|
|
266
|
+
transform: translate(0, -50%);
|
|
286
267
|
padding-right: 0.25rem;
|
|
287
268
|
text-align: right;
|
|
288
269
|
//font-size: var(--label-size);
|
|
@@ -292,7 +273,6 @@ $chart-height-lg: #{rem(200)}!default;
|
|
|
292
273
|
}
|
|
293
274
|
|
|
294
275
|
&:last-child span {
|
|
295
|
-
|
|
296
276
|
transform: var(--yaxis-last-point-transform);
|
|
297
277
|
}
|
|
298
278
|
}
|
|
@@ -310,7 +290,6 @@ $chart-height-lg: #{rem(200)}!default;
|
|
|
310
290
|
bottom: -1rem;
|
|
311
291
|
|
|
312
292
|
.axis__point {
|
|
313
|
-
|
|
314
293
|
left: var(--percent);
|
|
315
294
|
width: 1px;
|
|
316
295
|
position: absolute;
|
|
@@ -331,7 +310,6 @@ $chart-height-lg: #{rem(200)}!default;
|
|
|
331
310
|
|
|
332
311
|
// #region Guidelines
|
|
333
312
|
.chart__guidelines {
|
|
334
|
-
|
|
335
313
|
position: absolute;
|
|
336
314
|
top: 0;
|
|
337
315
|
left: 0;
|
|
@@ -342,7 +320,6 @@ $chart-height-lg: #{rem(200)}!default;
|
|
|
342
320
|
pointer-events: none;
|
|
343
321
|
|
|
344
322
|
.guideline {
|
|
345
|
-
|
|
346
323
|
bottom: var(--percent);
|
|
347
324
|
position: absolute;
|
|
348
325
|
right: 0;
|
|
@@ -354,13 +331,12 @@ $chart-height-lg: #{rem(200)}!default;
|
|
|
354
331
|
z-index: var(--index-below);
|
|
355
332
|
//overflow: hidden;
|
|
356
333
|
|
|
357
|
-
&:not(.guideline--target) span{
|
|
334
|
+
&:not(.guideline--target) span {
|
|
358
335
|
display: none;
|
|
359
|
-
}
|
|
336
|
+
}
|
|
360
337
|
}
|
|
361
338
|
|
|
362
339
|
.guideline--target {
|
|
363
|
-
|
|
364
340
|
border-bottom: 1px dashed #000000;
|
|
365
341
|
z-index: var(--index-above);
|
|
366
342
|
text-shadow: 1px solid white;
|
|
@@ -371,15 +347,14 @@ $chart-height-lg: #{rem(200)}!default;
|
|
|
371
347
|
bottom: 0;
|
|
372
348
|
font-size: var(--label-size);
|
|
373
349
|
text-shadow: 1px 1px 2px rgba(255, 255, 255, 1);
|
|
374
|
-
background: rgba(255,255,255,0.6);
|
|
350
|
+
background: rgba(255, 255, 255, 0.6);
|
|
375
351
|
}
|
|
376
352
|
}
|
|
377
353
|
|
|
378
|
-
[data-value=
|
|
354
|
+
[data-value='0'] {
|
|
379
355
|
border-bottom: 1px solid var(--colour-primary);
|
|
380
356
|
|
|
381
|
-
&:not(:first-child){
|
|
382
|
-
|
|
357
|
+
&:not(:first-child) {
|
|
383
358
|
border-bottom: 1px dashed var(--colour-primary);
|
|
384
359
|
}
|
|
385
360
|
}
|
|
@@ -388,21 +363,19 @@ $chart-height-lg: #{rem(200)}!default;
|
|
|
388
363
|
|
|
389
364
|
// #region Default column chart (Also applies to line chart)
|
|
390
365
|
.chart__wrapper {
|
|
391
|
-
|
|
392
366
|
display: block;
|
|
393
367
|
display: flex;
|
|
394
368
|
flex-direction: row;
|
|
395
369
|
position: relative;
|
|
396
370
|
|
|
397
371
|
.chart {
|
|
398
|
-
|
|
399
372
|
position: relative;
|
|
400
373
|
flex-grow: 1;
|
|
401
374
|
}
|
|
402
375
|
|
|
403
376
|
table {
|
|
404
377
|
display: block;
|
|
405
|
-
width: 100
|
|
378
|
+
width: 100% !important;
|
|
406
379
|
padding-top: var(--chart-height-resp); // 16:9 ratio
|
|
407
380
|
position: relative;
|
|
408
381
|
margin-bottom: 0;
|
|
@@ -413,7 +386,6 @@ $chart-height-lg: #{rem(200)}!default;
|
|
|
413
386
|
}
|
|
414
387
|
|
|
415
388
|
tbody {
|
|
416
|
-
|
|
417
389
|
display: flex;
|
|
418
390
|
position: absolute;
|
|
419
391
|
width: 100%;
|
|
@@ -423,7 +395,7 @@ $chart-height-lg: #{rem(200)}!default;
|
|
|
423
395
|
flex-direction: row;
|
|
424
396
|
border: none;
|
|
425
397
|
}
|
|
426
|
-
|
|
398
|
+
|
|
427
399
|
tbody tr {
|
|
428
400
|
display: flex;
|
|
429
401
|
flex-direction: row;
|
|
@@ -440,7 +412,8 @@ $chart-height-lg: #{rem(200)}!default;
|
|
|
440
412
|
font-weight: inherit;
|
|
441
413
|
}
|
|
442
414
|
|
|
443
|
-
td:first-child {
|
|
415
|
+
td:first-child {
|
|
416
|
+
// part=xaxis
|
|
444
417
|
position: absolute;
|
|
445
418
|
top: 100%;
|
|
446
419
|
left: 0%;
|
|
@@ -453,7 +426,6 @@ $chart-height-lg: #{rem(200)}!default;
|
|
|
453
426
|
text-align: center;
|
|
454
427
|
|
|
455
428
|
@container (min-width: #{em($device-sm-width,16)}) {
|
|
456
|
-
|
|
457
429
|
display: block;
|
|
458
430
|
}
|
|
459
431
|
|
|
@@ -463,30 +435,28 @@ $chart-height-lg: #{rem(200)}!default;
|
|
|
463
435
|
}
|
|
464
436
|
}
|
|
465
437
|
|
|
466
|
-
td[data-label=
|
|
467
|
-
td[data-label=
|
|
438
|
+
td[data-label='Min'],
|
|
439
|
+
td[data-label='Max'] {
|
|
468
440
|
display: none;
|
|
469
441
|
}
|
|
470
442
|
|
|
471
443
|
&:first-child td:first-child,
|
|
472
444
|
&:last-child td:first-child {
|
|
473
|
-
|
|
474
445
|
display: block;
|
|
475
446
|
}
|
|
476
447
|
|
|
477
448
|
td:not(:first-child) {
|
|
478
449
|
height: 100%;
|
|
479
450
|
height: var(--percent, 0%);
|
|
480
|
-
bottom: var(--bottom,0%);
|
|
451
|
+
bottom: var(--bottom, 0%);
|
|
481
452
|
width: 100%;
|
|
482
453
|
max-width: #{rem(120)};
|
|
483
454
|
position: relative;
|
|
484
455
|
padding: 0;
|
|
485
456
|
background: var(--chart-colour);
|
|
486
|
-
|
|
457
|
+
|
|
487
458
|
& {
|
|
488
459
|
@media screen and (prefers-color-scheme: dark) {
|
|
489
|
-
|
|
490
460
|
background: color-mix(in oklab, var(--chart-colour), black 20%);
|
|
491
461
|
}
|
|
492
462
|
}
|
|
@@ -499,7 +469,7 @@ $chart-height-lg: #{rem(200)}!default;
|
|
|
499
469
|
}
|
|
500
470
|
|
|
501
471
|
&:has(span:empty),
|
|
502
|
-
&:empty{
|
|
472
|
+
&:empty {
|
|
503
473
|
display: none;
|
|
504
474
|
}
|
|
505
475
|
|
|
@@ -507,14 +477,15 @@ $chart-height-lg: #{rem(200)}!default;
|
|
|
507
477
|
display: none;
|
|
508
478
|
}
|
|
509
479
|
|
|
510
|
-
span {
|
|
480
|
+
span {
|
|
481
|
+
//part="popover"
|
|
511
482
|
position: absolute;
|
|
512
483
|
top: var(--cursor-y, 50%);
|
|
513
484
|
left: var(--cursor-x, 50%);
|
|
514
485
|
font-size: var(--label-size);
|
|
515
486
|
line-height: 1.2;
|
|
516
|
-
transform: translate(-50%,0);
|
|
517
|
-
background: var(--chart-details-bg, var(--colour-canvas-2,Canvas));
|
|
487
|
+
transform: translate(-50%, 0);
|
|
488
|
+
background: var(--chart-details-bg, var(--colour-canvas-2, Canvas));
|
|
518
489
|
opacity: 0;
|
|
519
490
|
pointer-events: none;
|
|
520
491
|
padding: 0.5rem;
|
|
@@ -524,14 +495,13 @@ $chart-height-lg: #{rem(200)}!default;
|
|
|
524
495
|
white-space: pre;
|
|
525
496
|
text-align: left;
|
|
526
497
|
box-shadow: var(--chart-details-shadow, 0 #{rem(2)} #{rem(12)} rgba(0, 0, 0, 0.25));
|
|
527
|
-
transform: translate(-50
|
|
528
|
-
|
|
498
|
+
transform: translate(-50%, -100%);
|
|
529
499
|
|
|
530
500
|
&::before {
|
|
531
|
-
content: attr(data-group)'\A';
|
|
501
|
+
content: attr(data-group) '\A';
|
|
532
502
|
}
|
|
533
503
|
&[data-label]::before {
|
|
534
|
-
content: attr(data-group)'\A'attr(data-label)'\A';
|
|
504
|
+
content: attr(data-group) '\A' attr(data-label) '\A';
|
|
535
505
|
}
|
|
536
506
|
}
|
|
537
507
|
|
|
@@ -541,7 +511,6 @@ $chart-height-lg: #{rem(200)}!default;
|
|
|
541
511
|
}
|
|
542
512
|
}
|
|
543
513
|
|
|
544
|
-
|
|
545
514
|
td:first-child {
|
|
546
515
|
&[data-label]:before {
|
|
547
516
|
display: none;
|
|
@@ -553,75 +522,67 @@ $chart-height-lg: #{rem(200)}!default;
|
|
|
553
522
|
@container (min-width: #{em($device-sm-width,16)}) {
|
|
554
523
|
tbody:has(tr:nth-child(5) td:nth-child(4)) tr,
|
|
555
524
|
tbody:has(tr:nth-child(10)) tr {
|
|
556
|
-
|
|
557
525
|
td:first-child {
|
|
558
526
|
display: none;
|
|
559
527
|
}
|
|
560
|
-
|
|
561
|
-
&:first-child td:first-child {
|
|
562
528
|
|
|
529
|
+
&:first-child td:first-child {
|
|
563
530
|
left: 0%;
|
|
564
|
-
transform: translate(0,0);
|
|
531
|
+
transform: translate(0, 0);
|
|
565
532
|
display: block;
|
|
566
533
|
text-align: left;
|
|
567
534
|
}
|
|
568
535
|
&:last-child td:first-child {
|
|
569
|
-
|
|
570
536
|
left: 100%;
|
|
571
|
-
transform: translate(-100%,0);
|
|
537
|
+
transform: translate(-100%, 0);
|
|
572
538
|
display: block;
|
|
573
539
|
text-align: right;
|
|
574
540
|
}
|
|
575
|
-
|
|
576
|
-
&:first-child td:not(:first-child) span {
|
|
577
541
|
|
|
542
|
+
&:first-child td:not(:first-child) span {
|
|
578
543
|
left: -20%;
|
|
579
|
-
transform: translate(0%,0);
|
|
544
|
+
transform: translate(0%, 0);
|
|
580
545
|
text-align: left;
|
|
581
546
|
}
|
|
582
547
|
|
|
583
548
|
&:last-child td:not(:first-child) span {
|
|
584
|
-
|
|
585
549
|
left: 120%;
|
|
586
|
-
transform: translate(-100%,0);
|
|
550
|
+
transform: translate(-100%, 0);
|
|
587
551
|
text-align: right;
|
|
588
552
|
}
|
|
589
553
|
}
|
|
590
554
|
}
|
|
591
555
|
// Hide labels when it gets crowded
|
|
592
556
|
@container (min-width: #{em($device-xs-width,16)}) {
|
|
593
|
-
|
|
594
|
-
tbody:has(tr:nth-child(25)){
|
|
557
|
+
tbody:has(tr:nth-child(25)) {
|
|
595
558
|
tr td:first-child {
|
|
596
|
-
display: none!important;
|
|
559
|
+
display: none !important;
|
|
597
560
|
}
|
|
598
561
|
|
|
599
562
|
tr:is(:first-child, :nth-child(2n + 1)) td:first-child {
|
|
600
|
-
display: block!important;
|
|
563
|
+
display: block !important;
|
|
601
564
|
}
|
|
602
565
|
}
|
|
603
566
|
|
|
604
|
-
tbody:has(tr:nth-child(50)){
|
|
605
|
-
|
|
567
|
+
tbody:has(tr:nth-child(50)) {
|
|
606
568
|
tr:is(:first-child, :nth-child(2n + 1)) td:first-child,
|
|
607
569
|
tr td:first-child {
|
|
608
|
-
display: none!important;
|
|
570
|
+
display: none !important;
|
|
609
571
|
}
|
|
610
572
|
|
|
611
573
|
tr:is(:first-child, :nth-child(10n + 1)) td:first-child {
|
|
612
|
-
display: block!important;
|
|
574
|
+
display: block !important;
|
|
613
575
|
}
|
|
614
576
|
}
|
|
615
577
|
|
|
616
|
-
tbody:has(tr:nth-child(100)){
|
|
617
|
-
|
|
578
|
+
tbody:has(tr:nth-child(100)) {
|
|
618
579
|
tr:is(:first-child, :nth-child(10n + 1)) td:first-child,
|
|
619
580
|
tr td:first-child {
|
|
620
|
-
display: none!important;
|
|
581
|
+
display: none !important;
|
|
621
582
|
}
|
|
622
583
|
|
|
623
584
|
tr:is(:first-child, :nth-child(20n + 1)) td:first-child {
|
|
624
|
-
display: block!important;
|
|
585
|
+
display: block !important;
|
|
625
586
|
}
|
|
626
587
|
}
|
|
627
588
|
}
|
|
@@ -631,34 +592,34 @@ $chart-height-lg: #{rem(200)}!default;
|
|
|
631
592
|
|
|
632
593
|
// #region Chart colour overide classes
|
|
633
594
|
:host(.chart-colour--success) td,
|
|
634
|
-
:host(:is(.chart-colour--success
|
|
595
|
+
:host(:is(.chart-colour--success, .chart-colour--danger, .chart-colour--wraning)) td.chart-colour--success,
|
|
635
596
|
.chart-colour--success td {
|
|
636
|
-
--chart-colour: var(--chart-colour-success)!important;
|
|
597
|
+
--chart-colour: var(--chart-colour-success) !important;
|
|
637
598
|
|
|
638
599
|
&:hover {
|
|
639
|
-
--chart-colour-hover: var(--chart-colour-success-hover)!important;
|
|
600
|
+
--chart-colour-hover: var(--chart-colour-success-hover) !important;
|
|
640
601
|
}
|
|
641
602
|
}
|
|
642
603
|
|
|
643
604
|
:host(.chart-colour--danger) td,
|
|
644
|
-
:host(:is(.chart-colour--success
|
|
605
|
+
:host(:is(.chart-colour--success, .chart-colour--danger, .chart-colour--wraning)) td.chart-colour--danger,
|
|
645
606
|
.chart-colour--danger,
|
|
646
|
-
.chart-colour--danger td{
|
|
647
|
-
--chart-colour: var(--chart-colour-danger)!important;
|
|
607
|
+
.chart-colour--danger td {
|
|
608
|
+
--chart-colour: var(--chart-colour-danger) !important;
|
|
648
609
|
|
|
649
610
|
&:hover {
|
|
650
|
-
--chart-colour-hover: var(--chart-colour-danger-hover)!important;
|
|
611
|
+
--chart-colour-hover: var(--chart-colour-danger-hover) !important;
|
|
651
612
|
}
|
|
652
613
|
}
|
|
653
614
|
|
|
654
615
|
:host(.chart-colour--warning) td,
|
|
655
|
-
:host(:is(.chart-colour--success
|
|
616
|
+
:host(:is(.chart-colour--success, .chart-colour--danger, .chart-colour--wraning)) td.chart-colour--warning,
|
|
656
617
|
.chart-colour--warning,
|
|
657
|
-
.chart-colour--warning td{
|
|
658
|
-
--chart-colour: var(--chart-colour-warning)!important;
|
|
618
|
+
.chart-colour--warning td {
|
|
619
|
+
--chart-colour: var(--chart-colour-warning) !important;
|
|
659
620
|
|
|
660
621
|
&:hover {
|
|
661
|
-
--chart-colour-hover: var(--chart-colour-warning-hover)!important;
|
|
622
|
+
--chart-colour-hover: var(--chart-colour-warning-hover) !important;
|
|
662
623
|
}
|
|
663
624
|
}
|
|
664
625
|
// #endregion
|