jodit-pro
Version:
PRO Version of Jodit Editor
2 lines (1 loc) • 1.19 kB
JavaScript
var h=Object.defineProperty;var p=(l,o)=>h(l,"name",{value:o,configurable:!0});var c,m=function(l,o,e,n){var r=arguments.length,t=r<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,e):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(l,o,e,n);else for(var a=l.length-1;a>=0;a--)(s=l[a])&&(t=(r<3?s(t):r>3?s(o,e,t):s(o,e))||t);return r>3&&t&&Object.defineProperty(o,e,t),t};import{component as f}from"jodit/esm/core/decorators/component/component.js";import{UICheckbox as u,UIForm as C}from"jodit/esm/core/ui/index.js";let i=(c=class extends C{className(){return"UIMapsControlsForm"}constructor(o,e){super(o),this.state=e;const n={zoomControl:"Zoom control",mapTypeControl:"Map Type control",scaleControl:"Scale control",streetViewControl:"Street View control ",rotateControl:"Rotate control",fullscreenControl:"Fullscreen control"},r=Object.keys(n);this.append(r.map(t=>new u(o,{label:n[t],name:t,checked:this.state.controls[t],switch:!0,type:"checkbox",onChange:this.onChangeSize.bind(this,t)})))}onChangeSize(o,e){this.state.controls={...this.state.controls,[o]:e==="true"}}},p(c,"UIMapsControlsForm"),c);i=m([f],i);export{i as UIMapsControlsForm};