@brightspace-ui/core 3.274.0 → 3.274.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.
|
@@ -2,74 +2,72 @@ import { FocusMixin } from '../../mixins/focus/focus-mixin.js';
|
|
|
2
2
|
|
|
3
3
|
export const ButtonMixin = superclass => class extends FocusMixin(superclass) {
|
|
4
4
|
|
|
5
|
-
static
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
};
|
|
72
|
-
}
|
|
5
|
+
static properties = {
|
|
6
|
+
/**
|
|
7
|
+
* @ignore
|
|
8
|
+
*/
|
|
9
|
+
ariaExpanded: { type: String, reflect: true, attribute: 'aria-expanded' },
|
|
10
|
+
/**
|
|
11
|
+
* @ignore
|
|
12
|
+
*/
|
|
13
|
+
ariaHaspopup: { type: String, reflect: true, attribute: 'aria-haspopup' },
|
|
14
|
+
/**
|
|
15
|
+
* @ignore
|
|
16
|
+
*/
|
|
17
|
+
ariaLabel: { type: String, reflect: true, attribute: 'aria-label' },
|
|
18
|
+
/**
|
|
19
|
+
* @ignore
|
|
20
|
+
*/
|
|
21
|
+
// eslint-disable-next-line lit/no-native-attributes
|
|
22
|
+
autofocus: { type: Boolean, reflect: true },
|
|
23
|
+
/**
|
|
24
|
+
* Wether the controlled element is expanded. Replaces 'aria-expanded'
|
|
25
|
+
* @type {'true' | 'false'}
|
|
26
|
+
*/
|
|
27
|
+
expanded: { type: String, reflect: true, attribute: 'expanded' },
|
|
28
|
+
/**
|
|
29
|
+
* Disables the button
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
*/
|
|
32
|
+
disabled: { type: Boolean, reflect: true },
|
|
33
|
+
/**
|
|
34
|
+
* Tooltip text when disabled
|
|
35
|
+
* @type {string}
|
|
36
|
+
*/
|
|
37
|
+
disabledTooltip: { type: String, attribute: 'disabled-tooltip' },
|
|
38
|
+
/**
|
|
39
|
+
* @ignore
|
|
40
|
+
*/
|
|
41
|
+
form: { type: String, reflect: true },
|
|
42
|
+
/**
|
|
43
|
+
* @ignore
|
|
44
|
+
*/
|
|
45
|
+
formaction: { type: String, reflect: true },
|
|
46
|
+
/**
|
|
47
|
+
* @ignore
|
|
48
|
+
*/
|
|
49
|
+
formenctype: { type: String, reflect: true },
|
|
50
|
+
/**
|
|
51
|
+
* @ignore
|
|
52
|
+
*/
|
|
53
|
+
formmethod: { type: String, reflect: true },
|
|
54
|
+
/**
|
|
55
|
+
* @ignore
|
|
56
|
+
*/
|
|
57
|
+
formnovalidate: { type: String, reflect: true },
|
|
58
|
+
/**
|
|
59
|
+
* @ignore
|
|
60
|
+
*/
|
|
61
|
+
formtarget: { type: String, reflect: true },
|
|
62
|
+
/**
|
|
63
|
+
* @ignore
|
|
64
|
+
*/
|
|
65
|
+
name: { type: String, reflect: true },
|
|
66
|
+
/**
|
|
67
|
+
* @ignore
|
|
68
|
+
*/
|
|
69
|
+
type: { type: String, reflect: true }
|
|
70
|
+
};
|
|
73
71
|
|
|
74
72
|
constructor() {
|
|
75
73
|
super();
|
|
@@ -8,9 +8,7 @@ import { LitElement } from 'lit';
|
|
|
8
8
|
* @param { String } target The element name or other selector string of the element to pass properties to.
|
|
9
9
|
*/
|
|
10
10
|
export const DemoPassthroughMixin = (superclass, target) => class extends LitElement {
|
|
11
|
-
static
|
|
12
|
-
return Object.fromEntries(superclass.elementProperties);
|
|
13
|
-
}
|
|
11
|
+
static properties = Object.fromEntries(superclass.elementProperties);
|
|
14
12
|
|
|
15
13
|
firstUpdated() {
|
|
16
14
|
this.target = this.shadowRoot.querySelector(target);
|
|
@@ -5,21 +5,19 @@ import { SelectionObserverMixin } from './selection-observer-mixin.js';
|
|
|
5
5
|
|
|
6
6
|
export const SelectionActionMixin = superclass => class extends LocalizeCoreElement(SelectionObserverMixin(superclass)) {
|
|
7
7
|
|
|
8
|
-
static
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
};
|
|
22
|
-
}
|
|
8
|
+
static properties = {
|
|
9
|
+
/**
|
|
10
|
+
* Disables bulk actions in the list or table controls once the selection limit is reached, but does not prevent further selection
|
|
11
|
+
* @type {number}
|
|
12
|
+
*/
|
|
13
|
+
maxSelectionCount: { type: Number, attribute: 'max-selection-count' },
|
|
14
|
+
/**
|
|
15
|
+
* Whether the action requires one or more selected items
|
|
16
|
+
* @type {boolean}
|
|
17
|
+
*/
|
|
18
|
+
requiresSelection: { type: Boolean, attribute: 'requires-selection', reflect: true },
|
|
19
|
+
_disabledTooltip: { state: true }
|
|
20
|
+
};
|
|
23
21
|
|
|
24
22
|
constructor() {
|
|
25
23
|
super();
|