@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
|
@@ -6,73 +6,70 @@ import { bodyCompactStyles } from '@brightspace-ui/core/components/typography/st
|
|
|
6
6
|
import { LocalizeLabsElement } from '../localize-labs-element.js';
|
|
7
7
|
|
|
8
8
|
class AttributePickerItem extends LocalizeLabsElement(LitElement) {
|
|
9
|
-
static get properties() {
|
|
10
|
-
return {
|
|
11
|
-
deletable: { type: Boolean, reflect: true },
|
|
12
|
-
text: { type: String }
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
9
|
|
|
16
|
-
static
|
|
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
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
10
|
+
static properties = {
|
|
11
|
+
deletable: { type: Boolean, reflect: true },
|
|
12
|
+
text: { type: String }
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
static styles = [bodyCompactStyles, css`
|
|
16
|
+
:host {
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
display: inline-block;
|
|
19
|
+
width: max-content;
|
|
20
|
+
}
|
|
21
|
+
:host(:focus-visible) {
|
|
22
|
+
outline: none;
|
|
23
|
+
}
|
|
24
|
+
.d2l-labs-attribute-picker-item-wrapper {
|
|
25
|
+
align-items: center;
|
|
26
|
+
background-color: var(--d2l-color-sylvite);
|
|
27
|
+
border: 1px solid var(--d2l-color-gypsum);
|
|
28
|
+
border-radius: 0.3rem;
|
|
29
|
+
display: flex;
|
|
30
|
+
gap: 0.2rem;
|
|
31
|
+
padding: 0.25rem;
|
|
32
|
+
padding-inline: 0.5rem;
|
|
33
|
+
user-select: none;
|
|
34
|
+
}
|
|
35
|
+
:host([deletable]) .d2l-labs-attribute-picker-item-wrapper {
|
|
36
|
+
padding-inline: 0.5rem 0.1rem;
|
|
37
|
+
padding-bottom: 0.15rem;
|
|
38
|
+
padding-top: 0.1rem;
|
|
39
|
+
}
|
|
40
|
+
:host(:hover) .d2l-labs-attribute-picker-item-wrapper {
|
|
41
|
+
background-color: var(--d2l-color-gypsum);
|
|
42
|
+
border-color: var(--d2l-color-mica);
|
|
43
|
+
color: var(--d2l-color-ferrite);
|
|
44
|
+
}
|
|
45
|
+
:host(:focus) .d2l-labs-attribute-picker-item-wrapper {
|
|
46
|
+
background-color: var(--d2l-color-celestine);
|
|
47
|
+
border: 1px solid var(--d2l-color-celestine-minus-1);
|
|
48
|
+
color: var(--d2l-color-regolith);
|
|
49
|
+
}
|
|
50
|
+
.d2l-labs-attribute-picker-item-text {
|
|
51
|
+
-webkit-box-orient: vertical;
|
|
52
|
+
display: -webkit-box;
|
|
53
|
+
-webkit-line-clamp: 1;
|
|
54
|
+
line-height: normal;
|
|
55
|
+
max-width: 18rem;
|
|
56
|
+
overflow: hidden;
|
|
57
|
+
text-overflow: ellipsis;
|
|
58
|
+
word-break: break-all;
|
|
59
|
+
}
|
|
60
|
+
d2l-button-icon {
|
|
61
|
+
--d2l-button-icon-background-color-hover: var(--d2l-color-mica);
|
|
62
|
+
--d2l-button-icon-fill-color: var(--d2l-color-chromite);
|
|
63
|
+
--d2l-button-icon-fill-color-hover: var(--d2l-color-tungsten);
|
|
64
|
+
--d2l-button-icon-min-height: 1.2rem;
|
|
65
|
+
--d2l-button-icon-min-width: 1.2rem;
|
|
66
|
+
}
|
|
67
|
+
:host(:focus) d2l-button-icon {
|
|
68
|
+
--d2l-button-icon-background-color-hover: var(--d2l-color-celestine-plus-1);
|
|
69
|
+
--d2l-button-icon-fill-color: var(--d2l-color-mica);
|
|
70
|
+
--d2l-button-icon-fill-color-hover: var(--d2l-color-sylvite);
|
|
71
|
+
}
|
|
72
|
+
`];
|
|
76
73
|
|
|
77
74
|
constructor() {
|
|
78
75
|
super();
|
|
@@ -19,141 +19,136 @@ const keyCodes = {
|
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
class AttributePicker extends ArrowKeysMixin(LocalizeLabsElement(LitElement)) {
|
|
22
|
-
static get properties() {
|
|
23
|
-
return {
|
|
24
|
-
/* When true, the user can manually enter any attribute they wish. If false, they must match a value from the dropdown. */
|
|
25
|
-
allowFreeform: { type: Boolean, attribute: 'allow-freeform', reflect: true },
|
|
26
22
|
|
|
27
|
-
|
|
28
|
-
|
|
23
|
+
static properties = {
|
|
24
|
+
/* When true, the user can manually enter any attribute they wish. If false, they must match a value from the dropdown. */
|
|
25
|
+
allowFreeform: { type: Boolean, attribute: 'allow-freeform', reflect: true },
|
|
29
26
|
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
/* An array of strings available in the dropdown list */
|
|
28
|
+
assignableAttributes: { type: Array, attribute: 'assignable-attributes', reflect: true },
|
|
32
29
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
The default value is: 'At least one attribute must be set'
|
|
36
|
-
*/
|
|
37
|
-
invalidTooltipText: { type: String, attribute: 'invalid-tooltip-text', reflect: true },
|
|
30
|
+
/* An array of strings representing the attributes currently selected in the picker */
|
|
31
|
+
attributeList: { type: Array, attribute: 'attribute-list', reflect: true },
|
|
38
32
|
|
|
39
|
-
|
|
40
|
-
|
|
33
|
+
/*
|
|
34
|
+
The text that will appear in the tooltip that informs a user that the state is invalid
|
|
35
|
+
The default value is: 'At least one attribute must be set'
|
|
36
|
+
*/
|
|
37
|
+
invalidTooltipText: { type: String, attribute: 'invalid-tooltip-text', reflect: true },
|
|
41
38
|
|
|
42
|
-
|
|
43
|
-
|
|
39
|
+
/* Required. The label associated with the attribute picker for screen reader users */
|
|
40
|
+
label: { type: String, reflect: true },
|
|
44
41
|
|
|
45
|
-
|
|
46
|
-
|
|
42
|
+
/* The maximum number of attributes permitted. */
|
|
43
|
+
limit: { type: Number, attribute: 'limit', reflect: true },
|
|
47
44
|
|
|
48
|
-
|
|
49
|
-
|
|
45
|
+
/* When true, an error state will appear if no attributes are set */
|
|
46
|
+
required: { type: Boolean, attribute: 'required', reflect: true },
|
|
50
47
|
|
|
51
|
-
|
|
52
|
-
|
|
48
|
+
/* Represents the index of the currently focused attribute. If no attribute is focused, equals -1 */
|
|
49
|
+
_activeAttributeIndex: { state: true },
|
|
53
50
|
|
|
54
|
-
|
|
55
|
-
|
|
51
|
+
/* Represents the index of the currently focused dropdown list item. If no item is focused, equals -1 */
|
|
52
|
+
_dropdownIndex: { state: true },
|
|
56
53
|
|
|
57
|
-
|
|
58
|
-
|
|
54
|
+
/* When true, the user currently has focus within the component */
|
|
55
|
+
_hasFocus: { state: true },
|
|
59
56
|
|
|
60
|
-
|
|
61
|
-
|
|
57
|
+
/* When true, the user has yet to lose focus for the first time, meaning the validation won't be shown until they've lost focus for the first time */
|
|
58
|
+
_initialFocus: { state: true },
|
|
62
59
|
|
|
63
|
-
|
|
64
|
-
|
|
60
|
+
/* When true, the user currently has focus within the input */
|
|
61
|
+
_inputFocused: { state: true },
|
|
65
62
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
};
|
|
69
|
-
}
|
|
63
|
+
/* When true, the user has reached the limit of attributes that can be added */
|
|
64
|
+
_limitReached: { state: true },
|
|
70
65
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
:
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
66
|
+
/* The inner text of the input */
|
|
67
|
+
_text: { state: true }
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
static styles = [inputStyles, css`
|
|
71
|
+
:host {
|
|
72
|
+
display: inline-block;
|
|
73
|
+
font-size: 0.8rem;
|
|
74
|
+
width: 100%;
|
|
75
|
+
}
|
|
76
|
+
:host:disabled {
|
|
77
|
+
opacity: 0.5;
|
|
78
|
+
}
|
|
79
|
+
:host([hidden]) {
|
|
80
|
+
display: none;
|
|
81
|
+
}
|
|
82
|
+
.d2l-attribute-picker-container {
|
|
83
|
+
--d2l-input-padding: 5px;
|
|
84
|
+
--d2l-input-padding-focus: 4px;
|
|
85
|
+
}
|
|
86
|
+
.d2l-attribute-picker-container:focus-within {
|
|
87
|
+
border: 2px solid var(--d2l-color-celestine);
|
|
88
|
+
padding: var(--d2l-input-padding-focus);
|
|
89
|
+
}
|
|
90
|
+
[aria-invalid="true"].d2l-attribute-picker-container:focus-within {
|
|
91
|
+
border-color: var(--d2l-color-cinnabar);
|
|
92
|
+
}
|
|
93
|
+
.d2l-attribute-picker-content {
|
|
94
|
+
display: flex;
|
|
95
|
+
flex-wrap: wrap;
|
|
96
|
+
gap: 0.2rem;
|
|
97
|
+
}
|
|
98
|
+
.d2l-attribute-picker-attribute {
|
|
99
|
+
height: 1.55rem;
|
|
100
|
+
}
|
|
101
|
+
.d2l-attribute-picker-attribute:focus-visible {
|
|
102
|
+
outline: none;
|
|
103
|
+
}
|
|
104
|
+
.d2l-attribute-picker-input {
|
|
105
|
+
background: transparent;
|
|
106
|
+
border: none;
|
|
107
|
+
box-shadow: none;
|
|
108
|
+
box-sizing: border-box;
|
|
109
|
+
flex-grow: 1;
|
|
110
|
+
font-family: inherit;
|
|
111
|
+
font-size: inherit;
|
|
112
|
+
min-height: 1.55rem;
|
|
113
|
+
outline: none;
|
|
114
|
+
padding: 0 !important;
|
|
115
|
+
width: 4rem;
|
|
116
|
+
}
|
|
117
|
+
.d2l-attribute-list {
|
|
118
|
+
background-color: white;
|
|
119
|
+
border: 1px solid var(--d2l-color-gypsum);
|
|
120
|
+
border-radius: 0.3rem;
|
|
121
|
+
max-height: 7.8rem;
|
|
122
|
+
overflow-y: auto;
|
|
123
|
+
padding-left: 0;
|
|
124
|
+
text-overflow: ellipsis;
|
|
125
|
+
}
|
|
126
|
+
.d2l-attribute-picker-li {
|
|
127
|
+
cursor: pointer;
|
|
128
|
+
margin: 0;
|
|
129
|
+
padding: 0.4rem 6rem 0.4rem 0.6rem;
|
|
130
|
+
}
|
|
131
|
+
.d2l-attribute-picker-li[aria-selected="true"] {
|
|
132
|
+
background-color: var(--d2l-color-celestine-plus-2);
|
|
133
|
+
color: var(--d2l-color-celestine);
|
|
134
|
+
}
|
|
135
|
+
.d2l-attribute-picker-absolute-container {
|
|
136
|
+
margin: 0 0.3rem 0 -0.3rem;
|
|
137
|
+
position: absolute;
|
|
138
|
+
width: 100%;
|
|
139
|
+
z-index: 1;
|
|
140
|
+
}
|
|
141
|
+
.d2l-input-text-invalid-icon {
|
|
142
|
+
background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4KICAgIDxwYXRoIGZpbGw9IiNGRkYiIGQ9Ik0wIDBoMjJ2MjJIMHoiLz4KICAgIDxwYXRoIGQ9Ik0xOC44NjQgMTYuNDdMMTIuNjIzIDMuOTg5YTEuNzgzIDEuNzgzIDAgMDAtMy4xOTIgMEwzLjE4OSAxNi40N2ExLjc2MSAxLjc2MSAwIDAwLjA4IDEuNzNjLjMyNS41MjUuODk4Ljc5OCAxLjUxNi43OTloMTIuNDgzYy42MTggMCAxLjE5Mi0uMjczIDEuNTE2LS44LjIzNy0uMzM1LjI2NS0xLjM3LjA4LTEuNzN6IiBmaWxsPSIjQ0QyMDI2IiBmaWxsLXJ1bGU9Im5vbnplcm8iLz4KICAgIDxwYXRoIGQ9Ik0xMS4wMjcgMTcuMjY0YTEuMzM3IDEuMzM3IDAgMTEwLTIuNjc1IDEuMzM3IDEuMzM3IDAgMDEwIDIuNjc1ek0xMS45IDEyLjk4YS44OTIuODkyIDAgMDEtMS43NDcgMEw5LjI3IDguNTJhLjg5Mi44OTIgMCAwMS44NzQtMS4wNjRoMS43NjhhLjg5Mi44OTIgMCAwMS44NzQgMS4wNjVsLS44ODYgNC40NTh6IiBmaWxsPSIjRkZGIi8+CiAgPC9nPgo8L3N2Zz4K");
|
|
143
|
+
display: flex;
|
|
144
|
+
height: 22px;
|
|
145
|
+
inset-inline-end: 8px;
|
|
146
|
+
position: absolute;
|
|
147
|
+
top: 50%;
|
|
148
|
+
transform: translateY(-50%);
|
|
149
|
+
width: 22px;
|
|
150
|
+
}
|
|
151
|
+
`];
|
|
157
152
|
|
|
158
153
|
constructor() {
|
|
159
154
|
super();
|
|
@@ -4,61 +4,59 @@ import { SkeletonMixin } from '@brightspace-ui/core/components/skeleton/skeleton
|
|
|
4
4
|
|
|
5
5
|
class CardOverlay extends SkeletonMixin(LitElement) {
|
|
6
6
|
|
|
7
|
-
static
|
|
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
|
-
}
|
|
7
|
+
static styles = [super.styles, bodyStandardStyles, css`
|
|
8
|
+
:host {
|
|
9
|
+
display: block;
|
|
10
|
+
left: 0;
|
|
11
|
+
position: absolute;
|
|
12
|
+
top: 0;
|
|
13
|
+
}
|
|
14
|
+
:host([skeleton]) {
|
|
15
|
+
height: 100%;
|
|
16
|
+
width: 100%;
|
|
17
|
+
}
|
|
18
|
+
:host([hidden]) {
|
|
19
|
+
display: none;
|
|
20
|
+
}
|
|
21
|
+
.d2l-insights-card-overlay-container {
|
|
22
|
+
background-color: white;
|
|
23
|
+
border-radius: 15px;
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
height: calc(100% - 20px);
|
|
27
|
+
justify-content: center;
|
|
28
|
+
padding-left: 7px;
|
|
29
|
+
padding-top: 20px;
|
|
30
|
+
width: calc(100% - 28px);
|
|
31
|
+
}
|
|
32
|
+
.d2l-insights-card-overlay-title {
|
|
33
|
+
margin-left: 15px;
|
|
34
|
+
margin-right: 15px;
|
|
35
|
+
margin-top: 10px;
|
|
36
|
+
width: 100%;
|
|
37
|
+
}
|
|
38
|
+
.d2l-insights-card-overlay-body {
|
|
39
|
+
align-items: center;
|
|
40
|
+
display: flex;
|
|
41
|
+
height: 100%;
|
|
42
|
+
margin-bottom: 25px;
|
|
43
|
+
}
|
|
44
|
+
.d2l-insights-card-overlay-body > div {
|
|
45
|
+
flex-shrink: 0;
|
|
46
|
+
height: 70px;
|
|
47
|
+
margin: 0 15px;
|
|
48
|
+
width: 70px;
|
|
49
|
+
}
|
|
50
|
+
.d2l-insights-card-overlay-message {
|
|
51
|
+
display: inline-block;
|
|
52
|
+
font-size: 14px;
|
|
53
|
+
line-height: 1rem;
|
|
54
|
+
margin: 10px;
|
|
55
|
+
margin-left: 5px;
|
|
56
|
+
margin-right: 0;
|
|
57
|
+
vertical-align: middle;
|
|
58
|
+
}
|
|
59
|
+
`];
|
|
62
60
|
|
|
63
61
|
render() {
|
|
64
62
|
if (!this.skeleton) {
|
|
@@ -10,47 +10,43 @@ import { SkeletonMixin } from '@brightspace-ui/core/components/skeleton/skeleton
|
|
|
10
10
|
|
|
11
11
|
class CheckboxDrawer extends LocalizeLabsElement(SkeletonMixin(LitElement)) {
|
|
12
12
|
|
|
13
|
-
static
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
};
|
|
23
|
-
}
|
|
13
|
+
static properties = {
|
|
14
|
+
checked: { type: Boolean },
|
|
15
|
+
description: { type: String },
|
|
16
|
+
disabled: { type: Boolean },
|
|
17
|
+
disabledTooltip: { type: String, attribute: 'disabled-tooltip' },
|
|
18
|
+
label: { type: String },
|
|
19
|
+
readOnly: { type: Boolean, attribute: 'read-only' },
|
|
20
|
+
_expandCollapseBusy: { state: true }
|
|
21
|
+
};
|
|
24
22
|
|
|
25
|
-
static
|
|
26
|
-
|
|
27
|
-
:
|
|
28
|
-
|
|
29
|
-
}
|
|
23
|
+
static styles = [super.styles, bodyCompactStyles, css`
|
|
24
|
+
:host {
|
|
25
|
+
display: block;
|
|
26
|
+
}
|
|
30
27
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
.d2l-input-checkbox {
|
|
29
|
+
margin-bottom: 0;
|
|
30
|
+
}
|
|
34
31
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
32
|
+
.d2l-input-checkbox-description {
|
|
33
|
+
color: var(--d2l-color-tungsten);
|
|
34
|
+
font-size: 0.7rem;
|
|
35
|
+
width: fit-content;
|
|
36
|
+
}
|
|
40
37
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
38
|
+
.d2l-checkbox-content-margin {
|
|
39
|
+
margin-top: 18px;
|
|
40
|
+
}
|
|
44
41
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
42
|
+
.d2l-input-read-only-label {
|
|
43
|
+
display: inline-block;
|
|
44
|
+
margin-left: 0.5rem;
|
|
45
|
+
}
|
|
46
|
+
.d2l-input-read-only-spacer {
|
|
47
|
+
padding-inline-start: 1.7rem;
|
|
48
|
+
}
|
|
49
|
+
`];
|
|
54
50
|
|
|
55
51
|
constructor() {
|
|
56
52
|
super();
|
|
@@ -3,11 +3,9 @@ import { LanguageListenerController } from '../../controllers/language-listener/
|
|
|
3
3
|
|
|
4
4
|
export const CommunityBase = (superClass) => class CommunityBaseMixin extends superClass {
|
|
5
5
|
|
|
6
|
-
static
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
10
|
-
}
|
|
6
|
+
static properties = {
|
|
7
|
+
articleMap: { attribute: 'article-map', type: Object }
|
|
8
|
+
};
|
|
11
9
|
|
|
12
10
|
constructor() {
|
|
13
11
|
super();
|
|
@@ -4,11 +4,9 @@ import { CommunityBase } from './community-base.js';
|
|
|
4
4
|
|
|
5
5
|
class CommunityLink extends CommunityBase(LitElement) {
|
|
6
6
|
|
|
7
|
-
static
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
11
|
-
}
|
|
7
|
+
static properties = {
|
|
8
|
+
text: { type: String },
|
|
9
|
+
};
|
|
12
10
|
|
|
13
11
|
render() {
|
|
14
12
|
return html`<d2l-button-subtle
|
|
@@ -4,12 +4,10 @@ import { CommunityBase } from './community-base.js';
|
|
|
4
4
|
|
|
5
5
|
class CommunityLink extends CommunityBase(LitElement) {
|
|
6
6
|
|
|
7
|
-
static
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
};
|
|
12
|
-
}
|
|
7
|
+
static properties = {
|
|
8
|
+
text: { type: String },
|
|
9
|
+
small: { type: Boolean }
|
|
10
|
+
};
|
|
13
11
|
|
|
14
12
|
render() {
|
|
15
13
|
return html`<d2l-link target="_blank" href="${this.communityArticleDirective(this.langController.language)}" ?small=${this.small} >${this.text}</d2l-link>`;
|