blue-chestnut-solar-expert 0.0.8 → 0.0.11
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 +324 -15102
- package/dist/cjs/eraser-icon_9.cjs.entry.js.map +1 -1
- package/dist/cjs/{index-BFx4q5Ui.js → index-GZ-kuJi4.js} +8 -28
- package/dist/{esm/index-D0YnIAAN.js.map → cjs/index-GZ-kuJi4.js.map} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/loading-widget.cjs.entry.js +20 -0
- package/dist/cjs/loading-widget.cjs.entry.js.map +1 -0
- package/dist/cjs/loading-widget.entry.cjs.js.map +1 -0
- package/dist/cjs/solar-calculator.cjs.entry.js +3 -3
- package/dist/cjs/solar-calculator.cjs.entry.js.map +1 -1
- package/dist/cjs/solar-calculator.entry.cjs.js.map +1 -1
- package/dist/cjs/stencil-library.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/icons/eraser.js +26 -1
- package/dist/collection/components/icons/eraser.js.map +1 -1
- package/dist/collection/components/icons/house.js +26 -1
- package/dist/collection/components/icons/house.js.map +1 -1
- package/dist/collection/components/icons/icon.js +27 -6
- package/dist/collection/components/icons/icon.js.map +1 -1
- package/dist/collection/components/icons/move.js +26 -1
- package/dist/collection/components/icons/move.js.map +1 -1
- package/dist/collection/components/icons/octagonMinus.js +26 -1
- package/dist/collection/components/icons/octagonMinus.js.map +1 -1
- package/dist/collection/components/icons/search.js +26 -1
- package/dist/collection/components/icons/search.js.map +1 -1
- package/dist/collection/components/map-draw/map-draw.js +66 -18
- package/dist/collection/components/map-draw/map-draw.js.map +1 -1
- package/dist/collection/components/solar-calculator/solar-calculator.js +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/collection/components/solar-system-form/solar-system-form.js +80 -84
- package/dist/collection/components/solar-system-form/solar-system-form.js.map +1 -1
- package/dist/collection/components/widgets/loading-widget.js +18 -0
- package/dist/collection/components/widgets/loading-widget.js.map +1 -0
- package/dist/collection/output.css +80 -271
- package/dist/collection/utils/lang/english.js +1 -1
- package/dist/collection/utils/lang/english.js.map +1 -1
- package/dist/collection/utils/lang/german.js +3 -3
- package/dist/collection/utils/lang/german.js.map +1 -1
- package/dist/collection/utils/lang/spanish.js +1 -1
- package/dist/collection/utils/lang/spanish.js.map +1 -1
- package/dist/components/eraser-icon.js +1 -1
- package/dist/components/house-icon.js +1 -1
- package/dist/components/icon-selector.js +1 -1
- package/dist/components/index.js +7 -22
- package/dist/components/index.js.map +1 -1
- package/dist/components/loading-widget.d.ts +11 -0
- package/dist/components/loading-widget.js +36 -0
- package/dist/components/loading-widget.js.map +1 -0
- package/dist/components/map-draw.js +1 -1
- package/dist/components/move-icon.js +1 -1
- package/dist/components/octagon-minus-icon.js +1 -1
- package/dist/components/p-9ZUfi3zn.js +36 -0
- package/dist/components/p-9ZUfi3zn.js.map +1 -0
- package/dist/components/p-BfS46GQh.js +36 -0
- package/dist/components/p-BfS46GQh.js.map +1 -0
- package/dist/components/p-BwC0qfb_.js +83 -0
- package/dist/components/p-BwC0qfb_.js.map +1 -0
- package/dist/components/p-CX4Jw4PK.js +36 -0
- package/dist/components/p-CX4Jw4PK.js.map +1 -0
- package/dist/components/p-CllhWhkE.js +615 -0
- package/dist/components/p-CllhWhkE.js.map +1 -0
- package/dist/components/{p-DRNQUQ1y.js → p-CwSYsL57.js} +76 -28
- package/dist/components/p-CwSYsL57.js.map +1 -0
- package/dist/components/p-OliNFLPu.js +36 -0
- package/dist/components/p-OliNFLPu.js.map +1 -0
- package/dist/components/p-uvNP9DQ_.js +36 -0
- package/dist/components/p-uvNP9DQ_.js.map +1 -0
- package/dist/components/search-icon.js +1 -1
- package/dist/components/solar-calculator.js +2 -2
- package/dist/components/solar-calculator.js.map +1 -1
- package/dist/components/solar-expert.js +10 -10
- package/dist/components/solar-expert.js.map +1 -1
- package/dist/components/solar-system-form.js +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 +307 -15085
- package/dist/esm/eraser-icon_9.entry.js.map +1 -1
- package/dist/esm/{index-D0YnIAAN.js → index-CnQR_-WL.js} +8 -28
- package/dist/{cjs/index-BFx4q5Ui.js.map → esm/index-CnQR_-WL.js.map} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/loading-widget.entry.js +18 -0
- package/dist/esm/loading-widget.entry.js.map +1 -0
- package/dist/esm/solar-calculator.entry.js +3 -3
- package/dist/esm/solar-calculator.entry.js.map +1 -1
- package/dist/esm/stencil-library.js +3 -3
- package/dist/stencil-library/api-By7kNIGr.js.map +1 -0
- package/dist/stencil-library/app-globals-DQuL1Twl.js.map +1 -0
- package/dist/stencil-library/config-Cx64GtC8.js.map +1 -0
- package/dist/stencil-library/decoder-DSavpK4g.js.map +1 -0
- package/dist/stencil-library/deflate-Cpl_7R0h.js.map +1 -0
- 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/general-3MvF5T9_.js.map +1 -0
- package/dist/stencil-library/index-Bkp4yicv.js.map +1 -0
- package/dist/stencil-library/index-DimvNaNS.js.map +1 -0
- package/dist/stencil-library/index.esm.js.map +1 -1
- package/dist/stencil-library/jpeg-3kYgfUiy.js.map +1 -0
- package/dist/stencil-library/lerc-D9ISp5i_.js.map +1 -0
- package/dist/stencil-library/loading-widget.entry.esm.js.map +1 -0
- package/dist/stencil-library/lzw-15JscBc_.js.map +1 -0
- package/dist/stencil-library/p-CnQR_-WL.js +3 -0
- package/dist/stencil-library/{p-D0YnIAAN.js.map → p-CnQR_-WL.js.map} +1 -1
- package/dist/stencil-library/p-ab42a80c.entry.js +32 -0
- package/dist/stencil-library/{p-114136e0.entry.js.map → p-ab42a80c.entry.js.map} +1 -1
- package/dist/stencil-library/p-b3f0c6b6.entry.js +2 -0
- package/dist/stencil-library/p-b3f0c6b6.entry.js.map +1 -0
- package/dist/stencil-library/p-fec24b2b.entry.js +2 -0
- package/dist/stencil-library/p-fec24b2b.entry.js.map +1 -0
- package/dist/stencil-library/packbits-i_L--d7r.js.map +1 -0
- package/dist/stencil-library/pako.esm-BdkEMvj8.js.map +1 -0
- package/dist/stencil-library/raw-Cp-44rFp.js.map +1 -0
- package/dist/stencil-library/solar-calculator.entry.esm.js.map +1 -1
- package/dist/stencil-library/stencil-library.esm.js +1 -1
- package/dist/stencil-library/stencil-library.esm.js.map +1 -1
- package/dist/stencil-library/webimage-Cn4h3lmO.js.map +1 -0
- package/dist/types/components/icons/eraser.d.ts +1 -0
- package/dist/types/components/icons/house.d.ts +1 -0
- package/dist/types/components/icons/icon.d.ts +1 -0
- package/dist/types/components/icons/move.d.ts +1 -0
- package/dist/types/components/icons/octagonMinus.d.ts +1 -0
- package/dist/types/components/icons/search.d.ts +1 -0
- package/dist/types/components/map-draw/map-draw.d.ts +1 -0
- package/dist/types/components/solar-system-form/solar-system-form.d.ts +0 -2
- package/dist/types/components/widgets/loading-widget.d.ts +3 -0
- package/dist/types/components.d.ts +25 -0
- package/package.json +1 -1
- package/dist/components/p-C1W188Ni.js +0 -81
- package/dist/components/p-C1W188Ni.js.map +0 -1
- package/dist/components/p-CPzvPKKZ.js +0 -33
- package/dist/components/p-CPzvPKKZ.js.map +0 -1
- package/dist/components/p-Ca4aCGPQ.js +0 -33
- package/dist/components/p-Ca4aCGPQ.js.map +0 -1
- package/dist/components/p-CzP6SYTZ.js +0 -15447
- package/dist/components/p-CzP6SYTZ.js.map +0 -1
- package/dist/components/p-DFkHeRrz.js +0 -33
- package/dist/components/p-DFkHeRrz.js.map +0 -1
- package/dist/components/p-DRNQUQ1y.js.map +0 -1
- package/dist/components/p-Dpqxsv0f.js +0 -33
- package/dist/components/p-Dpqxsv0f.js.map +0 -1
- package/dist/components/p-KbJZx_Vg.js +0 -33
- package/dist/components/p-KbJZx_Vg.js.map +0 -1
- package/dist/stencil-library/p-114136e0.entry.js +0 -32
- package/dist/stencil-library/p-761eaa1f.entry.js +0 -20
- package/dist/stencil-library/p-761eaa1f.entry.js.map +0 -1
- package/dist/stencil-library/p-D0YnIAAN.js +0 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var index = require('./index-
|
|
3
|
+
var index = require('./index-GZ-kuJi4.js');
|
|
4
4
|
var appGlobals = require('./app-globals-V2Kpy_OQ.js');
|
|
5
5
|
|
|
6
6
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
@@ -19,7 +19,7 @@ var patchBrowser = () => {
|
|
|
19
19
|
|
|
20
20
|
patchBrowser().then(async (options) => {
|
|
21
21
|
await appGlobals.globalScripts();
|
|
22
|
-
return index.bootstrapLazy([["solar-calculator.cjs",[[0,"solar-calculator",{"apiKey":[1,"api-key"],"buildingInsights":[32],"isLoaded":[32],"autocomplete":[32],"place":[32]}]]],["eraser-icon_9.cjs",[[0,"solar-expert",{"apiKey":[1,"api-key"],"language":[1],"latitude":[32],"longitude":[32],"isLoaded":[32],"autocomplete":[32],"place":[32]}],[0,"map-draw",{"language":[1],"apiKey":[1,"api-key"],"latitude":[2],"longitude":[2],"config":[16],"solarPanel":[16,"solar-panel"],"zoom":[32],"loadingState":[32],"rgbTiff":[32],"draggedPointIndex":[32],"hoveredPointIndex":[32],"hoveredPolygon":[32],"shiftKeyPressed":[32],"altKeyPressed":[32],"mousePoint":[32],"currentTool":[32],"roofPolygons":[32],"roofPolygonsSolarPanels":[32],"obstructionPolygons":[32],"selectedPolygon":[32],"buildingInsights":[32],"pixelInMeters":[32],"showAzimuth":[32]},[[5,"mousemove","handleMouseMove"],[4,"keydown","handleKeyDown"],[4,"keyup","handleKeyUp"],[5,"mousedown","handleMouseDown"],[5,"mouseup","handleMouseUp"]],{"latitude":["getBuildingInsights","getBuildingImages"],"longitude":["getBuildingInsights","getBuildingImages"],"rgbTiff":["drawMap"],"buildingInsights":["drawMap"],"canvasElement":["drawMap"]}],[0,"icon-selector",{"name":[1]}],[
|
|
22
|
+
return index.bootstrapLazy([["loading-widget.cjs",[[0,"loading-widget"]]],["solar-calculator.cjs",[[0,"solar-calculator",{"apiKey":[1,"api-key"],"buildingInsights":[32],"isLoaded":[32],"autocomplete":[32],"place":[32]}]]],["eraser-icon_9.cjs",[[0,"solar-expert",{"apiKey":[1,"api-key"],"language":[1],"latitude":[32],"longitude":[32],"isLoaded":[32],"autocomplete":[32],"place":[32]}],[0,"map-draw",{"language":[1],"apiKey":[1,"api-key"],"latitude":[2],"longitude":[2],"config":[16],"solarPanel":[16,"solar-panel"],"showInstructions":[32],"zoom":[32],"loadingState":[32],"rgbTiff":[32],"draggedPointIndex":[32],"hoveredPointIndex":[32],"hoveredPolygon":[32],"shiftKeyPressed":[32],"altKeyPressed":[32],"mousePoint":[32],"currentTool":[32],"roofPolygons":[32],"roofPolygonsSolarPanels":[32],"obstructionPolygons":[32],"selectedPolygon":[32],"buildingInsights":[32],"pixelInMeters":[32],"showAzimuth":[32]},[[5,"mousemove","handleMouseMove"],[4,"keydown","handleKeyDown"],[4,"keyup","handleKeyUp"],[5,"mousedown","handleMouseDown"],[5,"mouseup","handleMouseUp"]],{"latitude":["getBuildingInsights","getBuildingImages"],"longitude":["getBuildingInsights","getBuildingImages"],"rgbTiff":["drawMap"],"buildingInsights":["drawMap"],"canvasElement":["drawMap"]}],[0,"icon-selector",{"name":[1],"inline":[4]}],[0,"solar-system-form",{"systemConfigs":[16,"system-configs"],"language":[1],"roofPolygons":[16,"roof-polygons"],"obstructionPolygons":[16,"obstruction-polygons"],"householdConsumption":[32],"consumptionProfile":[32],"electricityPrice":[32],"compensationRate":[32],"autonomy":[32],"costSavings":[32],"numberOfPanels":[32],"panelPeakPower":[32],"name":[32],"email":[32],"nameError":[32],"emailError":[32]},null,{"systemConfigs":["updateSystemConfigs"]}],[0,"eraser-icon",{"inline":[4]}],[0,"house-icon",{"inline":[4]}],[0,"move-icon",{"inline":[4]}],[0,"octagon-minus-icon",{"inline":[4]}],[0,"search-icon",{"inline":[4]}]]]], options);
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
exports.setNonce = index.setNonce;
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
"components/map-draw/map-draw.js",
|
|
10
10
|
"components/solar-calculator/solar-calculator.js",
|
|
11
11
|
"components/solar-expert/solar-expert.js",
|
|
12
|
-
"components/solar-system-form/solar-system-form.js"
|
|
12
|
+
"components/solar-system-form/solar-system-form.js",
|
|
13
|
+
"components/widgets/loading-widget.js"
|
|
13
14
|
],
|
|
14
15
|
"compiler": {
|
|
15
16
|
"name": "@stencil/core",
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export class EraserIcon {
|
|
3
|
+
inline = false;
|
|
3
4
|
render() {
|
|
4
|
-
return (h("svg", { key: '
|
|
5
|
+
return (h("svg", { key: '8074c8f7c250ac68425d1aa09df35c613b8011b4', xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", class: `lucide lucide-eraser-icon lucide-eraser ${this.inline ? "inline-block" : ""}` }, h("path", { key: 'dfdfdb9d4e8592bec75408d0825a225c4b27a178', d: "m7 21-4.3-4.3c-1-1-1-2.5 0-3.4l9.6-9.6c1-1 2.5-1 3.4 0l5.6 5.6c1 1 1 2.5 0 3.4L13 21" }), h("path", { key: '7ec9801caccecb184f4c7bada68a77ba9656e4d6', d: "M22 21H7" }), h("path", { key: 'f0382f8213c6d5bf2dbb66bfb654c5111491f197', d: "m5 11 9 9" })));
|
|
5
6
|
}
|
|
6
7
|
static get is() { return "eraser-icon"; }
|
|
7
8
|
static get originalStyleUrls() {
|
|
@@ -14,5 +15,29 @@ export class EraserIcon {
|
|
|
14
15
|
"$": ["../../output.css"]
|
|
15
16
|
};
|
|
16
17
|
}
|
|
18
|
+
static get properties() {
|
|
19
|
+
return {
|
|
20
|
+
"inline": {
|
|
21
|
+
"type": "boolean",
|
|
22
|
+
"attribute": "inline",
|
|
23
|
+
"mutable": false,
|
|
24
|
+
"complexType": {
|
|
25
|
+
"original": "boolean",
|
|
26
|
+
"resolved": "boolean",
|
|
27
|
+
"references": {}
|
|
28
|
+
},
|
|
29
|
+
"required": false,
|
|
30
|
+
"optional": false,
|
|
31
|
+
"docs": {
|
|
32
|
+
"tags": [],
|
|
33
|
+
"text": ""
|
|
34
|
+
},
|
|
35
|
+
"getter": false,
|
|
36
|
+
"setter": false,
|
|
37
|
+
"reflect": false,
|
|
38
|
+
"defaultValue": "false"
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
}
|
|
17
42
|
}
|
|
18
43
|
//# sourceMappingURL=eraser.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eraser.js","sourceRoot":"","sources":["../../../src/components/icons/eraser.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"eraser.js","sourceRoot":"","sources":["../../../src/components/icons/eraser.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOnD,MAAM,OAAO,UAAU;IAEnB,MAAM,GAAY,KAAK,CAAC;IAExB,MAAM;QACF,OAAO,CACH,4DACI,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,kBACR,GAAG,oBACD,OAAO,qBACN,OAAO,EACvB,KAAK,EAAE,2CACH,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EACnC,EAAE;YAEF,6DAAM,CAAC,EAAC,sFAAsF,GAAG;YACjG,6DAAM,CAAC,EAAC,UAAU,GAAG;YACrB,6DAAM,CAAC,EAAC,WAAW,GAAG,CACpB,CACT,CAAC;IACN,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, h, Prop } from \"@stencil/core\";\r\n\r\n@Component({\r\n tag: \"eraser-icon\",\r\n styleUrl: \"../../output.css\",\r\n shadow: false,\r\n})\r\nexport class EraserIcon {\r\n @Prop()\r\n inline: boolean = false;\r\n\r\n render() {\r\n return (\r\n <svg\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"24\"\r\n height=\"24\"\r\n viewBox=\"0 0 24 24\"\r\n fill=\"none\"\r\n stroke=\"currentColor\"\r\n stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n class={`lucide lucide-eraser-icon lucide-eraser ${\r\n this.inline ? \"inline-block\" : \"\"\r\n }`}\r\n >\r\n <path d=\"m7 21-4.3-4.3c-1-1-1-2.5 0-3.4l9.6-9.6c1-1 2.5-1 3.4 0l5.6 5.6c1 1 1 2.5 0 3.4L13 21\" />\r\n <path d=\"M22 21H7\" />\r\n <path d=\"m5 11 9 9\" />\r\n </svg>\r\n );\r\n }\r\n}\r\n"]}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export class HouseIcon {
|
|
3
|
+
inline = false;
|
|
3
4
|
render() {
|
|
4
|
-
return (h("svg", { key: '
|
|
5
|
+
return (h("svg", { key: 'f96ca40e34a3fce498b9bb8f930430ca71d8f0c6', xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", class: `lucide lucide-house-icon lucide-house ${this.inline ? "inline-block" : ""}` }, h("path", { key: '02c4c6a4674abf787145f9ef141c05d9ad53970d', d: "M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8" }), h("path", { key: '3c50ec0b927eb7b2c68e05c3e7e65272363375ba', d: "M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z" })));
|
|
5
6
|
}
|
|
6
7
|
static get is() { return "house-icon"; }
|
|
7
8
|
static get originalStyleUrls() {
|
|
@@ -14,5 +15,29 @@ export class HouseIcon {
|
|
|
14
15
|
"$": ["../../output.css"]
|
|
15
16
|
};
|
|
16
17
|
}
|
|
18
|
+
static get properties() {
|
|
19
|
+
return {
|
|
20
|
+
"inline": {
|
|
21
|
+
"type": "boolean",
|
|
22
|
+
"attribute": "inline",
|
|
23
|
+
"mutable": false,
|
|
24
|
+
"complexType": {
|
|
25
|
+
"original": "boolean",
|
|
26
|
+
"resolved": "boolean",
|
|
27
|
+
"references": {}
|
|
28
|
+
},
|
|
29
|
+
"required": false,
|
|
30
|
+
"optional": false,
|
|
31
|
+
"docs": {
|
|
32
|
+
"tags": [],
|
|
33
|
+
"text": ""
|
|
34
|
+
},
|
|
35
|
+
"getter": false,
|
|
36
|
+
"setter": false,
|
|
37
|
+
"reflect": false,
|
|
38
|
+
"defaultValue": "false"
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
}
|
|
17
42
|
}
|
|
18
43
|
//# sourceMappingURL=house.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"house.js","sourceRoot":"","sources":["../../../src/components/icons/house.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"house.js","sourceRoot":"","sources":["../../../src/components/icons/house.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOnD,MAAM,OAAO,SAAS;IAElB,MAAM,GAAY,KAAK,CAAC;IAExB,MAAM;QACF,OAAO,CACH,4DACI,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,kBACR,GAAG,oBACD,OAAO,qBACN,OAAO,EACvB,KAAK,EAAE,yCACH,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EACnC,EAAE;YAEF,6DAAM,CAAC,EAAC,4CAA4C,GAAG;YACvD,6DAAM,CAAC,EAAC,+GAA+G,GAAG,CACxH,CACT,CAAC;IACN,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, h, Prop } from \"@stencil/core\";\r\n\r\n@Component({\r\n tag: \"house-icon\",\r\n styleUrl: \"../../output.css\",\r\n shadow: false,\r\n})\r\nexport class HouseIcon {\r\n @Prop()\r\n inline: boolean = false;\r\n\r\n render() {\r\n return (\r\n <svg\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"24\"\r\n height=\"24\"\r\n viewBox=\"0 0 24 24\"\r\n fill=\"none\"\r\n stroke=\"currentColor\"\r\n stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n class={`lucide lucide-house-icon lucide-house ${\r\n this.inline ? \"inline-block\" : \"\"\r\n }`}\r\n >\r\n <path d=\"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8\" />\r\n <path d=\"M3 10a2 2 0 0 1 .709-1.528l7-5.999a2 2 0 0 1 2.582 0l7 5.999A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z\" />\r\n </svg>\r\n );\r\n }\r\n}\r\n"]}
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export class Icon {
|
|
3
3
|
name;
|
|
4
|
+
inline = false;
|
|
4
5
|
render() {
|
|
5
6
|
if (this.name === "search") {
|
|
6
|
-
return h("search-icon",
|
|
7
|
+
return h("search-icon", { inline: this.inline });
|
|
7
8
|
}
|
|
8
9
|
if (this.name === "house") {
|
|
9
|
-
return h("house-icon",
|
|
10
|
+
return h("house-icon", { inline: this.inline });
|
|
10
11
|
}
|
|
11
12
|
if (this.name === "move") {
|
|
12
|
-
return h("move-icon",
|
|
13
|
+
return h("move-icon", { inline: this.inline });
|
|
13
14
|
}
|
|
14
15
|
if (this.name === "octagon-minus") {
|
|
15
|
-
return h("octagon-minus-icon",
|
|
16
|
+
return h("octagon-minus-icon", { inline: this.inline });
|
|
16
17
|
}
|
|
17
18
|
if (this.name === "eraser") {
|
|
18
|
-
return h("eraser-icon",
|
|
19
|
+
return h("eraser-icon", { inline: this.inline });
|
|
19
20
|
}
|
|
20
|
-
return h("div",
|
|
21
|
+
return (h("div", { class: `${this.inline ? "inline-block" : ""}` }, "Icon ", this.name));
|
|
21
22
|
}
|
|
22
23
|
static get is() { return "icon-selector"; }
|
|
23
24
|
static get originalStyleUrls() {
|
|
@@ -50,6 +51,26 @@ export class Icon {
|
|
|
50
51
|
"getter": false,
|
|
51
52
|
"setter": false,
|
|
52
53
|
"reflect": false
|
|
54
|
+
},
|
|
55
|
+
"inline": {
|
|
56
|
+
"type": "boolean",
|
|
57
|
+
"attribute": "inline",
|
|
58
|
+
"mutable": false,
|
|
59
|
+
"complexType": {
|
|
60
|
+
"original": "boolean",
|
|
61
|
+
"resolved": "boolean",
|
|
62
|
+
"references": {}
|
|
63
|
+
},
|
|
64
|
+
"required": false,
|
|
65
|
+
"optional": false,
|
|
66
|
+
"docs": {
|
|
67
|
+
"tags": [],
|
|
68
|
+
"text": ""
|
|
69
|
+
},
|
|
70
|
+
"getter": false,
|
|
71
|
+
"setter": false,
|
|
72
|
+
"reflect": false,
|
|
73
|
+
"defaultValue": "false"
|
|
53
74
|
}
|
|
54
75
|
};
|
|
55
76
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon.js","sourceRoot":"","sources":["../../../src/components/icons/icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOnD,MAAM,OAAO,IAAI;IAEb,IAAI,CAAS;IAEb,MAAM;QACF,IAAI,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;YACzB,OAAO,
|
|
1
|
+
{"version":3,"file":"icon.js","sourceRoot":"","sources":["../../../src/components/icons/icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOnD,MAAM,OAAO,IAAI;IAEb,IAAI,CAAS;IAEb,MAAM,GAAY,KAAK,CAAC;IAExB,MAAM;QACF,IAAI,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;YACzB,OAAO,mBAAa,MAAM,EAAE,IAAI,CAAC,MAAM,GAAI,CAAC;QAChD,CAAC;QACD,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO,EAAE,CAAC;YACxB,OAAO,kBAAY,MAAM,EAAE,IAAI,CAAC,MAAM,GAAI,CAAC;QAC/C,CAAC;QACD,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;YACvB,OAAO,iBAAW,MAAM,EAAE,IAAI,CAAC,MAAM,GAAI,CAAC;QAC9C,CAAC;QACD,IAAI,IAAI,CAAC,IAAI,KAAK,eAAe,EAAE,CAAC;YAChC,OAAO,0BAAoB,MAAM,EAAE,IAAI,CAAC,MAAM,GAAI,CAAC;QACvD,CAAC;QACD,IAAI,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAE,CAAC;YACzB,OAAO,mBAAa,MAAM,EAAE,IAAI,CAAC,MAAM,GAAI,CAAC;QAChD,CAAC;QACD,OAAO,CACH,WAAK,KAAK,EAAE,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,EAAE;;YACxC,IAAI,CAAC,IAAI,CACb,CACT,CAAC;IACN,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, h, Prop } from \"@stencil/core\";\r\n\r\n@Component({\r\n tag: \"icon-selector\",\r\n styleUrl: \"../../output.css\",\r\n shadow: false,\r\n})\r\nexport class Icon {\r\n @Prop()\r\n name: string;\r\n @Prop()\r\n inline: boolean = false;\r\n\r\n render() {\r\n if (this.name === \"search\") {\r\n return <search-icon inline={this.inline} />;\r\n }\r\n if (this.name === \"house\") {\r\n return <house-icon inline={this.inline} />;\r\n }\r\n if (this.name === \"move\") {\r\n return <move-icon inline={this.inline} />;\r\n }\r\n if (this.name === \"octagon-minus\") {\r\n return <octagon-minus-icon inline={this.inline} />;\r\n }\r\n if (this.name === \"eraser\") {\r\n return <eraser-icon inline={this.inline} />;\r\n }\r\n return (\r\n <div class={`${this.inline ? \"inline-block\" : \"\"}`}>\r\n Icon {this.name}\r\n </div>\r\n );\r\n }\r\n}\r\n"]}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export class MoveIcon {
|
|
3
|
+
inline = false;
|
|
3
4
|
render() {
|
|
4
|
-
return (h("svg", { key: '
|
|
5
|
+
return (h("svg", { key: 'cd051a538e57e2cdc0ea9d62d8b11ff8ff9f63a3', xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", class: `lucide lucide-move-icon lucide-move ${this.inline ? "inline-block" : ""}` }, h("path", { key: 'b92537a85fce1627e7ad388281562ca8eda3122f', d: "M12 2v20" }), h("path", { key: '9dbe2fed1545dc4226f1636d910869674c6488aa', d: "m15 19-3 3-3-3" }), h("path", { key: '9c51f8798704e50caa69912b9cfc8079dc1bab9f', d: "m19 9 3 3-3 3" }), h("path", { key: '5324430ee24fd2d45ef81efd1917b65b2cda5879', d: "M2 12h20" }), h("path", { key: '39b6af13bcb9a38a7294ff5bafc550634bd36a68', d: "m5 9-3 3 3 3" }), h("path", { key: '6264f83b13ba17e4d20a6fad15a875fdff805209', d: "m9 5 3-3 3 3" })));
|
|
5
6
|
}
|
|
6
7
|
static get is() { return "move-icon"; }
|
|
7
8
|
static get originalStyleUrls() {
|
|
@@ -14,5 +15,29 @@ export class MoveIcon {
|
|
|
14
15
|
"$": ["../../output.css"]
|
|
15
16
|
};
|
|
16
17
|
}
|
|
18
|
+
static get properties() {
|
|
19
|
+
return {
|
|
20
|
+
"inline": {
|
|
21
|
+
"type": "boolean",
|
|
22
|
+
"attribute": "inline",
|
|
23
|
+
"mutable": false,
|
|
24
|
+
"complexType": {
|
|
25
|
+
"original": "boolean",
|
|
26
|
+
"resolved": "boolean",
|
|
27
|
+
"references": {}
|
|
28
|
+
},
|
|
29
|
+
"required": false,
|
|
30
|
+
"optional": false,
|
|
31
|
+
"docs": {
|
|
32
|
+
"tags": [],
|
|
33
|
+
"text": ""
|
|
34
|
+
},
|
|
35
|
+
"getter": false,
|
|
36
|
+
"setter": false,
|
|
37
|
+
"reflect": false,
|
|
38
|
+
"defaultValue": "false"
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
}
|
|
17
42
|
}
|
|
18
43
|
//# sourceMappingURL=move.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"move.js","sourceRoot":"","sources":["../../../src/components/icons/move.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"move.js","sourceRoot":"","sources":["../../../src/components/icons/move.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOnD,MAAM,OAAO,QAAQ;IAEjB,MAAM,GAAY,KAAK,CAAC;IAExB,MAAM;QACF,OAAO,CACH,4DACI,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,kBACR,GAAG,oBACD,OAAO,qBACN,OAAO,EACvB,KAAK,EAAE,uCACH,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EACnC,EAAE;YAEF,6DAAM,CAAC,EAAC,UAAU,GAAG;YACrB,6DAAM,CAAC,EAAC,gBAAgB,GAAG;YAC3B,6DAAM,CAAC,EAAC,eAAe,GAAG;YAC1B,6DAAM,CAAC,EAAC,UAAU,GAAG;YACrB,6DAAM,CAAC,EAAC,cAAc,GAAG;YACzB,6DAAM,CAAC,EAAC,cAAc,GAAG,CACvB,CACT,CAAC;IACN,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, h, Prop } from \"@stencil/core\";\r\n\r\n@Component({\r\n tag: \"move-icon\",\r\n styleUrl: \"../../output.css\",\r\n shadow: false,\r\n})\r\nexport class MoveIcon {\r\n @Prop()\r\n inline: boolean = false;\r\n\r\n render() {\r\n return (\r\n <svg\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"24\"\r\n height=\"24\"\r\n viewBox=\"0 0 24 24\"\r\n fill=\"none\"\r\n stroke=\"currentColor\"\r\n stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n class={`lucide lucide-move-icon lucide-move ${\r\n this.inline ? \"inline-block\" : \"\"\r\n }`}\r\n >\r\n <path d=\"M12 2v20\" />\r\n <path d=\"m15 19-3 3-3-3\" />\r\n <path d=\"m19 9 3 3-3 3\" />\r\n <path d=\"M2 12h20\" />\r\n <path d=\"m5 9-3 3 3 3\" />\r\n <path d=\"m9 5 3-3 3 3\" />\r\n </svg>\r\n );\r\n }\r\n}\r\n"]}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export class OctagonMinusIcon {
|
|
3
|
+
inline = false;
|
|
3
4
|
render() {
|
|
4
|
-
return (h("svg", { key: '
|
|
5
|
+
return (h("svg", { key: '9b05ad54a904dd523737fee890ebcc34ad60e7a4', xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", class: `lucide lucide-octagon-minus-icon lucide-octagon-minus ${this.inline ? "inline-block" : ""}` }, h("path", { key: '2bbdb865a1a4eab9ea30607208f28d830d70d983', d: "M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z" }), h("path", { key: '46854cf79b2394f0c430b8b96cba84a2a233e516', d: "M8 12h8" })));
|
|
5
6
|
}
|
|
6
7
|
static get is() { return "octagon-minus-icon"; }
|
|
7
8
|
static get originalStyleUrls() {
|
|
@@ -14,5 +15,29 @@ export class OctagonMinusIcon {
|
|
|
14
15
|
"$": ["../../output.css"]
|
|
15
16
|
};
|
|
16
17
|
}
|
|
18
|
+
static get properties() {
|
|
19
|
+
return {
|
|
20
|
+
"inline": {
|
|
21
|
+
"type": "boolean",
|
|
22
|
+
"attribute": "inline",
|
|
23
|
+
"mutable": false,
|
|
24
|
+
"complexType": {
|
|
25
|
+
"original": "boolean",
|
|
26
|
+
"resolved": "boolean",
|
|
27
|
+
"references": {}
|
|
28
|
+
},
|
|
29
|
+
"required": false,
|
|
30
|
+
"optional": false,
|
|
31
|
+
"docs": {
|
|
32
|
+
"tags": [],
|
|
33
|
+
"text": ""
|
|
34
|
+
},
|
|
35
|
+
"getter": false,
|
|
36
|
+
"setter": false,
|
|
37
|
+
"reflect": false,
|
|
38
|
+
"defaultValue": "false"
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
}
|
|
17
42
|
}
|
|
18
43
|
//# sourceMappingURL=octagonMinus.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"octagonMinus.js","sourceRoot":"","sources":["../../../src/components/icons/octagonMinus.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"octagonMinus.js","sourceRoot":"","sources":["../../../src/components/icons/octagonMinus.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOnD,MAAM,OAAO,gBAAgB;IAEzB,MAAM,GAAY,KAAK,CAAC;IAExB,MAAM;QACF,OAAO,CACH,4DACI,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,kBACR,GAAG,oBACD,OAAO,qBACN,OAAO,EACvB,KAAK,EAAE,yDACH,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EACnC,EAAE;YAEF,6DAAM,CAAC,EAAC,4OAA4O,GAAG;YACvP,6DAAM,CAAC,EAAC,SAAS,GAAG,CAClB,CACT,CAAC;IACN,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, h, Prop } from \"@stencil/core\";\r\n\r\n@Component({\r\n tag: \"octagon-minus-icon\",\r\n styleUrl: \"../../output.css\",\r\n shadow: false,\r\n})\r\nexport class OctagonMinusIcon {\r\n @Prop()\r\n inline: boolean = false;\r\n\r\n render() {\r\n return (\r\n <svg\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"24\"\r\n height=\"24\"\r\n viewBox=\"0 0 24 24\"\r\n fill=\"none\"\r\n stroke=\"currentColor\"\r\n stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n class={`lucide lucide-octagon-minus-icon lucide-octagon-minus ${\r\n this.inline ? \"inline-block\" : \"\"\r\n }`}\r\n >\r\n <path d=\"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z\" />\r\n <path d=\"M8 12h8\" />\r\n </svg>\r\n );\r\n }\r\n}\r\n"]}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
2
|
export class SearchIcon {
|
|
3
|
+
inline = false;
|
|
3
4
|
render() {
|
|
4
|
-
return (h("svg", { key: '
|
|
5
|
+
return (h("svg", { key: 'fe6ab0465f734d76f67a1bef8acde2f4b68adec4', xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round", class: `lucide lucide-search-icon lucide-search ${this.inline ? "inline-block" : ""}` }, h("path", { key: '30ebc16aa3ad74bf71bd9d29819b4abf00db32d0', d: "m21 21-4.34-4.34" }), h("circle", { key: '5fb6a2afca6aef0e63005550c60eb9fc517699bf', cx: "11", cy: "11", r: "8" })));
|
|
5
6
|
}
|
|
6
7
|
static get is() { return "search-icon"; }
|
|
7
8
|
static get originalStyleUrls() {
|
|
@@ -14,5 +15,29 @@ export class SearchIcon {
|
|
|
14
15
|
"$": ["../../output.css"]
|
|
15
16
|
};
|
|
16
17
|
}
|
|
18
|
+
static get properties() {
|
|
19
|
+
return {
|
|
20
|
+
"inline": {
|
|
21
|
+
"type": "boolean",
|
|
22
|
+
"attribute": "inline",
|
|
23
|
+
"mutable": false,
|
|
24
|
+
"complexType": {
|
|
25
|
+
"original": "boolean",
|
|
26
|
+
"resolved": "boolean",
|
|
27
|
+
"references": {}
|
|
28
|
+
},
|
|
29
|
+
"required": false,
|
|
30
|
+
"optional": false,
|
|
31
|
+
"docs": {
|
|
32
|
+
"tags": [],
|
|
33
|
+
"text": ""
|
|
34
|
+
},
|
|
35
|
+
"getter": false,
|
|
36
|
+
"setter": false,
|
|
37
|
+
"reflect": false,
|
|
38
|
+
"defaultValue": "false"
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
}
|
|
17
42
|
}
|
|
18
43
|
//# sourceMappingURL=search.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.js","sourceRoot":"","sources":["../../../src/components/icons/search.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"search.js","sourceRoot":"","sources":["../../../src/components/icons/search.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOnD,MAAM,OAAO,UAAU;IAEnB,MAAM,GAAY,KAAK,CAAC;IAExB,MAAM;QACF,OAAO,CACH,4DACI,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,kBACR,GAAG,oBACD,OAAO,qBACN,OAAO,EACvB,KAAK,EAAE,2CACH,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EACnC,EAAE;YAEF,6DAAM,CAAC,EAAC,kBAAkB,GAAG;YAC7B,+DAAQ,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,CAAC,EAAC,GAAG,GAAG,CAC9B,CACT,CAAC;IACN,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, h, Prop } from \"@stencil/core\";\r\n\r\n@Component({\r\n tag: \"search-icon\",\r\n styleUrl: \"../../output.css\",\r\n shadow: false,\r\n})\r\nexport class SearchIcon {\r\n @Prop()\r\n inline: boolean = false;\r\n\r\n render() {\r\n return (\r\n <svg\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"24\"\r\n height=\"24\"\r\n viewBox=\"0 0 24 24\"\r\n fill=\"none\"\r\n stroke=\"currentColor\"\r\n stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n class={`lucide lucide-search-icon lucide-search ${\r\n this.inline ? \"inline-block\" : \"\"\r\n }`}\r\n >\r\n <path d=\"m21 21-4.34-4.34\" />\r\n <circle cx=\"11\" cy=\"11\" r=\"8\" />\r\n </svg>\r\n );\r\n }\r\n}\r\n"]}
|
|
@@ -20,6 +20,7 @@ export class MapDraw {
|
|
|
20
20
|
longitude = null;
|
|
21
21
|
config = DEFAULT_SOLAR_EXPERT_CONFIG;
|
|
22
22
|
solarPanel = DEFAULT_SOLAR_PANEL_TYPE;
|
|
23
|
+
showInstructions = true;
|
|
23
24
|
zoom = 1;
|
|
24
25
|
loadingState = "empty";
|
|
25
26
|
rgbTiff = null;
|
|
@@ -63,11 +64,48 @@ export class MapDraw {
|
|
|
63
64
|
}
|
|
64
65
|
});
|
|
65
66
|
}
|
|
67
|
+
// // Initial size update
|
|
68
|
+
// requestAnimationFrame(() => {
|
|
69
|
+
// this.updateCanvasSize();
|
|
70
|
+
// });
|
|
71
|
+
// }
|
|
72
|
+
// disconnectedCallback() {
|
|
73
|
+
// if (this.resizeObserver) {
|
|
74
|
+
// this.resizeObserver.disconnect();
|
|
75
|
+
// }
|
|
76
|
+
// }
|
|
77
|
+
// private updateCanvasSize() {
|
|
78
|
+
// if (!this.containerRef || !this.canvasElement || !this.polygonCanvas) {
|
|
79
|
+
// return;
|
|
80
|
+
// }
|
|
81
|
+
// const containerRect = this.containerRef.getBoundingClientRect();
|
|
82
|
+
// const containerWidth = containerRect.width;
|
|
83
|
+
// const containerHeight = containerRect.height;
|
|
84
|
+
// // Calculate the scale to fit the image while maintaining aspect ratio
|
|
85
|
+
// if (this.rgbTiff) {
|
|
86
|
+
// const imageAspect = this.rgbTiff.width / this.rgbTiff.height;
|
|
87
|
+
// const containerAspect = containerWidth / containerHeight;
|
|
88
|
+
// let width, height;
|
|
89
|
+
// if (imageAspect > containerAspect) {
|
|
90
|
+
// width = containerWidth;
|
|
91
|
+
// height = containerWidth / imageAspect;
|
|
92
|
+
// } else {
|
|
93
|
+
// height = containerHeight;
|
|
94
|
+
// width = containerHeight * imageAspect;
|
|
95
|
+
// }
|
|
96
|
+
// // Set the canvas dimensions
|
|
97
|
+
// this.canvasElement.width = width;
|
|
98
|
+
// this.canvasElement.height = height;
|
|
99
|
+
// this.polygonCanvas.width = width;
|
|
100
|
+
// this.polygonCanvas.height = height;
|
|
101
|
+
// this.polygonCtx = this.polygonCanvas.getContext("2d");
|
|
102
|
+
// // Update zoom factor based on new size
|
|
103
|
+
// this.zoom = width / this.rgbTiff.width;
|
|
104
|
+
// // Force a redraw
|
|
105
|
+
// this.drawMap();
|
|
106
|
+
// }
|
|
107
|
+
// }
|
|
66
108
|
sizeCanvas(width, height) {
|
|
67
|
-
// if (this.canvasElement) {
|
|
68
|
-
// this.canvasElement.width = width;
|
|
69
|
-
// this.canvasElement.height = height;
|
|
70
|
-
// }
|
|
71
109
|
if (this.polygonCanvas) {
|
|
72
110
|
this.polygonCanvas.width = width;
|
|
73
111
|
this.polygonCanvas.height = height;
|
|
@@ -351,6 +389,7 @@ export class MapDraw {
|
|
|
351
389
|
_id = newPolygon._id;
|
|
352
390
|
}
|
|
353
391
|
this.selectedPolygon = { _id, type: this.currentTool.name };
|
|
392
|
+
this.drawPolygons();
|
|
354
393
|
return;
|
|
355
394
|
}
|
|
356
395
|
const { _id, type } = this.selectedPolygon;
|
|
@@ -477,27 +516,35 @@ export class MapDraw {
|
|
|
477
516
|
render() {
|
|
478
517
|
const t = getLanguageStrings(this.language);
|
|
479
518
|
const currentPolygon = this.getCurrentPolygon();
|
|
480
|
-
return (h("div", { key: '
|
|
519
|
+
return (h("div", { key: 'c1074bbc3cffffaa59d6b72d65460e3b58dae40e', class: "flex flex-col justify-center items-center w-full h-full gap-4" }, this.showInstructions && (h("div", { key: '2ec73b13be80dea76f8058750f49f8be5b9e56b3', class: "w-full rounded-4xl p-4", style: {
|
|
520
|
+
backgroundColor: "rgba(0, 0, 0, 0.1)",
|
|
521
|
+
} }, "After you have searched and selected your address. Highlight the part of your roof that you want to add solar panels to. Mark each surface with a polygon with the roof tool", " ", h("icon-selector", { key: '8fd5c274bd72dc287ffaf13622332c5000009a29', name: "house", inline: true }), " ", ". If you have skylights or other obstructions where you don't want to add solar panels, mark those as well with the obstruction tool", " ", h("icon-selector", { key: '21c377c9a081e89527090b3fd2f23972cbb7f085', name: "octagon-minus", inline: true }), ". You can delete polygons with the delete tool", " ", h("icon-selector", { key: '3bbd6ed32192bf4b0423d12234836dd20cd8d961', name: "eraser", inline: true }), ". If you want to change the azimuth or pitch of a polygon, select the move tool", " ", h("icon-selector", { key: '40ec20b5c99f6845edb56ff253d9d552d96fd739', name: "move", inline: true }), ", select the polygon you want to change and drag and drop the edges.")), h("div", { key: 'e6da73387ea43a51c1f5eb0e499af8a9ef3cf201', class: "flex lg:gap-4 rounded-4xl bg-[#f3ebda] p-4 flex-wrap justify-center w-full" }, tools.map((tool) => {
|
|
522
|
+
const toolStrings = t.mapDraw.tools[tool.name];
|
|
523
|
+
return (h("button", { class: `px-4 py-2 rounded-4xl transition-colors duration-200 hover:bg-[#ffffff] ${this.currentTool.name === tool.name
|
|
524
|
+
? "bg-[#271200] hover:bg-gray-500"
|
|
525
|
+
: "bg-[#f3ebda] hover:bg-[#ffffff]"}`, style: {
|
|
526
|
+
color: this.currentTool.name === tool.name
|
|
527
|
+
? "#ffffff"
|
|
528
|
+
: "#000000",
|
|
529
|
+
}, "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))));
|
|
530
|
+
})), this.loadingState === "empty" && (h("div", { key: 'fcd755d5b1034b65ee91f0e86ddb6255748cda0c', class: "w-full" }, h("p", { key: 'a139b9301c89a76d69ab400be70574478498069f', class: "text-white text-center flex items-center justify-center rounded-4xl p-4 w-full", style: {
|
|
481
531
|
backgroundColor: "rgba(0, 0, 0, 0.5)",
|
|
482
532
|
} }, t.mapDraw.noAddressSelected))), (this.latitude && this.longitude &&
|
|
483
|
-
this.loadingState
|
|
484
|
-
const toolStrings = t.mapDraw.tools[tool.name];
|
|
485
|
-
return (h("button", { class: `px-4 py-2 rounded-4xl transition-colors duration-200 hover:bg-[#964500] ${this.currentTool.name === tool.name
|
|
486
|
-
? "bg-[#271200] text-white hover:bg-[#964500]"
|
|
487
|
-
: "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))));
|
|
488
|
-
})), 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: {
|
|
533
|
+
this.loadingState === "loading") && (h("div", { key: '1c6fde5a93a076b82c7ea676325126e064b4fd7b', class: "flex items-center justify-center bg-white bg-opacity-75 z-20 pt-7 rounded-4xl" }, h("div", { key: '1e3011375805e4fcddf65a2e077894349190e1b0', class: "animate-spin rounded-full h-16 w-16 border-t-2 border-b-2 border-[#271200]" }))), h("div", { key: '73cf21d0d11f0228688158ce4955c78ff034699a', class: "flex gap-4 items-start justify-center h-full" }, h("div", { key: '3294d1bf9edb999fa0a3b31f92a5da34246d694f', class: "relative flex-1 h-full p-4 rounded-4xl flex items-center justify-center", style: {
|
|
489
534
|
width: `${this.rgbTiff?.width * FACTOR || 0}px`,
|
|
490
535
|
height: `${this.rgbTiff?.height * FACTOR || 0}px`,
|
|
491
|
-
} }, h("canvas", { key: '
|
|
536
|
+
} }, h("canvas", { key: '12d9b7110cebb4022f8d25d0b6b62d1e83fc91c2', ref: (el) => this.canvasElement = el, class: `absolute top-0 left-0 z-1 rounded-4xl m-auto`, style: {
|
|
492
537
|
cursor: this.currentTool.cursor,
|
|
493
|
-
} }), h("canvas", { key: '
|
|
538
|
+
} }), h("canvas", { key: 'f2f116e61c23ff59db85610814ea748210618151', ref: (el) => this.polygonCanvas = el, class: `absolute top-0 left-0 z-10 rounded-4xl m-auto`, style: {
|
|
494
539
|
cursor: this.currentTool.cursor,
|
|
495
|
-
} }))), h("div", { key: '
|
|
496
|
-
? (h("div", { class: "space-y-4" }, h("div", { class: "flex flex-col gap-2" }, h("button", { class: "px-4 py-2 bg-[#271200]
|
|
540
|
+
} }))), h("div", { key: 'ee1ca6d0acdd3b8a1200657a985726d0dd6c91a6', class: "flex gap-4 flex-row justify-center items-center w-full" }, h("div", { key: 'f3bcb0608a35c24886efdf49feebed250f504e82', class: "w-full bg-[#f3ebda] rounded-4xl p-4" }, h("h3", { key: 'c7e3efa275edfedb2dc99715fc6896e830c00ce1', class: "text-lg font-semibold mb-4 text-center" }, t.mapDraw.information), currentPolygon?.details
|
|
541
|
+
? (h("div", { class: "space-y-4" }, h("div", { class: "flex flex-col gap-2" }, h("button", { class: "px-4 py-2 bg-[#271200] rounded-4xl hover:bg-[#ffffff] hover:text-[#271200] transition-colors duration-200", onClick: () => this.calculateSolarPanels(), style: {
|
|
542
|
+
color: "#ffffff",
|
|
543
|
+
} }, t.mapDraw.calculateSolarPanels), this
|
|
497
544
|
.roofPolygonsSolarPanels[currentPolygon._id] && (h("p", { class: "text-lg text-center" }, this
|
|
498
545
|
.roofPolygonsSolarPanels[currentPolygon._id].positionedPanels
|
|
499
546
|
.length, " ", t.mapDraw.panels))), h("div", null, h("h4", { class: "text-sm font-medium text-gray-600" }, t.mapDraw.area), h("p", { class: "text-lg" }, currentPolygon.details?.area
|
|
500
|
-
.toFixed(2), " m\u00B2")), h("div", null, h("h4", { class: "text-sm font-medium text-gray-600" }, "Orientation"), h("div", { class: "flex gap-2 flex-row justify-start" }, h("input", { class: "text-lg w-full", onKeyDown: (e) => {
|
|
547
|
+
.toFixed(2), " m\u00B2")), h("div", null, h("h4", { class: "text-sm font-medium text-gray-600" }, "Orientation"), h("div", { class: "flex gap-2 flex-row justify-start bg-white rounded-4xl p-2" }, h("input", { class: "text-lg w-full", onKeyDown: (e) => {
|
|
501
548
|
if (e.key === "Enter") {
|
|
502
549
|
this.handleAzimuthChange(e);
|
|
503
550
|
e.target
|
|
@@ -506,7 +553,7 @@ export class MapDraw {
|
|
|
506
553
|
}, value: currentPolygon
|
|
507
554
|
.details
|
|
508
555
|
?.azimuth }), "(", azimuthToCardinal(currentPolygon.details
|
|
509
|
-
?.azimuth), ")")), h("div", null, h("h4", { class: "text-sm font-medium text-gray-600" }, t.mapDraw.pitch), h("div", { class: "flex gap-2 flex-row justify-start" }, h("input", { class: "text-lg w-full", onKeyDown: (e) => {
|
|
556
|
+
?.azimuth), ")")), h("div", null, h("h4", { class: "text-sm font-medium text-gray-600 pl-2" }, t.mapDraw.pitch), h("div", { class: "flex gap-2 flex-row justify-start bg-white rounded-4xl p-2" }, h("input", { class: "text-lg w-full", onKeyDown: (e) => {
|
|
510
557
|
if (e.key === "Enter") {
|
|
511
558
|
this.handlePitchChange(e);
|
|
512
559
|
e.target
|
|
@@ -515,7 +562,7 @@ export class MapDraw {
|
|
|
515
562
|
}, value: currentPolygon
|
|
516
563
|
.details
|
|
517
564
|
?.pitch }), "\u00B0"))))
|
|
518
|
-
: (h("p", { class: "text-gray-500 text-center" }, t.mapDraw.noPolygonSelected)))), h("solar-system-form", { key: '
|
|
565
|
+
: (h("p", { class: "text-gray-500 text-center" }, t.mapDraw.noPolygonSelected)))), h("div", { key: '1596027c6a5acffa915c99366f9e74e619f102a7', class: "w-full" }, h("solar-system-form", { key: 'a7712ddf9330d6fa6833d7c717d33af12e8fcfe5', systemConfigs: this.roofPolygonsSolarPanels, language: this.language, roofPolygons: this.roofPolygons, obstructionPolygons: this.obstructionPolygons }))));
|
|
519
566
|
}
|
|
520
567
|
static get is() { return "map-draw"; }
|
|
521
568
|
static get originalStyleUrls() {
|
|
@@ -670,6 +717,7 @@ export class MapDraw {
|
|
|
670
717
|
}
|
|
671
718
|
static get states() {
|
|
672
719
|
return {
|
|
720
|
+
"showInstructions": {},
|
|
673
721
|
"zoom": {},
|
|
674
722
|
"loadingState": {},
|
|
675
723
|
"rgbTiff": {},
|