@brightspace-ui/core 2.2.1 → 2.3.2
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/components/alert/alert-toast.js +2 -2
- package/components/alert/alert.js +2 -2
- package/components/backdrop/backdrop.js +1 -1
- package/components/breadcrumbs/breadcrumb-current-page.js +1 -1
- package/components/breadcrumbs/breadcrumb.js +2 -2
- package/components/breadcrumbs/breadcrumbs.js +1 -1
- package/components/button/button-icon.js +2 -2
- package/components/button/button-styles.js +1 -1
- package/components/button/button-subtle.js +42 -18
- package/components/button/button.js +2 -2
- package/components/button/demo/button-subtle.html +16 -5
- package/components/button/floating-buttons.js +2 -2
- package/components/calendar/calendar.js +3 -3
- package/components/card/card-content-meta.js +1 -1
- package/components/card/card-content-title.js +1 -1
- package/components/card/card-footer-link.js +2 -2
- package/components/card/card-loading-shimmer.js +1 -1
- package/components/card/card.js +4 -4
- package/components/colors/demo/color-swatch.js +1 -1
- package/components/count-badge/count-badge-icon.js +2 -2
- package/components/count-badge/count-badge-mixin.js +2 -2
- package/components/count-badge/count-badge.js +2 -2
- package/components/demo/code-dark-plus-styles.js +1 -1
- package/components/demo/code-tomorrow-styles.js +1 -1
- package/components/demo/code-view-styles.js +1 -1
- package/components/demo/code-view.js +2 -2
- package/components/demo/demo-page.js +1 -1
- package/components/demo/demo-snippet.js +1 -1
- package/components/dialog/demo/dialog-async-content.js +1 -1
- package/components/dialog/demo/dialog-container.js +1 -1
- package/components/dialog/dialog-confirm.js +1 -1
- package/components/dialog/dialog-fullscreen.js +3 -3
- package/components/dialog/dialog-mixin.js +4 -4
- package/components/dialog/dialog-styles.js +1 -1
- package/components/dialog/dialog.js +4 -4
- package/components/dropdown/dropdown-button-subtle.js +2 -2
- package/components/dropdown/dropdown-button.js +1 -1
- package/components/dropdown/dropdown-content-mixin.js +3 -3
- package/components/dropdown/dropdown-content-styles.js +1 -1
- package/components/dropdown/dropdown-content.js +1 -1
- package/components/dropdown/dropdown-context-menu.js +1 -1
- package/components/dropdown/dropdown-menu.js +1 -1
- package/components/dropdown/dropdown-more.js +1 -1
- package/components/dropdown/dropdown-opener-styles.js +1 -1
- package/components/dropdown/dropdown-tabs.js +1 -1
- package/components/dropdown/dropdown.js +1 -1
- package/components/expand-collapse/expand-collapse-content.js +2 -2
- package/components/filter/README.md +1 -1
- package/components/filter/demo/filter-search-demo.js +1 -1
- package/components/filter/filter-dimension-set-value.js +1 -1
- package/components/filter/filter-dimension-set.js +1 -1
- package/components/filter/filter.js +3 -3
- package/components/focus-trap/focus-trap.js +2 -2
- package/components/form/demo/form-demo.js +1 -1
- package/components/form/demo/form-dialog-demo.js +1 -1
- package/components/form/demo/form-native-demo.js +1 -1
- package/components/form/demo/form-panel-demo.js +1 -1
- package/components/form/form-errory-summary.js +1 -1
- package/components/form/form-native.js +1 -1
- package/components/form/form.js +1 -1
- package/components/hierarchical-view/README.md +1 -1
- package/components/hierarchical-view/hierarchical-view-mixin.js +1 -1
- package/components/hierarchical-view/hierarchical-view.js +1 -1
- package/components/html-block/README.md +2 -2
- package/components/html-block/demo/html-block.html +4 -4
- package/components/html-block/html-block.js +1 -1
- package/components/icons/demo/icon-color-override.js +1 -1
- package/components/icons/demo/icon-size-override.js +1 -1
- package/components/icons/icon-custom.js +1 -1
- package/components/icons/icon-styles.js +1 -1
- package/components/icons/icon.js +2 -2
- package/components/inputs/demo/input-radio-label-simple-test.js +1 -1
- package/components/inputs/demo/input-radio-label-test.js +1 -1
- package/components/inputs/demo/input-radio-solo-test.js +1 -1
- package/components/inputs/demo/input-radio-spacer-test.js +1 -1
- package/components/inputs/demo/input-select-test.js +1 -1
- package/components/inputs/docs/input-checkbox.md +1 -1
- package/components/inputs/docs/input-radio.md +3 -3
- package/components/inputs/docs/input-select-styles.md +2 -2
- package/components/inputs/docs/input-text.md +2 -2
- package/components/inputs/input-checkbox-spacer.js +1 -1
- package/components/inputs/input-checkbox.js +3 -3
- package/components/inputs/input-date-range.js +2 -2
- package/components/inputs/input-date-time-range-to.js +2 -2
- package/components/inputs/input-date-time-range.js +2 -2
- package/components/inputs/input-date-time.js +3 -3
- package/components/inputs/input-date.js +3 -3
- package/components/inputs/input-fieldset.js +2 -2
- package/components/inputs/input-label-styles.js +1 -1
- package/components/inputs/input-number.js +2 -2
- package/components/inputs/input-percent.js +2 -2
- package/components/inputs/input-radio-spacer.js +1 -1
- package/components/inputs/input-radio-styles.js +1 -1
- package/components/inputs/input-search.js +2 -2
- package/components/inputs/input-select-styles.js +1 -1
- package/components/inputs/input-styles.js +1 -1
- package/components/inputs/input-text.js +4 -4
- package/components/inputs/input-textarea.js +3 -3
- package/components/inputs/input-time-range.js +2 -2
- package/components/inputs/input-time.js +2 -2
- package/components/link/README.md +1 -1
- package/components/link/link.js +3 -3
- package/components/list/README.md +1 -1
- package/components/list/demo/list-drag-and-drop-position.js +3 -3
- package/components/list/demo/list-drag-and-drop.js +3 -3
- package/components/list/demo/list-item-custom.js +1 -1
- package/components/list/list-header.js +2 -2
- package/components/list/list-item-button-mixin.js +1 -1
- package/components/list/list-item-button.js +1 -1
- package/components/list/list-item-checkbox-mixin.js +2 -3
- package/components/list/list-item-content.js +1 -1
- package/components/list/list-item-drag-drop-mixin.js +3 -4
- package/components/list/list-item-drag-handle.js +1 -1
- package/components/list/list-item-drag-image.js +1 -1
- package/components/list/list-item-generic-layout.js +3 -1
- package/components/list/list-item-link-mixin.js +1 -1
- package/components/list/list-item-mixin.js +3 -4
- package/components/list/list-item-placement-marker.js +1 -1
- package/components/list/list-item.js +1 -1
- package/components/list/list.js +1 -1
- package/components/loading-spinner/demo/loading-spinner-override.js +1 -1
- package/components/loading-spinner/loading-spinner.js +1 -1
- package/components/menu/demo/custom-menu-item.js +1 -1
- package/components/menu/demo/custom-view.js +1 -1
- package/components/menu/menu-item-checkbox.js +1 -1
- package/components/menu/menu-item-link.js +2 -2
- package/components/menu/menu-item-radio.js +1 -1
- package/components/menu/menu-item-return.js +1 -1
- package/components/menu/menu-item-selectable-styles.js +1 -1
- package/components/menu/menu-item-separator.js +1 -1
- package/components/menu/menu-item-styles.js +1 -1
- package/components/menu/menu-item.js +1 -1
- package/components/menu/menu.js +1 -1
- package/components/meter/meter-circle.js +2 -2
- package/components/meter/meter-linear.js +2 -2
- package/components/meter/meter-radial.js +2 -2
- package/components/more-less/more-less.js +4 -4
- package/components/offscreen/demo/offscreen-demo.js +1 -1
- package/components/offscreen/offscreen.js +1 -1
- package/components/overflow-group/overflow-group.js +2 -2
- package/components/scroll-wrapper/demo/scroll-wrapper-test.js +2 -2
- package/components/scroll-wrapper/scroll-wrapper.js +2 -2
- package/components/selection/README.md +1 -1
- package/components/selection/demo/demo-selection.js +1 -1
- package/components/selection/selection-action-dropdown.js +2 -2
- package/components/selection/selection-action-menu-item.js +1 -1
- package/components/selection/selection-action.js +2 -2
- package/components/selection/selection-input.js +3 -3
- package/components/selection/selection-select-all-pages.js +1 -1
- package/components/selection/selection-select-all.js +2 -2
- package/components/selection/selection-summary.js +1 -1
- package/components/skeleton/demo/skeleton-test-box.js +1 -1
- package/components/skeleton/demo/skeleton-test-container.js +1 -1
- package/components/skeleton/demo/skeleton-test-heading.js +1 -1
- package/components/skeleton/demo/skeleton-test-link.js +2 -2
- package/components/skeleton/demo/skeleton-test-paragraph.js +2 -2
- package/components/skeleton/demo/skeleton-test-stack.js +1 -1
- package/components/skeleton/demo/skeleton-test-width.js +1 -1
- package/components/skeleton/skeleton-mixin.js +1 -1
- package/components/status-indicator/status-indicator.js +1 -1
- package/components/switch/switch-mixin.js +2 -2
- package/components/switch/switch-visibility.js +1 -1
- package/components/switch/switch.js +1 -1
- package/components/table/README.md +3 -3
- package/components/table/demo/table-test.js +1 -1
- package/components/table/table-col-sort-button.js +1 -1
- package/components/table/table-wrapper.js +1 -1
- package/components/tabs/tab-internal.js +1 -1
- package/components/tabs/tab-panel-mixin.js +1 -1
- package/components/tabs/tab-panel.js +1 -1
- package/components/tabs/tabs.js +4 -4
- package/components/tag-list/tag-list-item-mixin.js +1 -1
- package/components/tag-list/tag-list-item.js +1 -1
- package/components/tag-list/tag-list.js +1 -1
- package/components/tooltip/tooltip.js +2 -2
- package/components/typography/styles.js +1 -1
- package/components/validation/validation-custom.js +1 -1
- package/custom-elements.json +13 -0
- package/directives/animate/animate.js +3 -3
- package/directives/animate/demo/animate-test.js +1 -1
- package/directives/run-async/run-async.js +4 -4
- package/helpers/demo/announce-test.js +1 -1
- package/helpers/demo/dismissible-test.js +1 -1
- package/lang/cy.js +2 -2
- package/lang/da.js +1 -1
- package/lang/de.js +2 -2
- package/lang/fr-fr.js +1 -1
- package/lang/hi.js +2 -2
- package/lang/ko.js +1 -1
- package/lang/nl.js +1 -1
- package/lang/pt.js +1 -1
- package/lang/sv.js +1 -1
- package/mixins/arrow-keys-mixin.js +1 -1
- package/mixins/async-container/demo/async-container.js +1 -1
- package/mixins/async-container/demo/async-item.js +1 -1
- package/mixins/demo/arrow-keys-test.js +1 -1
- package/mixins/demo/labelled-mixin.html +2 -2
- package/mixins/demo/localize-test.js +1 -1
- package/mixins/visible-on-ancestor-mixin.js +1 -1
- package/package.json +2 -3
- package/templates/primary-secondary/primary-secondary.js +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { css, html, LitElement } from 'lit
|
|
1
|
+
import { css, html, LitElement } from 'lit';
|
|
2
2
|
import { bodyCompactStyles } from '../typography/styles.js';
|
|
3
3
|
import { LocalizeCoreElement } from '../../helpers/localize-core-element.js';
|
|
4
4
|
import { SelectionInfo } from './selection-mixin.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../../colors/colors.js';
|
|
2
|
-
import { css, html, LitElement } from 'lit
|
|
2
|
+
import { css, html, LitElement } from 'lit';
|
|
3
3
|
import { SkeletonMixin } from '../skeleton-mixin.js';
|
|
4
4
|
|
|
5
5
|
export class SkeletonTestBox extends SkeletonMixin(LitElement) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../colors/colors.js';
|
|
2
2
|
import '../../inputs/input-checkbox.js';
|
|
3
|
-
import { css, html, LitElement } from 'lit
|
|
3
|
+
import { css, html, LitElement } from 'lit';
|
|
4
4
|
import { bodyCompactStyles } from '../../typography/styles.js';
|
|
5
5
|
import { SkeletonMixin } from '../skeleton-mixin.js';
|
|
6
6
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { css, html, LitElement } from 'lit
|
|
1
|
+
import { css, html, LitElement } from 'lit';
|
|
2
2
|
import { heading1Styles, heading2Styles, heading3Styles, heading4Styles } from '../../typography/styles.js';
|
|
3
3
|
import { SkeletonMixin } from '../skeleton-mixin.js';
|
|
4
4
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { css, html, LitElement } from 'lit
|
|
2
|
-
import { classMap } from 'lit
|
|
1
|
+
import { css, html, LitElement } from 'lit';
|
|
2
|
+
import { classMap } from 'lit/directives/class-map.js';
|
|
3
3
|
import { linkStyles } from '../../link/link.js';
|
|
4
4
|
import { SkeletonMixin } from '../skeleton-mixin.js';
|
|
5
5
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { bodyCompactStyles, bodySmallStyles, bodyStandardStyles, labelStyles } from '../../typography/styles.js';
|
|
2
|
-
import { css, html, LitElement } from 'lit
|
|
3
|
-
import { classMap } from 'lit
|
|
2
|
+
import { css, html, LitElement } from 'lit';
|
|
3
|
+
import { classMap } from 'lit/directives/class-map.js';
|
|
4
4
|
import { SkeletonMixin } from '../skeleton-mixin.js';
|
|
5
5
|
|
|
6
6
|
export class SkeletonTestParagraph extends SkeletonMixin(LitElement) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../../colors/colors.js';
|
|
2
|
-
import { css, html, LitElement } from 'lit
|
|
2
|
+
import { css, html, LitElement } from 'lit';
|
|
3
3
|
import { SkeletonMixin } from '../skeleton-mixin.js';
|
|
4
4
|
|
|
5
5
|
export class SkeletonTestStack extends SkeletonMixin(LitElement) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../colors/colors.js';
|
|
2
|
-
import { css, html, LitElement } from 'lit
|
|
2
|
+
import { css, html, LitElement } from 'lit';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* A component for communicating the status of an item. It is non-interactive and used to assert prominence on state.
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import '../colors/colors.js';
|
|
2
2
|
import '../tooltip/tooltip.js';
|
|
3
|
-
import { css, html } from 'lit
|
|
3
|
+
import { css, html } from 'lit';
|
|
4
4
|
import { FocusMixin } from '../../mixins/focus-mixin.js';
|
|
5
5
|
import { FocusVisiblePolyfillMixin } from '../../mixins/focus-visible-polyfill-mixin.js';
|
|
6
6
|
import { getUniqueId } from '../../helpers/uniqueId.js';
|
|
7
|
-
import { ifDefined } from 'lit
|
|
7
|
+
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
8
8
|
import { RtlMixin } from '../../mixins/rtl-mixin.js';
|
|
9
9
|
|
|
10
10
|
export const SwitchMixin = superclass => class extends FocusMixin(RtlMixin(FocusVisiblePolyfillMixin(superclass))) {
|
|
@@ -51,7 +51,7 @@ The `d2l-table-wrapper` element can be combined with table styles to apply defau
|
|
|
51
51
|
<!-- docs: demo live name:d2l-test-table display:block -->
|
|
52
52
|
```html
|
|
53
53
|
<script type="module">
|
|
54
|
-
import { html, LitElement } from 'lit
|
|
54
|
+
import { html, LitElement } from 'lit';
|
|
55
55
|
import { tableStyles } from '@brightspace-ui/core/components/table/table-wrapper.js';
|
|
56
56
|
|
|
57
57
|
const fruits = ['Apples', 'Oranges', 'Bananas'];
|
|
@@ -157,7 +157,7 @@ When tabular data can be sorted, the `<d2l-table-col-sort-button>` can be used t
|
|
|
157
157
|
```html
|
|
158
158
|
<script type="module">
|
|
159
159
|
import '@brightspace-ui/core/components/table/table-col-sort-button.js';
|
|
160
|
-
import { html, LitElement } from 'lit
|
|
160
|
+
import { html, LitElement } from 'lit';
|
|
161
161
|
import { tableStyles } from '@brightspace-ui/core/components/table/table-wrapper.js';
|
|
162
162
|
|
|
163
163
|
class MySortableTableElem extends LitElement {
|
|
@@ -257,7 +257,7 @@ If your table supports row selection, apply the `selected` attribute to `<tr>` r
|
|
|
257
257
|
<!-- docs: demo -->
|
|
258
258
|
```html
|
|
259
259
|
<script type="module">
|
|
260
|
-
import { html, LitElement } from 'lit
|
|
260
|
+
import { html, LitElement } from 'lit';
|
|
261
261
|
import { tableStyles } from '@brightspace-ui/core/components/table/table-wrapper.js';
|
|
262
262
|
|
|
263
263
|
class MySelectableTableElem extends LitElement {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../colors/colors.js';
|
|
2
2
|
import '../scroll-wrapper/scroll-wrapper.js';
|
|
3
|
-
import { css, html, LitElement } from 'lit
|
|
3
|
+
import { css, html, LitElement } from 'lit';
|
|
4
4
|
import { RtlMixin } from '../../mixins/rtl-mixin.js';
|
|
5
5
|
|
|
6
6
|
export const tableStyles = css`
|
package/components/tabs/tabs.js
CHANGED
|
@@ -2,17 +2,17 @@ import '../colors/colors.js';
|
|
|
2
2
|
import '../icons/icon.js';
|
|
3
3
|
import '../../helpers/queueMicrotask.js';
|
|
4
4
|
import './tab-internal.js';
|
|
5
|
-
import { css, html, LitElement } from 'lit
|
|
5
|
+
import { css, html, LitElement } from 'lit';
|
|
6
6
|
import { cssEscape, findComposedAncestor } from '../../helpers/dom.js';
|
|
7
7
|
import { ArrowKeysMixin } from '../../mixins/arrow-keys-mixin.js';
|
|
8
8
|
import { bodyCompactStyles } from '../typography/styles.js';
|
|
9
|
-
import { classMap } from 'lit
|
|
9
|
+
import { classMap } from 'lit/directives/class-map.js';
|
|
10
10
|
import { FocusVisiblePolyfillMixin } from '../../mixins/focus-visible-polyfill-mixin.js';
|
|
11
11
|
import { LocalizeCoreElement } from '../../helpers/localize-core-element.js';
|
|
12
|
-
import { repeat } from 'lit
|
|
12
|
+
import { repeat } from 'lit/directives/repeat.js';
|
|
13
13
|
import ResizeObserver from 'resize-observer-polyfill/dist/ResizeObserver.es.js';
|
|
14
14
|
import { RtlMixin } from '../../mixins/rtl-mixin.js';
|
|
15
|
-
import { styleMap } from 'lit
|
|
15
|
+
import { styleMap } from 'lit/directives/style-map.js';
|
|
16
16
|
|
|
17
17
|
const reduceMotion = matchMedia('(prefers-reduced-motion: reduce)').matches;
|
|
18
18
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { clearDismissible, setDismissible } from '../../helpers/dismissible.js';
|
|
2
|
-
import { css, html, LitElement } from 'lit
|
|
2
|
+
import { css, html, LitElement } from 'lit';
|
|
3
3
|
import { cssEscape, elemIdListAdd, getBoundingAncestor, getOffsetParent } from '../../helpers/dom.js';
|
|
4
4
|
import { announce } from '../../helpers/announce.js';
|
|
5
5
|
import { bodySmallStyles } from '../typography/styles.js';
|
|
@@ -7,7 +7,7 @@ import { getUniqueId } from '../../helpers/uniqueId.js';
|
|
|
7
7
|
import { isFocusable } from '../../helpers/focus.js';
|
|
8
8
|
import ResizeObserver from 'resize-observer-polyfill/dist/ResizeObserver.es.js';
|
|
9
9
|
import { RtlMixin } from '../../mixins/rtl-mixin.js';
|
|
10
|
-
import { styleMap } from 'lit
|
|
10
|
+
import { styleMap } from 'lit/directives/style-map.js';
|
|
11
11
|
|
|
12
12
|
let logAccessibilityWarning = true;
|
|
13
13
|
|
package/custom-elements.json
CHANGED
|
@@ -457,6 +457,12 @@
|
|
|
457
457
|
"type": "boolean",
|
|
458
458
|
"default": "false"
|
|
459
459
|
},
|
|
460
|
+
{
|
|
461
|
+
"name": "slim",
|
|
462
|
+
"description": "Whether to render the slimmer version of the button",
|
|
463
|
+
"type": "boolean",
|
|
464
|
+
"default": "false"
|
|
465
|
+
},
|
|
460
466
|
{
|
|
461
467
|
"name": "disabled-tooltip",
|
|
462
468
|
"description": "Tooltip text when disabled",
|
|
@@ -501,6 +507,13 @@
|
|
|
501
507
|
"type": "boolean",
|
|
502
508
|
"default": "false"
|
|
503
509
|
},
|
|
510
|
+
{
|
|
511
|
+
"name": "slim",
|
|
512
|
+
"attribute": "slim",
|
|
513
|
+
"description": "Whether to render the slimmer version of the button",
|
|
514
|
+
"type": "boolean",
|
|
515
|
+
"default": "false"
|
|
516
|
+
},
|
|
504
517
|
{
|
|
505
518
|
"name": "disabledTooltip",
|
|
506
519
|
"attribute": "disabled-tooltip",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { directive, PartType } from 'lit
|
|
1
|
+
import { directive, PartType } from 'lit/directive.js';
|
|
2
2
|
import { getComposedActiveElement, getNextFocusable } from '../../helpers/focus.js';
|
|
3
|
-
import { AsyncDirective } from 'lit
|
|
3
|
+
import { AsyncDirective } from 'lit/async-directive.js';
|
|
4
4
|
import { isComposedAncestor } from '../../helpers/dom.js';
|
|
5
|
-
import { noChange } from 'lit
|
|
5
|
+
import { noChange } from 'lit';
|
|
6
6
|
|
|
7
7
|
const stateMap = new WeakMap();
|
|
8
8
|
const reduceMotion = matchMedia('(prefers-reduced-motion: reduce)').matches;
|
|
@@ -2,7 +2,7 @@ import '../../../components/button/button.js';
|
|
|
2
2
|
import '../../../components/inputs/input-checkbox.js';
|
|
3
3
|
import '../../../components/list/list.js';
|
|
4
4
|
import '../../../components/list/list-item.js';
|
|
5
|
-
import { css, html, LitElement } from 'lit
|
|
5
|
+
import { css, html, LitElement } from 'lit';
|
|
6
6
|
import { hide, show } from '../animate.js';
|
|
7
7
|
|
|
8
8
|
export class AnimateTest extends LitElement {
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
* subject to an additional IP rights grant found at
|
|
17
17
|
* http://polymer.github.io/PATENTS.txt
|
|
18
18
|
*/
|
|
19
|
-
import { AsyncDirective } from 'lit
|
|
19
|
+
import { AsyncDirective } from 'lit/async-directive.js';
|
|
20
20
|
import { AsyncStateEvent } from '../../helpers/asyncStateEvent.js';
|
|
21
|
-
import { directive } from 'lit
|
|
22
|
-
import { noChange } from 'lit
|
|
21
|
+
import { directive } from 'lit/directive.js';
|
|
22
|
+
import { noChange } from 'lit';
|
|
23
23
|
|
|
24
24
|
const hasAbortController = typeof AbortController === 'function';
|
|
25
25
|
|
|
@@ -119,7 +119,7 @@ class RunAsync extends AsyncDirective {
|
|
|
119
119
|
|
|
120
120
|
/**
|
|
121
121
|
* Runs an async function whenever the key changes, and calls one of several
|
|
122
|
-
*
|
|
122
|
+
* Lit template functions depending on the state of the async call:
|
|
123
123
|
*
|
|
124
124
|
* - success() is called when the result of the function resolves.
|
|
125
125
|
* - pending() is called immediately
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../components/inputs/input-text.js';
|
|
2
2
|
import '../../components/button/button.js';
|
|
3
|
-
import { css, html, LitElement } from 'lit
|
|
3
|
+
import { css, html, LitElement } from 'lit';
|
|
4
4
|
import { announce } from '../announce.js';
|
|
5
5
|
|
|
6
6
|
class AnnounceTest extends LitElement {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '../../components/colors/colors.js';
|
|
2
2
|
import { clearDismissible, setDismissible } from '../../helpers/dismissible.js';
|
|
3
|
-
import { css, html, LitElement } from 'lit
|
|
3
|
+
import { css, html, LitElement } from 'lit';
|
|
4
4
|
|
|
5
5
|
class DismissibleTest extends LitElement {
|
|
6
6
|
|
package/lang/cy.js
CHANGED
|
@@ -18,10 +18,10 @@ export default {
|
|
|
18
18
|
"components.filter.clearDescription": "Wrthi’n clirio hidlwyd ar gyfer: {filterName}",
|
|
19
19
|
"components.filter.clearDescriptionSingle": "Clirio Hidlwyr",
|
|
20
20
|
"components.filter.loading": "Wrthi’n llwytho hidlyddion",
|
|
21
|
-
"components.filter.filterCountDescription": "{number, plural, zero {
|
|
21
|
+
"components.filter.filterCountDescription": "{number, plural, zero {Dim hildwyr wedi'u gweithredu.} one {1 hidlydd wedi'i weithredu.} other {{number} hidlydd wedi'u gweithredu.}}",
|
|
22
22
|
"components.filter.filters": "Hidlyddion",
|
|
23
23
|
"components.filter.noFilters": "Dim hidlyddion ar gael",
|
|
24
|
-
"components.filter.searchResults": "{number, plural, zero {Dim canlyniadau chwilio} one {1 canlyniad chwilio} other {{number}
|
|
24
|
+
"components.filter.searchResults": "{number, plural, zero {Dim canlyniadau chwilio} one {1 canlyniad chwilio} other {{number} canlyniad chwilio}}",
|
|
25
25
|
"components.filter.singleDimensionDescription": "Hidlo yn ôl: {filterName}",
|
|
26
26
|
"components.form-element.defaultError": "Mae {label} yn annilys.",
|
|
27
27
|
"components.form-element.defaultFieldLabel": "Maes",
|
package/lang/da.js
CHANGED
|
@@ -21,7 +21,7 @@ export default {
|
|
|
21
21
|
"components.filter.filterCountDescription": "{number, plural, =0 {Ingen filtre anvendt.} one {1 filter anvendt.} other {{number} filtre anvendt.}}",
|
|
22
22
|
"components.filter.filters": "Filtre",
|
|
23
23
|
"components.filter.noFilters": "Ingen tilgængelige filtre",
|
|
24
|
-
"components.filter.searchResults": "{number, plural, =0 {
|
|
24
|
+
"components.filter.searchResults": "{number, plural, =0 {Ingen søgeresultater} one {1 søgeresultat} other {{number} søgeresultater}}",
|
|
25
25
|
"components.filter.singleDimensionDescription": "Filtrer efter: {filterName}",
|
|
26
26
|
"components.form-element.defaultError": "{label} er ugyldigt.",
|
|
27
27
|
"components.form-element.defaultFieldLabel": "Felt",
|
package/lang/de.js
CHANGED
|
@@ -18,10 +18,10 @@ export default {
|
|
|
18
18
|
"components.filter.clearDescription": "Filter für {filterName} löschen",
|
|
19
19
|
"components.filter.clearDescriptionSingle": "Filter löschen",
|
|
20
20
|
"components.filter.loading": "Filter werden geladen",
|
|
21
|
-
"components.filter.filterCountDescription": "{number, plural, =0 {Keine Filter angewendet.} one {1
|
|
21
|
+
"components.filter.filterCountDescription": "{number, plural, =0 {Keine Filter angewendet.} one {1 Filter angewendet.} other {{number} Filter angewendet.}}",
|
|
22
22
|
"components.filter.filters": "Filter",
|
|
23
23
|
"components.filter.noFilters": "Keine verfügbaren Filter",
|
|
24
|
-
"components.filter.searchResults": "{number, plural, =0 {Keine Suchergebnisse} one {1
|
|
24
|
+
"components.filter.searchResults": "{number, plural, =0 {Keine Suchergebnisse} one {1 Suchergebnis} other {{number} Suchergebnisse}}",
|
|
25
25
|
"components.filter.singleDimensionDescription": "Filtern nach: {filterName}",
|
|
26
26
|
"components.form-element.defaultError": "{label} ist ungültig.",
|
|
27
27
|
"components.form-element.defaultFieldLabel": "Feld",
|
package/lang/fr-fr.js
CHANGED
|
@@ -21,7 +21,7 @@ export default {
|
|
|
21
21
|
"components.filter.filterCountDescription": "{number, plural, =0 {Aucun filtre appliqué.} one {1 filtre appliqué.} other {{number} filtres appliqués.}}",
|
|
22
22
|
"components.filter.filters": "Filtres",
|
|
23
23
|
"components.filter.noFilters": "Aucun filtre disponible",
|
|
24
|
-
"components.filter.searchResults": "{number, plural, =0 {
|
|
24
|
+
"components.filter.searchResults": "{number, plural, =0 {Aucun résultat de recherche} one {1 résultat de recherche} other {{number} résultats de recherche}}",
|
|
25
25
|
"components.filter.singleDimensionDescription": "Filtrer par : {filterName}",
|
|
26
26
|
"components.form-element.defaultError": "{label} n'est pas valide.",
|
|
27
27
|
"components.form-element.defaultFieldLabel": "Champ",
|
package/lang/hi.js
CHANGED
|
@@ -70,9 +70,9 @@ export default {
|
|
|
70
70
|
"components.list-item-tooltip.up-down-key": "ऊपर/नीचे",
|
|
71
71
|
"components.list-item-tooltip.up-down-desc": "सूची के आइटम के बीच फोकस ले जाएँ।",
|
|
72
72
|
"components.list-item-tooltip.left-right-key": "बायाँ/दायाँ",
|
|
73
|
-
"components.list-item-tooltip.left-right-desc": "मौजूदा आइटम में
|
|
73
|
+
"components.list-item-tooltip.left-right-desc": "मौजूदा आइटम में फ़ोकस को इधर से उधर ले जाएँ।",
|
|
74
74
|
"components.list-item-tooltip.page-up-down-key": "पेज ऊपर/नीचे",
|
|
75
|
-
"components.list-item-tooltip.page-up-down-desc": "एक बार में पाँच आइटम पर
|
|
75
|
+
"components.list-item-tooltip.page-up-down-desc": "एक बार में पाँच आइटम पर फ़ोकस ले जाएँ।",
|
|
76
76
|
"components.list-item-drag-handle-tooltip.title": "क्रम बदलने के लिए कीबोर्ड नियंत्रण:",
|
|
77
77
|
"components.list-item-drag-handle-tooltip.enter-key": "डालें",
|
|
78
78
|
"components.list-item-drag-handle-tooltip.enter-desc": "कीबोर्ड का क्रम बदलना मोड को टॉगल करें।",
|
package/lang/ko.js
CHANGED
|
@@ -18,7 +18,7 @@ export default {
|
|
|
18
18
|
"components.filter.clearDescription": "{filterName}에 대한 필터를 지웁니다.",
|
|
19
19
|
"components.filter.clearDescriptionSingle": "필터 지우기",
|
|
20
20
|
"components.filter.loading": "필터 로드 중",
|
|
21
|
-
"components.filter.filterCountDescription": "{number, plural, =0 {적용된 필터 없음.} other {{number}개 필터
|
|
21
|
+
"components.filter.filterCountDescription": "{number, plural, =0 {적용된 필터 없음.} other {{number}개 필터 적용됨.}}",
|
|
22
22
|
"components.filter.filters": "개 필터",
|
|
23
23
|
"components.filter.noFilters": "사용 가능한 필터가 없습니다",
|
|
24
24
|
"components.filter.searchResults": "{number, plural, =0 {검색 결과 없음} other {{number}개 검색 결과}}",
|
package/lang/nl.js
CHANGED
|
@@ -18,7 +18,7 @@ export default {
|
|
|
18
18
|
"components.filter.clearDescription": "Filters wissen voor {filterName}",
|
|
19
19
|
"components.filter.clearDescriptionSingle": "Filters wissen",
|
|
20
20
|
"components.filter.loading": "Laden van filters",
|
|
21
|
-
"components.filter.filterCountDescription": "{number, plural, =0 {
|
|
21
|
+
"components.filter.filterCountDescription": "{number, plural, =0 {Geen filters toegepast.} one {1 filter toegepast.} other {{number} filters toegepast.}}",
|
|
22
22
|
"components.filter.filters": "Filters",
|
|
23
23
|
"components.filter.noFilters": "Geen beschikbare filters",
|
|
24
24
|
"components.filter.searchResults": "{number, plural, =0 {Geen zoekresultaten} one {1 zoekresultaat} other {{number} zoekresultaten}}",
|
package/lang/pt.js
CHANGED
|
@@ -18,7 +18,7 @@ export default {
|
|
|
18
18
|
"components.filter.clearDescription": "Limpar filtros para: {filterName}",
|
|
19
19
|
"components.filter.clearDescriptionSingle": "Limpar filtros",
|
|
20
20
|
"components.filter.loading": "Carregar filtros",
|
|
21
|
-
"components.filter.filterCountDescription": "{number, plural, =0 {Nenhum filtro aplicado.} one {
|
|
21
|
+
"components.filter.filterCountDescription": "{number, plural, =0 {Nenhum filtro aplicado.} one {1 filtro aplicado.} other {{number} filtros aplicados.}}",
|
|
22
22
|
"components.filter.filters": "Filtros",
|
|
23
23
|
"components.filter.noFilters": "Não há filtros disponíveis",
|
|
24
24
|
"components.filter.searchResults": "{number, plural, =0 {Sem resultados para a pesquisa} one {1 resultado para a pesquisa} other {{number} resultados para a pesquisa}}",
|
package/lang/sv.js
CHANGED
|
@@ -21,7 +21,7 @@ export default {
|
|
|
21
21
|
"components.filter.filterCountDescription": "{number, plural, =0 {Inga filter tillämpade.} one {1 filter tillämpat.} other {{number} filter tillämpade.}}",
|
|
22
22
|
"components.filter.filters": "Filter",
|
|
23
23
|
"components.filter.noFilters": "Inga tillgängliga filter",
|
|
24
|
-
"components.filter.searchResults": "{number, plural, =0 {
|
|
24
|
+
"components.filter.searchResults": "{number, plural, =0 {Inga sökresultat} one {1 sökresultat} other {{number} sökresultat}}",
|
|
25
25
|
"components.filter.singleDimensionDescription": "Filtrera efter: {filterName}",
|
|
26
26
|
"components.form-element.defaultError": "{label} är ogiltig.",
|
|
27
27
|
"components.form-element.defaultFieldLabel": "Fält",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../../../components/colors/colors.js';
|
|
2
|
-
import { css, html, LitElement } from 'lit
|
|
2
|
+
import { css, html, LitElement } from 'lit';
|
|
3
3
|
import { InitialStateError, runAsync } from '../../../directives/run-async/run-async.js';
|
|
4
4
|
|
|
5
5
|
class AsyncItem extends LitElement {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../../components/colors/colors.js';
|
|
2
|
-
import { css, html, LitElement } from 'lit
|
|
2
|
+
import { css, html, LitElement } from 'lit';
|
|
3
3
|
import { ArrowKeysMixin } from '../arrow-keys-mixin.js';
|
|
4
4
|
|
|
5
5
|
export class ArrowKeysTest extends ArrowKeysMixin(LitElement) {
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
<script type="module">
|
|
6
6
|
import '../../components/demo/demo-page.js';
|
|
7
7
|
import '../../components/inputs/input-checkbox.js';
|
|
8
|
-
import { css, html, LitElement } from 'lit
|
|
8
|
+
import { css, html, LitElement } from 'lit';
|
|
9
9
|
import { LabelledMixin, LabelMixin } from '../labelled-mixin.js';
|
|
10
|
-
import { ifDefined } from 'lit
|
|
10
|
+
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
11
11
|
|
|
12
12
|
class DemoInput extends LabelledMixin(LitElement) {
|
|
13
13
|
static get styles() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightspace-ui/core",
|
|
3
|
-
"version": "2.2
|
|
3
|
+
"version": "2.3.2",
|
|
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",
|
|
@@ -70,8 +70,7 @@
|
|
|
70
70
|
"focus-visible": "^5",
|
|
71
71
|
"ifrau": "^0.39",
|
|
72
72
|
"intl-messageformat": "^7",
|
|
73
|
-
"lit
|
|
74
|
-
"lit-html": "^2",
|
|
73
|
+
"lit": "^2",
|
|
75
74
|
"prismjs": "^1",
|
|
76
75
|
"resize-observer-polyfill": "^1"
|
|
77
76
|
}
|
|
@@ -2,15 +2,15 @@ import '../../components/colors/colors.js';
|
|
|
2
2
|
import '../../components/icons/icon-custom.js';
|
|
3
3
|
import '../../components/icons/icon.js';
|
|
4
4
|
import '../../components/offscreen/offscreen.js';
|
|
5
|
-
import { css, html, LitElement } from 'lit
|
|
6
|
-
import { classMap } from 'lit
|
|
5
|
+
import { css, html, LitElement } from 'lit';
|
|
6
|
+
import { classMap } from 'lit/directives/class-map.js';
|
|
7
7
|
import { FocusVisiblePolyfillMixin } from '../../mixins/focus-visible-polyfill-mixin.js';
|
|
8
8
|
import { getUniqueId } from '../../helpers/uniqueId.js';
|
|
9
|
-
import { ifDefined } from 'lit
|
|
9
|
+
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
10
10
|
import { LocalizeCoreElement } from '../../helpers/localize-core-element.js';
|
|
11
11
|
import ResizeObserver from 'resize-observer-polyfill/dist/ResizeObserver.es.js';
|
|
12
12
|
import { RtlMixin } from '../../mixins/rtl-mixin.js';
|
|
13
|
-
import { styleMap } from 'lit
|
|
13
|
+
import { styleMap } from 'lit/directives/style-map.js';
|
|
14
14
|
|
|
15
15
|
const reduceMotion = matchMedia('(prefers-reduced-motion: reduce)').matches;
|
|
16
16
|
|