kitchen-simulator 5.0.0-test.4 → 5.0.0-test.6
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/package.json +23 -41
- package/es/@history.js +0 -3
- package/es/@history.js.map +0 -1
- package/es/AppContext.js +0 -4
- package/es/AppContext.js.map +0 -1
- package/es/KitchenConfigurator.js +0 -1345
- package/es/KitchenConfigurator.js.map +0 -1
- package/es/KitchenConfiguratorApp.js +0 -532
- package/es/KitchenConfiguratorApp.js.map +0 -1
- package/es/actions/area-actions.js +0 -15
- package/es/actions/area-actions.js.map +0 -1
- package/es/actions/export.js +0 -26
- package/es/actions/export.js.map +0 -1
- package/es/actions/groups-actions.js +0 -90
- package/es/actions/groups-actions.js.map +0 -1
- package/es/actions/holes-actions.js +0 -120
- package/es/actions/holes-actions.js.map +0 -1
- package/es/actions/items-actions.js +0 -314
- package/es/actions/items-actions.js.map +0 -1
- package/es/actions/lines-actions.js +0 -83
- package/es/actions/lines-actions.js.map +0 -1
- package/es/actions/project-actions.js +0 -282
- package/es/actions/project-actions.js.map +0 -1
- package/es/actions/scene-actions.js +0 -34
- package/es/actions/scene-actions.js.map +0 -1
- package/es/actions/user-actions.js +0 -59
- package/es/actions/user-actions.js.map +0 -1
- package/es/actions/vertices-actions.js +0 -28
- package/es/actions/vertices-actions.js.map +0 -1
- package/es/actions/viewer2d-actions.js +0 -59
- package/es/actions/viewer2d-actions.js.map +0 -1
- package/es/actions/viewer3d-actions.js +0 -24
- package/es/actions/viewer3d-actions.js.map +0 -1
- package/es/catalog/areas/area/planner-element.js +0 -41
- package/es/catalog/areas/area/planner-element.js.map +0 -1
- package/es/catalog/areas/area/textures/ceramic-tile.jpg +0 -0
- package/es/catalog/areas/area/textures/grass.jpg +0 -0
- package/es/catalog/areas/area/textures/parquet.jpg +0 -0
- package/es/catalog/areas/area/textures/strand-porcelain.jpg +0 -0
- package/es/catalog/areas/area/textures/tile1.jpg +0 -0
- package/es/catalog/back.png +0 -0
- package/es/catalog/catalog.js +0 -278
- package/es/catalog/catalog.js.map +0 -1
- package/es/catalog/doors.png +0 -0
- package/es/catalog/doorways.png +0 -0
- package/es/catalog/envMap/nx.hdr +0 -0
- package/es/catalog/envMap/ny.hdr +0 -0
- package/es/catalog/envMap/nz.hdr +0 -0
- package/es/catalog/envMap/px.hdr +0 -0
- package/es/catalog/envMap/py.hdr +0 -0
- package/es/catalog/envMap/pz.hdr +0 -0
- package/es/catalog/factories/area-factory-3d.js +0 -183
- package/es/catalog/factories/area-factory-3d.js.map +0 -1
- package/es/catalog/factories/area-factory.js +0 -82
- package/es/catalog/factories/area-factory.js.map +0 -1
- package/es/catalog/factories/export.js +0 -8
- package/es/catalog/factories/export.js.map +0 -1
- package/es/catalog/factories/wall-factory-3d.js +0 -203
- package/es/catalog/factories/wall-factory-3d.js.map +0 -1
- package/es/catalog/factories/wall-factory.js +0 -269
- package/es/catalog/factories/wall-factory.js.map +0 -1
- package/es/catalog/holes/door-closet/planner-element.js +0 -223
- package/es/catalog/holes/door-closet/planner-element.js.map +0 -1
- package/es/catalog/holes/door-double/door_double.png +0 -0
- package/es/catalog/holes/door-double/planner-element.js +0 -316
- package/es/catalog/holes/door-double/planner-element.js.map +0 -1
- package/es/catalog/holes/door-exterior/planner-element.js +0 -216
- package/es/catalog/holes/door-exterior/planner-element.js.map +0 -1
- package/es/catalog/holes/door-interior/planner-element.js +0 -228
- package/es/catalog/holes/door-interior/planner-element.js.map +0 -1
- package/es/catalog/holes/door-panic/panicDoor.png +0 -0
- package/es/catalog/holes/door-panic/planner-element.js +0 -504
- package/es/catalog/holes/door-panic/planner-element.js.map +0 -1
- package/es/catalog/holes/door-panic-double/panicDoorDouble.png +0 -0
- package/es/catalog/holes/door-panic-double/planner-element.js +0 -464
- package/es/catalog/holes/door-panic-double/planner-element.js.map +0 -1
- package/es/catalog/holes/door-sliding/planner-element.js +0 -226
- package/es/catalog/holes/door-sliding/planner-element.js.map +0 -1
- package/es/catalog/holes/doorway-framed/planner-element.js +0 -146
- package/es/catalog/holes/doorway-framed/planner-element.js.map +0 -1
- package/es/catalog/holes/doorway-frameless/planner-element.js +0 -105
- package/es/catalog/holes/doorway-frameless/planner-element.js.map +0 -1
- package/es/catalog/holes/gate/gate.jpg +0 -0
- package/es/catalog/holes/window-clear/planner-element.js +0 -167
- package/es/catalog/holes/window-clear/planner-element.js.map +0 -1
- package/es/catalog/holes/window-clear/texture.png +0 -0
- package/es/catalog/holes/window-cross/planner-element.js +0 -166
- package/es/catalog/holes/window-cross/planner-element.js.map +0 -1
- package/es/catalog/holes/window-cross/texture.png +0 -0
- package/es/catalog/holes/window-double-hung/planner-element.js +0 -304
- package/es/catalog/holes/window-double-hung/planner-element.js.map +0 -1
- package/es/catalog/holes/window-double-hung/texture.png +0 -0
- package/es/catalog/holes/window-vertical/planner-element.js +0 -277
- package/es/catalog/holes/window-vertical/planner-element.js.map +0 -1
- package/es/catalog/holes/window-vertical/texture.png +0 -0
- package/es/catalog/lines/wall/planner-element.js +0 -71
- package/es/catalog/lines/wall/planner-element.js.map +0 -1
- package/es/catalog/lines/wall/textures/bricks-normal.jpg +0 -0
- package/es/catalog/lines/wall/textures/bricks-normal2.jpg +0 -0
- package/es/catalog/lines/wall/textures/bricks.jpg +0 -0
- package/es/catalog/lines/wall/textures/bricks2.jpg +0 -0
- package/es/catalog/lines/wall/textures/bricks3.jpg +0 -0
- package/es/catalog/lines/wall/textures/morden-normal.jpg +0 -0
- package/es/catalog/lines/wall/textures/morden.jpg +0 -0
- package/es/catalog/lines/wall/textures/painted-normal.jpg +0 -0
- package/es/catalog/lines/wall/textures/painted.jpg +0 -0
- package/es/catalog/lines/wall/textures/plaster-normal.jpg +0 -0
- package/es/catalog/lines/wall/textures/plaster.jpg +0 -0
- package/es/catalog/lines/wall/wall.png +0 -0
- package/es/catalog/molding/molding-dcm/planner-element.js +0 -30
- package/es/catalog/molding/molding-dcm/planner-element.js.map +0 -1
- package/es/catalog/molding/molding-dcm/texture.png +0 -0
- package/es/catalog/molding/molding-fbm/planner-element.js +0 -30
- package/es/catalog/molding/molding-fbm/planner-element.js.map +0 -1
- package/es/catalog/molding/molding-fbm/texture.png +0 -0
- package/es/catalog/molding/molding-lrm/planner-element.js +0 -30
- package/es/catalog/molding/molding-lrm/planner-element.js.map +0 -1
- package/es/catalog/molding/molding-lrm/texture.png +0 -0
- package/es/catalog/properties/export.js +0 -22
- package/es/catalog/properties/export.js.map +0 -1
- package/es/catalog/properties/property-checkbox.js +0 -72
- package/es/catalog/properties/property-checkbox.js.map +0 -1
- package/es/catalog/properties/property-color.js +0 -40
- package/es/catalog/properties/property-color.js.map +0 -1
- package/es/catalog/properties/property-enum.js +0 -56
- package/es/catalog/properties/property-enum.js.map +0 -1
- package/es/catalog/properties/property-hidden.js +0 -20
- package/es/catalog/properties/property-hidden.js.map +0 -1
- package/es/catalog/properties/property-lenght-measure.js +0 -102
- package/es/catalog/properties/property-lenght-measure.js.map +0 -1
- package/es/catalog/properties/property-length-measure.js +0 -86
- package/es/catalog/properties/property-length-measure.js.map +0 -1
- package/es/catalog/properties/property-length-measure_hole.js +0 -102
- package/es/catalog/properties/property-length-measure_hole.js.map +0 -1
- package/es/catalog/properties/property-number.js +0 -49
- package/es/catalog/properties/property-number.js.map +0 -1
- package/es/catalog/properties/property-read-only.js +0 -27
- package/es/catalog/properties/property-read-only.js.map +0 -1
- package/es/catalog/properties/property-string.js +0 -49
- package/es/catalog/properties/property-string.js.map +0 -1
- package/es/catalog/properties/property-toggle.js +0 -40
- package/es/catalog/properties/property-toggle.js.map +0 -1
- package/es/catalog/properties/shared-property-style.js +0 -15
- package/es/catalog/properties/shared-property-style.js.map +0 -1
- package/es/catalog/utils/FuseUtils.js +0 -83
- package/es/catalog/utils/FuseUtils.js.map +0 -1
- package/es/catalog/utils/exporter.js +0 -149
- package/es/catalog/utils/exporter.js.map +0 -1
- package/es/catalog/utils/geom-utils.js +0 -190
- package/es/catalog/utils/geom-utils.js.map +0 -1
- package/es/catalog/utils/item-loader.js +0 -1522
- package/es/catalog/utils/item-loader.js.map +0 -1
- package/es/catalog/utils/load-obj.js +0 -92
- package/es/catalog/utils/load-obj.js.map +0 -1
- package/es/catalog/utils/mtl-loader.js +0 -358
- package/es/catalog/utils/mtl-loader.js.map +0 -1
- package/es/catalog/utils/obj-loader.js +0 -477
- package/es/catalog/utils/obj-loader.js.map +0 -1
- package/es/catalog/windows.png +0 -0
- package/es/class/FuseUtils.js +0 -83
- package/es/class/FuseUtils.js.map +0 -1
- package/es/class/area.js +0 -146
- package/es/class/area.js.map +0 -1
- package/es/class/export.js +0 -25
- package/es/class/export.js.map +0 -1
- package/es/class/group.js +0 -441
- package/es/class/group.js.map +0 -1
- package/es/class/guide.js +0 -63
- package/es/class/guide.js.map +0 -1
- package/es/class/hole.js +0 -931
- package/es/class/hole.js.map +0 -1
- package/es/class/item.js +0 -1888
- package/es/class/item.js.map +0 -1
- package/es/class/layer.js +0 -668
- package/es/class/layer.js.map +0 -1
- package/es/class/line.js +0 -1290
- package/es/class/line.js.map +0 -1
- package/es/class/project.js +0 -823
- package/es/class/project.js.map +0 -1
- package/es/class/vertex.js +0 -267
- package/es/class/vertex.js.map +0 -1
- package/es/components/atoms/Snackbar/index.js +0 -50
- package/es/components/atoms/Snackbar/index.js.map +0 -1
- package/es/components/atoms/radio-button/index.js +0 -26
- package/es/components/atoms/radio-button/index.js.map +0 -1
- package/es/components/atoms/radio-button/styles.js +0 -5
- package/es/components/atoms/radio-button/styles.js.map +0 -1
- package/es/components/button/MainButton.js +0 -92
- package/es/components/button/MainButton.js.map +0 -1
- package/es/components/button/ToggleMeasureButton.js +0 -56
- package/es/components/button/ToggleMeasureButton.js.map +0 -1
- package/es/components/catalog-view/catalog-breadcrumb.js +0 -53
- package/es/components/catalog-view/catalog-breadcrumb.js.map +0 -1
- package/es/components/catalog-view/catalog-item.js +0 -226
- package/es/components/catalog-view/catalog-item.js.map +0 -1
- package/es/components/catalog-view/catalog-list.js +0 -182
- package/es/components/catalog-view/catalog-list.js.map +0 -1
- package/es/components/catalog-view/catalog-page-item.js +0 -130
- package/es/components/catalog-view/catalog-page-item.js.map +0 -1
- package/es/components/catalog-view/catalog-turn-back-page-item.js +0 -106
- package/es/components/catalog-view/catalog-turn-back-page-item.js.map +0 -1
- package/es/components/configurator/custom-configurator.js +0 -94
- package/es/components/configurator/custom-configurator.js.map +0 -1
- package/es/components/configurator/project-configurator.js +0 -131
- package/es/components/configurator/project-configurator.js.map +0 -1
- package/es/components/content.js +0 -123
- package/es/components/content.js.map +0 -1
- package/es/components/export.js +0 -24
- package/es/components/export.js.map +0 -1
- package/es/components/firstsetting/button/styles.js +0 -27
- package/es/components/firstsetting/button/styles.js.map +0 -1
- package/es/components/firstsetting/export.js +0 -9
- package/es/components/firstsetting/export.js.map +0 -1
- package/es/components/firstsetting/firstsetting-content-button.js +0 -217
- package/es/components/firstsetting/firstsetting-content-button.js.map +0 -1
- package/es/components/firstsetting/firstsetting-toggle-button.js +0 -126
- package/es/components/firstsetting/firstsetting-toggle-button.js.map +0 -1
- package/es/components/firstsetting/firstsetting.js +0 -626
- package/es/components/firstsetting/firstsetting.js.map +0 -1
- package/es/components/footerbar/button/ControlButton.js +0 -72
- package/es/components/footerbar/button/ControlButton.js.map +0 -1
- package/es/components/footerbar/button/DirectionButton.js +0 -69
- package/es/components/footerbar/button/DirectionButton.js.map +0 -1
- package/es/components/footerbar/button/DirectionPanSpinButton.js +0 -50
- package/es/components/footerbar/button/DirectionPanSpinButton.js.map +0 -1
- package/es/components/footerbar/button/ToggleButton.js +0 -76
- package/es/components/footerbar/button/ToggleButton.js.map +0 -1
- package/es/components/footerbar/button/ToggleConvertButton.js +0 -73
- package/es/components/footerbar/button/ToggleConvertButton.js.map +0 -1
- package/es/components/footerbar/button/ToggleMeasureButton.js +0 -52
- package/es/components/footerbar/button/ToggleMeasureButton.js.map +0 -1
- package/es/components/footerbar/button/styles.js +0 -22
- package/es/components/footerbar/button/styles.js.map +0 -1
- package/es/components/footerbar/export.js +0 -9
- package/es/components/footerbar/export.js.map +0 -1
- package/es/components/footerbar/footer-content-button.js +0 -217
- package/es/components/footerbar/footer-content-button.js.map +0 -1
- package/es/components/footerbar/footer-toggle-button.js +0 -126
- package/es/components/footerbar/footer-toggle-button.js.map +0 -1
- package/es/components/footerbar/footerbar.js +0 -801
- package/es/components/footerbar/footerbar.js.map +0 -1
- package/es/components/footerbar/styles.js +0 -34
- package/es/components/footerbar/styles.js.map +0 -1
- package/es/components/header/button/MenuButton.js +0 -70
- package/es/components/header/button/MenuButton.js.map +0 -1
- package/es/components/header/button/SaveButton.js +0 -48
- package/es/components/header/button/SaveButton.js.map +0 -1
- package/es/components/header/button/styles.js +0 -59
- package/es/components/header/button/styles.js.map +0 -1
- package/es/components/header/export.js +0 -5
- package/es/components/header/export.js.map +0 -1
- package/es/components/header/header.js +0 -550
- package/es/components/header/header.js.map +0 -1
- package/es/components/header/header.style.css +0 -47
- package/es/components/header/styles.js +0 -41
- package/es/components/header/styles.js.map +0 -1
- package/es/components/login/Login.js +0 -86
- package/es/components/login/Login.js.map +0 -1
- package/es/components/login/LoginForm/index.js +0 -132
- package/es/components/login/LoginForm/index.js.map +0 -1
- package/es/components/login/Register.js +0 -96
- package/es/components/login/Register.js.map +0 -1
- package/es/components/login/RegisterForm/index.js +0 -230
- package/es/components/login/RegisterForm/index.js.map +0 -1
- package/es/components/login/jwtService.js +0 -232
- package/es/components/login/jwtService.js.map +0 -1
- package/es/components/login/style.css +0 -158
- package/es/components/login/style.scss +0 -260
- package/es/components/molecules/slider/index.js +0 -13
- package/es/components/molecules/slider/index.js.map +0 -1
- package/es/components/molecules/slider/styles.js +0 -2
- package/es/components/molecules/slider/styles.js.map +0 -1
- package/es/components/molecules/slider/styles.scss +0 -3
- package/es/components/myprojects/export.js +0 -5
- package/es/components/myprojects/export.js.map +0 -1
- package/es/components/myprojects/index.js +0 -446
- package/es/components/myprojects/index.js.map +0 -1
- package/es/components/myprojects/styles.js +0 -24
- package/es/components/myprojects/styles.js.map +0 -1
- package/es/components/sidebar/custom-accordion.js +0 -38
- package/es/components/sidebar/custom-accordion.js.map +0 -1
- package/es/components/sidebar/export.js +0 -14
- package/es/components/sidebar/export.js.map +0 -1
- package/es/components/sidebar/panel-element-editor/attributes-editor/attributes-editor.js +0 -65
- package/es/components/sidebar/panel-element-editor/attributes-editor/attributes-editor.js.map +0 -1
- package/es/components/sidebar/panel-element-editor/attributes-editor/confirm-popup.js +0 -116
- package/es/components/sidebar/panel-element-editor/attributes-editor/confirm-popup.js.map +0 -1
- package/es/components/sidebar/panel-element-editor/attributes-editor/hole-attributes-editor.js +0 -126
- package/es/components/sidebar/panel-element-editor/attributes-editor/hole-attributes-editor.js.map +0 -1
- package/es/components/sidebar/panel-element-editor/attributes-editor/item-attributes-editor.js +0 -251
- package/es/components/sidebar/panel-element-editor/attributes-editor/item-attributes-editor.js.map +0 -1
- package/es/components/sidebar/panel-element-editor/attributes-editor/line-attributes-editor.js +0 -75
- package/es/components/sidebar/panel-element-editor/attributes-editor/line-attributes-editor.js.map +0 -1
- package/es/components/sidebar/panel-element-editor/element-editor.js +0 -878
- package/es/components/sidebar/panel-element-editor/element-editor.js.map +0 -1
- package/es/components/sidebar/panel-element-editor/multi-elements-editor.js +0 -2
- package/es/components/sidebar/panel-element-editor/multi-elements-editor.js.map +0 -1
- package/es/components/sidebar/panel-element-editor/panel-element-editor.js +0 -49
- package/es/components/sidebar/panel-element-editor/panel-element-editor.js.map +0 -1
- package/es/components/sidebar/panel-element-editor/panel-multi-elements-editor.js +0 -118
- package/es/components/sidebar/panel-element-editor/panel-multi-elements-editor.js.map +0 -1
- package/es/components/sidebar/panel-group-editor.js +0 -211
- package/es/components/sidebar/panel-group-editor.js.map +0 -1
- package/es/components/sidebar/panel-groups.js +0 -267
- package/es/components/sidebar/panel-groups.js.map +0 -1
- package/es/components/sidebar/panel-guides.js +0 -185
- package/es/components/sidebar/panel-guides.js.map +0 -1
- package/es/components/sidebar/panel-layer-elements.js +0 -251
- package/es/components/sidebar/panel-layer-elements.js.map +0 -1
- package/es/components/sidebar/panel-layers.js +0 -340
- package/es/components/sidebar/panel-layers.js.map +0 -1
- package/es/components/sidebar/panel.js +0 -103
- package/es/components/sidebar/panel.js.map +0 -1
- package/es/components/sidebar/sidebar.js +0 -109
- package/es/components/sidebar/sidebar.js.map +0 -1
- package/es/components/sidebar/toolbar-panel.js +0 -164
- package/es/components/sidebar/toolbar-panel.js.map +0 -1
- package/es/components/sign/export.js +0 -6
- package/es/components/sign/export.js.map +0 -1
- package/es/components/sign/main/index.js +0 -560
- package/es/components/sign/main/index.js.map +0 -1
- package/es/components/sign/main/styles.js +0 -20
- package/es/components/sign/main/styles.js.map +0 -1
- package/es/components/style/button.js +0 -114
- package/es/components/style/button.js.map +0 -1
- package/es/components/style/cancel-button.js +0 -23
- package/es/components/style/cancel-button.js.map +0 -1
- package/es/components/style/content-container.js +0 -34
- package/es/components/style/content-container.js.map +0 -1
- package/es/components/style/content-title.js +0 -30
- package/es/components/style/content-title.js.map +0 -1
- package/es/components/style/delete-button.js +0 -26
- package/es/components/style/delete-button.js.map +0 -1
- package/es/components/style/export.js +0 -32
- package/es/components/style/export.js.map +0 -1
- package/es/components/style/form-block.js +0 -25
- package/es/components/style/form-block.js.map +0 -1
- package/es/components/style/form-color-input.js +0 -28
- package/es/components/style/form-color-input.js.map +0 -1
- package/es/components/style/form-label.js +0 -27
- package/es/components/style/form-label.js.map +0 -1
- package/es/components/style/form-number-input.js +0 -190
- package/es/components/style/form-number-input.js.map +0 -1
- package/es/components/style/form-number-input_2.js +0 -207
- package/es/components/style/form-number-input_2.js.map +0 -1
- package/es/components/style/form-select.js +0 -21
- package/es/components/style/form-select.js.map +0 -1
- package/es/components/style/form-slider.js +0 -46
- package/es/components/style/form-slider.js.map +0 -1
- package/es/components/style/form-submit-button.js +0 -27
- package/es/components/style/form-submit-button.js.map +0 -1
- package/es/components/style/form-text-input.js +0 -77
- package/es/components/style/form-text-input.js.map +0 -1
- package/es/components/toolbar/button/ControlButton.js +0 -69
- package/es/components/toolbar/button/ControlButton.js.map +0 -1
- package/es/components/toolbar/button/DirectionButton.js +0 -50
- package/es/components/toolbar/button/DirectionButton.js.map +0 -1
- package/es/components/toolbar/button/RightButton.js +0 -133
- package/es/components/toolbar/button/RightButton.js.map +0 -1
- package/es/components/toolbar/button/ToggleButton.js +0 -59
- package/es/components/toolbar/button/ToggleButton.js.map +0 -1
- package/es/components/toolbar/button/index.js +0 -88
- package/es/components/toolbar/button/index.js.map +0 -1
- package/es/components/toolbar/button/styles.js +0 -14
- package/es/components/toolbar/button/styles.js.map +0 -1
- package/es/components/toolbar/components/DoorStyleMenu.js +0 -105
- package/es/components/toolbar/components/DoorStyleMenu.js.map +0 -1
- package/es/components/toolbar/components/Pricing.js +0 -101
- package/es/components/toolbar/components/Pricing.js.map +0 -1
- package/es/components/toolbar/components/ReviewForQuote.js +0 -476
- package/es/components/toolbar/components/ReviewForQuote.js.map +0 -1
- package/es/components/toolbar/export.js +0 -14
- package/es/components/toolbar/export.js.map +0 -1
- package/es/components/toolbar/main/Alert.js +0 -125
- package/es/components/toolbar/main/Alert.js.map +0 -1
- package/es/components/toolbar/main/TakePictureModal.js +0 -100
- package/es/components/toolbar/main/TakePictureModal.js.map +0 -1
- package/es/components/toolbar/main/confirm-popup.js +0 -88
- package/es/components/toolbar/main/confirm-popup.js.map +0 -1
- package/es/components/toolbar/main/index.js +0 -4612
- package/es/components/toolbar/main/index.js.map +0 -1
- package/es/components/toolbar/main/lShaped.json +0 -311
- package/es/components/toolbar/main/longNarrow.json +0 -238
- package/es/components/toolbar/main/myComponents.js +0 -118
- package/es/components/toolbar/main/myComponents.js.map +0 -1
- package/es/components/toolbar/main/oRectangle.json +0 -220
- package/es/components/toolbar/main/rectangle.json +0 -238
- package/es/components/toolbar/main/style.css +0 -107
- package/es/components/toolbar/main/styles.js +0 -64
- package/es/components/toolbar/main/styles.js.map +0 -1
- package/es/components/toolbar/plugin-item.js +0 -150
- package/es/components/toolbar/plugin-item.js.map +0 -1
- package/es/components/toolbar/popup/appliance/appliance-category/index.js +0 -77
- package/es/components/toolbar/popup/appliance/appliance-category/index.js.map +0 -1
- package/es/components/toolbar/popup/appliance/choose-appliance/index.js +0 -76
- package/es/components/toolbar/popup/appliance/choose-appliance/index.js.map +0 -1
- package/es/components/toolbar/popup/appliance/index.js +0 -81
- package/es/components/toolbar/popup/appliance/index.js.map +0 -1
- package/es/components/toolbar/popup/autosaveprompt/index.js +0 -91
- package/es/components/toolbar/popup/autosaveprompt/index.js.map +0 -1
- package/es/components/toolbar/popup/autosaveprompt/styles.css +0 -64
- package/es/components/toolbar/popup/autosaveprompt/styles.js +0 -9
- package/es/components/toolbar/popup/autosaveprompt/styles.js.map +0 -1
- package/es/components/toolbar/popup/cabinet/cabinet-category/index.js +0 -77
- package/es/components/toolbar/popup/cabinet/cabinet-category/index.js.map +0 -1
- package/es/components/toolbar/popup/cabinet/choose-product/index.js +0 -98
- package/es/components/toolbar/popup/cabinet/choose-product/index.js.map +0 -1
- package/es/components/toolbar/popup/cabinet/index.js +0 -83
- package/es/components/toolbar/popup/cabinet/index.js.map +0 -1
- package/es/components/toolbar/popup/doorStyle/choose-style/index.js +0 -50
- package/es/components/toolbar/popup/doorStyle/choose-style/index.js.map +0 -1
- package/es/components/toolbar/popup/doorStyle/index.js +0 -61
- package/es/components/toolbar/popup/doorStyle/index.js.map +0 -1
- package/es/components/toolbar/popup/doorStyle/style-category/index.js +0 -143
- package/es/components/toolbar/popup/doorStyle/style-category/index.js.map +0 -1
- package/es/components/toolbar/popup/downloadsummary/downloadSummaryContext.js +0 -3
- package/es/components/toolbar/popup/downloadsummary/downloadSummaryContext.js.map +0 -1
- package/es/components/toolbar/popup/downloadsummary/downloadSummaryTemp.js +0 -119
- package/es/components/toolbar/popup/downloadsummary/downloadSummaryTemp.js.map +0 -1
- package/es/components/toolbar/popup/downloadsummary/index.js +0 -564
- package/es/components/toolbar/popup/downloadsummary/index.js.map +0 -1
- package/es/components/toolbar/popup/downloadsummary/show2D/show2DView.js +0 -51
- package/es/components/toolbar/popup/downloadsummary/show2D/show2DView.js.map +0 -1
- package/es/components/toolbar/popup/downloadsummary/show2D/viewer2DDownLoad.js +0 -191
- package/es/components/toolbar/popup/downloadsummary/show2D/viewer2DDownLoad.js.map +0 -1
- package/es/components/toolbar/popup/downloadsummary/show3D/show3DView.js +0 -245
- package/es/components/toolbar/popup/downloadsummary/show3D/show3DView.js.map +0 -1
- package/es/components/toolbar/popup/downloadsummary/show3D/viewer3DDownLoad.js +0 -1758
- package/es/components/toolbar/popup/downloadsummary/show3D/viewer3DDownLoad.js.map +0 -1
- package/es/components/toolbar/popup/downloadsummary/showCabinetInfo.js +0 -87
- package/es/components/toolbar/popup/downloadsummary/showCabinetInfo.js.map +0 -1
- package/es/components/toolbar/popup/downloadsummary/showElevation/showElevationView.js +0 -116
- package/es/components/toolbar/popup/downloadsummary/showElevation/showElevationView.js.map +0 -1
- package/es/components/toolbar/popup/downloadsummary/showElevation/viewer3DElevationDownload.js +0 -1710
- package/es/components/toolbar/popup/downloadsummary/showElevation/viewer3DElevationDownload.js.map +0 -1
- package/es/components/toolbar/popup/downloadsummary/showElevation/viewerElevationDownload.js +0 -175
- package/es/components/toolbar/popup/downloadsummary/showElevation/viewerElevationDownload.js.map +0 -1
- package/es/components/toolbar/popup/downloadsummary/showWarranty.js +0 -106
- package/es/components/toolbar/popup/downloadsummary/showWarranty.js.map +0 -1
- package/es/components/toolbar/popup/downloadsummary/styles.css +0 -177
- package/es/components/toolbar/popup/downloadsummary/styles.js +0 -40
- package/es/components/toolbar/popup/downloadsummary/styles.js.map +0 -1
- package/es/components/toolbar/popup/finishingtouch/category/index.js +0 -35
- package/es/components/toolbar/popup/finishingtouch/category/index.js.map +0 -1
- package/es/components/toolbar/popup/finishingtouch/index.js +0 -47
- package/es/components/toolbar/popup/finishingtouch/index.js.map +0 -1
- package/es/components/toolbar/popup/finishingtouch/material-edit.js +0 -156
- package/es/components/toolbar/popup/finishingtouch/material-edit.js.map +0 -1
- package/es/components/toolbar/popup/finishingtouch/product/index.js +0 -56
- package/es/components/toolbar/popup/finishingtouch/product/index.js.map +0 -1
- package/es/components/toolbar/popup/floorplan/choose-floor/confirm-popup.js +0 -116
- package/es/components/toolbar/popup/floorplan/choose-floor/confirm-popup.js.map +0 -1
- package/es/components/toolbar/popup/floorplan/choose-floor/index.js +0 -246
- package/es/components/toolbar/popup/floorplan/choose-floor/index.js.map +0 -1
- package/es/components/toolbar/popup/floorplan/choose-floor/lShaped.json +0 -311
- package/es/components/toolbar/popup/floorplan/choose-floor/longNarrow.json +0 -238
- package/es/components/toolbar/popup/floorplan/choose-floor/oRectangle.json +0 -220
- package/es/components/toolbar/popup/floorplan/choose-floor/rectangle.json +0 -238
- package/es/components/toolbar/popup/floorplan/choose-floor/styles.js +0 -11
- package/es/components/toolbar/popup/floorplan/choose-floor/styles.js.map +0 -1
- package/es/components/toolbar/popup/floorplan/floor-category/index.js +0 -90
- package/es/components/toolbar/popup/floorplan/floor-category/index.js.map +0 -1
- package/es/components/toolbar/popup/floorplan/index.js +0 -49
- package/es/components/toolbar/popup/floorplan/index.js.map +0 -1
- package/es/components/toolbar/popup/index.js +0 -188
- package/es/components/toolbar/popup/index.js.map +0 -1
- package/es/components/toolbar/popup/newproject/index.js +0 -67
- package/es/components/toolbar/popup/newproject/index.js.map +0 -1
- package/es/components/toolbar/popup/newproject/styles.css +0 -64
- package/es/components/toolbar/popup/newproject/styles.js +0 -9
- package/es/components/toolbar/popup/newproject/styles.js.map +0 -1
- package/es/components/toolbar/popup/product/appliance.js +0 -65
- package/es/components/toolbar/popup/product/appliance.js.map +0 -1
- package/es/components/toolbar/popup/product/cabinetproduct.js +0 -25
- package/es/components/toolbar/popup/product/cabinetproduct.js.map +0 -1
- package/es/components/toolbar/popup/product/doorstyle.js +0 -50
- package/es/components/toolbar/popup/product/doorstyle.js.map +0 -1
- package/es/components/toolbar/popup/product/doorstyleproduct.js +0 -51
- package/es/components/toolbar/popup/product/doorstyleproduct.js.map +0 -1
- package/es/components/toolbar/popup/product/floor.js +0 -52
- package/es/components/toolbar/popup/product/floor.js.map +0 -1
- package/es/components/toolbar/popup/product/floorproduct.js +0 -61
- package/es/components/toolbar/popup/product/floorproduct.js.map +0 -1
- package/es/components/toolbar/popup/product/index.js +0 -52
- package/es/components/toolbar/popup/product/index.js.map +0 -1
- package/es/components/toolbar/popup/product/primary.js +0 -63
- package/es/components/toolbar/popup/product/primary.js.map +0 -1
- package/es/components/toolbar/popup/product/productline.js +0 -120
- package/es/components/toolbar/popup/product/productline.js.map +0 -1
- package/es/components/toolbar/popup/product/reviewItem.js +0 -338
- package/es/components/toolbar/popup/product/reviewItem.js.map +0 -1
- package/es/components/toolbar/popup/product/reviewMolding.js +0 -282
- package/es/components/toolbar/popup/product/reviewMolding.js.map +0 -1
- package/es/components/toolbar/popup/product/style.css +0 -54
- package/es/components/toolbar/popup/product/styles.js +0 -71
- package/es/components/toolbar/popup/product/styles.js.map +0 -1
- package/es/components/toolbar/popup/savedesign/FullPictureForm.js +0 -161
- package/es/components/toolbar/popup/savedesign/FullPictureForm.js.map +0 -1
- package/es/components/toolbar/popup/savedesign/index.js +0 -508
- package/es/components/toolbar/popup/savedesign/index.js.map +0 -1
- package/es/components/toolbar/popup/savedesign/savedesign.style.css +0 -16
- package/es/components/toolbar/popup/savedesign/styles.js +0 -19
- package/es/components/toolbar/popup/savedesign/styles.js.map +0 -1
- package/es/components/toolbar/popup/setDoorStyleOption/index.js +0 -57
- package/es/components/toolbar/popup/setDoorStyleOption/index.js.map +0 -1
- package/es/components/toolbar/popup/styles.js +0 -98
- package/es/components/toolbar/popup/styles.js.map +0 -1
- package/es/components/toolbar/popup/submitforquote/AddToCartOptions.js +0 -157
- package/es/components/toolbar/popup/submitforquote/AddToCartOptions.js.map +0 -1
- package/es/components/toolbar/popup/submitforquote/CustomerRequestsForm.js +0 -85
- package/es/components/toolbar/popup/submitforquote/CustomerRequestsForm.js.map +0 -1
- package/es/components/toolbar/popup/submitforquote/SkipDesignerReview.js +0 -36
- package/es/components/toolbar/popup/submitforquote/SkipDesignerReview.js.map +0 -1
- package/es/components/toolbar/popup/submitforquote/StepDots.js +0 -33
- package/es/components/toolbar/popup/submitforquote/StepDots.js.map +0 -1
- package/es/components/toolbar/popup/submitforquote/cart-choice.js +0 -132
- package/es/components/toolbar/popup/submitforquote/cart-choice.js.map +0 -1
- package/es/components/toolbar/popup/submitforquote/doorstyle-menus.js +0 -43
- package/es/components/toolbar/popup/submitforquote/doorstyle-menus.js.map +0 -1
- package/es/components/toolbar/popup/submitforquote/index.js +0 -690
- package/es/components/toolbar/popup/submitforquote/index.js.map +0 -1
- package/es/components/toolbar/popup/submitforquote/styles.css +0 -105
- package/es/components/toolbar/popup/submitforquote/styles.js +0 -31
- package/es/components/toolbar/popup/submitforquote/styles.js.map +0 -1
- package/es/components/toolbar/popup/submitprompt/index.js +0 -71
- package/es/components/toolbar/popup/submitprompt/index.js.map +0 -1
- package/es/components/toolbar/popup/submitprompt/styles.css +0 -64
- package/es/components/toolbar/popup/submitprompt/styles.js +0 -9
- package/es/components/toolbar/popup/submitprompt/styles.js.map +0 -1
- package/es/components/toolbar/toolbar-button.js +0 -105
- package/es/components/toolbar/toolbar-button.js.map +0 -1
- package/es/components/toolbar/toolbar-load-button.js +0 -29
- package/es/components/toolbar/toolbar-load-button.js.map +0 -1
- package/es/components/toolbar/toolbar-save-button.js +0 -27
- package/es/components/toolbar/toolbar-save-button.js.map +0 -1
- package/es/components/tutorial-view/Modal.js +0 -498
- package/es/components/tutorial-view/Modal.js.map +0 -1
- package/es/components/tutorial-view/style.css +0 -111
- package/es/components/tutorial-view/styles.js +0 -6
- package/es/components/tutorial-view/styles.js.map +0 -1
- package/es/components/viewer2d/area.js +0 -83
- package/es/components/viewer2d/area.js.map +0 -1
- package/es/components/viewer2d/export.js +0 -32
- package/es/components/viewer2d/export.js.map +0 -1
- package/es/components/viewer2d/grids/grid-horizontal-streak.js +0 -38
- package/es/components/viewer2d/grids/grid-horizontal-streak.js.map +0 -1
- package/es/components/viewer2d/grids/grid-streak.js +0 -38
- package/es/components/viewer2d/grids/grid-streak.js.map +0 -1
- package/es/components/viewer2d/grids/grid-vertical-streak.js +0 -38
- package/es/components/viewer2d/grids/grid-vertical-streak.js.map +0 -1
- package/es/components/viewer2d/grids/grids.js +0 -36
- package/es/components/viewer2d/grids/grids.js.map +0 -1
- package/es/components/viewer2d/group.js +0 -54
- package/es/components/viewer2d/group.js.map +0 -1
- package/es/components/viewer2d/item.js +0 -514
- package/es/components/viewer2d/item.js.map +0 -1
- package/es/components/viewer2d/layer.js +0 -165
- package/es/components/viewer2d/layer.js.map +0 -1
- package/es/components/viewer2d/line.js +0 -889
- package/es/components/viewer2d/line.js.map +0 -1
- package/es/components/viewer2d/ruler.js +0 -101
- package/es/components/viewer2d/ruler.js.map +0 -1
- package/es/components/viewer2d/rulerDist.js +0 -147
- package/es/components/viewer2d/rulerDist.js.map +0 -1
- package/es/components/viewer2d/rulerX.js +0 -152
- package/es/components/viewer2d/rulerX.js.map +0 -1
- package/es/components/viewer2d/rulerY.js +0 -154
- package/es/components/viewer2d/rulerY.js.map +0 -1
- package/es/components/viewer2d/scene.js +0 -141
- package/es/components/viewer2d/scene.js.map +0 -1
- package/es/components/viewer2d/snap.js +0 -75
- package/es/components/viewer2d/snap.js.map +0 -1
- package/es/components/viewer2d/state.js +0 -79
- package/es/components/viewer2d/state.js.map +0 -1
- package/es/components/viewer2d/utils.js +0 -163
- package/es/components/viewer2d/utils.js.map +0 -1
- package/es/components/viewer2d/vertex.js +0 -67
- package/es/components/viewer2d/vertex.js.map +0 -1
- package/es/components/viewer2d/viewer2d.js +0 -1402
- package/es/components/viewer2d/viewer2d.js.map +0 -1
- package/es/components/viewer3d/camera-controls-module/camera-controls.module.js +0 -2593
- package/es/components/viewer3d/camera-controls-module/camera-controls.module.js.map +0 -1
- package/es/components/viewer3d/dcm.js +0 -402
- package/es/components/viewer3d/dcm.js.map +0 -1
- package/es/components/viewer3d/fbm.js +0 -415
- package/es/components/viewer3d/fbm.js.map +0 -1
- package/es/components/viewer3d/front3D.js +0 -67
- package/es/components/viewer3d/front3D.js.map +0 -1
- package/es/components/viewer3d/grid-creator.js +0 -26
- package/es/components/viewer3d/grid-creator.js.map +0 -1
- package/es/components/viewer3d/grids/grid-horizontal-streak.js +0 -37
- package/es/components/viewer3d/grids/grid-horizontal-streak.js.map +0 -1
- package/es/components/viewer3d/grids/grid-streak.js +0 -28
- package/es/components/viewer3d/grids/grid-streak.js.map +0 -1
- package/es/components/viewer3d/grids/grid-vertical-streak.js +0 -37
- package/es/components/viewer3d/grids/grid-vertical-streak.js.map +0 -1
- package/es/components/viewer3d/libs/first-person-controls.js +0 -68
- package/es/components/viewer3d/libs/first-person-controls.js.map +0 -1
- package/es/components/viewer3d/libs/helvetiker_regular.typeface.js +0 -1282
- package/es/components/viewer3d/libs/helvetiker_regular.typeface.js.map +0 -1
- package/es/components/viewer3d/libs/mtl-loader.js +0 -358
- package/es/components/viewer3d/libs/mtl-loader.js.map +0 -1
- package/es/components/viewer3d/libs/obj-loader.js +0 -463
- package/es/components/viewer3d/libs/obj-loader.js.map +0 -1
- package/es/components/viewer3d/libs/orbit-controls.js +0 -699
- package/es/components/viewer3d/libs/orbit-controls.js.map +0 -1
- package/es/components/viewer3d/libs/pointer-lock-controls.js +0 -46
- package/es/components/viewer3d/libs/pointer-lock-controls.js.map +0 -1
- package/es/components/viewer3d/lrm.js +0 -306
- package/es/components/viewer3d/lrm.js.map +0 -1
- package/es/components/viewer3d/model.js +0 -709
- package/es/components/viewer3d/model.js.map +0 -1
- package/es/components/viewer3d/pointer-lock-navigation.js +0 -116
- package/es/components/viewer3d/pointer-lock-navigation.js.map +0 -1
- package/es/components/viewer3d/ruler-utils/itemRect.js +0 -62
- package/es/components/viewer3d/ruler-utils/itemRect.js.map +0 -1
- package/es/components/viewer3d/ruler-utils/layer3D.js +0 -496
- package/es/components/viewer3d/ruler-utils/layer3D.js.map +0 -1
- package/es/components/viewer3d/ruler-utils/ruler3D.js +0 -228
- package/es/components/viewer3d/ruler-utils/ruler3D.js.map +0 -1
- package/es/components/viewer3d/ruler-utils/scene3D.js +0 -62
- package/es/components/viewer3d/ruler-utils/scene3D.js.map +0 -1
- package/es/components/viewer3d/ruler-utils/state3D.js +0 -19
- package/es/components/viewer3d/ruler-utils/state3D.js.map +0 -1
- package/es/components/viewer3d/scene-creator.js +0 -3607
- package/es/components/viewer3d/scene-creator.js.map +0 -1
- package/es/components/viewer3d/three-memory-cleaner.js +0 -52
- package/es/components/viewer3d/three-memory-cleaner.js.map +0 -1
- package/es/components/viewer3d/viewer3d-first-person.js +0 -316
- package/es/components/viewer3d/viewer3d-first-person.js.map +0 -1
- package/es/components/viewer3d/viewer3d.js +0 -2504
- package/es/components/viewer3d/viewer3d.js.map +0 -1
- package/es/components/wizardstep/button/styles.js +0 -60
- package/es/components/wizardstep/button/styles.js.map +0 -1
- package/es/components/wizardstep/export.js +0 -5
- package/es/components/wizardstep/export.js.map +0 -1
- package/es/components/wizardstep/index.js +0 -971
- package/es/components/wizardstep/index.js.map +0 -1
- package/es/components/wizardstep/styles.js +0 -61
- package/es/components/wizardstep/styles.js.map +0 -1
- package/es/components/wizardstep/wizardstep-content-button.js +0 -217
- package/es/components/wizardstep/wizardstep-content-button.js.map +0 -1
- package/es/components/wizardstep/wizardstep-toggle-button.js +0 -126
- package/es/components/wizardstep/wizardstep-toggle-button.js.map +0 -1
- package/es/constants.js +0 -637
- package/es/constants.js.map +0 -1
- package/es/hooks/useCheckCart.js +0 -53
- package/es/hooks/useCheckCart.js.map +0 -1
- package/es/hooks/useGetPricesBySku.js +0 -74
- package/es/hooks/useGetPricesBySku.js.map +0 -1
- package/es/hooks/useValidateToken.js +0 -201
- package/es/hooks/useValidateToken.js.map +0 -1
- package/es/index.js +0 -17
- package/es/index.js.map +0 -1
- package/es/models.js +0 -511
- package/es/models.js.map +0 -1
- package/es/plugins/SVGLoader.js +0 -1413
- package/es/plugins/SVGLoader.js.map +0 -1
- package/es/plugins/autosave.js +0 -34
- package/es/plugins/autosave.js.map +0 -1
- package/es/plugins/console-debugger.js +0 -38
- package/es/plugins/console-debugger.js.map +0 -1
- package/es/plugins/export.js +0 -10
- package/es/plugins/export.js.map +0 -1
- package/es/plugins/keyboard.js +0 -102
- package/es/plugins/keyboard.js.map +0 -1
- package/es/reducers/areas-reducer.js +0 -13
- package/es/reducers/areas-reducer.js.map +0 -1
- package/es/reducers/export.js +0 -26
- package/es/reducers/export.js.map +0 -1
- package/es/reducers/groups-reducer.js +0 -39
- package/es/reducers/groups-reducer.js.map +0 -1
- package/es/reducers/holes-reducer.js +0 -63
- package/es/reducers/holes-reducer.js.map +0 -1
- package/es/reducers/items-reducer.js +0 -144
- package/es/reducers/items-reducer.js.map +0 -1
- package/es/reducers/lines-reducer.js +0 -46
- package/es/reducers/lines-reducer.js.map +0 -1
- package/es/reducers/project-reducer.js +0 -130
- package/es/reducers/project-reducer.js.map +0 -1
- package/es/reducers/reducer.js +0 -20
- package/es/reducers/reducer.js.map +0 -1
- package/es/reducers/scene-reducer.js +0 -29
- package/es/reducers/scene-reducer.js.map +0 -1
- package/es/reducers/user-reducer.js +0 -42
- package/es/reducers/user-reducer.js.map +0 -1
- package/es/reducers/vertices-reducer.js +0 -20
- package/es/reducers/vertices-reducer.js.map +0 -1
- package/es/reducers/viewer2d-reducer.js +0 -76
- package/es/reducers/viewer2d-reducer.js.map +0 -1
- package/es/reducers/viewer3d-reducer.js +0 -57
- package/es/reducers/viewer3d-reducer.js.map +0 -1
- package/es/shared-style.js +0 -67
- package/es/shared-style.js.map +0 -1
- package/es/styles/export.js +0 -6
- package/es/styles/export.js.map +0 -1
- package/es/styles/tabs.css +0 -40
- package/es/translator/en.js +0 -105
- package/es/translator/en.js.map +0 -1
- package/es/translator/it.js +0 -80
- package/es/translator/it.js.map +0 -1
- package/es/translator/ru.js +0 -80
- package/es/translator/ru.js.map +0 -1
- package/es/translator/translator.js +0 -85
- package/es/translator/translator.js.map +0 -1
- package/es/utils/browser.js +0 -34
- package/es/utils/browser.js.map +0 -1
- package/es/utils/email-validator.js +0 -5
- package/es/utils/email-validator.js.map +0 -1
- package/es/utils/export.js +0 -26
- package/es/utils/export.js.map +0 -1
- package/es/utils/geometry.js +0 -2237
- package/es/utils/geometry.js.map +0 -1
- package/es/utils/get-edges-of-subgraphs.js +0 -27
- package/es/utils/get-edges-of-subgraphs.js.map +0 -1
- package/es/utils/graph-cycles.js +0 -239
- package/es/utils/graph-cycles.js.map +0 -1
- package/es/utils/graph-inner-cycles.js +0 -47
- package/es/utils/graph-inner-cycles.js.map +0 -1
- package/es/utils/graph.js +0 -150
- package/es/utils/graph.js.map +0 -1
- package/es/utils/helper.js +0 -337
- package/es/utils/helper.js.map +0 -1
- package/es/utils/history.js +0 -30
- package/es/utils/history.js.map +0 -1
- package/es/utils/id-broker.js +0 -20
- package/es/utils/id-broker.js.map +0 -1
- package/es/utils/logger.js +0 -9
- package/es/utils/logger.js.map +0 -1
- package/es/utils/math.js +0 -51
- package/es/utils/math.js.map +0 -1
- package/es/utils/molding.js +0 -840
- package/es/utils/molding.js.map +0 -1
- package/es/utils/name-generator.js +0 -19
- package/es/utils/name-generator.js.map +0 -1
- package/es/utils/objects-utils.js +0 -51
- package/es/utils/objects-utils.js.map +0 -1
- package/es/utils/phone-validator.js +0 -5
- package/es/utils/phone-validator.js.map +0 -1
- package/es/utils/process-black-list.js +0 -19
- package/es/utils/process-black-list.js.map +0 -1
- package/es/utils/react-if.js +0 -19
- package/es/utils/react-if.js.map +0 -1
- package/es/utils/snap-scene.js +0 -100
- package/es/utils/snap-scene.js.map +0 -1
- package/es/utils/snap.js +0 -238
- package/es/utils/snap.js.map +0 -1
- package/es/utils/threeCSG.es6.js +0 -499
- package/es/utils/threeCSG.es6.js.map +0 -1
- package/es/version.js +0 -2
- package/es/version.js.map +0 -1
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
3
|
-
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
4
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
5
|
-
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
6
|
-
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
7
|
-
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
8
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
|
-
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
10
|
-
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); }
|
|
11
|
-
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
12
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
15
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
16
|
-
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); }
|
|
17
|
-
import React, { Component } from 'react';
|
|
18
|
-
import PropTypes from 'prop-types';
|
|
19
|
-
import CatalogItem from './catalog-item';
|
|
20
|
-
import CatalogBreadcrumb from './catalog-breadcrumb';
|
|
21
|
-
import CatalogPageItem from './catalog-page-item';
|
|
22
|
-
import CatalogTurnBackPageItem from './catalog-turn-back-page-item';
|
|
23
|
-
import ContentContainer from '../style/content-container';
|
|
24
|
-
import { API_SERVER_URL } from '../../constants';
|
|
25
|
-
import ContentTitle from '../style/content-title';
|
|
26
|
-
import * as SharedStyle from '../../shared-style';
|
|
27
|
-
import axios from 'axios';
|
|
28
|
-
import SnackBar from '../atoms/Snackbar/index';
|
|
29
|
-
var containerStyle = {
|
|
30
|
-
position: 'fixed',
|
|
31
|
-
width: 'calc( 100% - 94px)',
|
|
32
|
-
height: 'calc( 100% - 71px)',
|
|
33
|
-
backgroundColor: '#FFF',
|
|
34
|
-
padding: '1em',
|
|
35
|
-
left: 90,
|
|
36
|
-
top: 70,
|
|
37
|
-
overflowY: 'auto',
|
|
38
|
-
overflowX: 'hidden',
|
|
39
|
-
zIndex: 10
|
|
40
|
-
};
|
|
41
|
-
var itemsStyle = {
|
|
42
|
-
display: 'flex',
|
|
43
|
-
gridTemplateColumns: 'repeat(auto-fit, minmax(14em, 1fr))',
|
|
44
|
-
gridGap: '10px',
|
|
45
|
-
marginTop: '1em'
|
|
46
|
-
};
|
|
47
|
-
var searchContainer = {
|
|
48
|
-
width: '100%',
|
|
49
|
-
height: '3em',
|
|
50
|
-
padding: '0.625em',
|
|
51
|
-
background: '#f7f7f9',
|
|
52
|
-
border: '1px solid #e1e1e8',
|
|
53
|
-
cursor: 'pointer',
|
|
54
|
-
position: 'relative',
|
|
55
|
-
boxShadow: '0 1px 6px 0 rgba(0, 0, 0, 0.11), 0 1px 4px 0 rgba(0, 0, 0, 0.11)',
|
|
56
|
-
borderRadius: '2px',
|
|
57
|
-
transition: 'all .2s ease-in-out',
|
|
58
|
-
WebkitTransition: 'all .2s ease-in-out',
|
|
59
|
-
marginBottom: '1em'
|
|
60
|
-
};
|
|
61
|
-
var searchText = {
|
|
62
|
-
width: '8em',
|
|
63
|
-
display: 'inline-block'
|
|
64
|
-
};
|
|
65
|
-
var searchInput = {
|
|
66
|
-
width: 'calc( 100% - 10em )',
|
|
67
|
-
height: '2em',
|
|
68
|
-
margin: '0',
|
|
69
|
-
padding: '0 1em',
|
|
70
|
-
border: '1px solid #EEE'
|
|
71
|
-
};
|
|
72
|
-
var historyContainer = _objectSpread(_objectSpread({}, searchContainer), {}, {
|
|
73
|
-
padding: '0.2em 0.625em'
|
|
74
|
-
});
|
|
75
|
-
var historyElementStyle = {
|
|
76
|
-
width: 'auto',
|
|
77
|
-
height: '2em',
|
|
78
|
-
lineHeight: '2em',
|
|
79
|
-
textAlign: 'center',
|
|
80
|
-
borderRadius: '1em',
|
|
81
|
-
display: 'inline-block',
|
|
82
|
-
cursor: 'pointer',
|
|
83
|
-
backgroundColor: SharedStyle.PRIMARY_COLOR.alt,
|
|
84
|
-
color: SharedStyle.PRIMARY_COLOR.text_main,
|
|
85
|
-
textTransform: 'capitalize',
|
|
86
|
-
margin: '0.25em',
|
|
87
|
-
padding: '0 1em'
|
|
88
|
-
};
|
|
89
|
-
var CatalogList = /*#__PURE__*/function (_Component) {
|
|
90
|
-
function CatalogList(props, context) {
|
|
91
|
-
var _this;
|
|
92
|
-
_classCallCheck(this, CatalogList);
|
|
93
|
-
_this = _callSuper(this, CatalogList, [props]);
|
|
94
|
-
_this.state = {
|
|
95
|
-
elementsToDisplay: [],
|
|
96
|
-
matchString: '',
|
|
97
|
-
matchedElements: [],
|
|
98
|
-
snackBarMessage: '',
|
|
99
|
-
isSnackBarOpen: false
|
|
100
|
-
};
|
|
101
|
-
return _this;
|
|
102
|
-
}
|
|
103
|
-
_inherits(CatalogList, _Component);
|
|
104
|
-
return _createClass(CatalogList, [{
|
|
105
|
-
key: "componentDidMount",
|
|
106
|
-
value: function componentDidMount() {
|
|
107
|
-
var _this2 = this;
|
|
108
|
-
var self = this;
|
|
109
|
-
var user = self.props.param.params;
|
|
110
|
-
axios.post("".concat(API_SERVER_URL, "/api/project/loadProject"), {
|
|
111
|
-
userrole: user.role,
|
|
112
|
-
access_token: user.token,
|
|
113
|
-
env: 'front'
|
|
114
|
-
}).then(function (response) {
|
|
115
|
-
var success = response.data.success;
|
|
116
|
-
if (success === true) {
|
|
117
|
-
var projectElement = response.data.projectElement;
|
|
118
|
-
self.setState({
|
|
119
|
-
elementsToDisplay: projectElement
|
|
120
|
-
});
|
|
121
|
-
} else _this2.setState({
|
|
122
|
-
snackBarMessage: 'Loading project failed.',
|
|
123
|
-
isSnackBarOpen: true
|
|
124
|
-
});
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
}, {
|
|
128
|
-
key: "render",
|
|
129
|
-
value: function render() {
|
|
130
|
-
var _this3 = this;
|
|
131
|
-
var turnBackButton = /*#__PURE__*/React.createElement(CatalogTurnBackPageItem, {
|
|
132
|
-
key: "back"
|
|
133
|
-
});
|
|
134
|
-
return /*#__PURE__*/React.createElement(ContentContainer, {
|
|
135
|
-
width: this.props.width,
|
|
136
|
-
height: this.props.height,
|
|
137
|
-
style: _objectSpread(_objectSpread({}, containerStyle), this.props.style)
|
|
138
|
-
}, /*#__PURE__*/React.createElement(SnackBar, {
|
|
139
|
-
isOpen: this.state.isSnackBarOpen,
|
|
140
|
-
message: this.state.snackBarMessage,
|
|
141
|
-
handleClose: function handleClose() {
|
|
142
|
-
return _this3.setState({
|
|
143
|
-
isSnackBarOpen: false,
|
|
144
|
-
snackBarMessage: ''
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
}), /*#__PURE__*/React.createElement(ContentTitle, null, "My Project Library"), /*#__PURE__*/React.createElement("div", {
|
|
148
|
-
style: itemsStyle
|
|
149
|
-
}, this.state.matchString === '' ? [turnBackButton,
|
|
150
|
-
// categoriesToDisplay.map(cat => <CatalogPageItem key={cat.name} page={cat} oldPage={currentCategory}/>),
|
|
151
|
-
this.state.elementsToDisplay.map(function (elem) {
|
|
152
|
-
return /*#__PURE__*/React.createElement(CatalogItem, {
|
|
153
|
-
key: elem.id,
|
|
154
|
-
element: elem,
|
|
155
|
-
categoryData: _this3.props.categoryData
|
|
156
|
-
});
|
|
157
|
-
})] : this.state.matchedElements.map(function (elem) {
|
|
158
|
-
return /*#__PURE__*/React.createElement(CatalogItem, {
|
|
159
|
-
key: elem.id,
|
|
160
|
-
element: elem,
|
|
161
|
-
categoryData: _this3.props.categoryData
|
|
162
|
-
});
|
|
163
|
-
})));
|
|
164
|
-
}
|
|
165
|
-
}]);
|
|
166
|
-
}(Component);
|
|
167
|
-
export { CatalogList as default };
|
|
168
|
-
CatalogList.propTypes = {
|
|
169
|
-
state: PropTypes.object.isRequired,
|
|
170
|
-
width: PropTypes.number.isRequired,
|
|
171
|
-
height: PropTypes.number.isRequired,
|
|
172
|
-
style: PropTypes.object
|
|
173
|
-
};
|
|
174
|
-
CatalogList.contextTypes = {
|
|
175
|
-
catalog: PropTypes.object.isRequired,
|
|
176
|
-
translator: PropTypes.object.isRequired,
|
|
177
|
-
itemsActions: PropTypes.object.isRequired,
|
|
178
|
-
linesActions: PropTypes.object.isRequired,
|
|
179
|
-
holesActions: PropTypes.object.isRequired,
|
|
180
|
-
projectActions: PropTypes.object.isRequired
|
|
181
|
-
};
|
|
182
|
-
//# sourceMappingURL=catalog-list.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"catalog-list.js","names":["React","Component","PropTypes","CatalogItem","CatalogBreadcrumb","CatalogPageItem","CatalogTurnBackPageItem","ContentContainer","API_SERVER_URL","ContentTitle","SharedStyle","axios","SnackBar","containerStyle","position","width","height","backgroundColor","padding","left","top","overflowY","overflowX","zIndex","itemsStyle","display","gridTemplateColumns","gridGap","marginTop","searchContainer","background","border","cursor","boxShadow","borderRadius","transition","WebkitTransition","marginBottom","searchText","searchInput","margin","historyContainer","_objectSpread","historyElementStyle","lineHeight","textAlign","PRIMARY_COLOR","alt","color","text_main","textTransform","CatalogList","_Component","props","context","_this","_classCallCheck","_callSuper","state","elementsToDisplay","matchString","matchedElements","snackBarMessage","isSnackBarOpen","_inherits","_createClass","key","value","componentDidMount","_this2","self","user","param","params","post","concat","userrole","role","access_token","token","env","then","response","success","data","projectElement","setState","render","_this3","turnBackButton","createElement","style","isOpen","message","handleClose","map","elem","id","element","categoryData","default","propTypes","object","isRequired","number","contextTypes","catalog","translator","itemsActions","linesActions","holesActions","projectActions"],"sources":["../../../src/components/catalog-view/catalog-list.jsx"],"sourcesContent":["import React, { Component } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport CatalogItem from './catalog-item';\r\nimport CatalogBreadcrumb from './catalog-breadcrumb';\r\nimport CatalogPageItem from './catalog-page-item';\r\nimport CatalogTurnBackPageItem from './catalog-turn-back-page-item';\r\nimport ContentContainer from '../style/content-container';\r\nimport { API_SERVER_URL } from '../../constants';\r\nimport ContentTitle from '../style/content-title';\r\nimport * as SharedStyle from '../../shared-style';\r\nimport axios from 'axios';\r\nimport SnackBar from '../atoms/Snackbar/index';\r\n\r\nconst containerStyle = {\r\n position: 'fixed',\r\n width: 'calc( 100% - 94px)',\r\n height: 'calc( 100% - 71px)',\r\n backgroundColor: '#FFF',\r\n padding: '1em',\r\n left: 90,\r\n top: 70,\r\n overflowY: 'auto',\r\n overflowX: 'hidden',\r\n zIndex: 10\r\n};\r\n\r\nconst itemsStyle = {\r\n display: 'flex',\r\n gridTemplateColumns: 'repeat(auto-fit, minmax(14em, 1fr))',\r\n gridGap: '10px',\r\n marginTop: '1em'\r\n};\r\n\r\nconst searchContainer = {\r\n width: '100%',\r\n height: '3em',\r\n padding: '0.625em',\r\n background: '#f7f7f9',\r\n border: '1px solid #e1e1e8',\r\n cursor: 'pointer',\r\n position: 'relative',\r\n boxShadow: '0 1px 6px 0 rgba(0, 0, 0, 0.11), 0 1px 4px 0 rgba(0, 0, 0, 0.11)',\r\n borderRadius: '2px',\r\n transition: 'all .2s ease-in-out',\r\n WebkitTransition: 'all .2s ease-in-out',\r\n marginBottom: '1em'\r\n};\r\n\r\nconst searchText = {\r\n width: '8em',\r\n display: 'inline-block'\r\n};\r\n\r\nconst searchInput = {\r\n width: 'calc( 100% - 10em )',\r\n height: '2em',\r\n margin: '0',\r\n padding: '0 1em',\r\n border: '1px solid #EEE'\r\n};\r\n\r\nconst historyContainer = {\r\n ...searchContainer,\r\n padding: '0.2em 0.625em'\r\n};\r\n\r\nconst historyElementStyle = {\r\n width: 'auto',\r\n height: '2em',\r\n lineHeight: '2em',\r\n textAlign: 'center',\r\n borderRadius: '1em',\r\n display: 'inline-block',\r\n cursor: 'pointer',\r\n backgroundColor: SharedStyle.PRIMARY_COLOR.alt,\r\n color: SharedStyle.PRIMARY_COLOR.text_main,\r\n textTransform: 'capitalize',\r\n margin: '0.25em',\r\n padding: '0 1em'\r\n};\r\n\r\nexport default class CatalogList extends Component {\r\n constructor(props, context) {\r\n super(props);\r\n\r\n this.state = {\r\n elementsToDisplay: [],\r\n matchString: '',\r\n matchedElements: [],\r\n snackBarMessage: '',\r\n isSnackBarOpen: false\r\n };\r\n }\r\n\r\n componentDidMount() {\r\n const self = this;\r\n const user = self.props.param.params;\r\n axios\r\n .post(`${API_SERVER_URL}/api/project/loadProject`, {\r\n userrole: user.role,\r\n access_token: user.token,\r\n env: 'front'\r\n })\r\n .then(response => {\r\n const { success } = response.data;\r\n if (success === true) {\r\n const { projectElement } = response.data;\r\n self.setState({ elementsToDisplay: projectElement });\r\n } else\r\n this.setState({\r\n snackBarMessage: 'Loading project failed.',\r\n isSnackBarOpen: true\r\n });\r\n });\r\n }\r\n\r\n render() {\r\n let turnBackButton = <CatalogTurnBackPageItem key=\"back\" />;\r\n return (\r\n <ContentContainer\r\n width={this.props.width}\r\n height={this.props.height}\r\n style={{ ...containerStyle, ...this.props.style }}\r\n >\r\n <SnackBar\r\n isOpen={this.state.isSnackBarOpen}\r\n message={this.state.snackBarMessage}\r\n handleClose={() =>\r\n this.setState({ isSnackBarOpen: false, snackBarMessage: '' })\r\n }\r\n />\r\n <ContentTitle>My Project Library</ContentTitle>\r\n <div style={itemsStyle}>\r\n {this.state.matchString === ''\r\n ? [\r\n turnBackButton,\r\n // categoriesToDisplay.map(cat => <CatalogPageItem key={cat.name} page={cat} oldPage={currentCategory}/>),\r\n this.state.elementsToDisplay.map(elem => (\r\n <CatalogItem\r\n key={elem.id}\r\n element={elem}\r\n categoryData={this.props.categoryData}\r\n />\r\n ))\r\n ]\r\n : this.state.matchedElements.map(elem => (\r\n <CatalogItem\r\n key={elem.id}\r\n element={elem}\r\n categoryData={this.props.categoryData}\r\n />\r\n ))}\r\n </div>\r\n </ContentContainer>\r\n );\r\n }\r\n}\r\n\r\nCatalogList.propTypes = {\r\n state: PropTypes.object.isRequired,\r\n width: PropTypes.number.isRequired,\r\n height: PropTypes.number.isRequired,\r\n style: PropTypes.object\r\n};\r\n\r\nCatalogList.contextTypes = {\r\n catalog: PropTypes.object.isRequired,\r\n translator: PropTypes.object.isRequired,\r\n itemsActions: PropTypes.object.isRequired,\r\n linesActions: PropTypes.object.isRequired,\r\n holesActions: PropTypes.object.isRequired,\r\n projectActions: PropTypes.object.isRequired\r\n};\r\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,WAAW,MAAM,gBAAgB;AACxC,OAAOC,iBAAiB,MAAM,sBAAsB;AACpD,OAAOC,eAAe,MAAM,qBAAqB;AACjD,OAAOC,uBAAuB,MAAM,+BAA+B;AACnE,OAAOC,gBAAgB,MAAM,4BAA4B;AACzD,SAASC,cAAc,QAAQ,iBAAiB;AAChD,OAAOC,YAAY,MAAM,wBAAwB;AACjD,OAAO,KAAKC,WAAW,MAAM,oBAAoB;AACjD,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,yBAAyB;AAE9C,IAAMC,cAAc,GAAG;EACrBC,QAAQ,EAAE,OAAO;EACjBC,KAAK,EAAE,oBAAoB;EAC3BC,MAAM,EAAE,oBAAoB;EAC5BC,eAAe,EAAE,MAAM;EACvBC,OAAO,EAAE,KAAK;EACdC,IAAI,EAAE,EAAE;EACRC,GAAG,EAAE,EAAE;EACPC,SAAS,EAAE,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C,CACH,GACD,IAAI,CAACzC,KAAK,CAACG,eAAe,CAACkC,GAAG,CAAC,UAAAC,IAAI;QAAA,oBACjChG,KAAA,CAAA0F,aAAA,CAACvF,WAAW;UACV+D,GAAG,EAAE8B,IAAI,CAACC,EAAG;UACbC,OAAO,EAAEF,IAAK;UACdG,YAAY,EAAEX,MAAI,CAACnC,KAAK,CAAC8C;QAAa,CACvC,CAAC;MAAA,CACH,CACF,CACW,CAAC;IAEvB;EAAC;AAAA,EA1EsClG,SAAS;AAAA,SAA7BkD,WAAW,IAAAiD,OAAA;AA6EhCjD,WAAW,CAACkD,SAAS,GAAG;EACtB3C,KAAK,EAAExD,SAAS,CAACoG,MAAM,CAACC,UAAU;EAClCxF,KAAK,EAAEb,SAAS,CAACsG,MAAM,CAACD,UAAU;EAClCvF,MAAM,EAAEd,SAAS,CAACsG,MAAM,CAACD,UAAU;EACnCZ,KAAK,EAAEzF,SAAS,CAACoG;AACnB,CAAC;AAEDnD,WAAW,CAACsD,YAAY,GAAG;EACzBC,OAAO,EAAExG,SAAS,CAACoG,MAAM,CAACC,UAAU;EACpCI,UAAU,EAAEzG,SAAS,CAACoG,MAAM,CAACC,UAAU;EACvCK,YAAY,EAAE1G,SAAS,CAACoG,MAAM,CAACC,UAAU;EACzCM,YAAY,EAAE3G,SAAS,CAACoG,MAAM,CAACC,UAAU;EACzCO,YAAY,EAAE5G,SAAS,CAACoG,MAAM,CAACC,UAAU;EACzCQ,cAAc,EAAE7G,SAAS,CAACoG,MAAM,CAACC;AACnC,CAAC","ignoreList":[]}
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
3
|
-
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
4
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
5
|
-
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
6
|
-
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
7
|
-
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
8
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
|
-
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
10
|
-
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); }
|
|
11
|
-
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
12
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
15
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
16
|
-
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); }
|
|
17
|
-
import React, { Component } from 'react';
|
|
18
|
-
import PropTypes from 'prop-types';
|
|
19
|
-
import { MdNavigateNext } from 'react-icons/md';
|
|
20
|
-
import * as SharedStyle from '../../shared-style';
|
|
21
|
-
var STYLE_BOX = {
|
|
22
|
-
width: '14em',
|
|
23
|
-
height: '14em',
|
|
24
|
-
padding: '0.625em',
|
|
25
|
-
background: '#f7f7f9',
|
|
26
|
-
border: '1px solid #e1e1e8',
|
|
27
|
-
cursor: 'pointer',
|
|
28
|
-
position: 'relative',
|
|
29
|
-
boxShadow: '0 1px 6px 0 rgba(0, 0, 0, 0.11), 0 1px 4px 0 rgba(0, 0, 0, 0.11)',
|
|
30
|
-
borderRadius: '2px',
|
|
31
|
-
transition: 'all .2s ease-in-out',
|
|
32
|
-
WebkitTransition: 'all .2s ease-in-out',
|
|
33
|
-
alignSelf: 'center',
|
|
34
|
-
justifySelf: 'center'
|
|
35
|
-
};
|
|
36
|
-
var STYLE_BOX_HOVER = _objectSpread(_objectSpread({}, STYLE_BOX), {}, {
|
|
37
|
-
background: SharedStyle.SECONDARY_COLOR.main
|
|
38
|
-
});
|
|
39
|
-
var STYLE_TITLE = {
|
|
40
|
-
width: '100%',
|
|
41
|
-
position: 'absolute',
|
|
42
|
-
textAlign: 'center',
|
|
43
|
-
display: 'block',
|
|
44
|
-
marginBottom: '.5em',
|
|
45
|
-
padding: '1em',
|
|
46
|
-
textTransform: 'capitalize',
|
|
47
|
-
WebkitTransition: 'all .15s ease-in-out'
|
|
48
|
-
};
|
|
49
|
-
var STYLE_TITLE_HOVERED = _objectSpread(_objectSpread({}, STYLE_TITLE), {}, {
|
|
50
|
-
fontSize: '1.4em',
|
|
51
|
-
transform: 'translateY(-60px)',
|
|
52
|
-
color: 'rgb(28, 166, 252)',
|
|
53
|
-
marginTop: '0.5em'
|
|
54
|
-
});
|
|
55
|
-
var STYLE_NEXT_HOVER = {
|
|
56
|
-
position: 'absolute',
|
|
57
|
-
color: SharedStyle.SECONDARY_COLOR.main,
|
|
58
|
-
fontSize: '5em',
|
|
59
|
-
width: '100%'
|
|
60
|
-
};
|
|
61
|
-
var CONTAINER_DIV = {
|
|
62
|
-
background: SharedStyle.COLORS.white,
|
|
63
|
-
marginBottom: '5px',
|
|
64
|
-
border: 'solid 1px #EEE',
|
|
65
|
-
width: '100%',
|
|
66
|
-
height: '100%',
|
|
67
|
-
display: 'flex',
|
|
68
|
-
alignItems: 'center',
|
|
69
|
-
justifyContent: 'center'
|
|
70
|
-
};
|
|
71
|
-
var CatalogPageItem = /*#__PURE__*/function (_Component) {
|
|
72
|
-
function CatalogPageItem(props) {
|
|
73
|
-
var _this;
|
|
74
|
-
_classCallCheck(this, CatalogPageItem);
|
|
75
|
-
_this = _callSuper(this, CatalogPageItem, [props]);
|
|
76
|
-
_this.state = {
|
|
77
|
-
hover: false
|
|
78
|
-
};
|
|
79
|
-
return _this;
|
|
80
|
-
}
|
|
81
|
-
_inherits(CatalogPageItem, _Component);
|
|
82
|
-
return _createClass(CatalogPageItem, [{
|
|
83
|
-
key: "changePage",
|
|
84
|
-
value: function changePage(newPage) {
|
|
85
|
-
this.context.projectActions.changeCatalogPage(newPage, this.props.oldPage.name);
|
|
86
|
-
}
|
|
87
|
-
}, {
|
|
88
|
-
key: "render",
|
|
89
|
-
value: function render() {
|
|
90
|
-
var _this2 = this;
|
|
91
|
-
var page = this.props.page;
|
|
92
|
-
var hover = this.state.hover;
|
|
93
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
94
|
-
style: hover ? STYLE_BOX_HOVER : STYLE_BOX,
|
|
95
|
-
onClick: function onClick(e) {
|
|
96
|
-
return _this2.changePage(page.name);
|
|
97
|
-
},
|
|
98
|
-
onMouseEnter: function onMouseEnter(e) {
|
|
99
|
-
return _this2.setState({
|
|
100
|
-
hover: true
|
|
101
|
-
});
|
|
102
|
-
},
|
|
103
|
-
onMouseLeave: function onMouseLeave(e) {
|
|
104
|
-
return _this2.setState({
|
|
105
|
-
hover: false
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
}, hover ? /*#__PURE__*/React.createElement("div", {
|
|
109
|
-
style: CONTAINER_DIV
|
|
110
|
-
}, /*#__PURE__*/React.createElement("b", {
|
|
111
|
-
style: STYLE_TITLE_HOVERED
|
|
112
|
-
}, page.label), /*#__PURE__*/React.createElement(MdNavigateNext, {
|
|
113
|
-
style: STYLE_NEXT_HOVER
|
|
114
|
-
})) : /*#__PURE__*/React.createElement("div", {
|
|
115
|
-
style: CONTAINER_DIV
|
|
116
|
-
}, /*#__PURE__*/React.createElement("b", {
|
|
117
|
-
style: STYLE_TITLE
|
|
118
|
-
}, page.label)));
|
|
119
|
-
}
|
|
120
|
-
}]);
|
|
121
|
-
}(Component);
|
|
122
|
-
export { CatalogPageItem as default };
|
|
123
|
-
CatalogPageItem.propTypes = {
|
|
124
|
-
page: PropTypes.object.isRequired,
|
|
125
|
-
oldPage: PropTypes.object.isRequired
|
|
126
|
-
};
|
|
127
|
-
CatalogPageItem.contextTypes = {
|
|
128
|
-
projectActions: PropTypes.object.isRequired
|
|
129
|
-
};
|
|
130
|
-
//# sourceMappingURL=catalog-page-item.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"catalog-page-item.js","names":["React","Component","PropTypes","MdNavigateNext","SharedStyle","STYLE_BOX","width","height","padding","background","border","cursor","position","boxShadow","borderRadius","transition","WebkitTransition","alignSelf","justifySelf","STYLE_BOX_HOVER","_objectSpread","SECONDARY_COLOR","main","STYLE_TITLE","textAlign","display","marginBottom","textTransform","STYLE_TITLE_HOVERED","fontSize","transform","color","marginTop","STYLE_NEXT_HOVER","CONTAINER_DIV","COLORS","white","alignItems","justifyContent","CatalogPageItem","_Component","props","_this","_classCallCheck","_callSuper","state","hover","_inherits","_createClass","key","value","changePage","newPage","context","projectActions","changeCatalogPage","oldPage","name","render","_this2","page","createElement","style","onClick","e","onMouseEnter","setState","onMouseLeave","label","default","propTypes","object","isRequired","contextTypes"],"sources":["../../../src/components/catalog-view/catalog-page-item.jsx"],"sourcesContent":["import React, { Component } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { MdNavigateNext } from 'react-icons/md';\r\nimport * as SharedStyle from '../../shared-style';\r\n\r\nconst STYLE_BOX = {\r\n width: '14em',\r\n height: '14em',\r\n padding: '0.625em',\r\n background: '#f7f7f9',\r\n border: '1px solid #e1e1e8',\r\n cursor: 'pointer',\r\n position: 'relative',\r\n boxShadow: '0 1px 6px 0 rgba(0, 0, 0, 0.11), 0 1px 4px 0 rgba(0, 0, 0, 0.11)',\r\n borderRadius: '2px',\r\n transition: 'all .2s ease-in-out',\r\n WebkitTransition: 'all .2s ease-in-out',\r\n alignSelf: 'center',\r\n justifySelf: 'center'\r\n};\r\n\r\nconst STYLE_BOX_HOVER = {\r\n ...STYLE_BOX,\r\n background: SharedStyle.SECONDARY_COLOR.main\r\n};\r\n\r\nconst STYLE_TITLE = {\r\n width: '100%',\r\n position: 'absolute',\r\n textAlign: 'center',\r\n display: 'block',\r\n marginBottom: '.5em',\r\n padding: '1em',\r\n textTransform: 'capitalize',\r\n WebkitTransition: 'all .15s ease-in-out'\r\n};\r\n\r\nconst STYLE_TITLE_HOVERED = {\r\n ...STYLE_TITLE,\r\n fontSize: '1.4em',\r\n transform: 'translateY(-60px)',\r\n color: 'rgb(28, 166, 252)',\r\n marginTop: '0.5em'\r\n};\r\n\r\nconst STYLE_NEXT_HOVER = {\r\n position: 'absolute',\r\n color: SharedStyle.SECONDARY_COLOR.main,\r\n fontSize: '5em',\r\n width: '100%'\r\n};\r\n\r\nconst CONTAINER_DIV = {\r\n background: SharedStyle.COLORS.white,\r\n marginBottom: '5px',\r\n border: 'solid 1px #EEE',\r\n width: '100%',\r\n height: '100%',\r\n display: 'flex',\r\n alignItems: 'center',\r\n justifyContent: 'center'\r\n};\r\n\r\nexport default class CatalogPageItem extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = { hover: false };\r\n }\r\n\r\n changePage(newPage) {\r\n this.context.projectActions.changeCatalogPage(\r\n newPage,\r\n this.props.oldPage.name\r\n );\r\n }\r\n\r\n render() {\r\n let page = this.props.page;\r\n let hover = this.state.hover;\r\n\r\n return (\r\n <div\r\n style={hover ? STYLE_BOX_HOVER : STYLE_BOX}\r\n onClick={e => this.changePage(page.name)}\r\n onMouseEnter={e => this.setState({ hover: true })}\r\n onMouseLeave={e => this.setState({ hover: false })}\r\n >\r\n {hover ? (\r\n <div style={CONTAINER_DIV}>\r\n <b style={STYLE_TITLE_HOVERED}>{page.label}</b>\r\n <MdNavigateNext style={STYLE_NEXT_HOVER} />\r\n </div>\r\n ) : (\r\n <div style={CONTAINER_DIV}>\r\n <b style={STYLE_TITLE}>{page.label}</b>\r\n </div>\r\n )}\r\n </div>\r\n );\r\n }\r\n}\r\n\r\nCatalogPageItem.propTypes = {\r\n page: PropTypes.object.isRequired,\r\n oldPage: PropTypes.object.isRequired\r\n};\r\n\r\nCatalogPageItem.contextTypes = {\r\n projectActions: PropTypes.object.isRequired\r\n};\r\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,OAAOC,SAAS,MAAM,YAAY;AAClC,SAASC,cAAc,QAAQ,gBAAgB;AAC/C,OAAO,KAAKC,WAAW,MAAM,oBAAoB;AAEjD,IAAMC,SAAS,GAAG;EAChBC,KAAK,EAAE,MAAM;EACbC,MAAM,EAAE,MAAM;EACdC,OAAO,EAAE,SAAS;EAClBC,UAAU,EAAE,SAAS;EACrBC,MAAM,EAAE,mBAAmB;EAC3BC,MAAM,EAAE,SAAS;EACjBC,QAAQ,EAAE,UAAU;EACpBC,SAAS,EAAE,kEAAkE;EAC7EC,YAAY,EAAE,KAAK;EACnBC,UAAU,EAAE,qBAAqB;EACjCC,gBAAgB,EAAE,qBAAqB;EACvCC,SAAS,EAAE,QAAQ;EACnBC,WAAW,EAAE;AACf,CAAC;AAED,IAAMC,eAAe,GAAAC,aAAA,CAAAA,aAAA,KAChBf,SAAS;EACZI,UAAU,EAAEL,WAAW,CAACiB,eAAe,CAACC;AAAI,EAC7C;AAED,IAAMC,WAAW,GAAG;EAClBjB,KAAK,EAAE,MAAM;EACbM,QAAQ,EAAE,UAAU;EACpBY,SAAS,EAAE,QAAQ;EACnBC,OAAO,EAAE,OAAO;EAChBC,YAAY,EAAE,MAAM;EACpBlB,OAAO,EAAE,KAAK;EACdmB,aAAa,EAAE,YAAY;EAC3BX,gBAAgB,EAAE;AACpB,CAAC;AAED,IAAMY,mBAAmB,GAAAR,aAAA,CAAAA,aAAA,KACpBG,WAAW;EACdM,QAAQ,EAAE,OAAO;EACjBC,SAAS,EAAE,mBAAmB;EAC9BC,KAAK,EAAE,mBAAmB;EAC1BC,SAAS,EAAE;AAAO,EACnB;AAED,IA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symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
3
|
-
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
4
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
5
|
-
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
6
|
-
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
7
|
-
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
8
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
9
|
-
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
10
|
-
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); }
|
|
11
|
-
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
12
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
15
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
16
|
-
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); }
|
|
17
|
-
import React, { Component } from 'react';
|
|
18
|
-
import PropTypes from 'prop-types';
|
|
19
|
-
import { MdNavigateBefore } from 'react-icons/md';
|
|
20
|
-
import * as SharedStyle from '../../shared-style';
|
|
21
|
-
import { MODE_IDLE } from '../../constants';
|
|
22
|
-
var STYLE_BOX = {
|
|
23
|
-
width: '14em',
|
|
24
|
-
height: '14em',
|
|
25
|
-
padding: '0.625em',
|
|
26
|
-
background: '#f7f7f9',
|
|
27
|
-
border: '1px solid #e1e1e8',
|
|
28
|
-
margin: '0.3em',
|
|
29
|
-
cursor: 'pointer',
|
|
30
|
-
position: 'relative',
|
|
31
|
-
boxShadow: '0 1px 6px 0 rgba(0, 0, 0, 0.11), 0 1px 4px 0 rgba(0, 0, 0, 0.11)',
|
|
32
|
-
borderRadius: '2px',
|
|
33
|
-
transition: 'all .2s ease-in-out',
|
|
34
|
-
WebkitTransition: 'all .2s ease-in-out'
|
|
35
|
-
};
|
|
36
|
-
var STYLE_BOX_HOVER = _objectSpread(_objectSpread({}, STYLE_BOX), {}, {
|
|
37
|
-
background: SharedStyle.SECONDARY_COLOR.main
|
|
38
|
-
});
|
|
39
|
-
var STYLE_BACK = {
|
|
40
|
-
position: 'absolute',
|
|
41
|
-
color: SharedStyle.COLORS.black,
|
|
42
|
-
fontSize: '5em',
|
|
43
|
-
width: '100%'
|
|
44
|
-
};
|
|
45
|
-
var STYLE_BACK_HOVER = _objectSpread(_objectSpread({}, STYLE_BACK), {}, {
|
|
46
|
-
color: SharedStyle.SECONDARY_COLOR.main
|
|
47
|
-
});
|
|
48
|
-
var CONTAINER_DIV = {
|
|
49
|
-
background: SharedStyle.COLORS.white,
|
|
50
|
-
marginBottom: '5px',
|
|
51
|
-
border: 'solid 1px #e6e6e6',
|
|
52
|
-
width: '100%',
|
|
53
|
-
height: '100%',
|
|
54
|
-
display: 'flex',
|
|
55
|
-
alignItems: 'center',
|
|
56
|
-
justifyContent: 'center'
|
|
57
|
-
};
|
|
58
|
-
var CatalogTurnBackPageItem = /*#__PURE__*/function (_Component) {
|
|
59
|
-
function CatalogTurnBackPageItem(props) {
|
|
60
|
-
var _this;
|
|
61
|
-
_classCallCheck(this, CatalogTurnBackPageItem);
|
|
62
|
-
_this = _callSuper(this, CatalogTurnBackPageItem, [props]);
|
|
63
|
-
_this.state = {
|
|
64
|
-
hover: false
|
|
65
|
-
};
|
|
66
|
-
return _this;
|
|
67
|
-
}
|
|
68
|
-
_inherits(CatalogTurnBackPageItem, _Component);
|
|
69
|
-
return _createClass(CatalogTurnBackPageItem, [{
|
|
70
|
-
key: "changePage",
|
|
71
|
-
value: function changePage() {
|
|
72
|
-
this.context.projectActions.setMode(MODE_IDLE);
|
|
73
|
-
}
|
|
74
|
-
}, {
|
|
75
|
-
key: "render",
|
|
76
|
-
value: function render() {
|
|
77
|
-
var _this2 = this;
|
|
78
|
-
var hover = this.state.hover;
|
|
79
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
80
|
-
style: hover ? STYLE_BOX_HOVER : STYLE_BOX,
|
|
81
|
-
onClick: function onClick(e) {
|
|
82
|
-
return _this2.changePage();
|
|
83
|
-
},
|
|
84
|
-
onMouseEnter: function onMouseEnter(e) {
|
|
85
|
-
return _this2.setState({
|
|
86
|
-
hover: true
|
|
87
|
-
});
|
|
88
|
-
},
|
|
89
|
-
onMouseLeave: function onMouseLeave(e) {
|
|
90
|
-
return _this2.setState({
|
|
91
|
-
hover: false
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
95
|
-
style: CONTAINER_DIV
|
|
96
|
-
}, /*#__PURE__*/React.createElement(MdNavigateBefore, {
|
|
97
|
-
style: !hover ? STYLE_BACK : STYLE_BACK_HOVER
|
|
98
|
-
})));
|
|
99
|
-
}
|
|
100
|
-
}]);
|
|
101
|
-
}(Component);
|
|
102
|
-
export { CatalogTurnBackPageItem as default };
|
|
103
|
-
CatalogTurnBackPageItem.contextTypes = {
|
|
104
|
-
projectActions: PropTypes.object.isRequired
|
|
105
|
-
};
|
|
106
|
-
//# sourceMappingURL=catalog-turn-back-page-item.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"catalog-turn-back-page-item.js","names":["React","Component","PropTypes","MdNavigateBefore","SharedStyle","MODE_IDLE","STYLE_BOX","width","height","padding","background","border","margin","cursor","position","boxShadow","borderRadius","transition","WebkitTransition","STYLE_BOX_HOVER","_objectSpread","SECONDARY_COLOR","main","STYLE_BACK","color","COLORS","black","fontSize","STYLE_BACK_HOVER","CONTAINER_DIV","white","marginBottom","display","alignItems","justifyContent","CatalogTurnBackPageItem","_Component","props","_this","_classCallCheck","_callSuper","state","hover","_inherits","_createClass","key","value","changePage","context","projectActions","setMode","render","_this2","createElement","style","onClick","e","onMouseEnter","setState","onMouseLeave","default","contextTypes","object","isRequired"],"sources":["../../../src/components/catalog-view/catalog-turn-back-page-item.jsx"],"sourcesContent":["import React, { Component } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { MdNavigateBefore } from 'react-icons/md';\r\nimport * as SharedStyle from '../../shared-style';\r\nimport { MODE_IDLE } from '../../constants';\r\n\r\nconst STYLE_BOX = {\r\n width: '14em',\r\n height: '14em',\r\n padding: '0.625em',\r\n background: '#f7f7f9',\r\n border: '1px solid #e1e1e8',\r\n margin: '0.3em',\r\n cursor: 'pointer',\r\n position: 'relative',\r\n boxShadow: '0 1px 6px 0 rgba(0, 0, 0, 0.11), 0 1px 4px 0 rgba(0, 0, 0, 0.11)',\r\n borderRadius: '2px',\r\n transition: 'all .2s ease-in-out',\r\n WebkitTransition: 'all .2s ease-in-out'\r\n};\r\n\r\nconst STYLE_BOX_HOVER = {\r\n ...STYLE_BOX,\r\n background: SharedStyle.SECONDARY_COLOR.main\r\n};\r\n\r\nconst STYLE_BACK = {\r\n position: 'absolute',\r\n color: SharedStyle.COLORS.black,\r\n fontSize: '5em',\r\n width: '100%'\r\n};\r\n\r\nconst STYLE_BACK_HOVER = {\r\n ...STYLE_BACK,\r\n color: SharedStyle.SECONDARY_COLOR.main\r\n};\r\n\r\nconst CONTAINER_DIV = {\r\n background: SharedStyle.COLORS.white,\r\n marginBottom: '5px',\r\n border: 'solid 1px #e6e6e6',\r\n width: '100%',\r\n height: '100%',\r\n display: 'flex',\r\n alignItems: 'center',\r\n justifyContent: 'center'\r\n};\r\n\r\nexport default class CatalogTurnBackPageItem extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = { hover: false };\r\n }\r\n\r\n changePage() {\r\n this.context.projectActions.setMode(MODE_IDLE);\r\n }\r\n\r\n render() {\r\n let hover = this.state.hover;\r\n\r\n return (\r\n <div\r\n style={hover ? STYLE_BOX_HOVER : STYLE_BOX}\r\n onClick={e => this.changePage()}\r\n onMouseEnter={e => this.setState({ hover: true })}\r\n onMouseLeave={e => this.setState({ hover: false })}\r\n >\r\n <div style={CONTAINER_DIV}>\r\n <MdNavigateBefore style={!hover ? STYLE_BACK : STYLE_BACK_HOVER} />\r\n </div>\r\n </div>\r\n );\r\n }\r\n}\r\n\r\nCatalogTurnBackPageItem.contextTypes = {\r\n projectActions: PropTypes.object.isRequired\r\n};\r\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,OAAOC,SAAS,MAAM,YAAY;AAClC,SAASC,gBAAgB,QAAQ,gBAAgB;AACjD,OAAO,KAAKC,WAAW,MAAM,oBAAoB;AACjD,SAASC,SAAS,QAAQ,iBAAiB;AAE3C,IAAMC,SAAS,GAAG;EAChBC,KAAK,EAAE,MAAM;EACbC,MAAM,EAAE,MAAM;EACdC,OAAO,EAAE,SAAS;EAClBC,UAAU,EAAE,SAAS;EACrBC,MAAM,EAAE,mBAAmB;EAC3BC,MAAM,EAAE,OAAO;EACfC,MAAM,EAAE,SAAS;EACjBC,QAAQ,EAAE,UAAU;EACpBC,SAAS,EAAE,kEAAkE;EAC7EC,YAAY,EAAE,KAAK;EACnBC,UAAU,EAAE,qBAAqB;EACjCC,gBAAgB,EAAE;AACpB,CAAC;AAED,IAAMC,eAAe,GAAAC,aAAA,CAAAA,aAAA,KAChBd,SAAS;EACZI,UAAU,EAAEN,WAAW,CAACiB,eAAe,CAACC;AAAI,EAC7C;AAED,IAAMC,UAAU,GAAG;EACjBT,QAAQ,EAAE,UAAU;EACpBU,KAAK,EAAEpB,WAAW,CAACqB,MAAM,CAACC,KAAK;EAC/BC,QAAQ,EAAE,KAAK;EACfpB,KAAK,EAAE;AACT,CAAC;A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AA,OAAIJ,MAAI,CAACM,QAAQ,CAAC;YAAEhB,KAAK,EAAE;UAAK,CAAC,CAAC;QAAA,CAAC;QAClDiB,YAAY,EAAE,SAAdA,YAAYA,CAAEH,CAAC;UAAA,OAAIJ,MAAI,CAACM,QAAQ,CAAC;YAAEhB,KAAK,EAAE;UAAM,CAAC,CAAC;QAAA;MAAC,gBAEnD1C,KAAA,CAAAqD,aAAA;QAAKC,KAAK,EAAEzB;MAAc,gBACxB7B,KAAA,CAAAqD,aAAA,CAAClD,gBAAgB;QAACmD,KAAK,EAAE,CAACZ,KAAK,GAAGnB,UAAU,GAAGK;MAAiB,CAAE,CAC/D,CACF,CAAC;IAEV;EAAC;AAAA,EAzBkD3B,SAAS;AAAA,SAAzCkC,uBAAuB,IAAAyB,OAAA;AA4B5CzB,uBAAuB,CAAC0B,YAAY,GAAG;EACrCZ,cAAc,EAAE/C,SAAS,CAAC4D,MAAM,CAACC;AACnC,CAAC","ignoreList":[]}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
3
|
-
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
4
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
5
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
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
|
-
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
8
|
-
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
9
|
-
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
10
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
11
|
-
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
12
|
-
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); }
|
|
13
|
-
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
14
|
-
import React, { Component } from 'react';
|
|
15
|
-
import PropTypes from 'prop-types';
|
|
16
|
-
import { ContentTitle, ContentContainer, FormLabel, FormBlock, FormNumberInput, FormSubmitButton, CancelButton } from '../style/export';
|
|
17
|
-
import SnackBar from '../atoms/Snackbar/index';
|
|
18
|
-
var CustomConfigurator = /*#__PURE__*/function (_Component) {
|
|
19
|
-
function CustomConfigurator(props, context) {
|
|
20
|
-
var _this;
|
|
21
|
-
_classCallCheck(this, CustomConfigurator);
|
|
22
|
-
_this = _callSuper(this, CustomConfigurator, [props, context]);
|
|
23
|
-
var scene = props.state.scene;
|
|
24
|
-
_this.state = {
|
|
25
|
-
dataWidth: scene.width,
|
|
26
|
-
dataHeight: scene.height,
|
|
27
|
-
isSnackBarOpen: false,
|
|
28
|
-
message: ''
|
|
29
|
-
};
|
|
30
|
-
return _this;
|
|
31
|
-
}
|
|
32
|
-
_inherits(CustomConfigurator, _Component);
|
|
33
|
-
return _createClass(CustomConfigurator, [{
|
|
34
|
-
key: "onSubmit",
|
|
35
|
-
value: function onSubmit(event) {
|
|
36
|
-
event.preventDefault();
|
|
37
|
-
var projectActions = this.context.projectActions;
|
|
38
|
-
var _this$state = this.state,
|
|
39
|
-
dataWidth = _this$state.dataWidth,
|
|
40
|
-
dataHeight = _this$state.dataHeight;
|
|
41
|
-
dataWidth = parseInt(dataWidth);
|
|
42
|
-
dataHeight = parseInt(dataHeight);
|
|
43
|
-
if (dataWidth <= 100 || dataHeight <= 100) {
|
|
44
|
-
this.setState({
|
|
45
|
-
isSnackBarOpen: true,
|
|
46
|
-
snackBarMessage: 'Scene size too small'
|
|
47
|
-
});
|
|
48
|
-
} else {
|
|
49
|
-
projectActions.setProjectProperties({
|
|
50
|
-
width: dataWidth,
|
|
51
|
-
height: dataHeight
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}, {
|
|
56
|
-
key: "render",
|
|
57
|
-
value: function render() {
|
|
58
|
-
var _this2 = this;
|
|
59
|
-
var _this$props = this.props,
|
|
60
|
-
width = _this$props.width,
|
|
61
|
-
height = _this$props.height;
|
|
62
|
-
var _this$state2 = this.state,
|
|
63
|
-
dataWidth = _this$state2.dataWidth,
|
|
64
|
-
dataHeight = _this$state2.dataHeight;
|
|
65
|
-
var _this$context = this.context,
|
|
66
|
-
projectActions = _this$context.projectActions,
|
|
67
|
-
translator = _this$context.translator;
|
|
68
|
-
return /*#__PURE__*/React.createElement(ContentContainer, {
|
|
69
|
-
width: width,
|
|
70
|
-
height: height
|
|
71
|
-
}, /*#__PURE__*/React.createElement(SnackBar, {
|
|
72
|
-
isOpen: this.state.isSnackBarOpen,
|
|
73
|
-
message: this.state.snackBarMessage,
|
|
74
|
-
handleClose: function handleClose() {
|
|
75
|
-
return _this2.setState({
|
|
76
|
-
isSnackBarOpen: false,
|
|
77
|
-
snackBarMessage: ''
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
}));
|
|
81
|
-
}
|
|
82
|
-
}]);
|
|
83
|
-
}(Component);
|
|
84
|
-
export { CustomConfigurator as default };
|
|
85
|
-
CustomConfigurator.propTypes = {
|
|
86
|
-
width: PropTypes.number.isRequired,
|
|
87
|
-
height: PropTypes.number.isRequired,
|
|
88
|
-
state: PropTypes.object.isRequired
|
|
89
|
-
};
|
|
90
|
-
CustomConfigurator.contextTypes = {
|
|
91
|
-
projectActions: PropTypes.object.isRequired,
|
|
92
|
-
translator: PropTypes.object.isRequired
|
|
93
|
-
};
|
|
94
|
-
//# sourceMappingURL=custom-configurator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"custom-configurator.js","names":["React","Component","PropTypes","ContentTitle","ContentContainer","FormLabel","FormBlock","FormNumberInput","FormSubmitButton","CancelButton","SnackBar","CustomConfigurator","_Component","props","context","_this","_classCallCheck","_callSuper","scene","state","dataWidth","width","dataHeight","height","isSnackBarOpen","message","_inherits","_createClass","key","value","onSubmit","event","preventDefault","projectActions","_this$state","parseInt","setState","snackBarMessage","setProjectProperties","render","_this2","_this$props","_this$state2","_this$context","translator","createElement","isOpen","handleClose","default","propTypes","number","isRequired","object","contextTypes"],"sources":["../../../src/components/configurator/custom-configurator.jsx"],"sourcesContent":["import React, { Component } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport {\r\n ContentTitle,\r\n ContentContainer,\r\n FormLabel,\r\n FormBlock,\r\n FormNumberInput,\r\n FormSubmitButton,\r\n CancelButton\r\n} from '../style/export';\r\nimport SnackBar from '../atoms/Snackbar/index';\r\n\r\nexport default class CustomConfigurator extends Component {\r\n constructor(props, context) {\r\n super(props, context);\r\n\r\n let scene = props.state.scene;\r\n\r\n this.state = {\r\n dataWidth: scene.width,\r\n dataHeight: scene.height,\r\n isSnackBarOpen: false,\r\n message: ''\r\n };\r\n }\r\n\r\n onSubmit(event) {\r\n event.preventDefault();\r\n\r\n let { projectActions } = this.context;\r\n\r\n let { dataWidth, dataHeight } = this.state;\r\n dataWidth = parseInt(dataWidth);\r\n dataHeight = parseInt(dataHeight);\r\n if (dataWidth <= 100 || dataHeight <= 100) {\r\n this.setState({\r\n isSnackBarOpen: true,\r\n snackBarMessage: 'Scene size too small'\r\n });\r\n } else {\r\n projectActions.setProjectProperties({\r\n width: dataWidth,\r\n height: dataHeight\r\n });\r\n }\r\n }\r\n\r\n render() {\r\n let { width, height } = this.props;\r\n let { dataWidth, dataHeight } = this.state;\r\n let { projectActions, translator } = this.context;\r\n\r\n return (\r\n <ContentContainer width={width} height={height}>\r\n <SnackBar\r\n isOpen={this.state.isSnackBarOpen}\r\n message={this.state.snackBarMessage}\r\n handleClose={() =>\r\n this.setState({ isSnackBarOpen: false, snackBarMessage: '' })\r\n }\r\n />\r\n </ContentContainer>\r\n );\r\n }\r\n}\r\n\r\nCustomConfigurator.propTypes = {\r\n width: PropTypes.number.isRequired,\r\n height: PropTypes.number.isRequired,\r\n state: PropTypes.object.isRequired\r\n};\r\n\r\nCustomConfigurator.contextTypes = {\r\n projectActions: PropTypes.object.isRequired,\r\n translator: PropTypes.object.isRequired\r\n};\r\n"],"mappings":";;;;;;;;;;;;;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,OAAOC,SAAS,MAAM,YAAY;AAClC,SACEC,YAAY,EACZC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