kitchen-simulator 1.1.1-test.29 → 1.1.1-test.30

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 (132) hide show
  1. package/es/KitchenConfigurator.js +27 -28
  2. package/es/KitchenConfiguratorApp.js +35 -33
  3. package/es/actions/holes-actions.js +1 -1
  4. package/es/actions/items-actions.js +1 -1
  5. package/es/actions/lines-actions.js +1 -1
  6. package/es/actions/project-actions.js +1 -1
  7. package/es/actions/scene-actions.js +1 -1
  8. package/es/actions/vertices-actions.js +1 -1
  9. package/es/actions/viewer2d-actions.js +1 -1
  10. package/es/actions/viewer3d-actions.js +1 -1
  11. package/es/catalog/catalog.js +2 -2
  12. package/es/catalog/molding/molding-dcm/planner-element.js +0 -2
  13. package/es/catalog/molding/molding-fbm/planner-element.js +0 -2
  14. package/es/catalog/molding/molding-lrm/planner-element.js +0 -2
  15. package/es/catalog/properties/property-checkbox.js +10 -9
  16. package/es/catalog/properties/property-color.js +12 -10
  17. package/es/catalog/properties/property-enum.js +12 -12
  18. package/es/catalog/properties/property-hidden.js +11 -10
  19. package/es/catalog/properties/property-lenght-measure.js +16 -15
  20. package/es/catalog/properties/property-length-measure.js +17 -16
  21. package/es/catalog/properties/property-length-measure_hole.js +16 -15
  22. package/es/catalog/properties/property-number.js +11 -10
  23. package/es/catalog/properties/property-read-only.js +10 -9
  24. package/es/catalog/properties/property-string.js +10 -9
  25. package/es/catalog/properties/property-toggle.js +11 -10
  26. package/es/class/area.js +1 -1
  27. package/es/class/group.js +3 -3
  28. package/es/class/hole.js +5 -6
  29. package/es/class/layer.js +2 -2
  30. package/es/class/project.js +4 -4
  31. package/es/components/content.js +11 -10
  32. package/es/components/style/button.js +8 -7
  33. package/es/components/style/content-container.js +2 -1
  34. package/es/components/style/content-title.js +1 -1
  35. package/es/components/style/form-number-input.js +20 -21
  36. package/es/components/style/form-number-input_2.js +16 -17
  37. package/es/components/style/form-select.js +1 -2
  38. package/es/components/style/form-text-input.js +1 -2
  39. package/es/components/viewer2d/area.js +7 -6
  40. package/es/components/viewer2d/grids/grid-horizontal-streak.js +7 -7
  41. package/es/components/viewer2d/grids/grid-streak.js +7 -7
  42. package/es/components/viewer2d/grids/grid-vertical-streak.js +7 -7
  43. package/es/components/viewer2d/grids/grids.js +6 -4
  44. package/es/components/viewer2d/group.js +12 -10
  45. package/es/components/viewer2d/item.js +14 -14
  46. package/es/components/viewer2d/layer.js +8 -7
  47. package/es/components/viewer2d/line.js +8 -7
  48. package/es/components/viewer2d/ruler.js +8 -8
  49. package/es/components/viewer2d/rulerDist.js +7 -6
  50. package/es/components/viewer2d/rulerX.js +17 -17
  51. package/es/components/viewer2d/rulerY.js +15 -15
  52. package/es/components/viewer2d/scene.js +11 -13
  53. package/es/components/viewer2d/snap.js +7 -6
  54. package/es/components/viewer2d/state.js +7 -6
  55. package/es/components/viewer2d/utils.js +1 -1
  56. package/es/components/viewer2d/vertex.js +6 -5
  57. package/es/components/viewer2d/viewer2d.js +18 -16
  58. package/es/components/viewer3d/front3D.js +1 -1
  59. package/es/components/viewer3d/grids/grid-streak.js +0 -1
  60. package/es/components/viewer3d/ruler-utils/layer3D.js +1 -1
  61. package/es/components/viewer3d/ruler-utils/ruler3D.js +1 -1
  62. package/es/components/viewer3d/ruler-utils/scene3D.js +0 -2
  63. package/es/components/viewer3d/viewer3d-first-person.js +15 -16
  64. package/es/components/viewer3d/viewer3d.js +17 -18
  65. package/es/models.js +1 -1
  66. package/es/plugins/keyboard.js +2 -2
  67. package/es/reducers/holes-reducer.js +1 -1
  68. package/es/reducers/items-reducer.js +2 -5
  69. package/es/reducers/lines-reducer.js +1 -1
  70. package/es/reducers/project-reducer.js +1 -1
  71. package/es/reducers/reducer.js +2 -2
  72. package/es/reducers/scene-reducer.js +1 -1
  73. package/es/reducers/user-reducer.js +1 -2
  74. package/es/reducers/vertices-reducer.js +1 -1
  75. package/es/reducers/viewer2d-reducer.js +1 -1
  76. package/es/reducers/viewer3d-reducer.js +1 -1
  77. package/es/utils/geometry.js +3 -3
  78. package/es/utils/react-if.js +6 -5
  79. package/es/utils/snap-scene.js +2 -2
  80. package/es/utils/snap.js +1 -1
  81. package/lib/KitchenConfigurator.js +27 -29
  82. package/lib/KitchenConfiguratorApp.js +35 -34
  83. package/lib/catalog/molding/molding-dcm/planner-element.js +0 -5
  84. package/lib/catalog/molding/molding-fbm/planner-element.js +0 -5
  85. package/lib/catalog/molding/molding-lrm/planner-element.js +0 -5
  86. package/lib/catalog/properties/property-checkbox.js +10 -10
  87. package/lib/catalog/properties/property-color.js +11 -9
  88. package/lib/catalog/properties/property-enum.js +10 -11
  89. package/lib/catalog/properties/property-hidden.js +11 -11
  90. package/lib/catalog/properties/property-lenght-measure.js +15 -15
  91. package/lib/catalog/properties/property-length-measure.js +15 -15
  92. package/lib/catalog/properties/property-length-measure_hole.js +15 -15
  93. package/lib/catalog/properties/property-number.js +12 -10
  94. package/lib/catalog/properties/property-read-only.js +11 -9
  95. package/lib/catalog/properties/property-string.js +11 -9
  96. package/lib/catalog/properties/property-toggle.js +11 -9
  97. package/lib/components/content.js +12 -10
  98. package/lib/components/style/button.js +8 -9
  99. package/lib/components/style/content-container.js +5 -4
  100. package/lib/components/style/content-title.js +2 -3
  101. package/lib/components/style/form-number-input.js +19 -21
  102. package/lib/components/style/form-number-input_2.js +16 -19
  103. package/lib/components/style/form-select.js +0 -3
  104. package/lib/components/style/form-text-input.js +0 -1
  105. package/lib/components/viewer2d/area.js +8 -6
  106. package/lib/components/viewer2d/grids/grid-horizontal-streak.js +8 -7
  107. package/lib/components/viewer2d/grids/grid-streak.js +8 -7
  108. package/lib/components/viewer2d/grids/grid-vertical-streak.js +8 -7
  109. package/lib/components/viewer2d/grids/grids.js +5 -5
  110. package/lib/components/viewer2d/group.js +13 -10
  111. package/lib/components/viewer2d/item.js +12 -12
  112. package/lib/components/viewer2d/layer.js +8 -6
  113. package/lib/components/viewer2d/line.js +9 -7
  114. package/lib/components/viewer2d/ruler.js +8 -7
  115. package/lib/components/viewer2d/rulerDist.js +8 -6
  116. package/lib/components/viewer2d/rulerX.js +17 -19
  117. package/lib/components/viewer2d/rulerY.js +15 -17
  118. package/lib/components/viewer2d/scene.js +9 -13
  119. package/lib/components/viewer2d/snap.js +8 -6
  120. package/lib/components/viewer2d/state.js +7 -7
  121. package/lib/components/viewer2d/vertex.js +7 -5
  122. package/lib/components/viewer2d/viewer2d.js +18 -17
  123. package/lib/components/viewer3d/grids/grid-streak.js +0 -1
  124. package/lib/components/viewer3d/ruler-utils/scene3D.js +0 -2
  125. package/lib/components/viewer3d/viewer3d-first-person.js +14 -16
  126. package/lib/components/viewer3d/viewer3d.js +16 -18
  127. package/lib/reducers/user-reducer.js +0 -1
  128. package/lib/utils/geometry.js +1 -1
  129. package/lib/utils/react-if.js +7 -5
  130. package/package.json +1 -3
  131. package/es/compat/propTypesCompat.js +0 -8
  132. package/lib/compat/propTypesCompat.js +0 -26
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import PropTypes from "../compat/propTypesCompat";
3
- import { FormLabel, Button } from "../../components/style/export";
2
+ //import PropTypes from 'prop-types';
3
+ import { Button, FormLabel } from "../../components/style/export";
4
4
  import PropertyStyle from "./shared-property-style";
