/var/softaculous/sitepad/editor/site-data/plugins/pagelayer/js/react/src/components
NameSizeModeActions
access.js12930644editdlrm
box-shadow.js58360644editdlrm
checkbox.js6530644editdlrm
color.js50210644editdlrm
datetime.js10000644editdlrm
dimension.js18620644editdlrm
filter.js23480644editdlrm
font_family.js15660644editdlrm
gradient.js41060644editdlrm
html-to-react.js2370644editdlrm
icon.js52860644editdlrm
image.js23140644editdlrm
label.js13490644editdlrm
link.js75650644editdlrm
media.js19510644editdlrm
modal.js18540644editdlrm
multi-image.js30350644editdlrm
multiselect.js21580644editdlrm
padding.js21850644editdlrm
radio.js7710644editdlrm
rich_text.js43030644editdlrm
screen-icon.js11070644editdlrm
select.js22330644editdlrm
setting-tabs-control.js19930644editdlrm
slider.js15070644editdlrm
spinner.js8460644editdlrm
text-shadow.js73850644editdlrm
textarea.js6930644editdlrm
typography.js178620644editdlrm
Edit: /var/softaculous/sitepad/editor/site-data/plugins/pagelayer/js/react/src/components/select.js (2233B)
import { useState } from '@wordpress/element'; import { LabelControl } from './label'; export const SelectControl = (props) =>{ const { prop, label, value, setAttributes, attributes } = props; const { name } = prop['c']; const handleSelectChange = (e) => { var val = e.target.value; setAttributes({ [name]: val }); if( name == 'animation' ){ var jEle = jQuery(`.p-${attributes['pagelayer-id']}`); var sel = jQuery(e.target); pagelayer_trigger_anim(jEle, sel, val); } }; const renderOptions = () => { return Object.keys(prop.list).map((groupOrValue, index) => { if (typeof prop.list[groupOrValue] === 'string') { return ( ); }else{ return ( {Object.keys(prop.list[groupOrValue]).map((subOption, subIndex) => ( ))} ); } }); }; return (
); } const pagelayer_trigger_anim = (elem, sel, anim) => { var classList = elem.attr('class'); classList = classList.split(/\s+/); jQuery(sel).find('option').each(function(){ var found = jQuery.inArray( jQuery(this).val(), classList ); if( found != -1){ elem.removeClass(jQuery(this).val()); } }); elem.css('animation-name', ''); elem.removeClass('pagelayer-wow').addClass(anim + ' animated').one('webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend', function(){ jQuery(this).removeClass(anim+ ' animated'); }); }