@brightspace-ui/core 3.40.3 → 3.41.1
Sign up to get free protection for your applications and to get access to all the features.
- package/components/dialog/demo/dialog-confirm.html +1 -1
- package/components/dialog/dialog-fullscreen.js +6 -1
- package/components/dialog/dialog.js +7 -1
- package/custom-elements.json +4 -4
- 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 +1 -1
@@ -22,7 +22,7 @@
|
|
22
22
|
<d2l-demo-snippet>
|
23
23
|
<template>
|
24
24
|
<d2l-button id="openConfirm">Show Confirm</d2l-button>
|
25
|
-
<d2l-dialog-confirm id="confirm"
|
25
|
+
<d2l-dialog-confirm id="confirm" text="Are you sure you want more cookies?">
|
26
26
|
<d2l-button slot="footer" primary data-dialog-action="ok">Yes</d2l-button>
|
27
27
|
<d2l-button slot="footer" data-dialog-action>No</d2l-button>
|
28
28
|
</d2l-dialog-confirm>
|
@@ -8,6 +8,7 @@ import { DialogMixin } from './dialog-mixin.js';
|
|
8
8
|
import { dialogStyles } from './dialog-styles.js';
|
9
9
|
import { getUniqueId } from '../../helpers/uniqueId.js';
|
10
10
|
import { LocalizeCoreElement } from '../../helpers/localize-core-element.js';
|
11
|
+
import { PropertyRequiredMixin } from '../../mixins/property-required/property-required-mixin.js';
|
11
12
|
import { styleMap } from 'lit/directives/style-map.js';
|
12
13
|
|
13
14
|
const mediaQueryList = window.matchMedia('(max-width: 615px), (max-height: 420px) and (max-width: 900px)');
|
@@ -18,7 +19,7 @@ const mediaQueryList = window.matchMedia('(max-width: 615px), (max-height: 420px
|
|
18
19
|
* @slot - Default slot for content inside dialog
|
19
20
|
* @slot footer - Slot for footer content such as workflow buttons
|
20
21
|
*/
|
21
|
-
class DialogFullscreen extends LocalizeCoreElement(AsyncContainerMixin(DialogMixin(LitElement))) {
|
22
|
+
class DialogFullscreen extends PropertyRequiredMixin(LocalizeCoreElement(AsyncContainerMixin(DialogMixin(LitElement)))) {
|
22
23
|
|
23
24
|
static get properties() {
|
24
25
|
return {
|
@@ -32,6 +33,10 @@ class DialogFullscreen extends LocalizeCoreElement(AsyncContainerMixin(DialogMix
|
|
32
33
|
* @type {boolean}
|
33
34
|
*/
|
34
35
|
noPadding: { type: Boolean, reflect: true, attribute: 'no-padding' },
|
36
|
+
/**
|
37
|
+
* REQUIRED: the title for the dialog
|
38
|
+
*/
|
39
|
+
titleText: { type: String, attribute: 'title-text', required: true },
|
35
40
|
/**
|
36
41
|
* The preferred width (unit-less) for the dialog. Maximum 1170.
|
37
42
|
*/
|
@@ -9,6 +9,7 @@ import { dialogStyles } from './dialog-styles.js';
|
|
9
9
|
import { getUniqueId } from '../../helpers/uniqueId.js';
|
10
10
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
11
11
|
import { LocalizeCoreElement } from '../../helpers/localize-core-element.js';
|
12
|
+
import { PropertyRequiredMixin } from '../../mixins/property-required/property-required-mixin.js';
|
12
13
|
import { styleMap } from 'lit/directives/style-map.js';
|
13
14
|
|
14
15
|
const mediaQueryList = window.matchMedia('(max-width: 615px), (max-height: 420px) and (max-width: 900px)');
|
@@ -19,7 +20,7 @@ const mediaQueryList = window.matchMedia('(max-width: 615px), (max-height: 420px
|
|
19
20
|
* @slot - Default slot for content inside dialog
|
20
21
|
* @slot footer - Slot for footer content such as workflow buttons
|
21
22
|
*/
|
22
|
-
class Dialog extends LocalizeCoreElement(AsyncContainerMixin(DialogMixin(LitElement))) {
|
23
|
+
class Dialog extends PropertyRequiredMixin(LocalizeCoreElement(AsyncContainerMixin(DialogMixin(LitElement)))) {
|
23
24
|
|
24
25
|
static get properties() {
|
25
26
|
return {
|
@@ -43,6 +44,11 @@ class Dialog extends LocalizeCoreElement(AsyncContainerMixin(DialogMixin(LitElem
|
|
43
44
|
*/
|
44
45
|
fullHeight: { type: Boolean, attribute: 'full-height' },
|
45
46
|
|
47
|
+
/**
|
48
|
+
* REQUIRED: the title for the dialog
|
49
|
+
*/
|
50
|
+
titleText: { type: String, attribute: 'title-text', required: true },
|
51
|
+
|
46
52
|
/**
|
47
53
|
* The preferred width (unit-less) for the dialog
|
48
54
|
*/
|
package/custom-elements.json
CHANGED
@@ -2062,7 +2062,7 @@
|
|
2062
2062
|
},
|
2063
2063
|
{
|
2064
2064
|
"name": "title-text",
|
2065
|
-
"description": "
|
2065
|
+
"description": "REQUIRED: the title for the dialog",
|
2066
2066
|
"type": "string"
|
2067
2067
|
},
|
2068
2068
|
{
|
@@ -2106,7 +2106,7 @@
|
|
2106
2106
|
{
|
2107
2107
|
"name": "titleText",
|
2108
2108
|
"attribute": "title-text",
|
2109
|
-
"description": "
|
2109
|
+
"description": "REQUIRED: the title for the dialog",
|
2110
2110
|
"type": "string"
|
2111
2111
|
},
|
2112
2112
|
{
|
@@ -2179,7 +2179,7 @@
|
|
2179
2179
|
},
|
2180
2180
|
{
|
2181
2181
|
"name": "title-text",
|
2182
|
-
"description": "
|
2182
|
+
"description": "REQUIRED: the title for the dialog",
|
2183
2183
|
"type": "string"
|
2184
2184
|
},
|
2185
2185
|
{
|
@@ -2237,7 +2237,7 @@
|
|
2237
2237
|
{
|
2238
2238
|
"name": "titleText",
|
2239
2239
|
"attribute": "title-text",
|
2240
|
-
"description": "
|
2240
|
+
"description": "REQUIRED: the title for the dialog",
|
2241
2241
|
"type": "string"
|
2242
2242
|
},
|
2243
2243
|
{
|
package/lang/ar.js
CHANGED
@@ -44,7 +44,7 @@ export default {
|
|
44
44
|
"components.form-element.input.url.typeMismatch": "عنوان URL غير صالح",
|
45
45
|
"components.form-element.valueMissing": "{label} مطلوبة.",
|
46
46
|
"components.form-error-summary.errorSummary": "{count, plural, one {تم العثور على {count} خطأ في المعلومات التي أرسلتها} other {تم العثور على {count} من الأخطاء في المعلومات التي أرسلتها}}",
|
47
|
-
"components.form-error-summary.text": "
|
47
|
+
"components.form-error-summary.text": "تبديل تفاصيل الخطأ",
|
48
48
|
"components.input-color.backgroundColor": "لون الخلفية",
|
49
49
|
"components.input-color.foregroundColor": "لون المقدمة",
|
50
50
|
"components.input-color.none": "لا شيء",
|
package/lang/cy.js
CHANGED
@@ -44,7 +44,7 @@ export default {
|
|
44
44
|
"components.form-element.input.url.typeMismatch": "Nid yw'r URL yn ddilys.",
|
45
45
|
"components.form-element.valueMissing": "Mae angen {label}.",
|
46
46
|
"components.form-error-summary.errorSummary": "{count, plural, one {Canfuwyd {count} gwall yn y wybodaeth a gyflwynoch} other {Canfuwyd {count} gwall yn y wybodaeth a gyflwynoch}}",
|
47
|
-
"components.form-error-summary.text": "
|
47
|
+
"components.form-error-summary.text": "Toglo manylion gwall",
|
48
48
|
"components.input-color.backgroundColor": "Lliw Cefndir",
|
49
49
|
"components.input-color.foregroundColor": "Lliw Blaendir",
|
50
50
|
"components.input-color.none": "Dim",
|
package/lang/da.js
CHANGED
@@ -44,7 +44,7 @@ export default {
|
|
44
44
|
"components.form-element.input.url.typeMismatch": "URL-adresse er ikke gyldig",
|
45
45
|
"components.form-element.valueMissing": "{label} er påkrævet.",
|
46
46
|
"components.form-error-summary.errorSummary": "{count, plural, one {Der blev fundet {count} fejl i de oplysninger, du indsendte} other {Der blev fundet {count} fejl i de oplysninger, du indsendte}}",
|
47
|
-
"components.form-error-summary.text": "
|
47
|
+
"components.form-error-summary.text": "Slå fejloplysninger til/fra",
|
48
48
|
"components.input-color.backgroundColor": "Baggrundsfarve",
|
49
49
|
"components.input-color.foregroundColor": "Forgrundsfarve",
|
50
50
|
"components.input-color.none": "Ingen",
|
package/lang/de.js
CHANGED
@@ -44,7 +44,7 @@ export default {
|
|
44
44
|
"components.form-element.input.url.typeMismatch": "URL ist ungültig",
|
45
45
|
"components.form-element.valueMissing": "{label} ist erforderlich.",
|
46
46
|
"components.form-error-summary.errorSummary": "{count, plural, one {Die von Ihnen übermittelten Informationen enthalten {count} Fehler} other {Die von Ihnen übermittelten Informationen enthalten {count} Fehler}}",
|
47
|
-
"components.form-error-summary.text": "
|
47
|
+
"components.form-error-summary.text": "Fehlerdetails ein-/ausschalten",
|
48
48
|
"components.input-color.backgroundColor": "Hintergrundfarbe",
|
49
49
|
"components.input-color.foregroundColor": "Vordergrundfarbe",
|
50
50
|
"components.input-color.none": "Keine",
|
package/lang/es-es.js
CHANGED
@@ -44,7 +44,7 @@ export default {
|
|
44
44
|
"components.form-element.input.url.typeMismatch": "La dirección URL no es válida",
|
45
45
|
"components.form-element.valueMissing": "{label} es obligatorio.",
|
46
46
|
"components.form-error-summary.errorSummary": "{count, plural, one {Se ha encontrado {count} error en la información que ha enviado} other {Se han encontrado {count} errores en la información que ha enviado}}",
|
47
|
-
"components.form-error-summary.text": "
|
47
|
+
"components.form-error-summary.text": "Alternar detalles del error",
|
48
48
|
"components.input-color.backgroundColor": "Color de fondo",
|
49
49
|
"components.input-color.foregroundColor": "Color del primer plano",
|
50
50
|
"components.input-color.none": "Ninguno",
|
package/lang/es.js
CHANGED
@@ -44,7 +44,7 @@ export default {
|
|
44
44
|
"components.form-element.input.url.typeMismatch": "La dirección URL no es válida",
|
45
45
|
"components.form-element.valueMissing": "{label} es obligatoria.",
|
46
46
|
"components.form-error-summary.errorSummary": "{count, plural, one {Se encontró {count} error en la información que envió} other {Se encontraron {count} errores en la información que envió}}",
|
47
|
-
"components.form-error-summary.text": "
|
47
|
+
"components.form-error-summary.text": "Activar o desactivar la presentación de detalles de los errores",
|
48
48
|
"components.input-color.backgroundColor": "Color de fondo",
|
49
49
|
"components.input-color.foregroundColor": "Color del primer plano",
|
50
50
|
"components.input-color.none": "Ninguno",
|
package/lang/fr-fr.js
CHANGED
@@ -44,7 +44,7 @@ export default {
|
|
44
44
|
"components.form-element.input.url.typeMismatch": "URL non valide",
|
45
45
|
"components.form-element.valueMissing": "{label} est obligatoire.",
|
46
46
|
"components.form-error-summary.errorSummary": "{count, plural, one {{count} erreur trouvée dans les informations soumises} other {{count} erreurs trouvées dans les informations soumises}}",
|
47
|
-
"components.form-error-summary.text": "
|
47
|
+
"components.form-error-summary.text": "Afficher/Masquer les détails de l’erreur",
|
48
48
|
"components.input-color.backgroundColor": "Couleur de l’arrière-plan",
|
49
49
|
"components.input-color.foregroundColor": "Couleur de l’avant-plan",
|
50
50
|
"components.input-color.none": "Aucune",
|
package/lang/fr.js
CHANGED
@@ -44,7 +44,7 @@ export default {
|
|
44
44
|
"components.form-element.input.url.typeMismatch": "L'URL n'est pas valide",
|
45
45
|
"components.form-element.valueMissing": "{label} est requis.",
|
46
46
|
"components.form-error-summary.errorSummary": "{count, plural, one {Il y avait {count} erreur trouvée dans les informations que vous avez soumises} other {Il y avait {count} erreurs trouvées dans les informations que vous avez soumises}}",
|
47
|
-
"components.form-error-summary.text": "
|
47
|
+
"components.form-error-summary.text": "Afficher les détails de l'erreur",
|
48
48
|
"components.input-color.backgroundColor": "Couleur d’arrière-plan",
|
49
49
|
"components.input-color.foregroundColor": "Couleur de l'avant-plan",
|
50
50
|
"components.input-color.none": "Aucun",
|
package/lang/hi.js
CHANGED
@@ -44,7 +44,7 @@ export default {
|
|
44
44
|
"components.form-element.input.url.typeMismatch": "URL मान्य नहीं है",
|
45
45
|
"components.form-element.valueMissing": "{label} आवश्यक है।",
|
46
46
|
"components.form-error-summary.errorSummary": "{count, plural, one {आपके द्वारा सबमिट की गई जानकारी में {count} त्रुटियाँ पाई गईं} other {आपके द्वारा सबमिट की गई जानकारी में {count} त्रुटियाँ पाई गईं}}",
|
47
|
-
"components.form-error-summary.text": "
|
47
|
+
"components.form-error-summary.text": "त्रुटि विवरण टॉगल करें",
|
48
48
|
"components.input-color.backgroundColor": "पृष्ठभूमि का रंग",
|
49
49
|
"components.input-color.foregroundColor": "अग्रभूमि का रंग",
|
50
50
|
"components.input-color.none": "कोई नहीं",
|
package/lang/ja.js
CHANGED
@@ -44,7 +44,7 @@ export default {
|
|
44
44
|
"components.form-element.input.url.typeMismatch": "URL が有効ではありません",
|
45
45
|
"components.form-element.valueMissing": "{label} は必須です。",
|
46
46
|
"components.form-error-summary.errorSummary": "{count, plural, other {送信した情報に {count} 件のエラーが見つかりました}}",
|
47
|
-
"components.form-error-summary.text": "
|
47
|
+
"components.form-error-summary.text": "エラーの詳細を切り替え",
|
48
48
|
"components.input-color.backgroundColor": "背景色",
|
49
49
|
"components.input-color.foregroundColor": "前景色",
|
50
50
|
"components.input-color.none": "なし",
|
package/lang/ko.js
CHANGED
@@ -44,7 +44,7 @@ export default {
|
|
44
44
|
"components.form-element.input.url.typeMismatch": "URL이 유효하지 않습니다",
|
45
45
|
"components.form-element.valueMissing": "{label}이(가) 필요합니다.",
|
46
46
|
"components.form-error-summary.errorSummary": "{count, plural, other {제출한 정보에서 {count}개의 오류가 발견되었습니다}}",
|
47
|
-
"components.form-error-summary.text": "
|
47
|
+
"components.form-error-summary.text": "오류 세부 정보 전환",
|
48
48
|
"components.input-color.backgroundColor": "배경 색상",
|
49
49
|
"components.input-color.foregroundColor": "전경 색상",
|
50
50
|
"components.input-color.none": "없음",
|
package/lang/nl.js
CHANGED
@@ -44,7 +44,7 @@ export default {
|
|
44
44
|
"components.form-element.input.url.typeMismatch": "URL is niet geldig",
|
45
45
|
"components.form-element.valueMissing": "{label} is vereist.",
|
46
46
|
"components.form-error-summary.errorSummary": "{count, plural, one {Er is {count} fout gevonden in de informatie die u hebt ingediend} other {Er zijn {count} fouten gevonden in de informatie die u hebt ingediend}}",
|
47
|
-
"components.form-error-summary.text": "
|
47
|
+
"components.form-error-summary.text": "Foutdetails in-/uitschakelen",
|
48
48
|
"components.input-color.backgroundColor": "Achtergrondkleur",
|
49
49
|
"components.input-color.foregroundColor": "Voorgrondkleur",
|
50
50
|
"components.input-color.none": "Geen",
|
package/lang/pt.js
CHANGED
@@ -44,7 +44,7 @@ export default {
|
|
44
44
|
"components.form-element.input.url.typeMismatch": "URL inválido",
|
45
45
|
"components.form-element.valueMissing": "{label} é obrigatório.",
|
46
46
|
"components.form-error-summary.errorSummary": "{count, plural, one {{count} erro foi encontrado nas informações enviadas} other {{count} erros foram encontrados nas informações enviadas}}",
|
47
|
-
"components.form-error-summary.text": "
|
47
|
+
"components.form-error-summary.text": "Alternar detalhes do erro",
|
48
48
|
"components.input-color.backgroundColor": "Cor do Plano de fundo",
|
49
49
|
"components.input-color.foregroundColor": "Cor do Primeiro plano",
|
50
50
|
"components.input-color.none": "Nenhum",
|
package/lang/sv.js
CHANGED
@@ -44,7 +44,7 @@ export default {
|
|
44
44
|
"components.form-element.input.url.typeMismatch": "URL är inte giltigt",
|
45
45
|
"components.form-element.valueMissing": "{label} krävs.",
|
46
46
|
"components.form-error-summary.errorSummary": "{count, plural, one {Det finns {count} fel i informationen som du skickade} other {Det finns {count} fel i informationen som du skickade}}",
|
47
|
-
"components.form-error-summary.text": "
|
47
|
+
"components.form-error-summary.text": "Växla felinformation",
|
48
48
|
"components.input-color.backgroundColor": "Bakgrundsfärg",
|
49
49
|
"components.input-color.foregroundColor": "Förgrundsfärg",
|
50
50
|
"components.input-color.none": "Inga",
|
package/lang/tr.js
CHANGED
@@ -44,7 +44,7 @@ export default {
|
|
44
44
|
"components.form-element.input.url.typeMismatch": "URL geçerli değil",
|
45
45
|
"components.form-element.valueMissing": "{label} zorunludur.",
|
46
46
|
"components.form-error-summary.errorSummary": "{count, plural, one {Gönderdiğiniz bilgilerde {count} hata bulundu} other {Gönderdiğiniz bilgilerde {count} hata bulundu}}",
|
47
|
-
"components.form-error-summary.text": "
|
47
|
+
"components.form-error-summary.text": "Hata ayrıntılarını değiştir",
|
48
48
|
"components.input-color.backgroundColor": "Arka Plan Rengi",
|
49
49
|
"components.input-color.foregroundColor": "Ön Plan Rengi",
|
50
50
|
"components.input-color.none": "Yok",
|
package/lang/zh-cn.js
CHANGED
@@ -44,7 +44,7 @@ export default {
|
|
44
44
|
"components.form-element.input.url.typeMismatch": "URL 无效",
|
45
45
|
"components.form-element.valueMissing": "{label} 为必填项。",
|
46
46
|
"components.form-error-summary.errorSummary": "{count, plural, other {在您提交的信息中发现 {count} 个错误}}",
|
47
|
-
"components.form-error-summary.text": "
|
47
|
+
"components.form-error-summary.text": "切换错误详细信息",
|
48
48
|
"components.input-color.backgroundColor": "背景颜色",
|
49
49
|
"components.input-color.foregroundColor": "前景颜色",
|
50
50
|
"components.input-color.none": "无",
|
package/lang/zh-tw.js
CHANGED
@@ -44,7 +44,7 @@ export default {
|
|
44
44
|
"components.form-element.input.url.typeMismatch": "URL 無效",
|
45
45
|
"components.form-element.valueMissing": "{label} 為必填。",
|
46
46
|
"components.form-error-summary.errorSummary": "{count, plural, other {您提交的資訊中發現 {count} 個錯誤}}",
|
47
|
-
"components.form-error-summary.text": "
|
47
|
+
"components.form-error-summary.text": "切換錯誤詳細資料",
|
48
48
|
"components.input-color.backgroundColor": "背景顏色",
|
49
49
|
"components.input-color.foregroundColor": "前景顏色",
|
50
50
|
"components.input-color.none": "無",
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@brightspace-ui/core",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.41.1",
|
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",
|