@brightspace-ui/core 2.13.0 → 2.13.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.
|
@@ -7,6 +7,7 @@ import { heading3Styles } from '../typography/styles.js';
|
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* A simple confirmation dialog for prompting the user. Apply the "data-dialog-action" attribute to workflow buttons to automatically close the confirm dialog with the action value.
|
|
10
|
+
* @fires d2l-dialog-before-close - Dispatched with the action value before the dialog is closed for any reason, providing an opportunity to prevent the dialog from closing
|
|
10
11
|
* @slot footer - Slot for footer content such as workflow buttons
|
|
11
12
|
*/
|
|
12
13
|
class DialogConfirm extends DialogMixin(LitElement) {
|
|
@@ -14,6 +14,7 @@ const mediaQueryList = window.matchMedia('(max-width: 615px), (max-height: 420px
|
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* A generic fullscreen dialog that provides a slot for arbitrary content and a "footer" slot for workflow buttons. Apply the "data-dialog-action" attribute to workflow buttons to automatically close the dialog with the action value.
|
|
17
|
+
* @fires d2l-dialog-before-close - Dispatched with the action value before the dialog is closed for any reason, providing an opportunity to prevent the dialog from closing
|
|
17
18
|
* @slot - Default slot for content inside dialog
|
|
18
19
|
* @slot footer - Slot for footer content such as workflow buttons
|
|
19
20
|
*/
|
|
@@ -304,8 +304,6 @@ export const DialogMixin = superclass => class extends RtlMixin(superclass) {
|
|
|
304
304
|
}
|
|
305
305
|
|
|
306
306
|
_isCloseAborted() {
|
|
307
|
-
|
|
308
|
-
/** Dispatched with the action value before the dialog is closed for any reason, providing an opportunity to prevent the dialog from closing */
|
|
309
307
|
const abortEvent = new CustomEvent('d2l-dialog-before-close', {
|
|
310
308
|
cancelable: true,
|
|
311
309
|
detail: {
|
|
@@ -16,6 +16,7 @@ const mediaQueryList = window.matchMedia('(max-width: 615px), (max-height: 420px
|
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* A generic dialog that provides a slot for arbitrary content and a "footer" slot for workflow buttons. Apply the "data-dialog-action" attribute to workflow buttons to automatically close the dialog with the action value.
|
|
19
|
+
* @fires d2l-dialog-before-close - Dispatched with the action value before the dialog is closed for any reason, providing an opportunity to prevent the dialog from closing
|
|
19
20
|
* @slot - Default slot for content inside dialog
|
|
20
21
|
* @slot footer - Slot for footer content such as workflow buttons
|
|
21
22
|
*/
|
package/custom-elements.json
CHANGED
|
@@ -1522,11 +1522,12 @@
|
|
|
1522
1522
|
],
|
|
1523
1523
|
"events": [
|
|
1524
1524
|
{
|
|
1525
|
-
"name": "d2l-dialog-close",
|
|
1526
|
-
"description": "Dispatched with the action value
|
|
1525
|
+
"name": "d2l-dialog-before-close",
|
|
1526
|
+
"description": "Dispatched with the action value before the dialog is closed for any reason, providing an opportunity to prevent the dialog from closing"
|
|
1527
1527
|
},
|
|
1528
1528
|
{
|
|
1529
|
-
"name": "d2l-dialog-
|
|
1529
|
+
"name": "d2l-dialog-close",
|
|
1530
|
+
"description": "Dispatched with the action value when the dialog is closed for any reason"
|
|
1530
1531
|
},
|
|
1531
1532
|
{
|
|
1532
1533
|
"name": "d2l-dialog-open",
|
|
@@ -1596,11 +1597,12 @@
|
|
|
1596
1597
|
],
|
|
1597
1598
|
"events": [
|
|
1598
1599
|
{
|
|
1599
|
-
"name": "d2l-dialog-close",
|
|
1600
|
-
"description": "Dispatched with the action value
|
|
1600
|
+
"name": "d2l-dialog-before-close",
|
|
1601
|
+
"description": "Dispatched with the action value before the dialog is closed for any reason, providing an opportunity to prevent the dialog from closing"
|
|
1601
1602
|
},
|
|
1602
1603
|
{
|
|
1603
|
-
"name": "d2l-dialog-
|
|
1604
|
+
"name": "d2l-dialog-close",
|
|
1605
|
+
"description": "Dispatched with the action value when the dialog is closed for any reason"
|
|
1604
1606
|
},
|
|
1605
1607
|
{
|
|
1606
1608
|
"name": "d2l-dialog-open",
|
|
@@ -1700,11 +1702,12 @@
|
|
|
1700
1702
|
],
|
|
1701
1703
|
"events": [
|
|
1702
1704
|
{
|
|
1703
|
-
"name": "d2l-dialog-close",
|
|
1704
|
-
"description": "Dispatched with the action value
|
|
1705
|
+
"name": "d2l-dialog-before-close",
|
|
1706
|
+
"description": "Dispatched with the action value before the dialog is closed for any reason, providing an opportunity to prevent the dialog from closing"
|
|
1705
1707
|
},
|
|
1706
1708
|
{
|
|
1707
|
-
"name": "d2l-dialog-
|
|
1709
|
+
"name": "d2l-dialog-close",
|
|
1710
|
+
"description": "Dispatched with the action value when the dialog is closed for any reason"
|
|
1708
1711
|
},
|
|
1709
1712
|
{
|
|
1710
1713
|
"name": "d2l-dialog-open",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "2.13.
|
|
3
|
+
"version": "2.13.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",
|