X7ROOT File Manager
Current Path:
/home/cbholdings/pasukulu/lib/amd/build
home
/
cbholdings
/
pasukulu
/
lib
/
amd
/
build
/
📁
..
📄
adapter.min.js
(76.87 KB)
📄
adapter.min.js.map
(188.14 KB)
📄
addblockmodal.min.js
(2.28 KB)
📄
addblockmodal.min.js.map
(6.02 KB)
📄
ajax.min.js
(3.14 KB)
📄
ajax.min.js.map
(15.12 KB)
📄
aria.min.js
(607 B)
📄
aria.min.js.map
(92 B)
📄
auto_rows.min.js
(1.23 KB)
📄
auto_rows.min.js.map
(4.64 KB)
📄
autoscroll.min.js
(2.38 KB)
📄
autoscroll.min.js.map
(8.51 KB)
📄
backoff_timer.min.js
(1.47 KB)
📄
backoff_timer.min.js.map
(6.21 KB)
📄
chart_axis.min.js
(2 KB)
📄
chart_axis.min.js.map
(9.56 KB)
📄
chart_bar.min.js
(1.12 KB)
📄
chart_bar.min.js.map
(4.28 KB)
📄
chart_base.min.js
(3.99 KB)
📄
chart_base.min.js.map
(15.28 KB)
📄
chart_builder.min.js
(465 B)
📄
chart_builder.min.js.map
(2.13 KB)
📄
chart_line.min.js
(733 B)
📄
chart_line.min.js.map
(2.81 KB)
📄
chart_output.min.js
(332 B)
📄
chart_output.min.js.map
(1.3 KB)
📄
chart_output_base.min.js
(494 B)
📄
chart_output_base.min.js.map
(2.43 KB)
📄
chart_output_chartjs.min.js
(5.02 KB)
📄
chart_output_chartjs.min.js.map
(16.33 KB)
📄
chart_output_htmltable.min.js
(1.45 KB)
📄
chart_output_htmltable.min.js.map
(4.84 KB)
📄
chart_pie.min.js
(1.21 KB)
📄
chart_pie.min.js.map
(4.3 KB)
📄
chart_series.min.js
(2.94 KB)
📄
chart_series.min.js.map
(11.33 KB)
📄
chartjs-lazy.min.js
(311.72 KB)
📄
chartjs-lazy.min.js.map
(815.19 KB)
📄
chartjs.min.js
(277 B)
📄
chartjs.min.js.map
(1.09 KB)
📄
checkbox-toggleall.min.js
(4.67 KB)
📄
checkbox-toggleall.min.js.map
(16.66 KB)
📄
config.min.js
(308 B)
📄
config.min.js.map
(1.17 KB)
📄
copy_to_clipboard.min.js
(3.4 KB)
📄
copy_to_clipboard.min.js.map
(9.29 KB)
📄
custom_interaction_events.min.js
(6.95 KB)
📄
custom_interaction_events.min.js.map
(28.74 KB)
📁
datafilter
📄
datafilter.min.js
(8.92 KB)
📄
datafilter.min.js.map
(21.35 KB)
📄
dragdrop.min.js
(4.15 KB)
📄
dragdrop.min.js.map
(16.81 KB)
📄
drawer.min.js
(2.73 KB)
📄
drawer.min.js.map
(4.8 KB)
📄
drawer_events.min.js
(291 B)
📄
drawer_events.min.js.map
(1.15 KB)
📄
dynamic_tabs.min.js
(4.18 KB)
📄
dynamic_tabs.min.js.map
(9.67 KB)
📄
edit_switch.min.js
(1.4 KB)
📄
edit_switch.min.js.map
(4.58 KB)
📁
emoji
📄
event.min.js
(1.94 KB)
📄
event.min.js.map
(4.07 KB)
📄
event_dispatcher.min.js
(687 B)
📄
event_dispatcher.min.js.map
(3.31 KB)
📄
first.min.js
(722 B)
📄
first.min.js.map
(1.71 KB)
📄
form-autocomplete.min.js
(19.55 KB)
📄
form-autocomplete.min.js.map
(67.91 KB)
📄
form-cohort-selector.min.js
(1.03 KB)
📄
form-cohort-selector.min.js.map
(3.61 KB)
📄
form-course-selector.min.js
(1.73 KB)
📄
form-course-selector.min.js.map
(5.6 KB)
📄
fragment.min.js
(1.71 KB)
📄
fragment.min.js.map
(6.54 KB)
📄
fullscreen.min.js
(518 B)
📄
fullscreen.min.js.map
(2.05 KB)
📄
icon_system.min.js
(603 B)
📄
icon_system.min.js.map
(3.1 KB)
📄
icon_system_fontawesome.min.js
(1.81 KB)
📄
icon_system_fontawesome.min.js.map
(5.88 KB)
📄
icon_system_standard.min.js
(944 B)
📄
icon_system_standard.min.js.map
(3.23 KB)
📄
inplace_editable.min.js
(7.38 KB)
📄
inplace_editable.min.js.map
(23.81 KB)
📄
key_codes.min.js
(487 B)
📄
key_codes.min.js.map
(1.62 KB)
📄
loadingicon.min.js
(1.26 KB)
📄
loadingicon.min.js.map
(4.91 KB)
📁
local
📄
localstorage.min.js
(590 B)
📄
localstorage.min.js.map
(2.52 KB)
📄
log.min.js
(773 B)
📄
log.min.js.map
(2.29 KB)
📄
loglevel.min.js
(4.54 KB)
📄
loglevel.min.js.map
(14.95 KB)
📄
menu_navigation.min.js
(4.02 KB)
📄
menu_navigation.min.js.map
(12.67 KB)
📄
modal.min.js
(12.37 KB)
📄
modal.min.js.map
(42.97 KB)
📄
modal_backdrop.min.js
(1.83 KB)
📄
modal_backdrop.min.js.map
(6.09 KB)
📄
modal_cancel.min.js
(971 B)
📄
modal_cancel.min.js.map
(1.93 KB)
📄
modal_copy_to_clipboard.min.js
(1.7 KB)
📄
modal_copy_to_clipboard.min.js.map
(4.83 KB)
📄
modal_delete_cancel.min.js
(1.32 KB)
📄
modal_delete_cancel.min.js.map
(2.92 KB)
📄
modal_events.min.js
(571 B)
📄
modal_events.min.js.map
(1.7 KB)
📄
modal_factory.min.js
(3.8 KB)
📄
modal_factory.min.js.map
(12.36 KB)
📄
modal_registry.min.js
(875 B)
📄
modal_registry.min.js.map
(3.05 KB)
📄
modal_save_cancel.min.js
(1.29 KB)
📄
modal_save_cancel.min.js.map
(2.9 KB)
📁
moodlenet
📄
moremenu.min.js
(5.06 KB)
📄
moremenu.min.js.map
(14.08 KB)
📄
mustache.min.js
(12.73 KB)
📄
mustache.min.js.map
(41.21 KB)
📄
network.min.js
(3.58 KB)
📄
network.min.js.map
(12.87 KB)
📄
normalise.min.js
(750 B)
📄
normalise.min.js.map
(2.31 KB)
📄
notification.min.js
(11.39 KB)
📄
notification.min.js.map
(16.84 KB)
📄
page_global.min.js
(1.66 KB)
📄
page_global.min.js.map
(6.81 KB)
📄
paged_content.min.js
(1.21 KB)
📄
paged_content.min.js.map
(3.81 KB)
📄
paged_content_events.min.js
(544 B)
📄
paged_content_events.min.js.map
(1.5 KB)
📄
paged_content_factory.min.js
(5.67 KB)
📄
paged_content_factory.min.js.map
(26.58 KB)
📄
paged_content_pages.min.js
(3.47 KB)
📄
paged_content_pages.min.js.map
(15.14 KB)
📄
paged_content_paging_bar.min.js
(8.33 KB)
📄
paged_content_paging_bar.min.js.map
(27.51 KB)
📄
paged_content_paging_bar_limit_selector.min.js
(1.04 KB)
📄
paged_content_paging_bar_limit_selector.min.js.map
(3.28 KB)
📄
paged_content_paging_dropdown.min.js
(2.5 KB)
📄
paged_content_paging_dropdown.min.js.map
(9.79 KB)
📄
pending.min.js
(1.39 KB)
📄
pending.min.js.map
(5.28 KB)
📄
permissionmanager.min.js
(4.71 KB)
📄
permissionmanager.min.js.map
(14.11 KB)
📄
popover_region_controller.min.js
(6.26 KB)
📄
popover_region_controller.min.js.map
(17.96 KB)
📄
popper.min.js
(32.21 KB)
📄
popper.min.js.map
(108.69 KB)
📄
prefetch.min.js
(3.89 KB)
📄
prefetch.min.js.map
(7.65 KB)
📄
process_monitor.min.js
(1.98 KB)
📄
process_monitor.min.js.map
(4.59 KB)
📄
pubsub.min.js
(1.04 KB)
📄
pubsub.min.js.map
(2.81 KB)
📄
reactive.min.js
(1.27 KB)
📄
reactive.min.js.map
(1.72 KB)
📄
scroll_manager.min.js
(2.95 KB)
📄
scroll_manager.min.js.map
(7.31 KB)
📄
sessionstorage.min.js
(724 B)
📄
sessionstorage.min.js.map
(2.67 KB)
📄
showhidesettings.min.js
(3.88 KB)
📄
showhidesettings.min.js.map
(15.57 KB)
📄
sortable_list.min.js
(13.94 KB)
📄
sortable_list.min.js.map
(41.3 KB)
📄
sticky-footer.min.js
(1.78 KB)
📄
sticky-footer.min.js.map
(3.38 KB)
📄
storagewrapper.min.js
(1.73 KB)
📄
storagewrapper.min.js.map
(6.83 KB)
📄
str.min.js
(3.03 KB)
📄
str.min.js.map
(10.32 KB)
📄
tag.min.js
(9.45 KB)
📄
tag.min.js.map
(28.11 KB)
📄
templates.min.js
(15.37 KB)
📄
templates.min.js.map
(66.06 KB)
📄
toast.min.js
(1.79 KB)
📄
toast.min.js.map
(4.35 KB)
📄
tooltip.min.js
(1.9 KB)
📄
tooltip.min.js.map
(6.09 KB)
📄
tree.min.js
(7.22 KB)
📄
tree.min.js.map
(24.69 KB)
📄
truncate.min.js
(2.65 KB)
📄
truncate.min.js.map
(9.42 KB)
📄
url.min.js
(1.27 KB)
📄
url.min.js.map
(4.9 KB)
📄
user_date.min.js
(2.2 KB)
📄
user_date.min.js.map
(11.94 KB)
📄
userfeedback.min.js
(1.75 KB)
📄
userfeedback.min.js.map
(4.18 KB)
📄
usermenu.min.js
(2.36 KB)
📄
usermenu.min.js.map
(6.66 KB)
📄
utility.min.js
(3.91 KB)
📄
utility.min.js.map
(8.11 KB)
📄
utils.min.js
(819 B)
📄
utils.min.js.map
(3.35 KB)
📄
yui.min.js
(405 B)
📄
yui.min.js.map
(1.3 KB)
Editing: modal.min.js
/** * Contain the logic for modals. * * @module core/modal * @class core/modal * @copyright 2016 Ryan Wyllie <ryan@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ define("core/modal",["jquery","core/templates","core/notification","core/key_codes","core/custom_interaction_events","core/modal_backdrop","core_filters/events","core/modal_events","core/local/aria/focuslock","core/pending","core/aria","core/fullscreen"],(function($,Templates,Notification,KeyCodes,CustomEvents,ModalBackdrop,FilterEvents,ModalEvents,FocusLock,Pending,Aria,Fullscreen){var backdropPromise,SELECTORS_CONTAINER='[data-region="modal-container"]',SELECTORS_MODAL='[data-region="modal"]',SELECTORS_HEADER='[data-region="header"]',SELECTORS_TITLE='[data-region="title"]',SELECTORS_BODY='[data-region="body"]',SELECTORS_FOOTER='[data-region="footer"]',SELECTORS_HIDE='[data-action="hide"]',SELECTORS_DIALOG="[role=dialog]",SELECTORS_FORM="form",SELECTORS_MENU_BAR="[role=menubar]",SELECTORS_HAS_Z_INDEX=".moodle-has-zindex",TEMPLATES_LOADING="core/loading",TEMPLATES_BACKDROP="core/modal_backdrop",modalCounter=0,Modal=function(root){this.root=$(root),this.modal=this.root.find(SELECTORS_MODAL),this.header=this.modal.find(SELECTORS_HEADER),this.headerPromise=$.Deferred(),this.title=this.header.find(SELECTORS_TITLE),this.titlePromise=$.Deferred(),this.body=this.modal.find(SELECTORS_BODY),this.bodyPromise=$.Deferred(),this.footer=this.modal.find(SELECTORS_FOOTER),this.footerPromise=$.Deferred(),this.hiddenSiblings=[],this.isAttached=!1,this.bodyJS=null,this.footerJS=null,this.modalCount=modalCounter++,this.attachmentPoint=document.createElement("div"),document.body.append(this.attachmentPoint),this.focusOnClose=null,this.root.is(SELECTORS_CONTAINER)||Notification.exception({message:"Element is not a modal container"}),this.modal.length||Notification.exception({message:"Container does not contain a modal"}),this.header.length||Notification.exception({message:"Modal is missing a header region"}),this.title.length||Notification.exception({message:"Modal header is missing a title region"}),this.body.length||Notification.exception({message:"Modal is missing a body region"}),this.footer.length||Notification.exception({message:"Modal is missing a footer region"}),this.registerEventListeners()};return Modal.prototype.attachToDOM=function(){this.getAttachmentPoint().append(this.root),this.isAttached||(FocusLock.trapFocus(this.root[0]),this.bodyJS&&(Templates.runTemplateJS(this.bodyJS),this.bodyJS=null),this.footerJS&&(Templates.runTemplateJS(this.footerJS),this.footerJS=null),this.isAttached=!0)},Modal.prototype.countOtherVisibleModals=function(){var count=0;return $("body").find(SELECTORS_CONTAINER).each(function(index,element){element=$(element),!this.root.is(element)&&element.hasClass("show")&&count++}.bind(this)),count},Modal.prototype.getBackdrop=function(){return backdropPromise||(backdropPromise=Templates.render(TEMPLATES_BACKDROP,{}).then((function(html){var element=$(html);return new ModalBackdrop(element)})).fail(Notification.exception)),backdropPromise},Modal.prototype.getRoot=function(){return this.root},Modal.prototype.getModal=function(){return this.modal},Modal.prototype.getTitle=function(){return this.title},Modal.prototype.getBody=function(){return this.body},Modal.prototype.getFooter=function(){return this.footer},Modal.prototype.getTitlePromise=function(){return this.titlePromise},Modal.prototype.getBodyPromise=function(){return this.bodyPromise},Modal.prototype.getFooterPromise=function(){return this.footerPromise},Modal.prototype.getModalCount=function(){return this.modalCount},Modal.prototype.setTitle=function(value){var title=this.getTitle();this.titlePromise=$.Deferred(),this.asyncSet(value,title.html.bind(title)).then(function(){this.titlePromise.resolve(title)}.bind(this)).catch(Notification.exception)},Modal.prototype.setBody=function(value){this.bodyPromise=$.Deferred();var body=this.getBody();if("string"==typeof value)body.html(value),FilterEvents.notifyFilterContentUpdated(body),this.getRoot().trigger(ModalEvents.bodyRendered,this),this.bodyPromise.resolve(body);else{var jsPendingId="amd-modal-js-pending-id-"+this.getModalCount();M.util.js_pending(jsPendingId);var contentPromise=null;if(body.css("overflow","hidden"),"pending"==(value=$.when(value)).state()){var height=body.innerHeight();height<100&&(height=100),body.animate({height:height+"px"},150),body.html(""),contentPromise=Templates.render(TEMPLATES_LOADING,{}).then((function(html){var loadingIcon=$(html).hide();return body.html(loadingIcon),loadingIcon.fadeIn(150),$.when(loadingIcon.promise(),value)})).then((function(loadingIcon){return loadingIcon.fadeOut(100).promise()})).then((function(){return value}))}else contentPromise=value;contentPromise.then(function(html,js){var result=null;if(this.isVisible()){body.css("opacity",0);var currentHeight=body.innerHeight();body.html(html),body.css("height","");var newHeight=body.innerHeight();body.css("height",currentHeight+"px"),result=body.animate({height:newHeight+"px",opacity:1},{duration:150,queue:!1}).promise()}else body.html(html);return js&&(this.isAttached?Templates.runTemplateJS(js):this.bodyJS=js),result}.bind(this)).then(function(result){return FilterEvents.notifyFilterContentUpdated(body),this.getRoot().trigger(ModalEvents.bodyRendered,this),result}.bind(this)).then(function(){this.bodyPromise.resolve(body)}.bind(this)).fail(Notification.exception).always((function(){body.css("height",""),body.css("overflow",""),body.css("opacity",""),M.util.js_complete(jsPendingId)})).fail(Notification.exception)}},Modal.prototype.setBodyContent=function(promise){return promise.then((_ref=>{let{html:html,js:js}=_ref;return this.setBody($.when(html,js))})).catch((exception=>{throw this.hide(),exception}))},Modal.prototype.setFooter=function(value){this.showFooter(),this.footerPromise=$.Deferred();var footer=this.getFooter();"string"==typeof value?(footer.html(value),this.footerPromise.resolve(footer)):Templates.render(TEMPLATES_LOADING,{}).then((function(html){return footer.html(html),value})).then(function(html,js){return footer.html(html),js&&(this.isAttached?Templates.runTemplateJS(js):this.footerJS=js),footer}.bind(this)).then(function(footer){this.footerPromise.resolve(footer)}.bind(this)).catch(Notification.exception)},Modal.prototype.hasFooterContent=function(){return!!this.getFooter().children().length},Modal.prototype.hideFooter=function(){this.getFooter().addClass("hidden")},Modal.prototype.showFooter=function(){this.getFooter().removeClass("hidden")},Modal.prototype.setLarge=function(){this.isLarge()||this.getModal().addClass("modal-lg")},Modal.prototype.isLarge=function(){return this.getModal().hasClass("modal-lg")},Modal.prototype.setSmall=function(){this.isSmall()||this.getModal().removeClass("modal-lg")},Modal.prototype.isSmall=function(){return!this.getModal().hasClass("modal-lg")},Modal.prototype.setScrollable=function(value){value?this.getModal()[0].classList.add("modal-dialog-scrollable"):this.getModal()[0].classList.remove("modal-dialog-scrollable")},Modal.prototype.calculateZIndex=function(){var items=$(SELECTORS_DIALOG+", "+SELECTORS_MENU_BAR+", "+SELECTORS_HAS_Z_INDEX),zIndex=parseInt(this.root.css("z-index"));return items.each((function(index,item){var itemZIndex=(item=$(item)).css("z-index")?parseInt(item.css("z-index")):0;itemZIndex>zIndex&&(zIndex=itemZIndex)})),zIndex},Modal.prototype.isVisible=function(){return this.root.hasClass("show")},Modal.prototype.hasFocus=function(){var target=$(document.activeElement);return this.root.is(target)||this.root.has(target).length},Modal.prototype.hasTransitions=function(){return this.getRoot().hasClass("fade")},Modal.prototype.getAttachmentPoint=function(){return $(Fullscreen.getElement()||this.attachmentPoint)},Modal.prototype.show=function(){if(this.isVisible())return $.Deferred().resolve();var pendingPromise=new Pending("core/modal:show");return this.hasFooterContent()?this.showFooter():this.hideFooter(),this.attachToDOM(),!this.focusOnClose&&document.activeElement&&(this.focusOnClose=document.activeElement),this.getBackdrop().then(function(backdrop){var newIndex=this.calculateZIndex()+2,newBackdropIndex=newIndex-1;this.root.css("z-index",newIndex),backdrop.setZIndex(newBackdropIndex),backdrop.show(),this.root.removeClass("hide").addClass("show"),this.accessibilityShow(),this.getModal().focus(),$("body").addClass("modal-open"),this.root.trigger(ModalEvents.shown,this)}.bind(this)).then(pendingPromise.resolve)},Modal.prototype.hideIfNotForm=function(){0==this.modal.find(SELECTORS_FORM).length&&this.hide()},Modal.prototype.hide=function(){this.getBackdrop().done(function(backdrop){FocusLock.untrapFocus(),this.countOtherVisibleModals()||(backdrop.hide(),$("body").removeClass("modal-open"));var currentIndex=parseInt(this.root.css("z-index"));this.root.css("z-index",""),backdrop.setZIndex(currentIndex-3),this.accessibilityHide(),this.hasTransitions()?this.getRoot().one("transitionend webkitTransitionEnd oTransitionEnd",function(){this.getRoot().removeClass("show").addClass("hide")}.bind(this)):this.getRoot().removeClass("show").addClass("hide"),$(document.body).find(this.getRoot()).length&&$(document.body).append(this.getRoot()),this.root.trigger(ModalEvents.hidden,this)}.bind(this))},Modal.prototype.destroy=function(){this.hide(),this.root.remove(),this.root.trigger(ModalEvents.destroyed,this),this.attachmentPoint.remove()},Modal.prototype.accessibilityShow=function(){Aria.unhide(this.root.get()),Aria.hideSiblings(this.root.get()[0])},Modal.prototype.accessibilityHide=function(){Aria.unhideSiblings(this.root.get()[0]),Aria.hide(this.root.get())},Modal.prototype.registerEventListeners=function(){this.getRoot().on("keydown",function(e){this.isVisible()&&e.keyCode==KeyCodes.escape&&(this.removeOnClose?this.destroy():this.hide())}.bind(this)),this.getRoot().click(function(e){if(!$(e.target).closest(SELECTORS_MODAL).length&&$(e.target).closest(SELECTORS_CONTAINER).length){var outsideClickEvent=$.Event(ModalEvents.outsideClick);this.getRoot().trigger(outsideClickEvent,this),outsideClickEvent.isDefaultPrevented()||this.hideIfNotForm()}}.bind(this)),CustomEvents.define(this.getModal(),[CustomEvents.events.activate]),this.getModal().on(CustomEvents.events.activate,SELECTORS_HIDE,function(e,data){this.removeOnClose?this.destroy():this.hide(),data.originalEvent.preventDefault()}.bind(this)),this.getRoot().on(ModalEvents.hidden,(()=>{this.focusOnClose&&this.focusOnClose.focus()}))},Modal.prototype.registerCloseOnCancel=function(){this.getModal().on(CustomEvents.events.activate,this.getActionSelector("cancel"),function(e,data){var cancelEvent=$.Event(ModalEvents.cancel);this.getRoot().trigger(cancelEvent,this),cancelEvent.isDefaultPrevented()||(data.originalEvent.preventDefault(),this.removeOnClose?this.destroy():this.hide())}.bind(this))},Modal.prototype.registerCloseOnSave=function(){this.getModal().on(CustomEvents.events.activate,this.getActionSelector("save"),function(e,data){var saveEvent=$.Event(ModalEvents.save);this.getRoot().trigger(saveEvent,this),saveEvent.isDefaultPrevented()||(data.originalEvent.preventDefault(),this.removeOnClose?this.destroy():this.hide())}.bind(this))},Modal.prototype.registerCloseOnDelete=function(){this.getModal().on(CustomEvents.events.activate,this.getActionSelector("delete"),function(e,data){var deleteEvent=$.Event(ModalEvents.delete);this.getRoot().trigger(deleteEvent,this),deleteEvent.isDefaultPrevented()||(data.originalEvent.preventDefault(),this.removeOnClose?this.destroy():this.hide())}.bind(this))},Modal.prototype.asyncSet=function(value,setFunction){var p=value;return"object"==typeof value&&value.hasOwnProperty("then")||(p=$.Deferred()).resolve(value),p.then((function(content){setFunction(content)})).fail(Notification.exception),p},Modal.prototype.setButtonText=function(action,value){const button=this.getFooter().find(this.getActionSelector(action));if(!button)throw new Error("Unable to find the '"+action+"' button");return this.asyncSet(value,button.text.bind(button))},Modal.prototype.getActionSelector=function(action){return"[data-action='"+action+"']"},Modal.prototype.setRemoveOnClose=function(remove){this.removeOnClose=remove},Modal.prototype.setReturnElement=function(element){this.focusOnClose=element},Modal.prototype.setButtonDisabled=function(action,disabled){const button=this.getFooter().find(this.getActionSelector(action));if(!button)throw new Error("Unable to find the '"+action+"' button");disabled?button.attr("disabled",""):button.removeAttr("disabled")},Modal})); //# sourceMappingURL=modal.min.js.map
Upload File
Create Folder