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.
- package/es/KitchenConfigurator.js +27 -28
- package/es/KitchenConfiguratorApp.js +35 -33
- package/es/actions/holes-actions.js +1 -1
- package/es/actions/items-actions.js +1 -1
- package/es/actions/lines-actions.js +1 -1
- package/es/actions/project-actions.js +1 -1
- package/es/actions/scene-actions.js +1 -1
- package/es/actions/vertices-actions.js +1 -1
- package/es/actions/viewer2d-actions.js +1 -1
- package/es/actions/viewer3d-actions.js +1 -1
- package/es/catalog/catalog.js +2 -2
- package/es/catalog/molding/molding-dcm/planner-element.js +0 -2
- package/es/catalog/molding/molding-fbm/planner-element.js +0 -2
- package/es/catalog/molding/molding-lrm/planner-element.js +0 -2
- package/es/catalog/properties/property-checkbox.js +10 -9
- package/es/catalog/properties/property-color.js +12 -10
- package/es/catalog/properties/property-enum.js +12 -12
- package/es/catalog/properties/property-hidden.js +11 -10
- package/es/catalog/properties/property-lenght-measure.js +16 -15
- package/es/catalog/properties/property-length-measure.js +17 -16
- package/es/catalog/properties/property-length-measure_hole.js +16 -15
- package/es/catalog/properties/property-number.js +11 -10
- package/es/catalog/properties/property-read-only.js +10 -9
- package/es/catalog/properties/property-string.js +10 -9
- package/es/catalog/properties/property-toggle.js +11 -10
- package/es/class/area.js +1 -1
- package/es/class/group.js +3 -3
- package/es/class/hole.js +5 -6
- package/es/class/layer.js +2 -2
- package/es/class/project.js +4 -4
- package/es/components/content.js +11 -10
- package/es/components/style/button.js +8 -7
- package/es/components/style/content-container.js +2 -1
- package/es/components/style/content-title.js +1 -1
- package/es/components/style/form-number-input.js +20 -21
- package/es/components/style/form-number-input_2.js +16 -17
- package/es/components/style/form-select.js +1 -2
- package/es/components/style/form-text-input.js +1 -2
- package/es/components/viewer2d/area.js +7 -6
- package/es/components/viewer2d/grids/grid-horizontal-streak.js +7 -7
- package/es/components/viewer2d/grids/grid-streak.js +7 -7
- package/es/components/viewer2d/grids/grid-vertical-streak.js +7 -7
- package/es/components/viewer2d/grids/grids.js +6 -4
- package/es/components/viewer2d/group.js +12 -10
- package/es/components/viewer2d/item.js +14 -14
- package/es/components/viewer2d/layer.js +8 -7
- package/es/components/viewer2d/line.js +8 -7
- package/es/components/viewer2d/ruler.js +8 -8
- package/es/components/viewer2d/rulerDist.js +7 -6
- package/es/components/viewer2d/rulerX.js +17 -17
- package/es/components/viewer2d/rulerY.js +15 -15
- package/es/components/viewer2d/scene.js +11 -13
- package/es/components/viewer2d/snap.js +7 -6
- package/es/components/viewer2d/state.js +7 -6
- package/es/components/viewer2d/utils.js +1 -1
- package/es/components/viewer2d/vertex.js +6 -5
- package/es/components/viewer2d/viewer2d.js +18 -16
- package/es/components/viewer3d/front3D.js +1 -1
- package/es/components/viewer3d/grids/grid-streak.js +0 -1
- package/es/components/viewer3d/ruler-utils/layer3D.js +1 -1
- package/es/components/viewer3d/ruler-utils/ruler3D.js +1 -1
- package/es/components/viewer3d/ruler-utils/scene3D.js +0 -2
- package/es/components/viewer3d/viewer3d-first-person.js +15 -16
- package/es/components/viewer3d/viewer3d.js +17 -18
- package/es/models.js +1 -1
- package/es/plugins/keyboard.js +2 -2
- package/es/reducers/holes-reducer.js +1 -1
- package/es/reducers/items-reducer.js +2 -5
- package/es/reducers/lines-reducer.js +1 -1
- package/es/reducers/project-reducer.js +1 -1
- package/es/reducers/reducer.js +2 -2
- package/es/reducers/scene-reducer.js +1 -1
- package/es/reducers/user-reducer.js +1 -2
- package/es/reducers/vertices-reducer.js +1 -1
- package/es/reducers/viewer2d-reducer.js +1 -1
- package/es/reducers/viewer3d-reducer.js +1 -1
- package/es/utils/geometry.js +3 -3
- package/es/utils/react-if.js +6 -5
- package/es/utils/snap-scene.js +2 -2
- package/es/utils/snap.js +1 -1
- package/lib/KitchenConfigurator.js +27 -29
- package/lib/KitchenConfiguratorApp.js +35 -34
- package/lib/catalog/molding/molding-dcm/planner-element.js +0 -5
- package/lib/catalog/molding/molding-fbm/planner-element.js +0 -5
- package/lib/catalog/molding/molding-lrm/planner-element.js +0 -5
- package/lib/catalog/properties/property-checkbox.js +10 -10
- package/lib/catalog/properties/property-color.js +11 -9
- package/lib/catalog/properties/property-enum.js +10 -11
- package/lib/catalog/properties/property-hidden.js +11 -11
- package/lib/catalog/properties/property-lenght-measure.js +15 -15
- package/lib/catalog/properties/property-length-measure.js +15 -15
- package/lib/catalog/properties/property-length-measure_hole.js +15 -15
- package/lib/catalog/properties/property-number.js +12 -10
- package/lib/catalog/properties/property-read-only.js +11 -9
- package/lib/catalog/properties/property-string.js +11 -9
- package/lib/catalog/properties/property-toggle.js +11 -9
- package/lib/components/content.js +12 -10
- package/lib/components/style/button.js +8 -9
- package/lib/components/style/content-container.js +5 -4
- package/lib/components/style/content-title.js +2 -3
- package/lib/components/style/form-number-input.js +19 -21
- package/lib/components/style/form-number-input_2.js +16 -19
- package/lib/components/style/form-select.js +0 -3
- package/lib/components/style/form-text-input.js +0 -1
- package/lib/components/viewer2d/area.js +8 -6
- package/lib/components/viewer2d/grids/grid-horizontal-streak.js +8 -7
- package/lib/components/viewer2d/grids/grid-streak.js +8 -7
- package/lib/components/viewer2d/grids/grid-vertical-streak.js +8 -7
- package/lib/components/viewer2d/grids/grids.js +5 -5
- package/lib/components/viewer2d/group.js +13 -10
- package/lib/components/viewer2d/item.js +12 -12
- package/lib/components/viewer2d/layer.js +8 -6
- package/lib/components/viewer2d/line.js +9 -7
- package/lib/components/viewer2d/ruler.js +8 -7
- package/lib/components/viewer2d/rulerDist.js +8 -6
- package/lib/components/viewer2d/rulerX.js +17 -19
- package/lib/components/viewer2d/rulerY.js +15 -17
- package/lib/components/viewer2d/scene.js +9 -13
- package/lib/components/viewer2d/snap.js +8 -6
- package/lib/components/viewer2d/state.js +7 -7
- package/lib/components/viewer2d/vertex.js +7 -5
- package/lib/components/viewer2d/viewer2d.js +18 -17
- package/lib/components/viewer3d/grids/grid-streak.js +0 -1
- package/lib/components/viewer3d/ruler-utils/scene3D.js +0 -2
- package/lib/components/viewer3d/viewer3d-first-person.js +14 -16
- package/lib/components/viewer3d/viewer3d.js +16 -18
- package/lib/reducers/user-reducer.js +0 -1
- package/lib/utils/geometry.js +1 -1
- package/lib/utils/react-if.js +7 -5
- package/package.json +1 -3
- package/es/compat/propTypesCompat.js +0 -8
- package/lib/compat/propTypesCompat.js +0 -26
|
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
31
31
|
import axios from 'axios';
|
|
32
32
|
import * as convert from 'convert-units';
|
|
33
33
|
import { Plugins as PlannerPlugins } from "./index";
|
|
34
|
-
import PropTypes from
|
|
34
|
+
//import PropTypes from 'prop-types';
|
|
35
35
|
import React, { Component } from 'react';
|
|
36
36
|
import ReactGA from 'react-ga4';
|
|
37
37
|
import { hotjar } from 'react-hotjar';
|
|
@@ -598,33 +598,32 @@ var KitchenConfigurator = /*#__PURE__*/function (_Component) {
|
|
|
598
598
|
}))));
|
|
599
599
|
}
|
|
600
600
|
}]);
|
|
601
|
-
}(Component);
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
};
|
|
619
|
-
KitchenConfigurator.contextTypes = {
|
|
620
|
-
|
|
621
|
-
};
|
|
622
|
-
KitchenConfigurator.childContextTypes =
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
});
|
|
601
|
+
}(Component); // KitchenConfigurator.propTypes = {
|
|
602
|
+
// translator: PropTypes.instanceOf(Translator),
|
|
603
|
+
//
|
|
604
|
+
// catalog: PropTypes.instanceOf(Catalog),
|
|
605
|
+
// allowProjectFileSupport: PropTypes.bool,
|
|
606
|
+
// plugins: PropTypes.arrayOf(PropTypes.func),
|
|
607
|
+
// autosaveKey: PropTypes.string,
|
|
608
|
+
// autosaveDelay: PropTypes.number,
|
|
609
|
+
// width: PropTypes.number.isRequired,
|
|
610
|
+
// height: PropTypes.number.isRequired,
|
|
611
|
+
// stateExtractor: PropTypes.func.isRequired,
|
|
612
|
+
// toolbarButtons: PropTypes.array,
|
|
613
|
+
// sidebarComponents: PropTypes.array,
|
|
614
|
+
// footerbarComponents: PropTypes.array,
|
|
615
|
+
// customContents: PropTypes.object,
|
|
616
|
+
// softwareSignature: PropTypes.string,
|
|
617
|
+
// configData: PropTypes.object
|
|
618
|
+
// };
|
|
619
|
+
// KitchenConfigurator.contextTypes = {
|
|
620
|
+
// store: PropTypes.object.isRequired
|
|
621
|
+
// };
|
|
622
|
+
// KitchenConfigurator.childContextTypes = {
|
|
623
|
+
// ...objectsMap(actions, () => PropTypes.object),
|
|
624
|
+
// translator: PropTypes.object,
|
|
625
|
+
// catalog: PropTypes.object
|
|
626
|
+
// };
|
|
628
627
|
KitchenConfigurator.defaultProps = {
|
|
629
628
|
translator: new Translator(),
|
|
630
629
|
catalog: new Catalog(),
|
|
@@ -19,10 +19,9 @@ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
|
19
19
|
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; }
|
|
20
20
|
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; }
|
|
21
21
|
import React, { useEffect } from 'react';
|
|
22
|
-
import PropTypes from
|
|
22
|
+
//import PropTypes from 'prop-types';
|
|
23
23
|
import { Provider } from 'react-redux';
|
|
24
24
|
import { createStore } from 'redux';
|
|
25
|
-
import * as Models from "./models";
|
|
26
25
|
import KitchenConfigurator from "./KitchenConfigurator";
|
|
27
26
|
import AppContext from "./AppContext";
|
|
28
27
|
import Catalog from "./catalog/catalog";
|
|
@@ -462,34 +461,37 @@ export default function KitchenConfiguratorApp(props) {
|
|
|
462
461
|
|
|
463
462
|
/* ============================== prop types ============================== */
|
|
464
463
|
|
|
465
|
-
KitchenConfiguratorApp.propTypes = {
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
464
|
+
// KitchenConfiguratorApp.propTypes = {
|
|
465
|
+
// width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
466
|
+
// height: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
467
|
+
// projectElement: PropTypes.arrayOf(PropTypes.object),
|
|
468
|
+
// categoryData: PropTypes.any,
|
|
469
|
+
// dataBundle: PropTypes.any,
|
|
470
|
+
// configData: PropTypes.any,
|
|
471
|
+
// catalog: PropTypes.oneOfType([
|
|
472
|
+
// PropTypes.object,
|
|
473
|
+
// PropTypes.instanceOf(Models.Catalog)
|
|
474
|
+
// ]),
|
|
475
|
+
// logoImg: PropTypes.any,
|
|
476
|
+
// companyUrl: PropTypes.string,
|
|
477
|
+
// toolbarButtons: PropTypes.any,
|
|
478
|
+
// options: PropTypes.object,
|
|
479
|
+
// user: PropTypes.object,
|
|
480
|
+
// auth: PropTypes.object,
|
|
481
|
+
// featureFlags: PropTypes.object,
|
|
482
|
+
// sentry: PropTypes.shape({
|
|
483
|
+
// dsn: PropTypes.string,
|
|
484
|
+
// environment: PropTypes.string
|
|
485
|
+
// }),
|
|
486
|
+
// analytics: PropTypes.shape({
|
|
487
|
+
// ga4Id: PropTypes.string,
|
|
488
|
+
// hotjar: PropTypes.shape({
|
|
489
|
+
// id: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
490
|
+
// sv: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
491
|
+
// })
|
|
492
|
+
// }),
|
|
493
|
+
// onEvent: PropTypes.func,
|
|
494
|
+
// onSave: PropTypes.func,
|
|
495
|
+
// onError: PropTypes.func,
|
|
496
|
+
// store: PropTypes.object
|
|
497
|
+
// };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BEGIN_DRAGGING_HOLE, BEGIN_DRAGGING_HOLE_3D, END_CREATING_HOLE, END_DRAGGING_HOLE, END_DRAGGING_HOLE_3D, END_DRAWING_HOLE, END_DRAWING_HOLE_3D, SELECT_HOLE, SELECT_TOOL_DRAWING_HOLE, SELECT_TOOL_DRAWING_HOLE_3D, UPDATE_DRAGGING_HOLE, UPDATE_DRAGGING_HOLE_CHANGED, UPDATE_DRAGGING_HOLE_RULER_CHANGED, UPDATE_DRAWING_HOLE, UPDATE_DRAWING_HOLE_3D, UPDATE_POPUP_OPEN } from "../constants";
|
|
2
2
|
export function endCreatingHole() {
|
|
3
3
|
return {
|
|
4
4
|
type: END_CREATING_HOLE
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ANIMATE_OBJECT, BEGIN_DRAGGING_ITEM, BEGIN_DRAGGING_ITEM_3D, BEGIN_ROTATING_ITEM, BEGIN_ROTATING_ITEM_3D, DUPLICATE_SELECTED, EDIT_WIDTH, END_CREATING_CABINET, END_DRAGGING_ITEM, END_DRAGGING_ITEM_3D, END_DRAWING_ITEM, END_LOADING, END_ROTATING_ITEM, END_ROTATING_ITEM_3D, ITEM_MOVE_UP, REMOVE_REPLACE_SUBMODULE, REPLACE_ITEM, REPLACE_SUBMODULE, SELECT_ITEM, SELECT_TOOL_DRAWING_ITEM, SELECT_TOOL_DRAWING_ITEM_3D, SET_APPLIANCE_MATERIAL, SET_BACKSPLASH, SET_BACKSPLASH_VISIBLE, SET_COUNTER_TOP, SET_DOOR_HANDLE, SET_DOOR_STYLE, SET_HANDLE_MATERIAL, SET_INITIAL_DOOR_STYLE, SET_MODELLING, SET_MOLDING, SET_MOVE_STATUS, SET_ROTATE_STATUS, SET_WALL_COLOR, STORE_DIST_ARRAY, TOGGLE_LOADING_CABINET, UPDATE_DRAGGING_ITEM, UPDATE_DRAGGING_ITEM_3DX, UPDATE_DRAGGING_ITEM_3DY, UPDATE_DRAGGING_ITEM_CHANGED, UPDATE_DRAWING_ITEM, UPDATE_MOLDING, UPDATE_POPUP_OPEN, UPDATE_ROTATING_ITEM, UPDATE_ROTATING_ITEM_CHANGED, VALIDATE_ITEM_POSTIONS } from "../constants";
|
|
2
2
|
export function storeDistArray(layerID, itemID, distArray) {
|
|
3
3
|
return {
|
|
4
4
|
type: STORE_DIST_ARRAY,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { BEGIN_DRAGGING_LINE, BEGIN_DRAWING_LINE, END_DRAGGING_LINE, END_DRAWING_LINE, SELECT_LINE, SELECT_TOOL_DRAWING_LINE, SET_RELATED_LINE, STOP_DRAWING_LINE, UPDATE_DRAGGING_LINE, UPDATE_DRAWING_LINE } from "../constants";
|
|
2
2
|
export function selectLine(layerID, lineID) {
|
|
3
3
|
return {
|
|
4
4
|
type: SELECT_LINE,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ADD_CIRCULAR_GUIDE, ADD_HORIZONTAL_GUIDE, ADD_VERTICAL_GUIDE, ALTERATE_STATE, CHANGE_CATALOG_PAGE, COPY_PROPERTIES, GO_BACK_TO_CATALOG_PAGE, INIT_CATALOG, LOAD_PROJECT, NEW_PROJECT, OPEN_CATALOG, OPEN_PROJECT_CONFIGURATOR, PASTE_PROPERTIES, PROJECT_RE_NAME, PUSH_LAST_SELECTED_CATALOG_ELEMENT_TO_HISTORY, RECREATE, REDO, REMOVE, REMOVE_CIRCULAR_GUIDE, REMOVE_DRAWING_SUPPORT, REMOVE_HORIZONTAL_GUIDE, REMOVE_VERTICAL_GUIDE, ROLLBACK, SAVE_PROJECT, SELECT_ALL, SELECT_TOOL_EDIT, SET_HOLES_ATTRIBUTES, SET_IS_CABINET_DRAWING, SET_IS_HELP, SET_ITEMS_ATTRIBUTES, SET_LINES_ATTRIBUTES, SET_MODE, SET_PROJECT_ID, SET_PROJECT_PROPERTIES, SET_PROPERTIES, SET_STATE_PROPERTIES, SHIFT2DOFF, SHIFT2DON, THROW_ERROR, THROW_WARNING, TOGGLE_SNAP, UNCREATE, UNDO, UNSELECT_ALL, UPDATE_MOUSE_COORDS, UPDATE_ZOOM_SCALE } from "../constants";
|
|
2
2
|
export function setIsHelp(isHelp) {
|
|
3
3
|
return {
|
|
4
4
|
type: SET_IS_HELP,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ADD_LAYER, REMOVE_LAYER, SELECT_LAYER, SET_LAYER_PROPERTIES, UPDATE_MOVING_STATE } from "../constants";
|
|
2
2
|
export function selectLayer(layerID) {
|
|
3
3
|
return {
|
|
4
4
|
type: SELECT_LAYER,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BEGIN_DRAGGING_VERTEX,
|
|
1
|
+
import { BEGIN_DRAGGING_VERTEX, END_DRAGGING_VERTEX, UPDATE_DRAGGING_VERTEX } from "../constants";
|
|
2
2
|
export function beginDraggingVertex(layerID, vertexID, x, y, snapMask) {
|
|
3
3
|
return {
|
|
4
4
|
type: BEGIN_DRAGGING_VERTEX,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CHANGE_BASE_CABINET_MEASURE, CHANGE_WALL_CABINET_MEASURE, CHANGE_WALL_LENGTH_MEASURE, CHANGE_WINDOW_DOOR_MEASURE, SELECT_TOOL_PAN, SELECT_TOOL_ZOOM_IN, SELECT_TOOL_ZOOM_OUT, UPDATE_2D_CAMERA, UPDATE_CEIL_HEIGHT, UPDATE_CEIL_HEIGHT_UNIT } from "../constants";
|
|
2
2
|
export function updateCeilHeight(value) {
|
|
3
3
|
return {
|
|
4
4
|
type: UPDATE_CEIL_HEIGHT,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SELECT_TOOL_3D_FIRST_PERSON, SELECT_TOOL_3D_VIEW, UPDATE_3D_CEIL_HEIGHT, UPDATE_3D_CEIL_HEIGHT_UNIT } from "../constants";
|
|
2
2
|
export function selectTool3DView() {
|
|
3
3
|
return {
|
|
4
4
|
type: SELECT_TOOL_3D_VIEW
|
package/es/catalog/catalog.js
CHANGED
|
@@ -10,8 +10,8 @@ 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 { PropertyColor, PropertyEnum,
|
|
14
|
-
import { UNIT_CENTIMETER
|
|
13
|
+
import { PropertyCheckbox, PropertyColor, PropertyEnum, PropertyHidden, PropertyLengthMeasure, PropertyNumber, PropertyReadOnly, PropertyString, PropertyToggle } from "./properties/export";
|
|
14
|
+
import { UNIT_CENTIMETER } from "../constants";
|
|
15
15
|
import { returnReplaceableDeepSearchType } from "../components/viewer2d/utils";
|
|
16
16
|
var Catalog = /*#__PURE__*/function () {
|
|
17
17
|
function Catalog() {
|
|
@@ -7,7 +7,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
7
7
|
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); }
|
|
8
8
|
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import PropTypes from
|
|
10
|
+
//import PropTypes from 'prop-types';
|
|
11
11
|
import styled from 'styled-components';
|
|
12
12
|
import { DEFAULT_FONT_FAMILY, SECONDARY_PURPLE_COLOR, TEXT_COLOR_NEUTRAL_0 } from "../../constants";
|
|
13
13
|
var FlipWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n margin: 15px 0;\n justify-content: space-between;\n"])));
|
|
@@ -59,11 +59,12 @@ export default function PropertyCheckbox(_ref) {
|
|
|
59
59
|
}
|
|
60
60
|
}))));
|
|
61
61
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
62
|
+
|
|
63
|
+
// PropertyCheckbox.propTypes = {
|
|
64
|
+
// value: PropTypes.any.isRequired,
|
|
65
|
+
// onUpdate: PropTypes.func.isRequired,
|
|
66
|
+
// configs: PropTypes.object.isRequired,
|
|
67
|
+
// sourceElement: PropTypes.object,
|
|
68
|
+
// internalState: PropTypes.object,
|
|
69
|
+
// state: PropTypes.object.isRequired
|
|
70
|
+
// };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import
|
|
2
|
+
|
|
3
|
+
//import PropTypes from 'prop-types';
|
|
4
|
+
import { FormColorInput, FormLabel } from "../../components/style/export";
|
|
4
5
|
import PropertyStyle from "./shared-property-style";
|
|
5
6
|
export default function PropertyColor(_ref) {
|
|
6
7
|
var value = _ref.value,
|
|
@@ -29,11 +30,12 @@ export default function PropertyColor(_ref) {
|
|
|
29
30
|
}
|
|
30
31
|
})))));
|
|
31
32
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
33
|
+
|
|
34
|
+
// PropertyColor.propTypes = {
|
|
35
|
+
// value: PropTypes.any.isRequired,
|
|
36
|
+
// onUpdate: PropTypes.func.isRequired,
|
|
37
|
+
// configs: PropTypes.object.isRequired,
|
|
38
|
+
// sourceElement: PropTypes.object,
|
|
39
|
+
// internalState: PropTypes.object,
|
|
40
|
+
// state: PropTypes.object.isRequired
|
|
41
|
+
// };
|
|
@@ -7,12 +7,11 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
7
7
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
8
8
|
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import PropTypes from
|
|
10
|
+
//import PropTypes from 'prop-types';
|
|
11
11
|
import { Seq } from 'immutable';
|
|
12
|
-
import {
|
|
13
|
-
import PropertyStyle from "./shared-property-style";
|
|
12
|
+
import { FormSelect } from "../../components/style/export";
|
|
14
13
|
import styled from 'styled-components';
|
|
15
|
-
import {
|
|
14
|
+
import { DEFAULT_FONT_FAMILY, TEXT_COLOR_NEUTRAL_0 } from "../../constants";
|
|
16
15
|
var EnumWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n margin-top: 3px;\n"])));
|
|
17
16
|
var EnumTitle = styled.span(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-right: auto;\n width: 110px;\n color: ", ";\n font-family: ", ";\n\n @media screen and (min-width: 1024) {\n font-size: 11px;\n }\n @media screen and (max-width: 1024) {\n font-size: 11px;\n }\n @media screen and (min-width: 1366) {\n font-size: 13px;\n }\n @media screen and (max-width: 1366) {\n font-size: 13px;\n }\n @media screen and (min-width: 1440) {\n font-size: 16px;\n }\n @media screen and (max-width: 1440) {\n font-size: 16px;\n }\n font-weight: 400;\n line-height: 15px;\n text-align: left;\n"])), TEXT_COLOR_NEUTRAL_0, DEFAULT_FONT_FAMILY);
|
|
18
17
|
export default function PropertyEnum(_ref) {
|
|
@@ -45,11 +44,12 @@ export default function PropertyEnum(_ref) {
|
|
|
45
44
|
}, value);
|
|
46
45
|
})));
|
|
47
46
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
47
|
+
|
|
48
|
+
// PropertyEnum.propTypes = {
|
|
49
|
+
// value: PropTypes.any.isRequired,
|
|
50
|
+
// onUpdate: PropTypes.func.isRequired,
|
|
51
|
+
// configs: PropTypes.object.isRequired,
|
|
52
|
+
// sourceElement: PropTypes.object,
|
|
53
|
+
// internalState: PropTypes.object,
|
|
54
|
+
// state: PropTypes.object.isRequired
|
|
55
|
+
// };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
//import PropTypes from 'prop-types';
|
|
2
|
+
|
|
3
3
|
export default function PropertyHidden(_ref) {
|
|
4
4
|
var value = _ref.value,
|
|
5
5
|
onUpdate = _ref.onUpdate,
|
|
@@ -9,11 +9,12 @@ export default function PropertyHidden(_ref) {
|
|
|
9
9
|
state = _ref.state;
|
|
10
10
|
return null;
|
|
11
11
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
12
|
+
|
|
13
|
+
// PropertyHidden.propTypes = {
|
|
14
|
+
// value: PropTypes.any.isRequired,
|
|
15
|
+
// onUpdate: PropTypes.func.isRequired,
|
|
16
|
+
// configs: PropTypes.object.isRequired,
|
|
17
|
+
// sourceElement: PropTypes.object,
|
|
18
|
+
// internalState: PropTypes.object,
|
|
19
|
+
// state: PropTypes.object.isRequired
|
|
20
|
+
// };
|
|
@@ -3,11 +3,10 @@ function _extends() { return _extends = Object.assign ? Object.assign.bind() : f
|
|
|
3
3
|
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; }
|
|
4
4
|
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; }
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import PropTypes from
|
|
7
|
-
import { BASE_CABINET_LAYOUTPOS, TALL_CABINET_LAYOUTPOS,
|
|
6
|
+
//import PropTypes from 'prop-types';
|
|
7
|
+
import { BASE_CABINET_LAYOUTPOS, TALL_CABINET_LAYOUTPOS, UNIT_INCH, UNITS_LENGTH } from "./../../constants";
|
|
8
8
|
import convert from 'convert-units';
|
|
9
9
|
import { FormLabel, FormNumberInput, FormSelect } from "../../components/style/export";
|
|
10
|
-
import { Map } from 'immutable';
|
|
11
10
|
import { toFixedFloat } from "../../utils/math";
|
|
12
11
|
import PropertyStyle from "./shared-property-style";
|
|
13
12
|
var internalTableStyle = {
|
|
@@ -87,15 +86,17 @@ export default function PropertyLengthMeasure(_ref, _ref2) {
|
|
|
87
86
|
}, el);
|
|
88
87
|
}))))))))));
|
|
89
88
|
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
89
|
+
|
|
90
|
+
// PropertyLengthMeasure.propTypes = {
|
|
91
|
+
// value: PropTypes.instanceOf(Map).isRequired,
|
|
92
|
+
// onUpdate: PropTypes.func.isRequired,
|
|
93
|
+
// onValid: PropTypes.func,
|
|
94
|
+
// configs: PropTypes.object.isRequired,
|
|
95
|
+
// sourceElement: PropTypes.object,
|
|
96
|
+
// internalState: PropTypes.object,
|
|
97
|
+
// state: PropTypes.object.isRequired
|
|
98
|
+
// };
|
|
99
|
+
|
|
100
|
+
// PropertyLengthMeasure.contextTypes = {
|
|
101
|
+
// catalog: PropTypes.object.isRequired
|
|
102
|
+
// };
|
|
@@ -5,11 +5,10 @@ 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 PropTypes from
|
|
9
|
-
import {
|
|
8
|
+
//import PropTypes from 'prop-types';
|
|
9
|
+
import { BASE_CABINET_LAYOUTPOS, DEFAULT_FONT_FAMILY, TALL_CABINET_LAYOUTPOS, TEXT_COLOR_NEUTRAL_0, UNIT_CENTIMETER, UNIT_INCH } from "../../constants";
|
|
10
10
|
import convert from 'convert-units';
|
|
11
|
-
import {
|
|
12
|
-
import { Map } from 'immutable';
|
|
11
|
+
import { FormNumberInput } from "../../components/style/export";
|
|
13
12
|
import { toFixedFloat } from "../../utils/math";
|
|
14
13
|
import styled from 'styled-components';
|
|
15
14
|
var DistanceFloorWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n margin-top: 3px;\n"])));
|
|
@@ -71,15 +70,17 @@ export default function PropertyLengthMeasure(_ref, _ref2) {
|
|
|
71
70
|
}
|
|
72
71
|
}, configRest)));
|
|
73
72
|
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
73
|
+
|
|
74
|
+
// PropertyLengthMeasure.propTypes = {
|
|
75
|
+
// value: PropTypes.instanceOf(Map).isRequired,
|
|
76
|
+
// onUpdate: PropTypes.func.isRequired,
|
|
77
|
+
// onValid: PropTypes.func,
|
|
78
|
+
// configs: PropTypes.object.isRequired,
|
|
79
|
+
// sourceElement: PropTypes.object,
|
|
80
|
+
// internalState: PropTypes.object,
|
|
81
|
+
// state: PropTypes.object.isRequired
|
|
82
|
+
// };
|
|
83
|
+
|
|
84
|
+
// PropertyLengthMeasure.contextTypes = {
|
|
85
|
+
// catalog: PropTypes.object.isRequired
|
|
86
|
+
// };
|
|
@@ -3,11 +3,10 @@ function _extends() { return _extends = Object.assign ? Object.assign.bind() : f
|
|
|
3
3
|
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; }
|
|
4
4
|
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; }
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import PropTypes from
|
|
7
|
-
import {
|
|
6
|
+
//import PropTypes from 'prop-types';
|
|
7
|
+
import { BASE_CABINET_LAYOUTPOS, TALL_CABINET_LAYOUTPOS, UNIT_INCH, UNITS_LENGTH } from "../../constants";
|
|
8
8
|
import convert from 'convert-units';
|
|
9
9
|
import { FormLabel, FormNumberInput1, FormSelect } from "../../components/style/export";
|
|
10
|
-
import { Map } from 'immutable';
|
|
11
10
|
import { toFixedFloat } from "../../utils/math";
|
|
12
11
|
import PropertyStyle from "./shared-property-style";
|
|
13
12
|
var internalTableStyle = {
|
|
@@ -87,15 +86,17 @@ export default function PropertyLengthMeasureHole(_ref, _ref2) {
|
|
|
87
86
|
}, el);
|
|
88
87
|
}))))))))));
|
|
89
88
|
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
89
|
+
|
|
90
|
+
// PropertyLengthMeasureHole.propTypes = {
|
|
91
|
+
// value: PropTypes.instanceOf(Map).isRequired,
|
|
92
|
+
// onUpdate: PropTypes.func.isRequired,
|
|
93
|
+
// onValid: PropTypes.func,
|
|
94
|
+
// configs: PropTypes.object.isRequired,
|
|
95
|
+
// sourceElement: PropTypes.object,
|
|
96
|
+
// internalState: PropTypes.object,
|
|
97
|
+
// state: PropTypes.object.isRequired
|
|
98
|
+
// };
|
|
99
|
+
|
|
100
|
+
// PropertyLengthMeasureHole.contextTypes = {
|
|
101
|
+
// catalog: PropTypes.object.isRequired
|
|
102
|
+
// };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from
|
|
2
|
+
//import PropTypes from 'prop-types';
|
|
3
3
|
import { FormLabel, FormNumberInput } from "../../components/style/export";
|
|
4
4
|
import PropertyStyle from "./shared-property-style";
|
|
5
5
|
export default function PropertyNumber(_ref) {
|
|
@@ -37,12 +37,13 @@ export default function PropertyNumber(_ref) {
|
|
|
37
37
|
max: configs.max
|
|
38
38
|
})))));
|
|
39
39
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
40
|
+
|
|
41
|
+
// PropertyNumber.propTypes = {
|
|
42
|
+
// value: PropTypes.any.isRequired,
|
|
43
|
+
// onUpdate: PropTypes.func.isRequired,
|
|
44
|
+
// onValid: PropTypes.func,
|
|
45
|
+
// configs: PropTypes.object.isRequired,
|
|
46
|
+
// sourceElement: PropTypes.object,
|
|
47
|
+
// internalState: PropTypes.object,
|
|
48
|
+
// state: PropTypes.object.isRequired
|
|
49
|
+
// };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from
|
|
2
|
+
//import PropTypes from 'prop-types';
|
|
3
3
|
import { FormLabel } from "../../components/style/export";
|
|
4
4
|
import PropertyStyle from "./shared-property-style";
|
|
5
5
|
export default function PropertyReadOnly(_ref) {
|
|
@@ -16,11 +16,12 @@ export default function PropertyReadOnly(_ref) {
|
|
|
16
16
|
style: PropertyStyle.firstTdStyle
|
|
17
17
|
}, /*#__PURE__*/React.createElement(FormLabel, null, configs.label)), /*#__PURE__*/React.createElement("td", null, /*#__PURE__*/React.createElement("div", null, value)))));
|
|
18
18
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
|
|
20
|
+
// PropertyReadOnly.propTypes = {
|
|
21
|
+
// value: PropTypes.any.isRequired,
|
|
22
|
+
// onUpdate: PropTypes.func.isRequired,
|
|
23
|
+
// configs: PropTypes.object.isRequired,
|
|
24
|
+
// sourceElement: PropTypes.object,
|
|
25
|
+
// internalState: PropTypes.object,
|
|
26
|
+
// state: PropTypes.object.isRequired
|
|
27
|
+
// };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from
|
|
2
|
+
//import PropTypes from 'prop-types';
|
|
3
3
|
import { FormLabel, FormTextInput } from "../../components/style/export";
|
|
4
4
|
import PropertyStyle from "./shared-property-style";
|
|
5
5
|
var tableStyle = {
|
|
@@ -38,11 +38,12 @@ export default function PropertyString(_ref) {
|
|
|
38
38
|
}
|
|
39
39
|
})))));
|
|
40
40
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
41
|
+
|
|
42
|
+
// PropertyString.propTypes = {
|
|
43
|
+
// value: PropTypes.any.isRequired,
|
|
44
|
+
// onUpdate: PropTypes.func.isRequired,
|
|
45
|
+
// configs: PropTypes.object.isRequired,
|
|
46
|
+
// sourceElement: PropTypes.object,
|
|
47
|
+
// internalState: PropTypes.object,
|
|
48
|
+
// state: PropTypes.object.isRequired
|
|
49
|
+
// };
|