@brightspace-ui-labs/facet-filter-sort 4.2.2 → 5.0.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.
@@ -1,7 +1,7 @@
1
1
  import '@brightspace-ui/core/components/button/button-subtle.js';
2
2
  import '@brightspace-ui-labs/multi-select/multi-select-list.js';
3
3
  import '@brightspace-ui-labs/multi-select/multi-select-list-item.js';
4
- import { css, html, LitElement } from 'lit-element/lit-element.js';
4
+ import { css, html, LitElement } from 'lit-element';
5
5
  import { announce } from '@brightspace-ui/core/helpers/announce.js';
6
6
  import { bodyCompactStyles } from '@brightspace-ui/core/components/typography/styles.js';
7
7
  import { IdSubscriberController } from '@brightspace-ui/core/controllers/subscriber/subscriberControllers.js';
@@ -132,11 +132,6 @@ class D2lLabsAppliedCoreFilters extends RtlMixin(LocalizeStaticMixin(LitElement)
132
132
  };
133
133
  }
134
134
 
135
- disconnectedCallback() {
136
- super.disconnectedCallback();
137
- this._filters.hostDisconnected();
138
- }
139
-
140
135
  render() {
141
136
  let numActiveFilters = 0;
142
137
  const allActiveFilters = Array.from(this._allActiveFilters);
@@ -168,11 +163,6 @@ class D2lLabsAppliedCoreFilters extends RtlMixin(LocalizeStaticMixin(LitElement)
168
163
  `;
169
164
  }
170
165
 
171
- updated(changedProperties) {
172
- super.updated(changedProperties);
173
- this._filters.hostUpdated(changedProperties);
174
- }
175
-
176
166
  updateActiveFilters(filterId, activeFilters) {
177
167
  this._allActiveFilters.set(filterId, activeFilters);
178
168
  this.requestUpdate();
@@ -1,10 +1,10 @@
1
1
  import '@brightspace-ui/core/components/button/button-subtle.js';
2
2
  import '@brightspace-ui-labs/multi-select/multi-select-list.js';
3
3
  import '@brightspace-ui-labs/multi-select/multi-select-list-item.js';
4
- import { css, html, LitElement } from 'lit-element/lit-element.js';
4
+ import { css, html, LitElement } from 'lit-element';
5
5
  import { announce } from '@brightspace-ui/core/helpers/announce.js';
6
6
  import { bodyCompactStyles } from '@brightspace-ui/core/components/typography/styles.js';
7
- import { getComposedChildren } from '@brightspace-ui/core/helpers/dom';
7
+ import { getComposedChildren } from '@brightspace-ui/core/helpers/dom.js';
8
8
  import { LocalizeStaticMixin } from '@brightspace-ui/core/mixins/localize-static-mixin.js';
9
9
  import { RtlMixin } from '@brightspace-ui/core/mixins/rtl-mixin.js';
10
10
 
@@ -158,11 +158,10 @@ class D2lLabsAppliedFilters extends RtlMixin(LocalizeStaticMixin(LitElement)) {
158
158
  </d2l-labs-multi-select-list-item>
159
159
  `)}
160
160
  </d2l-labs-multi-select-list>`
161
- : html`<span class="d2l-labs-applied-filters-none-label d2l-body-compact">${this.localize('noActiveFilters')}</span>`;
161
+ : null;
162
162
 
163
163
  return html`
164
164
  <div class="d2l-labs-applied-filters-wrapper">
165
- <span id="d2l-labs-applied-filters-label" class="d2l-labs-applied-filters-label d2l-body-compact">${this.labelText || this.localize('appliedFilters')}</span>
166
165
  <div id="d2l-list-holder">
167
166
  ${filters}
168
167
  <d2l-button-subtle id="d2l-clear-filters-button" text="${this.localize('clearFilters')}" ?hidden="${this._selectedEntries.length < CLEAR_FILTERS_THRESHOLD}" @click="${this._clearFiltersClicked}"></d2l-button-subtle>
@@ -1,7 +1,7 @@
1
1
  import '@brightspace-ui/core/components/colors/colors.js';
2
2
  import '@brightspace-ui/core/components/inputs/input-search.js';
