@ulu/frontend-vue 0.1.0-beta.9 → 0.1.1-beta.1
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/dist/{breakpoints-BbkGNxxt.js → breakpoints-DM-CBTtb.js} +1 -1
- package/dist/frontend-vue.css +1 -1
- package/dist/frontend-vue.js +79 -68
- package/dist/index-BNRZ3Apw.js +7541 -0
- package/lib/components/collapsible/UluAccordion.vue +71 -53
- package/lib/components/collapsible/UluAccordionGroup.vue +54 -0
- package/lib/components/collapsible/UluCollapsible.vue +144 -0
- package/lib/components/collapsible/UluDropdown.vue +29 -29
- package/lib/components/collapsible/UluOverflowPopover.vue +1 -1
- package/lib/components/elements/UluBadge.vue +51 -28
- package/lib/components/elements/UluBadgeStack.vue +8 -13
- package/lib/components/elements/UluButtonVerbose.vue +119 -0
- package/lib/components/elements/UluCard.vue +1 -1
- package/lib/components/elements/UluDefinitionList.vue +14 -17
- package/lib/components/elements/UluExternalLink.vue +21 -27
- package/lib/components/elements/UluIcon.vue +11 -1
- package/lib/components/elements/UluList.vue +53 -55
- package/lib/components/elements/UluSpokeSpinner.vue +12 -18
- package/lib/components/elements/UluTag.vue +35 -35
- package/lib/components/forms/UluFileDisplay.vue +49 -31
- package/lib/components/forms/UluFormFile.vue +37 -24
- package/lib/components/forms/UluFormMessage.vue +13 -10
- package/lib/components/forms/UluFormSelect.vue +28 -16
- package/lib/components/forms/UluFormText.vue +24 -15
- package/lib/components/forms/UluSearchForm.vue +11 -10
- package/lib/components/forms/UluSelectableMenu.vue +99 -0
- package/lib/components/index.js +4 -3
- package/lib/components/layout/UluTitleRail.vue +18 -0
- package/lib/components/layout/UluWhenBreakpoint.vue +9 -0
- package/lib/components/navigation/UluBreadcrumb.vue +9 -2
- package/lib/components/navigation/UluMenu.vue +8 -3
- package/lib/components/navigation/UluMenuStack.vue +3 -1
- package/lib/components/navigation/UluPager.vue +102 -0
- package/lib/components/systems/facets/ExampleFacetsWithPagination.vue +119 -0
- package/lib/components/systems/facets/UluFacetsFilterLists.vue +91 -0
- package/lib/components/systems/facets/UluFacetsFilterPopovers.vue +125 -0
- package/lib/components/systems/facets/UluFacetsFilterSelects.vue +71 -0
- package/lib/components/systems/facets/UluFacetsHeaderLayout.vue +24 -0
- package/lib/components/systems/facets/UluFacetsList.vue +62 -34
- package/lib/components/systems/facets/UluFacetsResults.vue +63 -0
- package/lib/components/systems/facets/UluFacetsSearch.vue +27 -50
- package/lib/components/systems/facets/UluFacetsSidebarLayout.vue +70 -0
- package/lib/components/systems/facets/UluFacetsSort.vue +45 -0
- package/lib/components/systems/facets/_facets.scss +2 -3
- package/lib/components/systems/facets/_mock-data.js +40 -0
- package/lib/components/systems/facets/useFacets.js +268 -0
- package/lib/components/systems/index.js +13 -2
- package/lib/components/systems/scroll-anchors/UluScrollAnchors.vue +2 -1
- package/lib/components/systems/skeleton/UluShowSkeleton.vue +9 -8
- package/lib/components/systems/skeleton/UluSkeletonContent.vue +39 -43
- package/lib/components/systems/skeleton/UluSkeletonMedia.vue +4 -6
- package/lib/components/systems/skeleton/UluSkeletonText.vue +27 -0
- package/lib/components/systems/slider/UluImageSlideShow.vue +1 -1
- package/lib/components/systems/slider/UluSlideShow.vue +8 -3
- package/lib/components/systems/table-sticky/UluTableSticky.vue +7 -7
- package/lib/components/systems/table-sticky/UluTableStickyTable.vue +3 -3
- package/lib/components/visualizations/UluAnimateNumber.vue +7 -1
- package/lib/components/visualizations/UluProgressBar.vue +99 -68
- package/lib/components/visualizations/UluProgressCircle.vue +146 -0
- package/lib/components/visualizations/progress-bar-examples.html +175 -0
- package/lib/composables/index.js +3 -1
- package/lib/composables/useDocumentTitle.js +61 -0
- package/lib/composables/usePagination.js +122 -0
- package/lib/index.js +1 -0
- package/lib/plugins/core/index.js +6 -1
- package/lib/plugins/popovers/UluPopover.vue +8 -3
- package/lib/plugins/toast/UluToast.vue +1 -1
- package/lib/plugins/toast/UluToastDisplay.vue +19 -2
- package/lib/utils/dom.js +12 -0
- package/lib/utils/index.js +2 -0
- package/lib/utils/{vue-router.js → router.js} +114 -30
- package/package.json +17 -11
- package/types/components/systems/facets/_mock-data.d.ts +18 -0
- package/types/components/systems/facets/_mock-data.d.ts.map +1 -0
- package/types/components/systems/facets/useFacets.d.ts +39 -0
- package/types/components/systems/facets/useFacets.d.ts.map +1 -0
- package/types/components/systems/index.d.ts +1 -1
- package/types/composables/index.d.ts +2 -0
- package/types/composables/useDocumentTitle.d.ts +22 -0
- package/types/composables/useDocumentTitle.d.ts.map +1 -0
- package/types/composables/usePageTitle.d.ts +19 -0
- package/types/composables/usePageTitle.d.ts.map +1 -0
- package/types/composables/usePagination.d.ts +25 -0
- package/types/composables/usePagination.d.ts.map +1 -0
- package/types/index.d.ts +1 -0
- package/types/plugins/core/index.d.ts.map +1 -1
- package/types/utils/dom.d.ts +1 -0
- package/types/utils/dom.d.ts.map +1 -1
- package/types/utils/index.d.ts +3 -0
- package/types/utils/index.d.ts.map +1 -0
- package/types/utils/router.d.ts +144 -0
- package/types/utils/router.d.ts.map +1 -0
- package/dist/index-D3Uc6T5M.js +0 -6469
- package/lib/components/collapsible/UluCollapsibleRegion.vue +0 -278
- package/lib/components/forms/UluCheckboxMenu.vue +0 -36
- package/lib/components/systems/facets/UluFacets.vue +0 -380
- package/lib/components/systems/skeleton/UluSkeletonTextInline.vue +0 -9
- package/lib/components/visualizations/UluProgressDonut.vue +0 -97
- package/lib/utils/placeholder.js +0 -6
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
class="progress-donut"
|
|
4
|
-
:class="{
|
|
5
|
-
'progress-donut--small' : small,
|
|
6
|
-
'progress-donut--small-below' : smallBelow,
|
|
7
|
-
'progress-donut--status-low' : !neutral && percentage < 30,
|
|
8
|
-
'progress-donut--status-incomplete' : !neutral && percentage >= 30 && percentage < 100,
|
|
9
|
-
'progress-donut--status-complete' : !neutral && percentage >= 100,
|
|
10
|
-
}"
|
|
11
|
-
>
|
|
12
|
-
<strong class="hidden-visually">Course Progress</strong>
|
|
13
|
-
<div class="progress-donut__chart">
|
|
14
|
-
<!-- Added the 1% extra to 100% becasuse sometimes it renders with a tiny gap -->
|
|
15
|
-
<svg class="progress-donut__chart-svg" viewBox="0 0 32 32">
|
|
16
|
-
<circle
|
|
17
|
-
class="progress-donut__chart-pie"
|
|
18
|
-
ref="pie"
|
|
19
|
-
r="16"
|
|
20
|
-
cx="16"
|
|
21
|
-
cy="16"
|
|
22
|
-
:style="{ strokeDasharray: endDasharray }"
|
|
23
|
-
/>
|
|
24
|
-
<circle
|
|
25
|
-
class="progress-donut__chart-mask"
|
|
26
|
-
:r="small ? 7 : 11"
|
|
27
|
-
cx="16"
|
|
28
|
-
cy="16"
|
|
29
|
-
/>
|
|
30
|
-
</svg>
|
|
31
|
-
<strong v-if="!small" class="progress-donut__chart-value">
|
|
32
|
-
{{ percentage }}%
|
|
33
|
-
</strong>
|
|
34
|
-
</div>
|
|
35
|
-
<!-- The valus is shown to the side or below when small mode -->
|
|
36
|
-
<strong v-if="small" class="progress-donut__value type-small-x">
|
|
37
|
-
{{ percentage }}%
|
|
38
|
-
</strong>
|
|
39
|
-
</div>
|
|
40
|
-
</template>
|
|
41
|
-
|
|
42
|
-
<script>
|
|
43
|
-
let counter = 0;
|
|
44
|
-
export default {
|
|
45
|
-
name: 'ProgressDonut',
|
|
46
|
-
props: {
|
|
47
|
-
percentage: {
|
|
48
|
-
type: Number,
|
|
49
|
-
default: 0
|
|
50
|
-
},
|
|
51
|
-
small: Boolean,
|
|
52
|
-
smallBelow: Boolean,
|
|
53
|
-
neutral: Boolean,
|
|
54
|
-
duration: {
|
|
55
|
-
type: Number,
|
|
56
|
-
default: 500
|
|
57
|
-
},
|
|
58
|
-
easing: {
|
|
59
|
-
type: String,
|
|
60
|
-
default: "ease-in"
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
data() {
|
|
64
|
-
return {
|
|
65
|
-
uid: `progress-donut-${ ++counter }`
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
watch: {
|
|
69
|
-
// Need to reanimate if value changes
|
|
70
|
-
percentage(newVal, oldVal) {
|
|
71
|
-
if (newVal !== oldVal) {
|
|
72
|
-
this.animate(this.normalize(oldVal));
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
computed: {
|
|
77
|
-
endDasharray() {
|
|
78
|
-
return `${ this.normalize(this.percentage) } 100`;
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
methods: {
|
|
82
|
-
normalize(percentage) {
|
|
83
|
-
return percentage === 100 ? 101 : percentage;
|
|
84
|
-
},
|
|
85
|
-
animate(from = 0) {
|
|
86
|
-
const { pie } = this.$refs;
|
|
87
|
-
if (!pie.animate) return; // No Animation API
|
|
88
|
-
const { duration, easing, endDasharray } = this;
|
|
89
|
-
const keyframes = { strokeDasharray: [`${ from } 100`, endDasharray] };
|
|
90
|
-
pie.animate(keyframes, { duration, easing, fill: "forwards" });
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
mounted() {
|
|
94
|
-
this.animate();
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
</script>
|
package/lib/utils/placeholder.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
text: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam commodo felis nisi, nec pretium justo varius sit amet. Vestibulum vitae quam in velit scelerisque tincidunt et vitae mauris. Fusce aliquet, ipsum sit amet lacinia euismod, est risus rhoncus ligula, eget egestas urna ligula nec enim. Fusce vulputate ornare ligula ut tempus. Sed accumsan orci sed turpis iaculis, at aliquam nibh rhoncus. Maecenas porta lorem a sem tincidunt, sed tristique ex laoreet. Nullam accumsan metus at lobortis interdum. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam sagittis sem erat, quis fermentum lectus ultrices quis.",
|
|
3
|
-
textSmall: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam commodo felis nisi, nec pretium justo varius sit amet.",
|
|
4
|
-
paragraph: "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam commodo felis nisi, nec pretium justo varius sit amet. Vestibulum vitae quam in velit scelerisque tincidunt et vitae mauris. Fusce aliquet, ipsum sit amet lacinia euismod, est risus rhoncus ligula, eget egestas urna ligula nec enim. Fusce vulputate ornare ligula ut tempus. Sed accumsan orci sed turpis iaculis, at aliquam nibh rhoncus. Maecenas porta lorem a sem tincidunt, sed tristique ex laoreet. Nullam accumsan metus at lobortis interdum. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Nullam sagittis sem erat, quis fermentum lectus ultrices quis.</p>",
|
|
5
|
-
paragraphSmall: "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam commodo felis nisi, nec pretium justo varius sit amet. Vestibulum vitae quam in velit scelerisque tincidunt et vitae mauris. </p>"
|
|
6
|
-
}
|