@brightspace-ui/core 2.61.0 → 2.63.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/demo/code-view.js +1 -1
- package/components/html-block/demo/html-block.html +5 -1
- package/helpers/mathjax.js +60 -46
- package/lang/ar.js +1 -1
- package/lang/cy.js +1 -1
- package/lang/da.js +1 -1
- package/lang/de.js +1 -1
- package/lang/es-es.js +1 -1
- package/lang/es.js +1 -1
- package/lang/fr-fr.js +1 -1
- package/lang/fr.js +1 -1
- package/lang/hi.js +1 -1
- package/lang/ja.js +1 -1
- package/lang/ko.js +1 -1
- package/lang/nl.js +1 -1
- package/lang/pt.js +1 -1
- package/lang/sv.js +1 -1
- package/lang/tr.js +1 -1
- package/lang/zh-cn.js +1 -1
- package/lang/zh-tw.js +1 -1
- package/package.json +11 -4
|
@@ -30,7 +30,7 @@ class CodeView extends LitElement {
|
|
|
30
30
|
if (Prism.languages[language]) {
|
|
31
31
|
this._dependenciesPromise = Promise.resolve();
|
|
32
32
|
} else {
|
|
33
|
-
this._dependenciesPromise = import(
|
|
33
|
+
this._dependenciesPromise = import(`../../node_modules/prismjs/components/prism-${language}.min.js`);
|
|
34
34
|
}
|
|
35
35
|
if (this.shadowRoot) this._updateCode(this.shadowRoot.querySelector('slot'));
|
|
36
36
|
super.attributeChangedCallback(name, oldval, newval);
|
|
@@ -39,7 +39,11 @@
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
// demo replacement renderer for html-block
|
|
42
|
-
provideInstance(document, 'html-block-
|
|
42
|
+
provideInstance(document, 'html-block-renderer-loader', {
|
|
43
|
+
async getRenderers() {
|
|
44
|
+
return [ new DemoReplacementRenderer() ];
|
|
45
|
+
}
|
|
46
|
+
});
|
|
43
47
|
|
|
44
48
|
</script>
|
|
45
49
|
<script type="module">
|
package/helpers/mathjax.js
CHANGED
|
@@ -30,9 +30,6 @@ const mathjaxFontMappings = new Map([
|
|
|
30
30
|
['MJXTEX-VB', 'MathJax_Vector-Bold']
|
|
31
31
|
]);
|
|
32
32
|
|
|
33
|
-
let mathJaxLoaded;
|
|
34
|
-
let renderingPromise = Promise.resolve();
|
|
35
|
-
|
|
36
33
|
class HtmlBlockMathRenderer {
|
|
37
34
|
|
|
38
35
|
get contextAttributes() {
|
|
@@ -45,34 +42,13 @@ class HtmlBlockMathRenderer {
|
|
|
45
42
|
if (contextVal === undefined) return elem;
|
|
46
43
|
|
|
47
44
|
const context = JSON.parse(contextVal) || {};
|
|
48
|
-
const isLatexSupported = context.renderLatex;
|
|
49
|
-
|
|
50
|
-
if (!elem.querySelector('math') && !(isLatexSupported && /\$\$|\\\(|\\\[|\\begin{|\\ref{|\\eqref{/.test(elem.innerHTML))) return elem;
|
|
51
45
|
|
|
52
|
-
|
|
46
|
+
await typesetMath(elem, {
|
|
53
47
|
deferTypeset: true,
|
|
54
|
-
renderLatex:
|
|
55
|
-
outputScale: context.outputScale || 1
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
await loadMathJax(mathJaxConfig);
|
|
59
|
-
|
|
60
|
-
// MathJax 3 does not support newlines, but it does persist styles, so add custom styles to mimic a linebreak
|
|
61
|
-
// This work-around should be removed when linebreaks are natively supported.
|
|
62
|
-
// MathJax issue: https://github.com/mathjax/MathJax/issues/2312
|
|
63
|
-
// A duplicate that explains our exact issue: https://github.com/mathjax/MathJax/issues/2495
|
|
64
|
-
elem.querySelectorAll('mspace[linebreak="newline"]').forEach(elm => {
|
|
65
|
-
elm.style.display = 'block';
|
|
66
|
-
elm.style.height = '0.5rem';
|
|
48
|
+
renderLatex: context.renderLatex,
|
|
49
|
+
outputScale: context.outputScale || 1,
|
|
50
|
+
window: window
|
|
67
51
|
});
|
|
68
|
-
|
|
69
|
-
// If we're using deferred rendering, we need to create a document structure
|
|
70
|
-
// within the element so MathJax can appropriately process math.
|
|
71
|
-
if (!options.noDeferredRendering) elem.innerHTML = `<mjx-doc><mjx-head></mjx-head><mjx-body>${elem.innerHTML}</mjx-body></mjx-doc>`;
|
|
72
|
-
|
|
73
|
-
await window.MathJax.startup.promise;
|
|
74
|
-
renderingPromise = renderingPromise.then(() => window.MathJax.typesetShadow(elem.getRootNode(), elem));
|
|
75
|
-
await renderingPromise;
|
|
76
52
|
}
|
|
77
53
|
|
|
78
54
|
}
|
|
@@ -83,9 +59,12 @@ export function createHtmlBlockRenderer() {
|
|
|
83
59
|
|
|
84
60
|
export function loadMathJax(mathJaxConfig) {
|
|
85
61
|
|
|
86
|
-
|
|
62
|
+
const win = (mathJaxConfig && mathJaxConfig.window) || window;
|
|
87
63
|
|
|
88
|
-
|
|
64
|
+
win.D2L = win.D2L || {};
|
|
65
|
+
if (win.D2L.mathJaxLoaded) return win.D2L.mathJaxLoaded;
|
|
66
|
+
|
|
67
|
+
win.MathJax = {
|
|
89
68
|
chtml: {
|
|
90
69
|
adaptiveCSS: false,
|
|
91
70
|
scale: (mathJaxConfig && mathJaxConfig.outputScale) || 1
|
|
@@ -110,11 +89,11 @@ export function loadMathJax(mathJaxConfig) {
|
|
|
110
89
|
// just an example and so we use an expedient method of
|
|
111
90
|
// accessing these for now.)
|
|
112
91
|
//
|
|
113
|
-
const mathjax =
|
|
114
|
-
const HTMLAdaptor =
|
|
115
|
-
const HTMLHandler =
|
|
116
|
-
const AbstractHandler =
|
|
117
|
-
const startup =
|
|
92
|
+
const mathjax = win.MathJax._.mathjax.mathjax;
|
|
93
|
+
const HTMLAdaptor = win.MathJax._.adaptors.HTMLAdaptor.HTMLAdaptor;
|
|
94
|
+
const HTMLHandler = win.MathJax._.handlers.html.HTMLHandler.HTMLHandler;
|
|
95
|
+
const AbstractHandler = win.MathJax._.core.Handler.AbstractHandler.prototype;
|
|
96
|
+
const startup = win.MathJax.startup;
|
|
118
97
|
|
|
119
98
|
const getFirstChild = doc => {
|
|
120
99
|
const child = doc.firstChild;
|
|
@@ -155,7 +134,7 @@ export function loadMathJax(mathJaxConfig) {
|
|
|
155
134
|
const adaptor = this.adaptor;
|
|
156
135
|
if (typeof(document) === 'string') {
|
|
157
136
|
document = adaptor.parse(document, 'text/html');
|
|
158
|
-
} else if ((document instanceof adaptor.window.HTMLElement || document instanceof adaptor.window.DocumentFragment) && !(document instanceof
|
|
137
|
+
} else if ((document instanceof adaptor.window.HTMLElement || document instanceof adaptor.window.DocumentFragment) && !(document instanceof win.ShadowRoot)) {
|
|
159
138
|
const child = document;
|
|
160
139
|
document = adaptor.parse('', 'text/html');
|
|
161
140
|
adaptor.append(adaptor.body(document), child);
|
|
@@ -173,7 +152,7 @@ export function loadMathJax(mathJaxConfig) {
|
|
|
173
152
|
// Register the new handler and adaptor
|
|
174
153
|
//
|
|
175
154
|
startup.registerConstructor('HTMLHandler', ShadowHandler);
|
|
176
|
-
startup.registerConstructor('browserAdaptor', () => new ShadowAdaptor(
|
|
155
|
+
startup.registerConstructor('browserAdaptor', () => new ShadowAdaptor(win));
|
|
177
156
|
|
|
178
157
|
//
|
|
179
158
|
// A service function that creates a new MathDocument from the
|
|
@@ -181,7 +160,7 @@ export function loadMathJax(mathJaxConfig) {
|
|
|
181
160
|
// renders the document. The MathDocument is returned in case
|
|
182
161
|
// you need to rerender the shadowRoot later.
|
|
183
162
|
//
|
|
184
|
-
|
|
163
|
+
win.MathJax.typesetShadow = async function(root, elem) {
|
|
185
164
|
const InputJax = startup.getInputJax();
|
|
186
165
|
const OutputJax = startup.getOutputJax();
|
|
187
166
|
const html = mathjax.document(root, { InputJax, OutputJax });
|
|
@@ -195,15 +174,15 @@ export function loadMathJax(mathJaxConfig) {
|
|
|
195
174
|
//
|
|
196
175
|
// Now do the usual startup now that the extensions are in place
|
|
197
176
|
//
|
|
198
|
-
|
|
177
|
+
win.MathJax.startup.defaultReady();
|
|
199
178
|
},
|
|
200
179
|
// Defer typesetting if the config is present and deferring is set
|
|
201
180
|
typeset: !(mathJaxConfig && mathJaxConfig.deferTypeset)
|
|
202
181
|
}
|
|
203
182
|
};
|
|
204
183
|
|
|
205
|
-
if (mathJaxConfig && mathJaxConfig.deferTypeset && !document.head.querySelector('#d2l-mathjax-fonts') && !document.head.querySelector('#MJX-CHTML-styles')) {
|
|
206
|
-
const styleElem = document.createElement('style');
|
|
184
|
+
if (mathJaxConfig && mathJaxConfig.deferTypeset && !win.document.head.querySelector('#d2l-mathjax-fonts') && !win.document.head.querySelector('#MJX-CHTML-styles')) {
|
|
185
|
+
const styleElem = win.document.createElement('style');
|
|
207
186
|
styleElem.id = 'd2l-mathjax-fonts';
|
|
208
187
|
|
|
209
188
|
let fontImportStyles = '';
|
|
@@ -216,11 +195,11 @@ export function loadMathJax(mathJaxConfig) {
|
|
|
216
195
|
});
|
|
217
196
|
|
|
218
197
|
styleElem.textContent = fontImportStyles;
|
|
219
|
-
document.head.appendChild(styleElem);
|
|
198
|
+
win.document.head.appendChild(styleElem);
|
|
220
199
|
}
|
|
221
200
|
|
|
222
|
-
mathJaxLoaded = new Promise(resolve => {
|
|
223
|
-
const script = document.createElement('script');
|
|
201
|
+
win.D2L.mathJaxLoaded = new Promise(resolve => {
|
|
202
|
+
const script = win.document.createElement('script');
|
|
224
203
|
script.async = 'async';
|
|
225
204
|
script.onload = resolve;
|
|
226
205
|
|
|
@@ -229,9 +208,44 @@ export function loadMathJax(mathJaxConfig) {
|
|
|
229
208
|
: 'mml-chtml';
|
|
230
209
|
|
|
231
210
|
script.src = `${mathjaxBaseUrl}/${component}.js`;
|
|
232
|
-
document.head.appendChild(script);
|
|
211
|
+
win.document.head.appendChild(script);
|
|
212
|
+
});
|
|
213
|
+
|
|
214
|
+
return win.D2L.mathJaxLoaded;
|
|
215
|
+
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
export async function typesetMath(elem, options) {
|
|
219
|
+
if (!elem.querySelector('math') && !(options.renderLatex && /\$\$|\\\(|\\\[|\\begin{|\\ref{|\\eqref{/.test(elem.innerHTML))) return elem;
|
|
220
|
+
|
|
221
|
+
const win = options.window;
|
|
222
|
+
|
|
223
|
+
const mathJaxConfig = {
|
|
224
|
+
deferTypeset: options.deferTypeset,
|
|
225
|
+
renderLatex: options.renderLatex,
|
|
226
|
+
outputScale: options.outputScale || 1,
|
|
227
|
+
window: win
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
await loadMathJax(mathJaxConfig);
|
|
231
|
+
|
|
232
|
+
// MathJax 3 does not support newlines, but it does persist styles, so add custom styles to mimic a linebreak
|
|
233
|
+
// This work-around should be removed when linebreaks are natively supported.
|
|
234
|
+
// MathJax issue: https://github.com/mathjax/MathJax/issues/2312
|
|
235
|
+
// A duplicate that explains our exact issue: https://github.com/mathjax/MathJax/issues/2495
|
|
236
|
+
elem.querySelectorAll('mspace[linebreak="newline"]').forEach(elm => {
|
|
237
|
+
elm.style.display = 'block';
|
|
238
|
+
elm.style.height = '0.5rem';
|
|
233
239
|
});
|
|
234
240
|
|
|
235
|
-
|
|
241
|
+
// If we're using deferred rendering, we need to create a document structure
|
|
242
|
+
// within the element so MathJax can appropriately process math.
|
|
243
|
+
if (!options.noDeferredRendering) elem.innerHTML = `<mjx-doc><mjx-head></mjx-head><mjx-body>${elem.innerHTML}</mjx-body></mjx-doc>`;
|
|
244
|
+
|
|
245
|
+
await win.MathJax.startup.promise;
|
|
246
|
+
win.D2L = win.D2L || {};
|
|
236
247
|
|
|
248
|
+
if (!win.D2L.renderingPromise) win.D2L.renderingPromise = Promise.resolve();
|
|
249
|
+
win.D2L.renderingPromise = win.D2L.renderingPromise.then(() => win.MathJax.typesetShadow(elem.getRootNode(), elem));
|
|
250
|
+
await win.D2L.renderingPromise;
|
|
237
251
|
}
|
package/lang/ar.js
CHANGED
|
@@ -90,7 +90,7 @@ export default {
|
|
|
90
90
|
"components.meter-mixin.progressIndicator": "مؤشر التقدم",
|
|
91
91
|
"components.more-less.less": "أقل",
|
|
92
92
|
"components.more-less.more": "المزيد",
|
|
93
|
-
"components.object-property-list.item-placeholder-text": "
|
|
93
|
+
"components.object-property-list.item-placeholder-text": "عنصر نائب",
|
|
94
94
|
"components.overflow-group.moreActions": "مزيد من الإجراءات",
|
|
95
95
|
"components.pager-load-more.action": "تحميل {count} إضافي",
|
|
96
96
|
"components.pager-load-more.info": "{totalCount, plural, one {{showingCount} من أصل {totalCountFormatted} من العناصر} other {{showingCount} من أصل {totalCountFormatted} من العناصر}}",
|
package/lang/cy.js
CHANGED
|
@@ -90,7 +90,7 @@ export default {
|
|
|
90
90
|
"components.meter-mixin.progressIndicator": "Dangosydd Cynnydd",
|
|
91
91
|
"components.more-less.less": "llai",
|
|
92
92
|
"components.more-less.more": "mwy",
|
|
93
|
-
"components.object-property-list.item-placeholder-text": "
|
|
93
|
+
"components.object-property-list.item-placeholder-text": "Eitem Dalfan",
|
|
94
94
|
"components.overflow-group.moreActions": "Rhagor o Gamau Gweithredu",
|
|
95
95
|
"components.pager-load-more.action": "Lwytho {count} Arall",
|
|
96
96
|
"components.pager-load-more.info": "{totalCount, plural, one {{showingCount} o {totalCountFormatted} eitem} other {{showingCount} o {totalCountFormatted} eitem}}",
|
package/lang/da.js
CHANGED
|
@@ -90,7 +90,7 @@ export default {
|
|
|
90
90
|
"components.meter-mixin.progressIndicator": "Statusindikator",
|
|
91
91
|
"components.more-less.less": "færre",
|
|
92
92
|
"components.more-less.more": "flere",
|
|
93
|
-
"components.object-property-list.item-placeholder-text": "
|
|
93
|
+
"components.object-property-list.item-placeholder-text": "Pladsholder-element",
|
|
94
94
|
"components.overflow-group.moreActions": "Flere handlinger",
|
|
95
95
|
"components.pager-load-more.action": "Indlæs {count} mere",
|
|
96
96
|
"components.pager-load-more.info": "{totalCount, plural, one {{showingCount} af {totalCountFormatted} element} other {{showingCount} af {totalCountFormatted} elementer}}",
|
package/lang/de.js
CHANGED
|
@@ -90,7 +90,7 @@ export default {
|
|
|
90
90
|
"components.meter-mixin.progressIndicator": "Fortschrittsanzeige",
|
|
91
91
|
"components.more-less.less": "Weniger",
|
|
92
92
|
"components.more-less.more": "mehr",
|
|
93
|
-
"components.object-property-list.item-placeholder-text": "
|
|
93
|
+
"components.object-property-list.item-placeholder-text": "Platzhalterelement",
|
|
94
94
|
"components.overflow-group.moreActions": "Weitere Aktionen",
|
|
95
95
|
"components.pager-load-more.action": "{count} weitere laden",
|
|
96
96
|
"components.pager-load-more.info": "{totalCount, plural, one {{showingCount} von {totalCountFormatted} Element} other {{showingCount} von {totalCountFormatted} Elementen}}",
|
package/lang/es-es.js
CHANGED
|
@@ -90,7 +90,7 @@ export default {
|
|
|
90
90
|
"components.meter-mixin.progressIndicator": "Indicador de progreso",
|
|
91
91
|
"components.more-less.less": "menos",
|
|
92
92
|
"components.more-less.more": "más",
|
|
93
|
-
"components.object-property-list.item-placeholder-text": "
|
|
93
|
+
"components.object-property-list.item-placeholder-text": "Elemento de marcador de posición",
|
|
94
94
|
"components.overflow-group.moreActions": "Más acciones",
|
|
95
95
|
"components.pager-load-more.action": "Cargar {count} más",
|
|
96
96
|
"components.pager-load-more.info": "{totalCount, plural, one {{showingCount} de {totalCountFormatted} elemento} other {{showingCount} de {totalCountFormatted} elemento}}",
|
package/lang/es.js
CHANGED
|
@@ -90,7 +90,7 @@ export default {
|
|
|
90
90
|
"components.meter-mixin.progressIndicator": "Indicador de progreso",
|
|
91
91
|
"components.more-less.less": "menos",
|
|
92
92
|
"components.more-less.more": "más",
|
|
93
|
-
"components.object-property-list.item-placeholder-text": "
|
|
93
|
+
"components.object-property-list.item-placeholder-text": "Elemento de marcador de posición",
|
|
94
94
|
"components.overflow-group.moreActions": "Más acciones",
|
|
95
95
|
"components.pager-load-more.action": "Cargar {count} más",
|
|
96
96
|
"components.pager-load-more.info": "{totalCount, plural, one {{showingCount} de {totalCountFormatted} elemento} other {{showingCount} de {totalCountFormatted} elemento}}",
|
package/lang/fr-fr.js
CHANGED
|
@@ -90,7 +90,7 @@ export default {
|
|
|
90
90
|
"components.meter-mixin.progressIndicator": "Indicateur de progrès",
|
|
91
91
|
"components.more-less.less": "moins",
|
|
92
92
|
"components.more-less.more": "plus",
|
|
93
|
-
"components.object-property-list.item-placeholder-text": "
|
|
93
|
+
"components.object-property-list.item-placeholder-text": "Élément d’espace réservé",
|
|
94
94
|
"components.overflow-group.moreActions": "Plus d'actions",
|
|
95
95
|
"components.pager-load-more.action": "Charger {count} supplémentaire(s)",
|
|
96
96
|
"components.pager-load-more.info": "{totalCount, plural, one {{showingCount} sur {totalCountFormatted} élément} other {{showingCount} sur {totalCountFormatted} éléments}}",
|
package/lang/fr.js
CHANGED
|
@@ -90,7 +90,7 @@ export default {
|
|
|
90
90
|
"components.meter-mixin.progressIndicator": "Indicateur de progrès",
|
|
91
91
|
"components.more-less.less": "moins",
|
|
92
92
|
"components.more-less.more": "plus",
|
|
93
|
-
"components.object-property-list.item-placeholder-text": "
|
|
93
|
+
"components.object-property-list.item-placeholder-text": "Élément de paramètre fictif",
|
|
94
94
|
"components.overflow-group.moreActions": "Plus d'actions",
|
|
95
95
|
"components.pager-load-more.action": "Charger {count} de plus",
|
|
96
96
|
"components.pager-load-more.info": "{totalCount, plural, one {{showingCount} de {totalCountFormatted} élément} other {{showingCount} de {totalCountFormatted} éléments}}",
|
package/lang/hi.js
CHANGED
|
@@ -90,7 +90,7 @@ export default {
|
|
|
90
90
|
"components.meter-mixin.progressIndicator": "प्रगति संकेतक",
|
|
91
91
|
"components.more-less.less": "कम",
|
|
92
92
|
"components.more-less.more": "अधिक",
|
|
93
|
-
"components.object-property-list.item-placeholder-text": "
|
|
93
|
+
"components.object-property-list.item-placeholder-text": "प्लेसहोल्डर आइटम",
|
|
94
94
|
"components.overflow-group.moreActions": "अधिक क्रियाएँ",
|
|
95
95
|
"components.pager-load-more.action": "{count} और लोड करें",
|
|
96
96
|
"components.pager-load-more.info": "{totalCount, plural, one {{totalCountFormatted} में से {showingCount} आइटम} other {{totalCountFormatted} में से {showingCount} आइटम}}",
|
package/lang/ja.js
CHANGED
|
@@ -90,7 +90,7 @@ export default {
|
|
|
90
90
|
"components.meter-mixin.progressIndicator": "進捗状況インジケータ",
|
|
91
91
|
"components.more-less.less": "減らす",
|
|
92
92
|
"components.more-less.more": "増やす",
|
|
93
|
-
"components.object-property-list.item-placeholder-text": "
|
|
93
|
+
"components.object-property-list.item-placeholder-text": "プレースホルダの項目",
|
|
94
94
|
"components.overflow-group.moreActions": "その他のアクション",
|
|
95
95
|
"components.pager-load-more.action": "さらに {count} 件を読み込む",
|
|
96
96
|
"components.pager-load-more.info": "{totalCount, plural, other {{showingCount}/{totalCountFormatted} 個の項目}}",
|
package/lang/ko.js
CHANGED
|
@@ -90,7 +90,7 @@ export default {
|
|
|
90
90
|
"components.meter-mixin.progressIndicator": "진도 표시기",
|
|
91
91
|
"components.more-less.less": "축소",
|
|
92
92
|
"components.more-less.more": "더 보기",
|
|
93
|
-
"components.object-property-list.item-placeholder-text": "
|
|
93
|
+
"components.object-property-list.item-placeholder-text": "자리표시자 항목",
|
|
94
94
|
"components.overflow-group.moreActions": "추가 작업",
|
|
95
95
|
"components.pager-load-more.action": "{count}개 더 로드",
|
|
96
96
|
"components.pager-load-more.info": "{totalCount, plural, other {{totalCountFormatted}개 항목 중 {showingCount}개}}",
|
package/lang/nl.js
CHANGED
|
@@ -90,7 +90,7 @@ export default {
|
|
|
90
90
|
"components.meter-mixin.progressIndicator": "Voortgangsindicator",
|
|
91
91
|
"components.more-less.less": "minder",
|
|
92
92
|
"components.more-less.more": "meer",
|
|
93
|
-
"components.object-property-list.item-placeholder-text": "
|
|
93
|
+
"components.object-property-list.item-placeholder-text": "Item tijdelijke aanduiding",
|
|
94
94
|
"components.overflow-group.moreActions": "Meer acties",
|
|
95
95
|
"components.pager-load-more.action": "Laad nog {count} extra",
|
|
96
96
|
"components.pager-load-more.info": "{totalCount, plural, one {{showingCount} van {totalCountFormatted} artikel} other {{showingCount} van {totalCountFormatted} artikelen}}",
|
package/lang/pt.js
CHANGED
|
@@ -90,7 +90,7 @@ export default {
|
|
|
90
90
|
"components.meter-mixin.progressIndicator": "Indicador de progresso",
|
|
91
91
|
"components.more-less.less": "menos",
|
|
92
92
|
"components.more-less.more": "mais",
|
|
93
|
-
"components.object-property-list.item-placeholder-text": "
|
|
93
|
+
"components.object-property-list.item-placeholder-text": "Item de espaço reservado",
|
|
94
94
|
"components.overflow-group.moreActions": "Mais ações",
|
|
95
95
|
"components.pager-load-more.action": "Carregar mais {count}",
|
|
96
96
|
"components.pager-load-more.info": "{totalCount, plural, one {{showingCount} de {totalCountFormatted} item} other {{showingCount} de {totalCountFormatted} itens}}",
|
package/lang/sv.js
CHANGED
|
@@ -90,7 +90,7 @@ export default {
|
|
|
90
90
|
"components.meter-mixin.progressIndicator": "Förloppsindikator",
|
|
91
91
|
"components.more-less.less": "mindre",
|
|
92
92
|
"components.more-less.more": "mer",
|
|
93
|
-
"components.object-property-list.item-placeholder-text": "
|
|
93
|
+
"components.object-property-list.item-placeholder-text": "Platshållarobjekt",
|
|
94
94
|
"components.overflow-group.moreActions": "Fler åtgärder",
|
|
95
95
|
"components.pager-load-more.action": "Läs in {count} till",
|
|
96
96
|
"components.pager-load-more.info": "{totalCount, plural, one {{showingCount} av {totalCountFormatted} objekt} other {{showingCount} av {totalCountFormatted} objekt}}",
|
package/lang/tr.js
CHANGED
|
@@ -90,7 +90,7 @@ export default {
|
|
|
90
90
|
"components.meter-mixin.progressIndicator": "Gelişim Göstergesi",
|
|
91
91
|
"components.more-less.less": "daha az",
|
|
92
92
|
"components.more-less.more": "daha fazla",
|
|
93
|
-
"components.object-property-list.item-placeholder-text": "
|
|
93
|
+
"components.object-property-list.item-placeholder-text": "Yer Tutucu Öğesi",
|
|
94
94
|
"components.overflow-group.moreActions": "Daha Fazla Eylem",
|
|
95
95
|
"components.pager-load-more.action": "{count} Tane Daha Yükle",
|
|
96
96
|
"components.pager-load-more.info": "{totalCount, plural, one {{showingCount} / {totalCountFormatted} öğe} other {{showingCount} / {totalCountFormatted} öğe}}",
|
package/lang/zh-cn.js
CHANGED
|
@@ -90,7 +90,7 @@ export default {
|
|
|
90
90
|
"components.meter-mixin.progressIndicator": "进度指示符",
|
|
91
91
|
"components.more-less.less": "更少",
|
|
92
92
|
"components.more-less.more": "更多",
|
|
93
|
-
"components.object-property-list.item-placeholder-text": "
|
|
93
|
+
"components.object-property-list.item-placeholder-text": "占位符项目",
|
|
94
94
|
"components.overflow-group.moreActions": "更多操作",
|
|
95
95
|
"components.pager-load-more.action": "再加载 {count} 个",
|
|
96
96
|
"components.pager-load-more.info": "{totalCount, plural, other {{showingCount}/{totalCountFormatted} 项}}",
|
package/lang/zh-tw.js
CHANGED
|
@@ -90,7 +90,7 @@ export default {
|
|
|
90
90
|
"components.meter-mixin.progressIndicator": "進度指示器",
|
|
91
91
|
"components.more-less.less": "較少",
|
|
92
92
|
"components.more-less.more": "較多",
|
|
93
|
-
"components.object-property-list.item-placeholder-text": "
|
|
93
|
+
"components.object-property-list.item-placeholder-text": "預留位置項目",
|
|
94
94
|
"components.overflow-group.moreActions": "其他動作",
|
|
95
95
|
"components.pager-load-more.action": "再載入 {count} 個",
|
|
96
96
|
"components.pager-load-more.info": "{totalCount, plural, other {{showingCount} 項,共 {totalCountFormatted} 項}}",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.63.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",
|
|
@@ -13,10 +13,11 @@
|
|
|
13
13
|
"build:illustrations": "node ./cli/empty-state-illustration-generator.js",
|
|
14
14
|
"build:sass": "node-sass --output-style expanded ./test/sass.scss > ./test/sass.output.css",
|
|
15
15
|
"build": "npm run build:clean && npm run build:icons && npm run build:illustrations && npm run build:sass",
|
|
16
|
+
"build-static": "rollup -c",
|
|
16
17
|
"lint": "npm run lint:eslint && npm run lint:style && npm run lint:lit",
|
|
17
|
-
"lint:eslint": "eslint . --ext .js,.html",
|
|
18
|
+
"lint:eslint": "eslint . --ext .js,.html --ignore-path .gitignore",
|
|
18
19
|
"lint:lit": "lit-analyzer \"{components,controllers,directives,helpers,mixins,templates,test,tools}/**/*.js\" --strict --rules.no-unknown-tag-name off",
|
|
19
|
-
"lint:style": "stylelint \"**/*.{js,html}\"",
|
|
20
|
+
"lint:style": "stylelint \"**/*.{js,html}\" --ignore-path .gitignore",
|
|
20
21
|
"start": "web-dev-server --node-resolve --watch --open",
|
|
21
22
|
"test": "npm run lint && npm run test:translations && npm run test:headless && npm run test:axe",
|
|
22
23
|
"test:axe": "web-test-runner --group aXe",
|
|
@@ -46,6 +47,8 @@
|
|
|
46
47
|
"@babel/eslint-parser": "^7",
|
|
47
48
|
"@brightspace-ui/stylelint-config": "^0.7",
|
|
48
49
|
"@open-wc/testing": "^3",
|
|
50
|
+
"@rollup/plugin-dynamic-import-vars": "^2",
|
|
51
|
+
"@rollup/plugin-node-resolve": "^15",
|
|
49
52
|
"@web/dev-server": "^0.1",
|
|
50
53
|
"@web/test-runner": "^0.15",
|
|
51
54
|
"@web/test-runner-playwright": "^0.9",
|
|
@@ -53,9 +56,13 @@
|
|
|
53
56
|
"chalk": "^5",
|
|
54
57
|
"eslint": "^8",
|
|
55
58
|
"eslint-config-brightspace": "^0.19",
|
|
59
|
+
"glob-all": "^3",
|
|
56
60
|
"lit-analyzer": "^1",
|
|
57
61
|
"messageformat-validator": "^2",
|
|
58
|
-
"node-sass": "^
|
|
62
|
+
"node-sass": "^8",
|
|
63
|
+
"rollup": "^2",
|
|
64
|
+
"rollup-plugin-copy": "^3",
|
|
65
|
+
"rollup-plugin-delete": "^2",
|
|
59
66
|
"sinon": "^14",
|
|
60
67
|
"stylelint": "^14"
|
|
61
68
|
},
|