5
5
  export default function PropertyToggle(_ref) {
6
6
  var value = _ref.value,
@@ -29,11 +29,12 @@ export default function PropertyToggle(_ref) {
29
29
  size: "small"
30
30
  }, configs.actionName)))));
31
31
  }
32
- PropertyToggle.propTypes = {
33
- value: PropTypes.any.isRequired,
34
- onUpdate: PropTypes.func.isRequired,
35
- configs: PropTypes.object.isRequired,
36
- sourceElement: PropTypes.object,
37
- internalState: PropTypes.object,
38
- state: PropTypes.object.isRequired
39
- };
32
+ //
33
+ // PropertyToggle.propTypes = {
34
+ // value: PropTypes.any.isRequired,
35
+ // onUpdate: PropTypes.func.isRequired,
36
+ // configs: PropTypes.object.isRequired,
37
+ // sourceElement: PropTypes.object,
38
+ // internalState: PropTypes.object,
39
+ // state: PropTypes.object.isRequired
40
+ // };
package/es/class/area.js CHANGED
@@ -8,7 +8,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
8
8
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
9
9
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
10
10
  import { fromJS } from 'immutable';
11
- import { Layer, Vertex, Group } from "./export";
11
+ import { Group, Layer, Vertex } from "./export";
12
12
  import { IDBroker, NameGenerator } from "../utils/export";
