blue-chestnut-solar-expert 0.0.70 → 0.0.72

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 (71) hide show
  1. package/dist/stencil-library/{decoder-CuK4bYyT.js → decoder-CPVEW_Ka.js} +5 -5
  2. package/dist/stencil-library/{decoder-CuK4bYyT.js.map → decoder-CPVEW_Ka.js.map} +1 -1
  3. package/dist/stencil-library/{decoder-DO85tL09.js → decoder-DUMy4-YU.js} +5 -5
  4. package/dist/stencil-library/{decoder-DO85tL09.js.map → decoder-DUMy4-YU.js.map} +1 -1
  5. package/dist/stencil-library/{deflate-B_19Wwe5.js → deflate-B57bxEA2.js} +5 -5
  6. package/dist/stencil-library/{deflate-B_19Wwe5.js.map → deflate-B57bxEA2.js.map} +1 -1
  7. package/dist/stencil-library/{deflate-BnZRAamW.js → deflate-BtBNkkuY.js} +5 -5
  8. package/dist/stencil-library/{deflate-BnZRAamW.js.map → deflate-BtBNkkuY.js.map} +1 -1
  9. package/dist/stencil-library/eraser-icon.entry.js +1 -1
  10. package/dist/stencil-library/house-icon.entry.js +1 -1
  11. package/dist/stencil-library/icon-selector.entry.js +1 -1
  12. package/dist/stencil-library/{index-ICfDNUMe.js → index-CtdQ2GTJ.js} +3 -3
  13. package/dist/stencil-library/{index-ICfDNUMe.js.map → index-CtdQ2GTJ.js.map} +1 -1
  14. package/dist/stencil-library/index-DzvFVH7F.js +4172 -0
  15. package/dist/stencil-library/index-DzvFVH7F.js.map +1 -0
  16. package/dist/stencil-library/{jpeg-BYwBjmYM.js → jpeg-CZDb06H8.js} +5 -5
  17. package/dist/stencil-library/{jpeg-BYwBjmYM.js.map → jpeg-CZDb06H8.js.map} +1 -1
  18. package/dist/stencil-library/{jpeg-Carqigwf.js → jpeg-CbHhI4Ax.js} +5 -5
  19. package/dist/stencil-library/{jpeg-Carqigwf.js.map → jpeg-CbHhI4Ax.js.map} +1 -1
  20. package/dist/stencil-library/{lerc-C23gVCZY.js → lerc-CnIv8e0A.js} +5 -5
  21. package/dist/stencil-library/{lerc-BrKFrpOl.js.map → lerc-CnIv8e0A.js.map} +1 -1
  22. package/dist/stencil-library/{lerc-BrKFrpOl.js → lerc-yI_Z-vIH.js} +5 -5
  23. package/dist/stencil-library/{lerc-C23gVCZY.js.map → lerc-yI_Z-vIH.js.map} +1 -1
  24. package/dist/stencil-library/loading-widget.entry.js +2 -2
  25. package/dist/stencil-library/{lzw-Cv4Jzqw8.js → lzw-By0Ly-Um.js} +5 -5
  26. package/dist/stencil-library/{lzw-Cv4Jzqw8.js.map → lzw-By0Ly-Um.js.map} +1 -1
  27. package/dist/stencil-library/{lzw-CyjveJk_.js → lzw-uwOJU9LC.js} +5 -5
  28. package/dist/stencil-library/{lzw-CyjveJk_.js.map → lzw-uwOJU9LC.js.map} +1 -1
  29. package/dist/stencil-library/{map-draw-I6HehGjN.js → map-draw-BJErx7pC.js} +21 -21
  30. package/dist/stencil-library/{map-draw-I6HehGjN.js.map → map-draw-BJErx7pC.js.map} +1 -1
  31. package/dist/stencil-library/{map-draw-s4wyOrpW.js → map-draw-CdjJ0lhL.js} +21 -22
  32. package/dist/stencil-library/{map-draw-s4wyOrpW.js.map → map-draw-CdjJ0lhL.js.map} +1 -1
  33. package/dist/stencil-library/map-draw.entry.js +3 -3
  34. package/dist/stencil-library/map-selector.entry.js +2 -2
  35. package/dist/stencil-library/marker-icon.entry.js +1 -1
  36. package/dist/stencil-library/move-icon.entry.js +1 -1
  37. package/dist/stencil-library/octagon-minus-icon.entry.js +1 -1
  38. package/dist/stencil-library/{packbits-DYI_WQMn.js → packbits-CAMElV0D.js} +5 -5
  39. package/dist/stencil-library/{packbits-DYI_WQMn.js.map → packbits-CAMElV0D.js.map} +1 -1
  40. package/dist/stencil-library/{packbits-DZ08I0fK.js → packbits-z_b-uE9I.js} +5 -5
  41. package/dist/stencil-library/{packbits-DZ08I0fK.js.map → packbits-z_b-uE9I.js.map} +1 -1
  42. package/dist/stencil-library/polygon-buttons.entry.js +2 -2
  43. package/dist/stencil-library/polygon-information.entry.js +2 -2
  44. package/dist/stencil-library/{raw-DmgLt5Xw.js → raw-Czhh0DXR.js} +5 -5
  45. package/dist/stencil-library/{raw-DmgLt5Xw.js.map → raw-Czhh0DXR.js.map} +1 -1
  46. package/dist/stencil-library/{raw-DxHWSwjD.js → raw-DWOUVxSa.js} +5 -5
  47. package/dist/stencil-library/{raw-DxHWSwjD.js.map → raw-DWOUVxSa.js.map} +1 -1
  48. package/dist/stencil-library/search-icon.entry.js +1 -1
  49. package/dist/stencil-library/settings-icon.entry.js +1 -1
  50. package/dist/stencil-library/settings-modal.entry.js +2 -2
  51. package/dist/stencil-library/solar-expert.entry.esm.js.map +1 -1
  52. package/dist/stencil-library/solar-expert.entry.js +4 -4
  53. package/dist/stencil-library/solar-expert.entry.js.map +1 -1
  54. package/dist/stencil-library/solar-system-form.entry.esm.js.map +1 -1
  55. package/dist/stencil-library/solar-system-form.entry.js +143 -209
  56. package/dist/stencil-library/solar-system-form.entry.js.map +1 -1
  57. package/dist/stencil-library/stencil-library.esm.js +3 -3
  58. package/dist/stencil-library/{store-CcqrFuBK.js → store-CAMVyEnv.js} +3 -3
  59. package/dist/stencil-library/{store-CcqrFuBK.js.map → store-CAMVyEnv.js.map} +1 -1
  60. package/dist/stencil-library/store-nKI4l4pt.js +758 -0
  61. package/dist/stencil-library/store-nKI4l4pt.js.map +1 -0
  62. package/dist/stencil-library/toast-notification.entry.js +1 -1
  63. package/dist/stencil-library/tool-box.entry.js +2 -2
  64. package/dist/stencil-library/tutorial-component.entry.js +2 -2
  65. package/dist/stencil-library/undo-icon.entry.js +1 -1
  66. package/dist/stencil-library/{webimage-DjTbF9dC.js → webimage-22q9OHrk.js} +5 -5
  67. package/dist/stencil-library/{webimage-DjTbF9dC.js.map → webimage-22q9OHrk.js.map} +1 -1
  68. package/dist/stencil-library/{webimage-DpQLhKY4.js → webimage-Dsu3knYw.js} +5 -5
  69. package/dist/stencil-library/{webimage-DpQLhKY4.js.map → webimage-Dsu3knYw.js.map} +1 -1
  70. package/dist/types/components/solar-system-form/solar-system-form.d.ts +10 -6
  71. package/package.json +1 -1
