@brightspace-ui/core 2.60.1 → 2.62.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/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
- package/tools/dom-test-helpers.js +16 -0
|
@@ -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/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.62.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
|
},
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getComposedChildren } from '../helpers/dom.js';
|
|
1
2
|
|
|
2
3
|
export function keyDown(element, keycode) {
|
|
3
4
|
const event = new CustomEvent('keydown', {
|
|
@@ -10,3 +11,18 @@ export function keyDown(element, keycode) {
|
|
|
10
11
|
event.code = keycode;
|
|
11
12
|
element.dispatchEvent(event);
|
|
12
13
|
}
|
|
14
|
+
|
|
15
|
+
export async function getUpdateCompleteAll(node) {
|
|
16
|
+
|
|
17
|
+
if (!node || (node.nodeType !== Node.ELEMENT_NODE && node.nodeType !== Node.DOCUMENT_NODE && node.nodeType !== Node.DOCUMENT_FRAGMENT_NODE)) {
|
|
18
|
+
throw new TypeError('Invalid node. Must be nodeType document, element or document fragment');
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
const getUpdateComplete = async elem => {
|
|
22
|
+
if (elem.updateComplete) await elem.updateComplete;
|
|
23
|
+
const childElements = getComposedChildren(elem);
|
|
24
|
+
await Promise.all(childElements.map(childElement => getUpdateComplete(childElement)));
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
return getUpdateComplete(node);
|
|
28
|
+
}
|