13
13
  var Area = /*#__PURE__*/function () {
14
14
  function Area() {
package/es/class/group.js CHANGED
@@ -10,10 +10,10 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o =
10
10
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
11
11
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
12
12
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
13
- import { Project, Line, Hole, Item, Area, Layer, Vertex } from "./export";
14
- import { Map, List } from 'immutable';
13
+ import { Area, Hole, Item, Layer, Line, Project, Vertex } from "./export";
14
+ import { List, Map } from 'immutable';
15
15
  import { Group as GroupModel } from "../models";
16
- import { IDBroker, MathUtils, GeometryUtils } from "../utils/export";
16
+ import { GeometryUtils, IDBroker } from "../utils/export";
17
17
  var Group = /*#__PURE__*/function () {
18
18
  function Group() {
19
19
  _classCallCheck(this, Group);
package/es/class/hole.js CHANGED
@@ -4,12 +4,11 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o =
4
4
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
5
5
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6
6
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
- import { Map, List, fromJS } from 'immutable';
8
- import { Layer, Group } from "./export";
9
- import { IDBroker, NameGenerator } from "../utils/export";
10
- import { nearestSnap, addLineSegmentSnap } from "../utils/snap";
11
- import { MODE_IDLE, MODE_IDLE_3D, MODE_DRAWING_HOLE, MODE_DRAWING_HOLE_3D, MODE_DRAGGING_HOLE, MODE_DRAGGING_HOLE_3D } from "../constants";
12
- import { GeometryUtils } from "../utils/export";
7
+ import { fromJS, List, Map } from 'immutable';
8
+ import { Group, Layer } from "./export";
9
+ import { GeometryUtils, IDBroker } from "../utils/export";
10
+ import { addLineSegmentSnap, nearestSnap } from "../utils/snap";
11
+ import { MODE_DRAGGING_HOLE, MODE_DRAGGING_HOLE_3D, MODE_DRAWING_HOLE, MODE_DRAWING_HOLE_3D, MODE_IDLE, MODE_IDLE_3D } from "../constants";
13
12
  var Hole = /*#__PURE__*/function () {
14
13
  function Hole() {
15
14
  _classCallCheck(this, Hole);
package/es/class/layer.js CHANGED
@@ -5,8 +5,8 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
5
5
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6
6
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
7
  import { List } from 'immutable';
8
- import { Project, Area, Line, Hole, Item, Vertex } from "./export";
9
- import { GraphInnerCycles, GeometryUtils, IDBroker } from "../utils/export";
8
+ import { Area, Hole, Item, Line, Project, Vertex } from "./export";
9
+ import { GeometryUtils, GraphInnerCycles, IDBroker } from "../utils/export";
10
10
  import { Layer as LayerModel } from "../models";
11
11
  import { isEmpty } from "../utils/helper";
12
12
  var sameSet = function sameSet(set1, set2) {
@@ -7,12 +7,12 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o =
7
7
  function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
8
8
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
9
9
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
10
- import { Map, List } from 'immutable';
11
- import { MODE_VIEWING_CATALOG, MODE_CONFIGURING_PROJECT, MODE_IDLE, MODE_DRAWING_ITEM_3D, MODE_3D_VIEW, MODE_DRAGGING_ITEM_3D, MODE_IDLE_3D, MODE_ROTATING_ITEM_3D, MODE_DRAWING_ITEM, MODE_DRAWING_LINE, MODE_WAITING_DRAWING_LINE, MODE_DRAWING_HOLE, ARRAY_3D_MODES, END_DRAWING_LINE } from "../constants";
10
+ import { List, Map } from 'immutable';
12
11
  import * as constants from "../constants";
13
- import { State, Catalog, Scene } from "../models";
12
+ import { ARRAY_3D_MODES, END_DRAWING_LINE, MODE_CONFIGURING_PROJECT, MODE_DRAWING_HOLE, MODE_DRAWING_ITEM, MODE_DRAWING_ITEM_3D, MODE_DRAWING_LINE, MODE_IDLE, MODE_IDLE_3D, MODE_VIEWING_CATALOG, MODE_WAITING_DRAWING_LINE } from "../constants";
13
+ import { Catalog, Scene, State } from "../models";
14
14
  import { GeometryUtils, history } from "../utils/export";
15
- import { Layer, Group, Line, Hole, Item, Area, HorizontalGuide, VerticalGuide } from "../class/export";
15
+ import { Area, Group, Hole, HorizontalGuide, Item, Layer, Line, VerticalGuide } from "../class/export";
16
16
  import * as viewer2DActions from "../actions/viewer2d-actions";
17
17
  import { isEmpty } from "../utils/helper";
18
18
  var Project = /*#__PURE__*/function () {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import PropTypes from "../compat/propTypesCompat";
2
+ //import PropTypes from 'prop-types';
3
3
  import Viewer2D from "./viewer2d/viewer2d";
4
4
  import Viewer3D from "./viewer3d/viewer3d";
5
5
  import Viewer3DFirstPerson from "./viewer3d/viewer3d-first-person";
@@ -95,12 +95,13 @@ export default function Content(_ref, _ref2) {
95
95
  }
96
96
  }
97
97
  }
98
- Content.propTypes = {
99
- state: PropTypes.object.isRequired,
100
- width: PropTypes.number.isRequired,
101
- height: PropTypes.number.isRequired,
102
- replaceCabinet: PropTypes.func.isRequired
103
- };
104
- Content.contextTypes = {
105
- projectActions: PropTypes.object.isRequired
106
- };
98
+
99
+ // Content.propTypes = {
100
+ // state: PropTypes.object.isRequired,
101
+ // width: PropTypes.number.isRequired,
102
+ // height: PropTypes.number.isRequired,
103
+ // replaceCabinet: PropTypes.func.isRequired
104
+ // };
105
+ // Content.contextTypes = {
106
+ // projectActions: PropTypes.object.isRequired
107
+ // };
@@ -16,7 +16,7 @@ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? O
16
16
  function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
17
17
  function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
18
18
  import React, { Component } from 'react';
19
- import PropTypes from "../compat/propTypesCompat";
19
+ //import PropTypes from 'prop-types';
20
20
  import * as SharedStyle from "../../shared-style";
21
21
  var BASE_STYLE = {
22
22
  display: 'inline-block',
@@ -105,9 +105,10 @@ Button.defaultProps = {
105
105
  borderColor: '#8c8c8c'
106
106
  }
107
107
  };
108
- Button.propTypes = {
109
- type: PropTypes.string,
110
- style: PropTypes.object,
111
- styleHover: PropTypes.object,
112
- size: PropTypes.oneOf(['large', 'normal', 'small'])
113
- };
108
+
109
+ // Button.propTypes = {
110
+ // type: PropTypes.string,
111
+ // style: PropTypes.object,
112
+ // styleHover: PropTypes.object,
113
+ // size: PropTypes.oneOf(['large', 'normal', 'small'])
114
+ // };
@@ -5,7 +5,8 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
5
5
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6
6
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
7
  import React from 'react';
8
- import PropTypes from "../compat/propTypesCompat";
8
+ //import PropTypes from 'prop-types';
9
+
9
10
  var STYLE = {
10
11
  padding: '0 20px',
11
12
  overflowY: 'auto'
@@ -9,7 +9,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
9
9
  function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
10
10
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
11
11
  import React from 'react';
12
- import PropTypes from "../compat/propTypesCompat";
12
+ //import PropTypes from 'prop-types';
13
13
  import * as SharedStyle from "../../shared-style";
14
14
  var STYLE = {
15
15
  color: SharedStyle.PRIMARY_COLOR.alt,
@@ -14,8 +14,8 @@ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new T
14
14
  function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
15
15
  function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
16
16
  import React, { Component } from 'react';
17
- import PropTypes from "../compat/propTypesCompat";
18
- import { KEYBOARD_BUTTON_CODE, TEXT_COLOR_NEUTRAL_0, SECONDARY_PURPLE_COLOR, DEFAULT_FONT_FAMILY } from "../../constants";
17
+ //import PropTypes from 'prop-types';
18
+ import { DEFAULT_FONT_FAMILY, KEYBOARD_BUTTON_CODE, SECONDARY_PURPLE_COLOR, TEXT_COLOR_NEUTRAL_0 } from "../../constants";
19
19
  import styled from 'styled-components';
20
20
  import { isValidNumber } from "../../utils/helper";
21
21
  var StyledInput = styled.input(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: block;\n padding: 15px 25px 12px 0px;\n width: 120px;\n color: ", ";\n background-color: rgb(255, 255, 255);\n border: 2px solid;\n text-align: right;\n float: right;\n font-family: ", ";\n font-size: 16px;\n font-weight: 600;\n line-height: 17px;\n border-radius: 5px;\n outline: 0;\n :focus {\n border-color: ", ";\n }\n"])), TEXT_COLOR_NEUTRAL_0, DEFAULT_FONT_FAMILY, SECONDARY_PURPLE_COLOR);
@@ -158,26 +158,25 @@ var FormNumberInput = /*#__PURE__*/function (_Component) {
158
158
  });
159
159
  }
160
160
  }]);
161
- }(Component);
161
+ }(Component); // FormNumberInput.propTypes = {
162
+ // value: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
163
+ // style: PropTypes.object,
164
+ // onChange: PropTypes.func.isRequired,
165
+ // onValid: PropTypes.func,
166
+ // onInvalid: PropTypes.func,
167
+ // min: PropTypes.number,
168
+ // max: PropTypes.number,
169
+ // precision: PropTypes.number,
170
+ // placeholder: PropTypes.string,
171
+ // labelName: PropTypes.string,
172
+ // isCeiling: PropTypes.string
173
+ // };
174
+ // FormNumberInput.contextTypes = {
175
+ // translator: PropTypes.object.isRequired,
176
+ // projectActions: PropTypes.object.isRequired,
177
+ // linesActions: PropTypes.object.isRequired
178
+ // };
162
179
  export { FormNumberInput as default };
163
- FormNumberInput.propTypes = {
164
- value: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
165
- style: PropTypes.object,
166
- onChange: PropTypes.func.isRequired,
167
- onValid: PropTypes.func,
168
- onInvalid: PropTypes.func,
169
- min: PropTypes.number,
170
- max: PropTypes.number,
171
- precision: PropTypes.number,
172
- placeholder: PropTypes.string,
173
- labelName: PropTypes.string,
174
- isCeiling: PropTypes.string
175
- };
176
- FormNumberInput.contextTypes = {
177
- translator: PropTypes.object.isRequired,
178
- projectActions: PropTypes.object.isRequired,
179
- linesActions: PropTypes.object.isRequired
180
- };
181
180
  FormNumberInput.defaultProps = {
182
181
  value: 0,
183
182
  style: {},
@@ -15,7 +15,7 @@ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? O
15
15
  function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
16
16
  function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
17
17
  import React, { Component } from 'react';
18
- import PropTypes from "../compat/propTypesCompat";
18
+ //import PropTypes from 'prop-types';
19
19
  import * as SharedStyle from "../../shared-style";
20
20
  import { MdUpdate } from 'react-icons/md';
21
21
  import { KEYBOARD_BUTTON_CODE } from "../../constants";
@@ -179,23 +179,22 @@ var FormNumberInput = /*#__PURE__*/function (_Component) {
179
179
  })));
