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.
Files changed (26) hide show
  1. 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
  2. package/dist/cjs/eraser-icon_9.cjs.entry.js +8 -8
  3. package/dist/cjs/eraser-icon_9.cjs.entry.js.map +1 -1
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/stencil-library.cjs.js +1 -1
  6. package/dist/collection/components/map-draw/map-draw.js +7 -8
  7. package/dist/collection/components/map-draw/map-draw.js.map +1 -1
  8. package/dist/collection/components/solar-expert/solar-expert.js +1 -1
  9. package/dist/collection/components/solar-expert/solar-expert.js.map +1 -1
  10. package/dist/components/map-draw.js +1 -1
  11. package/dist/components/{p-Cl0_Wuys.js → p-DRNQUQ1y.js} +10 -11
  12. package/dist/components/p-DRNQUQ1y.js.map +1 -0
  13. package/dist/components/solar-expert.js +2 -2
  14. package/dist/components/solar-expert.js.map +1 -1
  15. 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
  16. package/dist/esm/eraser-icon_9.entry.js +8 -8
  17. package/dist/esm/eraser-icon_9.entry.js.map +1 -1
  18. package/dist/esm/loader.js +1 -1
  19. package/dist/esm/stencil-library.js +1 -1
  20. 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
  21. package/dist/stencil-library/{p-d3bbe397.entry.js → p-761eaa1f.entry.js} +2 -2
  22. package/dist/stencil-library/p-761eaa1f.entry.js.map +1 -0
  23. package/dist/stencil-library/stencil-library.esm.js +1 -1
  24. package/package.json +1 -1
  25. package/dist/components/p-Cl0_Wuys.js.map +0 -1
  26. 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: '1066713dd2e91378d00c32b432134432cd88b166', class: "flex flex-col justify-center items-center w-full h-full gap-4" }, this.loadingState === "empty" && (index$1.h("div", { key: '7e55beccb7b0df2d09b9043ba91df9dde5692a5a', class: "absolute h-16" }, index$1.h("p", { key: 'e49452bdafacdb4f4ac1e9fa9563d07d767f8f33', class: "text-white text-center h-full flex items-center justify-center rounded-4xl p-4", style: {
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: '616e54987054913f4abb25184fdf626d0f86e495', class: "absolute flex items-center justify-center bg-white bg-opacity-75 z-20 pt-7 rounded-4xl" }, index$1.h("div", { key: '3b5c5260107fe3b2e661a3cc19fe8651b1161dc0', class: "animate-spin rounded-full h-16 w-16 border-t-2 border-b-2 border-[#271200]" }))), index$1.h("div", { key: 'a31594e746e41ec7b244693514099641605bfc7e', class: "flex gap-4 rounded-4xl bg-[#f3ebda] p-4" }, tools.map((tool) => {
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: '64384dfb0008317455212136cf9d187e2b25d134', class: "flex gap-4 items-start justify-center h-full" }, index$1.h("div", { key: '740787316499cd4de2dd8c2b918b1004dc5ac1ad', class: "relative flex-1 h-full p-4 rounded-4xl flex items-center justify-center", style: {
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: '89cd07b3552f27ccbf3d21bdff58ae120d1e33ff', ref: (el) => this.canvasElement = el, class: `absolute top-0 left-0 z-1 rounded-4xl m-auto`, style: {
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: '93b942c4046f214fb458ec006d85fe2ea409754f', ref: (el) => this.polygonCanvas = el, class: `absolute top-0 left-0 z-10 rounded-4xl m-auto`, style: {
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: '9f1ea3cc060965e9f0be2ed918a8229e567bcba3', class: "flex gap-4 flex-row justify-center items-center" }, index$1.h("div", { key: '8bcff460383a5e8f58843cf17488afa3bd529cee', class: "w-52 bg-[#f3ebda] rounded-4xl p-4" }, index$1.h("h3", { key: '6f290d45a377bd2dc7a6afdeb79ab8a7e455690f', class: "text-lg font-semibold mb-4 text-center" }, t.mapDraw.information), currentPolygon?.details
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: '69f131fc1584a123b9237bf5fc70fea89220eb44', systemConfigs: this.roofPolygonsSolarPanels, language: this.language, roofPolygons: this.roofPolygons, obstructionPolygons: this.obstructionPolygons })));
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: '3073fc6409fb52ee102645092495d9a651027711', class: "flex flex-col w-full h-full p-3" }, index$1.h("div", { key: '4b3692ed3676282e54a68c8f2aad02da1384d186', class: "pb-3" }, index$1.h("div", { key: '72ca5bc51f2855d0769ca9e295d5861ce5ec55a9', class: "relative" }, index$1.h("div", { key: '5ead4c18c0809e57d271a7ac793fd6be907c60d7', class: "absolute left-3 top-1/2 transform -translate-y-1/2" }, index$1.h("search-icon", { key: '81556be508a848f7c8ee25ef13d1798d101b9f81' })), index$1.h("input", { key: 'ff81ec07da3f5df32bded5dd4f55fcf6b11046d6', 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: '9c74ce650ac00061adeec3eecdd4a2c4c6100c8c', latitude: this.latitude, longitude: this.longitude, apiKey: this.apiKey, language: this.language })));
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;