@fluid-topics/ft-filter 2.1.18 → 2.1.20
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/build/ft-filter-level.js +1 -1
- package/build/ft-filter-option.js +5 -5
- package/build/ft-filter.js +6 -6
- package/build/ft-filter.light.js +23 -23
- package/build/ft-filter.min.js +20 -20
- package/build/ft-filter.styles.js +4 -4
- package/package.json +10 -10
package/build/ft-filter-level.js
CHANGED
|
@@ -20,7 +20,7 @@ export const analyticsActions = {
|
|
|
20
20
|
"more-filters-button-pressed": {
|
|
21
21
|
label: "Revealing more filters",
|
|
22
22
|
defaultEventName: "filters-click_see_more",
|
|
23
|
-
defaultComponentId: "ft-filter-level"
|
|
23
|
+
defaultComponentId: "ft-filter-level",
|
|
24
24
|
},
|
|
25
25
|
};
|
|
26
26
|
export class FtFilterLevel extends withAnalytics(withI18n(withAriaNotification(FtLitElement)), analyticsActions) {
|
|
@@ -4,9 +4,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
import { FtLitElement, jsonProperty } from "@fluid-topics/ft-wc-utils";
|
|
8
|
-
import { property, query } from "lit/decorators.js";
|
|
9
|
-
import { html } from "lit";
|
|
7
|
+
import { FtLitElement, jsonProperty, } from "@fluid-topics/ft-wc-utils";
|
|
8
|
+
import { property, query, } from "lit/decorators.js";
|
|
9
|
+
import { html, } from "lit";
|
|
10
10
|
export class FtFilterOption extends FtLitElement {
|
|
11
11
|
constructor() {
|
|
12
12
|
super(...arguments);
|
|
@@ -22,7 +22,7 @@ export class FtFilterOption extends FtLitElement {
|
|
|
22
22
|
}
|
|
23
23
|
updateSubOptionsFromSlot(e) {
|
|
24
24
|
e.stopPropagation();
|
|
25
|
-
this.subOptions = this.slotElement.assignedElements().map(n => n);
|
|
25
|
+
this.subOptions = this.slotElement.assignedElements().map((n) => n);
|
|
26
26
|
}
|
|
27
27
|
update(changedProperties) {
|
|
28
28
|
super.update(changedProperties);
|
|
@@ -36,7 +36,7 @@ __decorate([
|
|
|
36
36
|
__decorate([
|
|
37
37
|
property({
|
|
38
38
|
type: Object,
|
|
39
|
-
converter: value => value
|
|
39
|
+
converter: (value) => value,
|
|
40
40
|
})
|
|
41
41
|
], FtFilterOption.prototype, "value", void 0);
|
|
42
42
|
__decorate([
|
package/build/ft-filter.js
CHANGED
|
@@ -4,13 +4,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
4
4
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
5
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
6
|
};
|
|
7
|
-
import { html } from "lit";
|
|
8
|
-
import { property, query, queryAll, state } from "lit/decorators.js";
|
|
9
|
-
import { Debouncer, deepEqual, flatDeep, withAnalytics, FtLitElement, jsonProperty, numberProperty, waitUntil } from "@fluid-topics/ft-wc-utils";
|
|
10
|
-
import { FtTypography, FtTypographyVariants } from "@fluid-topics/ft-typography";
|
|
7
|
+
import { html, } from "lit";
|
|
8
|
+
import { property, query, queryAll, state, } from "lit/decorators.js";
|
|
9
|
+
import { Debouncer, deepEqual, flatDeep, withAnalytics, FtLitElement, jsonProperty, numberProperty, waitUntil, } from "@fluid-topics/ft-wc-utils";
|
|
10
|
+
import { FtTypography, FtTypographyVariants, } from "@fluid-topics/ft-typography";
|
|
11
11
|
import { FtFilterLevel, analyticsActions } from "./ft-filter-level";
|
|
12
12
|
import { FtButton } from "@fluid-topics/ft-button";
|
|
13
|
-
import { FtSnapScroll } from "@fluid-topics/ft-snap-scroll";
|
|
13
|
+
import { FtSnapScroll, } from "@fluid-topics/ft-snap-scroll";
|
|
14
14
|
import { styles } from "./ft-filter.styles";
|
|
15
15
|
export class FtFilterChangeEvent extends CustomEvent {
|
|
16
16
|
constructor(selectedValues) {
|
|
@@ -188,7 +188,7 @@ export class FtFilter extends withAnalytics(FtLitElement, analyticsActions) {
|
|
|
188
188
|
class="${className}"
|
|
189
189
|
filterId="${this.id}"
|
|
190
190
|
.filter=${this.filter}
|
|
191
|
-
.configuredAnalyticsActions
|
|
191
|
+
.configuredAnalyticsActions=${this.configuredAnalyticsActions}
|
|
192
192
|
moreValuesButtonLabel="${this.moreValuesButtonLabel}"
|
|
193
193
|
?multivalued=${this.multivalued}
|
|
194
194
|
?disabled=${this.disabled || className !== "ft-filter--level-center"}
|