180
180
  }
181
181
  }]);
182
- }(Component);
182
+ }(Component); // FormNumberInput.propTypes = {
183
+ // value: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
184
+ // style: PropTypes.object,
185
+ // onChange: PropTypes.func.isRequired,
186
+ // onValid: PropTypes.func,
187
+ // onInvalid: PropTypes.func,
188
+ // min: PropTypes.number,
189
+ // max: PropTypes.number,
190
+ // precision: PropTypes.number,
191
+ // placeholder: PropTypes.string
192
+ // };
193
+ // FormNumberInput.contextTypes = {
194
+ // translator: PropTypes.object.isRequired,
195
+ // projectActions: PropTypes.object.isRequired
196
+ // };
183
197
  export { FormNumberInput as default };
184
- FormNumberInput.propTypes = {
185
- value: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
186
- style: PropTypes.object,
187
- onChange: PropTypes.func.isRequired,
188
- onValid: PropTypes.func,
189
- onInvalid: PropTypes.func,
190
- min: PropTypes.number,
191
- max: PropTypes.number,
192
- precision: PropTypes.number,
193
- placeholder: PropTypes.string
194
- };
195
- FormNumberInput.contextTypes = {
196
- translator: PropTypes.object.isRequired,
197
- projectActions: PropTypes.object.isRequired
198
- };
199
198
  FormNumberInput.defaultProps = {
200
199
  value: 0,
201
200
  style: {},
@@ -5,9 +5,8 @@ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i
5
5
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
6
6
  function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
7
7
  import React from 'react';
8
- import * as SharedStyle from "../../shared-style";
9
8
  import styled from 'styled-components';
10
- import { TEXT_COLOR_NEUTRAL_3, DEFAULT_FONT_FAMILY, SECONDARY_PURPLE_COLOR } from "../../constants";
9
+ import { DEFAULT_FONT_FAMILY, SECONDARY_PURPLE_COLOR, TEXT_COLOR_NEUTRAL_3 } from "../../constants";
11
10
  var StyledSelect = styled.select(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: block;\n width: 120px;\n float: right;\n padding: 15px 10px 12px 0px;\n color: ", ";\n border: 2px solid;\n font-family: ", ";\n font-size: 12px;\n font-weight: 600;\n line-height: 17px;\n text-align: right;\n outline: none;\n border-radius: 5px;\n :hover {\n border-color: ", ";\n }\n :focus {\n border-color: ", ";\n }\n"])), TEXT_COLOR_NEUTRAL_3, DEFAULT_FONT_FAMILY, SECONDARY_PURPLE_COLOR, SECONDARY_PURPLE_COLOR);
12
11
  export default function FormSelect(_ref) {
13
12
  var children = _ref.children,
@@ -18,8 +18,7 @@ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new T
18
18
  function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
19
19
  function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
20
20
  import React, { Component } from 'react';
21
- import * as SharedStyle from "../../shared-style";
22
- import { PROJECT_NAME_LENGTH_LIMIT, TEXT_COLOR_NEUTRAL_3, BG_COLOR_0, DEFAULT_FONT_FAMILY, SECONDARY_PURPLE_COLOR } from "../../constants";
21
+ import { BG_COLOR_0, DEFAULT_FONT_FAMILY, PROJECT_NAME_LENGTH_LIMIT, SECONDARY_PURPLE_COLOR, TEXT_COLOR_NEUTRAL_3 } from "../../constants";
23
22
  import styled from 'styled-components';
24
23
  var StyledInput = styled.input(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: block;\n padding: 15px 10px 12px 0px;\n width: 120px;\n font-family: ", ";\n font-size: 12px;\n font-weight: 600;\n line-height: 17px;\n color: ", ";\n background-color: ", ";\n border: 2px solid;\n text-align: right;\n float: right;\n border-radius: 5px;\n outline: 0;\n :focus {\n border-color: ", ";\n }\n"])), DEFAULT_FONT_FAMILY, TEXT_COLOR_NEUTRAL_3, BG_COLOR_0, SECONDARY_PURPLE_COLOR);
25
24
  var FormTextInput = /*#__PURE__*/function (_Component) {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import PropTypes from "../compat/propTypesCompat";
2
+ //import PropTypes from 'prop-types';
3
3
  import polylabel from 'polylabel';
4
4
  import areapolygon from 'area-polygon';
5
5
  import convert from 'convert-units';
@@ -74,8 +74,9 @@ export default function Area(_ref) {
74
74
  }
75
75
  }, rendered, renderedAreaSize);
76
76
  }
77
- Area.propTypes = {
78
- area: PropTypes.object.isRequired,
79
- layer: PropTypes.object.isRequired,
80
- catalog: PropTypes.object.isRequired
81
- };
77
+
78
+ // Area.propTypes = {
79
+ // area: PropTypes.object.isRequired,
80
+ // layer: PropTypes.object.isRequired,
81
+ // catalog: PropTypes.object.isRequired
82
+ // };
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
- import PropTypes from "../compat/propTypesCompat";
2
+ //import PropTypes from 'prop-types';
3
3
  import { List } from 'immutable';
4
- import convert from 'convert-units';
5
4
  export default function GridHorizontalStreak(_ref) {
6
5
  var width = _ref.width,
7
6
  height = _ref.height,
@@ -30,8 +29,9 @@ export default function GridHorizontalStreak(_ref) {
30
29
  }
31
30
  return /*#__PURE__*/React.createElement("g", null, rendered);
32
31
  }
33
- GridHorizontalStreak.propTypes = {
34
- width: PropTypes.number.isRequired,
35
- height: PropTypes.number.isRequired,
36
- grid: PropTypes.object.isRequired
37
- };
32
+
33
+ // GridHorizontalStreak.propTypes = {
34
+ // width: PropTypes.number.isRequired,
35
+ // height: PropTypes.number.isRequired,
36
+ // grid: PropTypes.object.isRequired
37
+ // };
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
- import PropTypes from "../compat/propTypesCompat";
2
+ //import PropTypes from 'prop-types';
3
3
  import { List } from 'immutable';
4
- import convert from 'convert-units';
5
4
  export default function GridStreak(_ref) {
6
5
  var width = _ref.width,
7
6
  height = _ref.height,
@@ -30,8 +29,9 @@ export default function GridStreak(_ref) {
30
29
  }
31
30
  return /*#__PURE__*/React.createElement("g", null, rendered);
32
31
  }
33
- GridStreak.propTypes = {
34
- width: PropTypes.number.isRequired,
35
- height: PropTypes.number.isRequired,
36
- grid: PropTypes.object.isRequired
37
- };
32
+
33
+ // GridStreak.propTypes = {
34
+ // width: PropTypes.number.isRequired,
35
+ // height: PropTypes.number.isRequired,
36
+ // grid: PropTypes.object.isRequired
37
+ // };
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
- import PropTypes from "../compat/propTypesCompat";
2
+ //import PropTypes from 'prop-types';
3
3
  import { List } from 'immutable';
4
- import convert from 'convert-units';
5
4
  export default function GridVerticalStreak(_ref) {
6
5
  var width = _ref.width,
7
6
  height = _ref.height,
@@ -30,8 +29,9 @@ export default function GridVerticalStreak(_ref) {
30
29
  }
31
30
  return /*#__PURE__*/React.createElement("g", null, rendered);
32
31
  }
33
- GridVerticalStreak.propTypes = {
34
- width: PropTypes.number.isRequired,
35
- height: PropTypes.number.isRequired,
36
- grid: PropTypes.object.isRequired
37
- };
32
+
33
+ // GridVerticalStreak.propTypes = {
34
+ // width: PropTypes.number.isRequired,
35
+ // height: PropTypes.number.isRequired,
36
+ // grid: PropTypes.object.isRequired
37
+ // };
@@ -5,7 +5,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
5
5
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
6
  function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
7
7
  import React, { memo } from 'react';
8
- import PropTypes from "../compat/propTypesCompat";
8
+ //import PropTypes from 'prop-types';
9
9
  import GridStreak from "./grid-streak";
10
10
  var propsAreEqual = function propsAreEqual(oldScene, newScene) {
11
11
  return oldScene.scene.width === newScene.scene.width && oldScene.scene.height === newScene.scene.height && oldScene.scene.grids === newScene.scene.grids;
@@ -29,7 +29,9 @@ var drawGrid = function drawGrid(_ref) {
29
29
  return /*#__PURE__*/React.createElement("g", null, renderedGrids);
30
30
  };
31
31
  var Grids = /*#__PURE__*/memo(drawGrid, propsAreEqual);
32
- Grids.propTypes = {
33
- scene: PropTypes.object.isRequired
34
- };
32
+
33
+ // Grids.propTypes = {
34
+ // scene: PropTypes.object.isRequired
35
+ // };
36
+
35
37
  export default Grids;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import PropTypes from "../compat/propTypesCompat";
2
+ //import PropTypes from 'prop-types';
3
3
  import If from "../../utils/react-if";
4
4
  import * as sharedStyles from "../../shared-style";
5
5
  var cx = 0;
@@ -42,12 +42,14 @@ export default function Group(_ref, _ref2) {
42
42
  style: STYLE_CIRCLE
43
43
  }, /*#__PURE__*/React.createElement("title", null, translator.t("Group's Barycenter"))))));
