kitchen-simulator 5.0.0-test.18 → 5.0.0-test.19

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 (179) hide show
  1. package/package.json +8 -26
  2. package/src/@history.js +3 -0
  3. package/src/CrossSignOn.jsx +94 -0
  4. package/src/KitchenConfigurator.jsx +1526 -0
  5. package/src/KitchenConfiguratorApp.jsx +1 -1
  6. package/src/_KitchenConfigurator.jsx +3 -3
  7. package/src/components/catalog-view/catalog-breadcrumb.jsx +53 -0
  8. package/src/components/catalog-view/catalog-item.jsx +229 -0
  9. package/src/components/catalog-view/catalog-list.jsx +173 -0
  10. package/src/components/catalog-view/catalog-page-item.jsx +110 -0
  11. package/src/components/catalog-view/catalog-turn-back-page-item.jsx +80 -0
  12. package/src/components/configurator/custom-configurator.jsx +77 -0
  13. package/src/components/configurator/project-configurator.jsx +120 -0
  14. package/src/components/export.js +36 -0
  15. package/src/components/firstsetting/button/styles.js +223 -0
  16. package/src/components/firstsetting/export.js +9 -0
  17. package/src/components/firstsetting/firstsetting-content-button.jsx +198 -0
  18. package/src/components/firstsetting/firstsetting-toggle-button.jsx +101 -0
  19. package/src/components/firstsetting/firstsetting.jsx +814 -0
  20. package/src/components/footerbar/button/ControlButton.jsx +43 -0
  21. package/src/components/footerbar/button/DirectionButton.jsx +54 -0
  22. package/src/components/footerbar/button/DirectionPanSpinButton.jsx +36 -0
  23. package/src/components/footerbar/button/ToggleButton.jsx +58 -0
  24. package/src/components/footerbar/button/ToggleConvertButton.jsx +48 -0
  25. package/src/components/footerbar/button/ToggleMeasureButton.jsx +33 -0
  26. package/src/components/footerbar/button/styles.js +217 -0
  27. package/src/components/footerbar/export.js +9 -0
  28. package/src/components/footerbar/footer-content-button.jsx +198 -0
  29. package/src/components/footerbar/footer-toggle-button.jsx +101 -0
  30. package/src/components/footerbar/footerbar.jsx +1103 -0
  31. package/src/components/footerbar/styles.js +263 -0
  32. package/src/components/header/button/MenuButton.jsx +46 -0
  33. package/src/components/header/button/SaveButton.jsx +54 -0
  34. package/src/components/header/button/styles.js +181 -0
  35. package/src/components/header/export.js +5 -0
  36. package/src/components/header/header.jsx +631 -0
  37. package/src/components/header/header.style.css +47 -0
  38. package/src/components/header/styles.js +320 -0
  39. package/src/components/login/Login.js +77 -0
  40. package/src/components/login/LoginForm/index.js +108 -0
  41. package/src/components/login/Register.js +82 -0
  42. package/src/components/login/RegisterForm/index.js +171 -0
  43. package/src/components/login/jwtService.js +201 -0
  44. package/src/components/login/style.css +158 -0
  45. package/src/components/login/style.scss +260 -0
  46. package/src/components/myprojects/export.js +5 -0
  47. package/src/components/myprojects/index.jsx +445 -0
  48. package/src/components/myprojects/styles.js +241 -0
  49. package/src/components/sidebar/custom-accordion.jsx +48 -0
  50. package/src/components/sidebar/export.js +15 -0
  51. package/src/components/sidebar/panel-element-editor/attributes-editor/attributes-editor.jsx +73 -0
  52. package/src/components/sidebar/panel-element-editor/attributes-editor/confirm-popup.jsx +101 -0
  53. package/src/components/sidebar/panel-element-editor/attributes-editor/hole-attributes-editor.jsx +149 -0
  54. package/src/components/sidebar/panel-element-editor/attributes-editor/item-attributes-editor.jsx +316 -0
  55. package/src/components/sidebar/panel-element-editor/attributes-editor/line-attributes-editor.jsx +108 -0
  56. package/src/components/sidebar/panel-element-editor/element-editor.jsx +1070 -0
  57. package/src/components/sidebar/panel-element-editor/multi-elements-editor.jsx +0 -0
  58. package/src/components/sidebar/panel-element-editor/panel-element-editor.jsx +104 -0
  59. package/src/components/sidebar/panel-element-editor/panel-multi-elements-editor.jsx +155 -0
  60. package/src/components/sidebar/panel-group-editor.jsx +272 -0
  61. package/src/components/sidebar/panel-groups.jsx +310 -0
  62. package/src/components/sidebar/panel-guides.jsx +192 -0
  63. package/src/components/sidebar/panel-layer-elements.jsx +298 -0
  64. package/src/components/sidebar/panel-layers.jsx +381 -0
  65. package/src/components/sidebar/panel.jsx +71 -0
  66. package/src/components/sidebar/sidebar.jsx +106 -0
  67. package/src/components/sidebar/toolbar-panel.jsx +139 -0
  68. package/src/components/sign/export.js +7 -0
  69. package/src/components/sign/main/index.jsx +523 -0
  70. package/src/components/sign/main/styles.js +163 -0
  71. package/src/components/toolbar/button/ControlButton.jsx +41 -0
  72. package/src/components/toolbar/button/DirectionButton.jsx +34 -0
  73. package/src/components/toolbar/button/RightButton.jsx +103 -0
  74. package/src/components/toolbar/button/ToggleButton.jsx +41 -0
  75. package/src/components/toolbar/button/index.jsx +55 -0
  76. package/src/components/toolbar/button/styles.js +127 -0
  77. package/src/components/toolbar/components/DoorStyleMenu.jsx +103 -0
  78. package/src/components/toolbar/components/Pricing.jsx +126 -0
  79. package/src/components/toolbar/components/ReviewForQuote.jsx +635 -0
  80. package/src/components/toolbar/export.js +21 -0
  81. package/src/components/toolbar/main/Alert.js +122 -0
  82. package/src/components/toolbar/main/TakePictureModal.jsx +104 -0
  83. package/src/components/toolbar/main/confirm-popup.jsx +99 -0
  84. package/src/components/toolbar/main/index.jsx +5627 -0
  85. package/src/components/toolbar/main/lShaped.json +311 -0
  86. package/src/components/toolbar/main/longNarrow.json +238 -0
  87. package/src/components/toolbar/main/myComponents.js +123 -0
  88. package/src/components/toolbar/main/oRectangle.json +220 -0
  89. package/src/components/toolbar/main/rectangle.json +238 -0
  90. package/src/components/toolbar/main/style.css +107 -0
  91. package/src/components/toolbar/main/styles.js +696 -0
  92. package/src/components/toolbar/plugin-item.jsx +123 -0
  93. package/src/components/toolbar/popup/appliance/appliance-category/index.jsx +73 -0
  94. package/src/components/toolbar/popup/appliance/choose-appliance/index.jsx +102 -0
  95. package/src/components/toolbar/popup/appliance/index.jsx +83 -0
  96. package/src/components/toolbar/popup/autosaveprompt/index.jsx +150 -0
  97. package/src/components/toolbar/popup/autosaveprompt/styles.css +64 -0
  98. package/src/components/toolbar/popup/autosaveprompt/styles.js +40 -0
  99. package/src/components/toolbar/popup/cabinet/cabinet-category/index.jsx +73 -0
  100. package/src/components/toolbar/popup/cabinet/choose-product/index.jsx +119 -0
  101. package/src/components/toolbar/popup/cabinet/index.jsx +85 -0
  102. package/src/components/toolbar/popup/doorStyle/choose-style/index.jsx +63 -0
  103. package/src/components/toolbar/popup/doorStyle/index.jsx +71 -0
  104. package/src/components/toolbar/popup/doorStyle/style-category/index.jsx +139 -0
  105. package/src/components/toolbar/popup/downloadsummary/downloadSummaryContext.js +2 -0
  106. package/src/components/toolbar/popup/downloadsummary/downloadSummaryTemp.jsx +157 -0
  107. package/src/components/toolbar/popup/downloadsummary/index.jsx +643 -0
  108. package/src/components/toolbar/popup/downloadsummary/show2D/show2DView.jsx +51 -0
  109. package/src/components/toolbar/popup/downloadsummary/show2D/viewer2DDownLoad.jsx +175 -0
  110. package/src/components/toolbar/popup/downloadsummary/show3D/show3DView.jsx +283 -0
  111. package/src/components/toolbar/popup/downloadsummary/show3D/viewer3DDownLoad.jsx +2257 -0
  112. package/src/components/toolbar/popup/downloadsummary/showCabinetInfo.js +93 -0
  113. package/src/components/toolbar/popup/downloadsummary/showElevation/showElevationView.jsx +132 -0
  114. package/src/components/toolbar/popup/downloadsummary/showElevation/viewer3DElevationDownload.jsx +2198 -0
  115. package/src/components/toolbar/popup/downloadsummary/showElevation/viewerElevationDownload.jsx +152 -0
  116. package/src/components/toolbar/popup/downloadsummary/showWarranty.jsx +149 -0
  117. package/src/components/toolbar/popup/downloadsummary/styles.css +177 -0
  118. package/src/components/toolbar/popup/downloadsummary/styles.js +453 -0
  119. package/src/components/toolbar/popup/finishingtouch/category/index.jsx +34 -0
  120. package/src/components/toolbar/popup/finishingtouch/index.jsx +58 -0
  121. package/src/components/toolbar/popup/finishingtouch/material-edit.jsx +112 -0
  122. package/src/components/toolbar/popup/finishingtouch/product/index.jsx +116 -0
  123. package/src/components/toolbar/popup/floorplan/choose-floor/confirm-popup.jsx +101 -0
  124. package/src/components/toolbar/popup/floorplan/choose-floor/index.jsx +254 -0
  125. package/src/components/toolbar/popup/floorplan/choose-floor/lShaped.json +311 -0
  126. package/src/components/toolbar/popup/floorplan/choose-floor/longNarrow.json +238 -0
  127. package/src/components/toolbar/popup/floorplan/choose-floor/oRectangle.json +220 -0
  128. package/src/components/toolbar/popup/floorplan/choose-floor/rectangle.json +238 -0
  129. package/src/components/toolbar/popup/floorplan/choose-floor/styles.js +86 -0
  130. package/src/components/toolbar/popup/floorplan/floor-category/index.jsx +109 -0
  131. package/src/components/toolbar/popup/floorplan/index.jsx +60 -0
  132. package/src/components/toolbar/popup/index.jsx +241 -0
  133. package/src/components/toolbar/popup/newproject/index.jsx +59 -0
  134. package/src/components/toolbar/popup/newproject/styles.css +64 -0
  135. package/src/components/toolbar/popup/newproject/styles.js +41 -0
  136. package/src/components/toolbar/popup/product/appliance.jsx +54 -0
  137. package/src/components/toolbar/popup/product/cabinetproduct.jsx +15 -0
  138. package/src/components/toolbar/popup/product/doorstyle.jsx +58 -0
  139. package/src/components/toolbar/popup/product/doorstyleproduct.jsx +47 -0
  140. package/src/components/toolbar/popup/product/floor.jsx +36 -0
  141. package/src/components/toolbar/popup/product/floorproduct.jsx +42 -0
  142. package/src/components/toolbar/popup/product/index.jsx +36 -0
  143. package/src/components/toolbar/popup/product/primary.jsx +77 -0
  144. package/src/components/toolbar/popup/product/productline.jsx +93 -0
  145. package/src/components/toolbar/popup/product/reviewItem.jsx +427 -0
  146. package/src/components/toolbar/popup/product/reviewMolding.jsx +310 -0
  147. package/src/components/toolbar/popup/product/style.css +54 -0
  148. package/src/components/toolbar/popup/product/styles.js +260 -0
  149. package/src/components/toolbar/popup/savedesign/FullPictureForm.jsx +146 -0
  150. package/src/components/toolbar/popup/savedesign/index.jsx +495 -0
  151. package/src/components/toolbar/popup/savedesign/savedesign.style.css +16 -0
  152. package/src/components/toolbar/popup/savedesign/styles.js +151 -0
  153. package/src/components/toolbar/popup/setDoorStyleOption/index.jsx +87 -0
  154. package/src/components/toolbar/popup/styles.js +909 -0
  155. package/src/components/toolbar/popup/submitforquote/AddToCartOptions.jsx +192 -0
  156. package/src/components/toolbar/popup/submitforquote/CustomerRequestsForm.jsx +96 -0
  157. package/src/components/toolbar/popup/submitforquote/SkipDesignerReview.jsx +54 -0
  158. package/src/components/toolbar/popup/submitforquote/StepDots.jsx +25 -0
  159. package/src/components/toolbar/popup/submitforquote/cart-choice.jsx +116 -0
  160. package/src/components/toolbar/popup/submitforquote/doorstyle-menus.js +38 -0
  161. package/src/components/toolbar/popup/submitforquote/index.jsx +698 -0
  162. package/src/components/toolbar/popup/submitforquote/styles.css +105 -0
  163. package/src/components/toolbar/popup/submitforquote/styles.js +294 -0
  164. package/src/components/toolbar/popup/submitprompt/index.jsx +89 -0
  165. package/src/components/toolbar/popup/submitprompt/styles.css +64 -0
  166. package/src/components/toolbar/popup/submitprompt/styles.js +42 -0
  167. package/src/components/toolbar/toolbar-button.jsx +90 -0
  168. package/src/components/toolbar/toolbar-load-button.jsx +36 -0
  169. package/src/components/toolbar/toolbar-save-button.jsx +32 -0
  170. package/src/components/wizardstep/button/styles.js +677 -0
  171. package/src/components/wizardstep/export.js +5 -0
  172. package/src/components/wizardstep/index.jsx +1372 -0
  173. package/src/components/wizardstep/styles.js +688 -0
  174. package/src/components/wizardstep/wizardstep-content-button.jsx +198 -0
  175. package/src/components/wizardstep/wizardstep-toggle-button.jsx +101 -0
  176. package/src/{_index.js → index.js} +4 -4
  177. package/src/renderer.jsx +466 -0
  178. package/src/actions/_export.js +0 -35
  179. package/src/components/_export.js +0 -11
