UNPKG

activator-oce-exporter

Version:

Extract Activator binder and convert it to valid OCE mono pacakge

81 lines (75 loc) 1.76 kB
import { html } from '@polymer/lit-element'; import { FusionBase } from '../../base'; import { applyMixins, EmailComponent } from '../../mixins'; class MJMLSpacer extends applyMixins(FusionBase, [EmailComponent]) { static get properties() { return { height: { type: String, fieldType: 'Number', value: '20px', }, 'container-background-color': { type: String, fieldType: 'ColorPicker', value: 'rgba(255, 255, 255, 0)', }, 'vertical-align': { type: String, fieldType: 'Select', value: 'middle', selectOptions: [ 'top', 'middle', 'bottom', ], }, }; } static get options() { return { componentName: 'mj-spacer', componentUIName: 'Spacer', componentScope: 'standard', componentType: 'static', componentCategory: 'UI', componentDescription: 'Displays a blank space', componentDomain: 'email', isRootNested: false, isTextEdit: true, nestedTypes: [], nestedComponents: [], defaultTemplate: '', resizable: false, draggable: false, rotatable: false, sortable: true, }; } static getStyle() { const styleRoot = super.getStyle(); return ` ${styleRoot} :host { display: block; width: 100%; background-color: var(--container-background-color); } ::slotted(*) { height: var(--height); }`; } render() { super.render(); return html` <style> ${MJMLSpacer.getStyle()} </style> <div> <div></div> ${MJMLSpacer.getSystemSlotTemplate()} </div> `; } } export { MJMLSpacer };