@brightspace-ui/core 3.54.0 → 3.55.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -56,12 +56,14 @@ Linear meters show a horizontal progress bar.
56
56
 
57
57
  * `value` (required, Number): Current number of completed units. A positive, non-zero number that is less than or equal to `max`.
58
58
  * `max` (Number, default: `100`): Max number of units that are being measured by this meter. A positive, non-zero number.
59
- * `percent` Boolean: Shows a percentage instead of `value/max`.
60
- * `text-inline` Boolean: Keeps the meter to a single line. Adding one of the following between `{}` (e.g., `{x/y}`) causes replacements:
59
+ * `percent` (Boolean): Shows a percentage instead of `value/max`.
60
+ * `text-inline` (Boolean): Keeps the meter to a single line.
61
+ * `text` (String): Context information about what the meter is about. Adding one of the following between `{}` (e.g., `{x/y}`) causes replacements:
61
62
  * `%` in the string will be replaced with percentage value
62
63
  * `x/y` in the string will be replaced with fraction with the proper language support
63
64
  * **DEPRECATED** `x` in the string will be replaced with `value`
64
65
  * **DEPRECATED** `y` in the string will be replaced with `max`
66
+ * `text-hidden` (Boolean): Hides the text visually
65
67
  <!-- docs: end hidden content -->
66
68
 
67
69
  ## Radial meter [d2l-meter-radial]
@@ -42,6 +42,7 @@
42
42
  <d2l-meter-linear value="3" max="6"></d2l-meter-linear>
43
43
  <d2l-meter-linear value="3" max="6" percent></d2l-meter-linear>
44
44
  <d2l-meter-linear value="3" max="6" text="Visited: {x/y}" percent></d2l-meter-linear>
45
+ <d2l-meter-linear value="3" max="6" text="Visited: {x/y}" percent text-hidden></d2l-meter-linear>
45
46
  <d2l-meter-linear value="3" max="6" text="Visited: {%}"></d2l-meter-linear>
46
47
  <d2l-meter-linear value="3" max="6" text="You're doing great!" percent></d2l-meter-linear>
47
48
  </div>
@@ -115,7 +115,9 @@ class MeterLinear extends MeterMixin(RtlMixin(LitElement)) {
115
115
  'd2l-meter-linear-primary-ltr': !this.percent,
116
116
  'd2l-meter-linear-primary': true
117
117
  };
118
- const secondaryTextElement = secondary ? html`<div class="d2l-meter-linear-secondary">${secondary}</div>` : nothing;
118
+ const secondaryTextElement = secondary && !this.textHidden
119
+ ? html`<div class="d2l-meter-linear-secondary">${secondary}</div>`
120
+ : nothing;
119
121
 
120
122
  return html `
121
123
  <div
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "3.54.0",
3
+ "version": "3.55.0",
4
4
  "description": "A collection of accessible, free, open-source web components for building Brightspace applications",
5
5
  "type": "module",
6
6
  "repository": "https://github.com/BrightspaceUI/core.git",