@brightspace-ui/core 3.216.1 → 3.217.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/custom-elements.json
CHANGED
|
@@ -15603,12 +15603,12 @@
|
|
|
15603
15603
|
],
|
|
15604
15604
|
"events": [
|
|
15605
15605
|
{
|
|
15606
|
-
"name": "d2l-
|
|
15607
|
-
"description": "Dispatched when a user begins moving the divider."
|
|
15606
|
+
"name": "d2l-iframe-pointer-events-disable",
|
|
15607
|
+
"description": "Dispatched when a user begins moving the divider to instruct iframe owners to disable pointer events."
|
|
15608
15608
|
},
|
|
15609
15609
|
{
|
|
15610
|
-
"name": "d2l-
|
|
15611
|
-
"description": "Dispatched when a user finishes moving the divider."
|
|
15610
|
+
"name": "d2l-iframe-pointer-events-enable",
|
|
15611
|
+
"description": "Dispatched when a user finishes moving the divider to instruct iframe owners to re-enable pointer events."
|
|
15612
15612
|
},
|
|
15613
15613
|
{
|
|
15614
15614
|
"name": "d2l-template-primary-secondary-form-invalid",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.217.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",
|
|
@@ -47,7 +47,7 @@ Note: this template automatically includes `<header>`, `<main>`, `<aside>` and `
|
|
|
47
47
|
|
|
48
48
|
### IFrames
|
|
49
49
|
|
|
50
|
-
If either of the panels contain an `iframe`, resizing may not work properly. This occurs because `iframe`s prevent the page template from receiving mouse events. To handle situations like these, setting `pointer-events: none` for the `iframe` is recommended during resizing. This can be done by listening for `d2l-
|
|
50
|
+
If either of the panels contain an `iframe`, resizing may not work properly. This occurs because `iframe`s prevent the page template from receiving mouse events. To handle situations like these, setting `pointer-events: none` for the `iframe` is recommended during resizing. This can be done by listening for `d2l-iframe-pointer-events-disable` and `d2l-iframe-pointer-events-enable` events.
|
|
51
51
|
|
|
52
52
|
<!-- docs: start hidden content -->
|
|
53
53
|
### Properties
|
|
@@ -63,8 +63,8 @@ If either of the panels contain an `iframe`, resizing may not work properly. Thi
|
|
|
63
63
|
| `width-type` | String, default: `'fullscreen'` | Whether content fills the screen or not. When set to `normal`, the width of the template is constrained to `1230px`. Can be one of `'fullscreen'`, `'normal'`. |
|
|
64
64
|
|
|
65
65
|
### Events
|
|
66
|
-
* `d2l-
|
|
67
|
-
* `d2l-
|
|
66
|
+
* `d2l-iframe-pointer-events-disable`: dispatched when a user begins moving the divider to instruct iframe owners to disable pointer events
|
|
67
|
+
* `d2l-iframe-pointer-events-enable`: dispatched when a user finishes moving the divider to instruct iframe owners to re-enable pointer events.
|
|
68
68
|
|
|
69
69
|
### Slots
|
|
70
70
|
* `header`: page header content
|
|
@@ -547,8 +547,8 @@ class MobileTouchResizer extends Resizer {
|
|
|
547
547
|
* @slot footer - Page footer content
|
|
548
548
|
* @slot primary - Main page content
|
|
549
549
|
* @slot secondary - Supplementary page content
|
|
550
|
-
* @fires d2l-
|
|
551
|
-
* @fires d2l-
|
|
550
|
+
* @fires d2l-iframe-pointer-events-disable - Dispatched when a user begins moving the divider to instruct iframe owners to disable pointer events.
|
|
551
|
+
* @fires d2l-iframe-pointer-events-enable - Dispatched when a user finishes moving the divider to instruct iframe owners to re-enable pointer events.
|
|
552
552
|
* @fires d2l-template-primary-secondary-form-invalid Dispatched when the form fails validation. The error map can be obtained from the detail's errors property.
|
|
553
553
|
* @fires d2l-template-primary-secondary-form-dirty Dispatched whenever any form element fires an input or change event. Can be used to track whether the form is dirty or not.
|
|
554
554
|
* @fires d2l-template-primary-secondary-form-submit Dispatched when the form is submitted. The form data can be obtained from the detail's formData property.
|
|
@@ -1262,10 +1262,18 @@ class TemplatePrimarySecondary extends LocalizeCoreElement(LitElement) {
|
|
|
1262
1262
|
}
|
|
1263
1263
|
|
|
1264
1264
|
_onPanelResizeEnd() {
|
|
1265
|
+
this.dispatchEvent(new CustomEvent('d2l-iframe-pointer-events-enable', { bubbles: true, composed: true }));
|
|
1266
|
+
/**
|
|
1267
|
+
* @ignore
|
|
1268
|
+
*/
|
|
1265
1269
|
this.dispatchEvent(new CustomEvent('d2l-template-primary-secondary-resize-end', { bubbles: true, composed: true }));
|
|
1266
1270
|
}
|
|
1267
1271
|
|
|
1268
1272
|
_onPanelResizeStart() {
|
|
1273
|
+
this.dispatchEvent(new CustomEvent('d2l-iframe-pointer-events-disable', { bubbles: true, composed: true }));
|
|
1274
|
+
/**
|
|
1275
|
+
* @ignore
|
|
1276
|
+
*/
|
|
1269
1277
|
this.dispatchEvent(new CustomEvent('d2l-template-primary-secondary-resize-start', { bubbles: true, composed: true }));
|
|
1270
1278
|
}
|
|
1271
1279
|
|