@@ -0,0 +1,220 @@
1
+ {
2
+ "unit": "cm",
3
+ "rulerUnit": "in",
4
+ "layers": {
5
+ "layer-1": {
6
+ "id": "layer-1",
7
+ "altitude": 0,
8
+ "order": 0,
9
+ "opacity": 1,
10
+ "name": "default",
11
+ "visible": true,
12
+ "vertices": {
13
+ "bHaJu1vDh-": {
14
+ "id": "bHaJu1vDh-",
15
+ "type": "",
16
+ "prototype": "vertices",
17
+ "name": "Vertex",
18
+ "misc": {},
19
+ "selected": false,
20
+ "properties": {},
21
+ "style": "",
22
+ "category": "",
23
+ "visible": true,
24
+ "x": 1159.5959595959598,
25
+ "y": 653.030303030303,
26
+ "lines": ["qu-iklVvD"],
27
+ "areas": ["nZUk04rvLm"]
28
+ },
29
+ "i6cQughFHL": {
30
+ "id": "i6cQughFHL",
31
+ "type": "",
32
+ "prototype": "vertices",
33
+ "name": "Vertex",
34
+ "misc": {},
35
+ "selected": false,
36
+ "properties": {},
37
+ "style": "",
38
+ "category": "",
39
+ "visible": true,
40
+ "x": 1159.5959595959598,
41
+ "y": 1306.5656565656566,
42
+ "lines": ["Fqjsu2nx-", "qu-iklVvD"],
43
+ "areas": ["nZUk04rvLm"]
44
+ },
45
+ "xf5Pbjbn9O": {
46
+ "id": "xf5Pbjbn9O",
47
+ "type": "",
48
+ "prototype": "vertices",
49
+ "name": "Vertex",
50
+ "misc": {},
51
+ "selected": false,
52
+ "properties": {},
53
+ "style": "",
54
+ "category": "",
55
+ "visible": true,
56
+ "x": 1885.858585858586,
57
+ "y": 1306.5656565656566,
58
+ "lines": ["Fqjsu2nx-", "gh-FNJ1s5"],
59
+ "areas": ["nZUk04rvLm"]
60
+ },
61
+ "tzGSabFPP7": {
62
+ "id": "tzGSabFPP7",
63
+ "type": "",
64
+ "prototype": "vertices",
65
+ "name": "Vertex",
66
+ "misc": {},
67
+ "selected": false,
68
+ "properties": {},
69
+ "style": "",
70
+ "category": "",
71
+ "visible": true,
72
+ "x": 1885.858585858586,
73
+ "y": 653.030303030303,
74
+ "lines": ["gh-FNJ1s5"],
75
+ "areas": ["nZUk04rvLm"]
76
+ }
77
+ },
78
+ "lines": {
79
+ "qu-iklVvD": {
80
+ "id": "qu-iklVvD",
81
+ "type": "wall",
82
+ "prototype": "lines",
83
+ "name": "Wall",
84
+ "misc": {},
85
+ "selected": false,
86
+ "properties": { "textureB": "plaster", "textureA": "plaster" },
87
+ "style": "",
88
+ "category": "",
89
+ "createdDateTime": 1693373165225,
90
+ "visible": true,
91
+ "vertices": ["bHaJu1vDh-", "i6cQughFHL"],
92
+ "holes": [],
93
+ "focus": false,
94
+ "wallColor": "#dddddd"
95
+ },
96
+ "Fqjsu2nx-": {
97
+ "id": "Fqjsu2nx-",
98
+ "type": "wall",
99
+ "prototype": "lines",
100
+ "name": "Wall",
101
+ "misc": {},
102
+ "selected": false,
103
+ "properties": { "textureB": "plaster", "textureA": "plaster" },
104
+ "style": "",
105
+ "category": "",
106
+ "createdDateTime": 1693373165205,
107
+ "visible": true,
108
+ "vertices": ["i6cQughFHL", "xf5Pbjbn9O"],
109
+ "holes": [],
110
+ "focus": false,
111
+ "wallColor": "#dddddd"
112
+ },
113
+ "gh-FNJ1s5": {
114
+ "id": "gh-FNJ1s5",
115
+ "type": "wall",
116
+ "prototype": "lines",
117
+ "name": "Wall",
118
+ "misc": {},
119
+ "selected": false,
120
+ "properties": {
121
+ "textureB": "plaster",
122
+ "width": { "_unit": "in", "length": null },
123
+ "height": { "_unit": "in", "length": null },
124
+ "depth": { "_unit": "in", "length": null },
125
+ "textureA": "plaster"
126
+ },
127
+ "style": "",
128
+ "category": "",
129
+ "createdDateTime": 1693373165215,
130
+ "visible": true,
131
+ "vertices": ["xf5Pbjbn9O", "tzGSabFPP7"],
132
+ "holes": [],
133
+ "focus": false,
134
+ "wallColor": "#dddddd"
135
+ }
136
+ },
137
+ "holes": {},
138
+ "areas": {
139
+ "nZUk04rvLm": {
140
+ "id": "nZUk04rvLm",
141
+ "type": "area",
142
+ "prototype": "areas",
143
+ "name": "Area",
144
+ "misc": {},
145
+ "selected": false,
146
+ "properties": {
147
+ "patternColor": "rgba(175,175,175)",
148
+ "thickness": { "length": 0 },
149
+ "texture": "parquet",
150
+ "width": { "_unit": "in", "length": null },
151
+ "height": { "_unit": "in", "length": null },
152
+ "depth": { "_unit": "in", "length": null }
153
+ },
154
+ "style": "",
155
+ "category": "",
156
+ "visible": true,
157
+ "vertices": ["bHaJu1vDh-", "tzGSabFPP7", "xf5Pbjbn9O", "i6cQughFHL"],
158
+ "holes": [],
159
+ "texture": { "roughness": 0.9, "metalness": 0, "uri": "" }
160
+ }
161
+ },
162
+ "items": {},
163
+ "selected": {
164
+ "vertices": [],
165
+ "lines": [],
166
+ "holes": [],
167
+ "areas": [],
168
+ "items": []
169
+ },
170
+ "dcmmodel": false,
171
+ "lrmmodel": false,
172
+ "fbmmodel": false,
173
+ "counterTop": {
174
+ "uri": "https://kc-assets-us.s3.amazonaws.com/uploads/CountTop/202105074107_5/texture/Unique_Calcatta_texture.jpg"
175
+ },
176
+ "wallColor": {},
177
+ "floorStyle": {
178
+ "uri": "https://kc-assets-us.s3.amazonaws.com/uploads/CountTop/202203162950_2/texture/oak-barcelona-s.jpg"
179
+ },
180
+ "doorHandle": "",
181
+ "backsplash": { "roughness": 0.2, "metalness": 0.1, "uri": "" },
182
+ "backsplashApplied": false,
183
+ "ceilHeight": 96,
184
+ "unit": "in"
185
+ }
186
+ },
187
+ "grids": {
188
+ "h1": {
189
+ "id": "h1",
190
+ "type": "horizontal-streak",
191
+ "properties": {
192
+ "step": 30.48,
193
+ "colors": ["#ddd", "#ddd", "#ddd", "#ddd", "#ddd"]
194
+ }
195
+ },
196
+ "v1": {
197
+ "id": "v1",
198
+ "type": "vertical-streak",
199
+ "properties": {
200
+ "step": 30.48,
201
+ "colors": ["#ddd", "#ddd", "#ddd", "#ddd", "#ddd"]
202
+ }
203
+ }
204
+ },
205
+ "selectedLayer": "layer-1",
206
+ "groups": {},
207
+ "width": 3000,
208
+ "height": 2000,
209
+ "meta": {},
210
+ "guides": { "horizontal": {}, "vertical": {}, "circular": {} },
211
+ "title": "",
212
+ "currentProjectID": null,
213
+ "showfg": true,
214
+ "showWallLengthMeasure": 1,
215
+ "showBaseCabinetMeasure": 1,
216
+ "showWallCabinetMeasure": 1,
217
+ "showWindowDoorMeasure": 1,
218
+ "isLoadingCabinet": false,
219
+ "loadFlag": false
220
+ }
@@ -0,0 +1,238 @@
1
+ {
2
+ "unit": "cm",
3
+ "rulerUnit": "in",
4
+ "layers": {
5
+ "layer-1": {
6
+ "id": "layer-1",
7
+ "altitude": 0,
8
+ "order": 0,
9
+ "opacity": 1,
10
+ "name": "default",
11
+ "visible": true,
12
+ "vertices": {
13
+ "7CRjeaRZhF": {
14
+ "id": "7CRjeaRZhF",
15
+ "type": "",
16
+ "prototype": "vertices",
17
+ "name": "Vertex",
18
+ "misc": {},
19
+ "selected": false,
20
+ "properties": {},
21
+ "style": "",
22
+ "category": "",
23
+ "visible": true,
24
+ "x": 1291.05,
25
+ "y": 1175.29,
26
+ "lines": ["STZ63BwOf", "eyC5vDys2"],
27
+ "areas": ["bQRvW_9KxV"]
28
+ },
29
+ "vlppTvk-ik": {
30
+ "id": "vlppTvk-ik",
31
+ "type": "",
32
+ "prototype": "vertices",
33
+ "name": "Vertex",
34
+ "misc": {},
35
+ "selected": false,
36
+ "properties": {},
37
+ "style": "",
38
+ "category": "",
39
+ "visible": true,
40
+ "x": 1778.73,
41
+ "y": 1175.29,
42
+ "lines": ["STZ63BwOf", "BvCbJyf6O"],
43
+ "areas": ["bQRvW_9KxV"]
44
+ },
45
+ "KYo9KB-NX8": {
46
+ "id": "KYo9KB-NX8",
47
+ "type": "",
48
+ "prototype": "vertices",
49
+ "name": "Vertex",
50
+ "misc": {},
51
+ "selected": false,
52
+ "properties": {},
53
+ "style": "",
54
+ "category": "",
55
+ "visible": true,
56
+ "x": 1778.73,
57
+ "y": 809.53,
58
+ "lines": ["BvCbJyf6O", "uPW70hewY"],
59
+ "areas": ["bQRvW_9KxV"]
60
+ },
61
+ "Pa4Hy3Z26ga": {
62
+ "id": "Pa4Hy3Z26ga",
63
+ "type": "",
64
+ "prototype": "vertices",
65
+ "name": "Vertex",
66
+ "misc": {},
67
+ "selected": false,
68
+ "properties": {},
69
+ "style": "",
70
+ "category": "",
71
+ "visible": true,
72
+ "x": 1291.05,
73
+ "y": 809.53,
74
+ "lines": ["eyC5vDys2", "uPW70hewY"],
75
+ "areas": ["bQRvW_9KxV"]
76
+ }
77
+ },
78
+ "lines": {
79
+ "STZ63BwOf": {
80
+ "id": "STZ63BwOf",
81
+ "type": "wall",
82
+ "prototype": "lines",
83
+ "name": "Wall",
84
+ "misc": {},
85
+ "selected": false,
86
+ "properties": { "textureB": "plaster", "textureA": "plaster" },
87
+ "style": "",
88
+ "category": "",
89
+ "createdDateTime": 1693373165235,
90
+ "visible": true,
91
+ "vertices": ["7CRjeaRZhF", "vlppTvk-ik"],
92
+ "holes": [],
93
+ "focus": false,
94
+ "wallColor": "#dddddd"
95
+ },
96
+ "eyC5vDys2": {
97
+ "id": "eyC5vDys2",
98
+ "type": "wall",
99
+ "prototype": "lines",
100
+ "name": "Wall",
101
+ "misc": {},
102
+ "selected": false,
103
+ "properties": { "textureB": "plaster", "textureA": "plaster" },
104
+ "style": "",
105
+ "category": "",
106
+ "createdDateTime": 1693373165265,
107
+ "visible": true,
108
+ "vertices": ["Pa4Hy3Z26ga", "7CRjeaRZhF"],
109
+ "holes": [],
110
+ "focus": false,
111
+ "wallColor": "#dddddd"
112
+ },
113
+ "BvCbJyf6O": {
114
+ "id": "BvCbJyf6O",
115
+ "type": "wall",
116
+ "prototype": "lines",
117
+ "name": "Wall",
118
+ "misc": {},
119
+ "selected": false,
120
+ "properties": { "textureB": "plaster", "textureA": "plaster" },
121
+ "style": "",
122
+ "category": "",
123
+ "createdDateTime": 1693373165245,
124
+ "visible": true,
125
+ "vertices": ["vlppTvk-ik", "KYo9KB-NX8"],
126
+ "holes": [],
127
+ "focus": false,
128
+ "wallColor": "#dddddd"
129
+ },
130
+ "uPW70hewY": {
131
+ "id": "uPW70hewY",
132
+ "type": "wall",
133
+ "prototype": "lines",
134
+ "name": "Wall",
135
+ "misc": {},
136
+ "selected": false,
137
+ "properties": {
138
+ "textureB": "plaster",
139
+ "width": { "_unit": "in", "length": null },
140
+ "height": { "_unit": "in", "length": null },
141
+ "depth": { "_unit": "in", "length": null },
142
+ "textureA": "plaster"
143
+ },
144
+ "style": "",
145
+ "category": "",
146
+ "createdDateTime": 1693373165255,
147
+ "visible": true,
148
+ "vertices": ["KYo9KB-NX8", "Pa4Hy3Z26ga"],
149
+ "holes": [],
150
+ "focus": false,
151
+ "wallColor": "#dddddd"
152
+ }
153
+ },
154
+ "holes": {},
155
+ "areas": {
156
+ "bQRvW_9KxV": {
157
+ "id": "bQRvW_9KxV",
158
+ "type": "area",
159
+ "prototype": "areas",
160
+ "name": "Area",
161
+ "misc": {},
162
+ "selected": false,
163
+ "properties": {
164
+ "patternColor": "rgba(175,175,175)",
165
+ "thickness": { "length": 0 },
166
+ "texture": "parquet"
167
+ },
168
+ "style": "",
169
+ "category": "",
170
+ "visible": true,
171
+ "vertices": ["7CRjeaRZhF", "Pa4Hy3Z26ga", "KYo9KB-NX8", "vlppTvk-ik"],
172
+ "holes": [],
173
+ "texture": {
174
+ "roughness": 0.9,
175
+ "metalness": 0,
176
+ "uri": "https://kc-assets-us.s3.amazonaws.com/uploads/CountTop/202203162950_2/texture/oak-barcelona-s.jpg"
177
+ }
178
+ }
179
+ },
180
+ "items": {},
181
+ "selected": {
182
+ "vertices": [],
183
+ "lines": [],
184
+ "holes": [],
185
+ "areas": [],
186
+ "items": []
187
+ },
188
+ "dcmmodel": false,
189
+ "lrmmodel": false,
190
+ "fbmmodel": false,
191
+ "counterTop": {
192
+ "uri": "https://kc-assets-us.s3.amazonaws.com/uploads/CountTop/202105074107_5/texture/Unique_Calcatta_texture.jpg"
193
+ },
194
+ "wallColor": {},
195
+ "floorStyle": {
196
+ "uri": "https://kc-assets-us.s3.amazonaws.com/uploads/CountTop/202203162950_2/texture/oak-barcelona-s.jpg"
197
+ },
198
+ "doorHandle": "",
199
+ "backsplash": { "roughness": 0.2, "metalness": 0.1, "uri": "" },
200
+ "backsplashApplied": false,
201
+ "ceilHeight": 96,
202
+ "unit": "in"
203
+ }
204
+ },
205
+ "grids": {
206
+ "h1": {
207
+ "id": "h1",
208
+ "type": "horizontal-streak",
209
+ "properties": {
210
+ "step": 30.48,
211
+ "colors": ["#ddd", "#ddd", "#ddd", "#ddd", "#ddd"]
212
+ }
213
+ },
214
+ "v1": {
215
+ "id": "v1",
216
+ "type": "vertical-streak",
217
+ "properties": {
218
+ "step": 30.48,
219
+ "colors": ["#ddd", "#ddd", "#ddd", "#ddd", "#ddd"]
220
+ }
221
+ }
222
+ },
223
+ "selectedLayer": "layer-1",
224
+ "groups": {},
225
+ "width": 3000,
226
+ "height": 2000,
227
+ "meta": {},
228
+ "guides": { "horizontal": {}, "vertical": {}, "circular": {} },
229
+ "title": "",
230
+ "currentProjectID": null,
231
+ "showfg": true,
232
+ "showWallLengthMeasure": 1,
233
+ "showBaseCabinetMeasure": 1,
234
+ "showWallCabinetMeasure": 1,
235
+ "showWindowDoorMeasure": 1,
236
+ "isLoadingCabinet": false,
237
+ "loadFlag": false
238
+ }
@@ -0,0 +1,86 @@
1
+ import styled from 'styled-components';
2
+ import * as SharedStyle from '../../../../../shared-style';
3
+
4
+ export const Control = styled.div`
5
+ display: flex;
6
+ justify-content: center;
7
+ `;
8
+
9
+ export const ControlIcon = styled.div`
10
+ margin-top: 9px;
11
+ cursor: pointer;
12
+ position: relative;
13
+ :hover {
14
+ img {
15
+ box-shadow: 0px 3px 5px -1px rgba(0, 0, 0, 0.2),
16
+ 0px 6px 10px 0px rgba(0, 0, 0, 0.39),
17
+ 0px 1px 18px 0px rgba(0, 0, 0, 0.12);
18
+ }
19
+ }
20
+ :active {
21
+ img {
22
+ box-shadow: none !important;
23
+ }
24
+ }
25
+ `;
26
+
27
+ export const LineWrapper = styled.div`
28
+ color: #fff;
29
+ display: flex;
30
+ cursor: pointer;
31
+ align-items: center;
32
+ span {
33
+ @media screen and (min-width: 1024) {
34
+ font-size: 11px;
35
+ }
36
+ @media screen and (max-width: 1024) {
37
+ font-size: 11px;
38
+ }
39
+ @media screen and (min-width: 1366) {
40
+ font-size: 13px;
41
+ }
42
+ @media screen and (max-width: 1366) {
43
+ font-size: 13px;
44
+ }
45
+ @media screen and (min-width: 1440) {
46
+ font-size: 16px;
47
+ }
48
+ @media screen and (max-width: 1440) {
49
+ font-size: 16px;
50
+ }
51
+ }
52
+ :hover {
53
+ span {
54
+ color: ${SharedStyle.SECONDARY_COLOR.main};
55
+ }
56
+ }
57
+ `;
58
+
59
+ export const Div = styled.div`
60
+ position: fixed;
61
+ top: calc(50% - 150px);
62
+ left: calc(50% - 200px);
63
+ z-index: 200;
64
+ background: #2b2b2ddf;
65
+ align-items: space-around;
66
+ justify-content: center;
67
+ color: white;
68
+ width: 350px;
69
+ height: 140px;
70
+ `;
71
+
72
+ export const ButtonTitle1 = styled.span`
73
+ position: absolute;
74
+ padding-left: 20px;
75
+ margin-top: 3px;
76
+ font-size: 12px;
77
+ cursor: pointer;
78
+ `;
79
+
80
+ export const ButtonTitle2 = styled.span`
81
+ position: absolute;
82
+ padding-left: 20px;
83
+ margin-top: 3px;
84
+ font-size: 12px;
85
+ cursor: pointer;
86
+ `;
@@ -0,0 +1,109 @@
1
+ import React from 'react';
2
+ import ToolbarPanel from '../../../../sidebar/toolbar-panel';
3
+ import * as S from '../../styles';
4
+
5
+ import Product from '../../product';
6
+ import Floor from '../../product/floor';
7
+ import * as testJsonData from '../../../../../../../../../test/*.json';
8
+
9
+ export const FloorCategory = ({
10
+ action,
11
+ props,
12
+ dataSource,
13
+ isExpand,
14
+ closeAction
15
+ }) => {
16
+ let miHeight = 0;
17
+ let nonHeight = 495 - miHeight + 'px';
18
+ let height = window.innerHeight * 0.6 - miHeight + 'px';
19
+ var result = [];
20
+ dataSource.map(el => {
21
+ result.push(
22
+ <Product
23
+ key={el.name}
24
+ url={
25
+ el.name === 'Windows'
26
+ ? '/assets/img/svg/toolbar/add_items_windows.svg'
27
+ : '/assets/img/svg/toolbar/add_items_doors.svg'
28
+ }
29
+ title={el.name}
30
+ onClick={() => {
31
+ action(el.name);
32
+ }}
33
+ />
34
+ );
35
+ });
36
+ let loadProject = data => {
37
+ props.projectActions.loadProject(JSON.parse(data.project_data));
38
+ document.getElementsByClassName('popup-content')[0].style.display = 'none';
39
+ };
40
+ let testData = [];
41
+ if (process.env.MODE === 'staging') {
42
+ for (let testJson in testJsonData) {
43
+ testData.push(
44
+ <S.testJsonItemWrapper
45
+ key={testJson}
46
+ style={{ justifyContent: 'center' }}
47
+ onClick={event => {
48
+ if (
49
+ window.confirm(`Do you really load ${testJson}.json for KC test?`)
50
+ ) {
51
+ loadProject(testJsonData[testJson]);
52
+ }
53
+ }}
54
+ >
55
+ {testJson}
56
+ </S.testJsonItemWrapper>
57
+ );
58
+ }
59
+ }
60
+ return (
61
+ <S.CategoryContentWrapper style={{ height: isExpand ? height : nonHeight }}>
62
+ <ToolbarPanel
63
+ opened
64
+ onClose={() => {}}
65
+ onOpen={() => {}}
66
+ isUrl={false}
67
+ name={'Floor Space'}
68
+ url={null}
69
+ >
70
+ <Floor
71
+ url={'/assets/img/svg/toolbar/draw_custom_floor.svg'}
72
+ title={'Draw Custom Floor'}
73
+ onClick={() => {
74
+ action(-1);
75
+ }}
76
+ ></Floor>
77
+ <Floor
78
+ url={'/assets/img/svg/toolbar/predefined_room_layout.svg'}
79
+ title={'Predefined Room Layout'}
80
+ onClick={() => {
81
+ action(-2);
82
+ }}
83
+ ></Floor>
84
+ </ToolbarPanel>
85
+ <ToolbarPanel
86
+ opened
87
+ onClose={() => {}}
88
+ onOpen={() => {}}
89
+ isUrl={false}
90
+ name={'Room Elements'}
91
+ url={null}
92
+ >
93
+ {result}
94
+ </ToolbarPanel>
95
+ {process.env.MODE === 'staging' && Object.keys(testJsonData).length && (
96
+ <ToolbarPanel
97
+ opened
98
+ onClose={() => {}}
99
+ onOpen={() => {}}
100
+ isUrl={false}
101
+ name={'Test JSONs'}
102
+ url={null}
103
+ >
104
+ {testData}
105
+ </ToolbarPanel>
106
+ )}
107
+ </S.CategoryContentWrapper>
108
+ );
109
+ };