3
3
  import '@brightspace-ui/core/components/menu/menu.js';
4
- import { css, html, LitElement } from 'lit-element/lit-element.js';
4
+ import { css, html, LitElement } from 'lit-element';
5
5
  import { ifDefined } from 'lit-html/directives/if-defined.js';
6
6
  import { LocalizeStaticMixin } from '@brightspace-ui/core/mixins/localize-static-mixin.js';
7
7
  import { TabPanelMixin } from '@brightspace-ui/core/components/tabs/tab-panel-mixin.js';
@@ -1,5 +1,5 @@
1
1
  import '@brightspace-ui/core/components/icons/icon.js';
2
- import { css, html, LitElement } from 'lit-element/lit-element.js';
2
+ import { css, html, LitElement } from 'lit-element';
3
3
  import { MenuItemSelectableMixin } from '@brightspace-ui/core/components/menu/menu-item-selectable-mixin.js';
4
4
  import { menuItemSelectableStyles } from '@brightspace-ui/core/components/menu/menu-item-selectable-styles.js';
5
5
  import { RtlMixin } from '@brightspace-ui/core/mixins/rtl-mixin.js';
@@ -1,5 +1,5 @@
1
1
  import '@brightspace-ui/core/components/icons/icon.js';
2
- import { html, LitElement } from 'lit-element/lit-element.js';
2
+ import { html, LitElement } from 'lit-element';
3
3
  import { MenuItemRadioMixin } from '@brightspace-ui/core/components/menu/menu-item-radio-mixin.js';
4
4
  import { menuItemSelectableStyles } from '@brightspace-ui/core/components/menu/menu-item-selectable-styles.js';
5
5
  import { RtlMixin } from '@brightspace-ui/core/mixins/rtl-mixin.js';
package/package.json CHANGED
@@ -19,7 +19,7 @@
19
19
  "lint:lit": "lit-analyzer \"{components, test, demo}/**/*.js\" --strict --rules.no-unknown-tag-name off",
20
20
  "lint:polymer": "polymer lint -i \"test/**/*.js\" \"demo/**/*.js\" \"components/**/*.js\"",
21
21
  "lint:style": "stylelint \"**/*.{js,html}\"",
22
- "start": "web-dev-server --node-resolve --watch --open",
22
+ "start": "web-dev-server --node-resolve --watch --open --app-index demo/index.html",
23
23
  "test": "npm run lint && npm run test:headless",
24
24
  "test:headless": "web-test-runner --group default",
25
25
  "test:headless:watch": "web-test-runner --group default --watch"
@@ -30,7 +30,7 @@
30
30
  "@babel/core": "^7",
31
31
  "@babel/eslint-parser": "^7",
32
32
  "@brightspace-ui/stylelint-config": "^0.3",
33
- "@open-wc/testing": "^2",
33
+ "@open-wc/testing": "^3",
34
34
  "@web/dev-server": "^0.1",
35
35
  "@web/test-runner": "^0.13",
36
36
  "@web/test-runner-saucelabs": "^0.6",
@@ -42,16 +42,17 @@
42
42
  "eslint-plugin-sort-class-members": "^1",
43
43
  "lit-analyzer": "^1",
44
44
  "polymer-cli": "^1",
45
- "sinon": "^12",
45
+ "sinon": "^13",
46
46
  "stylelint": "^14"
47
47
  },
48
- "version": "4.2.2",
48
+ "version": "5.0.0",
49
49
  "dependencies": {
50
- "@brightspace-ui/core": "^1",
50
+ "@brightspace-ui/core": "^2",
51
51
  "d2l-localize-behavior": "BrightspaceUI/localize-behavior#semver:^2",
52
- "@brightspace-ui-labs/multi-select": "^5",
53
- "d2l-typography": "BrightspaceUI/typography#semver:^7",
54
- "lit-element": "^2",
52
+ "@brightspace-ui-labs/multi-select": "^6",
53
+ "d2l-typography": "BrightspaceUI/typography#semver:^8",
54
+ "lit-element": "^3",
55
+ "lit-html": "^2",
55
56
  "@polymer/polymer": "^3"
56
57
  }
57
58
  }