@eox/itemfilter
Advanced tools
Comparing version 0.9.0 to 0.10.0
{ | ||
"name": "@eox/itemfilter", | ||
"version": "0.9.0", | ||
"version": "0.10.0", | ||
"type": "module", | ||
@@ -31,6 +31,7 @@ "devDependencies": { | ||
"dependencies": { | ||
"@floating-ui/dom": "^1.5.3", | ||
"@turf/boolean-intersects": "^6.5.0", | ||
"@turf/boolean-within": "^6.5.0", | ||
"fuse.js": "^6.6.2", | ||
"lit": "^2.7.4", | ||
"fuse.js": "^7.0.0", | ||
"lit": "^3.0.2", | ||
"lodash.debounce": "^4.0.8", | ||
@@ -37,0 +38,0 @@ "toolcool-range-slider": "^4.0.27" |
import "../src/main"; | ||
import "./_mockMap"; | ||
import testItems from "./testItems.json"; | ||
@@ -89,8 +90,12 @@ | ||
.within(() => { | ||
cy.get('[type="checkbox"]').first().check(); | ||
cy.get('[type="checkbox"]').eq(1).check(); | ||
cy.get('[type="checkbox"]').first().check(); | ||
cy.get('[type="checkbox"]').first().should("be.checked"); | ||
cy.get('[type="checkbox"]').eq(1).check(); | ||
cy.get('[type="checkbox"]').eq(1).should("be.checked"); | ||
cy.get("eox-selectionlist") | ||
.shadow() | ||
.within(() => { | ||
cy.get('[type="checkbox"]').first().check(); | ||
cy.get('[type="checkbox"]').eq(1).check(); | ||
cy.get('[type="checkbox"]').first().check(); | ||
cy.get('[type="checkbox"]').first().should("be.checked"); | ||
cy.get('[type="checkbox"]').eq(1).check(); | ||
cy.get('[type="checkbox"]').eq(1).should("be.checked"); | ||
}); | ||
}); | ||
@@ -192,2 +197,34 @@ }); | ||
}); | ||
it("should show the map when spatial filter is enabled", () => { | ||
cy.get("eox-itemfilter").and(($el) => { | ||
const eoxItemFilter = <EOxItemFilter>$el[0]; | ||
eoxItemFilter.config = { | ||
titleProperty: "title", | ||
filterProperties: [ | ||
{ | ||
key: "geometry", | ||
type: "spatial", | ||
expanded: true, | ||
}, | ||
], | ||
}; | ||
eoxItemFilter.apply(testItems); | ||
}); | ||
cy.get("eox-itemfilter") | ||
.shadow() | ||
.within(() => { | ||
cy.get("eox-itemfilter-spatial") | ||
.get("eox-itemfilter-spatial-filter") | ||
.shadow() | ||
.within(() => { | ||
cy.get("eox-map").should("exist"); | ||
cy.get("eox-map") | ||
.shadow() | ||
.within(() => { | ||
cy.get("canvas").should("exist"); | ||
}); | ||
}); | ||
}); | ||
}); | ||
}); |
@@ -37,6 +37,7 @@ import "../src/main"; | ||
.within(() => { | ||
cy.get("input[data-cy=multiselect-checkbox][checked]").should( | ||
"have.length", | ||
2 | ||
); | ||
cy.get("eox-selectionlist") | ||
.shadow() | ||
.within(() => { | ||
cy.get('[type="checkbox"]:checked').should("have.length", 2); | ||
}); | ||
}); | ||
@@ -43,0 +44,0 @@ }); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
430925
8
9558
7
+ Added@floating-ui/dom@^1.5.3
+ Added@floating-ui/core@1.6.9(transitive)
+ Added@floating-ui/dom@1.6.13(transitive)
+ Added@floating-ui/utils@0.2.9(transitive)
+ Added@lit/reactive-element@2.0.4(transitive)
+ Addedfuse.js@7.1.0(transitive)
+ Addedlit@3.2.1(transitive)
+ Addedlit-element@4.1.1(transitive)
+ Addedlit-html@3.2.1(transitive)
- Removed@lit/reactive-element@1.6.3(transitive)
- Removedfuse.js@6.6.2(transitive)
- Removedlit@2.8.0(transitive)
- Removedlit-element@3.3.3(transitive)
- Removedlit-html@2.8.0(transitive)
Updatedfuse.js@^7.0.0
Updatedlit@^3.0.2