@brightspace-ui/core 1.207.2 → 1.208.1
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/README.md +1 -1
- package/components/alert/demo/alert-toast.html +0 -2
- package/components/alert/demo/alert.html +0 -2
- package/components/button/demo/button-icon.html +4 -4
- package/components/button/demo/floating-buttons-in-frame.html +9 -9
- package/components/button/demo/floating-buttons-in-tabs.html +40 -41
- package/components/card/demo/card.html +18 -18
- package/components/dialog/README.md +1 -2
- package/components/dropdown/README.md +9 -17
- package/components/dropdown/demo/dropdown-context-menu.html +7 -7
- package/components/dropdown/demo/dropdown-menu.html +6 -6
- package/components/dropdown/demo/dropdown-more.html +4 -4
- package/components/filter/README.md +4 -7
- package/components/focus-trap/demo/focus-trap.html +1 -1
- package/components/html-block/demo/html-block.html +117 -0
- package/components/html-block/html-block.js +57 -25
- package/components/inputs/demo/input-checkbox.html +2 -2
- package/components/inputs/demo/input-radio.html +1 -1
- package/components/inputs/docs/input-date-time.md +7 -13
- package/components/inputs/input-date-time.js +16 -0
- package/components/list/demo/list-item-layouts.html +1 -1
- package/components/list/demo/list.html +1 -1
- package/components/menu/demo/checkbox-menu.html +2 -2
- package/components/menu/demo/menu.html +4 -4
- package/components/menu/demo/radio-menu.html +2 -2
- package/components/meter/demo/meter.html +8 -8
- package/components/selection/demo/selection.html +1 -1
- package/components/status-indicator/demo/status-indicator.html +4 -4
- package/components/table/demo/table.html +1 -1
- package/components/tooltip/demo/tooltip.html +2 -2
- package/custom-elements.json +17 -0
- package/helpers/demo/gestures.html +1 -1
- package/helpers/mathjax.js +6 -0
- package/mixins/async-container/demo/async-container.html +1 -1
- package/package.json +4 -4
|
@@ -40,14 +40,14 @@
|
|
|
40
40
|
<d2l-status-indicator state="success" text="complete"></d2l-status-indicator>
|
|
41
41
|
</template>
|
|
42
42
|
</d2l-demo-snippet>
|
|
43
|
-
|
|
43
|
+
|
|
44
44
|
<h2>Alert</h2>
|
|
45
45
|
<d2l-demo-snippet>
|
|
46
46
|
<template>
|
|
47
47
|
<d2l-status-indicator state="alert" text="overdue"></d2l-status-indicator>
|
|
48
48
|
</template>
|
|
49
49
|
</d2l-demo-snippet>
|
|
50
|
-
|
|
50
|
+
|
|
51
51
|
<h2>None</h2>
|
|
52
52
|
<d2l-demo-snippet>
|
|
53
53
|
<template>
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
<d2l-demo-snippet>
|
|
88
88
|
<template>
|
|
89
89
|
<d2l-status-indicator state="alert" text="overdue"></d2l-status-indicator>
|
|
90
|
-
<span class="align-item" style="margin-left:10px;">Grade 6 Science</span>
|
|
90
|
+
<span class="align-item" style="margin-left: 10px;">Grade 6 Science</span>
|
|
91
91
|
<span class="align-item bullet">Assignment</span>
|
|
92
92
|
</template>
|
|
93
93
|
</d2l-demo-snippet>
|
|
@@ -96,4 +96,4 @@
|
|
|
96
96
|
|
|
97
97
|
</body>
|
|
98
98
|
|
|
99
|
-
</html>
|
|
99
|
+
</html>
|
|
@@ -14,14 +14,14 @@
|
|
|
14
14
|
</script>
|
|
15
15
|
<style>
|
|
16
16
|
.boundary {
|
|
17
|
-
position: relative;
|
|
18
17
|
background-color: var(--d2l-color-citrine);
|
|
19
18
|
box-sizing: border-box;
|
|
20
19
|
display: inline-block;
|
|
20
|
+
height: 175px;
|
|
21
21
|
padding-left: 150px;
|
|
22
22
|
padding-top: 60px;
|
|
23
|
+
position: relative;
|
|
23
24
|
width: 350px;
|
|
24
|
-
height: 175px;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.bounded {
|
package/custom-elements.json
CHANGED
|
@@ -3377,6 +3377,23 @@
|
|
|
3377
3377
|
"name": "d2l-html-block",
|
|
3378
3378
|
"path": "./components/html-block/html-block.js",
|
|
3379
3379
|
"description": "A component for displaying user-authored HTML.",
|
|
3380
|
+
"attributes": [
|
|
3381
|
+
{
|
|
3382
|
+
"name": "no-deferred-rendering",
|
|
3383
|
+
"description": "Whether to disable deferred rendering of the user-authored HTML. Do *not* set this\nunless your HTML relies on script executions that may break upon stamping.",
|
|
3384
|
+
"type": "Boolean",
|
|
3385
|
+
"default": "false"
|
|
3386
|
+
}
|
|
3387
|
+
],
|
|
3388
|
+
"properties": [
|
|
3389
|
+
{
|
|
3390
|
+
"name": "noDeferredRendering",
|
|
3391
|
+
"attribute": "no-deferred-rendering",
|
|
3392
|
+
"description": "Whether to disable deferred rendering of the user-authored HTML. Do *not* set this\nunless your HTML relies on script executions that may break upon stamping.",
|
|
3393
|
+
"type": "Boolean",
|
|
3394
|
+
"default": "false"
|
|
3395
|
+
}
|
|
3396
|
+
],
|
|
3380
3397
|
"slots": [
|
|
3381
3398
|
{
|
|
3382
3399
|
"name": "",
|
package/helpers/mathjax.js
CHANGED
|
@@ -4,6 +4,12 @@ let mathJaxLoaded;
|
|
|
4
4
|
|
|
5
5
|
export class HtmlBlockMathRenderer {
|
|
6
6
|
|
|
7
|
+
get canRenderInline() {
|
|
8
|
+
// The custom MathJax ShadowAdaptor creates a new document and renders
|
|
9
|
+
// its contents to the DOM.
|
|
10
|
+
return false;
|
|
11
|
+
}
|
|
12
|
+
|
|
7
13
|
get contextAttributes() {
|
|
8
14
|
return [mathjaxContextAttribute];
|
|
9
15
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.208.1",
|
|
4
4
|
"description": "A collection of accessible, free, open-source web components for building Brightspace applications",
|
|
5
5
|
"repository": "https://github.com/BrightspaceUI/core.git",
|
|
6
6
|
"publishConfig": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"lint": "npm run lint:eslint && npm run lint:style && npm run lint:lit",
|
|
15
15
|
"lint:eslint": "eslint . --ext .js,.html",
|
|
16
16
|
"lint:lit": "lit-analyzer \"{components,directives,helpers,mixins,templates,test,tools}/**/*.js\" --strict",
|
|
17
|
-
"lint:style": "stylelint \"**/*.js\"",
|
|
17
|
+
"lint:style": "stylelint \"**/*.{js,html}\"",
|
|
18
18
|
"start": "web-dev-server --node-resolve --watch --open",
|
|
19
19
|
"test": "npm run lint && npm run test:headless && npm run test:axe",
|
|
20
20
|
"test:axe": "web-test-runner --group aXe",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"license": "Apache-2.0",
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@babel/eslint-parser": "^7",
|
|
45
|
-
"@brightspace-ui/stylelint-config": "^0.
|
|
45
|
+
"@brightspace-ui/stylelint-config": "^0.3",
|
|
46
46
|
"@open-wc/testing": "^2",
|
|
47
47
|
"@web/dev-server": "^0.1",
|
|
48
48
|
"@web/test-runner": "^0.13",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"lit-analyzer": "^1",
|
|
59
59
|
"node-sass": "^6",
|
|
60
60
|
"sinon": "^12",
|
|
61
|
-
"stylelint": "^
|
|
61
|
+
"stylelint": "^14"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
64
|
"@brightspace-ui/intl": "^3",
|