@@ -1,11 +1,11 @@
1
1
 
2
2
  if (typeof global === "undefined") { var global = globalThis || window || self; }
3
- import { r as registerInstance, g as getElement, h, a as getAssetPath } from './index-ICfDNUMe.js';
3
+ import { r as registerInstance, g as getElement, h, a as getAssetPath } from './index-CtdQ2GTJ.js';
4
4
  import { r as requireDist$1, d as distExports$1, B as BORDER_INSET } from './constants-hboFofU4.js';
5
5
  import { r as roofTool, m as moveTool, a as markRoofEdgeTool, o as obstructionTool } from './tools-BNYKV5H5.js';
6
6
  import { a as DEFAULT_SOLAR_EXPERT_CONFIG, b as DEFAULT_SOLAR_PANEL_TYPE } from './config-CWfV1nKn.js';
7
7
  import { g as getPixelInMeters$1 } from './utils-BCUZxI9u.js';
8
- import { s as state, o as onChange, g as getLanguageStrings } from './store-CcqrFuBK.js';
8
+ import { s as state, o as onChange, g as getLanguageStrings } from './store-CAMVyEnv.js';
9
9
 
10
10
  const THIS_IS_NOT_AN_OBJECT = "This is not an object";
11
11
  const THIS_IS_NOT_A_FLOAT16ARRAY_OBJECT = "This is not a Float16Array object";
