@brightspace-ui/core 2.184.2 → 2.184.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,6 +32,7 @@ export const moveActions = Object.freeze({
32
32
 
33
33
  /**
34
34
  * A button component that provides a move action via a single button.
35
+ * @fires d2l-button-move-action - Dispatched when move action occurs
35
36
  */
36
37
  class ButtonMove extends ThemeMixin(FocusMixin(RtlMixin(LitElement))) {
37
38
 
@@ -13,19 +13,15 @@ export const inputLabelStyles = css`
13
13
  }
14
14
  :host([required]) .d2l-input-label::after,
15
15
  .d2l-input-label-required::after {
16
+ background-image: url("data:image/svg+xml,%3Csvg%20width%3D%225%22%20height%3D%226%22%20viewBox%3D%220%200%205%206%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M2.38%205.141V3.86c0-.093.006-.184.018-.273.011-.089.031-.173.059-.252a.927.927%200%200%201-.182.175c-.07.051-.145.103-.224.154l-1.106.644-.413-.7%201.113-.644c.084-.051.167-.093.248-.126.082-.033.167-.056.256-.07a.816.816%200%200%201-.256-.07%202.356%202.356%200%200%201-.248-.133L.532%201.914l.406-.7%201.113.658c.08.051.155.104.228.157a.966.966%200%200%201%20.185.179%201.002%201.002%200%200%201-.066-.252%202.091%202.091%200%200%201-.018-.273V.388h.826v1.281c0%20.098-.006.192-.017.283a1.003%201.003%200%200%201-.067.256c.051-.065.112-.125.182-.179.07-.053.147-.106.231-.157l1.106-.644.413.7-1.113.637a1.954%201.954%200%200%201-.248.13%201.07%201.07%200%200%201-.256.073c.159.028.327.093.504.196l1.113.651-.406.7-1.113-.651a3.307%203.307%200%200%201-.231-.154%201.122%201.122%200%200%201-.189-.175c.06.15.091.322.091.518v1.288H2.38z%22%20fill%3D%22%23494C4E%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E");
16
17
  bottom: 0.25rem;
17
- content: url("data:image/svg+xml,%3Csvg%20width%3D%225%22%20height%3D%226%22%20viewBox%3D%220%200%205%206%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M2.38%205.141V3.86c0-.093.006-.184.018-.273.011-.089.031-.173.059-.252a.927.927%200%200%201-.182.175c-.07.051-.145.103-.224.154l-1.106.644-.413-.7%201.113-.644c.084-.051.167-.093.248-.126.082-.033.167-.056.256-.07a.816.816%200%200%201-.256-.07%202.356%202.356%200%200%201-.248-.133L.532%201.914l.406-.7%201.113.658c.08.051.155.104.228.157a.966.966%200%200%201%20.185.179%201.002%201.002%200%200%201-.066-.252%202.091%202.091%200%200%201-.018-.273V.388h.826v1.281c0%20.098-.006.192-.017.283a1.003%201.003%200%200%201-.067.256c.051-.065.112-.125.182-.179.07-.053.147-.106.231-.157l1.106-.644.413.7-1.113.637a1.954%201.954%200%200%201-.248.13%201.07%201.07%200%200%201-.256.073c.159.028.327.093.504.196l1.113.651-.406.7-1.113-.651a3.307%203.307%200%200%201-.231-.154%201.122%201.122%200%200%201-.189-.175c.06.15.091.322.091.518v1.288H2.38z%22%20fill%3D%22%23494C4E%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E");
18
+ content: "";
18
19
  display: inline-block;
19
20
  height: 0.3rem;
20
- left: 0.15rem;
21
+ inset-inline-start: 0.15rem;
21
22
  position: relative;
22
23
  width: 0.25rem;
23
24
  }
24
- :host([dir="rtl"][required]) .d2l-input-label::after,
25
- :host([dir="rtl"]) .d2l-input-label-required::after {
26
- left: auto;
27
- right: 0.15rem;
28
- }
29
25
  :host([skeleton]) .d2l-input-label.d2l-skeletize::before {
30
26
  bottom: 0.25rem;
31
27
  top: 0.15rem;
@@ -12,16 +12,13 @@
12
12
 
13
13
  @mixin d2l-input-label-required() {
14
14
  &::after {
15
+ background-image: url("data:image/svg+xml,%3Csvg%20width%3D%225%22%20height%3D%226%22%20viewBox%3D%220%200%205%206%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M2.38%205.141V3.86c0-.093.006-.184.018-.273.011-.089.031-.173.059-.252a.927.927%200%200%201-.182.175c-.07.051-.145.103-.224.154l-1.106.644-.413-.7%201.113-.644c.084-.051.167-.093.248-.126.082-.033.167-.056.256-.07a.816.816%200%200%201-.256-.07%202.356%202.356%200%200%201-.248-.133L.532%201.914l.406-.7%201.113.658c.08.051.155.104.228.157a.966.966%200%200%201%20.185.179%201.002%201.002%200%200%201-.066-.252%202.091%202.091%200%200%201-.018-.273V.388h.826v1.281c0%20.098-.006.192-.017.283a1.003%201.003%200%200%201-.067.256c.051-.065.112-.125.182-.179.07-.053.147-.106.231-.157l1.106-.644.413.7-1.113.637a1.954%201.954%200%200%201-.248.13%201.07%201.07%200%200%201-.256.073c.159.028.327.093.504.196l1.113.651-.406.7-1.113-.651a3.307%203.307%200%200%201-.231-.154%201.122%201.122%200%200%201-.189-.175c.06.15.091.322.091.518v1.288H2.38z%22%20fill%3D%22%23494C4E%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E");
15
16
  bottom: 0.25rem;
16
- content: url("data:image/svg+xml,%3Csvg%20width%3D%225%22%20height%3D%226%22%20viewBox%3D%220%200%205%206%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M2.38%205.141V3.86c0-.093.006-.184.018-.273.011-.089.031-.173.059-.252a.927.927%200%200%201-.182.175c-.07.051-.145.103-.224.154l-1.106.644-.413-.7%201.113-.644c.084-.051.167-.093.248-.126.082-.033.167-.056.256-.07a.816.816%200%200%201-.256-.07%202.356%202.356%200%200%201-.248-.133L.532%201.914l.406-.7%201.113.658c.08.051.155.104.228.157a.966.966%200%200%201%20.185.179%201.002%201.002%200%200%201-.066-.252%202.091%202.091%200%200%201-.018-.273V.388h.826v1.281c0%20.098-.006.192-.017.283a1.003%201.003%200%200%201-.067.256c.051-.065.112-.125.182-.179.07-.053.147-.106.231-.157l1.106-.644.413.7-1.113.637a1.954%201.954%200%200%201-.248.13%201.07%201.07%200%200%201-.256.073c.159.028.327.093.504.196l1.113.651-.406.7-1.113-.651a3.307%203.307%200%200%201-.231-.154%201.122%201.122%200%200%201-.189-.175c.06.15.091.322.091.518v1.288H2.38z%22%20fill%3D%22%23494C4E%22%20fill-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E");
17
+ content: "";
17
18
  display: inline-block;
18
19
  height: 0.3rem;
19
- left: 0.15rem;
20
+ inset-inline-start: 0.15rem;
20
21
  position: relative;
21
22
  width: 0.25rem;
22
23
  }
23
- [dir="rtl"] &::after {
24
- left: auto;
25
- right: 0.15rem;
26
- }
27
24
  }
@@ -14,6 +14,7 @@ import { SelectionObserverMixin } from './selection-observer-mixin.js';
14
14
  /**
15
15
  * Controls for selection components (e.g. list, table-wrapper) containing select-all, etc.
16
16
  * @slot - Responsive container using `d2l-overflow-group` for `d2l-selection-action` elements
17
+ * @fires d2l-selection-observer-subscribe - Internal event
17
18
  */
18
19
  export class SelectionControls extends PageableSubscriberMixin(SelectionObserverMixin(RtlMixin(LocalizeCoreElement(LitElement)))) {
19
20
 
@@ -611,7 +611,8 @@
611
611
  ],
612
612
  "events": [
613
613
  {
614
- "name": "d2l-button-move-action"
614
+ "name": "d2l-button-move-action",
615
+ "description": "Dispatched when move action occurs"
615
616
  }
616
617
  ]
617
618
  },
@@ -8360,7 +8361,8 @@
8360
8361
  ],
8361
8362
  "events": [
8362
8363
  {
8363
- "name": "d2l-selection-observer-subscribe"
8364
+ "name": "d2l-selection-observer-subscribe",
8365
+ "description": "Internal event"
8364
8366
  }
8365
8367
  ],
8366
8368
  "slots": [
@@ -11077,7 +11079,8 @@
11077
11079
  ],
11078
11080
  "events": [
11079
11081
  {
11080
- "name": "d2l-selection-observer-subscribe"
11082
+ "name": "d2l-selection-observer-subscribe",
11083
+ "description": "Internal event"
11081
11084
  }
11082
11085
  ],
11083
11086
  "slots": [
@@ -12172,7 +12175,8 @@
12172
12175
  ],
12173
12176
  "events": [
12174
12177
  {
12175
- "name": "d2l-selection-observer-subscribe"
12178
+ "name": "d2l-selection-observer-subscribe",
12179
+ "description": "Internal event"
12176
12180
  }
12177
12181
  ],
12178
12182
  "slots": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "2.184.2",
3
+ "version": "2.184.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",
@@ -12,7 +12,8 @@
12
12
  "build:icons": "node ./cli/icon-generator.js",
13
13
  "build:illustrations": "node ./cli/empty-state-illustration-generator.js",
14
14
  "build:sass": "node-sass --output-style expanded ./test/sass.scss > ./test/sass.output.css",
15
- "build": "npm run build:clean && npm run build:icons && npm run build:illustrations && npm run build:sass",
15
+ "build:wca": "wca analyze \"{components,templates}/**/*.js\" --format json --outFile custom-elements.json",
16
+ "build": "npm run build:clean && npm run build:icons && npm run build:illustrations && npm run build:sass && npm run build:wca",
16
17
  "build-static": "rollup -c ./rollup/rollup.config.js",
17
18
  "lint": "npm run lint:eslint && npm run lint:style",
18
19
  "lint:eslint": "eslint . --ext .js,.html --ignore-path .gitignore",
@@ -22,7 +23,8 @@
22
23
  "test:axe": "d2l-test-runner axe --chrome",
23
24
  "test:unit": "d2l-test-runner",
24
25
  "test:translations": "mfv -e -s en -p ./lang/ -i untranslated",
25
- "test:vdiff": "d2l-test-runner vdiff --timeout 10000"
26
+ "test:vdiff": "d2l-test-runner vdiff --timeout 10000",
27
+ "test:wca": "node ./cli/validate-wca.js"
26
28
  },
27
29
  "files": [
28
30
  "custom-elements.json",
@@ -61,7 +63,8 @@
61
63
  "rollup-plugin-copy": "^3",
62
64
  "rollup-plugin-delete": "^2",
63
65
  "sinon": "^17",
64
- "stylelint": "^16"
66
+ "stylelint": "^16",
67
+ "web-component-analyzer": "^2"
65
68
  },
66
69
  "dependencies": {
67
70
  "@brightspace-ui/intl": "^3",