@brightspace-ui/core 1.197.1 → 1.198.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.
- package/components/dropdown/README.md +4 -0
- package/components/dropdown/demo/dropdown-button.html +30 -0
- package/components/dropdown/dropdown-content-styles.js +13 -0
- package/components/dropdown/dropdown-opener-mixin.js +221 -24
- package/components/filter/README.md +15 -6
- package/components/filter/screenshots/filter-mobile.png +0 -0
- package/components/filter/screenshots/filter-multi-dim.png +0 -0
- package/components/filter/screenshots/filter.png +0 -0
- package/components/html-block/html-block.js +8 -0
- package/components/inputs/docs/input-date-time.md +7 -7
- package/components/list/list-item-button-mixin.js +1 -0
- package/components/list/list-item-button.js +0 -3
- package/components/list/list-item-checkbox-mixin.js +1 -0
- package/components/list/list-item-drag-drop-mixin.js +2 -0
- package/components/list/list-item-link-mixin.js +1 -0
- package/components/list/list-item.js +0 -3
- package/components/list/list.js +2 -0
- package/components/menu/menu-item-checkbox.js +0 -4
- package/components/menu/menu-item-link.js +0 -2
- package/components/menu/menu-item-mixin.js +3 -0
- package/components/menu/menu-item-radio.js +0 -3
- package/components/menu/menu-item-selectable-mixin.js +2 -0
- package/components/menu/menu-item.js +0 -2
- package/components/overflow-group/overflow-group.js +4 -3
- package/components/scroll-wrapper/scroll-wrapper.js +1 -2
- package/components/selection/selection-action.js +4 -0
- package/components/selection/selection-input.js +5 -0
- package/components/selection/selection-mixin.js +2 -1
- package/components/selection/selection-observer-mixin.js +3 -1
- package/components/selection/selection-select-all.js +2 -0
- package/components/selection/selection-summary.js +3 -1
- package/components/skeleton/skeleton-mixin.js +1 -0
- package/components/status-indicator/status-indicator.js +2 -0
- package/components/switch/switch-visibility.js +3 -0
- package/components/switch/switch.js +3 -0
- package/components/table/table-col-sort-button.js +0 -2
- package/components/table/table-wrapper.js +0 -2
- package/components/tabs/tab-panel-mixin.js +2 -0
- package/components/tabs/tab-panel.js +0 -2
- package/custom-elements.json +104 -29
- package/lang/ar.js +7 -7
- package/lang/cy.js +7 -7
- package/lang/da.js +7 -7
- package/lang/de.js +7 -7
- package/lang/es-es.js +7 -7
- package/lang/es.js +8 -8
- package/lang/fr-fr.js +8 -8
- package/lang/fr.js +7 -7
- package/lang/ja.js +8 -8
- package/lang/ko.js +7 -7
- package/lang/nl.js +8 -8
- package/lang/pt.js +7 -7
- package/lang/sv.js +7 -7
- package/lang/tr.js +7 -7
- package/lang/zh-tw.js +7 -7
- package/lang/zh.js +8 -8
- package/package.json +1 -1
- package/templates/primary-secondary/primary-secondary.js +2 -0
|
@@ -6,9 +6,6 @@ import { RtlMixin } from '../../mixins/rtl-mixin.js';
|
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* A menu item component used for radio selection. Only one radio item in a given d2l-menu may be selected at once (i.e., selecting one option will deselect the other selected "d2l-menu-item-radio" item).
|
|
9
|
-
* @fires d2l-menu-item-change - Dispatched when the selected menu item changes
|
|
10
|
-
* @fires d2l-menu-item-select - Dispatched when a menu item is selected
|
|
11
|
-
* @fires d2l-menu-item-visibility-change - Dispatched when the visibility of the menu item changes
|
|
12
9
|
*/
|
|
13
10
|
class MenuItemRadio extends RtlMixin(MenuItemRadioMixin(LitElement)) {
|
|
14
11
|
|
|
@@ -6,6 +6,7 @@ export const MenuItemSelectableMixin = superclass => class extends MenuItemMixin
|
|
|
6
6
|
return {
|
|
7
7
|
/**
|
|
8
8
|
* This will set the item to be selected by default
|
|
9
|
+
* @type {boolean}
|
|
9
10
|
*/
|
|
10
11
|
selected: { type: Boolean, reflect: true },
|
|
11
12
|
/**
|
|
@@ -42,6 +43,7 @@ export const MenuItemSelectableMixin = superclass => class extends MenuItemMixin
|
|
|
42
43
|
selected: this.selected
|
|
43
44
|
}
|
|
44
45
|
};
|
|
46
|
+
/** Dispatched when the selected menu item changes */
|
|
45
47
|
this.dispatchEvent(new CustomEvent('d2l-menu-item-change', eventDetails));
|
|
46
48
|
}
|
|
47
49
|
|
|
@@ -6,8 +6,6 @@ import { menuItemStyles } from './menu-item-styles.js';
|
|
|
6
6
|
/**
|
|
7
7
|
* A menu item component used with JS handlers.
|
|
8
8
|
* @slot - Default content placed inside of the component
|
|
9
|
-
* @fires d2l-menu-item-select - Dispatched when a menu item is selected
|
|
10
|
-
* @fires d2l-menu-item-visibility-change - Dispatched when the visibility of the menu item changes
|
|
11
9
|
*/
|
|
12
10
|
class MenuItem extends MenuItemMixin(LitElement) {
|
|
13
11
|
|
|
@@ -111,9 +111,7 @@ function convertToDropdownItem(node) {
|
|
|
111
111
|
}
|
|
112
112
|
/**
|
|
113
113
|
*
|
|
114
|
-
* A component that can be used to display a set of buttons, links or menus that will be put into a
|
|
115
|
-
* dropdown menu when they no longer fit on the first line of their container
|
|
116
|
-
*
|
|
114
|
+
* A component that can be used to display a set of buttons, links or menus that will be put into a dropdown menu when they no longer fit on the first line of their container
|
|
117
115
|
* @slot - Buttons, dropdown buttons, links or other items to be added to the container
|
|
118
116
|
* @fires d2l-overflow-group-updated - Dispatched when there is an update performed to the overflow group
|
|
119
117
|
*/
|
|
@@ -123,6 +121,7 @@ class OverflowGroup extends RtlMixin(LocalizeCoreElement(LitElement)) {
|
|
|
123
121
|
return {
|
|
124
122
|
/**
|
|
125
123
|
* Use predefined classes on slot elements to set min and max buttons to show
|
|
124
|
+
* @type {boolean}
|
|
126
125
|
*/
|
|
127
126
|
autoShow: {
|
|
128
127
|
type: Boolean,
|
|
@@ -130,6 +129,7 @@ class OverflowGroup extends RtlMixin(LocalizeCoreElement(LitElement)) {
|
|
|
130
129
|
},
|
|
131
130
|
/**
|
|
132
131
|
* minimum amount of buttons to show
|
|
132
|
+
* @type {number}
|
|
133
133
|
*/
|
|
134
134
|
minToShow: {
|
|
135
135
|
type: Number,
|
|
@@ -138,6 +138,7 @@ class OverflowGroup extends RtlMixin(LocalizeCoreElement(LitElement)) {
|
|
|
138
138
|
},
|
|
139
139
|
/**
|
|
140
140
|
* maximum amount of buttons to show
|
|
141
|
+
* @type {number}
|
|
141
142
|
*/
|
|
142
143
|
maxToShow: {
|
|
143
144
|
type: Number,
|
|
@@ -12,7 +12,6 @@ const SCROLL_AMOUNT = 0.8;
|
|
|
12
12
|
/**
|
|
13
13
|
*
|
|
14
14
|
* Wraps content which may overflow its horizontal boundaries, providing left/right scroll buttons.
|
|
15
|
-
*
|
|
16
15
|
* @slot - User provided content to wrap
|
|
17
16
|
*/
|
|
18
17
|
class ScrollWrapper extends FocusVisiblePolyfillMixin(RtlMixin(LitElement)) {
|
|
@@ -54,7 +53,7 @@ class ScrollWrapper extends FocusVisiblePolyfillMixin(RtlMixin(LitElement)) {
|
|
|
54
53
|
:host([hidden]) {
|
|
55
54
|
display: none;
|
|
56
55
|
}
|
|
57
|
-
|
|
56
|
+
|
|
58
57
|
.d2l-scroll-wrapper-container {
|
|
59
58
|
box-sizing: border-box;
|
|
60
59
|
outline: none;
|
|
@@ -12,6 +12,7 @@ import { SelectionObserverMixin } from './selection-observer-mixin.js';
|
|
|
12
12
|
/**
|
|
13
13
|
* An action associated with a selection component.
|
|
14
14
|
* @fires d2l-selection-action-click - Dispatched when the user clicks the action; provides the selection info
|
|
15
|
+
* @fires d2l-selection-observer-subscribe - Internal event
|
|
15
16
|
*/
|
|
16
17
|
class Action extends LocalizeCoreElement(SelectionObserverMixin(ButtonMixin(RtlMixin(LitElement)))) {
|
|
17
18
|
|
|
@@ -19,14 +20,17 @@ class Action extends LocalizeCoreElement(SelectionObserverMixin(ButtonMixin(RtlM
|
|
|
19
20
|
return {
|
|
20
21
|
/**
|
|
21
22
|
* Preset icon key (e.g. "tier1:gear")
|
|
23
|
+
* @type {string}
|
|
22
24
|
*/
|
|
23
25
|
icon: { type: String, reflect: true },
|
|
24
26
|
/**
|
|
25
27
|
* Whether the action requires one or more selected items
|
|
28
|
+
* @type {boolean}
|
|
26
29
|
*/
|
|
27
30
|
requiresSelection: { type: Boolean, attribute: 'requires-selection', reflect: true },
|
|
28
31
|
/**
|
|
29
32
|
* REQUIRED: The text for the action
|
|
33
|
+
* @type {string}
|
|
30
34
|
*/
|
|
31
35
|
text: { type: String, reflect: true }
|
|
32
36
|
};
|
|
@@ -13,6 +13,7 @@ const keyCodes = {
|
|
|
13
13
|
/**
|
|
14
14
|
* An input (radio or checkbox) for use in selection components such as lists and tables.
|
|
15
15
|
* @fires d2l-selection-change - Dispatched when the selected state changes
|
|
16
|
+
* @fires d2l-selection-input-subscribe - Internal event
|
|
16
17
|
*/
|
|
17
18
|
class Input extends SkeletonMixin(LabelledMixin(LitElement)) {
|
|
18
19
|
|
|
@@ -20,18 +21,22 @@ class Input extends SkeletonMixin(LabelledMixin(LitElement)) {
|
|
|
20
21
|
return {
|
|
21
22
|
/**
|
|
22
23
|
* State of the input
|
|
24
|
+
* @type {boolean}
|
|
23
25
|
*/
|
|
24
26
|
selected: { type: Boolean },
|
|
25
27
|
/**
|
|
26
28
|
* Disables the input
|
|
29
|
+
* @type {boolean}
|
|
27
30
|
*/
|
|
28
31
|
disabled: { type: Boolean },
|
|
29
32
|
/**
|
|
30
33
|
* Private. Force hovering state of input
|
|
34
|
+
* @type {boolean}
|
|
31
35
|
*/
|
|
32
36
|
hovering: { type: Boolean },
|
|
33
37
|
/**
|
|
34
38
|
* Key for the selectable
|
|
39
|
+
* @type {string}
|
|
35
40
|
*/
|
|
36
41
|
key: { type: String },
|
|
37
42
|
_indeterminate: { type: Boolean },
|
|
@@ -39,7 +39,8 @@ export const SelectionMixin = superclass => class extends RtlMixin(superclass) {
|
|
|
39
39
|
static get properties() {
|
|
40
40
|
return {
|
|
41
41
|
/**
|
|
42
|
-
* Whether the selection control is limited to single selection
|
|
42
|
+
* Whether the selection control is limited to single selection
|
|
43
|
+
* @type {boolean}
|
|
43
44
|
*/
|
|
44
45
|
selectionSingle: { type: Boolean, attribute: 'selection-single' }
|
|
45
46
|
};
|
|
@@ -7,10 +7,12 @@ export const SelectionObserverMixin = superclass => class extends superclass {
|
|
|
7
7
|
return {
|
|
8
8
|
/**
|
|
9
9
|
* Id of the SelectionMixin component this component wants to observe (if not located within that component)
|
|
10
|
+
* @type {string}
|
|
10
11
|
*/
|
|
11
12
|
selectionFor: { type: String, reflect: true, attribute: 'selection-for' },
|
|
12
13
|
/**
|
|
13
|
-
* The selection info (set by the selection component)
|
|
14
|
+
* The selection info (set by the selection component)
|
|
15
|
+
* @type {object}
|
|
14
16
|
*/
|
|
15
17
|
selectionInfo: { type: Object },
|
|
16
18
|
_provider: { type: Object, attribute: false }
|
|
@@ -7,6 +7,7 @@ import { SelectionObserverMixin } from './selection-observer-mixin.js';
|
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* A checkbox that provides select-all behavior for selection components such as tables and lists.
|
|
10
|
+
* @fires d2l-selection-observer-subscribe - Internal event
|
|
10
11
|
*/
|
|
11
12
|
class SelectAll extends LocalizeCoreElement(SelectionObserverMixin(LitElement)) {
|
|
12
13
|
|
|
@@ -14,6 +15,7 @@ class SelectAll extends LocalizeCoreElement(SelectionObserverMixin(LitElement))
|
|
|
14
15
|
return {
|
|
15
16
|
/**
|
|
16
17
|
* Disables the select all checkbox
|
|
18
|
+
* @type {boolean}
|
|
17
19
|
*/
|
|
18
20
|
disabled: { type: Boolean }
|
|
19
21
|
};
|
|
@@ -6,13 +6,15 @@ import { SelectionObserverMixin } from './selection-observer-mixin.js';
|
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* A summary showing the current selected count.
|
|
9
|
+
* @fires d2l-selection-observer-subscribe - Internal event
|
|
9
10
|
*/
|
|
10
11
|
class Summary extends LocalizeCoreElement(SelectionObserverMixin(LitElement)) {
|
|
11
12
|
|
|
12
13
|
static get properties() {
|
|
13
14
|
return {
|
|
14
15
|
/**
|
|
15
|
-
* Text to display if no items are selected
|
|
16
|
+
* Text to display if no items are selected
|
|
17
|
+
* @type {string}
|
|
16
18
|
*/
|
|
17
19
|
noSelectionText: { type: String, attribute: 'no-selection-text' }
|
|
18
20
|
};
|
|
@@ -148,6 +148,7 @@ export const SkeletonMixin = dedupeMixin(superclass => class extends RtlMixin(su
|
|
|
148
148
|
return {
|
|
149
149
|
/**
|
|
150
150
|
* Renders the input as a [skeleton loader](https://github.com/BrightspaceUI/core/tree/main/components/skeleton)
|
|
151
|
+
* @type {boolean}
|
|
151
152
|
*/
|
|
152
153
|
skeleton: { reflect: true, type: Boolean }
|
|
153
154
|
};
|
|
@@ -18,12 +18,14 @@ class StatusIndicator extends LitElement {
|
|
|
18
18
|
},
|
|
19
19
|
/**
|
|
20
20
|
* REQUIRED: The text that is displayed within the status indicator
|
|
21
|
+
* @type {string}
|
|
21
22
|
*/
|
|
22
23
|
text: {
|
|
23
24
|
type: String
|
|
24
25
|
},
|
|
25
26
|
/**
|
|
26
27
|
* Use when the status is very important and needs to have a lot of prominence
|
|
28
|
+
* @type {boolean}
|
|
27
29
|
*/
|
|
28
30
|
bold: {
|
|
29
31
|
type: Boolean,
|
|
@@ -3,6 +3,9 @@ import { html, LitElement } from 'lit-element/lit-element.js';
|
|
|
3
3
|
import { LocalizeCoreElement } from '../../lang/localize-core-element.js';
|
|
4
4
|
import { SwitchMixin } from './switch-mixin.js';
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* A variant of the generic switch configured with special icons and default text for toggling "visibility".
|
|
8
|
+
*/
|
|
6
9
|
class VisibilitySwitch extends LocalizeCoreElement(SwitchMixin(LitElement)) {
|
|
7
10
|
|
|
8
11
|
get text() {
|
|
@@ -4,6 +4,9 @@ import '../icons/icon-custom.js';
|
|
|
4
4
|
import { html, LitElement } from 'lit-element/lit-element.js';
|
|
5
5
|
import { SwitchMixin } from './switch-mixin.js';
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* A generic switch with on/off semantics.
|
|
9
|
+
*/
|
|
7
10
|
class Switch extends SwitchMixin(LitElement) {
|
|
8
11
|
|
|
9
12
|
get offIcon() {
|
|
@@ -2,9 +2,7 @@ import '../icons/icon.js';
|
|
|
2
2
|
import { css, html, LitElement } from 'lit-element/lit-element.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
5
|
* Button for sorting a table column in ascending/descending order.
|
|
7
|
-
*
|
|
8
6
|
* @slot - Text of the sort button
|
|
9
7
|
*/
|
|
10
8
|
export class TableColSortButton extends LitElement {
|
|
@@ -164,9 +164,7 @@ export const tableStyles = css`
|
|
|
164
164
|
`;
|
|
165
165
|
|
|
166
166
|
/**
|
|
167
|
-
*
|
|
168
167
|
* Wraps a native <table> element, providing styling and scroll buttons for overflow.
|
|
169
|
-
*
|
|
170
168
|
* @slot - Content to wrap
|
|
171
169
|
*/
|
|
172
170
|
export class TableWrapper extends RtlMixin(LitElement) {
|
|
@@ -55,6 +55,7 @@ export const TabPanelMixin = superclass => class extends superclass {
|
|
|
55
55
|
super.attributeChangedCallback(name, oldval, newval);
|
|
56
56
|
if (name === 'text') {
|
|
57
57
|
this.setAttribute('aria-label', this.text);
|
|
58
|
+
/** Dispatched when the text attribute is changed */
|
|
58
59
|
this.dispatchEvent(new CustomEvent(
|
|
59
60
|
'd2l-tab-panel-text-changed', { bubbles: true, composed: true, detail: { text: this.text } }
|
|
60
61
|
));
|
|
@@ -73,6 +74,7 @@ export const TabPanelMixin = superclass => class extends superclass {
|
|
|
73
74
|
if (prop === 'selected') {
|
|
74
75
|
if (this.selected) {
|
|
75
76
|
requestAnimationFrame(() => {
|
|
77
|
+
/** Dispatched when a tab is selected */
|
|
76
78
|
this.dispatchEvent(new CustomEvent(
|
|
77
79
|
'd2l-tab-panel-selected', { bubbles: true, composed: true }
|
|
78
80
|
));
|
|
@@ -4,8 +4,6 @@ import { TabPanelMixin } from './tab-panel-mixin.js';
|
|
|
4
4
|
/**
|
|
5
5
|
* A component for tab panel content.
|
|
6
6
|
* @slot - Default content in tab panel
|
|
7
|
-
* @fires d2l-tab-panel-text-changed - Dispatched when the text attribute is changed
|
|
8
|
-
* @fires d2l-tab-panel-selected - Dispatched when a tab is selected
|
|
9
7
|
*/
|
|
10
8
|
class TabPanel extends TabPanelMixin(LitElement) {
|
|
11
9
|
|
package/custom-elements.json
CHANGED
|
@@ -1686,6 +1686,12 @@
|
|
|
1686
1686
|
"type": "boolean",
|
|
1687
1687
|
"default": "false"
|
|
1688
1688
|
},
|
|
1689
|
+
{
|
|
1690
|
+
"name": "open-on-hover",
|
|
1691
|
+
"description": "Optionally open dropdown on click or hover action",
|
|
1692
|
+
"type": "boolean",
|
|
1693
|
+
"default": "false"
|
|
1694
|
+
},
|
|
1689
1695
|
{
|
|
1690
1696
|
"name": "disabled",
|
|
1691
1697
|
"description": "Disables the dropdown opener",
|
|
@@ -1718,6 +1724,13 @@
|
|
|
1718
1724
|
"type": "boolean",
|
|
1719
1725
|
"default": "false"
|
|
1720
1726
|
},
|
|
1727
|
+
{
|
|
1728
|
+
"name": "openOnHover",
|
|
1729
|
+
"attribute": "open-on-hover",
|
|
1730
|
+
"description": "Optionally open dropdown on click or hover action",
|
|
1731
|
+
"type": "boolean",
|
|
1732
|
+
"default": "false"
|
|
1733
|
+
},
|
|
1721
1734
|
{
|
|
1722
1735
|
"name": "disabled",
|
|
1723
1736
|
"attribute": "disabled",
|
|
@@ -1755,6 +1768,12 @@
|
|
|
1755
1768
|
"type": "boolean",
|
|
1756
1769
|
"default": "false"
|
|
1757
1770
|
},
|
|
1771
|
+
{
|
|
1772
|
+
"name": "open-on-hover",
|
|
1773
|
+
"description": "Optionally open dropdown on click or hover action",
|
|
1774
|
+
"type": "boolean",
|
|
1775
|
+
"default": "false"
|
|
1776
|
+
},
|
|
1758
1777
|
{
|
|
1759
1778
|
"name": "disabled",
|
|
1760
1779
|
"description": "Disables the dropdown opener",
|
|
@@ -1788,6 +1807,13 @@
|
|
|
1788
1807
|
"type": "boolean",
|
|
1789
1808
|
"default": "false"
|
|
1790
1809
|
},
|
|
1810
|
+
{
|
|
1811
|
+
"name": "openOnHover",
|
|
1812
|
+
"attribute": "open-on-hover",
|
|
1813
|
+
"description": "Optionally open dropdown on click or hover action",
|
|
1814
|
+
"type": "boolean",
|
|
1815
|
+
"default": "false"
|
|
1816
|
+
},
|
|
1791
1817
|
{
|
|
1792
1818
|
"name": "disabled",
|
|
1793
1819
|
"attribute": "disabled",
|
|
@@ -2087,6 +2113,12 @@
|
|
|
2087
2113
|
"type": "boolean",
|
|
2088
2114
|
"default": "false"
|
|
2089
2115
|
},
|
|
2116
|
+
{
|
|
2117
|
+
"name": "open-on-hover",
|
|
2118
|
+
"description": "Optionally open dropdown on click or hover action",
|
|
2119
|
+
"type": "boolean",
|
|
2120
|
+
"default": "false"
|
|
2121
|
+
},
|
|
2090
2122
|
{
|
|
2091
2123
|
"name": "disabled",
|
|
2092
2124
|
"description": "Disables the dropdown opener",
|
|
@@ -2120,6 +2152,13 @@
|
|
|
2120
2152
|
"type": "boolean",
|
|
2121
2153
|
"default": "false"
|
|
2122
2154
|
},
|
|
2155
|
+
{
|
|
2156
|
+
"name": "openOnHover",
|
|
2157
|
+
"attribute": "open-on-hover",
|
|
2158
|
+
"description": "Optionally open dropdown on click or hover action",
|
|
2159
|
+
"type": "boolean",
|
|
2160
|
+
"default": "false"
|
|
2161
|
+
},
|
|
2123
2162
|
{
|
|
2124
2163
|
"name": "disabled",
|
|
2125
2164
|
"attribute": "disabled",
|
|
@@ -2424,6 +2463,12 @@
|
|
|
2424
2463
|
"type": "boolean",
|
|
2425
2464
|
"default": "false"
|
|
2426
2465
|
},
|
|
2466
|
+
{
|
|
2467
|
+
"name": "open-on-hover",
|
|
2468
|
+
"description": "Optionally open dropdown on click or hover action",
|
|
2469
|
+
"type": "boolean",
|
|
2470
|
+
"default": "false"
|
|
2471
|
+
},
|
|
2427
2472
|
{
|
|
2428
2473
|
"name": "disabled",
|
|
2429
2474
|
"description": "Disables the dropdown opener",
|
|
@@ -2457,6 +2502,13 @@
|
|
|
2457
2502
|
"type": "boolean",
|
|
2458
2503
|
"default": "false"
|
|
2459
2504
|
},
|
|
2505
|
+
{
|
|
2506
|
+
"name": "openOnHover",
|
|
2507
|
+
"attribute": "open-on-hover",
|
|
2508
|
+
"description": "Optionally open dropdown on click or hover action",
|
|
2509
|
+
"type": "boolean",
|
|
2510
|
+
"default": "false"
|
|
2511
|
+
},
|
|
2460
2512
|
{
|
|
2461
2513
|
"name": "disabled",
|
|
2462
2514
|
"attribute": "disabled",
|
|
@@ -2750,6 +2802,12 @@
|
|
|
2750
2802
|
"type": "boolean",
|
|
2751
2803
|
"default": "false"
|
|
2752
2804
|
},
|
|
2805
|
+
{
|
|
2806
|
+
"name": "open-on-hover",
|
|
2807
|
+
"description": "Optionally open dropdown on click or hover action",
|
|
2808
|
+
"type": "boolean",
|
|
2809
|
+
"default": "false"
|
|
2810
|
+
},
|
|
2753
2811
|
{
|
|
2754
2812
|
"name": "disabled",
|
|
2755
2813
|
"description": "Disables the dropdown opener",
|
|
@@ -2770,6 +2828,13 @@
|
|
|
2770
2828
|
"type": "boolean",
|
|
2771
2829
|
"default": "false"
|
|
2772
2830
|
},
|
|
2831
|
+
{
|
|
2832
|
+
"name": "openOnHover",
|
|
2833
|
+
"attribute": "open-on-hover",
|
|
2834
|
+
"description": "Optionally open dropdown on click or hover action",
|
|
2835
|
+
"type": "boolean",
|
|
2836
|
+
"default": "false"
|
|
2837
|
+
},
|
|
2773
2838
|
{
|
|
2774
2839
|
"name": "disabled",
|
|
2775
2840
|
"attribute": "disabled",
|
|
@@ -6319,10 +6384,12 @@
|
|
|
6319
6384
|
],
|
|
6320
6385
|
"events": [
|
|
6321
6386
|
{
|
|
6322
|
-
"name": "d2l-list-item-position-change"
|
|
6387
|
+
"name": "d2l-list-item-position-change",
|
|
6388
|
+
"description": "Dispatched when a draggable list item's position changes in the list. See [Event Details: d2l-list-item-position-change](#event-details%3A-d2l-list-item-position-change)."
|
|
6323
6389
|
},
|
|
6324
6390
|
{
|
|
6325
|
-
"name": "d2l-list-item-selected"
|
|
6391
|
+
"name": "d2l-list-item-selected",
|
|
6392
|
+
"description": "Dispatched when the component item is selected"
|
|
6326
6393
|
}
|
|
6327
6394
|
]
|
|
6328
6395
|
},
|
|
@@ -6887,7 +6954,7 @@
|
|
|
6887
6954
|
},
|
|
6888
6955
|
{
|
|
6889
6956
|
"name": "selection-single",
|
|
6890
|
-
"description": "Whether the selection control is limited to single selection
|
|
6957
|
+
"description": "Whether the selection control is limited to single selection",
|
|
6891
6958
|
"type": "boolean",
|
|
6892
6959
|
"default": "false"
|
|
6893
6960
|
}
|
|
@@ -6917,7 +6984,7 @@
|
|
|
6917
6984
|
{
|
|
6918
6985
|
"name": "selectionSingle",
|
|
6919
6986
|
"attribute": "selection-single",
|
|
6920
|
-
"description": "Whether the selection control is limited to single selection
|
|
6987
|
+
"description": "Whether the selection control is limited to single selection",
|
|
6921
6988
|
"type": "boolean",
|
|
6922
6989
|
"default": "false"
|
|
6923
6990
|
}
|
|
@@ -7031,10 +7098,12 @@
|
|
|
7031
7098
|
],
|
|
7032
7099
|
"events": [
|
|
7033
7100
|
{
|
|
7034
|
-
"name": "d2l-menu-item-select"
|
|
7101
|
+
"name": "d2l-menu-item-select",
|
|
7102
|
+
"description": "Dispatched when the menu item is selected"
|
|
7035
7103
|
},
|
|
7036
7104
|
{
|
|
7037
|
-
"name": "d2l-menu-item-visibility-change"
|
|
7105
|
+
"name": "d2l-menu-item-visibility-change",
|
|
7106
|
+
"description": "Dispatched when the visibility of the menu item changes"
|
|
7038
7107
|
}
|
|
7039
7108
|
]
|
|
7040
7109
|
},
|
|
@@ -7110,10 +7179,6 @@
|
|
|
7110
7179
|
}
|
|
7111
7180
|
],
|
|
7112
7181
|
"events": [
|
|
7113
|
-
{
|
|
7114
|
-
"name": "click",
|
|
7115
|
-
"description": "Dispatched when the link is clicked"
|
|
7116
|
-
},
|
|
7117
7182
|
{
|
|
7118
7183
|
"name": "d2l-menu-item-change",
|
|
7119
7184
|
"description": "Dispatched when the selected menu item changes"
|
|
@@ -7293,7 +7358,7 @@
|
|
|
7293
7358
|
},
|
|
7294
7359
|
{
|
|
7295
7360
|
"name": "d2l-menu-item-select",
|
|
7296
|
-
"description": "Dispatched when
|
|
7361
|
+
"description": "Dispatched when the menu item is selected"
|
|
7297
7362
|
},
|
|
7298
7363
|
{
|
|
7299
7364
|
"name": "d2l-menu-item-visibility-change",
|
|
@@ -7345,10 +7410,12 @@
|
|
|
7345
7410
|
],
|
|
7346
7411
|
"events": [
|
|
7347
7412
|
{
|
|
7348
|
-
"name": "d2l-menu-item-select"
|
|
7413
|
+
"name": "d2l-menu-item-select",
|
|
7414
|
+
"description": "Dispatched when the menu item is selected"
|
|
7349
7415
|
},
|
|
7350
7416
|
{
|
|
7351
|
-
"name": "d2l-menu-item-visibility-change"
|
|
7417
|
+
"name": "d2l-menu-item-visibility-change",
|
|
7418
|
+
"description": "Dispatched when the visibility of the menu item changes"
|
|
7352
7419
|
}
|
|
7353
7420
|
]
|
|
7354
7421
|
},
|
|
@@ -7403,7 +7470,7 @@
|
|
|
7403
7470
|
"events": [
|
|
7404
7471
|
{
|
|
7405
7472
|
"name": "d2l-menu-item-select",
|
|
7406
|
-
"description": "Dispatched when
|
|
7473
|
+
"description": "Dispatched when the menu item is selected"
|
|
7407
7474
|
},
|
|
7408
7475
|
{
|
|
7409
7476
|
"name": "d2l-menu-item-visibility-change",
|
|
@@ -7747,7 +7814,7 @@
|
|
|
7747
7814
|
{
|
|
7748
7815
|
"name": "d2l-overflow-group",
|
|
7749
7816
|
"path": "./components/overflow-group/overflow-group.js",
|
|
7750
|
-
"description": "A component that can be used to display a set of buttons, links or menus that will be put into a
|
|
7817
|
+
"description": "A component that can be used to display a set of buttons, links or menus that will be put into a dropdown menu when they no longer fit on the first line of their container",
|
|
7751
7818
|
"attributes": [
|
|
7752
7819
|
{
|
|
7753
7820
|
"name": "auto-show",
|
|
@@ -7926,7 +7993,8 @@
|
|
|
7926
7993
|
},
|
|
7927
7994
|
{
|
|
7928
7995
|
"name": "selectionInfo",
|
|
7929
|
-
"description": "The selection info (set by the selection component)
|
|
7996
|
+
"description": "The selection info (set by the selection component)",
|
|
7997
|
+
"type": "object"
|
|
7930
7998
|
},
|
|
7931
7999
|
{
|
|
7932
8000
|
"name": "disabled-tooltip",
|
|
@@ -7968,7 +8036,8 @@
|
|
|
7968
8036
|
{
|
|
7969
8037
|
"name": "selectionInfo",
|
|
7970
8038
|
"attribute": "selectionInfo",
|
|
7971
|
-
"description": "The selection info (set by the selection component)
|
|
8039
|
+
"description": "The selection info (set by the selection component)",
|
|
8040
|
+
"type": "object"
|
|
7972
8041
|
},
|
|
7973
8042
|
{
|
|
7974
8043
|
"name": "disabledTooltip",
|
|
@@ -7990,7 +8059,8 @@
|
|
|
7990
8059
|
"description": "Dispatched when the user clicks the action; provides the selection info"
|
|
7991
8060
|
},
|
|
7992
8061
|
{
|
|
7993
|
-
"name": "d2l-selection-observer-subscribe"
|
|
8062
|
+
"name": "d2l-selection-observer-subscribe",
|
|
8063
|
+
"description": "Internal event"
|
|
7994
8064
|
}
|
|
7995
8065
|
]
|
|
7996
8066
|
},
|
|
@@ -8094,7 +8164,8 @@
|
|
|
8094
8164
|
"description": "Dispatched when the selected state changes"
|
|
8095
8165
|
},
|
|
8096
8166
|
{
|
|
8097
|
-
"name": "d2l-selection-input-subscribe"
|
|
8167
|
+
"name": "d2l-selection-input-subscribe",
|
|
8168
|
+
"description": "Internal event"
|
|
8098
8169
|
}
|
|
8099
8170
|
]
|
|
8100
8171
|
},
|
|
@@ -8116,7 +8187,7 @@
|
|
|
8116
8187
|
},
|
|
8117
8188
|
{
|
|
8118
8189
|
"name": "selectionInfo",
|
|
8119
|
-
"description": "The selection info (set by the selection component)
|
|
8190
|
+
"description": "The selection info (set by the selection component)",
|
|
8120
8191
|
"type": "object"
|
|
8121
8192
|
}
|
|
8122
8193
|
],
|
|
@@ -8137,13 +8208,14 @@
|
|
|
8137
8208
|
{
|
|
8138
8209
|
"name": "selectionInfo",
|
|
8139
8210
|
"attribute": "selectionInfo",
|
|
8140
|
-
"description": "The selection info (set by the selection component)
|
|
8211
|
+
"description": "The selection info (set by the selection component)",
|
|
8141
8212
|
"type": "object"
|
|
8142
8213
|
}
|
|
8143
8214
|
],
|
|
8144
8215
|
"events": [
|
|
8145
8216
|
{
|
|
8146
|
-
"name": "d2l-selection-observer-subscribe"
|
|
8217
|
+
"name": "d2l-selection-observer-subscribe",
|
|
8218
|
+
"description": "Internal event"
|
|
8147
8219
|
}
|
|
8148
8220
|
]
|
|
8149
8221
|
},
|
|
@@ -8154,7 +8226,7 @@
|
|
|
8154
8226
|
"attributes": [
|
|
8155
8227
|
{
|
|
8156
8228
|
"name": "no-selection-text",
|
|
8157
|
-
"description": "Text to display if no items are selected
|
|
8229
|
+
"description": "Text to display if no items are selected",
|
|
8158
8230
|
"type": "string"
|
|
8159
8231
|
},
|
|
8160
8232
|
{
|
|
@@ -8164,7 +8236,7 @@
|
|
|
8164
8236
|
},
|
|
8165
8237
|
{
|
|
8166
8238
|
"name": "selectionInfo",
|
|
8167
|
-
"description": "The selection info (set by the selection component)
|
|
8239
|
+
"description": "The selection info (set by the selection component)",
|
|
8168
8240
|
"type": "object"
|
|
8169
8241
|
}
|
|
8170
8242
|
],
|
|
@@ -8172,7 +8244,7 @@
|
|
|
8172
8244
|
{
|
|
8173
8245
|
"name": "noSelectionText",
|
|
8174
8246
|
"attribute": "no-selection-text",
|
|
8175
|
-
"description": "Text to display if no items are selected
|
|
8247
|
+
"description": "Text to display if no items are selected",
|
|
8176
8248
|
"type": "string"
|
|
8177
8249
|
},
|
|
8178
8250
|
{
|
|
@@ -8184,13 +8256,14 @@
|
|
|
8184
8256
|
{
|
|
8185
8257
|
"name": "selectionInfo",
|
|
8186
8258
|
"attribute": "selectionInfo",
|
|
8187
|
-
"description": "The selection info (set by the selection component)
|
|
8259
|
+
"description": "The selection info (set by the selection component)",
|
|
8188
8260
|
"type": "object"
|
|
8189
8261
|
}
|
|
8190
8262
|
],
|
|
8191
8263
|
"events": [
|
|
8192
8264
|
{
|
|
8193
|
-
"name": "d2l-selection-observer-subscribe"
|
|
8265
|
+
"name": "d2l-selection-observer-subscribe",
|
|
8266
|
+
"description": "Internal event"
|
|
8194
8267
|
}
|
|
8195
8268
|
]
|
|
8196
8269
|
},
|
|
@@ -8200,7 +8273,7 @@
|
|
|
8200
8273
|
"attributes": [
|
|
8201
8274
|
{
|
|
8202
8275
|
"name": "selection-single",
|
|
8203
|
-
"description": "Whether the selection control is limited to single selection
|
|
8276
|
+
"description": "Whether the selection control is limited to single selection",
|
|
8204
8277
|
"type": "boolean",
|
|
8205
8278
|
"default": "false"
|
|
8206
8279
|
}
|
|
@@ -8209,7 +8282,7 @@
|
|
|
8209
8282
|
{
|
|
8210
8283
|
"name": "selectionSingle",
|
|
8211
8284
|
"attribute": "selection-single",
|
|
8212
|
-
"description": "Whether the selection control is limited to single selection
|
|
8285
|
+
"description": "Whether the selection control is limited to single selection",
|
|
8213
8286
|
"type": "boolean",
|
|
8214
8287
|
"default": "false"
|
|
8215
8288
|
}
|
|
@@ -8469,6 +8542,7 @@
|
|
|
8469
8542
|
{
|
|
8470
8543
|
"name": "d2l-switch-visibility",
|
|
8471
8544
|
"path": "./components/switch/switch-visibility.js",
|
|
8545
|
+
"description": "A variant of the generic switch configured with special icons and default text for toggling \"visibility\".",
|
|
8472
8546
|
"attributes": [
|
|
8473
8547
|
{
|
|
8474
8548
|
"name": "text",
|
|
@@ -8557,6 +8631,7 @@
|
|
|
8557
8631
|
{
|
|
8558
8632
|
"name": "d2l-switch",
|
|
8559
8633
|
"path": "./components/switch/switch.js",
|
|
8634
|
+
"description": "A generic switch with on/off semantics.",
|
|
8560
8635
|
"attributes": [
|
|
8561
8636
|
{
|
|
8562
8637
|
"name": "text",
|