@@ -2627,22 +2627,22 @@ async function getDecoder(fileDirectory) {
2627
2627
  }
2628
2628
 
2629
2629
  // Add default decoders to registry (end-user may override with other implementations)
2630
- addDecoder([undefined, 1], () => import('./raw-DmgLt5Xw.js').then((m) => m.default));
2631
- addDecoder(5, () => import('./lzw-Cv4Jzqw8.js').then((m) => m.default));
2630
+ addDecoder([undefined, 1], () => import('./raw-DWOUVxSa.js').then((m) => m.default));
2631
+ addDecoder(5, () => import('./lzw-By0Ly-Um.js').then((m) => m.default));
2632
2632
  addDecoder(6, () => {
2633
2633
  throw new Error('old style JPEG compression is not supported.');
2634
2634
  });
2635
- addDecoder(7, () => import('./jpeg-Carqigwf.js').then((m) => m.default));
2636
- addDecoder([8, 32946], () => import('./deflate-BnZRAamW.js').then((m) => m.default));
2637
- addDecoder(32773, () => import('./packbits-DZ08I0fK.js').then((m) => m.default));
2638
- addDecoder(34887, () => import('./lerc-BrKFrpOl.js')
2635
+ addDecoder(7, () => import('./jpeg-CbHhI4Ax.js').then((m) => m.default));
2636
+ addDecoder([8, 32946], () => import('./deflate-BtBNkkuY.js').then((m) => m.default));
2637
+ addDecoder(32773, () => import('./packbits-z_b-uE9I.js').then((m) => m.default));
2638
+ addDecoder(34887, () => import('./lerc-CnIv8e0A.js')
2639
2639
  .then(async (m) => {
2640
2640
  await m.zstd.init();
2641
2641
  return m;
2642
2642
  })
2643
2643
  .then((m) => m.default),
2644
2644
  );
2645
- addDecoder(50001, () => import('./webimage-DjTbF9dC.js').then((m) => m.default));
2645
+ addDecoder(50001, () => import('./webimage-Dsu3knYw.js').then((m) => m.default));
2646
2646
 
2647
2647
  /**
2648
2648
  * @module resample
@@ -4085,7 +4085,7 @@ class Pool {
4085
4085
  this.messageId = 0;
4086
4086
  if (size) {
4087
4087
  this._awaitingDecoder = createWorker ? Promise.resolve(createWorker) : new Promise((resolve) => {
4088
- import('./decoder-DO85tL09.js').then((module) => {
4088
+ import('./decoder-CPVEW_Ka.js').then((module) => {
4089
4089
  resolve(module.create);
4090
4090
  });
4091
4091
  });
@@ -25407,7 +25407,6 @@ const MapDraw = class {
25407
25407
  };
25408
25408
  const inset = BORDER_INSET / this.pixelInMeters;
25409
25409
  const solarPanels = distExports$1.getOptimalSolarPositionFully(polygon, this.canvasManager.getObstacles(), convertedSolarPanel, polygon.azimuth, inset, polygon.pitch, state.settings.columnSpacing, state.settings.rowSpacing);
25410
- console.log("Calculated solar panels:", solarPanels);
25411
25410
  this.canvasManager.setPositionedSolarPanel(polygon.id, solarPanels);
25412
25411
  // Convert PositionedSolarPanel[] to SolarPanelSystemPart format
25413
25412
  const allPositionedPanels = this.canvasManager
@@ -25536,24 +25535,24 @@ const MapDraw = class {
25536
25535
  }
25537
25536
  render() {
25538
25537
  const t = getLanguageStrings(state.settings.language);
25539
- return (h("div", { key: 'db7fad9c3b1b3056804500ef76ebd537bdf99cf6', class: "flex flex-col justify-center items-center w-full h-full gap-4", id: "map-draw" }, this.showTutorial && (h("tutorial-component", { key: '1bf41129d664d755aab6691a0edc2e7dc9255ffa', onClose: this.handleTutorialClose, title: t.mapDraw.tutorial.title, description: t.mapDraw.tutorial.description, videoSource: getAssetPath("./assets/tutorial1.mp4") })), this.showMarkEdgeTutorial && (h("tutorial-component", { key: 'aecf4c9bed83efff0e8d04c4e30d661f5493b67d', onClose: this.handleMarkEdgeTutorialClose, title: t.mapDraw.tutorial.markEdge.title, description: t.mapDraw.tutorial.markEdge
25540
- .description, videoSource: getAssetPath("./assets/tutorial2.mp4") })), this.showAdditionalToolsTutorial && (h("tutorial-component", { key: '309947e1d264684e6c9c99aa121d6fcd14d7ac05', onClose: this
25538
+ return (h("div", { key: 'dfd6d42ee7d4ff2402791493677c4b732bd02d79', class: "flex flex-col justify-center items-center w-full h-full gap-4", id: "map-draw" }, this.showTutorial && (h("tutorial-component", { key: '30d2b5ed760910180c35e04a8e9a3b31da574f97', onClose: this.handleTutorialClose, title: t.mapDraw.tutorial.title, description: t.mapDraw.tutorial.description, videoSource: getAssetPath("./assets/tutorial1.mp4") })), this.showMarkEdgeTutorial && (h("tutorial-component", { key: 'da7e040ed1295a163e74512fe7a62c60d4a33a61', onClose: this.handleMarkEdgeTutorialClose, title: t.mapDraw.tutorial.markEdge.title, description: t.mapDraw.tutorial.markEdge
25539
+ .description, videoSource: getAssetPath("./assets/tutorial2.mp4") })), this.showAdditionalToolsTutorial && (h("tutorial-component", { key: 'fa81b0111d14d2bea4bee91fd7b060fe694e03a9', onClose: this
25541
25540
  .handleAdditionalToolsTutorialClose, title: t.mapDraw.tutorial.additionalTools.title, description: t.mapDraw.tutorial.additionalTools
25542
- .description, videoSource: getAssetPath("./assets/tutorial3.mp4") })), this.showObstacleTutorial && (h("tutorial-component", { key: '279d5f89b08f57f7f15b4cf8f11c236e2a25f8c5', onClose: this.handleObstacleTutorialClose, onSkip: this.handleObstacleTutorialSkip, showSkipButton: true, title: t.mapDraw.tutorial.obstacle.title, description: t.mapDraw.tutorial.obstacle.description, videoSource: getAssetPath("./assets/tutorial4.mp4") })), (state.latitude && state.longitude &&
25543
- this.loadingState === "loading") && (h("div", { key: 'b9250c3fdaf37c8be09ba531505e43ad2de1f0a4', class: "flex items-center justify-center w-full bg-opacity-75 z-20 pt-7 rounded-4xl" }, h("div", { key: '3ebb6c7f9f3bc8ec45284186403993ea30428d27', class: "animate-spin rounded-full h-16 w-16 border-t-2 border-b-2 border-secondary" }))), (state.latitude && state.longitude &&
25544
- this.loadingState === "error") && (h("div", { key: '22cf9c9ebd5b297175e58d0f531bf3d208e708cf', class: "flex items-center justify-center w-full bg-opacity-75 z-20 pt-7 rounded-4xl" }, h("div", { key: 'fe37f22ab53cb57be73d4245403c9436cf79800d', class: "text-red-500 text-center text-lg font-semibold" }, t.mapDraw.imageLoadError))), h("div", { key: 'e8f1c9600b8566ca06b3dc29ec2e7f2ab3883888', class: "flex items-start justify-center w-full bg-primary rounded-4xl" }, h("div", { key: '69aa1d682ce7e45183fd4e1f9e7786bdd27817bb', class: "relative flex items-center justify-center w-full rounded-4xl bg-secondary", style: {
25541
+ .description, videoSource: getAssetPath("./assets/tutorial3.mp4") })), this.showObstacleTutorial && (h("tutorial-component", { key: '2894ad5e5b872e0603ff7e608bd3d22cbac64cbf', onClose: this.handleObstacleTutorialClose, onSkip: this.handleObstacleTutorialSkip, showSkipButton: true, title: t.mapDraw.tutorial.obstacle.title, description: t.mapDraw.tutorial.obstacle.description, videoSource: getAssetPath("./assets/tutorial4.mp4") })), (state.latitude && state.longitude &&
25542
+ this.loadingState === "loading") && (h("div", { key: 'e323542349191283df4ae4d452ca144881359832', class: "flex items-center justify-center w-full bg-opacity-75 z-20 pt-7 rounded-4xl" }, h("div", { key: 'fa0b90b72583e75f4c3cb7f83e44a43691a87ded', class: "animate-spin rounded-full h-16 w-16 border-t-2 border-b-2 border-secondary" }))), (state.latitude && state.longitude &&
25543
+ this.loadingState === "error") && (h("div", { key: 'fadb04e70e4714b4b03871b9acc08eba8b925b48', class: "flex items-center justify-center w-full bg-opacity-75 z-20 pt-7 rounded-4xl" }, h("div", { key: 'e444b9aa15dc6a04a9445c6c9f5d89fc45db3292', class: "text-red-500 text-center text-lg font-semibold" }, t.mapDraw.imageLoadError))), h("div", { key: '8e1bfac2e36061e0f038576c5a841d34b5a19b18', class: "flex items-start justify-center w-full bg-primary rounded-4xl" }, h("div", { key: '98f19db1cc659d6477ad8f1200099ba2f86579e2', class: "relative flex items-center justify-center w-full rounded-4xl bg-secondary", style: {
25545
25544
  aspectRatio: this.rgbTiff
25546
25545
  ? `${this.rgbTiff.width}/${this.rgbTiff.height}`
25547
25546
  : "",
25548
- } }, !this.rgbTiff && (h("div", { key: '19138797bfc5037a4936faa7e5b8cd0175ef4b3a', class: "text-white p-6" }, "Satelitebild wird geladen sobald Sie eine Addresse ausgew\u00E4hlt haben.")), h("canvas", { key: 'ab6f143b4e3fa74397bf08d9ee461e35e7ff1b28', ref: (el) => this.canvasElement = el, class: "absolute top-0 left-0 w-full h-full rounded-4xl", id: "map-draw-canvas", style: {
25547
+ } }, !this.rgbTiff && (h("div", { key: 'ffc52e8404b80d510c61d1f8fa1fa9f79b26d461', class: "text-white p-6" }, "Satelitebild wird geladen sobald Sie eine Addresse ausgew\u00E4hlt haben.")), h("canvas", { key: '7d008de7eec9aa57593f641d0d176e11b956adb7', ref: (el) => this.canvasElement = el, class: "absolute top-0 left-0 w-full h-full rounded-4xl", id: "map-draw-canvas", style: {
25549
25548
  cursor: this.currentTool.cursor,
25550
- } }), h("canvas", { key: 'f1603cbdd09eefd5f17cdec4ab33a631c1710d6c', ref: (el) => this.polygonCanvas = el, class: "absolute top-0 left-0 w-full h-full rounded-4xl", style: {
25549
+ } }), h("canvas", { key: '55727fcea57628e8a9480438ff4d91c1c7b711d7', ref: (el) => this.polygonCanvas = el, class: "absolute top-0 left-0 w-full h-full rounded-4xl", style: {
25551
25550
  cursor: this.currentTool.cursor,
25552
- } }))), (this.rgbTiff || this.unfold) && (h("div", { key: '13c7d92d4f8eb8d9a32fd29e2ba24f21107c7ace', class: "w-full" }, h("div", { key: '600579cedb5c31067080d88fc3009982bebdf46d', class: "w-full pb-4" }, h("tool-box", { key: 'b43a29946519a4cc5f65b56d5662ce637fa5f3f8', currentTool: this.currentTool, onToolSelect: (tool) => this.handleToolSelect(tool), undoCallback: () => this.undo() })), h("div", { key: 'f0b2f69d0dcdeaec83129064c140dd407e0e3d3c', class: "w-full" }, h("polygon-information", { key: 'cd1be3a68111309835cb42cc044b4daa56bb462c', currentPolygon: this.currentPolygon, numberOfPanels: this.currentPolygon
25551
+ } }))), (this.rgbTiff || this.unfold) && (h("div", { key: 'b09a8af7751ad94ba9c6d855f3732bebf2395f09', class: "w-full" }, h("div", { key: '125a44a4f96ebf0a6090f51bc9e58dcc1ad0d50f', class: "w-full pb-4" }, h("tool-box", { key: '57053da9c09b18ec869c4a744b96cfdd35c38ed7', currentTool: this.currentTool, onToolSelect: (tool) => this.handleToolSelect(tool), undoCallback: () => this.undo() })), h("div", { key: '39054b81dab5b5f86020347841489f86821f92cc', class: "w-full" }, h("polygon-information", { key: 'fc8b1e52fe49797fc8c8fb10fdc267bdfa4b5114', currentPolygon: this.currentPolygon, numberOfPanels: this.currentPolygon
25553
25552
  ? this
25554
25553
  .solarSystem[this.currentPolygon.id]
25555
25554
  ?.numberOfPanels
25556
- : undefined, handleAzimuthChange: (event) => this.handleAzimuthChange(event), handlePitchChange: (event) => this.handlePitchChange(event), calculateSolarPanels: () => this.calculateSolarPanels(true), markAsFlatRoof: () => this.markAsFlatRoof(), currentTool: this.currentTool.name })), h("div", { key: '0af85109110c45dddfdf9ca5a1e9fa06c8d549ac', class: "w-full" }, h("solar-system-form", { key: 'f95aa0cb5fe6eca7bb0f15461ec4c647adaebca1', systemConfigs: this.solarSystem, polygons: this.canvasManager?.getPolygons(), roofCanvas: this.canvasElement, polygonCanvas: this.polygonCanvas, pixelInMeters: this.pixelInMeters })))), this.showSettings && (h("settings-modal", { key: 'a33bd6ca9a2fc479fb3f7631653c1cba1004ff45', settings: state.settings, onClose: this.handleSettingsClose, onSave: this.handleSettingsSave })), this.showToast && (h("toast-notification", { key: '9a94d33d53aa8d8e4a0eae33bec58f2ab3d75adc', message: this.toastMessage, type: this.toastType, duration: 3000 }))));
25555
+ : undefined, handleAzimuthChange: (event) => this.handleAzimuthChange(event), handlePitchChange: (event) => this.handlePitchChange(event), calculateSolarPanels: () => this.calculateSolarPanels(true), markAsFlatRoof: () => this.markAsFlatRoof(), currentTool: this.currentTool.name })), h("div", { key: 'be843fe04748f58a133e20ec127a2a248c4d5e3d', class: "w-full" }, h("solar-system-form", { key: '3d26ef1435cd62559a3bbb05b18193dd9c9fc9a6', systemConfigs: this.solarSystem, polygons: this.canvasManager?.getPolygons(), roofCanvas: this.canvasElement, polygonCanvas: this.polygonCanvas, pixelInMeters: this.pixelInMeters })))), this.showSettings && (h("settings-modal", { key: 'a5166f182f7256ecfeaa2983de36496371580f11', settings: state.settings, onClose: this.handleSettingsClose, onSave: this.handleSettingsSave })), this.showToast && (h("toast-notification", { key: 'a5a74da758bb9d367c69289d306d2f0c56a60914', message: this.toastMessage, type: this.toastType, duration: 3000 }))));
25557
25556
  }
25558
25557
  static get watchers() { return {
25559
25558
  "rgbTiff": ["setupCanvasManager", "drawMap"],
@@ -25563,6 +25562,6 @@ const MapDraw = class {
25563
25562
  MapDraw.style = outputCss;
25564
25563
 
25565
25564
  export { Buffer as B, LercParameters as L, MapDraw as M, BaseDecoder as a, LercAddCompression as b };
25566
- //# sourceMappingURL=map-draw-s4wyOrpW.js.map
25565
+ //# sourceMappingURL=map-draw-CdjJ0lhL.js.map
25567
25566
 
25568
- //# sourceMappingURL=map-draw-s4wyOrpW.js.map
25567
+ //# sourceMappingURL=map-draw-CdjJ0lhL.js.map