@brightspace-ui/core 3.40.2 → 3.41.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.
@@ -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" title-text="Confirm Title" text="Are you sure you want more cookies?">
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
  */
@@ -103,7 +103,7 @@ Circle meters display data in a compact circle format, so they're useful when ho
103
103
  ## Light Foreground
104
104
  All `meter` components have a `foreground-light` style that ensures accessible contrast levels when displayed against a dark background.
105
105
 
106
- <!-- docs: demo code darkMode:true sandboxTitle:'Meter - Light Foreground' -->
106
+ <!-- docs: demo code darkMode:true -->
107
107
  ```html
108
108
  <script type="module">
109
109
  import '@brightspace-ui/core/components/meter/meter-linear.js';
@@ -2062,7 +2062,7 @@
2062
2062
  },
2063
2063
  {
2064
2064
  "name": "title-text",
2065
- "description": "The optional title for the dialog",
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": "The optional title for the dialog",
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": "The optional title for the dialog",
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": "The optional title for the dialog",
2240
+ "description": "REQUIRED: the title for the dialog",
2241
2241
  "type": "string"
2242
2242
  },
2243
2243
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "3.40.2",
3
+ "version": "3.41.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",