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
|
@@ -1659,22 +1659,22 @@ const MapDraw = class {
|
|
|
1659
1659
|
render() {
|
|
1660
1660
|
const t = getLanguageStrings(this.language);
|
|
1661
1661
|
const currentPolygon = this.getCurrentPolygon();
|
|
1662
|
-
return (index$1.h("div", { key: '
|
|
1662
|
+
return (index$1.h("div", { key: '16a466a7726ff3fa023dadcc42dcd8afda72243c', class: "flex flex-col justify-center items-center w-full h-full gap-4" }, this.loadingState === "empty" && (index$1.h("div", { key: '52a8c08765bf0d9df5035e28c9f83887b0c92954', class: "absolute h-16" }, index$1.h("p", { key: 'c841d9e3556a0036bacdb9636854051b9dabce93', class: "text-white text-center h-full flex items-center justify-center rounded-4xl p-4", style: {
|
|
1663
1663
|
backgroundColor: "rgba(0, 0, 0, 0.5)",
|
|
1664
1664
|
} }, t.mapDraw.noAddressSelected))), (this.latitude && this.longitude &&
|
|
1665
|
-
this.loadingState !== "loaded") && (index$1.h("div", { key: '
|
|
1665
|
+
this.loadingState !== "loaded") && (index$1.h("div", { key: '391c7ec94e59db3ec783e9b00558b9cd85bd6b16', class: "absolute flex items-center justify-center bg-white bg-opacity-75 z-20 pt-7 rounded-4xl" }, index$1.h("div", { key: '1a4c89acbb2289e7fe08b87d5f94d400ed5058c2', class: "animate-spin rounded-full h-16 w-16 border-t-2 border-b-2 border-[#271200]" }))), index$1.h("div", { key: 'c26f4edb56ccec5a28c266bc94acfd20ce2d1476', class: "flex gap-4 rounded-4xl bg-[#f3ebda] p-4" }, tools.map((tool) => {
|
|
1666
1666
|
const toolStrings = t.mapDraw.tools[tool.name];
|
|
1667
1667
|
return (index$1.h("button", { class: `px-4 py-2 rounded-4xl transition-colors duration-200 hover:bg-[#964500] ${this.currentTool.name === tool.name
|
|
1668
1668
|
? "bg-[#271200] text-white hover:bg-[#964500]"
|
|
1669
1669
|
: "bg-[#f3ebda] hover:bg-[#964500]"}`, "aria-label": toolStrings.ariaLabel, title: toolStrings.explanation, onClick: () => this.handleToolSelect(tool) }, index$1.h("div", { class: "flex items-center gap-1 flex-col" }, index$1.h("icon-selector", { name: tool.icon }), index$1.h("span", null, toolStrings.name))));
|
|
1670
|
-
})), index$1.h("div", { key: '
|
|
1670
|
+
})), index$1.h("div", { key: 'b7b30bf00ad112e4ccc012d8b28957bac9206cf7', class: "flex gap-4 items-start justify-center h-full" }, index$1.h("div", { key: 'd1855fccbd14b4c6b16bed0e6b4061ec39bb6deb', class: "relative flex-1 h-full p-4 rounded-4xl flex items-center justify-center", style: {
|
|
1671
1671
|
width: `${this.rgbTiff?.width * FACTOR || 0}px`,
|
|
1672
1672
|
height: `${this.rgbTiff?.height * FACTOR || 0}px`,
|
|
1673
|
-
} }, index$1.h("canvas", { key: '
|
|
1673
|
+
} }, index$1.h("canvas", { key: 'cdef26a28d30b0d9ab7aebf569d3fbc9ac67f4d6', ref: (el) => this.canvasElement = el, class: `absolute top-0 left-0 z-1 rounded-4xl m-auto`, style: {
|
|
1674
1674
|
cursor: this.currentTool.cursor,
|
|
1675
|
-
} }), index$1.h("canvas", { key: '
|
|
1675
|
+
} }), index$1.h("canvas", { key: 'f33ed7633bc3a1381d128aa70d6cdfdaeb927a17', ref: (el) => this.polygonCanvas = el, class: `absolute top-0 left-0 z-10 rounded-4xl m-auto`, style: {
|
|
1676
1676
|
cursor: this.currentTool.cursor,
|
|
1677
|
-
} }))), index$1.h("div", { key: '
|
|
1677
|
+
} }))), index$1.h("div", { key: 'cd792879351289f3bf1e9ef48b39323f8f426271', class: "flex gap-4 flex-row justify-center items-center" }, index$1.h("div", { key: '35a5249745fdb18bbd873d737cb690ec98afdb3f', class: "w-52 bg-[#f3ebda] rounded-4xl p-4" }, index$1.h("h3", { key: 'dc0e5ac0d1451d842948796cdd7c2fefe5d94459', class: "text-lg font-semibold mb-4 text-center" }, t.mapDraw.information), currentPolygon?.details
|
|
1678
1678
|
? (index$1.h("div", { class: "space-y-4" }, index$1.h("div", { class: "flex flex-col gap-2" }, index$1.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
|
|
1679
1679
|
.roofPolygonsSolarPanels[currentPolygon._id] && (index$1.h("p", { class: "text-lg text-center" }, this
|
|
1680
1680
|
.roofPolygonsSolarPanels[currentPolygon._id].positionedPanels
|
|
@@ -1697,7 +1697,7 @@ const MapDraw = class {
|
|
|
1697
1697
|
}, value: currentPolygon
|
|
1698
1698
|
.details
|
|
1699
1699
|
?.pitch }), "\u00B0"))))
|
|
1700
|
-
: (index$1.h("p", { class: "text-gray-500 text-center" }, t.mapDraw.noPolygonSelected)))), index$1.h("solar-system-form", { key: '
|
|
1700
|
+
: (index$1.h("p", { class: "text-gray-500 text-center" }, t.mapDraw.noPolygonSelected)))), index$1.h("solar-system-form", { key: 'b2218c417a5a8ccc3317b69b9cac4b8653c06fdb', systemConfigs: this.roofPolygonsSolarPanels, language: this.language, roofPolygons: this.roofPolygons, obstructionPolygons: this.obstructionPolygons })));
|
|
1701
1701
|
}
|
|
1702
1702
|
static get watchers() { return {
|
|
1703
1703
|
"latitude": ["getBuildingInsights", "getBuildingImages"],
|
|
@@ -1789,7 +1789,7 @@ const SolarExpert = class {
|
|
|
1789
1789
|
}
|
|
1790
1790
|
render() {
|
|
1791
1791
|
const t = getLanguageStrings(this.language);
|
|
1792
|
-
return (index$1.h("div", { key: '
|
|
1792
|
+
return (index$1.h("div", { key: 'fa09eea42dfd57eaaf2ef4655b88841d3f5fd2a8', class: "flex flex-col w-full h-full p-3 bg-white" }, index$1.h("div", { key: '96f064d4c280e2e668a5807626a9486be36c8565', class: "pb-3" }, index$1.h("div", { key: '41cb8197e5cc02fd22e7d62e78193d087ce58515', class: "relative" }, index$1.h("div", { key: 'c08c2aca502c2421391bad10a5227ca2f6ffa44e', class: "absolute left-3 top-1/2 transform -translate-y-1/2" }, index$1.h("search-icon", { key: '487b4fcf984eb4e5bce29cf7c715869f33c20310' })), index$1.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" }))), index$1.h("map-draw", { key: '0556d2fa4fc3b30c7d283e09f609cf6301d57779', latitude: this.latitude, longitude: this.longitude, apiKey: this.apiKey, language: this.language })));
|
|
1793
1793
|
}
|
|
1794
1794
|
};
|
|
1795
1795
|
SolarExpert.style = outputCss$1;
|