@brightspace-ui/core 3.268.0 → 3.268.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.
- package/components/collapsible-panel/README.md +11 -15
- package/components/demo/code-view.js +6 -10
- package/components/demo/demo-page-settings.js +25 -29
- package/components/demo/demo-page.js +32 -36
- package/components/demo/demo-snippet.js +95 -99
- package/components/description-list/README.md +25 -33
- package/components/description-list/demo/description-list-test.js +36 -39
- package/components/dialog/README.md +3 -5
- package/components/form/docs/form-element-mixin.md +11 -14
- package/components/form/docs/form-element-nesting.md +4 -6
- package/components/form/docs/form-element-wrapping.md +1 -3
- package/components/hierarchical-view/README.md +8 -11
- package/components/inputs/docs/input-select-styles.md +4 -9
- package/components/inputs/docs/styling-native-inputs.md +11 -25
- package/components/link/README.md +1 -1
- package/components/list/README.md +8 -16
- package/components/menu/menu-item-checkbox.js +1 -3
- package/components/menu/menu-item-link.js +27 -33
- package/components/menu/menu-item-mixin.js +52 -54
- package/components/menu/menu-item-radio.js +1 -3
- package/components/menu/menu-item-return.js +18 -22
- package/components/menu/menu-item-selectable-mixin.js +12 -14
- package/components/menu/menu-item-separator.js +9 -11
- package/components/menu/menu-item.js +11 -15
- package/components/menu/menu.js +50 -54
- package/components/meter/meter-circle.js +3 -4
- package/components/meter/meter-linear.js +86 -88
- package/components/meter/meter-mixin.js +34 -36
- package/components/meter/meter-radial.js +3 -4
- package/components/more-less/more-less.js +57 -61
- package/components/object-property-list/object-property-list-item-link.js +18 -19
- package/components/object-property-list/object-property-list-item-tooltip-help.js +8 -9
- package/components/object-property-list/object-property-list-item.js +52 -55
- package/components/object-property-list/object-property-list.js +24 -27
- package/components/offscreen/README.md +1 -1
- package/components/offscreen/offscreen.js +13 -15
- package/components/offscreen/screen-reader-pause.js +1 -3
- package/components/overflow-group/README.md +1 -3
- package/components/overflow-group/overflow-group-mixin.js +55 -59
- package/components/overflow-group/overflow-group.js +38 -42
- package/components/page/page-header-button.js +41 -45
- package/components/page/page-header-custom.js +108 -112
- package/components/page/page-header-immersive.js +65 -69
- package/components/page/page-header-separator.js +12 -14
- package/components/paging/pageable-mixin.js +3 -5
- package/components/paging/pageable-subscriber-mixin.js +8 -10
- package/components/paging/pager-load-more.js +47 -51
- package/components/popover/popover-mixin.js +186 -190
- package/components/progress/progress.js +160 -164
- package/components/scroll-wrapper/scroll-wrapper.js +109 -113
- package/components/selection/README.md +5 -7
- package/components/selection/demo/demo-selection.js +5 -7
- package/components/selection/selection-action-dropdown.js +9 -13
- package/components/selection/selection-action-menu-item.js +11 -15
- package/components/selection/selection-action.js +20 -24
- package/components/selection/selection-controls.js +92 -96
- package/components/selection/selection-input.js +40 -44
- package/components/selection/selection-mixin.js +11 -13
- package/components/selection/selection-observer-mixin.js +14 -16
- package/components/selection/selection-select-all-pages.js +8 -10
- package/components/selection/selection-select-all.js +16 -20
- package/components/selection/selection-summary.js +18 -22
- package/components/skeleton/README.md +2 -6
- package/components/skeleton/skeleton-group-mixin.js +3 -5
- package/components/skeleton/skeleton-mixin.js +7 -9
- package/components/skip-nav/skip-nav-custom.js +33 -37
- package/components/sorting/sort.js +11 -13
- package/components/status-indicator/status-indicator.js +75 -79
- package/components/switch/switch-mixin.js +145 -149
- package/components/switch/switch-visibility.js +11 -15
- package/components/switch/switch.js +5 -7
- package/components/table/README.md +19 -37
- package/components/table/demo/table-test.js +27 -31
- package/components/table/table-col-sort-button-item.js +1 -3
- package/components/table/table-col-sort-button.js +105 -109
- package/components/table/table-controls.js +18 -21
- package/components/table/table-wrapper.js +124 -128
- package/components/tabs/tab-internal.js +72 -76
- package/components/tabs/tab-mixin.js +22 -24
- package/components/tabs/tab-panel-mixin.js +47 -51
- package/components/tabs/tab.js +7 -9
- package/components/tabs/tabs.js +171 -175
- package/components/tag-list/tag-list-item-mixin.js +103 -107
- package/components/tag-list/tag-list-item.js +13 -15
- package/components/tag-list/tag-list.js +54 -58
- package/components/tooltip/tooltip-help.js +67 -71
- package/components/tooltip/tooltip.js +103 -107
- package/components/typography/README.md +5 -7
- package/components/validation/validation-custom-mixin.js +4 -6
- package/components/view-switcher/view-switcher-button.js +42 -46
- package/components/view-switcher/view-switcher.js +26 -29
- package/controllers/subscriber/README.md +7 -11
- package/custom-elements.json +1026 -3850
- package/mixins/arrow-keys/arrow-keys-mixin.js +10 -12
- package/mixins/async-container/async-container-mixin.js +10 -12
- package/mixins/collection/collection-mixin.js +7 -9
- package/mixins/interactive/interactive-mixin.js +10 -14
- package/mixins/labelled/README.md +3 -5
- package/mixins/labelled/labelled-mixin.js +26 -30
- package/mixins/provider/README.md +5 -7
- package/mixins/rtl/README.md +5 -7
- package/mixins/rtl/rtl-mixin.js +7 -9
- package/mixins/theme/theme-mixin.js +6 -8
- package/mixins/visible-on-ancestor/README.md +1 -3
- package/mixins/visible-on-ancestor/visible-on-ancestor-mixin.js +11 -13
- package/package.json +1 -1
- package/templates/primary-secondary/primary-secondary.js +373 -377
|
@@ -8,173 +8,169 @@ import { LocalizeCoreElement } from '../../helpers/localize-core-element.js';
|
|
|
8
8
|
|
|
9
9
|
class Progress extends LocalizeCoreElement(LitElement) {
|
|
10
10
|
|
|
11
|
-
static
|
|
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
|
-
|
|
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
|
-
|
|
11
|
+
static properties = {
|
|
12
|
+
/**
|
|
13
|
+
* The maximum value of the progress bar
|
|
14
|
+
* @type {number}
|
|
15
|
+
*/
|
|
16
|
+
max: { type: Number, attribute: 'max' },
|
|
17
|
+
/**
|
|
18
|
+
* The current value of the progress bar
|
|
19
|
+
* @type {number}
|
|
20
|
+
*/
|
|
21
|
+
value: { type: Number, reflect: true },
|
|
22
|
+
/**
|
|
23
|
+
* REQUIRED: Label for the progress bar
|
|
24
|
+
* @type {string}
|
|
25
|
+
*/
|
|
26
|
+
label: { type: String },
|
|
27
|
+
/**
|
|
28
|
+
* Hide the bar's label
|
|
29
|
+
* @type {boolean}
|
|
30
|
+
*/
|
|
31
|
+
labelHidden: { type: Boolean, attribute: 'label-hidden' },
|
|
32
|
+
/**
|
|
33
|
+
* Announce the label when it changes
|
|
34
|
+
* @type {boolean}
|
|
35
|
+
*/
|
|
36
|
+
announceLabel: { type: Boolean, attribute: 'announce-label' },
|
|
37
|
+
/**
|
|
38
|
+
* Hide the bar's value
|
|
39
|
+
* @type {boolean}
|
|
40
|
+
*/
|
|
41
|
+
valueHidden: { type: Boolean, attribute: 'value-hidden', reflect: true },
|
|
42
|
+
/**
|
|
43
|
+
* The size of the progress bar
|
|
44
|
+
* @type {'small'|'medium'|'large'}
|
|
45
|
+
*/
|
|
46
|
+
size: { type: String, reflect: true }
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
static styles = [bodySmallStyles, bodyCompactStyles, css`
|
|
50
|
+
:host {
|
|
51
|
+
align-items: center;
|
|
52
|
+
display: grid;
|
|
53
|
+
grid-template: auto auto / 1fr auto;
|
|
54
|
+
grid-template-areas:
|
|
55
|
+
"label label"
|
|
56
|
+
"bar value";
|
|
57
|
+
min-width: 6rem;
|
|
58
|
+
}
|
|
59
|
+
:host([hidden]) {
|
|
60
|
+
display: none;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
#label {
|
|
64
|
+
grid-area: label;
|
|
65
|
+
width: 100%;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
progress {
|
|
69
|
+
--d2l-progress-color: var(--d2l-color-celestine);
|
|
70
|
+
-moz-appearance: none;
|
|
71
|
+
-webkit-appearance: none;
|
|
72
|
+
appearance: none;
|
|
73
|
+
background-color: var(--d2l-color-gypsum);
|
|
74
|
+
box-shadow: inset 0 2px var(--d2l-color-mica);
|
|
75
|
+
overflow: hidden;
|
|
76
|
+
width: 100%;
|
|
77
|
+
}
|
|
78
|
+
.bar {
|
|
79
|
+
border: none;
|
|
80
|
+
border-radius: 0.9rem;
|
|
81
|
+
display: block;
|
|
82
|
+
grid-area: bar;
|
|
83
|
+
height: 0.6rem;
|
|
84
|
+
}
|
|
85
|
+
.value {
|
|
86
|
+
grid-area: value;
|
|
87
|
+
margin-inline-start: 0.4rem;
|
|
88
|
+
text-align: end;
|
|
89
|
+
width: 2.42rem;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
:host([size="small"]) {
|
|
93
|
+
.bar {
|
|
94
|
+
height: 0.3rem;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.value {
|
|
98
|
+
margin-inline-start: 0.3rem;
|
|
99
|
+
width: 2.15rem;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
:host([size="large"]) {
|
|
104
|
+
line-height: 1.5rem;
|
|
105
|
+
.bar {
|
|
106
|
+
height: 0.9rem;
|
|
107
|
+
}
|
|
108
|
+
.value {
|
|
109
|
+
margin-inline-start: 0.5rem;
|
|
110
|
+
width: 2.82rem;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
progress.complete {
|
|
115
|
+
--d2l-progress-color: var(--d2l-color-olivine);
|
|
116
|
+
}
|
|
117
|
+
/* this is necessary to avoid white bleed over rounded corners in chrome and safari */
|
|
118
|
+
progress::-webkit-progress-bar {
|
|
119
|
+
background-color: transparent;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
:host(:not([value-hidden]):not([value])) .bar {
|
|
124
|
+
margin-bottom: 0.3rem;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
:host(:not([value]):not([label-hidden])),
|
|
128
|
+
:host([value-hidden]:not([label-hidden])) {
|
|
129
|
+
row-gap: 0.3rem;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.indeterminate-bar-container {
|
|
133
|
+
overflow: hidden;
|
|
134
|
+
}
|
|
135
|
+
.indeterminate-bar {
|
|
136
|
+
--d2l-progress-indeterminate-width: calc(100% / 3);
|
|
137
|
+
animation: 1450ms 50ms ease-in-out indeterminateState alternate infinite;
|
|
138
|
+
background-color: var(--d2l-color-celestine);
|
|
139
|
+
height: 100%;
|
|
140
|
+
margin-inline-start: calc(var(--d2l-progress-indeterminate-width) * -0.75);
|
|
141
|
+
width: var(--d2l-progress-indeterminate-width);
|
|
142
|
+
}
|
|
143
|
+
@keyframes indeterminateState {
|
|
144
|
+
100% {
|
|
145
|
+
margin-inline-start: calc(100% - var(--d2l-progress-indeterminate-width) * 0.25);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
`,
|
|
149
|
+
/* comma separating the selectors for these pseudo-elements causes them to break */
|
|
150
|
+
/* note: unable to get firefox to animate the width... seems animation is not implemented for progress in FF */
|
|
151
|
+
...['-webkit-progress-value', '-moz-progress-bar'].map(selector => css`
|
|
152
|
+
progress::${unsafeCSS(selector)} {
|
|
153
|
+
background-color: var(--d2l-progress-color);
|
|
154
|
+
border: 1px solid transparent;
|
|
155
|
+
border-radius: 0.9rem;
|
|
156
|
+
transition: width 0.4s ease-out;
|
|
157
|
+
}
|
|
158
|
+
/* these are necessary to avoid showing border when value is 0 */
|
|
159
|
+
progress:not([value])::${unsafeCSS(selector)},
|
|
160
|
+
progress[value="0"]::${unsafeCSS(selector)} {
|
|
161
|
+
border: none;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
progress:not([value])::${unsafeCSS(selector)} {
|
|
165
|
+
transition: none;
|
|
166
|
+
}
|
|
167
|
+
@media (prefers-reduced-motion: reduce) {
|
|
155
168
|
progress::${unsafeCSS(selector)} {
|
|
156
|
-
background-color: var(--d2l-progress-color);
|
|
157
|
-
border: 1px solid transparent;
|
|
158
|
-
border-radius: 0.9rem;
|
|
159
|
-
transition: width 0.4s ease-out;
|
|
160
|
-
}
|
|
161
|
-
/* these are necessary to avoid showing border when value is 0 */
|
|
162
|
-
progress:not([value])::${unsafeCSS(selector)},
|
|
163
|
-
progress[value="0"]::${unsafeCSS(selector)} {
|
|
164
|
-
border: none;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
progress:not([value])::${unsafeCSS(selector)} {
|
|
168
169
|
transition: none;
|
|
169
170
|
}
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
`)
|
|
176
|
-
];
|
|
177
|
-
}
|
|
171
|
+
}
|
|
172
|
+
`)
|
|
173
|
+
];
|
|
178
174
|
|
|
179
175
|
constructor() {
|
|
180
176
|
super();
|
|
@@ -36,126 +36,122 @@ function getStyleSheetInsertionPoint(elem) {
|
|
|
36
36
|
*/
|
|
37
37
|
class ScrollWrapper extends LocalizeCoreElement(LitElement) {
|
|
38
38
|
|
|
39
|
-
static
|
|
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
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
};
|
|
81
|
-
}
|
|
39
|
+
static properties = {
|
|
40
|
+
/**
|
|
41
|
+
* An object containing custom primary/secondary scroll containers
|
|
42
|
+
* @type {Object}
|
|
43
|
+
*/
|
|
44
|
+
customScrollers: {
|
|
45
|
+
attribute: false,
|
|
46
|
+
type: Object
|
|
47
|
+
},
|
|
48
|
+
/**
|
|
49
|
+
* Whether to hide left/right scroll buttons
|
|
50
|
+
* @type {boolean}
|
|
51
|
+
*/
|
|
52
|
+
hideActions: {
|
|
53
|
+
attribute: 'hide-actions',
|
|
54
|
+
type: Boolean
|
|
55
|
+
},
|
|
56
|
+
/**
|
|
57
|
+
* The area in pixels to offset scroll width calculations
|
|
58
|
+
* @type {number}
|
|
59
|
+
*/
|
|
60
|
+
scrollAreaOffset: {
|
|
61
|
+
attribute: 'scroll-area-offset',
|
|
62
|
+
type: Number
|
|
63
|
+
},
|
|
64
|
+
_hScrollbar: {
|
|
65
|
+
attribute: 'h-scrollbar',
|
|
66
|
+
reflect: true,
|
|
67
|
+
type: Boolean
|
|
68
|
+
},
|
|
69
|
+
_scrollbarLeft: {
|
|
70
|
+
attribute: 'scrollbar-left',
|
|
71
|
+
reflect: true,
|
|
72
|
+
type: Boolean
|
|
73
|
+
},
|
|
74
|
+
_scrollbarRight: {
|
|
75
|
+
attribute: 'scrollbar-right',
|
|
76
|
+
reflect: true,
|
|
77
|
+
type: Boolean
|
|
78
|
+
}
|
|
79
|
+
};
|
|
82
80
|
|
|
83
|
-
static
|
|
84
|
-
|
|
85
|
-
:
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
:
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
:
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
:
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
}
|
|
81
|
+
static styles = css`
|
|
82
|
+
:host {
|
|
83
|
+
display: block;
|
|
84
|
+
position: relative;
|
|
85
|
+
}
|
|
86
|
+
:host([hidden]) {
|
|
87
|
+
display: none;
|
|
88
|
+
}
|
|
89
|
+
.d2l-scroll-wrapper-container {
|
|
90
|
+
box-sizing: border-box;
|
|
91
|
+
overflow-y: var(--d2l-scroll-wrapper-overflow-y, visible);
|
|
92
|
+
}
|
|
93
|
+
:host([h-scrollbar]) .d2l-scroll-wrapper-container {
|
|
94
|
+
border-inline: 1px dashed var(--d2l-theme-border-color-standard);
|
|
95
|
+
}
|
|
96
|
+
:host([h-scrollbar][hide-actions]) .d2l-scroll-wrapper-container {
|
|
97
|
+
border-inline: none;
|
|
98
|
+
}
|
|
99
|
+
:host([scrollbar-left]) .d2l-scroll-wrapper-container {
|
|
100
|
+
border-inline-start: none;
|
|
101
|
+
}
|
|
102
|
+
:host([scrollbar-right]) .d2l-scroll-wrapper-container {
|
|
103
|
+
border-inline-end: none;
|
|
104
|
+
}
|
|
108
105
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
106
|
+
.d2l-scroll-wrapper-button-left {
|
|
107
|
+
inset-inline-start: -10px;
|
|
108
|
+
}
|
|
109
|
+
.d2l-scroll-wrapper-button-right {
|
|
110
|
+
inset-inline-end: -10px;
|
|
111
|
+
}
|
|
115
112
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
113
|
+
.d2l-scroll-wrapper-actions {
|
|
114
|
+
position: -webkit-sticky;
|
|
115
|
+
position: sticky;
|
|
116
|
+
top: var(--d2l-table-sticky-top, 0);
|
|
117
|
+
z-index: 5;
|
|
118
|
+
}
|
|
122
119
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
120
|
+
.d2l-scroll-wrapper-button {
|
|
121
|
+
background-color: var(--d2l-theme-background-color-interactive-faint-default);
|
|
122
|
+
border: 1px solid var(--d2l-theme-border-color-standard);
|
|
123
|
+
border-radius: 50%;
|
|
124
|
+
box-shadow: var(--d2l-theme-shadow-floating);
|
|
125
|
+
cursor: pointer;
|
|
126
|
+
display: inline-block;
|
|
127
|
+
height: 18px;
|
|
128
|
+
line-height: 0;
|
|
129
|
+
padding: 10px;
|
|
130
|
+
position: absolute;
|
|
131
|
+
top: 4px;
|
|
132
|
+
width: 18px;
|
|
133
|
+
}
|
|
134
|
+
.d2l-scroll-wrapper-button:hover {
|
|
135
|
+
background-color: var(--d2l-theme-background-color-interactive-faint-hover);
|
|
136
|
+
}
|
|
137
|
+
:host([scrollbar-right]) .d2l-scroll-wrapper-button-right {
|
|
138
|
+
display: none;
|
|
139
|
+
}
|
|
140
|
+
:host([scrollbar-left]) .d2l-scroll-wrapper-button-left {
|
|
141
|
+
display: none;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
@media print {
|
|
145
|
+
.d2l-scroll-wrapper-actions {
|
|
144
146
|
display: none;
|
|
145
147
|
}
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
}
|
|
151
|
-
.d2l-scroll-wrapper-container {
|
|
152
|
-
border: none !important;
|
|
153
|
-
box-sizing: content-box !important;
|
|
154
|
-
overflow: visible !important;
|
|
155
|
-
}
|
|
148
|
+
.d2l-scroll-wrapper-container {
|
|
149
|
+
border: none !important;
|
|
150
|
+
box-sizing: content-box !important;
|
|
151
|
+
overflow: visible !important;
|
|
156
152
|
}
|
|
157
|
-
|
|
158
|
-
|
|
153
|
+
}
|
|
154
|
+
`;
|
|
159
155
|
|
|
160
156
|
constructor() {
|
|
161
157
|
super();
|
|
@@ -19,13 +19,11 @@ The `SelectionMixin` defines the `selection-single` attribute that consumers can
|
|
|
19
19
|
import { SelectionMixin } from '@brightspace-ui/core/components/selection/selection-mixin.js';
|
|
20
20
|
|
|
21
21
|
class DemoSelection extends SelectionMixin(LitElement) {
|
|
22
|
-
static
|
|
23
|
-
|
|
24
|
-
:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
`;
|
|
28
|
-
}
|
|
22
|
+
static styles = css`
|
|
23
|
+
:host {
|
|
24
|
+
display: block;
|
|
25
|
+
}
|
|
26
|
+
`;
|
|
29
27
|
render() {
|
|
30
28
|
return html`
|
|
31
29
|
<slot></slot>
|
|
@@ -3,13 +3,11 @@ import { PageableMixin } from '../../paging/pageable-mixin.js';
|
|
|
3
3
|
import { SelectionMixin } from '../selection-mixin.js';
|
|
4
4
|
|
|
5
5
|
class DemoBase extends LitElement {
|
|
6
|
-
static
|
|
7
|
-
|
|
8
|
-
:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
`;
|
|
12
|
-
}
|
|
6
|
+
static styles = css`
|
|
7
|
+
:host {
|
|
8
|
+
display: block;
|
|
9
|
+
}
|
|
10
|
+
`;
|
|
13
11
|
render() {
|
|
14
12
|
return html`
|
|
15
13
|
<slot></slot>
|
|
@@ -13,19 +13,15 @@ import { SelectionActionMixin } from './selection-action-mixin.js';
|
|
|
13
13
|
*/
|
|
14
14
|
class ActionDropdown extends FocusMixin(SelectionActionMixin(DropdownOpenerMixin(LitElement))) {
|
|
15
15
|
|
|
16
|
-
static
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
static get styles() {
|
|
27
|
-
return dropdownOpenerStyles;
|
|
28
|
-
}
|
|
16
|
+
static properties = {
|
|
17
|
+
/**
|
|
18
|
+
* REQUIRED: Text for the dropdown opener button
|
|
19
|
+
* @type {string}
|
|
20
|
+
*/
|
|
21
|
+
text: { type: String }
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
static styles = dropdownOpenerStyles;
|
|
29
25
|
|
|
30
26
|
static get focusElementSelector() {
|
|
31
27
|
return 'd2l-button-subtle';
|