PluginProbe
Event Post / 5.10.2
Event Post v5.10.2
6.1.2 6.1.1 6.1.0 6.0.1 6.0.0 5.12.0 trunk 3.9 4.0 4.2 4.3 4.4 4.5 5.0 5.1 5.10.0 5.10.1 5.10.2 5.10.3 5.10.4 5.11.0 5.11.1 5.2 5.5 5.6 All 47 releases
event-post / build / calendar / index.js

index.js in Event Post 5.10.2, at build/calendar/index.js

1 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 (()=>{"use strict";var e={n:t=>{var o=t&&t.__esModule?()=>t.default:()=>t;return e.d(o,{a:o}),o},d:(t,o)=>{for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)};const t=window.wp.blocks,o=window.wp.i18n,n=window.wp.blockEditor,l=window.wp.element,s=window.wp.components,a=window.wp.serverSideRender;var r=e.n(a);const c=window.ReactJSXRuntime;(0,t.registerBlockType)("eventpost/calendar",{edit:function({className:e,attributes:t,setAttributes:a,isSelected:i,id:d}){const p=(0,n.useBlockProps)(),{date:u,color:v,display_title:w,mondayfirst:_,choose:h}=t;return(0,c.jsx)("div",{...p,children:(0,c.jsxs)(l.Fragment,{children:[i&&(0,c.jsx)(n.InspectorControls,{children:(0,c.jsxs)(s.PanelBody,{title:(0,o._x)("Display","noun","event-post"),children:[(0,c.jsx)(s.TextControl,{value:u,onChange:function(e){a({date:e})},className:"date",placeholder:(0,o.__)("Date","event-post"),help:(0,o.__)("Default date (YYYY-m)","event-post")}),(0,c.jsx)(s.CheckboxControl,{label:(0,o.__)("Colored days","event-post"),checked:v,onChange:function(e){a({color:e})}}),(0,c.jsx)(s.CheckboxControl,{label:(0,o.__)("Display title","event-post"),checked:w,onChange:function(e){a({display_title:e})}}),(0,c.jsx)(s.SelectControl,{label:(0,o.__)("Weeks start on","event-post"),value:_,options:[{label:(0,o.__)("Sunday","event-post"),value:"0"},{label:(0,o.__)("Monday","event-post"),value:"1"}],onChange:function(e){a({mondayfirst:e})}}),(0,c.jsx)(s.CheckboxControl,{label:(0,o.__)("Date picker","event-post"),checked:h,onChange:function(e){a({choose:e})}})]})}),(0,c.jsx)(r(),{block:"eventpost/calendar",attributes:t})]})})},save:function({attributes:e}){return null}})})();