@brightspace-ui/core 1.196.0 → 1.197.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.
Files changed (60) hide show
  1. package/components/alert/README.md +9 -5
  2. package/components/backdrop/README.md +6 -11
  3. package/components/backdrop/backdrop.js +3 -0
  4. package/components/breadcrumbs/breadcrumbs.js +2 -1
  5. package/components/button/README.md +1 -1
  6. package/components/button/button-icon.js +1 -0
  7. package/components/button/button-mixin.js +2 -0
  8. package/components/button/button-subtle.js +1 -0
  9. package/components/button/button.js +1 -0
  10. package/components/button/floating-buttons.js +1 -0
  11. package/components/calendar/calendar.js +1 -1
  12. package/components/card/README.md +1 -1
  13. package/components/card/card-footer-link.js +12 -2
  14. package/components/card/card-loading-shimmer.js +1 -0
  15. package/components/card/card.js +9 -0
  16. package/components/count-badge/count-badge-icon.js +17 -9
  17. package/components/count-badge/count-badge-mixin.js +52 -47
  18. package/components/count-badge/count-badge.js +5 -4
  19. package/components/dialog/README.md +1 -1
  20. package/components/dialog/dialog-confirm.js +1 -2
  21. package/components/dialog/dialog-fullscreen.js +4 -5
  22. package/components/dialog/dialog-mixin.js +2 -0
  23. package/components/dialog/dialog.js +0 -2
  24. package/components/dropdown/README.md +2 -8
  25. package/components/dropdown/dropdown-button-subtle.js +3 -3
  26. package/components/dropdown/dropdown-button.js +2 -0
  27. package/components/dropdown/dropdown-content-mixin.js +25 -6
  28. package/components/dropdown/dropdown-content.js +0 -3
  29. package/components/dropdown/dropdown-context-menu.js +2 -0
  30. package/components/dropdown/dropdown-menu.js +0 -3
  31. package/components/dropdown/dropdown-more.js +2 -0
  32. package/components/dropdown/dropdown-opener-mixin.js +2 -0
  33. package/components/dropdown/dropdown-tabs.js +0 -3
  34. package/components/filter/README.md +4 -4
  35. package/components/focus-trap/README.md +0 -4
  36. package/components/form/docs/form-element-mixin.md +0 -4
  37. package/components/html-block/README.md +2 -7
  38. package/components/icons/images/tier3/rubric-graded.svg +2 -2
  39. package/components/inputs/input-radio-styles.js +2 -1
  40. package/components/list/README.md +2 -1
  41. package/components/list/demo/list-item-custom.js +7 -3
  42. package/components/list/demo/list-nested.html +6 -62
  43. package/components/list/list-item-generic-layout.js +85 -14
  44. package/components/list/list.js +27 -2
  45. package/components/loading-spinner/README.md +1 -1
  46. package/components/meter/README.md +1 -5
  47. package/components/offscreen/README.md +0 -6
  48. package/components/selection/selection-input.js +4 -2
  49. package/components/selection/selection-mixin.js +1 -0
  50. package/components/status-indicator/README.md +1 -7
  51. package/components/switch/README.md +1 -5
  52. package/components/switch/switch-mixin.js +1 -0
  53. package/components/tabs/README.md +0 -3
  54. package/components/tooltip/README.md +1 -1
  55. package/custom-elements.json +59 -71
  56. package/generated/icons/tier3/rubric-graded.js +3 -2
  57. package/helpers/focus.js +4 -2
  58. package/mixins/labelled-mixin.js +1 -0
  59. package/package.json +1 -1
  60. package/templates/primary-secondary/README.md +2 -6
package/helpers/focus.js CHANGED
@@ -98,11 +98,13 @@ export function getPreviousFocusable(node, includeHidden) {
98
98
  return focusable;
99
99
  }
100
100
 
101
- export function getNextFocusable(node, includeHidden) {
101
+ export function getNextFocusable(node, includeHidden, ignore, ignoreChildren) {
102
102
 
103
103
  if (!node) return null;
104
104
 
105
105
  if (includeHidden === undefined) includeHidden = false;
106
+ if (ignore === undefined) ignore = true;
107
+ if (ignoreChildren === undefined) ignoreChildren = false;
106
108
 
107
109
  const _getNextFocusable = (node, ignore, ignoreChildren) => {
108
110
  if (!ignore && isFocusable(node, includeHidden)) return node;
@@ -128,7 +130,7 @@ export function getNextFocusable(node, includeHidden) {
128
130
  return null;
129
131
  };
130
132
 
131
- const focusable = _getNextFocusable(node, true, false);
133
+ const focusable = _getNextFocusable(node, ignore, ignoreChildren);
132
134
  return focusable;
133
135
 
134
136
  }
@@ -180,6 +180,7 @@ export const LabelledMixin = superclass => class extends superclass {
180
180
  }
181
181
 
182
182
  this.label = getLabel(this._labelElem);
183
+ /** @ignore */
183
184
  this.dispatchEvent(new CustomEvent(
184
185
  'd2l-labelled-mixin-label-elem-change', {
185
186
  bubbles: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "1.196.0",
3
+ "version": "1.197.0",
4
4
  "description": "A collection of accessible, free, open-source web components for building Brightspace applications",
5
5
  "repository": "https://github.com/BrightspaceUI/core.git",
6
6
  "publishConfig": {
@@ -1,5 +1,5 @@
1
1
  # Templates
2
- Page templates are used to provide generic ways to arrange content on a page
2
+ Page templates are used to provide generic ways to arrange content on a page
3
3
 
4
4
  ## Primary-Secondary [d2l-primary-secondary]
5
5
  Two Panel (primary and secondary) page template with header and optional footer
@@ -71,8 +71,4 @@ If either of the panels contain an `iframe`, resizing may not work properly. Thi
71
71
  * `footer`: page footer content
72
72
  * `primary`: main page content
73
73
  * `secondary`: supplementary page content
74
-
75
- ### Future Enhancements
76
-
77
- Looking for an enhancement not listed here? Create a GitHub issue!
78
- <!-- docs: end hidden content -->
74
+ <!-- docs: end hidden content -->