@brightspace-ui/core 1.197.2 → 1.197.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.
@@ -1,9 +1,12 @@
1
1
  # Filtering
2
2
 
3
- **NOTE: This component is a work-in-progress and not ready for consumer use yet.**
4
-
5
3
  Filter components are often used in conjuction with [tables](../../components/table) and allow users to select a subset of the presented data based on a set of parameters. Filter dimensions provide methods for entering parameters for a wide range of data types.
6
4
 
5
+ <!-- docs: start hidden content -->
6
+ Filter with multiple dimensions:
7
+ ![Filter with multiple dimensions](./screenshots/filter-multi-dim.png?raw=true)
8
+ <!-- docs: end hidden content -->
9
+
7
10
  <!-- docs: demo align:start autoSize:false size:large -->
8
11
  ```html
9
12
  <script type="module">
@@ -47,10 +50,6 @@ Filter components are often used in conjuction with [tables](../../components/ta
47
50
 
48
51
  The `d2l-filter` component allows a user to filter on one or more dimensions of data from a single dropdown.
49
52
 
50
- <!-- docs: start hidden content -->
51
- <!-- ![Filter](./screenshots/filter.png?raw=true) -->
52
- <!-- docs: end hidden content -->
53
-
54
53
  <!-- docs: demo live name:d2l-filter autoSize:false align:start size:large -->
55
54
  ```html
56
55
  <script type="module">
@@ -96,6 +95,11 @@ The `d2l-filter` component allows a user to filter on one or more dimensions of
96
95
  ### Single Vs Multi Dimensional
97
96
  A filter can be a single dimension (like picking from a list of courses) or offer multiple dimensions (filter by role, or department, or something else). Single-dimension filters can be used side-by-side to promote filters that are more commonly used, while tucking less-used filters into a multi-dimensional filter.
98
97
 
98
+ <!-- docs: start hidden content -->
99
+ Filter with a single dimension:
100
+ ![Filters with single dimension](./screenshots/filter.png?raw=true)
101
+ <!-- docs: end hidden content -->
102
+
99
103
  <!-- docs: demo code autoSize:false align:start size:large -->
100
104
  ```html
101
105
  <script type="module">
@@ -173,6 +177,11 @@ The filter will announce changes to filter selections, search results, and when
173
177
 
174
178
  The `d2l-filter-dimension-set` component is the main dimension type that will work for most use cases. Used alongside the [d2l-filter-dimension-set-value](#filter-dimension%3A-set-value-%5Bd2l-filter-dimension-set-value%5D), this will give you a selectable list of filter values.
175
179
 
180
+ <!-- docs: start hidden content -->
181
+ Set dimension on mobile:
182
+ ![Set dimension on mobile](./screenshots/filter-mobile.png?raw=true)
183
+ <!-- docs: end hidden content -->
184
+
176
185
  <!-- docs: demo live name:d2l-filter-dimension-set align:start autoSize:false size:large -->
177
186
  ```html
178
187
  <script type="module">
@@ -135,6 +135,14 @@ class HtmlBlock extends LitElement {
135
135
  `];
136
136
  }
137
137
 
138
+ connectedCallback() {
139
+ super.connectedCallback();
140
+ if (!this._templateObserver) return;
141
+
142
+ const template = this.querySelector('template');
143
+ if (template) this._templateObserver.observe(template.content, { attributes: true, childList: true, subtree: true });
144
+ }
145
+
138
146
  disconnectedCallback() {
139
147
  super.disconnectedCallback();
140
148
  if (this._templateObserver) this._templateObserver.disconnect();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "1.197.2",
3
+ "version": "1.197.3",
4
4
  "description": "A collection of accessible, free, open-source web components for building Brightspace applications",
5
5
  "repository": "https://github.com/BrightspaceUI/core.git",
6
6
  "publishConfig": {