@brightspace-ui/core 2.91.1 → 2.91.3

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.
@@ -32,9 +32,10 @@ class DialogFullscreen extends LocalizeCoreElement(AsyncContainerMixin(DialogMix
32
32
  * The preferred width (unit-less) for the dialog. Maximum 1170.
33
33
  */
34
34
  width: { type: Number },
35
- _hasFooterContent: { type: Boolean, attribute: false },
36
- _icon: { type: String, attribute: false },
37
- _headerStyle: { type: String, attribute: false },
35
+ _autoSize: { state: true }, /* DE52039 This is only redefined here to suppress a lit-analyzer linting issue */
36
+ _hasFooterContent: { state: true },
37
+ _icon: { state: true },
38
+ _headerStyle: { state: true },
38
39
  };
39
40
  }
40
41
 
@@ -42,22 +42,22 @@ export const DialogMixin = superclass => class extends RtlMixin(superclass) {
42
42
  * The optional title for the dialog
43
43
  */
44
44
  titleText: { type: String, attribute: 'title-text' },
45
- _autoSize: { type: Boolean, attribute: 'auto-size', reflect: true },
46
- _fullHeight: { type: Boolean, attribute: 'full-height', reflect: true },
47
- _fullscreenWithin: { type: Number },
48
- _height: { type: Number },
45
+ _autoSize: { state: true },
46
+ _fullHeight: { state: true },
47
+ _fullscreenWithin: { state: true },
48
+ _height: { state: true },
49
49
  _inIframe: { type: Boolean, attribute: 'in-iframe', reflect: true },
50
- _left: { type: Number },
51
- _margin: { type: Object },
52
- _nestedShowing: { type: Boolean },
53
- _overflowBottom: { type: Boolean },
54
- _overflowTop: { type: Boolean },
55
- _parentDialog: { type: Object },
56
- _scroll: { type: Boolean },
50
+ _left: { state: true },
51
+ _margin: { state: true },
52
+ _nestedShowing: { state: true },
53
+ _overflowBottom: { state: true },
54
+ _overflowTop: { state: true },
55
+ _parentDialog: { state: true },
56
+ _scroll: { state: true },
57
57
  _state: { type: String, reflect: true },
58
- _top: { type: Number },
59
- _width: { type: Number },
60
- _useNative: { type: Boolean }
58
+ _top: { state: true },
59
+ _width: { state: true },
60
+ _useNative: { state: true }
61
61
  };
62
62
  }
63
63
 
@@ -451,6 +451,7 @@ export const DialogMixin = superclass => class extends RtlMixin(superclass) {
451
451
 
452
452
  const dialogOuterClasses = {
453
453
  'd2l-dialog-outer': true,
454
+ 'd2l-dialog-outer-full-height': this._autoSize && this._fullHeight,
454
455
  'd2l-dialog-outer-overflow-bottom': this._overflowBottom,
455
456
  'd2l-dialog-outer-overflow-top': this._overflowTop,
456
457
  'd2l-dialog-outer-nested': !this._useNative && this._parentDialog,
@@ -31,11 +31,6 @@ export const dialogStyles = css`
31
31
  top: 75px;
32
32
  }
33
33
 
34
- :host([auto-size][full-height]) > .d2l-dialog-outer {
35
- bottom: 1.5rem;
36
- top: 1.5rem;
37
- }
38
-
39
34
  :host([_state="showing"]) > .d2l-dialog-outer {
40
35
  /* must target direct child to avoid ancestor from interfering with closing child dialogs in Legacy-Edge */
41
36
  animation: d2l-dialog-open 200ms ease-out;
@@ -51,6 +46,11 @@ export const dialogStyles = css`
51
46
  100% { opacity: 1; transform: translateY(0); }
52
47
  }
53
48
 
49
+ .d2l-dialog-outer.d2l-dialog-outer-full-height {
50
+ bottom: 1.5rem;
51
+ top: 1.5rem;
52
+ }
53
+
54
54
  .d2l-dialog-outer.d2l-dialog-outer-nested-showing {
55
55
  border-color: rgba(205, 213, 220, 0.35);
56
56
  box-shadow: none;
@@ -264,13 +264,17 @@ Note that when using multiple filter dimensions, the counts should be updated wh
264
264
 
265
265
  The `d2l-filter-dimension-set-empty-state` component allows you to customize the empty state components that are rendered in [d2l-filter-dimension-set](#d2l-filter-dimension-set). When placed in the `d2l-filter-dimension-set` empty state slots, it will replace the component's default empty state. This component can be placed in either the `set-empty-state` or the `search-empty-state` slots.
266
266
 
267
- <!-- docs: demo live name:d2l-filter-dimension-set-empty-state autoOpen:true autoSize:false size:large -->
267
+ <!-- docs: demo live name:d2l-filter-dimension-set-empty-state align:start autoOpen:true autoSize:false size:large -->
268
268
  ```html
269
269
  <script type="module">
270
270
  import '@brightspace-ui/core/components/filter/filter.js';
271
271
  import '@brightspace-ui/core/components/filter/filter-dimension-set.js';
272
272
  import '@brightspace-ui/core/components/filter/filter-dimension-set-empty-state.js';
273
273
  import '@brightspace-ui/core/components/filter/filter-dimension-set-value.js';
274
+
275
+ document.querySelector('d2l-filter').addEventListener('d2l-filter-dimension-empty-state-action', e => {
276
+ console.log(`Filter dimension empty state action clicked:\nkey: ${e.detail.key}\ntype: ${e.detail.type}`);
277
+ });
274
278
  </script>
275
279
  <d2l-filter>
276
280
  <d2l-filter-dimension-set key="course" text="Course" >
@@ -281,11 +285,6 @@ The `d2l-filter-dimension-set-empty-state` component allows you to customize the
281
285
  <d2l-filter-dimension-set-empty-state slot="set-empty-state" description="There are no available items." action-text="Add a course"></d2l-filter-dimension-set-empty-state>
282
286
  </d2l-filter-dimension-set>
283
287
  </d2l-filter>
284
- <script>
285
- document.querySelector('#filter-single').addEventListener('d2l-filter-dimension-empty-state-action', e => {
286
- console.log(`Filter dimension empty state action clicked:\nkey: ${e.detail.key}\ntype: ${e.detail.type}`);
287
- });
288
- </script>
289
288
  ```
290
289
  <!-- docs: start hidden content -->
291
290
  ### Properties
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "2.91.1",
3
+ "version": "2.91.3",
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",