@brightspace-ui/labs 2.56.0 → 2.56.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/demo/components/ou-filter/ouFilterDemoPage.js +14 -16
- package/package.json +4 -3
- package/src/components/accessibility-disability-simulator/accessibility-disability-simulator.js +70 -74
- package/src/components/accordion/accordion-collapse.js +161 -164
- package/src/components/accordion/accordion.js +14 -17
- package/src/components/attribute-picker/attribute-picker-item.js +63 -66
- package/src/components/attribute-picker/attribute-picker.js +116 -121
- package/src/components/card-overlay/card-overlay.js +53 -55
- package/src/components/checkbox-drawer/checkbox-drawer.js +32 -36
- package/src/components/community/community-base.js +3 -5
- package/src/components/community/community-button.js +3 -5
- package/src/components/community/community-link.js +4 -6
- package/src/components/file-uploader/file-uploader.js +148 -151
- package/src/components/grade-result/grade-result-icon-button.js +5 -6
- package/src/components/grade-result/grade-result-letter-score.js +18 -22
- package/src/components/grade-result/grade-result-numeric-score.js +25 -28
- package/src/components/grade-result/grade-result-presentational.js +133 -136
- package/src/components/grade-result/grade-result-student-grade-preview.js +38 -42
- package/src/components/media-player/media-player-audio-bars.js +28 -31
- package/src/components/media-player/media-player.js +503 -487
- package/src/components/media-player/slider-bar.js +119 -122
- package/src/components/navigation/navigation-band.js +69 -71
- package/src/components/navigation/navigation-button-icon.js +51 -55
- package/src/components/navigation/navigation-dropdown-button-custom.js +13 -17
- package/src/components/navigation/navigation-dropdown-button-icon.js +21 -25
- package/src/components/navigation/navigation-immersive.js +128 -132
- package/src/components/navigation/navigation-iterator.js +21 -25
- package/src/components/navigation/navigation-link-back.js +13 -17
- package/src/components/navigation/navigation-link-icon.js +36 -40
- package/src/components/navigation/navigation-link-image.js +31 -35
- package/src/components/navigation/navigation-link.js +34 -38
- package/src/components/navigation/navigation-main-footer.js +7 -9
- package/src/components/navigation/navigation-main-header.js +34 -36
- package/src/components/navigation/navigation-notification-icon.js +30 -34
- package/src/components/navigation/navigation.js +19 -23
- package/src/components/opt-in-flyout/flyout-impl.js +138 -146
- package/src/components/opt-in-flyout/opt-in-flyout.js +14 -18
- package/src/components/opt-in-flyout/opt-out-dialog.js +63 -67
- package/src/components/opt-in-flyout/opt-out-flyout.js +15 -19
- package/src/components/opt-in-flyout/opt-out-reason-selector.js +38 -45
- package/src/components/opt-in-flyout/opt-out-reason.js +9 -13
- package/src/components/ou-filter/ou-filter.js +14 -18
- package/src/components/ou-filter/tree-filter.js +22 -26
- package/src/components/ou-filter/tree-selector-node.js +62 -66
- package/src/components/ou-filter/tree-selector.js +55 -62
- package/src/components/pagination/pager-numeric.js +35 -39
- package/src/components/view-toggle/view-toggle.js +79 -81
- package/src/components/wizard/single-step-header.js +106 -110
- package/src/components/wizard/wizard-step.js +65 -68
- package/src/components/wizard/wizard.js +30 -33
- package/src/utilities/reactive-store/README.md +10 -15
|
@@ -13,74 +13,70 @@ const defaultEventProperties = {
|
|
|
13
13
|
|
|
14
14
|
class OptOutDialog extends LocalizeLabsElement(LitElement) {
|
|
15
15
|
|
|
16
|
-
static
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
16
|
+
static properties = {
|
|
17
|
+
hideReason: { type: Boolean, attribute: 'hide-reason' },
|
|
18
|
+
hideFeedback: { type: Boolean, attribute: 'hide-feedback' }
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
static styles = css`
|
|
22
|
+
:host {
|
|
23
|
+
height: 100%;
|
|
24
|
+
overflow: hidden;
|
|
25
|
+
pointer-events: auto;
|
|
26
|
+
position: absolute;
|
|
27
|
+
width: 100%;
|
|
28
|
+
z-index: 950;
|
|
29
|
+
}
|
|
22
30
|
|
|
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
|
-
|
|
73
|
-
d2l-button {
|
|
74
|
-
margin-right: 1rem;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.close-button {
|
|
78
|
-
inset-block-start: 0.6rem;
|
|
79
|
-
inset-inline-end: 0.6rem;
|
|
80
|
-
position: absolute;
|
|
81
|
-
}
|
|
82
|
-
`;
|
|
83
|
-
}
|
|
31
|
+
.opt-out-modal-fade {
|
|
32
|
+
background-color: #ffffff;
|
|
33
|
+
height: 100%;
|
|
34
|
+
opacity: 0.7;
|
|
35
|
+
position: absolute;
|
|
36
|
+
width: 100%;
|
|
37
|
+
z-index: 1;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.dialog {
|
|
41
|
+
background-color: #ffffff;
|
|
42
|
+
border: 1px solid var(--d2l-color-mica);
|
|
43
|
+
border-radius: 0.3rem;
|
|
44
|
+
box-shadow: 0 2px 12px rgba(86, 90, 92, 0.25);
|
|
45
|
+
box-sizing: border-box;
|
|
46
|
+
left: 50%;
|
|
47
|
+
max-width: 680px;
|
|
48
|
+
padding: 1rem;
|
|
49
|
+
position: absolute;
|
|
50
|
+
top: 7.5%;
|
|
51
|
+
transform: translateX(-50%);
|
|
52
|
+
width: 90%;
|
|
53
|
+
z-index: 2;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
label {
|
|
57
|
+
display: block;
|
|
58
|
+
margin-bottom: 0.5rem;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
#title-label {
|
|
62
|
+
display: inline;
|
|
63
|
+
font-weight: bold;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
d2l-input-textarea {
|
|
67
|
+
margin-bottom: 1rem;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
d2l-button {
|
|
71
|
+
margin-right: 1rem;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.close-button {
|
|
75
|
+
inset-block-start: 0.6rem;
|
|
76
|
+
inset-inline-end: 0.6rem;
|
|
77
|
+
position: absolute;
|
|
78
|
+
}
|
|
79
|
+
`;
|
|
84
80
|
|
|
85
81
|
constructor() {
|
|
86
82
|
super();
|
|
@@ -4,26 +4,22 @@ import { css, html, LitElement } from 'lit';
|
|
|
4
4
|
|
|
5
5
|
class OptOutFlyout extends LitElement {
|
|
6
6
|
|
|
7
|
-
static
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
};
|
|
18
|
-
}
|
|
7
|
+
static properties = {
|
|
8
|
+
opened: { type: Boolean, reflect: true },
|
|
9
|
+
flyoutTitle: { attribute: 'flyout-title', type: String },
|
|
10
|
+
shortDescription: { type: String, attribute: 'short-description' },
|
|
11
|
+
longDescription: { type: String, attribute: 'long-description' },
|
|
12
|
+
tutorialLink: { type: String, attribute: 'tutorial-link' },
|
|
13
|
+
helpDocsLink: { type: String, attribute: 'help-docs-link' },
|
|
14
|
+
hideReason: { type: Boolean, attribute: 'hide-reason' },
|
|
15
|
+
hideFeedback: { type: Boolean, attribute: 'hide-feedback' }
|
|
16
|
+
};
|
|
19
17
|
|
|
20
|
-
static
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
`;
|
|
26
|
-
}
|
|
18
|
+
static styles = css`
|
|
19
|
+
d2l-labs-opt-in-flyout-impl {
|
|
20
|
+
font-size: 20px;
|
|
21
|
+
}
|
|
22
|
+
`;
|
|
27
23
|
|
|
28
24
|
constructor() {
|
|
29
25
|
super();
|
|
@@ -5,52 +5,45 @@ import { LocalizeLabsElement } from '../localize-labs-element.js';
|
|
|
5
5
|
|
|
6
6
|
class OptOutReasonSelector extends LocalizeLabsElement(LitElement) {
|
|
7
7
|
|
|
8
|
-
static
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
static properties = {
|
|
9
|
+
_reasons: { state: true }
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
static styles = [inputStyles, css`
|
|
13
|
+
label {
|
|
14
|
+
display: block;
|
|
15
|
+
margin-bottom: 0.5rem;
|
|
16
|
+
}
|
|
13
17
|
|
|
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
|
-
select::-ms-value {
|
|
44
|
-
background-color: transparent;
|
|
45
|
-
color: var(--d2l-input-color);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
#options {
|
|
49
|
-
display: none;
|
|
50
|
-
}
|
|
51
|
-
`
|
|
52
|
-
];
|
|
53
|
-
}
|
|
18
|
+
select {
|
|
19
|
+
-moz-appearance: none;
|
|
20
|
+
-webkit-appearance: none;
|
|
21
|
+
appearance: none;
|
|
22
|
+
background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2242%22%20height%3D%2242%22%20viewBox%3D%220%200%2042%2042%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill%3D%22%23f2f3f5%22%20d%3D%22M0%200h42v42H0z%22%2F%3E%3Cpath%20stroke%3D%22%23d3d9e3%22%20d%3D%22M0%200v42%22%2F%3E%3Cpath%20d%3D%22M14.99%2019.582l4.95%204.95a1.5%201.5%200%200%200%202.122%200l4.95-4.95a1.5%201.5%200%200%200-2.122-2.122L21%2021.35l-3.888-3.89a1.5%201.5%200%200%200-2.12%202.122z%22%20fill%3D%22%23565A5C%22%2F%3E%3C%2Fsvg%3E");
|
|
23
|
+
background-position: var(--d2l-inline-end, right) center;
|
|
24
|
+
background-repeat: no-repeat;
|
|
25
|
+
background-size: contain;
|
|
26
|
+
display: block;
|
|
27
|
+
margin-bottom: 1.5rem !important;
|
|
28
|
+
position: relative;
|
|
29
|
+
width: 80%;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* for ie11 - avoid displaying default select arrow */
|
|
33
|
+
select::-ms-expand {
|
|
34
|
+
display: none;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* for ie11 - prevent background box from covering select arrow */
|
|
38
|
+
select::-ms-value {
|
|
39
|
+
background-color: transparent;
|
|
40
|
+
color: var(--d2l-input-color);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
#options {
|
|
44
|
+
display: none;
|
|
45
|
+
}
|
|
46
|
+
`];
|
|
54
47
|
|
|
55
48
|
constructor() {
|
|
56
49
|
super();
|
|
@@ -2,20 +2,16 @@ import { css, LitElement } from 'lit';
|
|
|
2
2
|
|
|
3
3
|
class OptOutReason extends LitElement {
|
|
4
4
|
|
|
5
|
-
static
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
10
|
-
}
|
|
5
|
+
static properties = {
|
|
6
|
+
key: { type: String },
|
|
7
|
+
text: { type: String }
|
|
8
|
+
};
|
|
11
9
|
|
|
12
|
-
static
|
|
13
|
-
|
|
14
|
-
:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
`;
|
|
18
|
-
}
|
|
10
|
+
static styles = css`
|
|
11
|
+
:host {
|
|
12
|
+
display: none;
|
|
13
|
+
}
|
|
14
|
+
`;
|
|
19
15
|
|
|
20
16
|
}
|
|
21
17
|
|
|
@@ -54,24 +54,20 @@ export class OuFilterDataManager {
|
|
|
54
54
|
*/
|
|
55
55
|
class OuFilter extends LocalizeLabsElement(MobxLitElement) {
|
|
56
56
|
|
|
57
|
-
static
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
display: none;
|
|
72
|
-
}
|
|
73
|
-
`;
|
|
74
|
-
}
|
|
57
|
+
static properties = {
|
|
58
|
+
dataManager: { type: Object, attribute: false },
|
|
59
|
+
isSelectAllVisible: { type: Boolean, attribute: 'select-all-ui', reflect: true },
|
|
60
|
+
disabled: { type: Boolean, attribute: 'disabled' }
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
static styles = css`
|
|
64
|
+
:host {
|
|
65
|
+
display: inline-block;
|
|
66
|
+
}
|
|
67
|
+
:host([hidden]) {
|
|
68
|
+
display: none;
|
|
69
|
+
}
|
|
70
|
+
`;
|
|
75
71
|
|
|
76
72
|
constructor() {
|
|
77
73
|
super();
|
|
@@ -554,33 +554,29 @@ decorate(Tree, {
|
|
|
554
554
|
*/
|
|
555
555
|
class TreeFilter extends LocalizeLabsElement(MobxLitElement) {
|
|
556
556
|
|
|
557
|
-
static
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
:host([hidden]) {
|
|
576
|
-
display: none;
|
|
577
|
-
}
|
|
557
|
+
static properties = {
|
|
558
|
+
tree: { type: Object, attribute: false },
|
|
559
|
+
openerText: { type: String, attribute: 'opener-text' },
|
|
560
|
+
openerTextSelected: { type: String, attribute: 'opener-text-selected' },
|
|
561
|
+
searchString: { type: String, attribute: 'search-string', reflect: true },
|
|
562
|
+
isLoadMoreSearch: { type: Boolean, attribute: 'load-more-search', reflect: true },
|
|
563
|
+
isSelectAllVisible: { type: Boolean, attribute: 'select-all-ui', reflect: true },
|
|
564
|
+
disabled: { type: Boolean, attribute: 'disabled' },
|
|
565
|
+
_isLoadingSearch: { type: Boolean, attribute: false }
|
|
566
|
+
};
|
|
567
|
+
|
|
568
|
+
static styles = css`
|
|
569
|
+
:host {
|
|
570
|
+
display: inline-block;
|
|
571
|
+
}
|
|
572
|
+
:host([hidden]) {
|
|
573
|
+
display: none;
|
|
574
|
+
}
|
|
578
575
|
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
}
|
|
576
|
+
d2l-button.d2l-tree-load-more {
|
|
577
|
+
padding-bottom: 12px;
|
|
578
|
+
}
|
|
579
|
+
`;
|
|
584
580
|
|
|
585
581
|
constructor() {
|
|
586
582
|
super();
|
|
@@ -15,77 +15,73 @@ import { RtlMixin } from '@brightspace-ui/core/mixins/rtl-mixin.js';
|
|
|
15
15
|
*
|
|
16
16
|
*/
|
|
17
17
|
class TreeSelectorNode extends LocalizeLabsElement(RtlMixin(LitElement)) {
|
|
18
|
-
static
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
:host([hidden]) {
|
|
41
|
-
display: none;
|
|
42
|
-
}
|
|
18
|
+
static properties = {
|
|
19
|
+
name: { type: String },
|
|
20
|
+
dataId: { type: Number, attribute: 'data-id' },
|
|
21
|
+
isOpen: { type: Boolean, reflect: true, attribute: 'open' },
|
|
22
|
+
selectedState: { type: String, reflect: true, attribute: 'selected-state' },
|
|
23
|
+
isOpenable: { type: Boolean, reflect: true, attribute: 'openable' },
|
|
24
|
+
// for screen readers
|
|
25
|
+
indentLevel: { type: Number, attribute: 'indent-level' },
|
|
26
|
+
parentName: { type: String, attribute: 'parent-name' },
|
|
27
|
+
// for search: if isSearch, only search-result nodes are shown; the caller should ensure their ancestors are open
|
|
28
|
+
isSearch: { type: Boolean, reflect: true, attribute: 'search' },
|
|
29
|
+
isSearchResult: { type: Boolean, reflect: true, attribute: 'search-result' }
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
static styles = css`
|
|
33
|
+
:host {
|
|
34
|
+
display: block;
|
|
35
|
+
font-size: 0.8rem;
|
|
36
|
+
}
|
|
37
|
+
:host([hidden]) {
|
|
38
|
+
display: none;
|
|
39
|
+
}
|
|
43
40
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
41
|
+
.d2l-labs-tree-selector-node-node {
|
|
42
|
+
display: flex;
|
|
43
|
+
flex-wrap: nowrap;
|
|
44
|
+
margin-bottom: 16px;
|
|
45
|
+
}
|
|
49
46
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
47
|
+
d2l-input-checkbox {
|
|
48
|
+
display: inline-block;
|
|
49
|
+
}
|
|
53
50
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
51
|
+
.d2l-labs-tree-selector-node-open-control {
|
|
52
|
+
cursor: default;
|
|
53
|
+
margin-top: -3px;
|
|
54
|
+
}
|
|
55
|
+
.d2l-labs-tree-selector-node-open-control .d2l-labs-tree-selector-node-open {
|
|
56
|
+
display: none;
|
|
57
|
+
}
|
|
58
|
+
.d2l-labs-tree-selector-node-open-control[open] .d2l-labs-tree-selector-node-open {
|
|
59
|
+
display: inline-block;
|
|
60
|
+
}
|
|
61
|
+
.d2l-labs-tree-selector-node-open-control[open] .d2l-labs-tree-selector-node-closed {
|
|
62
|
+
display: none;
|
|
63
|
+
}
|
|
67
64
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
65
|
+
.d2l-labs-tree-selector-node-subtree {
|
|
66
|
+
margin-left: 34px;
|
|
67
|
+
margin-right: 0;
|
|
68
|
+
}
|
|
69
|
+
:host([dir="rtl"]) .d2l-labs-tree-selector-node-subtree {
|
|
70
|
+
margin-left: 0;
|
|
71
|
+
margin-right: 34px;
|
|
72
|
+
}
|
|
73
|
+
.d2l-labs-tree-selector-node-subtree[hidden] {
|
|
74
|
+
display: none;
|
|
75
|
+
}
|
|
79
76
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}
|
|
77
|
+
.d2l-labs-tree-selector-node-text {
|
|
78
|
+
cursor: default;
|
|
79
|
+
display: inline-block;
|
|
80
|
+
margin-left: 0.5rem;
|
|
81
|
+
margin-right: 0.5rem;
|
|
82
|
+
width: 100%;
|
|
83
|
+
}
|
|
84
|
+
`;
|
|
89
85
|
|
|
90
86
|
constructor() {
|
|
91
87
|
super();
|
|
@@ -24,69 +24,62 @@ const DROPDOWN_WIDTH = 368;
|
|
|
24
24
|
*/
|
|
25
25
|
class TreeSelector extends LocalizeLabsElement(LitElement) {
|
|
26
26
|
|
|
27
|
-
static
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
27
|
+
static properties = {
|
|
28
|
+
name: { type: String },
|
|
29
|
+
disabled: { type: Boolean, attribute: 'disabled' },
|
|
30
|
+
isSelectAllVisible: { type: Boolean, attribute: 'select-all-ui', reflect: true },
|
|
31
|
+
isSearch: { type: Boolean, attribute: 'search', reflect: true },
|
|
32
|
+
isSelected: { type: Boolean, attribute: 'selected', reflect: true },
|
|
33
|
+
_dropdownMinWidth: { type: Number },
|
|
34
|
+
_dropdownMaxWidth: { type: Number },
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
static styles = [selectStyles, css`
|
|
38
|
+
:host {
|
|
39
|
+
display: inline-block;
|
|
40
|
+
}
|
|
41
|
+
:host([hidden]) {
|
|
42
|
+
display: none;
|
|
43
|
+
}
|
|
38
44
|
|
|
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
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
:host([search]) d2l-dropdown d2l-dropdown-content .d2l-labs-tree-selector-tree {
|
|
78
|
-
display: none;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.d2l-labs-tree-selector-search-results {
|
|
82
|
-
display: none;
|
|
83
|
-
}
|
|
84
|
-
:host([search]) d2l-dropdown d2l-dropdown-content .d2l-labs-tree-selector-search-results {
|
|
85
|
-
display: block;
|
|
86
|
-
}
|
|
87
|
-
`
|
|
88
|
-
];
|
|
89
|
-
}
|
|
45
|
+
.d2l-labs-filter-dropdown-content-header {
|
|
46
|
+
display: flex;
|
|
47
|
+
justify-content: start;
|
|
48
|
+
}
|
|
49
|
+
.d2l-labs-filter-dropdown-content-header > span {
|
|
50
|
+
align-self: center;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.d2l-labs-tree-selector-margin-button {
|
|
54
|
+
margin-inline-end: 6px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.d2l-labs-tree-selector-margin-auto {
|
|
58
|
+
margin-inline-start: auto;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.d2l-labs-tree-selector-search {
|
|
62
|
+
display: flex;
|
|
63
|
+
flex-wrap: nowrap;
|
|
64
|
+
padding-bottom: 26px;
|
|
65
|
+
padding-top: 4px;
|
|
66
|
+
}
|
|
67
|
+
@media screen and (max-width: 400px) {
|
|
68
|
+
.d2l-labs-tree-selector-search {
|
|
69
|
+
width: 100%;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
:host([search]) d2l-dropdown d2l-dropdown-content .d2l-labs-tree-selector-tree {
|
|
73
|
+
display: none;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.d2l-labs-tree-selector-search-results {
|
|
77
|
+
display: none;
|
|
78
|
+
}
|
|
79
|
+
:host([search]) d2l-dropdown d2l-dropdown-content .d2l-labs-tree-selector-search-results {
|
|
80
|
+
display: block;
|
|
81
|
+
}
|
|
82
|
+
`];
|
|
90
83
|
|
|
91
84
|
constructor() {
|
|
92
85
|
super();
|