@fluid-topics/ft-filter 0.1.6 → 0.1.9
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-option.d.ts +2 -0
- package/build/ft-filter-option.js +4 -0
- package/build/ft-filter.js +2 -1
- package/build/ft-filter.light.js +1217 -0
- package/build/ft-filter.min.js +697 -15
- package/package.json +7 -7
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ElementDefinitionsMap, FtLitElement } from "@fluid-topics/ft-wc-utils";
|
|
2
|
+
import { PropertyValues } from "lit";
|
|
2
3
|
export interface FtFilterOptionProperties {
|
|
3
4
|
label: string;
|
|
4
5
|
value: any;
|
|
@@ -13,5 +14,6 @@ export declare class FtFilterOption extends FtLitElement implements FtFilterOpti
|
|
|
13
14
|
subOptions: Array<FtFilterOptionProperties>;
|
|
14
15
|
protected getTemplate(): import("lit-html").TemplateResult<1>;
|
|
15
16
|
private updateSubOptionsFromSlot;
|
|
17
|
+
protected updated(changedProperties: PropertyValues): void;
|
|
16
18
|
}
|
|
17
19
|
//# sourceMappingURL=ft-filter-option.d.ts.map
|
|
@@ -24,6 +24,10 @@ let FtFilterOption = class FtFilterOption extends FtLitElement {
|
|
|
24
24
|
const slot = e.composedPath()[0];
|
|
25
25
|
this.subOptions = slot.assignedElements().map(n => n);
|
|
26
26
|
}
|
|
27
|
+
updated(changedProperties) {
|
|
28
|
+
super.updated(changedProperties);
|
|
29
|
+
this.dispatchEvent(new CustomEvent("option-change", { detail: this, bubbles: true }));
|
|
30
|
+
}
|
|
27
31
|
};
|
|
28
32
|
FtFilterOption.elementDefinitions = {};
|
|
29
33
|
__decorate([
|
package/build/ft-filter.js
CHANGED
|
@@ -190,7 +190,8 @@ let FtFilter = class FtFilter extends FtLitElement {
|
|
|
190
190
|
<div class="ft-filter--values">
|
|
191
191
|
${this.renderLevels()}
|
|
192
192
|
</div>
|
|
193
|
-
<slot @slotchange=${this.updateOptionsFromSlot}
|
|
193
|
+
<slot @slotchange=${this.updateOptionsFromSlot}
|
|
194
|
+
@option-change=${this.updateOptionsFromSlot}></slot>
|
|
194
195
|
</div>
|
|
195
196
|
`;
|
|
196
197
|
}
|