@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.
Files changed (99) hide show
  1. package/dist/{breakpoints-BbkGNxxt.js → breakpoints-DM-CBTtb.js} +1 -1
  2. package/dist/frontend-vue.css +1 -1
  3. package/dist/frontend-vue.js +79 -68
  4. package/dist/index-BNRZ3Apw.js +7541 -0
  5. package/lib/components/collapsible/UluAccordion.vue +71 -53
  6. package/lib/components/collapsible/UluAccordionGroup.vue +54 -0
  7. package/lib/components/collapsible/UluCollapsible.vue +144 -0
  8. package/lib/components/collapsible/UluDropdown.vue +29 -29
  9. package/lib/components/collapsible/UluOverflowPopover.vue +1 -1
  10. package/lib/components/elements/UluBadge.vue +51 -28
  11. package/lib/components/elements/UluBadgeStack.vue +8 -13
  12. package/lib/components/elements/UluButtonVerbose.vue +119 -0
  13. package/lib/components/elements/UluCard.vue +1 -1
  14. package/lib/components/elements/UluDefinitionList.vue +14 -17
  15. package/lib/components/elements/UluExternalLink.vue +21 -27
  16. package/lib/components/elements/UluIcon.vue +11 -1
  17. package/lib/components/elements/UluList.vue +53 -55
  18. package/lib/components/elements/UluSpokeSpinner.vue +12 -18
  19. package/lib/components/elements/UluTag.vue +35 -35
  20. package/lib/components/forms/UluFileDisplay.vue +49 -31
  21. package/lib/components/forms/UluFormFile.vue +37 -24
  22. package/lib/components/forms/UluFormMessage.vue +13 -10
  23. package/lib/components/forms/UluFormSelect.vue +28 -16
  24. package/lib/components/forms/UluFormText.vue +24 -15
  25. package/lib/components/forms/UluSearchForm.vue +11 -10
  26. package/lib/components/forms/UluSelectableMenu.vue +99 -0
  27. package/lib/components/index.js +4 -3
  28. package/lib/components/layout/UluTitleRail.vue +18 -0
  29. package/lib/components/layout/UluWhenBreakpoint.vue +9 -0
  30. package/lib/components/navigation/UluBreadcrumb.vue +9 -2
  31. package/lib/components/navigation/UluMenu.vue +8 -3
  32. package/lib/components/navigation/UluMenuStack.vue +3 -1
  33. package/lib/components/navigation/UluPager.vue +102 -0
  34. package/lib/components/systems/facets/ExampleFacetsWithPagination.vue +119 -0
  35. package/lib/components/systems/facets/UluFacetsFilterLists.vue +91 -0
  36. package/lib/components/systems/facets/UluFacetsFilterPopovers.vue +125 -0
  37. package/lib/components/systems/facets/UluFacetsFilterSelects.vue +71 -0
  38. package/lib/components/systems/facets/UluFacetsHeaderLayout.vue +24 -0
  39. package/lib/components/systems/facets/UluFacetsList.vue +62 -34
  40. package/lib/components/systems/facets/UluFacetsResults.vue +63 -0
  41. package/lib/components/systems/facets/UluFacetsSearch.vue +27 -50
  42. package/lib/components/systems/facets/UluFacetsSidebarLayout.vue +70 -0
  43. package/lib/components/systems/facets/UluFacetsSort.vue +45 -0
  44. package/lib/components/systems/facets/_facets.scss +2 -3
  45. package/lib/components/systems/facets/_mock-data.js +40 -0
  46. package/lib/components/systems/facets/useFacets.js +268 -0
  47. package/lib/components/systems/index.js +13 -2
  48. package/lib/components/systems/scroll-anchors/UluScrollAnchors.vue +2 -1
  49. package/lib/components/systems/skeleton/UluShowSkeleton.vue +9 -8
  50. package/lib/components/systems/skeleton/UluSkeletonContent.vue +39 -43
  51. package/lib/components/systems/skeleton/UluSkeletonMedia.vue +4 -6
  52. package/lib/components/systems/skeleton/UluSkeletonText.vue +27 -0
  53. package/lib/components/systems/slider/UluImageSlideShow.vue +1 -1
  54. package/lib/components/systems/slider/UluSlideShow.vue +8 -3
  55. package/lib/components/systems/table-sticky/UluTableSticky.vue +7 -7
  56. package/lib/components/systems/table-sticky/UluTableStickyTable.vue +3 -3
  57. package/lib/components/visualizations/UluAnimateNumber.vue +7 -1
  58. package/lib/components/visualizations/UluProgressBar.vue +99 -68
  59. package/lib/components/visualizations/UluProgressCircle.vue +146 -0
  60. package/lib/components/visualizations/progress-bar-examples.html +175 -0
  61. package/lib/composables/index.js +3 -1
  62. package/lib/composables/useDocumentTitle.js +61 -0
  63. package/lib/composables/usePagination.js +122 -0
  64. package/lib/index.js +1 -0
  65. package/lib/plugins/core/index.js +6 -1
  66. package/lib/plugins/popovers/UluPopover.vue +8 -3
  67. package/lib/plugins/toast/UluToast.vue +1 -1
  68. package/lib/plugins/toast/UluToastDisplay.vue +19 -2
  69. package/lib/utils/dom.js +12 -0
  70. package/lib/utils/index.js +2 -0
  71. package/lib/utils/{vue-router.js → router.js} +114 -30
  72. package/package.json +17 -11
  73. package/types/components/systems/facets/_mock-data.d.ts +18 -0
  74. package/types/components/systems/facets/_mock-data.d.ts.map +1 -0
  75. package/types/components/systems/facets/useFacets.d.ts +39 -0
  76. package/types/components/systems/facets/useFacets.d.ts.map +1 -0
  77. package/types/components/systems/index.d.ts +1 -1
  78. package/types/composables/index.d.ts +2 -0
  79. package/types/composables/useDocumentTitle.d.ts +22 -0
  80. package/types/composables/useDocumentTitle.d.ts.map +1 -0
  81. package/types/composables/usePageTitle.d.ts +19 -0
  82. package/types/composables/usePageTitle.d.ts.map +1 -0
  83. package/types/composables/usePagination.d.ts +25 -0
  84. package/types/composables/usePagination.d.ts.map +1 -0
  85. package/types/index.d.ts +1 -0
  86. package/types/plugins/core/index.d.ts.map +1 -1
  87. package/types/utils/dom.d.ts +1 -0
  88. package/types/utils/dom.d.ts.map +1 -1
  89. package/types/utils/index.d.ts +3 -0
  90. package/types/utils/index.d.ts.map +1 -0
  91. package/types/utils/router.d.ts +144 -0
  92. package/types/utils/router.d.ts.map +1 -0
  93. package/dist/index-D3Uc6T5M.js +0 -6469
  94. package/lib/components/collapsible/UluCollapsibleRegion.vue +0 -278
  95. package/lib/components/forms/UluCheckboxMenu.vue +0 -36
  96. package/lib/components/systems/facets/UluFacets.vue +0 -380
  97. package/lib/components/systems/skeleton/UluSkeletonTextInline.vue +0 -9
  98. package/lib/components/visualizations/UluProgressDonut.vue +0 -97
  99. 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>
@@ -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
- }