blue-chestnut-solar-expert 0.0.7 → 0.0.8
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/dist/cjs/eraser-icon.house-icon.icon-selector.map-draw.move-icon.octagon-minus-icon.search-icon.solar-expert.solar-system-form.entry.cjs.js.map +1 -1
- package/dist/cjs/eraser-icon_9.cjs.entry.js +8 -8
- package/dist/cjs/eraser-icon_9.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/stencil-library.cjs.js +1 -1
- package/dist/collection/components/map-draw/map-draw.js +7 -8
- package/dist/collection/components/map-draw/map-draw.js.map +1 -1
- package/dist/collection/components/solar-expert/solar-expert.js +1 -1
- package/dist/collection/components/solar-expert/solar-expert.js.map +1 -1
- package/dist/components/map-draw.js +1 -1
- package/dist/components/{p-Cl0_Wuys.js → p-DRNQUQ1y.js} +10 -11
- package/dist/components/p-DRNQUQ1y.js.map +1 -0
- package/dist/components/solar-expert.js +2 -2
- package/dist/components/solar-expert.js.map +1 -1
- package/dist/esm/eraser-icon.house-icon.icon-selector.map-draw.move-icon.octagon-minus-icon.search-icon.solar-expert.solar-system-form.entry.js.map +1 -1
- package/dist/esm/eraser-icon_9.entry.js +8 -8
- package/dist/esm/eraser-icon_9.entry.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/stencil-library.js +1 -1
- package/dist/stencil-library/eraser-icon.house-icon.icon-selector.map-draw.move-icon.octagon-minus-icon.search-icon.solar-expert.solar-system-form.entry.esm.js.map +1 -1
- package/dist/stencil-library/{p-d3bbe397.entry.js → p-761eaa1f.entry.js} +2 -2
- package/dist/stencil-library/p-761eaa1f.entry.js.map +1 -0
- package/dist/stencil-library/stencil-library.esm.js +1 -1
- package/package.json +1 -1
- package/dist/components/p-Cl0_Wuys.js.map +0 -1
- package/dist/stencil-library/p-d3bbe397.entry.js.map +0 -1
|
@@ -1657,22 +1657,22 @@ const MapDraw = class {
|
|
|
1657
1657
|
render() {
|
|
1658
1658
|
const t = getLanguageStrings(this.language);
|
|
1659
1659
|
const currentPolygon = this.getCurrentPolygon();
|
|
1660
|
-
return (h("div", { key: '
|
|
1660
|
+
return (h("div", { key: '16a466a7726ff3fa023dadcc42dcd8afda72243c', class: "flex flex-col justify-center items-center w-full h-full gap-4" }, this.loadingState === "empty" && (h("div", { key: '52a8c08765bf0d9df5035e28c9f83887b0c92954', class: "absolute h-16" }, h("p", { key: 'c841d9e3556a0036bacdb9636854051b9dabce93', class: "text-white text-center h-full flex items-center justify-center rounded-4xl p-4", style: {
|
|
1661
1661
|
backgroundColor: "rgba(0, 0, 0, 0.5)",
|
|
1662
1662
|
} }, t.mapDraw.noAddressSelected))), (this.latitude && this.longitude &&
|
|
1663
|
-
this.loadingState !== "loaded") && (h("div", { key: '
|
|
1663
|
+
this.loadingState !== "loaded") && (h("div", { key: '391c7ec94e59db3ec783e9b00558b9cd85bd6b16', class: "absolute flex items-center justify-center bg-white bg-opacity-75 z-20 pt-7 rounded-4xl" }, h("div", { key: '1a4c89acbb2289e7fe08b87d5f94d400ed5058c2', class: "animate-spin rounded-full h-16 w-16 border-t-2 border-b-2 border-[#271200]" }))), h("div", { key: 'c26f4edb56ccec5a28c266bc94acfd20ce2d1476', class: "flex gap-4 rounded-4xl bg-[#f3ebda] p-4" }, tools.map((tool) => {
|
|
1664
1664
|
const toolStrings = t.mapDraw.tools[tool.name];
|
|
1665
1665
|
return (h("button", { class: `px-4 py-2 rounded-4xl transition-colors duration-200 hover:bg-[#964500] ${this.currentTool.name === tool.name
|
|
1666
1666
|
? "bg-[#271200] text-white hover:bg-[#964500]"
|
|
1667
1667
|
: "bg-[#f3ebda] hover:bg-[#964500]"}`, "aria-label": toolStrings.ariaLabel, title: toolStrings.explanation, onClick: () => this.handleToolSelect(tool) }, h("div", { class: "flex items-center gap-1 flex-col" }, h("icon-selector", { name: tool.icon }), h("span", null, toolStrings.name))));
|
|
1668
|
-
})), h("div", { key: '
|
|
1668
|
+
})), h("div", { key: 'b7b30bf00ad112e4ccc012d8b28957bac9206cf7', class: "flex gap-4 items-start justify-center h-full" }, h("div", { key: 'd1855fccbd14b4c6b16bed0e6b4061ec39bb6deb', class: "relative flex-1 h-full p-4 rounded-4xl flex items-center justify-center", style: {
|
|
1669
1669
|
width: `${this.rgbTiff?.width * FACTOR || 0}px`,
|
|
1670
1670
|
height: `${this.rgbTiff?.height * FACTOR || 0}px`,
|
|
1671
|
-
} }, h("canvas", { key: '
|
|
1671
|
+
} }, h("canvas", { key: 'cdef26a28d30b0d9ab7aebf569d3fbc9ac67f4d6', ref: (el) => this.canvasElement = el, class: `absolute top-0 left-0 z-1 rounded-4xl m-auto`, style: {
|
|
1672
1672
|
cursor: this.currentTool.cursor,
|
|
1673
|
-
} }), h("canvas", { key: '
|
|
1673
|
+
} }), h("canvas", { key: 'f33ed7633bc3a1381d128aa70d6cdfdaeb927a17', ref: (el) => this.polygonCanvas = el, class: `absolute top-0 left-0 z-10 rounded-4xl m-auto`, style: {
|
|
1674
1674
|
cursor: this.currentTool.cursor,
|
|
1675
|
-
} }))), h("div", { key: '
|
|
1675
|
+
} }))), h("div", { key: 'cd792879351289f3bf1e9ef48b39323f8f426271', class: "flex gap-4 flex-row justify-center items-center" }, h("div", { key: '35a5249745fdb18bbd873d737cb690ec98afdb3f', class: "w-52 bg-[#f3ebda] rounded-4xl p-4" }, h("h3", { key: 'dc0e5ac0d1451d842948796cdd7c2fefe5d94459', class: "text-lg font-semibold mb-4 text-center" }, t.mapDraw.information), currentPolygon?.details
|
|
1676
1676
|
? (h("div", { class: "space-y-4" }, h("div", { class: "flex flex-col gap-2" }, h("button", { class: "px-4 py-2 bg-[#271200] text-white rounded-4xl hover:bg-[#964500] transition-colors duration-200", onClick: () => this.calculateSolarPanels() }, t.mapDraw.calculateSolarPanels), this
|
|
1677
1677
|
.roofPolygonsSolarPanels[currentPolygon._id] && (h("p", { class: "text-lg text-center" }, this
|
|
1678
1678
|
.roofPolygonsSolarPanels[currentPolygon._id].positionedPanels
|
|
@@ -1695,7 +1695,7 @@ const MapDraw = class {
|
|
|
1695
1695
|
}, value: currentPolygon
|
|
1696
1696
|
.details
|
|
1697
1697
|
?.pitch }), "\u00B0"))))
|
|
1698
|
-
: (h("p", { class: "text-gray-500 text-center" }, t.mapDraw.noPolygonSelected)))), h("solar-system-form", { key: '
|
|
1698
|
+
: (h("p", { class: "text-gray-500 text-center" }, t.mapDraw.noPolygonSelected)))), h("solar-system-form", { key: 'b2218c417a5a8ccc3317b69b9cac4b8653c06fdb', systemConfigs: this.roofPolygonsSolarPanels, language: this.language, roofPolygons: this.roofPolygons, obstructionPolygons: this.obstructionPolygons })));
|
|
1699
1699
|
}
|
|
1700
1700
|
static get watchers() { return {
|
|
1701
1701
|
"latitude": ["getBuildingInsights", "getBuildingImages"],
|
|
@@ -1787,7 +1787,7 @@ const SolarExpert = class {
|
|
|
1787
1787
|
}
|
|
1788
1788
|
render() {
|
|
1789
1789
|
const t = getLanguageStrings(this.language);
|
|
1790
|
-
return (h("div", { key: '
|
|
1790
|
+
return (h("div", { key: 'fa09eea42dfd57eaaf2ef4655b88841d3f5fd2a8', class: "flex flex-col w-full h-full p-3 bg-white" }, h("div", { key: '96f064d4c280e2e668a5807626a9486be36c8565', class: "pb-3" }, h("div", { key: '41cb8197e5cc02fd22e7d62e78193d087ce58515', class: "relative" }, h("div", { key: 'c08c2aca502c2421391bad10a5227ca2f6ffa44e', class: "absolute left-3 top-1/2 transform -translate-y-1/2" }, h("search-icon", { key: '487b4fcf984eb4e5bce29cf7c715869f33c20310' })), h("input", { key: 'd6ce0129f903b4b27edb03bbd3670249924e7421', ref: (el) => this.inputElement = el, type: "text", placeholder: t.solarExpert.searchPlaceholder, class: "w-full pl-10 pr-4 py-2 border border-gray-300 rounded-4xl focus:outline-none focus:ring-2 focus:ring-blue-500 bg-white" }))), h("map-draw", { key: '0556d2fa4fc3b30c7d283e09f609cf6301d57779', latitude: this.latitude, longitude: this.longitude, apiKey: this.apiKey, language: this.language })));
|
|
1791
1791
|
}
|
|
1792
1792
|
};
|
|
1793
1793
|
SolarExpert.style = outputCss$1;
|