kitchen-simulator 5.0.0-test.5 → 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 +24 -41
- package/src/@history.js +3 -0
- package/src/AppContext.js +5 -0
- package/src/KitchenConfigurator.jsx +1517 -0
- package/src/KitchenConfiguratorApp.jsx +443 -0
- package/src/actions/area-actions.js +15 -0
- package/src/actions/export.js +38 -0
- package/src/actions/groups-actions.js +102 -0
- package/src/actions/holes-actions.js +152 -0
- package/src/actions/items-actions.js +393 -0
- package/src/actions/lines-actions.js +103 -0
- package/src/actions/project-actions.js +391 -0
- package/src/actions/scene-actions.js +44 -0
- package/src/actions/user-actions.js +75 -0
- package/src/actions/vertices-actions.js +34 -0
- package/src/actions/viewer2d-actions.js +79 -0
- package/src/actions/viewer3d-actions.js +32 -0
- package/src/catalog/areas/area/planner-element.jsx +43 -0
- package/src/catalog/catalog.js +258 -0
- package/src/catalog/factories/area-factory-3d.js +252 -0
- package/src/catalog/factories/area-factory.jsx +102 -0
- package/src/catalog/factories/export.js +9 -0
- package/src/catalog/factories/wall-factory-3d.js +296 -0
- package/src/catalog/factories/wall-factory.jsx +321 -0
- package/src/catalog/holes/door-closet/planner-element.jsx +251 -0
- package/src/catalog/holes/door-double/planner-element.jsx +391 -0
- package/src/catalog/holes/door-exterior/planner-element.jsx +245 -0
- package/src/catalog/holes/door-interior/planner-element.jsx +256 -0
- package/src/catalog/holes/door-panic/planner-element.jsx +594 -0
- package/src/catalog/holes/door-panic-double/planner-element.jsx +574 -0
- package/src/catalog/holes/door-sliding/planner-element.jsx +256 -0
- package/src/catalog/holes/doorway-framed/planner-element.jsx +169 -0
- package/src/catalog/holes/doorway-frameless/planner-element.jsx +116 -0
- package/src/catalog/holes/window-clear/planner-element.jsx +181 -0
- package/src/catalog/holes/window-cross/planner-element.jsx +180 -0
- package/src/catalog/holes/window-double-hung/planner-element.jsx +366 -0
- package/src/catalog/holes/window-vertical/planner-element.jsx +290 -0
- package/src/catalog/lines/wall/planner-element.jsx +73 -0
- package/src/catalog/molding/molding-dcm/planner-element.jsx +35 -0
- package/src/catalog/molding/molding-fbm/planner-element.jsx +35 -0
- package/src/catalog/molding/molding-lrm/planner-element.jsx +35 -0
- package/src/catalog/properties/export.js +33 -0
- package/src/catalog/properties/property-checkbox.jsx +123 -0
- package/src/catalog/properties/property-color.jsx +52 -0
- package/src/catalog/properties/property-enum.jsx +87 -0
- package/src/catalog/properties/property-hidden.jsx +22 -0
- package/src/catalog/properties/property-lenght-measure.jsx +113 -0
- package/src/catalog/properties/property-length-measure.jsx +129 -0
- package/src/catalog/properties/property-length-measure_hole.jsx +110 -0
- package/src/catalog/properties/property-number.jsx +63 -0
- package/src/catalog/properties/property-read-only.jsx +37 -0
- package/src/catalog/properties/property-string.jsx +59 -0
- package/src/catalog/properties/property-toggle.jsx +51 -0
- package/src/catalog/properties/shared-property-style.js +13 -0
- package/src/catalog/utils/FuseUtils.js +61 -0
- package/src/catalog/utils/exporter.js +173 -0
- package/src/catalog/utils/geom-utils.js +301 -0
- package/src/catalog/utils/item-loader.jsx +2122 -0
- package/src/catalog/utils/load-obj.js +113 -0
- package/src/catalog/utils/mtl-loader.js +462 -0
- package/src/catalog/utils/obj-loader.js +544 -0
- package/src/class/FuseUtils.js +61 -0
- package/src/class/area.js +159 -0
- package/src/class/export.js +37 -0
- package/src/class/group.js +565 -0
- package/src/class/guide.js +44 -0
- package/src/class/hole.js +1359 -0
- package/src/class/item.js +2050 -0
- package/src/class/layer.js +926 -0
- package/src/class/line.js +1780 -0
- package/src/class/project.js +875 -0
- package/src/class/vertex.js +409 -0
- package/src/components/atoms/Snackbar/index.jsx +43 -0
- package/src/components/atoms/radio-button/index.jsx +20 -0
- package/src/components/atoms/radio-button/styles.js +56 -0
- package/src/components/button/MainButton.jsx +157 -0
- package/src/components/button/ToggleMeasureButton.jsx +65 -0
- package/src/components/catalog-view/catalog-breadcrumb.jsx +53 -0
- package/src/components/catalog-view/catalog-item.jsx +229 -0
- package/src/components/catalog-view/catalog-list.jsx +173 -0
- package/src/components/catalog-view/catalog-page-item.jsx +110 -0
- package/src/components/catalog-view/catalog-turn-back-page-item.jsx +80 -0
- package/src/components/configurator/custom-configurator.jsx +77 -0
- package/src/components/configurator/project-configurator.jsx +120 -0
- package/src/components/content.jsx +136 -0
- package/src/components/export.js +36 -0
- package/src/components/firstsetting/button/styles.js +223 -0
- package/src/components/firstsetting/export.js +9 -0
- package/src/components/firstsetting/firstsetting-content-button.jsx +198 -0
- package/src/components/firstsetting/firstsetting-toggle-button.jsx +101 -0
- package/src/components/firstsetting/firstsetting.jsx +814 -0
- package/src/components/footerbar/button/ControlButton.jsx +43 -0
- package/src/components/footerbar/button/DirectionButton.jsx +54 -0
- package/src/components/footerbar/button/DirectionPanSpinButton.jsx +36 -0
- package/src/components/footerbar/button/ToggleButton.jsx +58 -0
- package/src/components/footerbar/button/ToggleConvertButton.jsx +48 -0
- package/src/components/footerbar/button/ToggleMeasureButton.jsx +33 -0
- package/src/components/footerbar/button/styles.js +217 -0
- package/src/components/footerbar/export.js +9 -0
- package/src/components/footerbar/footer-content-button.jsx +198 -0
- package/src/components/footerbar/footer-toggle-button.jsx +101 -0
- package/src/components/footerbar/footerbar.jsx +1103 -0
- package/src/components/footerbar/styles.js +263 -0
- package/src/components/header/button/MenuButton.jsx +46 -0
- package/src/components/header/button/SaveButton.jsx +54 -0
- package/src/components/header/button/styles.js +181 -0
- package/src/components/header/export.js +5 -0
- package/src/components/header/header.jsx +631 -0
- package/src/components/header/styles.js +320 -0
- package/src/components/login/Login.js +77 -0
- package/src/components/login/LoginForm/index.js +108 -0
- package/src/components/login/Register.js +83 -0
- package/src/components/login/RegisterForm/index.js +171 -0
- package/src/components/login/jwtService.js +201 -0
- package/src/components/molecules/slider/index.jsx +15 -0
- package/src/components/molecules/slider/styles.js +0 -0
- package/src/components/myprojects/export.js +5 -0
- package/src/components/myprojects/index.jsx +445 -0
- package/src/components/myprojects/styles.js +241 -0
- package/src/components/sidebar/custom-accordion.jsx +48 -0
- package/src/components/sidebar/export.js +15 -0
- package/src/components/sidebar/panel-element-editor/attributes-editor/attributes-editor.jsx +73 -0
- package/src/components/sidebar/panel-element-editor/attributes-editor/confirm-popup.jsx +101 -0
- package/src/components/sidebar/panel-element-editor/attributes-editor/hole-attributes-editor.jsx +149 -0
- package/src/components/sidebar/panel-element-editor/attributes-editor/item-attributes-editor.jsx +316 -0
- package/src/components/sidebar/panel-element-editor/attributes-editor/line-attributes-editor.jsx +108 -0
- package/src/components/sidebar/panel-element-editor/element-editor.jsx +1070 -0
- package/src/components/sidebar/panel-element-editor/multi-elements-editor.jsx +0 -0
- package/src/components/sidebar/panel-element-editor/panel-element-editor.jsx +104 -0
- package/src/components/sidebar/panel-element-editor/panel-multi-elements-editor.jsx +155 -0
- package/src/components/sidebar/panel-group-editor.jsx +272 -0
- package/src/components/sidebar/panel-groups.jsx +310 -0
- package/src/components/sidebar/panel-guides.jsx +192 -0
- package/src/components/sidebar/panel-layer-elements.jsx +298 -0
- package/src/components/sidebar/panel-layers.jsx +381 -0
- package/src/components/sidebar/panel.jsx +71 -0
- package/src/components/sidebar/sidebar.jsx +106 -0
- package/src/components/sidebar/toolbar-panel.jsx +139 -0
- package/src/components/sign/export.js +7 -0
- package/src/components/sign/main/index.jsx +523 -0
- package/src/components/sign/main/styles.js +163 -0
- package/src/components/style/button.jsx +95 -0
- package/src/components/style/cancel-button.jsx +20 -0
- package/src/components/style/content-container.jsx +29 -0
- package/src/components/style/content-title.jsx +20 -0
- package/src/components/style/delete-button.jsx +23 -0
- package/src/components/style/export.jsx +48 -0
- package/src/components/style/form-block.jsx +13 -0
- package/src/components/style/form-color-input.jsx +27 -0
- package/src/components/style/form-label.jsx +15 -0
- package/src/components/style/form-number-input.jsx +196 -0
- package/src/components/style/form-number-input_2.jsx +191 -0
- package/src/components/style/form-select.jsx +38 -0
- package/src/components/style/form-slider.jsx +36 -0
- package/src/components/style/form-submit-button.jsx +23 -0
- package/src/components/style/form-text-input.jsx +65 -0
- package/src/components/toolbar/button/ControlButton.jsx +41 -0
- package/src/components/toolbar/button/DirectionButton.jsx +34 -0
- package/src/components/toolbar/button/RightButton.jsx +103 -0
- package/src/components/toolbar/button/ToggleButton.jsx +41 -0
- package/src/components/toolbar/button/index.jsx +55 -0
- package/src/components/toolbar/button/styles.js +127 -0
- package/src/components/toolbar/components/DoorStyleMenu.jsx +103 -0
- package/src/components/toolbar/components/Pricing.jsx +126 -0
- package/src/components/toolbar/components/ReviewForQuote.jsx +635 -0
- package/src/components/toolbar/export.js +21 -0
- package/src/components/toolbar/main/Alert.js +122 -0
- package/src/components/toolbar/main/TakePictureModal.jsx +104 -0
- package/src/components/toolbar/main/confirm-popup.jsx +99 -0
- package/src/components/toolbar/main/index.jsx +5687 -0
- package/src/components/toolbar/main/myComponents.js +123 -0
- package/src/components/toolbar/main/styles.js +696 -0
- package/src/components/toolbar/plugin-item.jsx +123 -0
- package/src/components/toolbar/popup/appliance/appliance-category/index.jsx +73 -0
- package/src/components/toolbar/popup/appliance/choose-appliance/index.jsx +102 -0
- package/src/components/toolbar/popup/appliance/index.jsx +83 -0
- package/src/components/toolbar/popup/autosaveprompt/index.jsx +150 -0
- package/src/components/toolbar/popup/autosaveprompt/styles.js +40 -0
- package/src/components/toolbar/popup/cabinet/cabinet-category/index.jsx +73 -0
- package/src/components/toolbar/popup/cabinet/choose-product/index.jsx +119 -0
- package/src/components/toolbar/popup/cabinet/index.jsx +85 -0
- package/src/components/toolbar/popup/doorStyle/choose-style/index.jsx +63 -0
- package/src/components/toolbar/popup/doorStyle/index.jsx +71 -0
- package/src/components/toolbar/popup/doorStyle/style-category/index.jsx +139 -0
- package/src/components/toolbar/popup/downloadsummary/downloadSummaryContext.js +2 -0
- package/src/components/toolbar/popup/downloadsummary/downloadSummaryTemp.jsx +157 -0
- package/src/components/toolbar/popup/downloadsummary/index.jsx +643 -0
- package/src/components/toolbar/popup/downloadsummary/show2D/show2DView.jsx +51 -0
- package/src/components/toolbar/popup/downloadsummary/show2D/viewer2DDownLoad.jsx +175 -0
- package/src/components/toolbar/popup/downloadsummary/show3D/show3DView.jsx +283 -0
- package/src/components/toolbar/popup/downloadsummary/show3D/viewer3DDownLoad.jsx +2257 -0
- package/src/components/toolbar/popup/downloadsummary/showCabinetInfo.js +93 -0
- package/src/components/toolbar/popup/downloadsummary/showElevation/showElevationView.jsx +132 -0
- package/src/components/toolbar/popup/downloadsummary/showElevation/viewer3DElevationDownload.jsx +2198 -0
- package/src/components/toolbar/popup/downloadsummary/showElevation/viewerElevationDownload.jsx +152 -0
- package/src/components/toolbar/popup/downloadsummary/showWarranty.jsx +149 -0
- package/src/components/toolbar/popup/downloadsummary/styles.js +453 -0
- package/src/components/toolbar/popup/finishingtouch/category/index.jsx +34 -0
- package/src/components/toolbar/popup/finishingtouch/index.jsx +58 -0
- package/src/components/toolbar/popup/finishingtouch/material-edit.jsx +112 -0
- package/src/components/toolbar/popup/finishingtouch/product/index.jsx +116 -0
- package/src/components/toolbar/popup/floorplan/choose-floor/confirm-popup.jsx +101 -0
- package/src/components/toolbar/popup/floorplan/choose-floor/index.jsx +254 -0
- package/src/components/toolbar/popup/floorplan/choose-floor/styles.js +86 -0
- package/src/components/toolbar/popup/floorplan/floor-category/index.jsx +109 -0
- package/src/components/toolbar/popup/floorplan/index.jsx +60 -0
- package/src/components/toolbar/popup/index.jsx +241 -0
- package/src/components/toolbar/popup/newproject/index.jsx +59 -0
- package/src/components/toolbar/popup/newproject/styles.js +41 -0
- package/src/components/toolbar/popup/product/appliance.jsx +54 -0
- package/src/components/toolbar/popup/product/cabinetproduct.jsx +15 -0
- package/src/components/toolbar/popup/product/doorstyle.jsx +58 -0
- package/src/components/toolbar/popup/product/doorstyleproduct.jsx +47 -0
- package/src/components/toolbar/popup/product/floor.jsx +36 -0
- package/src/components/toolbar/popup/product/floorproduct.jsx +42 -0
- package/src/components/toolbar/popup/product/index.jsx +36 -0
- package/src/components/toolbar/popup/product/primary.jsx +77 -0
- package/src/components/toolbar/popup/product/productline.jsx +93 -0
- package/src/components/toolbar/popup/product/reviewItem.jsx +427 -0
- package/src/components/toolbar/popup/product/reviewMolding.jsx +310 -0
- package/src/components/toolbar/popup/product/styles.js +260 -0
- package/src/components/toolbar/popup/savedesign/FullPictureForm.jsx +146 -0
- package/src/components/toolbar/popup/savedesign/index.jsx +495 -0
- package/src/components/toolbar/popup/savedesign/styles.js +151 -0
- package/src/components/toolbar/popup/setDoorStyleOption/index.jsx +87 -0
- package/src/components/toolbar/popup/styles.js +909 -0
- package/src/components/toolbar/popup/submitforquote/AddToCartOptions.jsx +192 -0
- package/src/components/toolbar/popup/submitforquote/CustomerRequestsForm.jsx +96 -0
- package/src/components/toolbar/popup/submitforquote/SkipDesignerReview.jsx +54 -0
- package/src/components/toolbar/popup/submitforquote/StepDots.jsx +25 -0
- package/src/components/toolbar/popup/submitforquote/cart-choice.jsx +116 -0
- package/src/components/toolbar/popup/submitforquote/doorstyle-menus.js +38 -0
- package/src/components/toolbar/popup/submitforquote/index.jsx +698 -0
- package/src/components/toolbar/popup/submitforquote/styles.js +294 -0
- package/src/components/toolbar/popup/submitprompt/index.jsx +89 -0
- package/src/components/toolbar/popup/submitprompt/styles.js +42 -0
- package/src/components/toolbar/toolbar-button.jsx +90 -0
- package/src/components/toolbar/toolbar-load-button.jsx +36 -0
- package/src/components/toolbar/toolbar-save-button.jsx +32 -0
- package/src/components/tutorial-view/Modal.jsx +584 -0
- package/src/components/tutorial-view/styles.js +65 -0
- package/src/components/viewer2d/area.jsx +98 -0
- package/src/components/viewer2d/export.js +48 -0
- package/src/components/viewer2d/grids/grid-horizontal-streak.jsx +40 -0
- package/src/components/viewer2d/grids/grid-streak.jsx +32 -0
- package/src/components/viewer2d/grids/grid-vertical-streak.jsx +41 -0
- package/src/components/viewer2d/grids/grids.jsx +30 -0
- package/src/components/viewer2d/group.jsx +57 -0
- package/src/components/viewer2d/item.jsx +618 -0
- package/src/components/viewer2d/layer.jsx +214 -0
- package/src/components/viewer2d/line.jsx +1358 -0
- package/src/components/viewer2d/ruler.jsx +136 -0
- package/src/components/viewer2d/rulerDist.jsx +192 -0
- package/src/components/viewer2d/rulerX.jsx +141 -0
- package/src/components/viewer2d/rulerY.jsx +138 -0
- package/src/components/viewer2d/scene.jsx +94 -0
- package/src/components/viewer2d/snap.jsx +118 -0
- package/src/components/viewer2d/state.jsx +77 -0
- package/src/components/viewer2d/utils.js +195 -0
- package/src/components/viewer2d/vertex.jsx +76 -0
- package/src/components/viewer2d/viewer2d.jsx +1830 -0
- package/src/components/viewer3d/camera-controls-module/camera-controls.module.js +3078 -0
- package/src/components/viewer3d/dcm.js +226 -0
- package/src/components/viewer3d/fbm.js +383 -0
- package/src/components/viewer3d/front3D.jsx +63 -0
- package/src/components/viewer3d/grid-creator.js +25 -0
- package/src/components/viewer3d/grids/grid-horizontal-streak.js +41 -0
- package/src/components/viewer3d/grids/grid-streak.js +34 -0
- package/src/components/viewer3d/grids/grid-vertical-streak.js +42 -0
- package/src/components/viewer3d/libs/first-person-controls.js +70 -0
- package/src/components/viewer3d/libs/helvetiker_regular.typeface.js +1265 -0
- package/src/components/viewer3d/libs/mtl-loader.js +462 -0
- package/src/components/viewer3d/libs/obj-loader.js +653 -0
- package/src/components/viewer3d/libs/orbit-controls.js +945 -0
- package/src/components/viewer3d/libs/pointer-lock-controls.js +67 -0
- package/src/components/viewer3d/lrm.js +358 -0
- package/src/components/viewer3d/model.js +830 -0
- package/src/components/viewer3d/pointer-lock-navigation.js +140 -0
- package/src/components/viewer3d/ruler-utils/itemRect.jsx +91 -0
- package/src/components/viewer3d/ruler-utils/layer3D.jsx +528 -0
- package/src/components/viewer3d/ruler-utils/ruler3D.jsx +218 -0
- package/src/components/viewer3d/ruler-utils/scene3D.jsx +87 -0
- package/src/components/viewer3d/ruler-utils/state3D.jsx +25 -0
- package/src/components/viewer3d/scene-creator.js +5172 -0
- package/src/components/viewer3d/three-memory-cleaner.js +65 -0
- package/src/components/viewer3d/viewer3d-first-person.js +395 -0
- package/src/components/viewer3d/viewer3d.js +3376 -0
- package/src/components/wizardstep/button/styles.js +677 -0
- package/src/components/wizardstep/export.js +5 -0
- package/src/components/wizardstep/index.jsx +1372 -0
- package/src/components/wizardstep/styles.js +688 -0
- package/src/components/wizardstep/wizardstep-content-button.jsx +198 -0
- package/src/components/wizardstep/wizardstep-toggle-button.jsx +101 -0
- package/src/constants.js +731 -0
- package/src/hooks/useCheckCart.js +38 -0
- package/src/hooks/useGetPricesBySku.js +59 -0
- package/src/hooks/useValidateToken.js +181 -0
- package/src/index.js +32 -0
- package/src/models.js +541 -0
- package/src/plugins/SVGLoader.js +1991 -0
- package/src/plugins/autosave.js +39 -0
- package/src/plugins/console-debugger.js +36 -0
- package/src/plugins/export.js +11 -0
- package/src/plugins/keyboard.js +194 -0
- package/src/reducers/areas-reducer.js +13 -0
- package/src/reducers/export.js +39 -0
- package/src/reducers/groups-reducer.js +73 -0
- package/src/reducers/holes-reducer.js +125 -0
- package/src/reducers/items-reducer.js +286 -0
- package/src/reducers/lines-reducer.js +96 -0
- package/src/reducers/project-reducer.js +239 -0
- package/src/reducers/reducer.js +59 -0
- package/src/reducers/scene-reducer.js +41 -0
- package/src/reducers/user-reducer.js +30 -0
- package/src/reducers/vertices-reducer.js +34 -0
- package/src/reducers/viewer2d-reducer.js +81 -0
- package/src/reducers/viewer3d-reducer.js +65 -0
- package/src/shared-style.js +72 -0
- package/src/styles/export.js +7 -0
- package/src/translator/en.js +106 -0
- package/src/translator/it.js +80 -0
- package/src/translator/ru.js +80 -0
- package/src/translator/translator.js +81 -0
- package/src/utils/browser.js +36 -0
- package/src/utils/email-validator.js +5 -0
- package/src/utils/export.js +39 -0
- package/src/utils/geometry.js +2572 -0
- package/src/utils/get-edges-of-subgraphs.js +29 -0
- package/src/utils/graph-cycles.js +259 -0
- package/src/utils/graph-inner-cycles.js +49 -0
- package/src/utils/graph.js +147 -0
- package/src/utils/helper.js +431 -0
- package/src/utils/history.js +37 -0
- package/src/utils/id-broker.js +9 -0
- package/src/utils/logger.js +8 -0
- package/src/utils/math.js +51 -0
- package/src/utils/molding.js +973 -0
- package/src/utils/name-generator.js +5 -0
- package/src/utils/objects-utils.js +56 -0
- package/src/utils/phone-validator.js +4 -0
- package/src/utils/process-black-list.js +10 -0
- package/src/utils/react-if.jsx +20 -0
- package/src/utils/snap-scene.js +102 -0
- package/src/utils/snap.js +184 -0
- package/src/utils/threeCSG.es6.js +578 -0
- package/src/version.js +1 -0
- 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/catalog.js +0 -278
- package/es/catalog/catalog.js.map +0 -1
- 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/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/planner-element.js +0 -504
- package/es/catalog/holes/door-panic/planner-element.js.map +0 -1
- 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/window-clear/planner-element.js +0 -167
- package/es/catalog/holes/window-clear/planner-element.js.map +0 -1
- 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-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-vertical/planner-element.js +0 -277
- package/es/catalog/holes/window-vertical/planner-element.js.map +0 -1
- package/es/catalog/lines/wall/planner-element.js +0 -71
- package/es/catalog/lines/wall/planner-element.js.map +0 -1
- 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-fbm/planner-element.js +0 -30
- package/es/catalog/molding/molding-fbm/planner-element.js.map +0 -1
- 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/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/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/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/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/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/myComponents.js +0 -118
- package/es/components/toolbar/main/myComponents.js.map +0 -1
- 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.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.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/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.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/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/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.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.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/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/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
- /package/{es → src}/catalog/areas/area/textures/ceramic-tile.jpg +0 -0
- /package/{es → src}/catalog/areas/area/textures/grass.jpg +0 -0
- /package/{es → src}/catalog/areas/area/textures/parquet.jpg +0 -0
- /package/{es → src}/catalog/areas/area/textures/strand-porcelain.jpg +0 -0
- /package/{es → src}/catalog/areas/area/textures/tile1.jpg +0 -0
- /package/{es → src}/catalog/back.png +0 -0
- /package/{es → src}/catalog/doors.png +0 -0
- /package/{es → src}/catalog/doorways.png +0 -0
- /package/{es → src}/catalog/envMap/nx.hdr +0 -0
- /package/{es → src}/catalog/envMap/ny.hdr +0 -0
- /package/{es → src}/catalog/envMap/nz.hdr +0 -0
- /package/{es → src}/catalog/envMap/px.hdr +0 -0
- /package/{es → src}/catalog/envMap/py.hdr +0 -0
- /package/{es → src}/catalog/envMap/pz.hdr +0 -0
- /package/{es → src}/catalog/holes/door-double/door_double.png +0 -0
- /package/{es → src}/catalog/holes/door-panic/panicDoor.png +0 -0
- /package/{es → src}/catalog/holes/door-panic-double/panicDoorDouble.png +0 -0
- /package/{es → src}/catalog/holes/gate/gate.jpg +0 -0
- /package/{es → src}/catalog/holes/window-clear/texture.png +0 -0
- /package/{es → src}/catalog/holes/window-cross/texture.png +0 -0
- /package/{es → src}/catalog/holes/window-double-hung/texture.png +0 -0
- /package/{es → src}/catalog/holes/window-vertical/texture.png +0 -0
- /package/{es → src}/catalog/lines/wall/textures/bricks-normal.jpg +0 -0
- /package/{es → src}/catalog/lines/wall/textures/bricks-normal2.jpg +0 -0
- /package/{es → src}/catalog/lines/wall/textures/bricks.jpg +0 -0
- /package/{es → src}/catalog/lines/wall/textures/bricks2.jpg +0 -0
- /package/{es → src}/catalog/lines/wall/textures/bricks3.jpg +0 -0
- /package/{es → src}/catalog/lines/wall/textures/morden-normal.jpg +0 -0
- /package/{es → src}/catalog/lines/wall/textures/morden.jpg +0 -0
- /package/{es → src}/catalog/lines/wall/textures/painted-normal.jpg +0 -0
- /package/{es → src}/catalog/lines/wall/textures/painted.jpg +0 -0
- /package/{es → src}/catalog/lines/wall/textures/plaster-normal.jpg +0 -0
- /package/{es → src}/catalog/lines/wall/textures/plaster.jpg +0 -0
- /package/{es → src}/catalog/lines/wall/wall.png +0 -0
- /package/{es → src}/catalog/molding/molding-dcm/texture.png +0 -0
- /package/{es → src}/catalog/molding/molding-fbm/texture.png +0 -0
- /package/{es → src}/catalog/molding/molding-lrm/texture.png +0 -0
- /package/{es → src}/catalog/windows.png +0 -0
- /package/{es → src}/components/header/header.style.css +0 -0
- /package/{es → src}/components/login/style.css +0 -0
- /package/{es → src}/components/login/style.scss +0 -0
- /package/{es → src}/components/molecules/slider/styles.scss +0 -0
- /package/{es → src}/components/toolbar/main/lShaped.json +0 -0
- /package/{es → src}/components/toolbar/main/longNarrow.json +0 -0
- /package/{es → src}/components/toolbar/main/oRectangle.json +0 -0
- /package/{es → src}/components/toolbar/main/rectangle.json +0 -0
- /package/{es → src}/components/toolbar/main/style.css +0 -0
- /package/{es → src}/components/toolbar/popup/autosaveprompt/styles.css +0 -0
- /package/{es → src}/components/toolbar/popup/downloadsummary/styles.css +0 -0
- /package/{es → src}/components/toolbar/popup/floorplan/choose-floor/lShaped.json +0 -0
- /package/{es → src}/components/toolbar/popup/floorplan/choose-floor/longNarrow.json +0 -0
- /package/{es → src}/components/toolbar/popup/floorplan/choose-floor/oRectangle.json +0 -0
- /package/{es → src}/components/toolbar/popup/floorplan/choose-floor/rectangle.json +0 -0
- /package/{es → src}/components/toolbar/popup/newproject/styles.css +0 -0
- /package/{es → src}/components/toolbar/popup/product/style.css +0 -0
- /package/{es → src}/components/toolbar/popup/savedesign/savedesign.style.css +0 -0
- /package/{es → src}/components/toolbar/popup/submitforquote/styles.css +0 -0
- /package/{es → src}/components/toolbar/popup/submitprompt/styles.css +0 -0
- /package/{es → src}/components/tutorial-view/style.css +0 -0
- /package/{es → src}/styles/tabs.css +0 -0
|
@@ -1,92 +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
|
-
var _templateObject, _templateObject2, _templateObject3;
|
|
3
|
-
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; }
|
|
4
|
-
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; }
|
|
5
|
-
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; }
|
|
6
|
-
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
7
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
8
|
-
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); } }
|
|
9
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
10
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
11
|
-
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); }
|
|
12
|
-
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
13
|
-
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); }
|
|
14
|
-
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
15
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
16
|
-
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
17
|
-
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); }
|
|
18
|
-
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
19
|
-
import React, { Component } from 'react';
|
|
20
|
-
import PropTypes from 'prop-types';
|
|
21
|
-
import styled from 'styled-components';
|
|
22
|
-
import { BG_COLOR_0, BG_COLOR_1, BG_COLOR_HOVER, DEFAULT_FONT_FAMILY, PRIMARY_GREEN_COLOR, SECONDARY_PURPLE_COLOR, SHADE_DARK_GREEN_COLOR, SHADE_DARK_PURPLE_COLOR, SHADE_LIGHT_GREEN_COLOR, SHADE_LIGHT_PURPLE_COLOR, TEXT_COLOR_NEUTRAL_4 } from '../../constants';
|
|
23
|
-
|
|
24
|
-
/*
|
|
25
|
-
variant: primary, secondary, tertiary(default), icon, close, pagenumber;
|
|
26
|
-
size: large, small(default);
|
|
27
|
-
disabled: true, false(default);
|
|
28
|
-
text: user definition;
|
|
29
|
-
icon: user definition;
|
|
30
|
-
endIcon: user definition;
|
|
31
|
-
onClick: user definition;
|
|
32
|
-
buttonStyle: user definition;
|
|
33
|
-
textStyle: user definition;
|
|
34
|
-
imgStyle: userdefinition;
|
|
35
|
-
*/
|
|
36
|
-
var MainButton = /*#__PURE__*/function (_Component) {
|
|
37
|
-
function MainButton(props, context) {
|
|
38
|
-
_classCallCheck(this, MainButton);
|
|
39
|
-
return _callSuper(this, MainButton, [props, context]);
|
|
40
|
-
}
|
|
41
|
-
_inherits(MainButton, _Component);
|
|
42
|
-
return _createClass(MainButton, [{
|
|
43
|
-
key: "render",
|
|
44
|
-
value: function render() {
|
|
45
|
-
var _this$props = this.props,
|
|
46
|
-
variant = _this$props.variant,
|
|
47
|
-
text = _this$props.text,
|
|
48
|
-
size = _this$props.size,
|
|
49
|
-
icon = _this$props.icon,
|
|
50
|
-
endIcon = _this$props.endIcon,
|
|
51
|
-
disabled = _this$props.disabled;
|
|
52
|
-
var padding = '10px 20px';
|
|
53
|
-
if (size === 'large') {
|
|
54
|
-
if (variant === 'icon' || variant === 'pagenumber') padding = '10px';
|
|
55
|
-
} else {
|
|
56
|
-
if (variant === 'icon' || variant === 'pagenumber') padding = '5px';else padding = '5px 10px';
|
|
57
|
-
}
|
|
58
|
-
var StyledButton = styled.button(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n /* width: max-content; */\n display: flex;\n align-items: center;\n justify-content: center;\n padding: ", ";\n border: ", ";\n cursor: ", ";\n user-select: none;\n background-color: ", ";\n border-color: ", ";\n border-radius: ", ";\n outline: 0;\n height: ", ";\n width: ", ";\n :focus {\n box-shadow: ", ";\n }\n :hover {\n background-color: ", ";\n }\n :active {\n background-color: ", ";\n }\n "])), padding, variant === 'primary' ? '0px solid' : '1px solid', disabled ? 'no-drop' : 'pointer', variant === 'primary' ? SECONDARY_PURPLE_COLOR : BG_COLOR_1, variant === 'primary' || variant === 'secondary' ? SECONDARY_PURPLE_COLOR : BG_COLOR_1, variant === 'icon' ? '50%' : '5px', size === 'large' ? '40px' : '35px', variant === 'icon' || variant === 'pagenumber' ? size === 'large' ? '40px' : '35px' : 'max-content', !disabled && "0px 0px 5px 2px ".concat(SHADE_LIGHT_PURPLE_COLOR), !disabled && (variant === 'primary' ? SHADE_LIGHT_PURPLE_COLOR : BG_COLOR_0), !disabled && (variant === 'primary' ? SHADE_DARK_PURPLE_COLOR : BG_COLOR_0));
|
|
59
|
-
var StyledLabel = styled.span(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n color: ", ";\n font-family: ", ";\n font-size: 13px;\n font-weight: 600;\n line-height: 18px;\n text-align: center;\n "])), disabled ? TEXT_COLOR_NEUTRAL_4 : variant === 'primary' ? BG_COLOR_1 : SECONDARY_PURPLE_COLOR, DEFAULT_FONT_FAMILY);
|
|
60
|
-
var StyledImage = styled.img(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n height: ", ";\n width: ", ";\n background-color: ", ";\n -webkit-mask-image: url(", ");\n -webkit-mask-size: 90%;\n -webkit-mask-repeat: no-repeat;\n -webkit-mask-position: center;\n "])), size === 'large' ? '20px' : '15px', size === 'large' ? '20px' : '15px', disabled ? TEXT_COLOR_NEUTRAL_4 : variant !== 'primary' ? SECONDARY_PURPLE_COLOR : BG_COLOR_1, function (props) {
|
|
61
|
-
return props.maskImage + '?nocache=2025';
|
|
62
|
-
});
|
|
63
|
-
if (variant === 'icon' && text) console.log('If your variant is icon, you cannnot use text');
|
|
64
|
-
if (variant === 'icon' && endIcon) console.log('If your variant is icon, you cannnot use endIcon');
|
|
65
|
-
if (variant === 'icon' && (icon || endIcon)) console.log('If your variant is pagenumber, you cannnot use icon or endIcon');
|
|
66
|
-
if (variant === 'close' && icon) console.log('If your variant is close, you cannnot use icon');
|
|
67
|
-
return /*#__PURE__*/React.createElement(StyledButton, {
|
|
68
|
-
onClick: !disabled && this.props.onClick,
|
|
69
|
-
style: _objectSpread({}, this.props.buttonStyle)
|
|
70
|
-
}, variant !== 'pagenumber' && variant !== 'close' && icon && /*#__PURE__*/React.createElement(StyledImage, {
|
|
71
|
-
style: _objectSpread(_objectSpread({}, this.props.imgStyle), {}, {
|
|
72
|
-
marginRight: variant !== 'icon' && 10
|
|
73
|
-
}),
|
|
74
|
-
maskImage: icon
|
|
75
|
-
}), variant !== 'icon' && /*#__PURE__*/React.createElement(StyledLabel, {
|
|
76
|
-
style: _objectSpread({}, this.props.textStyle)
|
|
77
|
-
}, variant === 'pagenumber' ? parseInt(text) ? parseInt(text) : 0 : text), variant !== 'pagenumber' && variant !== 'icon' && endIcon && /*#__PURE__*/React.createElement(StyledImage, {
|
|
78
|
-
style: {
|
|
79
|
-
marginLeft: 10
|
|
80
|
-
},
|
|
81
|
-
maskImage: endIcon
|
|
82
|
-
}));
|
|
83
|
-
}
|
|
84
|
-
}]);
|
|
85
|
-
}(Component);
|
|
86
|
-
export { MainButton as default };
|
|
87
|
-
MainButton.propTypes = {
|
|
88
|
-
variant: PropTypes.string.isRequired,
|
|
89
|
-
size: PropTypes.string.isRequired,
|
|
90
|
-
onClick: PropTypes.func
|
|
91
|
-
};
|
|
92
|
-
//# sourceMappingURL=MainButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MainButton.js","names":["React","Component","PropTypes","styled","BG_COLOR_0","BG_COLOR_1","BG_COLOR_HOVER","DEFAULT_FONT_FAMILY","PRIMARY_GREEN_COLOR","SECONDARY_PURPLE_COLOR","SHADE_DARK_GREEN_COLOR","SHADE_DARK_PURPLE_COLOR","SHADE_LIGHT_GREEN_COLOR","SHADE_LIGHT_PURPLE_COLOR","TEXT_COLOR_NEUTRAL_4","MainButton","_Component","props","context","_classCallCheck","_callSuper","_inherits","_createClass","key","value","render","_this$props","variant","text","size","icon","endIcon","disabled","padding","StyledButton","button","_templateObject","_taggedTemplateLiteral","concat","StyledLabel","span","_templateObject2","StyledImage","img","_templateObject3","maskImage","console","log","createElement","onClick","style","_objectSpread","buttonStyle","imgStyle","marginRight","textStyle","parseInt","marginLeft","default","propTypes","string","isRequired","func"],"sources":["../../../src/components/button/MainButton.jsx"],"sourcesContent":["import React, { Component } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport styled from 'styled-components';\r\nimport {\r\n BG_COLOR_0,\r\n BG_COLOR_1,\r\n BG_COLOR_HOVER,\r\n DEFAULT_FONT_FAMILY,\r\n PRIMARY_GREEN_COLOR,\r\n SECONDARY_PURPLE_COLOR,\r\n SHADE_DARK_GREEN_COLOR,\r\n SHADE_DARK_PURPLE_COLOR,\r\n SHADE_LIGHT_GREEN_COLOR,\r\n SHADE_LIGHT_PURPLE_COLOR,\r\n TEXT_COLOR_NEUTRAL_4\r\n} from '../../constants';\r\n\r\n/*\r\n variant: primary, secondary, tertiary(default), icon, close, pagenumber;\r\n size: large, small(default);\r\n disabled: true, false(default);\r\n text: user definition;\r\n icon: user definition;\r\n endIcon: user definition;\r\n onClick: user definition;\r\n buttonStyle: user definition;\r\n textStyle: user definition;\r\n imgStyle: userdefinition;\r\n*/\r\n\r\nexport default class MainButton extends Component {\r\n constructor(props, context) {\r\n super(props, context);\r\n }\r\n\r\n render() {\r\n const { variant, text, size, icon, endIcon, disabled } = this.props;\r\n let padding = '10px 20px';\r\n\r\n if (size === 'large') {\r\n if (variant === 'icon' || variant === 'pagenumber') padding = '10px';\r\n } else {\r\n if (variant === 'icon' || variant === 'pagenumber') padding = '5px';\r\n else padding = '5px 10px';\r\n }\r\n\r\n const StyledButton = styled.button`\r\n /* width: max-content; */\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n padding: ${padding};\r\n border: ${variant === 'primary' ? '0px solid' : '1px solid'};\r\n cursor: ${disabled ? 'no-drop' : 'pointer'};\r\n user-select: none;\r\n background-color: ${variant === 'primary'\r\n ? SECONDARY_PURPLE_COLOR\r\n : BG_COLOR_1};\r\n border-color: ${variant === 'primary' || variant === 'secondary'\r\n ? SECONDARY_PURPLE_COLOR\r\n : BG_COLOR_1};\r\n border-radius: ${variant === 'icon' ? '50%' : '5px'};\r\n outline: 0;\r\n height: ${size === 'large' ? '40px' : '35px'};\r\n width: ${variant === 'icon' || variant === 'pagenumber'\r\n ? size === 'large'\r\n ? '40px'\r\n : '35px'\r\n : 'max-content'};\r\n :focus {\r\n box-shadow: ${!disabled &&\r\n `0px 0px 5px 2px ${SHADE_LIGHT_PURPLE_COLOR}`};\r\n }\r\n :hover {\r\n background-color: ${!disabled &&\r\n (variant === 'primary' ? SHADE_LIGHT_PURPLE_COLOR : BG_COLOR_0)};\r\n }\r\n :active {\r\n background-color: ${!disabled &&\r\n (variant === 'primary' ? SHADE_DARK_PURPLE_COLOR : BG_COLOR_0)};\r\n }\r\n `;\r\n\r\n const StyledLabel = styled.span`\r\n color: ${disabled\r\n ? TEXT_COLOR_NEUTRAL_4\r\n : variant === 'primary'\r\n ? BG_COLOR_1\r\n : SECONDARY_PURPLE_COLOR};\r\n font-family: ${DEFAULT_FONT_FAMILY};\r\n font-size: 13px;\r\n font-weight: 600;\r\n line-height: 18px;\r\n text-align: center;\r\n `;\r\n\r\n const StyledImage = styled.img`\r\n height: ${size === 'large' ? '20px' : '15px'};\r\n width: ${size === 'large' ? '20px' : '15px'};\r\n background-color: ${disabled\r\n ? TEXT_COLOR_NEUTRAL_4\r\n : variant !== 'primary'\r\n ? SECONDARY_PURPLE_COLOR\r\n : BG_COLOR_1};\r\n -webkit-mask-image: url(${props => props.maskImage + '?nocache=2025'});\r\n -webkit-mask-size: 90%;\r\n -webkit-mask-repeat: no-repeat;\r\n -webkit-mask-position: center;\r\n `;\r\n\r\n if (variant === 'icon' && text)\r\n console.log('If your variant is icon, you cannnot use text');\r\n if (variant === 'icon' && endIcon)\r\n console.log('If your variant is icon, you cannnot use endIcon');\r\n if (variant === 'icon' && (icon || endIcon))\r\n console.log(\r\n 'If your variant is pagenumber, you cannnot use icon or endIcon'\r\n );\r\n if (variant === 'close' && icon)\r\n console.log('If your variant is close, you cannnot use icon');\r\n\r\n return (\r\n <StyledButton\r\n onClick={!disabled && this.props.onClick}\r\n style={{ ...this.props.buttonStyle }}\r\n >\r\n {variant !== 'pagenumber' && variant !== 'close' && icon && (\r\n <StyledImage\r\n style={{\r\n ...this.props.imgStyle,\r\n marginRight: variant !== 'icon' && 10\r\n }}\r\n maskImage={icon}\r\n />\r\n )}\r\n {variant !== 'icon' && (\r\n <StyledLabel style={{ ...this.props.textStyle }}>\r\n {variant === 'pagenumber'\r\n ? parseInt(text)\r\n ? parseInt(text)\r\n : 0\r\n : text}\r\n </StyledLabel>\r\n )}\r\n {variant !== 'pagenumber' && variant !== 'icon' && endIcon && (\r\n <StyledImage style={{ marginLeft: 10 }} maskImage={endIcon} />\r\n )}\r\n </StyledButton>\r\n );\r\n }\r\n}\r\n\r\nMainButton.propTypes = {\r\n variant: PropTypes.string.isRequired,\r\n size: PropTypes.string.isRequired,\r\n onClick: PropTypes.func\r\n};\r\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,MAAM,MAAM,mBAAmB;AACtC,SACEC,UAAU,EACVC,UAAU,EACVC,cAAc,EACdC,mBAAmB,EACnBC,mBAAmB,EACnBC,sBAAsB,EACtBC,sBAAsB,EACtBC,uBAAuB,EACvBC,uBAAuB,EACvBC,wBAAwB,EACxBC,oBAAoB,QACf,iBAAiB;;AAExB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAXA,IAaqBC,UAAU,0BAAAC,UAAA;EAC7B,SAAAD,WAAYE,KAAK,EAAEC,OAAO,EAAE;IAAAC,eAAA,OAAAJ,UAAA;IAAA,OAAAK,UAAA,OAAAL,UAAA,GACpBE,KAAK,EAAEC,OAAO;EACtB;EAACG,SAAA,CAAAN,UAAA,EAAAC,UAAA;EAAA,OAAAM,YAAA,CAAAP,UAAA;IAAAQ,GAAA;IAAAC,KAAA,EAED,SAAAC,MAAMA,CAAA,EAAG;MACP,IAAAC,WAAA,GAAyD,IAAI,CAACT,KAAK;QAA3DU,OAAO,GAAAD,WAAA,CAAPC,OAAO;QAAEC,IAAI,GAAAF,WAAA,CAAJE,IAAI;QAAEC,IAAI,GAAAH,WAAA,CAAJG,IAAI;QAAEC,IAAI,GAAAJ,WAAA,CAAJI,IAAI;QAAEC,OAAO,GAAAL,WAAA,CAAPK,OAAO;QAAEC,QAAQ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FkB,SAAS,EAAEf;MAAK,CACjB,CACF,EACAH,OAAO,KAAK,MAAM,iBACjB3B,KAAA,CAAAgD,aAAA,CAACT,WAAW;QAACW,KAAK,EAAAC,aAAA,KAAO,IAAI,CAAClC,KAAK,CAACsC,SAAS;MAAG,GAC7C5B,OAAO,KAAK,YAAY,GACrB6B,QAAQ,CAAC5B,IAAI,CAAC,GACZ4B,QAAQ,CAAC5B,IAAI,CAAC,GACd,CAAC,GACHA,IACO,CACd,EACAD,OAAO,KAAK,YAAY,IAAIA,OAAO,KAAK,MAAM,IAAII,OAAO,iBACxD/B,KAAA,CAAAgD,aAAA,CAACN,WAAW;QAACQ,KAAK,EAAE;UAAEO,UAAU,EAAE;QAAG,CAAE;QAACZ,SAAS,EAAEd;MAAQ,CAAE,CAEnD,CAAC;IAEnB;EAAC;AAAA,EAvHqC9B,SAAS;AAAA,SAA5Bc,UAAU,IAAA2C,OAAA;AA0H/B3C,UAAU,CAAC4C,SAAS,GAAG;EACrBhC,OAAO,EAAEzB,SAAS,CAAC0D,MAAM,CAACC,UAAU;EACpChC,IAAI,EAAE3B,SAAS,CAAC0D,MAAM,CAACC,UAAU;EACjCZ,OAAO,EAAE/C,SAAS,CAAC4D;AACrB,CAAC","ignoreList":[]}
|
|
@@ -1,56 +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
|
-
var _templateObject, _templateObject2;
|
|
3
|
-
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; }
|
|
4
|
-
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; }
|
|
5
|
-
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; }
|
|
6
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
7
|
-
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); } }
|
|
8
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
9
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
10
|
-
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); }
|
|
11
|
-
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
12
|
-
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); }
|
|
13
|
-
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
14
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
15
|
-
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
16
|
-
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
17
|
-
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
18
|
-
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
19
|
-
import React, { Component } from 'react';
|
|
20
|
-
import PropTypes from 'prop-types';
|
|
21
|
-
import styled from 'styled-components';
|
|
22
|
-
var Toggle = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n position: relative;\n height: 36px;\n margin-left: 20px;\n justify-content: center;\n font-size: 14px;\n cursor: pointer;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n :hover {\n box-shadow: 0px 3px 5px -1px rgba(156, 154, 154, 0.2),\n 0px 6px 10px 0px rgba(156, 154, 154, 0.39),\n 0px 1px 18px 0px rgba(156, 154, 154, 0.12);\n border-radius: 18px;\n }\n"])));
|
|
23
|
-
var ToggleIcon = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", "\n position: absolute;\n top: 0px;\n img {\n font-size: 1.4rem;\n box-sizing: border-box;\n border-radius: 50%;\n }\n"])), '' /* transition-duration: .3s; */);
|
|
24
|
-
var ToggleMeasureButton = /*#__PURE__*/function (_Component) {
|
|
25
|
-
function ToggleMeasureButton(props, context) {
|
|
26
|
-
_classCallCheck(this, ToggleMeasureButton);
|
|
27
|
-
return _callSuper(this, ToggleMeasureButton, [props, context]);
|
|
28
|
-
}
|
|
29
|
-
_inherits(ToggleMeasureButton, _Component);
|
|
30
|
-
return _createClass(ToggleMeasureButton, [{
|
|
31
|
-
key: "render",
|
|
32
|
-
value: function render() {
|
|
33
|
-
var props = this.props;
|
|
34
|
-
var activeStyle = props.showMeasure === 0 ? {
|
|
35
|
-
left: 0
|
|
36
|
-
} : {
|
|
37
|
-
right: 0
|
|
38
|
-
};
|
|
39
|
-
return /*#__PURE__*/React.createElement(Toggle, {
|
|
40
|
-
onClick: props.onClick,
|
|
41
|
-
style: _objectSpread({}, props.style)
|
|
42
|
-
}, props.backgroundImage, [props.icon !== undefined ? /*#__PURE__*/React.createElement(ToggleIcon, {
|
|
43
|
-
style: _objectSpread({}, activeStyle),
|
|
44
|
-
key: props.icon
|
|
45
|
-
}, props.icon) : null]);
|
|
46
|
-
}
|
|
47
|
-
}]);
|
|
48
|
-
}(Component);
|
|
49
|
-
export { ToggleMeasureButton as default };
|
|
50
|
-
ToggleMeasureButton.propTypes = {
|
|
51
|
-
title: PropTypes.string,
|
|
52
|
-
hover: PropTypes.bool,
|
|
53
|
-
active: PropTypes.bool.isRequired,
|
|
54
|
-
onClick: PropTypes.func
|
|
55
|
-
};
|
|
56
|
-
//# sourceMappingURL=ToggleMeasureButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ToggleMeasureButton.js","names":["React","Component","PropTypes","styled","Toggle","div","_templateObject","_taggedTemplateLiteral","ToggleIcon","_templateObject2","ToggleMeasureButton","_Component","props","context","_classCallCheck","_callSuper","_inherits","_createClass","key","value","render","activeStyle","showMeasure","left","right","createElement","onClick","style","_objectSpread","backgroundImage","icon","undefined","default","propTypes","title","string","hover","bool","active","isRequired","func"],"sources":["../../../src/components/button/ToggleMeasureButton.jsx"],"sourcesContent":["import React, { Component } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport styled from 'styled-components';\r\n\r\nconst Toggle = styled.div`\r\n display: flex;\r\n align-items: center;\r\n position: relative;\r\n height: 36px;\r\n margin-left: 20px;\r\n justify-content: center;\r\n font-size: 14px;\r\n cursor: pointer;\r\n -webkit-user-select: none;\r\n -moz-user-select: none;\r\n -ms-user-select: none;\r\n user-select: none;\r\n :hover {\r\n box-shadow: 0px 3px 5px -1px rgba(156, 154, 154, 0.2),\r\n 0px 6px 10px 0px rgba(156, 154, 154, 0.39),\r\n 0px 1px 18px 0px rgba(156, 154, 154, 0.12);\r\n border-radius: 18px;\r\n }\r\n`;\r\n\r\nconst ToggleIcon = styled.div`\r\n ${'' /* transition-duration: .3s; */}\r\n position: absolute;\r\n top: 0px;\r\n img {\r\n font-size: 1.4rem;\r\n box-sizing: border-box;\r\n border-radius: 50%;\r\n }\r\n`;\r\n\r\nexport default class ToggleMeasureButton extends Component {\r\n constructor(props, context) {\r\n super(props, context);\r\n }\r\n\r\n render() {\r\n let { props } = this;\r\n let activeStyle = props.showMeasure === 0 ? { left: 0 } : { right: 0 };\r\n return (\r\n <Toggle onClick={props.onClick} style={{ ...props.style }}>\r\n {props.backgroundImage}\r\n {[\r\n props.icon !== undefined ? (\r\n <ToggleIcon style={{ ...activeStyle }} key={props.icon}>\r\n {props.icon}\r\n </ToggleIcon>\r\n ) : null\r\n ]}\r\n </Toggle>\r\n );\r\n }\r\n}\r\n\r\nToggleMeasureButton.propTypes = {\r\n title: PropTypes.string,\r\n hover: PropTypes.bool,\r\n active: PropTypes.bool.isRequired,\r\n onClick: PropTypes.func\r\n};\r\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,OAAOC,SAAS,MAAM,YAAY;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AAG;EAC9BC,KAAK,EAAEhC,SAAS,CAACiC,MAAM;EACvBC,KAAK,EAAElC,SAAS,CAACmC,IAAI;EACrBC,MAAM,EAAEpC,SAAS,CAACmC,IAAI,CAACE,UAAU;EACjCb,OAAO,EAAExB,SAAS,CAACsC;AACrB,CAAC","ignoreList":[]}
|
|
@@ -1,53 +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 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; }
|
|
3
|
-
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; }
|
|
4
|
-
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; }
|
|
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
|
-
import React from 'react';
|
|
8
|
-
import PropTypes from 'prop-types';
|
|
9
|
-
import { MdArrowBack as Arrow } from 'react-icons/md';
|
|
10
|
-
import * as SharedStyle from '../../shared-style';
|
|
11
|
-
var breadcrumbStyle = {
|
|
12
|
-
margin: '1.5em',
|
|
13
|
-
display: 'flex'
|
|
14
|
-
};
|
|
15
|
-
var breadcrumbTextStyle = {
|
|
16
|
-
fontSize: '20px',
|
|
17
|
-
cursor: 'pointer'
|
|
18
|
-
};
|
|
19
|
-
var breadcrumbLastTextStyle = _objectSpread(_objectSpread({}, breadcrumbTextStyle), {}, {
|
|
20
|
-
fontWeight: 'bolder',
|
|
21
|
-
color: SharedStyle.SECONDARY_COLOR.main
|
|
22
|
-
});
|
|
23
|
-
var breadcrumbTabStyle = {
|
|
24
|
-
fill: SharedStyle.COLORS.black,
|
|
25
|
-
fontSize: '24px',
|
|
26
|
-
marginLeft: '10px',
|
|
27
|
-
marginRight: '10px'
|
|
28
|
-
};
|
|
29
|
-
var CatalogBreadcrumb = function CatalogBreadcrumb(_ref) {
|
|
30
|
-
var names = _ref.names;
|
|
31
|
-
var labelNames = names.map(function (name, ind) {
|
|
32
|
-
var lastElement = ind === names.length - 1;
|
|
33
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
34
|
-
key: ind,
|
|
35
|
-
style: {
|
|
36
|
-
display: 'flex'
|
|
37
|
-
}
|
|
38
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
39
|
-
style: !lastElement ? breadcrumbTextStyle : breadcrumbLastTextStyle,
|
|
40
|
-
onClick: name.action || null
|
|
41
|
-
}, name.name), !lastElement ? /*#__PURE__*/React.createElement(Arrow, {
|
|
42
|
-
style: breadcrumbTabStyle
|
|
43
|
-
}) : null);
|
|
44
|
-
});
|
|
45
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
46
|
-
style: breadcrumbStyle
|
|
47
|
-
}, labelNames);
|
|
48
|
-
};
|
|
49
|
-
CatalogBreadcrumb.propTypes = {
|
|
50
|
-
names: PropTypes.arrayOf(PropTypes.object).isRequired
|
|
51
|
-
};
|
|
52
|
-
export default CatalogBreadcrumb;
|
|
53
|
-
//# sourceMappingURL=catalog-breadcrumb.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"catalog-breadcrumb.js","names":["React","PropTypes","MdArrowBack","Arrow","SharedStyle","breadcrumbStyle","margin","display","breadcrumbTextStyle","fontSize","cursor","breadcrumbLastTextStyle","_objectSpread","fontWeight","color","SECONDARY_COLOR","main","breadcrumbTabStyle","fill","COLORS","black","marginLeft","marginRight","CatalogBreadcrumb","_ref","names","labelNames","map","name","ind","lastElement","length","createElement","key","style","onClick","action","propTypes","arrayOf","object","isRequired"],"sources":["../../../src/components/catalog-view/catalog-breadcrumb.jsx"],"sourcesContent":["import React from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { MdArrowBack as Arrow } from 'react-icons/md';\r\nimport * as SharedStyle from '../../shared-style';\r\n\r\nconst breadcrumbStyle = {\r\n margin: '1.5em',\r\n display: 'flex'\r\n};\r\n\r\nconst breadcrumbTextStyle = {\r\n fontSize: '20px',\r\n cursor: 'pointer'\r\n};\r\n\r\nconst breadcrumbLastTextStyle = {\r\n ...breadcrumbTextStyle,\r\n fontWeight: 'bolder',\r\n color: SharedStyle.SECONDARY_COLOR.main\r\n};\r\n\r\nconst breadcrumbTabStyle = {\r\n fill: SharedStyle.COLORS.black,\r\n fontSize: '24px',\r\n marginLeft: '10px',\r\n marginRight: '10px'\r\n};\r\n\r\nconst CatalogBreadcrumb = ({ names }) => {\r\n let labelNames = names.map((name, ind) => {\r\n let lastElement = ind === names.length - 1;\r\n\r\n return (\r\n <div key={ind} style={{ display: 'flex' }}>\r\n <div\r\n style={!lastElement ? breadcrumbTextStyle : breadcrumbLastTextStyle}\r\n onClick={name.action || null}\r\n >\r\n {name.name}\r\n </div>\r\n {!lastElement ? <Arrow style={breadcrumbTabStyle} /> : null}\r\n </div>\r\n );\r\n });\r\n\r\n return <div style={breadcrumbStyle}>{labelNames}</div>;\r\n};\r\n\r\nCatalogBreadcrumb.propTypes = {\r\n names: PropTypes.arrayOf(PropTypes.object).isRequired\r\n};\r\n\r\nexport default CatalogBreadcrumb;\r\n"],"mappings":";;;;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,SAASC,WAAW,IAAIC,KAAK,QAAQ,gBAAgB;AACrD,OAAO,KAAKC,WAAW,MAAM,oBAAoB;AAEjD,IAAMC,eAAe,GAAG;EACtBC,MAAM,EAAE,OAAO;EACfC,OAAO,EAAE;AACX,CAAC;AAED,IAAMC,mBAAmB,GAAG;EAC1BC,QAAQ,EAAE,MAAM;EAChBC,MAAM,EAAE;AACV,CAAC;AAED,IAAMC,uBAAuB,GAAAC,aAAA,CAAAA,aAAA,KACxBJ,mBAAmB;EACtBK,UAAU,EAAE,QAAQ;EACpBC,KAAK,EAAEV,WAAW,CAACW,eAAe,CAACC;AAAI,EACxC;AAED,IAAMC,kBAAkB,GAAG;EACzBC,IAAI,EAAEd,WAAW,CAACe,MAAM,CAACC,KAAK;EAC9BX,QAAQ,EAAE,MAAM;EAChBY,UAAU,EAAE,MAAM;EAClBC,WAAW,EAAE;AACf,CAAC;AAED,IAAMC,iBAAiB,GAAG,SAApBA,iBAAiBA,CAAAC,IAAA,EAAkB;EAAA,IAAZC,KAAK,GAAAD,IAAA,CAALC,KAAK;EAChC,IAAIC,UAAU,GAAGD,KAAK,CAACE,GAAG,CAAC,UAACC,IAAI,EAAEC,GAAG,EAAK;IACxC,IAAIC,WAAW,GAAGD,GAAG,KAAKJ,KAAK,CAACM,MAAM,GAAG,CAAC;IAE1C,oBACE/B,KAAA,CAAAgC,aAAA;MAAKC,GAAG,EAAEJ,GAAI;MAACK,KAAK,EAAE;QAAE3B,OAAO,EAAE;MAAO;IAAE,gBACxCP,KAAA,CAAAgC,aAAA;MACEE,KAAK,EAAE,CAACJ,WAAW,GAAGtB,mBAAmB,GAAGG,uBAAwB;MACpEwB,OAAO,EAAEP,IAAI,CAACQ,MAAM,IAAI;IAAK,GAE5BR,IAAI,CAACA,IACH,CAAC,EACL,CAACE,WAAW,gBAAG9B,KAAA,CAAAgC,aAAA,CAAC7B,KAAK;MAAC+B,KAAK,EAAEjB;IAAmB,CAAE,CAAC,GAAG,IACpD,CAAC;EAEV,CAAC,CAAC;EAEF,oBAAOjB,KAAA,CAAAgC,aAAA;IAAKE,KAAK,EAAE7B;EAAgB,GAAEqB,UAAgB,CAAC;AACxD,CAAC;AAEDH,iBAAiB,CAACc,SAAS,GAAG;EAC5BZ,KAAK,EAAExB,SAAS,CAACqC,OAAO,CAACrC,SAAS,CAACsC,MAAM,CAAC,CAACC;AAC7C,CAAC;AAED,eAAejB,iBAAiB","ignoreList":[]}
|
|
@@ -1,226 +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 { FaPlusCircle as IconAdd } from 'react-icons/fa';
|
|
20
|
-
import * as SharedStyle from '../../shared-style';
|
|
21
|
-
import { API_SERVER_URL, MODE, MODE_IDLE } from '../../constants';
|
|
22
|
-
import browserHistory from '../../@history';
|
|
23
|
-
import axios from 'axios';
|
|
24
|
-
import SnackBar from '../atoms/Snackbar/index';
|
|
25
|
-
var AWS = require('aws-sdk');
|
|
26
|
-
var s3 = new AWS.S3({
|
|
27
|
-
accessKeyId: process.env.REACT_APP_AWS_ID,
|
|
28
|
-
secretAccessKey: process.env.REACT_APP_AWS_SECRET
|
|
29
|
-
});
|
|
30
|
-
var STYLE_BOX = {
|
|
31
|
-
width: '14em',
|
|
32
|
-
height: '14em',
|
|
33
|
-
padding: '0.625em',
|
|
34
|
-
background: '#f7f7f9',
|
|
35
|
-
border: '1px solid #e1e1e8',
|
|
36
|
-
cursor: 'pointer',
|
|
37
|
-
position: 'relative',
|
|
38
|
-
boxShadow: '0 1px 6px 0 rgba(0, 0, 0, 0.11), 0 1px 4px 0 rgba(0, 0, 0, 0.11)',
|
|
39
|
-
borderRadius: '2px',
|
|
40
|
-
transition: 'all .15s ease-in-out',
|
|
41
|
-
WebkitTransition: 'all .15s ease-in-out',
|
|
42
|
-
alignSelf: 'center',
|
|
43
|
-
justifySelf: 'center'
|
|
44
|
-
};
|
|
45
|
-
var STYLE_BOX_HOVER = _objectSpread(_objectSpread({}, STYLE_BOX), {}, {
|
|
46
|
-
background: SharedStyle.SECONDARY_COLOR.main
|
|
47
|
-
});
|
|
48
|
-
var STYLE_TITLE = {
|
|
49
|
-
width: '100%',
|
|
50
|
-
textAlign: 'center',
|
|
51
|
-
display: 'block',
|
|
52
|
-
marginBottom: '.5em',
|
|
53
|
-
textTransform: 'capitalize'
|
|
54
|
-
};
|
|
55
|
-
var STYLE_TITLE_HOVER = _objectSpread(_objectSpread({}, STYLE_TITLE), {}, {
|
|
56
|
-
color: SharedStyle.COLORS.white
|
|
57
|
-
});
|
|
58
|
-
var STYLE_IMAGE_CONTAINER = {
|
|
59
|
-
width: '100%',
|
|
60
|
-
height: '8em',
|
|
61
|
-
position: 'relative',
|
|
62
|
-
overflow: 'hidden',
|
|
63
|
-
border: 'solid 1px #e6e6e6',
|
|
64
|
-
padding: 0,
|
|
65
|
-
margin: 0,
|
|
66
|
-
marginBottom: '5px'
|
|
67
|
-
};
|
|
68
|
-
var STYLE_IMAGE = {
|
|
69
|
-
position: 'absolute',
|
|
70
|
-
background: '#222',
|
|
71
|
-
width: '100%',
|
|
72
|
-
height: '100%',
|
|
73
|
-
backgroundSize: 'contain',
|
|
74
|
-
backgroundPosition: '50% 50%',
|
|
75
|
-
backgroundColor: SharedStyle.COLORS.white,
|
|
76
|
-
backgroundRepeat: 'no-repeat',
|
|
77
|
-
transition: 'all .2s ease-in-out'
|
|
78
|
-
};
|
|
79
|
-
var STYLE_IMAGE_HOVER = _objectSpread(_objectSpread({}, STYLE_IMAGE), {}, {
|
|
80
|
-
transform: 'scale(1.2)'
|
|
81
|
-
});
|
|
82
|
-
var STYLE_PLUS_HOVER = {
|
|
83
|
-
marginTop: '1.5em',
|
|
84
|
-
color: SharedStyle.SECONDARY_COLOR.main,
|
|
85
|
-
fontSize: '2em',
|
|
86
|
-
opacity: '0.7',
|
|
87
|
-
width: '100%'
|
|
88
|
-
};
|
|
89
|
-
var STYLE_DESCRIPTION = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
90
|
-
display: 'block'
|
|
91
|
-
}, "display", '-webkit-box'), "height", '2em'), "margin", '0 auto'), "fontSize", '0.75em'), "fontStyle", 'italic'), "lineHeight", '1em'), "WebkitLineClamp", '2'), "WebkitBoxOrient", 'vertical'), "overflow", 'hidden'), "textOverflow", 'ellipsis');
|
|
92
|
-
var STYLE_TAGS = {
|
|
93
|
-
listStyle: 'none',
|
|
94
|
-
margin: '0px',
|
|
95
|
-
padding: '0px',
|
|
96
|
-
fontSize: '11px',
|
|
97
|
-
marginBottom: '3px'
|
|
98
|
-
};
|
|
99
|
-
var STYLE_TAG = {
|
|
100
|
-
display: 'inline-block',
|
|
101
|
-
background: '#337ab7',
|
|
102
|
-
color: SharedStyle.COLORS.white,
|
|
103
|
-
padding: '1px 4px',
|
|
104
|
-
marginRight: '3px',
|
|
105
|
-
borderRadius: '3px'
|
|
106
|
-
};
|
|
107
|
-
var STYLE_ASSIGN_TAG = {
|
|
108
|
-
display: 'inline-block',
|
|
109
|
-
background: '#33b768',
|
|
110
|
-
color: SharedStyle.COLORS.white,
|
|
111
|
-
padding: '1px 4px',
|
|
112
|
-
marginRight: '3px',
|
|
113
|
-
borderRadius: '3px'
|
|
114
|
-
};
|
|
115
|
-
var CatalogItem = /*#__PURE__*/function (_Component) {
|
|
116
|
-
function CatalogItem(props) {
|
|
117
|
-
var _this;
|
|
118
|
-
_classCallCheck(this, CatalogItem);
|
|
119
|
-
_this = _callSuper(this, CatalogItem, [props]);
|
|
120
|
-
_this.state = {
|
|
121
|
-
hover: false,
|
|
122
|
-
snackBarMessage: '',
|
|
123
|
-
isSnackBarOpen: ''
|
|
124
|
-
};
|
|
125
|
-
return _this;
|
|
126
|
-
}
|
|
127
|
-
_inherits(CatalogItem, _Component);
|
|
128
|
-
return _createClass(CatalogItem, [{
|
|
129
|
-
key: "select",
|
|
130
|
-
value: function select(element) {
|
|
131
|
-
var _this2 = this;
|
|
132
|
-
sessionStorage.setItem('projectTitle', element.title);
|
|
133
|
-
this.context.projectActions.rename(element.title);
|
|
134
|
-
sessionStorage.setItem('projectId', element.id);
|
|
135
|
-
sessionStorage.setItem('email', element.email);
|
|
136
|
-
var _self = this;
|
|
137
|
-
if (MODE === 'production') {
|
|
138
|
-
s3.getObject({
|
|
139
|
-
Bucket: process.env.REACT_APP_AWS_BUCKET_NAME,
|
|
140
|
-
Key: element.data
|
|
141
|
-
}, function (err, data) {
|
|
142
|
-
if (err !== null) {
|
|
143
|
-
console.log(err);
|
|
144
|
-
this.setState({
|
|
145
|
-
snackBarMessage: 'Something went wrong.',
|
|
146
|
-
isSnackBarOpen: true
|
|
147
|
-
});
|
|
148
|
-
return;
|
|
149
|
-
}
|
|
150
|
-
var fileData = data.Body.toString('utf-8');
|
|
151
|
-
var jsonData = JSON.parse(fileData);
|
|
152
|
-
_self.context.projectActions.loadProject(jsonData, this.props.categoryData);
|
|
153
|
-
});
|
|
154
|
-
} else {
|
|
155
|
-
axios.post("".concat(API_SERVER_URL, "/api/project/loadPidData"), {
|
|
156
|
-
pid: element.id
|
|
157
|
-
}).then(function (response) {
|
|
158
|
-
var jsonData = JSON.parse(response.data.data);
|
|
159
|
-
_this2.context.projectActions.loadProject(jsonData, _this2.props.categoryData);
|
|
160
|
-
});
|
|
161
|
-
}
|
|
162
|
-
this.context.projectActions.setMode(MODE_IDLE);
|
|
163
|
-
var visualizerName = sessionStorage.getItem('visualizerName');
|
|
164
|
-
browserHistory.push({
|
|
165
|
-
pathname: "/".concat(visualizerName, "/project/").concat(element.role, "/").concat(sessionStorage.getItem('jwt_access_token'), "/").concat(element.id)
|
|
166
|
-
});
|
|
167
|
-
}
|
|
168
|
-
}, {
|
|
169
|
-
key: "render",
|
|
170
|
-
value: function render() {
|
|
171
|
-
var _this3 = this;
|
|
172
|
-
var element = this.props.element;
|
|
173
|
-
var hover = this.state.hover;
|
|
174
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
175
|
-
style: hover ? STYLE_BOX_HOVER : STYLE_BOX,
|
|
176
|
-
onClick: function onClick(e) {
|
|
177
|
-
e.preventDefault(), _this3.select(element);
|
|
178
|
-
},
|
|
179
|
-
onMouseEnter: function onMouseEnter(e) {
|
|
180
|
-
return _this3.setState({
|
|
181
|
-
hover: true
|
|
182
|
-
});
|
|
183
|
-
},
|
|
184
|
-
onMouseLeave: function onMouseLeave(e) {
|
|
185
|
-
return _this3.setState({
|
|
186
|
-
hover: false
|
|
187
|
-
});
|
|
188
|
-
}
|
|
189
|
-
}, /*#__PURE__*/React.createElement(SnackBar, {
|
|
190
|
-
isOpen: this.state.isSnackBarOpen,
|
|
191
|
-
message: this.state.snackBarMessage,
|
|
192
|
-
handleClose: function handleClose() {
|
|
193
|
-
return _this3.setState({
|
|
194
|
-
isSnackBarOpen: false,
|
|
195
|
-
snackBarMessage: ''
|
|
196
|
-
});
|
|
197
|
-
}
|
|
198
|
-
}), /*#__PURE__*/React.createElement("b", {
|
|
199
|
-
style: STYLE_TITLE
|
|
200
|
-
}, element.title), /*#__PURE__*/React.createElement("div", {
|
|
201
|
-
style: STYLE_IMAGE_CONTAINER
|
|
202
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
203
|
-
style: _objectSpread({}, STYLE_IMAGE)
|
|
204
|
-
}, hover ? /*#__PURE__*/React.createElement(IconAdd, {
|
|
205
|
-
style: STYLE_PLUS_HOVER
|
|
206
|
-
}) : null)), /*#__PURE__*/React.createElement("ul", {
|
|
207
|
-
style: STYLE_TAGS
|
|
208
|
-
}, element.is_assistance_requested === 1 ? /*#__PURE__*/React.createElement("li", {
|
|
209
|
-
style: STYLE_ASSIGN_TAG
|
|
210
|
-
}, "Assign") : null, /*#__PURE__*/React.createElement("li", {
|
|
211
|
-
style: STYLE_TAG
|
|
212
|
-
}, element.saved_at)));
|
|
213
|
-
}
|
|
214
|
-
}]);
|
|
215
|
-
}(Component);
|
|
216
|
-
export { CatalogItem as default };
|
|
217
|
-
CatalogItem.propTypes = {
|
|
218
|
-
element: PropTypes.object.isRequired
|
|
219
|
-
};
|
|
220
|
-
CatalogItem.contextTypes = {
|
|
221
|
-
itemsActions: PropTypes.object.isRequired,
|
|
222
|
-
linesActions: PropTypes.object.isRequired,
|
|
223
|
-
holesActions: PropTypes.object.isRequired,
|
|
224
|
-
projectActions: PropTypes.object.isRequired
|
|
225
|
-
};
|
|
226
|
-
//# sourceMappingURL=catalog-item.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"catalog-item.js","names":["React","Component","PropTypes","FaPlusCircle","IconAdd","SharedStyle","API_SERVER_URL","MODE","MODE_IDLE","browserHistory","axios","SnackBar","AWS","require","s3","S3","accessKeyId","process","env","REACT_APP_AWS_ID","secretAccessKey","REACT_APP_AWS_SECRET","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_HOVER","color","COLORS","white","STYLE_IMAGE_CONTAINER","overflow","margin","STYLE_IMAGE","backgroundSize","backgroundPosition","backgroundColor","backgroundRepeat","STYLE_IMAGE_HOVER","transform","STYLE_PLUS_HOVER","marginTop","fontSize","opacity","STYLE_DESCRIPTION","_defineProperty","STYLE_TAGS","listStyle","STYLE_TAG","marginRight","STYLE_ASSIGN_TAG","CatalogItem","_Component","props","_this","_classCallCheck","_callSuper","state","hover","snackBarMessage","isSnackBarOpen","_inherits","_createClass","key","value","select","element","_this2","sessionStorage","setItem","title","context","projectActions","rename","id","email","_self","getObject","Bucket","REACT_APP_AWS_BUCKET_NAME","Key","data","err","console","log","setState","fileData","Body","toString","jsonData","JSON","parse","loadProject","categoryData","post","concat","pid","then","response","setMode","visualizerName","getItem","push","pathname","role","render","_this3","createElement","style","onClick","e","preventDefault","onMouseEnter","onMouseLeave","isOpen","message","handleClose","is_assistance_requested","saved_at","default","propTypes","object","isRequired","contextTypes","itemsActions","linesActions","holesActions"],"sources":["../../../src/components/catalog-view/catalog-item.jsx"],"sourcesContent":["import React, { Component } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { FaPlusCircle as IconAdd } from 'react-icons/fa';\r\nimport * as SharedStyle from '../../shared-style';\r\nimport { API_SERVER_URL, MODE, MODE_IDLE } from '../../constants';\r\nimport browserHistory from '../../@history';\r\nimport axios from 'axios';\r\nimport SnackBar from '../atoms/Snackbar/index';\r\nconst AWS = require('aws-sdk');\r\n\r\nconst s3 = new AWS.S3({\r\n accessKeyId: process.env.REACT_APP_AWS_ID,\r\n secretAccessKey: process.env.REACT_APP_AWS_SECRET\r\n});\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 .15s ease-in-out',\r\n WebkitTransition: 'all .15s 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 textAlign: 'center',\r\n display: 'block',\r\n marginBottom: '.5em',\r\n textTransform: 'capitalize'\r\n};\r\n\r\nconst STYLE_TITLE_HOVER = {\r\n ...STYLE_TITLE,\r\n color: SharedStyle.COLORS.white\r\n};\r\n\r\nconst STYLE_IMAGE_CONTAINER = {\r\n width: '100%',\r\n height: '8em',\r\n position: 'relative',\r\n overflow: 'hidden',\r\n border: 'solid 1px #e6e6e6',\r\n padding: 0,\r\n margin: 0,\r\n marginBottom: '5px'\r\n};\r\n\r\nconst STYLE_IMAGE = {\r\n position: 'absolute',\r\n background: '#222',\r\n width: '100%',\r\n height: '100%',\r\n backgroundSize: 'contain',\r\n backgroundPosition: '50% 50%',\r\n backgroundColor: SharedStyle.COLORS.white,\r\n backgroundRepeat: 'no-repeat',\r\n transition: 'all .2s ease-in-out'\r\n};\r\n\r\nconst STYLE_IMAGE_HOVER = {\r\n ...STYLE_IMAGE,\r\n transform: 'scale(1.2)'\r\n};\r\n\r\nconst STYLE_PLUS_HOVER = {\r\n marginTop: '1.5em',\r\n color: SharedStyle.SECONDARY_COLOR.main,\r\n fontSize: '2em',\r\n opacity: '0.7',\r\n width: '100%'\r\n};\r\n\r\nconst STYLE_DESCRIPTION = {\r\n display: 'block',\r\n display: '-webkit-box',\r\n height: '2em',\r\n margin: '0 auto',\r\n fontSize: '0.75em',\r\n fontStyle: 'italic',\r\n lineHeight: '1em',\r\n WebkitLineClamp: '2',\r\n WebkitBoxOrient: 'vertical',\r\n overflow: 'hidden',\r\n textOverflow: 'ellipsis'\r\n};\r\n\r\nconst STYLE_TAGS = {\r\n listStyle: 'none',\r\n margin: '0px',\r\n padding: '0px',\r\n fontSize: '11px',\r\n marginBottom: '3px'\r\n};\r\n\r\nconst STYLE_TAG = {\r\n display: 'inline-block',\r\n background: '#337ab7',\r\n color: SharedStyle.COLORS.white,\r\n padding: '1px 4px',\r\n marginRight: '3px',\r\n borderRadius: '3px'\r\n};\r\n\r\nconst STYLE_ASSIGN_TAG = {\r\n display: 'inline-block',\r\n background: '#33b768',\r\n color: SharedStyle.COLORS.white,\r\n padding: '1px 4px',\r\n marginRight: '3px',\r\n borderRadius: '3px'\r\n};\r\n\r\nexport default class CatalogItem extends Component {\r\n constructor(props) {\r\n super(props);\r\n this.state = { hover: false, snackBarMessage: '', isSnackBarOpen: '' };\r\n }\r\n\r\n select(element) {\r\n sessionStorage.setItem('projectTitle', element.title);\r\n this.context.projectActions.rename(element.title);\r\n sessionStorage.setItem('projectId', element.id);\r\n sessionStorage.setItem('email', element.email);\r\n const _self = this;\r\n if (MODE === 'production') {\r\n s3.getObject(\r\n {\r\n Bucket: process.env.REACT_APP_AWS_BUCKET_NAME,\r\n Key: element.data\r\n },\r\n function (err, data) {\r\n if (err !== null) {\r\n console.log(err);\r\n this.setState({\r\n snackBarMessage: 'Something went wrong.',\r\n isSnackBarOpen: true\r\n });\r\n return;\r\n }\r\n var fileData = data.Body.toString('utf-8');\r\n const jsonData = JSON.parse(fileData);\r\n _self.context.projectActions.loadProject(\r\n jsonData,\r\n this.props.categoryData\r\n );\r\n }\r\n );\r\n } else {\r\n axios\r\n .post(`${API_SERVER_URL}/api/project/loadPidData`, {\r\n pid: element.id\r\n })\r\n .then(response => {\r\n const jsonData = JSON.parse(response.data.data);\r\n this.context.projectActions.loadProject(\r\n jsonData,\r\n this.props.categoryData\r\n );\r\n });\r\n }\r\n this.context.projectActions.setMode(MODE_IDLE);\r\n const visualizerName = sessionStorage.getItem('visualizerName');\r\n browserHistory.push({\r\n pathname: `/${visualizerName}/project/${\r\n element.role\r\n }/${sessionStorage.getItem('jwt_access_token')}/${element.id}`\r\n });\r\n }\r\n\r\n render() {\r\n let element = this.props.element;\r\n let hover = this.state.hover;\r\n return (\r\n <div\r\n style={hover ? STYLE_BOX_HOVER : STYLE_BOX}\r\n onClick={e => {\r\n e.preventDefault(), this.select(element);\r\n }}\r\n onMouseEnter={e => this.setState({ hover: true })}\r\n onMouseLeave={e => this.setState({ hover: false })}\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 <b style={STYLE_TITLE}>{element.title}</b>\r\n <div style={STYLE_IMAGE_CONTAINER}>\r\n <div style={{ ...STYLE_IMAGE }}>\r\n {hover ? <IconAdd style={STYLE_PLUS_HOVER} /> : null}\r\n </div>\r\n </div>\r\n <ul style={STYLE_TAGS}>\r\n {element.is_assistance_requested === 1 ? (\r\n <li style={STYLE_ASSIGN_TAG}>Assign</li>\r\n ) : null}\r\n <li style={STYLE_TAG}>{element.saved_at}</li>\r\n </ul>\r\n {/* <div style={STYLE_DESCRIPTION}>{element.info.description}</div> */}\r\n </div>\r\n );\r\n }\r\n}\r\n\r\nCatalogItem.propTypes = {\r\n element: PropTypes.object.isRequired\r\n};\r\n\r\nCatalogItem.contextTypes = {\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,SAASC,YAAY,IAAIC,OAAO,QAAQ,gBAAgB;AACxD,OAAO,KAAKC,WAAW,MAAM,oBAAoB;AACjD,SAASC,cAAc,EAAEC,IAAI,EAAEC,SAAS,QAAQ,iBAAiB;AACjE,OAAOC,cAAc,MAAM,gBAAgB;AAC3C,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,QAAQ,MAAM,yBAAyB;AAC9C,IAAMC,GAAG,GAAGC,OAAO,CAAC,SAAS,CAAC;AAE9B,IAAMC,EAAE,GAAG,IAAIF,GAAG,CAACG,EAAE,CAAC;EACpBC,WAAW,EAAEC,OAAO,CAACC,GAAG,CAACC,gBAAgB;EACzCC,eAAe,EAAEH,OAAO,CAACC,GAAG,CAACG;AAC/B,CAAC,CAAC;AAEF,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,sBAAsB;EAClCC,gBAAgB,EAAE,sBAAsB;EACxCC,SAAS,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