Creates a default Map of Styles to be used by this Formatter.

@return  styles\Map
426293
protected function createDefaultStyles() : styles\Map
    {
        return new styles\Map([
            'error'     => new Style('white', 'red'),
            'info'      => new Style('green'),
            'comment'   => new Style('cyan'),
            'important' => new Style('red'),
            'header'    => new Style('black', 'cyan')
        ]);
    }
140941
protected function getDefaultTheme()
    {
        if (!is_null($this->default) && array_key_exists($this->default, $this->themes)) {
            return $this->themes[$this->default];
        }

        return false;
    }
1106741
public static Style createDefaultPointStyle() {

        FeatureTypeStyle featureTypeStyle = sf.createFeatureTypeStyle();
        featureTypeStyle.rules().add(createDefaultPointRule());

        Style style = sf.createStyle();
        style.featureTypeStyles().add(featureTypeStyle);

        return style;
    }
79979
public static function default(): Options
    {
        $options = new static;
        $options->skipConstructor();
        $options->setPropertyAccessor(new PropertyAccessor());
        $options->setDefaultMappingOperation(new DefaultMappingOperation());
        $options->setNameResolver(new NameResolver());
        $options->registerObjectCrate(\stdClass::class);

        return $options;
    }
872404
public function getStyles()
    {
        $styles = $this->config()->get('styles');
        $i18nStyles = array();
        if ($styles) {
            foreach ($styles as $key => $label) {
                $i18nStyles[$key] = _t('PlaceableObject_Preset.STYLE'.strtoupper($key), $label);
            }
        }
        return $i18nStyles;
    }
147582
public function getDefaultTheme()
    {
        if (!$this->_defaultTheme) {
            $keys = $this->keys(); /// shame to PHP it can't be done in single line :(
            $this->_defaultTheme = reset($keys);
        }

        return $this->_defaultTheme;
    }
1134863
protected function buildPropertyMap()
    {
        $map = [];
        $properties = (new ReflectionObject($this))->getProperties(ReflectionProperty::IS_PUBLIC);

        foreach ($properties as $property) {
            $map[$property->getName()] = $property;
        }

        return $map;
    }
779544
public function createMapping()
    {
        $index = $this->client->getIndex($this->indexName);
        $type = $index->getType(self::INDEX_TYPE);

        $mappingProperties = array(
            'id' => array('type' => 'string', 'include_in_all' => true),
            'elementId' => array('type' => 'string', 'include_in_all' => true),
            'nodeId' => array('type' => 'string', 'include_in_all' => true),
            'siteId' => array('type' => 'string', 'include_in_all' => true),
            'language' => array('type' => 'string', 'include_in_all' => true),
            'name' => array('type' => 'string', 'include_in_all' => true),
            'updatedAt' => array('type' => 'long', 'include_in_all' => false),
            'blocks' => array('properties' => array(
                'content' => array('type' => 'string',  'store' => true),
                'type' => array('type' => 'string', 'store' => true)
            )),
        );

        $mapping = $this->mappingFactory->create($type);
        $mapping->setProperties($mappingProperties);

        $mapping->send();
    }
190029
public function getCustomStylesConfig()
    {
        $styles = [];
        
        if (($config = $this->owner->config()->custom_styles) && is_array($config)) {
            $styles = $config;
        }
        
        ksort($styles);
        
        array_walk($styles, function (&$item) {
            $item = $this->owner->cleanStyleClasses($item);
        });
        
        return $styles;
    }
671377
public static function getMapping()
    {
        $instance = new static();

        $params = $instance->getBasicEsParams();

        return $instance->getElasticSearchClient()->indices()->getMapping($params);
    }
363016
public function getDefaultAdapterExt()
    {
        $managedExt = $this->rendererAdapters->get($this->defaultAdapter)->getManagedFileExtensions();

        return array_shift($managedExt);
    }