44
44
  }
45
- Group.propTypes = {
46
- group: PropTypes.object.isRequired,
47
- layer: PropTypes.object.isRequired,
48
- scene: PropTypes.object.isRequired,
49
- catalog: PropTypes.object.isRequired
50
- };
51
- Group.contextTypes = {
52
- translator: PropTypes.object.isRequired
53
- };
45
+
46
+ // Group.propTypes = {
47
+ // group: PropTypes.object.isRequired,
48
+ // layer: PropTypes.object.isRequired,
49
+ // scene: PropTypes.object.isRequired,
50
+ // catalog: PropTypes.object.isRequired
51
+ // };
52
+
53
+ // Group.contextTypes = {
54
+ // translator: PropTypes.object.isRequired
55
+ // };
@@ -4,14 +4,12 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
4
4
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
5
5
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
6
  function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
7
- import React from 'react';
8
- import { useState } from 'react';
9
- import PropTypes from "../compat/propTypesCompat";
10
- import If from "../../utils/react-if";
7
+ import React, { useState } from 'react';
8
+ //import PropTypes from 'prop-types';
11
9
  import RulerDist from "./rulerDist";
12
10
  import convert from 'convert-units';
13
11
  import { GeometryUtils } from "../../utils/export";
14
- import { MODE_ROTATING_ITEM, SECONDARY_PURPLE_COLOR, STATUS_NEGATIVE_COLOR, BG_COLOR_1, STATUS_WARNING_COLOR, WALL_CABINET_LAYOUTPOS } from "../../constants";
12
+ import { MODE_ROTATING_ITEM, WALL_CABINET_LAYOUTPOS } from "../../constants";
15
13
  import { returnReplaceableDeepSearchType } from "./utils";
