diff --git a/src/assetbundles/spoon/SpoonConfigurator.php b/src/assetbundles/ConfiguratorAsset.php similarity index 83% rename from src/assetbundles/spoon/SpoonConfigurator.php rename to src/assetbundles/ConfiguratorAsset.php index 0e3ded8..5ef1013 100644 --- a/src/assetbundles/spoon/SpoonConfigurator.php +++ b/src/assetbundles/ConfiguratorAsset.php @@ -8,7 +8,7 @@ * @copyright Copyright (c) 2018 Angell & Co */ -namespace angellco\spoon\assetbundles\Spoon; +namespace angellco\spoon\assetbundles; use Craft; use craft\web\AssetBundle; @@ -16,13 +16,13 @@ use craft\web\View; /** - * SpoonConfigurator AssetBundle + * ConfiguratorAsset AssetBundle * * @author Angell & Co * @package Spoon * @since 3.0.0 */ -class SpoonConfigurator extends AssetBundle +class ConfiguratorAsset extends AssetBundle { // Public Methods // ========================================================================= @@ -33,7 +33,7 @@ class SpoonConfigurator extends AssetBundle public function init() { // define the path that your publishable resources live - $this->sourcePath = "@angellco/spoon/assetbundles/spoon/dist"; + $this->sourcePath = "@angellco/spoon/assetbundles/dist"; // define the dependencies $this->depends = [ @@ -43,13 +43,13 @@ public function init() // define the relative path to CSS/JS files that should be registered with the page // when this asset bundle is registered $this->js = [ - 'js/BlockTypeFieldLayoutDesigner.js', - 'js/GroupsDesigner.js', - 'js/Configurator.js' + 'js/BlockTypeFieldLayoutDesigner.min.js', + 'js/GroupsDesigner.min.js', + 'js/Configurator.min.js' ]; $this->css = [ - 'css/Spoon.css', + 'css/main.min.css', ]; parent::init(); diff --git a/src/assetbundles/spoon/SpoonFieldManipulator.php b/src/assetbundles/FieldManipulatorAsset.php similarity index 81% rename from src/assetbundles/spoon/SpoonFieldManipulator.php rename to src/assetbundles/FieldManipulatorAsset.php index 019a1b0..4c7d209 100644 --- a/src/assetbundles/spoon/SpoonFieldManipulator.php +++ b/src/assetbundles/FieldManipulatorAsset.php @@ -8,7 +8,7 @@ * @copyright Copyright (c) 2018 Angell & Co */ -namespace angellco\spoon\assetbundles\Spoon; +namespace angellco\spoon\assetbundles; use Craft; use craft\web\AssetBundle; @@ -16,13 +16,13 @@ use craft\web\View; /** - * SpoonFieldManipulator AssetBundle + * FieldManipulatorAsset AssetBundle * * @author Angell & Co * @package Spoon * @since 3.0.0 */ -class SpoonFieldManipulator extends AssetBundle +class FieldManipulatorAsset extends AssetBundle { // Public Methods // ========================================================================= @@ -33,7 +33,7 @@ class SpoonFieldManipulator extends AssetBundle public function init() { // define the path that your publishable resources live - $this->sourcePath = "@angellco/spoon/assetbundles/spoon/dist"; + $this->sourcePath = "@angellco/spoon/assetbundles/dist"; // define the dependencies $this->depends = [ @@ -43,11 +43,11 @@ public function init() // define the relative path to CSS/JS files that should be registered with the page // when this asset bundle is registered $this->js = [ - 'js/FieldManipulator.js', + 'js/FieldManipulator.min.js', ]; $this->css = [ - 'css/Spoon.css', + 'css/main.min.css', ]; parent::init(); diff --git a/src/assetbundles/dist/css/main.min.css b/src/assetbundles/dist/css/main.min.css new file mode 100644 index 0000000..8777eb6 --- /dev/null +++ b/src/assetbundles/dist/css/main.min.css @@ -0,0 +1 @@ +.buttons-spooned:first-child{margin-top:0 !important}.buttons-spooned:last-child{margin-bottom:0 !important}.buttons-spooned{position:relative;margin:24px 0;min-height:30px}.buttons-spooned:before{content:'.';display:block;height:0;clear:both;visibility:hidden;margin-bottom:-5px}body.ltr .buttons-spooned>.btn,body.ltr .buttons-spooned>.btngroup{float:left}body.rtl .buttons-spooned>.btn,body.rtl .buttons-spooned>.btngroup{float:right}body.ltr .buttons-spooned>.btn,body.ltr .buttons-spooned>.btngroup{margin:5px 5px 0 0}body.rtl .buttons-spooned>.btn,body.rtl .buttons-spooned>.btngroup{margin:5px 0 0 5px}.buttons-spooned>.btn:first,.buttons-spooned>.btngroup:first{margin-top:5px !important}.border-box+.buttons-spooned,.shadow-box+.buttons-spooned{margin-top:7px}.matrix>.buttons-spooned{margin-top:0;height:30px}.modal.spoon-configurator .fieldlayoutform,.modal.spoon-configurator .fieldlayoutform h2,.modal.spoon-configurator .fieldlayoutform .fld-field,.modal.spoon-configurator .fieldlayoutform .fld-tab,.modal.spoon-configurator .fieldlayoutform .fld-tab .tabs .tab,.modal.spoon-configurator .fieldlayoutform .fld-tab .fld-tabcontent,.modal.spoon-configurator .fieldlayoutform .fld-tab .icon:before,.modal.spoon-configurator .fieldlayoutform .fld-field .icon:before{color:#da5a47}.modal.spoon-configurator .fieldlayoutform .fld-tab .tabs .tab,.modal.spoon-configurator .fieldlayoutform .fld-tab .fld-tabcontent,.modal.spoon-configurator .fieldlayoutform .fld-field{border-color:#da5a47}.modal.spoon-configurator .fieldlayoutform .fld-tab .tabs .tab{border-bottom-color:#f4f3fb}.modal.spoon-configurator .fieldlayoutform .newtabbtn-container .btn.add{color:#da5a47;border-color:#da5a47}.modal.spoon-fields-configurator{width:60%;height:60%;min-width:560px;min-height:360px}.matrix-field>.blocks>.matrixblock>.fields{-webkit-opacity:0;-moz-opacity:0;opacity:0}.matrixblock.matrixblock-not-spooned>.fields{-webkit-opacity:1 !important;-moz-opacity:1 !important;opacity:1 !important}.matrixblock-spooned.collapsed.draghelper .spoon-tabs,.matrixblock-spooned.collapsed.draghelper .spoon-fields,.matrixblock-spooned.velocity-animating .spoon-tabs,.matrixblock-spooned.velocity-animating .spoon-fields,.matrixblock-spooned.collapsed .spoon-tabs,.matrixblock-spooned.collapsed .spoon-fields{-webkit-opacity:0 !important;-moz-opacity:0 !important;opacity:0 !important}.matrixblock-spooned .spoon-tabs{position:absolute;top:0;right:76px;display:block;font-size:0}.matrixblock-spooned .spoon-tabs li{display:inline-block;font-size:13px}.matrixblock-spooned .spoon-tabs li a{display:block;padding:5px 10px;color:#777;white-space:nowrap}.matrixblock-spooned .spoon-tabs li a:hover{text-decoration:none;color:#0d78f2}.matrixblock-spooned .spoon-tabs li a.sel{color:#29323d;background-color:#fbfcfd;border-left:1px solid #e3e5e8;border-right:1px solid #e3e5e8;border-bottom:1px solid #fbfcfd}.spoon-settings-menu h6{margin-top:10px;margin-bottom:0;padding-left:10px}body.ltr .spoon-settings-menu a.fieldtoggle:before{left:-12px}body.rtl .spoon-settings-menu a.fieldtoggle:before{right:-12px}.spoon-secondary-menu{padding-top:10px}html.noscroll .spoon-secondary-menu,html.noscroll .spoon-settings-menu{max-height:50%;overflow-y:auto;overflow-x:hidden}body.ltr #spoon-global-context-table .structure li{padding-left:0}body.rtl #spoon-global-context-table .structure li{padding-right:0}body.ltr #spoon-global-context-table .structure ul{margin-left:0}body.rtl #spoon-global-context-table .structure ul{margin-right:0}body.ltr #spoon-global-context-table .structure ul li{padding-left:44px}body.rtl #spoon-global-context-table .structure ul li{padding-right:44px} diff --git a/src/assetbundles/dist/js/BlockTypeFieldLayoutDesigner.min.js b/src/assetbundles/dist/js/BlockTypeFieldLayoutDesigner.min.js new file mode 100755 index 0000000..d4500b9 --- /dev/null +++ b/src/assetbundles/dist/js/BlockTypeFieldLayoutDesigner.min.js @@ -0,0 +1 @@ +!function(o){"undefined"==typeof Spoon&&(Spoon={}),Spoon.BlockTypeFieldLayoutDesigner=Craft.FieldLayoutDesigner.extend({initField:function(e){var n=e.find(".settings"),t=o('