607570
protected function makeDefaultComponents()
    {
        return [
            static::CONTAINER_ID => new Part(new Tag('div'), static::CONTAINER_ID, static::ROOT_ID),
            static::FORM_ID => new Part(
                new Tag('form', ['data-role' => 'managed_list_form']),
                static::FORM_ID,
                static::CONTAINER_ID
            ),
            static::CONTROL_CONTAINER_ID => new Part(
                new Tag(
                    'span',
                    [   // margin for positioning submit-button
                        // line-height for multi-row appearance
                        'style' => 'margin:4px;line-height:3'
                    ]
                ),
                static::CONTROL_CONTAINER_ID,
                static::FORM_ID
            ),
            static::SUBMIT_BUTTON_ID => new Part(
                new TagWithText(
                    'button',
                    'Filter',
                    ['type' => 'submit', 'data-role' => 'managed_list_submit_button']
                ),
                static::SUBMIT_BUTTON_ID,
                static::FORM_ID
            ),
            static::LIST_CONTAINER_ID => new Part(
                new Container(),
                static::LIST_CONTAINER_ID,
                static::CONTAINER_ID
            ),
            static::COLLECTION_VIEW_ID => new Part(
                new CollectionView(),
                static::COLLECTION_VIEW_ID,
                static::LIST_CONTAINER_ID
            ),
            static::RECORD_VIEW_ID => new RecordView(new Json()),
        ];
    }
517907
public function getDefaults()
    {
        $this->initInternals();

        if (null === $this->defaults) {
            $this->defaults = $this->blueprintSchema->getDefaults();
        }

        return $this->defaults;
    }
1362341
public function setDefaultStyles()
    {
        Report::setDefaultStyles();

        // Default column headers to underlined if not specified
        if (!$this->query->output_header_styles) {
            $this->query->output_header_styles["border-style"] = "solid";
            $this->query->output_header_styles["border-width"] = "0 0 1 0";
            $this->query->output_header_styles["border-color"] = array(0, 0, 0);
        }

        if (!$this->query->output_before_form_row_styles) {
            $this->query->output_before_form_row_styles["border-style"] = "solid";
            $this->query->output_before_form_row_styles["border-width"] = "0 0 0 0";
            $this->query->output_before_form_row_styles["border-color"] = array(0, 0, 0);
        }

        if (!$this->query->output_after_form_row_styles) {
            $this->query->output_after_form_row_styles["border-style"] = "solid";
            $this->query->output_after_form_row_styles["border-width"] = "1 0 0 0";
            $this->query->output_after_form_row_styles["border-color"] = array(0, 0, 0);
        }

        if (!$this->query->output_group_trailer_styles) {
            $this->query->output_group_trailer_styles["border-style"] = "solid";
            $this->query->output_group_trailer_styles["border-width"] = "1 0 1 0";
            $this->query->output_group_trailer_styles["border-color"] = array(0, 0, 0);
        }

        // Turn off page header and body background as its too complicated for now
        if (isset($this->query->output_reportbody_styles["background-color"])) {
            unset($this->query->output_reportbody_styles["background-color"]);
        }

        if (isset($this->query->output_page_styles["background-color"])) {
            unset($this->query->output_page_styles["background-color"]);
        }

    }
465178
public Map<String, CellStyle> getCellStyleMapping() {
        if (this.cellStyleMapping == null) {
            this.cellStyleMapping = new HashMap<String, CellStyle>(16);
        }
        return cellStyleMapping;
    }
148514
public function forTemplate()
    {
        $defaultStyles = $this->config()->get('default_styles');
        if ($this->config()->get('include_default_styles') && !empty($defaultStyles)) {
            foreach ($defaultStyles as $stylePath) {
                Requirements::css($stylePath);
            }
        }

        $template = $this->element->config()->get('controller_template');

        return $this->renderWith([
            'type' => 'Layout',
            'DNADesign\\Elemental\\'.$template
        ]);
    }
1217940
public function style(): Style
    {
        $type = StyleType::get($this->style);

        return StyleFactory::factory($type)
            ->lineWidth($this->lineWidth);
    }