16
14
  var STYLE_LINE = {
17
15
  fill: '#0096fd',
@@ -502,12 +500,14 @@ export default function Item(_ref, _ref2) {
502
500
  }
503
501
  }, measure ? renderedRuler : null, parts, warning_buttons));
504
502
  }
505
- Item.propTypes = {
506
- item: PropTypes.object.isRequired,
507
- layer: PropTypes.object.isRequired,
508
- scene: PropTypes.object.isRequired,
509
- catalog: PropTypes.object.isRequired
510
- };
511
- Item.contextTypes = {
512
- itemsActions: PropTypes.object.isRequired
513
- };
503
+
504
+ // Item.propTypes = {
505
+ // item: PropTypes.object.isRequired,
506
+ // layer: PropTypes.object.isRequired,
507
+ // scene: PropTypes.object.isRequired,
508
+ // catalog: PropTypes.object.isRequired
509
+ // };
510
+
511
+ // Item.contextTypes = {
512
+ // itemsActions: PropTypes.object.isRequired
513
+ // };
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import PropTypes from "../compat/propTypesCompat";
3
- import { Line, Area, Vertex, Item, Group } from "./export";
2
+ //import PropTypes from 'prop-types';
3
+ import { Area, Group, Item, Line, Vertex } from "./export";
4
4
  import { GeometryUtils } from "../../utils/export";
