@brightspace-ui/core 3.240.5 → 3.241.0
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/colors/colors.js +2 -0
- package/components/page/README.md +5 -0
- package/components/page/page.js +213 -0
- package/components/switch/switch-mixin.js +11 -11
- package/components/switch/switch.js +1 -1
- package/custom-elements.json +91 -0
- package/lang/ar.js +2 -0
- package/lang/ca.js +2 -0
- package/lang/cy.js +2 -0
- package/lang/da.js +2 -0
- package/lang/de.js +2 -0
- package/lang/en-gb.js +2 -0
- package/lang/en.js +2 -0
- package/lang/es-es.js +2 -0
- package/lang/es.js +2 -0
- package/lang/fr-fr.js +2 -0
- package/lang/fr.js +2 -0
- package/lang/haw.js +2 -0
- package/lang/hi.js +2 -0
- package/lang/ja.js +2 -0
- package/lang/ko.js +2 -0
- package/lang/mi.js +2 -0
- package/lang/nl.js +2 -0
- package/lang/pt.js +2 -0
- package/lang/sv.js +2 -0
- package/lang/th.js +2 -0
- package/lang/tr.js +2 -0
- package/lang/vi.js +2 -0
- package/lang/zh-cn.js +2 -0
- package/lang/zh-tw.js +2 -0
- package/package.json +1 -1
|
@@ -120,6 +120,7 @@ const lightVariables = new Map([
|
|
|
120
120
|
['--d2l-theme-border-color-disabled', '--d2l-color-corundum'],
|
|
121
121
|
['--d2l-theme-notification-background-color', '--d2l-color-carnelian-minus-1'],
|
|
122
122
|
['--d2l-theme-notification-text-color', '#ffffff'],
|
|
123
|
+
['--d2l-theme-icon-color-active', '--d2l-color-celestine'],
|
|
123
124
|
['--d2l-theme-text-color-static-disabled', '#20212280'], /* --d2l-theme-text-color-static-standard at 50% opacity, remove once color-mix is widely supported */
|
|
124
125
|
// opacity
|
|
125
126
|
['--d2l-theme-opacity-disabled-control', '0.5'],
|
|
@@ -200,6 +201,7 @@ const darkVariables = new Map([
|
|
|
200
201
|
['--d2l-theme-border-color-disabled', '#303233'], /* --d2l-theme-border-color-standard (tungsten) at 50% opacity */
|
|
201
202
|
['--d2l-theme-notification-background-color', '--d2l-color-carnelian-minus-1'],
|
|
202
203
|
['--d2l-theme-notification-text-color', '#ffffff'],
|
|
204
|
+
['--d2l-theme-icon-color-active', '--d2l-color-celestine'],
|
|
203
205
|
['--d2l-theme-text-color-static-disabled', '#cdd5dc80'], /* --d2l-theme-text-color-static-standard at 50% opacity, remove once color-mix is widely supported */
|
|
204
206
|
// opacity
|
|
205
207
|
['--d2l-theme-opacity-disabled-control', '0.5'],
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import '../colors/colors.js';
|
|
2
|
+
import '../button/floating-buttons.js';
|
|
3
|
+
import { css, html, LitElement, nothing } from 'lit';
|
|
4
|
+
import { classMap } from 'lit/directives/class-map.js';
|
|
5
|
+
import { LocalizeCoreElement } from '../../helpers/localize-core-element.js';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Component for laying out a page, with header, optional footer and optional navigation or supporting panels
|
|
9
|
+
* @slot - The main content of the page (expecting d2l-page-main)
|
|
10
|
+
* @slot header - The header content of the page (expecting d2l-page-header-*)
|
|
11
|
+
* @slot side-nav - The side navigation content of the page (expecting d2l-page-side-nav)
|
|
12
|
+
* @slot supporting - The supporting content of the page (expecting d2l-page-supporting)
|
|
13
|
+
* @slot footer - The footer content of the page (expecting d2l-page-footer)
|
|
14
|
+
*/
|
|
15
|
+
class Page extends LocalizeCoreElement(LitElement) {
|
|
16
|
+
|
|
17
|
+
static properties = {
|
|
18
|
+
/**
|
|
19
|
+
* Width type of the page and its underlying pieces
|
|
20
|
+
* @type {'normal'|'wide'|'fullscreen'}
|
|
21
|
+
*/
|
|
22
|
+
widthType: { type: String, attribute: 'width-type' },
|
|
23
|
+
_headerIsSticky: { state: true },
|
|
24
|
+
_slotVisibility: { state: true }
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
static styles = css`
|
|
28
|
+
:host {
|
|
29
|
+
--d2l-page-header-max-width: 1230px;
|
|
30
|
+
--d2l-page-content-max-width: 1230px;
|
|
31
|
+
--d2l-page-footer-max-width: 1230px;
|
|
32
|
+
--d2l-page-margin-inline: auto;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
:host([width-type="wide"]) {
|
|
36
|
+
--d2l-page-header-max-width: 1440px;
|
|
37
|
+
--d2l-page-content-max-width: 1440px;
|
|
38
|
+
--d2l-page-footer-max-width: 1440px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
:host([width-type="fullscreen"]) {
|
|
42
|
+
--d2l-page-header-max-width: 100%;
|
|
43
|
+
--d2l-page-content-max-width: 100%;
|
|
44
|
+
--d2l-page-footer-max-width: 100%;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.page.header-sticky .header {
|
|
48
|
+
position: sticky;
|
|
49
|
+
top: 0;
|
|
50
|
+
z-index: 15; /* To be over sticky content of our core components */
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.content {
|
|
54
|
+
display: flex;
|
|
55
|
+
margin-inline: var(--d2l-page-margin-inline, 0);
|
|
56
|
+
max-width: var(--d2l-page-content-max-width, 100%);
|
|
57
|
+
padding-bottom: var(--d2l-page-footer-height, 0); /* Reserve space for fixed footer */
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
main {
|
|
61
|
+
flex: 1;
|
|
62
|
+
min-width: min(400px, 100%); /* Actual min width TBD */
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.side-nav-panel,
|
|
66
|
+
.supporting-panel {
|
|
67
|
+
height: calc(100vh - var(--d2l-page-header-height, 0) - var(--d2l-page-footer-height, 0));
|
|
68
|
+
overflow: clip auto;
|
|
69
|
+
position: sticky;
|
|
70
|
+
top: var(--d2l-page-header-height, 0);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.divider {
|
|
74
|
+
background-color: var(--d2l-color-gypsum);
|
|
75
|
+
flex: none;
|
|
76
|
+
width: 4px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.footer:not([hidden]),
|
|
80
|
+
.floating-buttons-container {
|
|
81
|
+
display: inline;
|
|
82
|
+
}
|
|
83
|
+
.fixed-footer {
|
|
84
|
+
background-color: white;
|
|
85
|
+
box-shadow: 0 -2px 4px rgba(32, 33, 34, 0.2); /* ferrite */
|
|
86
|
+
inset: auto 0 0;
|
|
87
|
+
padding: 0.75rem 0;
|
|
88
|
+
position: fixed;
|
|
89
|
+
z-index: 10; /* To be over sticky content of our core components */
|
|
90
|
+
}
|
|
91
|
+
.footer-contents {
|
|
92
|
+
margin-inline: var(--d2l-page-margin-inline, 0);
|
|
93
|
+
max-width: var(--d2l-page-footer-max-width, 100%);
|
|
94
|
+
}
|
|
95
|
+
`;
|
|
96
|
+
|
|
97
|
+
constructor() {
|
|
98
|
+
super();
|
|
99
|
+
|
|
100
|
+
this.widthType = 'normal';
|
|
101
|
+
this._headerIsSticky = false;
|
|
102
|
+
this._slotVisibility = {};
|
|
103
|
+
this.#resizeObserver = new ResizeObserver(entries => {
|
|
104
|
+
for (const entry of entries) {
|
|
105
|
+
if (entry.target.classList.contains('header')) {
|
|
106
|
+
const height = this._headerIsSticky ? entry.target.offsetHeight : 0;
|
|
107
|
+
this.style.setProperty('--d2l-page-header-height', `${height}px`);
|
|
108
|
+
} else if (entry.target.classList.contains('footer')) {
|
|
109
|
+
const height = entry.target.classList.contains('fixed-footer') ? entry.target.offsetHeight : 0;
|
|
110
|
+
this.style.setProperty('--d2l-page-footer-height', `${height}px`);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
disconnectedCallback() {
|
|
117
|
+
super.disconnectedCallback();
|
|
118
|
+
this.#resizeObserver.disconnect();
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
firstUpdated() {
|
|
122
|
+
const header = this.shadowRoot.querySelector('.header');
|
|
123
|
+
const footer = this.shadowRoot.querySelector('.footer');
|
|
124
|
+
if (header) this.#resizeObserver.observe(header);
|
|
125
|
+
if (footer) this.#resizeObserver.observe(footer);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
render() {
|
|
129
|
+
const pageClasses = {
|
|
130
|
+
'page': true,
|
|
131
|
+
'header-sticky': this._headerIsSticky
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
return html`
|
|
135
|
+
<div class="${classMap(pageClasses)}">
|
|
136
|
+
${this.#renderHeader()}
|
|
137
|
+
<div class="content">
|
|
138
|
+
${this.#renderSideNavPanel()}
|
|
139
|
+
<main><slot></slot></main>
|
|
140
|
+
${this.#renderSupportingPanel()}
|
|
141
|
+
</div>
|
|
142
|
+
${this.#renderFooter()}
|
|
143
|
+
</div>
|
|
144
|
+
`;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
#resizeObserver;
|
|
148
|
+
|
|
149
|
+
#handleHeaderSlotChange(e) {
|
|
150
|
+
const nodes = e.target.assignedNodes();
|
|
151
|
+
//this._headerIsSticky = nodes.some(node => node.tagName.toLowerCase() === 'd2l-page-header-immersive');
|
|
152
|
+
this._headerIsSticky = nodes.some(node => node.id === 'immersive-nav'); // temp until the official component exists
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
#handleSlotVisibilityChange(e) {
|
|
156
|
+
const key = e.target.name;
|
|
157
|
+
const nodes = e.target.assignedNodes();
|
|
158
|
+
this._slotVisibility = { ...this._slotVisibility, [key]: nodes.length !== 0 };
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
#renderFloatingButtons(footerContents) {
|
|
162
|
+
// Floating buttons needs to be wrapped as it spawns a sibling element that should be cleaned up as one by Lit
|
|
163
|
+
return html`
|
|
164
|
+
<div class="floating-buttons-container">
|
|
165
|
+
<d2l-floating-buttons>
|
|
166
|
+
${footerContents}
|
|
167
|
+
</d2l-floating-buttons>
|
|
168
|
+
</div>
|
|
169
|
+
`;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
#renderFooter() {
|
|
173
|
+
const fixedFooter = this._slotVisibility['side-nav'] || this._slotVisibility['supporting'];
|
|
174
|
+
const footerContainerClasses = { 'footer': true, 'fixed-footer': fixedFooter };
|
|
175
|
+
const footerContents = html`<div class="footer-contents"><slot name="footer" @slotchange="${this.#handleSlotVisibilityChange}"></slot></div>`;
|
|
176
|
+
return html`
|
|
177
|
+
<div class="${classMap(footerContainerClasses)}" ?hidden="${!this._slotVisibility['footer']}">
|
|
178
|
+
${fixedFooter ? footerContents : this.#renderFloatingButtons(footerContents)}
|
|
179
|
+
</div>
|
|
180
|
+
`;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
#renderHeader() {
|
|
184
|
+
return html`
|
|
185
|
+
<header class="header">
|
|
186
|
+
<nav aria-label="${this.localize('components.page.header-nav-label')}">
|
|
187
|
+
<slot name="header" @slotchange="${this.#handleHeaderSlotChange}"></slot>
|
|
188
|
+
</nav>
|
|
189
|
+
</header>
|
|
190
|
+
`;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
#renderSideNavPanel() {
|
|
194
|
+
return html`
|
|
195
|
+
<nav class="side-nav-panel" ?hidden="${!this._slotVisibility['side-nav']}" aria-label="${this.localize('components.page.side-nav-label')}">
|
|
196
|
+
<slot name="side-nav" @slotchange="${this.#handleSlotVisibilityChange}"></slot>
|
|
197
|
+
</nav>
|
|
198
|
+
${this._slotVisibility['side-nav'] ? html`<div class="divider"></div>` : nothing}
|
|
199
|
+
`;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
#renderSupportingPanel() {
|
|
203
|
+
return html`
|
|
204
|
+
${this._slotVisibility['supporting'] ? html`<div class="divider"></div>` : nothing}
|
|
205
|
+
<aside class="supporting-panel" ?hidden="${!this._slotVisibility['supporting']}">
|
|
206
|
+
<slot name="supporting" @slotchange="${this.#handleSlotVisibilityChange}"></slot>
|
|
207
|
+
</aside>
|
|
208
|
+
`;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
customElements.define('d2l-page', Page);
|
|
@@ -48,7 +48,7 @@ export const SwitchMixin = superclass => class extends FocusMixin(RtlMixin(super
|
|
|
48
48
|
|
|
49
49
|
.d2l-switch-container {
|
|
50
50
|
--d2l-focus-ring-offset: 0;
|
|
51
|
-
background-color: var(--d2l-switch-container-background-color,
|
|
51
|
+
background-color: var(--d2l-switch-container-background-color, var(--d2l-theme-background-color-base));
|
|
52
52
|
border-radius: 1rem;
|
|
53
53
|
box-sizing: border-box;
|
|
54
54
|
cursor: default;
|
|
@@ -62,15 +62,15 @@ export const SwitchMixin = superclass => class extends FocusMixin(RtlMixin(super
|
|
|
62
62
|
${getFocusRingStyles('.d2l-switch-container', { extraStyles: css`position: relative;` })}
|
|
63
63
|
:host([disabled]) .d2l-switch-container {
|
|
64
64
|
cursor: default;
|
|
65
|
-
opacity:
|
|
65
|
+
opacity: var(--d2l-theme-opacity-disabled-control);
|
|
66
66
|
}
|
|
67
67
|
:host([disabled]) .d2l-switch-container:hover > .d2l-switch-inner,
|
|
68
|
-
:host([disabled]) .d2l-switch-inner:hover
|
|
68
|
+
:host([disabled]) .d2l-switch-inner:hover,
|
|
69
|
+
:host([disabled]) .switch-hover {
|
|
69
70
|
outline: none;
|
|
70
71
|
}
|
|
71
72
|
.d2l-switch-inner {
|
|
72
|
-
|
|
73
|
-
border: 1px solid var(--d2l-color-ferrite);
|
|
73
|
+
border: 1px solid var(--d2l-theme-border-color-emphasized);
|
|
74
74
|
border-radius: 0.8rem;
|
|
75
75
|
box-sizing: border-box;
|
|
76
76
|
padding: 0.3rem;
|
|
@@ -78,15 +78,15 @@ export const SwitchMixin = superclass => class extends FocusMixin(RtlMixin(super
|
|
|
78
78
|
width: 3rem;
|
|
79
79
|
}
|
|
80
80
|
:host([on]) .d2l-switch-inner {
|
|
81
|
-
background-color: var(--d2l-color-
|
|
81
|
+
background-color: var(--d2l-theme-background-color-interactive-highlighted);
|
|
82
82
|
}
|
|
83
83
|
.d2l-switch-toggle {
|
|
84
84
|
position: relative;
|
|
85
85
|
transition: transform 150ms ease-out;
|
|
86
86
|
}
|
|
87
87
|
.d2l-switch-toggle > div {
|
|
88
|
-
background-color:
|
|
89
|
-
border: 1px solid var(--d2l-color-
|
|
88
|
+
background-color: var(--d2l-theme-background-color-base);
|
|
89
|
+
border: 1px solid var(--d2l-theme-border-color-emphasized);
|
|
90
90
|
border-radius: 0.6rem;
|
|
91
91
|
box-sizing: border-box;
|
|
92
92
|
display: inline-block;
|
|
@@ -131,13 +131,13 @@ export const SwitchMixin = superclass => class extends FocusMixin(RtlMixin(super
|
|
|
131
131
|
}
|
|
132
132
|
:host([on]) .d2l-switch-icon-on > d2l-icon,
|
|
133
133
|
:host([on]) .d2l-switch-icon-on > d2l-icon-custom {
|
|
134
|
-
color: var(--d2l-color-
|
|
134
|
+
color: var(--d2l-theme-icon-color-active);
|
|
135
135
|
}
|
|
136
136
|
:host([on]) .d2l-switch-icon-off {
|
|
137
137
|
transform: scale(0.35);
|
|
138
138
|
}
|
|
139
139
|
:host(:not([on])) .d2l-switch-icon-on {
|
|
140
|
-
color: var(--d2l-color-
|
|
140
|
+
color: var(--d2l-theme-icon-color-active);
|
|
141
141
|
transform: scale(0.35);
|
|
142
142
|
}
|
|
143
143
|
.d2l-switch-text {
|
|
@@ -149,7 +149,7 @@ export const SwitchMixin = superclass => class extends FocusMixin(RtlMixin(super
|
|
|
149
149
|
display: none;
|
|
150
150
|
}
|
|
151
151
|
.d2l-switch-inner:hover, .switch-hover {
|
|
152
|
-
outline: 2px solid var(--d2l-color-
|
|
152
|
+
outline: 2px solid var(--d2l-theme-border-color-focus);
|
|
153
153
|
outline-offset: -2px;
|
|
154
154
|
}
|
|
155
155
|
@media (prefers-reduced-motion: reduce) {
|
package/custom-elements.json
CHANGED
|
@@ -12263,6 +12263,97 @@
|
|
|
12263
12263
|
}
|
|
12264
12264
|
]
|
|
12265
12265
|
},
|
|
12266
|
+
{
|
|
12267
|
+
"name": "d2l-page-demo",
|
|
12268
|
+
"path": "./components/page/demo/page-component.js",
|
|
12269
|
+
"description": "Component for d2l-page demos and tests",
|
|
12270
|
+
"properties": [
|
|
12271
|
+
{
|
|
12272
|
+
"name": "properties",
|
|
12273
|
+
"type": "{ demoMode: { type: BooleanConstructor; attribute: string; }; hasFooter: { type: BooleanConstructor; attribute: string; }; hasSideNavPanel: { type: BooleanConstructor; attribute: string; }; hasSupportingPanel: { ...; }; navType: { ...; }; widthType: { ...; }; _allowThreePanels: { ...; }; }",
|
|
12274
|
+
"default": "{\"demoMode\":{\"type\":\"Boolean\",\"attribute\":\"demo-mode\"},\"hasFooter\":{\"type\":\"Boolean\",\"attribute\":\"has-footer\"},\"hasSideNavPanel\":{\"type\":\"Boolean\",\"attribute\":\"has-side-nav-panel\"},\"hasSupportingPanel\":{\"type\":\"Boolean\",\"attribute\":\"has-supporting-panel\"},\"navType\":{\"type\":\"String\",\"attribute\":\"nav-type\"},\"widthType\":{\"type\":\"String\",\"attribute\":\"width-type\"},\"_allowThreePanels\":{\"state\":true}}"
|
|
12275
|
+
},
|
|
12276
|
+
{
|
|
12277
|
+
"name": "styles",
|
|
12278
|
+
"type": "CSSResult[]",
|
|
12279
|
+
"default": "[\"navStyles\",\"selectStyles\",null]"
|
|
12280
|
+
},
|
|
12281
|
+
{
|
|
12282
|
+
"name": "demoMode",
|
|
12283
|
+
"type": "boolean",
|
|
12284
|
+
"default": "false"
|
|
12285
|
+
},
|
|
12286
|
+
{
|
|
12287
|
+
"name": "hasFooter",
|
|
12288
|
+
"type": "boolean",
|
|
12289
|
+
"default": "false"
|
|
12290
|
+
},
|
|
12291
|
+
{
|
|
12292
|
+
"name": "hasSideNavPanel",
|
|
12293
|
+
"type": "boolean",
|
|
12294
|
+
"default": "false"
|
|
12295
|
+
},
|
|
12296
|
+
{
|
|
12297
|
+
"name": "hasSupportingPanel",
|
|
12298
|
+
"type": "boolean",
|
|
12299
|
+
"default": "false"
|
|
12300
|
+
},
|
|
12301
|
+
{
|
|
12302
|
+
"name": "navType",
|
|
12303
|
+
"type": "string",
|
|
12304
|
+
"default": "\"full\""
|
|
12305
|
+
},
|
|
12306
|
+
{
|
|
12307
|
+
"name": "widthType",
|
|
12308
|
+
"type": "'normal'|'wide'|'fullscreen'",
|
|
12309
|
+
"default": "\"normal\""
|
|
12310
|
+
}
|
|
12311
|
+
]
|
|
12312
|
+
},
|
|
12313
|
+
{
|
|
12314
|
+
"name": "d2l-page",
|
|
12315
|
+
"path": "./components/page/page.js",
|
|
12316
|
+
"description": "Component for laying out a page, with header, optional footer and optional navigation or supporting panels",
|
|
12317
|
+
"properties": [
|
|
12318
|
+
{
|
|
12319
|
+
"name": "properties",
|
|
12320
|
+
"type": "{ widthType: \"normal\" | \"wide\" | \"fullscreen\"; _headerIsSticky: { state: boolean; }; _slotVisibility: { state: boolean; }; }",
|
|
12321
|
+
"default": "{\"widthType\":{\"type\":\"String\",\"attribute\":\"width-type\"},\"_headerIsSticky\":{\"state\":true},\"_slotVisibility\":{\"state\":true}}"
|
|
12322
|
+
},
|
|
12323
|
+
{
|
|
12324
|
+
"name": "styles",
|
|
12325
|
+
"type": "CSSResult",
|
|
12326
|
+
"default": "\"css`\\n\\t\\t:host {\\n\\t\\t\\t--d2l-page-header-max-width: 1230px;\\n\\t\\t\\t--d2l-page-content-max-width: 1230px;\\n\\t\\t\\t--d2l-page-footer-max-width: 1230px;\\n\\t\\t\\t--d2l-page-margin-inline: auto;\\n\\t\\t}\\n\\n\\t\\t:host([width-type=\\\"wide\\\"]) {\\n\\t\\t\\t--d2l-page-header-max-width: 1440px;\\n\\t\\t\\t--d2l-page-content-max-width: 1440px;\\n\\t\\t\\t--d2l-page-footer-max-width: 1440px;\\n\\t\\t}\\n\\n\\t\\t:host([width-type=\\\"fullscreen\\\"]) {\\n\\t\\t\\t--d2l-page-header-max-width: 100%;\\n\\t\\t\\t--d2l-page-content-max-width: 100%;\\n\\t\\t\\t--d2l-page-footer-max-width: 100%;\\n\\t\\t}\\n\\n\\t\\t.page.header-sticky .header {\\n\\t\\t\\tposition: sticky;\\n\\t\\t\\ttop: 0;\\n\\t\\t\\tz-index: 15; /* To be over sticky content of our core components */\\n\\t\\t}\\n\\n\\t\\t.content {\\n\\t\\t\\tdisplay: flex;\\n\\t\\t\\tmargin-inline: var(--d2l-page-margin-inline, 0);\\n\\t\\t\\tmax-width: var(--d2l-page-content-max-width, 100%);\\n\\t\\t\\tpadding-bottom: var(--d2l-page-footer-height, 0); /* Reserve space for fixed footer */\\n\\t\\t}\\n\\n\\t\\tmain {\\n\\t\\t\\tflex: 1;\\n\\t\\t\\tmin-width: min(400px, 100%); /* Actual min width TBD */\\n\\t\\t}\\n\\n\\t\\t.side-nav-panel,\\n\\t\\t.supporting-panel {\\n\\t\\t\\theight: calc(100vh - var(--d2l-page-header-height, 0) - var(--d2l-page-footer-height, 0));\\n\\t\\t\\toverflow: clip auto;\\n\\t\\t\\tposition: sticky;\\n\\t\\t\\ttop: var(--d2l-page-header-height, 0);\\n\\t\\t}\\n\\n\\t\\t.divider {\\n\\t\\t\\tbackground-color: var(--d2l-color-gypsum);\\n\\t\\t\\tflex: none;\\n\\t\\t\\twidth: 4px;\\n\\t\\t}\\n\\n\\t\\t.footer:not([hidden]),\\n\\t\\t.floating-buttons-container {\\n\\t\\t\\tdisplay: inline;\\n\\t\\t}\\n\\t\\t.fixed-footer {\\n\\t\\t\\tbackground-color: white;\\n\\t\\t\\tbox-shadow: 0 -2px 4px rgba(32, 33, 34, 0.2); /* ferrite */\\n\\t\\t\\tinset: auto 0 0;\\n\\t\\t\\tpadding: 0.75rem 0;\\n\\t\\t\\tposition: fixed;\\n\\t\\t\\tz-index: 10; /* To be over sticky content of our core components */\\n\\t\\t}\\n\\t\\t.footer-contents {\\n\\t\\t\\tmargin-inline: var(--d2l-page-margin-inline, 0);\\n\\t\\t\\tmax-width: var(--d2l-page-footer-max-width, 100%);\\n\\t\\t}\\n\\t`\""
|
|
12327
|
+
},
|
|
12328
|
+
{
|
|
12329
|
+
"name": "widthType",
|
|
12330
|
+
"type": "string",
|
|
12331
|
+
"default": "\"normal\""
|
|
12332
|
+
}
|
|
12333
|
+
],
|
|
12334
|
+
"slots": [
|
|
12335
|
+
{
|
|
12336
|
+
"name": "",
|
|
12337
|
+
"description": "The main content of the page (expecting d2l-page-main)"
|
|
12338
|
+
},
|
|
12339
|
+
{
|
|
12340
|
+
"name": "header",
|
|
12341
|
+
"description": "The header content of the page (expecting d2l-page-header-*)"
|
|
12342
|
+
},
|
|
12343
|
+
{
|
|
12344
|
+
"name": "side-nav",
|
|
12345
|
+
"description": "The side navigation content of the page (expecting d2l-page-side-nav)"
|
|
12346
|
+
},
|
|
12347
|
+
{
|
|
12348
|
+
"name": "supporting",
|
|
12349
|
+
"description": "The supporting content of the page (expecting d2l-page-supporting)"
|
|
12350
|
+
},
|
|
12351
|
+
{
|
|
12352
|
+
"name": "footer",
|
|
12353
|
+
"description": "The footer content of the page (expecting d2l-page-footer)"
|
|
12354
|
+
}
|
|
12355
|
+
]
|
|
12356
|
+
},
|
|
12266
12357
|
{
|
|
12267
12358
|
"name": "d2l-pager-load-more",
|
|
12268
12359
|
"path": "./components/paging/pager-load-more.js",
|
package/lang/ar.js
CHANGED
|
@@ -152,6 +152,8 @@ export default {
|
|
|
152
152
|
"components.more-less.more": "المزيد",
|
|
153
153
|
"components.object-property-list.item-placeholder-text": "عنصر نائب",
|
|
154
154
|
"components.overflow-group.moreActions": "مزيد من الإجراءات",
|
|
155
|
+
"components.page.header-nav-label": "Main",
|
|
156
|
+
"components.page.side-nav-label": "Side",
|
|
155
157
|
"components.pageable.info":
|
|
156
158
|
`{count, plural,
|
|
157
159
|
one {{countFormatted} مادة واحد}
|
package/lang/ca.js
CHANGED
|
@@ -152,6 +152,8 @@ export default {
|
|
|
152
152
|
"components.more-less.more": "more",
|
|
153
153
|
"components.object-property-list.item-placeholder-text": "Placeholder Item",
|
|
154
154
|
"components.overflow-group.moreActions": "More Actions",
|
|
155
|
+
"components.page.header-nav-label": "Main",
|
|
156
|
+
"components.page.side-nav-label": "Side",
|
|
155
157
|
"components.pageable.info":
|
|
156
158
|
`{count, plural,
|
|
157
159
|
one {{countFormatted} item}
|
package/lang/cy.js
CHANGED
|
@@ -152,6 +152,8 @@ export default {
|
|
|
152
152
|
"components.more-less.more": "mwy",
|
|
153
153
|
"components.object-property-list.item-placeholder-text": "Eitem Dalfan",
|
|
154
154
|
"components.overflow-group.moreActions": "Rhagor o Gamau Gweithredu",
|
|
155
|
+
"components.page.header-nav-label": "Main",
|
|
156
|
+
"components.page.side-nav-label": "Side",
|
|
155
157
|
"components.pageable.info":
|
|
156
158
|
`{count, plural,
|
|
157
159
|
one {{countFormatted} eitem}
|
package/lang/da.js
CHANGED
|
@@ -152,6 +152,8 @@ export default {
|
|
|
152
152
|
"components.more-less.more": "flere",
|
|
153
153
|
"components.object-property-list.item-placeholder-text": "Pladsholder-element",
|
|
154
154
|
"components.overflow-group.moreActions": "Flere handlinger",
|
|
155
|
+
"components.page.header-nav-label": "Main",
|
|
156
|
+
"components.page.side-nav-label": "Side",
|
|
155
157
|
"components.pageable.info":
|
|
156
158
|
`{count, plural,
|
|
157
159
|
one {{countFormatted} element}
|
package/lang/de.js
CHANGED
|
@@ -152,6 +152,8 @@ export default {
|
|
|
152
152
|
"components.more-less.more": "mehr",
|
|
153
153
|
"components.object-property-list.item-placeholder-text": "Platzhalterelement",
|
|
154
154
|
"components.overflow-group.moreActions": "Weitere Aktionen",
|
|
155
|
+
"components.page.header-nav-label": "Main",
|
|
156
|
+
"components.page.side-nav-label": "Side",
|
|
155
157
|
"components.pageable.info":
|
|
156
158
|
`{count, plural,
|
|
157
159
|
one {{countFormatted} Element}
|
package/lang/en-gb.js
CHANGED
|
@@ -152,6 +152,8 @@ export default {
|
|
|
152
152
|
"components.more-less.more": "more",
|
|
153
153
|
"components.object-property-list.item-placeholder-text": "Placeholder Item",
|
|
154
154
|
"components.overflow-group.moreActions": "More Actions",
|
|
155
|
+
"components.page.header-nav-label": "Main",
|
|
156
|
+
"components.page.side-nav-label": "Side",
|
|
155
157
|
"components.pageable.info":
|
|
156
158
|
`{count, plural,
|
|
157
159
|
one {{countFormatted} item}
|
package/lang/en.js
CHANGED
|
@@ -152,6 +152,8 @@ export default {
|
|
|
152
152
|
"components.more-less.more": "more",
|
|
153
153
|
"components.object-property-list.item-placeholder-text": "Placeholder Item",
|
|
154
154
|
"components.overflow-group.moreActions": "More Actions",
|
|
155
|
+
"components.page.header-nav-label": "Main",
|
|
156
|
+
"components.page.side-nav-label": "Side",
|
|
155
157
|
"components.pageable.info":
|
|
156
158
|
`{count, plural,
|
|
157
159
|
one {{countFormatted} item}
|
package/lang/es-es.js
CHANGED
|
@@ -152,6 +152,8 @@ export default {
|
|
|
152
152
|
"components.more-less.more": "más",
|
|
153
153
|
"components.object-property-list.item-placeholder-text": "Elemento de marcador de posición",
|
|
154
154
|
"components.overflow-group.moreActions": "Más acciones",
|
|
155
|
+
"components.page.header-nav-label": "Main",
|
|
156
|
+
"components.page.side-nav-label": "Side",
|
|
155
157
|
"components.pageable.info":
|
|
156
158
|
`{count, plural,
|
|
157
159
|
one {{countFormatted} elemento}
|
package/lang/es.js
CHANGED
|
@@ -152,6 +152,8 @@ export default {
|
|
|
152
152
|
"components.more-less.more": "más",
|
|
153
153
|
"components.object-property-list.item-placeholder-text": "Elemento de marcador de posición",
|
|
154
154
|
"components.overflow-group.moreActions": "Más acciones",
|
|
155
|
+
"components.page.header-nav-label": "Main",
|
|
156
|
+
"components.page.side-nav-label": "Side",
|
|
155
157
|
"components.pageable.info":
|
|
156
158
|
`{count, plural,
|
|
157
159
|
one {{countFormatted} elemento}
|
package/lang/fr-fr.js
CHANGED
|
@@ -152,6 +152,8 @@ export default {
|
|
|
152
152
|
"components.more-less.more": "plus",
|
|
153
153
|
"components.object-property-list.item-placeholder-text": "Élément d’espace réservé",
|
|
154
154
|
"components.overflow-group.moreActions": "Plus d’actions",
|
|
155
|
+
"components.page.header-nav-label": "Main",
|
|
156
|
+
"components.page.side-nav-label": "Side",
|
|
155
157
|
"components.pageable.info":
|
|
156
158
|
`{count, plural,
|
|
157
159
|
one {{countFormatted} élément}
|
package/lang/fr.js
CHANGED
|
@@ -152,6 +152,8 @@ export default {
|
|
|
152
152
|
"components.more-less.more": "plus",
|
|
153
153
|
"components.object-property-list.item-placeholder-text": "Élément de paramètre fictif",
|
|
154
154
|
"components.overflow-group.moreActions": "Plus d’actions",
|
|
155
|
+
"components.page.header-nav-label": "Main",
|
|
156
|
+
"components.page.side-nav-label": "Side",
|
|
155
157
|
"components.pageable.info":
|
|
156
158
|
`{count, plural,
|
|
157
159
|
one {{countFormatted} élément}
|
package/lang/haw.js
CHANGED
|
@@ -152,6 +152,8 @@ export default {
|
|
|
152
152
|
"components.more-less.more": "hou aku",
|
|
153
153
|
"components.object-property-list.item-placeholder-text": "Mea Paʻa Wahi",
|
|
154
154
|
"components.overflow-group.moreActions": "Nā Hana Hou",
|
|
155
|
+
"components.page.header-nav-label": "Main",
|
|
156
|
+
"components.page.side-nav-label": "Side",
|
|
155
157
|
"components.pageable.info":
|
|
156
158
|
`{count, plural,
|
|
157
159
|
one {{countFormatted} mea}
|
package/lang/hi.js
CHANGED
|
@@ -152,6 +152,8 @@ export default {
|
|
|
152
152
|
"components.more-less.more": "अधिक",
|
|
153
153
|
"components.object-property-list.item-placeholder-text": "प्लेसहोल्डर आइटम",
|
|
154
154
|
"components.overflow-group.moreActions": "अधिक क्रियाएँ",
|
|
155
|
+
"components.page.header-nav-label": "Main",
|
|
156
|
+
"components.page.side-nav-label": "Side",
|
|
155
157
|
"components.pageable.info":
|
|
156
158
|
`{count, plural,
|
|
157
159
|
one {{countFormatted} आइटम}
|
package/lang/ja.js
CHANGED
|
@@ -147,6 +147,8 @@ export default {
|
|
|
147
147
|
"components.more-less.more": "増やす",
|
|
148
148
|
"components.object-property-list.item-placeholder-text": "プレースホルダの項目",
|
|
149
149
|
"components.overflow-group.moreActions": "その他のアクション",
|
|
150
|
+
"components.page.header-nav-label": "Main",
|
|
151
|
+
"components.page.side-nav-label": "Side",
|
|
150
152
|
"components.pageable.info":
|
|
151
153
|
`{count, plural,
|
|
152
154
|
other {{countFormatted} 個の項目}
|
package/lang/ko.js
CHANGED
|
@@ -147,6 +147,8 @@ export default {
|
|
|
147
147
|
"components.more-less.more": "더 보기",
|
|
148
148
|
"components.object-property-list.item-placeholder-text": "자리표시자 항목",
|
|
149
149
|
"components.overflow-group.moreActions": "추가 작업",
|
|
150
|
+
"components.page.header-nav-label": "Main",
|
|
151
|
+
"components.page.side-nav-label": "Side",
|
|
150
152
|
"components.pageable.info":
|
|
151
153
|
`{count, plural,
|
|
152
154
|
other {해당 항목 수 {countFormatted}개}
|
package/lang/mi.js
CHANGED
|
@@ -152,6 +152,8 @@ export default {
|
|
|
152
152
|
"components.more-less.more": "ētahi atu",
|
|
153
153
|
"components.object-property-list.item-placeholder-text": "Tūemi Puriwāhi",
|
|
154
154
|
"components.overflow-group.moreActions": "Ētahi atu Hohenga",
|
|
155
|
+
"components.page.header-nav-label": "Main",
|
|
156
|
+
"components.page.side-nav-label": "Side",
|
|
155
157
|
"components.pageable.info":
|
|
156
158
|
`{count, plural,
|
|
157
159
|
one {{countFormatted} Tūemi}
|
package/lang/nl.js
CHANGED
|
@@ -152,6 +152,8 @@ export default {
|
|
|
152
152
|
"components.more-less.more": "meer",
|
|
153
153
|
"components.object-property-list.item-placeholder-text": "Item tijdelijke aanduiding",
|
|
154
154
|
"components.overflow-group.moreActions": "Meer acties",
|
|
155
|
+
"components.page.header-nav-label": "Main",
|
|
156
|
+
"components.page.side-nav-label": "Side",
|
|
155
157
|
"components.pageable.info":
|
|
156
158
|
`{count, plural,
|
|
157
159
|
one {{countFormatted} item}
|
package/lang/pt.js
CHANGED
|
@@ -152,6 +152,8 @@ export default {
|
|
|
152
152
|
"components.more-less.more": "mais",
|
|
153
153
|
"components.object-property-list.item-placeholder-text": "Item de espaço reservado",
|
|
154
154
|
"components.overflow-group.moreActions": "Mais ações",
|
|
155
|
+
"components.page.header-nav-label": "Main",
|
|
156
|
+
"components.page.side-nav-label": "Side",
|
|
155
157
|
"components.pageable.info":
|
|
156
158
|
`{count, plural,
|
|
157
159
|
one {{countFormatted} item}
|
package/lang/sv.js
CHANGED
|
@@ -152,6 +152,8 @@ export default {
|
|
|
152
152
|
"components.more-less.more": "mer",
|
|
153
153
|
"components.object-property-list.item-placeholder-text": "Platshållarobjekt",
|
|
154
154
|
"components.overflow-group.moreActions": "Fler åtgärder",
|
|
155
|
+
"components.page.header-nav-label": "Main",
|
|
156
|
+
"components.page.side-nav-label": "Side",
|
|
155
157
|
"components.pageable.info":
|
|
156
158
|
`{count, plural,
|
|
157
159
|
one {{countFormatted} objekt}
|
package/lang/th.js
CHANGED
|
@@ -148,6 +148,8 @@ export default {
|
|
|
148
148
|
"components.more-less.more": "เพิ่มเติม",
|
|
149
149
|
"components.object-property-list.item-placeholder-text": "รายการตัวแทน",
|
|
150
150
|
"components.overflow-group.moreActions": "การดำเนินการเพิ่มเติม",
|
|
151
|
+
"components.page.header-nav-label": "Main",
|
|
152
|
+
"components.page.side-nav-label": "Side",
|
|
151
153
|
"components.pageable.info":
|
|
152
154
|
`{count, plural,
|
|
153
155
|
other {{countFormatted} รายการ}
|
package/lang/tr.js
CHANGED
|
@@ -152,6 +152,8 @@ export default {
|
|
|
152
152
|
"components.more-less.more": "daha fazla",
|
|
153
153
|
"components.object-property-list.item-placeholder-text": "Yer Tutucu Öğesi",
|
|
154
154
|
"components.overflow-group.moreActions": "Daha Fazla Eylem",
|
|
155
|
+
"components.page.header-nav-label": "Main",
|
|
156
|
+
"components.page.side-nav-label": "Side",
|
|
155
157
|
"components.pageable.info":
|
|
156
158
|
`{count, plural,
|
|
157
159
|
one {{countFormatted} öğe}
|
package/lang/vi.js
CHANGED
|
@@ -146,6 +146,8 @@ export default {
|
|
|
146
146
|
"components.more-less.more": "thêm",
|
|
147
147
|
"components.object-property-list.item-placeholder-text": "Mục giữ chỗ",
|
|
148
148
|
"components.overflow-group.moreActions": "Thêm các Tác vụ",
|
|
149
|
+
"components.page.header-nav-label": "Main",
|
|
150
|
+
"components.page.side-nav-label": "Side",
|
|
149
151
|
"components.pageable.info":
|
|
150
152
|
`{count, plural,
|
|
151
153
|
other {{countFormatted} mục}
|
package/lang/zh-cn.js
CHANGED
|
@@ -147,6 +147,8 @@ export default {
|
|
|
147
147
|
"components.more-less.more": "更多",
|
|
148
148
|
"components.object-property-list.item-placeholder-text": "占位符项目",
|
|
149
149
|
"components.overflow-group.moreActions": "更多操作",
|
|
150
|
+
"components.page.header-nav-label": "Main",
|
|
151
|
+
"components.page.side-nav-label": "Side",
|
|
150
152
|
"components.pageable.info":
|
|
151
153
|
`{count, plural,
|
|
152
154
|
other {{countFormatted} 项}
|
package/lang/zh-tw.js
CHANGED
|
@@ -148,6 +148,8 @@ export default {
|
|
|
148
148
|
"components.more-less.more": "較多",
|
|
149
149
|
"components.object-property-list.item-placeholder-text": "預留位置項目",
|
|
150
150
|
"components.overflow-group.moreActions": "其他動作",
|
|
151
|
+
"components.page.header-nav-label": "Main",
|
|
152
|
+
"components.page.side-nav-label": "Side",
|
|
151
153
|
"components.pageable.info":
|
|
152
154
|
`{count, plural,
|
|
153
155
|
other {{countFormatted} 個項目}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.241.0",
|
|
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",
|