@brightspace-ui/core 3.102.1 → 3.102.3
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/menu/menu-item-checkbox.js +1 -2
- package/components/menu/menu-item-radio.js +1 -2
- package/components/menu/menu-item-return.js +2 -8
- package/components/menu/menu-item-selectable-styles.js +1 -6
- package/components/menu/menu-item-styles.js +1 -5
- package/components/menu/menu-item.js +1 -6
- package/components/selection/selection-action-menu-item.js +1 -5
- package/components/table/table-col-sort-button-item.js +1 -2
- package/components/tag-list/tag-list-item-mixin.js +3 -12
- package/package.json +1 -1
@@ -2,13 +2,12 @@ import '../icons/icon.js';
|
|
2
2
|
import { html, LitElement } from 'lit';
|
3
3
|
import { MenuItemSelectableMixin } from './menu-item-selectable-mixin.js';
|
4
4
|
import { menuItemSelectableStyles } from './menu-item-selectable-styles.js';
|
5
|
-
import { RtlMixin } from '../../mixins/rtl/rtl-mixin.js';
|
6
5
|
|
7
6
|
/**
|
8
7
|
* A menu item component used for selection. Multiple checkboxes can be selected at once.
|
9
8
|
* @slot supporting - Allows supporting information to be displayed on the right-most side of the menu item
|
10
9
|
*/
|
11
|
-
class MenuItemCheckbox extends
|
10
|
+
class MenuItemCheckbox extends MenuItemSelectableMixin(LitElement) {
|
12
11
|
|
13
12
|
static get styles() {
|
14
13
|
return menuItemSelectableStyles;
|
@@ -2,13 +2,12 @@ import '../icons/icon.js';
|
|
2
2
|
import { html, LitElement } from 'lit';
|
3
3
|
import { MenuItemRadioMixin } from './menu-item-radio-mixin.js';
|
4
4
|
import { menuItemSelectableStyles } from './menu-item-selectable-styles.js';
|
5
|
-
import { RtlMixin } from '../../mixins/rtl/rtl-mixin.js';
|
6
5
|
|
7
6
|
/**
|
8
7
|
* 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
8
|
* @slot supporting - Allows supporting information to be displayed on the right-most side of the menu item
|
10
9
|
*/
|
11
|
-
class MenuItemRadio extends
|
10
|
+
class MenuItemRadio extends MenuItemRadioMixin(LitElement) {
|
12
11
|
|
13
12
|
static get styles() {
|
14
13
|
return menuItemSelectableStyles;
|
@@ -3,9 +3,8 @@ import { css, html, LitElement } from 'lit';
|
|
3
3
|
import { LocalizeCoreElement } from '../../helpers/localize-core-element.js';
|
4
4
|
import { MenuItemMixin } from './menu-item-mixin.js';
|
5
5
|
import { menuItemStyles } from './menu-item-styles.js';
|
6
|
-
import { RtlMixin } from '../../mixins/rtl/rtl-mixin.js';
|
7
6
|
|
8
|
-
class MenuItemReturn extends
|
7
|
+
class MenuItemReturn extends LocalizeCoreElement(MenuItemMixin(LitElement)) {
|
9
8
|
|
10
9
|
static get styles() {
|
11
10
|
return [ menuItemStyles,
|
@@ -27,14 +26,9 @@ class MenuItemReturn extends RtlMixin(LocalizeCoreElement(MenuItemMixin(LitEleme
|
|
27
26
|
|
28
27
|
d2l-icon {
|
29
28
|
flex: none;
|
30
|
-
margin-
|
29
|
+
margin-inline-end: 1rem;
|
31
30
|
margin-top: 0.1rem;
|
32
31
|
}
|
33
|
-
|
34
|
-
:host([dir="rtl"]) > d2l-icon {
|
35
|
-
margin-left: 1rem;
|
36
|
-
margin-right: 0;
|
37
|
-
}
|
38
32
|
`
|
39
33
|
];
|
40
34
|
}
|
@@ -16,15 +16,10 @@ export const menuItemSelectableStyles = [ menuItemStyles,
|
|
16
16
|
|
17
17
|
d2l-icon {
|
18
18
|
flex: none;
|
19
|
-
margin-
|
19
|
+
margin-inline-end: 0.8rem;
|
20
20
|
visibility: hidden;
|
21
21
|
}
|
22
22
|
|
23
|
-
:host([dir="rtl"]) > d2l-icon {
|
24
|
-
margin-left: 0.8rem;
|
25
|
-
margin-right: 0;
|
26
|
-
}
|
27
|
-
|
28
23
|
:host([aria-checked="true"]) > d2l-icon {
|
29
24
|
visibility: visible;
|
30
25
|
}
|
@@ -65,10 +65,6 @@ export const menuItemStyles = css`
|
|
65
65
|
.d2l-menu-item-supporting {
|
66
66
|
flex: 0 0 auto;
|
67
67
|
line-height: 1rem;
|
68
|
-
margin-
|
69
|
-
}
|
70
|
-
:host([dir="rtl"]) .d2l-menu-item-supporting {
|
71
|
-
margin-left: 0;
|
72
|
-
margin-right: 6px;
|
68
|
+
margin-inline-start: 6px;
|
73
69
|
}
|
74
70
|
`;
|
@@ -18,14 +18,9 @@ class MenuItem extends MenuItemMixin(LitElement) {
|
|
18
18
|
display: flex;
|
19
19
|
padding: 0.75rem 1rem;
|
20
20
|
}
|
21
|
-
|
22
21
|
d2l-icon {
|
23
22
|
flex: none;
|
24
|
-
margin-
|
25
|
-
}
|
26
|
-
:host([dir="rtl"]) d2l-icon {
|
27
|
-
margin-left: 0;
|
28
|
-
margin-right: 6px;
|
23
|
+
margin-inline-start: 6px;
|
29
24
|
}
|
30
25
|
`
|
31
26
|
];
|
@@ -23,11 +23,7 @@ class ActionMenuItem extends SelectionActionMixin(MenuItemMixin(LitElement)) {
|
|
23
23
|
}
|
24
24
|
d2l-icon {
|
25
25
|
flex: none;
|
26
|
-
margin-
|
27
|
-
}
|
28
|
-
:host([dir="rtl"]) d2l-icon {
|
29
|
-
margin-left: 0;
|
30
|
-
margin-right: 6px;
|
26
|
+
margin-inline-start: 6px;
|
31
27
|
}
|
32
28
|
`
|
33
29
|
];
|
@@ -2,7 +2,6 @@ import '../icons/icon.js';
|
|
2
2
|
import { html, LitElement } from 'lit';
|
3
3
|
import { MenuItemRadioMixin } from '../menu/menu-item-radio-mixin.js';
|
4
4
|
import { menuItemSelectableStyles } from '../menu/menu-item-selectable-styles.js';
|
5
|
-
import { RtlMixin } from '../../mixins/rtl/rtl-mixin.js';
|
6
5
|
|
7
6
|
/**
|
8
7
|
* A radio menu item to be used within the d2l-table-col-sort-button component for a multi-faceted sort.
|
@@ -10,7 +9,7 @@ import { RtlMixin } from '../../mixins/rtl/rtl-mixin.js';
|
|
10
9
|
* @fires d2l-menu-item-select - Internal event
|
11
10
|
* @fires d2l-menu-item-visibility-change - Internal event
|
12
11
|
*/
|
13
|
-
class TableColSortButtonItem extends
|
12
|
+
class TableColSortButtonItem extends MenuItemRadioMixin(LitElement) {
|
14
13
|
|
15
14
|
static get styles() {
|
16
15
|
return menuItemSelectableStyles;
|
@@ -10,7 +10,6 @@ import { getUniqueId } from '../../helpers/uniqueId.js';
|
|
10
10
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
11
11
|
import { LocalizeCoreElement } from '../../helpers/localize-core-element.js';
|
12
12
|
import { PropertyRequiredMixin } from '../../mixins/property-required/property-required-mixin.js';
|
13
|
-
import { RtlMixin } from '../../mixins/rtl/rtl-mixin.js';
|
14
13
|
|
15
14
|
const keyCodes = {
|
16
15
|
BACKSPACE: 8,
|
@@ -38,7 +37,7 @@ export function resetHasDisplayedKeyboardTooltip() {
|
|
38
37
|
hasDisplayedKeyboardTooltip = false;
|
39
38
|
}
|
40
39
|
|
41
|
-
export const TagListItemMixin = superclass => class extends LocalizeCoreElement(PropertyRequiredMixin(
|
40
|
+
export const TagListItemMixin = superclass => class extends LocalizeCoreElement(PropertyRequiredMixin(superclass)) {
|
42
41
|
|
43
42
|
static get properties() {
|
44
43
|
return {
|
@@ -95,11 +94,7 @@ export const TagListItemMixin = superclass => class extends LocalizeCoreElement(
|
|
95
94
|
white-space: nowrap;
|
96
95
|
}
|
97
96
|
.tag-list-item-container.tag-list-item-container-clearable {
|
98
|
-
padding-
|
99
|
-
}
|
100
|
-
:host([dir="rtl"]) .tag-list-item-container.tag-list-item-container-clearable {
|
101
|
-
padding-left: 0.2rem;
|
102
|
-
padding-right: 0;
|
97
|
+
padding-inline-end: 0.2rem;
|
103
98
|
}
|
104
99
|
.tag-list-item-content {
|
105
100
|
outline: none;
|
@@ -135,11 +130,7 @@ export const TagListItemMixin = superclass => class extends LocalizeCoreElement(
|
|
135
130
|
}
|
136
131
|
}
|
137
132
|
.d2l-tag-list-item-clear-button {
|
138
|
-
margin-
|
139
|
-
}
|
140
|
-
:host([dir="rtl"]) .d2l-tag-list-item-clear-button {
|
141
|
-
margin-left: 0;
|
142
|
-
margin-right: calc(-0.6rem + 3px);
|
133
|
+
margin-inline-start: calc(-0.6rem + 3px);
|
143
134
|
}
|
144
135
|
d2l-button-icon {
|
145
136
|
--d2l-button-icon-fill-color: var(--d2l-color-chromite);
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@brightspace-ui/core",
|
3
|
-
"version": "3.102.
|
3
|
+
"version": "3.102.3",
|
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",
|