5
5
  import { MODE_DRAWING_LINE, WALL_CABINET_LAYOUTPOS } from "../../constants";
6
6
  import { returnReplaceableDeepSearchType } from "./utils";
@@ -157,8 +157,9 @@ export default function Layer(_ref) {
157
157
  });
158
158
  }));
159
159
  }
160
- Layer.propTypes = {
161
- layer: PropTypes.object.isRequired,
162
- scene: PropTypes.object.isRequired,
163
- catalog: PropTypes.object.isRequired
164
- };
160
+
161
+ // Layer.propTypes = {
162
+ // layer: PropTypes.object.isRequired,
163
+ // scene: PropTypes.object.isRequired,
164
+ // catalog: PropTypes.object.isRequired
165
+ // };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import PropTypes from "../compat/propTypesCompat";
2
+ //import PropTypes from 'prop-types';
3
3
  import { GeometryUtils } from "../../utils/export";
4
4
  import Ruler from "./ruler";
5
5
  import { BASE_CABINET_LAYOUTPOS, LINE_THICKNESS, WALL_CABINET_LAYOUTPOS } from "../../constants";
@@ -874,9 +874,10 @@ export default function Line(_ref) {
874
874
  "data-part": "remove"
875
875
  }));
876
876
  }
877
- Line.propTypes = {
878
- line: PropTypes.object.isRequired,
879
- layer: PropTypes.object.isRequired,
880
- scene: PropTypes.object.isRequired,
881
- catalog: PropTypes.object.isRequired
882
- };
877
+
878
+ // Line.propTypes = {
879
+ // line: PropTypes.object.isRequired,
880
+ // layer: PropTypes.object.isRequired,
881
+ // scene: PropTypes.object.isRequired,
882
+ // catalog: PropTypes.object.isRequired
883
+ // };
@@ -1,9 +1,8 @@
1
1
  import React from 'react';
