@brightspace-ui/labs 2.40.3 → 2.40.5
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/package.json
CHANGED
|
@@ -4,20 +4,14 @@ import '@brightspace-ui/core/components/colors/colors.js';
|
|
|
4
4
|
import '@brightspace-ui/core/components/inputs/input-textarea.js';
|
|
5
5
|
import './opt-out-reason-selector.js';
|
|
6
6
|
import { css, html, LitElement } from 'lit';
|
|
7
|
-
import { composeMixins } from '@brightspace-ui/core/helpers/composeMixins.js';
|
|
8
7
|
import { LocalizeLabsElement } from '../localize-labs-element.js';
|
|
9
|
-
import { RtlMixin } from '@brightspace-ui/core/mixins/rtl-mixin.js';
|
|
10
8
|
|
|
11
9
|
const defaultEventProperties = {
|
|
12
10
|
bubbles: true,
|
|
13
11
|
composed: true
|
|
14
12
|
};
|
|
15
13
|
|
|
16
|
-
class OptOutDialog extends
|
|
17
|
-
LitElement,
|
|
18
|
-
LocalizeLabsElement,
|
|
19
|
-
RtlMixin
|
|
20
|
-
) {
|
|
14
|
+
class OptOutDialog extends LocalizeLabsElement(LitElement) {
|
|
21
15
|
|
|
22
16
|
static get properties() {
|
|
23
17
|
return {
|
|
@@ -81,15 +75,9 @@ class OptOutDialog extends composeMixins(
|
|
|
81
75
|
}
|
|
82
76
|
|
|
83
77
|
.close-button {
|
|
84
|
-
|
|
78
|
+
inset-block-start: 0.6rem;
|
|
79
|
+
inset-inline-end: 0.6rem;
|
|
85
80
|
position: absolute;
|
|
86
|
-
right: 0.6rem;
|
|
87
|
-
top: 0.6rem;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
:host([dir="rtl"]) .close-button {
|
|
91
|
-
left: 0.6rem;
|
|
92
|
-
right: auto;
|
|
93
81
|
}
|
|
94
82
|
`;
|
|
95
83
|
}
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import './opt-out-reason.js';
|
|
2
2
|
import { css, html, LitElement } from 'lit';
|
|
3
|
-
import { composeMixins } from '@brightspace-ui/core/helpers/composeMixins.js';
|
|
4
3
|
import { inputStyles } from '@brightspace-ui/core/components/inputs/input-styles.js';
|
|
5
4
|
import { LocalizeLabsElement } from '../localize-labs-element.js';
|
|
6
|
-
import { RtlMixin } from '@brightspace-ui/core/mixins/rtl-mixin.js';
|
|
7
5
|
|
|
8
|
-
class OptOutReasonSelector extends
|
|
9
|
-
|
|
10
|
-
LocalizeLabsElement,
|
|
11
|
-
RtlMixin
|
|
12
|
-
) {
|
|
6
|
+
class OptOutReasonSelector extends LocalizeLabsElement(LitElement) {
|
|
7
|
+
|
|
13
8
|
static get properties() {
|
|
14
9
|
return {
|
|
15
10
|
_reasons: { state: true }
|
|
@@ -30,7 +25,7 @@ class OptOutReasonSelector extends composeMixins(
|
|
|
30
25
|
-webkit-appearance: none;
|
|
31
26
|
appearance: none;
|
|
32
27
|
background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2242%22%20height%3D%2242%22%20viewBox%3D%220%200%2042%2042%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill%3D%22%23f2f3f5%22%20d%3D%22M0%200h42v42H0z%22%2F%3E%3Cpath%20stroke%3D%22%23d3d9e3%22%20d%3D%22M0%200v42%22%2F%3E%3Cpath%20d%3D%22M14.99%2019.582l4.95%204.95a1.5%201.5%200%200%200%202.122%200l4.95-4.95a1.5%201.5%200%200%200-2.122-2.122L21%2021.35l-3.888-3.89a1.5%201.5%200%200%200-2.12%202.122z%22%20fill%3D%22%23565A5C%22%2F%3E%3C%2Fsvg%3E");
|
|
33
|
-
background-position: right center;
|
|
28
|
+
background-position: var(--d2l-inline-end, right) center;
|
|
34
29
|
background-repeat: no-repeat;
|
|
35
30
|
background-size: contain;
|
|
36
31
|
display: block;
|
|
@@ -50,10 +45,6 @@ class OptOutReasonSelector extends composeMixins(
|
|
|
50
45
|
color: var(--d2l-input-color);
|
|
51
46
|
}
|
|
52
47
|
|
|
53
|
-
:host([dir="rtl"]) select {
|
|
54
|
-
background-position: left center !important;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
48
|
#options {
|
|
58
49
|
display: none;
|
|
59
50
|
}
|
package/src/lang/th.js
CHANGED
|
@@ -12,7 +12,7 @@ export default {
|
|
|
12
12
|
"components:accessibilityDisabilitySimulator:screenreaderAndTabAlert": "เปิดใช้งานตัวอ่านหน้าจอ และแท็บไปยังเนื้อหา", // Alert that prompts the user to use a screenreader and tabbing to view content
|
|
13
13
|
"components:accessibilityDisabilitySimulator:simulationType": "ประเภทการจำลอง:", // Label for the disability simulation options
|
|
14
14
|
"components:attributePicker:addValue": "คลิกเพื่อเพิ่มค่า {value}", // Label for screen readers to inform user that they can click to add the given value
|
|
15
|
-
"components:attributePicker:limitReached": "คุณถึงขีดจำกัด {value}
|
|
15
|
+
"components:attributePicker:limitReached": "คุณถึงขีดจำกัด {value} ของค่าที่เลือกไว้แล้ว", // Tooltip that appears when the user has reach the maximum amount of attributes
|
|
16
16
|
"components:attributePicker:minimumRequirement": "ต้องตั้งค่าอย่างน้อยหนึ่งค่า", // Tooltip that appears when no values have been set and we need to inform the user that this is an invalid state
|
|
17
17
|
"components:attributePicker:removeValue": "คลิก กด backspace หรืดกดคีย์ delete เพื่อลบรายการ {value}", // Label to inform user how they can remove the given value
|
|
18
18
|
"components:checkboxDrawer:checkboxCollapsed": "ยุบช่องทำเครื่องหมายแล้ว", // Read by screen readers when focusing the collapsed (unchecked) checkbox, with the inner content hidden
|
package/src/lang/vi.js
CHANGED
|
@@ -12,7 +12,7 @@ export default {
|
|
|
12
12
|
"components:accessibilityDisabilitySimulator:screenreaderAndTabAlert": "Bật trình đọc màn hình và tab vào nội dung", // Alert that prompts the user to use a screenreader and tabbing to view content
|
|
13
13
|
"components:accessibilityDisabilitySimulator:simulationType": "Loại mô phỏng:", // Label for the disability simulation options
|
|
14
14
|
"components:attributePicker:addValue": "Nhấp để thêm giá trị {value}", // Label for screen readers to inform user that they can click to add the given value
|
|
15
|
-
"components:attributePicker:limitReached": "Bạn đã đạt đến giới hạn của {value} giá trị
|
|
15
|
+
"components:attributePicker:limitReached": "Bạn đã đạt đến giới hạn của {value} giá trị được chọn", // Tooltip that appears when the user has reach the maximum amount of attributes
|
|
16
16
|
"components:attributePicker:minimumRequirement": "Phải đặt ít nhất một giá trị", // Tooltip that appears when no values have been set and we need to inform the user that this is an invalid state
|
|
17
17
|
"components:attributePicker:removeValue": "Nhấp, nhấn phím lùi hoặc nhấn phím xóa để xóa mục {value}", // Label to inform user how they can remove the given value
|
|
18
18
|
"components:checkboxDrawer:checkboxCollapsed": "Đã thu gọn hộp kiểm", // Read by screen readers when focusing the collapsed (unchecked) checkbox, with the inner content hidden
|
|
@@ -69,7 +69,7 @@ export default {
|
|
|
69
69
|
"components:optInFlyout:feedbackLabel": "Chúng tôi có thể làm gì để biến sản phẩm này thành thứ bạn thích sử dụng?",
|
|
70
70
|
"components:optInFlyout:feedbackReasonJustCheckingSomething": "Chỉ đang chuyển lại để kiểm tra một cái gì đó",
|
|
71
71
|
"components:optInFlyout:feedbackReasonLabel": "Bạn có thể cho chúng tôi biết lý do tại sao bạn đang chuyển đổi trở lại không?",
|
|
72
|
-
"components:optInFlyout:feedbackReasonMissingFeature": "Nó thiếu một tính năng mà tôi sử
|
|
72
|
+
"components:optInFlyout:feedbackReasonMissingFeature": "Nó thiếu một tính năng mà tôi sử dụng",
|
|
73
73
|
"components:optInFlyout:feedbackReasonNotReadyForSomethingNew": "Đây không phải là thời điểm phù hợp để tôi thử phiên bản này",
|
|
74
74
|
"components:optInFlyout:feedbackReasonOther": "Khác",
|
|
75
75
|
"components:optInFlyout:feedbackReasonPreferOldExperience": "Tôi nghĩ phiên bản cũ là trải nghiệm tốt hơn",
|
|
@@ -85,7 +85,7 @@ export default {
|
|
|
85
85
|
"components:optInFlyout:tutorialMessage": "Hãy xem *hướng dẫn* của chúng tôi để giúp bạn bắt đầu!",
|
|
86
86
|
"components:ouFilter:orgUnitFilter:name": "Đơn vị Tổ chức",
|
|
87
87
|
"components:ouFilter:orgUnitFilter:nameAllSelected": "Đơn vị tổ chức: Tất cả",
|
|
88
|
-
"components:ouFilter:orgUnitFilter:nameSomeSelected": "Đơn vị tổ chức: Những Lựa chọn đã Áp dụng
|
|
88
|
+
"components:ouFilter:orgUnitFilter:nameSomeSelected": "Đơn vị tổ chức: Những Lựa chọn đã Áp dụng",
|
|
89
89
|
"components:ouFilter:treeFilter:nodeName": "{orgUnitName} (ID: {id})",
|
|
90
90
|
"components:ouFilter:treeFilter:nodeName:root": "gốc",
|
|
91
91
|
"components:ouFilter:treeSelector:arrowLabel:closed": "Mở rộng {name} ở cấp độ {level}, đơn vị con của {parentName}",
|