2
- import PropTypes from "../compat/propTypesCompat";
2
+ //import PropTypes from 'prop-types';
3
3
  import convert from 'convert-units';
4
4
  import IDBroker from "../../utils/id-broker";
5
- import { FormNumberInput2 } from "../style/export";
6
- import { LINE_THICKNESS, SHADE_LIGHT_BLUE_COLOR, TEXT_COLOR_NEUTRAL_7 } from "../../constants";
5
+ import { LINE_THICKNESS, TEXT_COLOR_NEUTRAL_7 } from "../../constants";
7
6
  var STYLE = {
8
7
  stroke: TEXT_COLOR_NEUTRAL_7,
9
8
  strokeWidth: '1px'
@@ -93,8 +92,9 @@ export default function Ruler(_ref) {
93
92
  style: STYLE
94
93
  }));
95
94
  }
96
- Ruler.propTypes = {
97
- length: PropTypes.number.isRequired,
98
- unit: PropTypes.string.isRequired,
99
- transform: PropTypes.string.isRequired
100
- };
95
+
96
+ // Ruler.propTypes = {
97
+ // length: PropTypes.number.isRequired,
98
+ // unit: PropTypes.string.isRequired,
99
+ // transform: PropTypes.string.isRequired
100
+ // };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import PropTypes from "../compat/propTypesCompat";
2
+ //import PropTypes from 'prop-types';
3
3
  import convert from 'convert-units';
4
4
  var ARROW_STYLE = {
5
5
  stroke: '#1183B7',
@@ -139,8 +139,9 @@ export default function RulerDist(_ref) {
139
139
  }));
140
140
  }
141
141
  }
142
- RulerDist.propTypes = {
143
- length: PropTypes.number.isRequired,
144
- unit: PropTypes.string.isRequired,
145
- transform: PropTypes.string.isRequired
146
- };
142
+
143
+ // RulerDist.propTypes = {
144
+ // length: PropTypes.number.isRequired,
145
+ // unit: PropTypes.string.isRequired,
146
+ // transform: PropTypes.string.isRequired
147
+ // };