From 6822b2bae3f8e5ecabd7d11ee72f1bb736866fdf Mon Sep 17 00:00:00 2001 From: Goldman Kim Date: Tue, 21 May 2024 17:28:58 +0900 Subject: [PATCH] . --- .../static/js/natural_js/natural.template.min.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/resources/static/js/natural_js/natural.template.min.js b/src/main/resources/static/js/natural_js/natural.template.min.js index 3de6c14..112aad4 100644 --- a/src/main/resources/static/js/natural_js/natural.template.min.js +++ b/src/main/resources/static/js/natural_js/natural.template.min.js @@ -8,11 +8,11 @@ */ (function(x,p){N.version["Natural-TEMPLATE"]="0.3.11";(function(c){var u=c.template={design:{material:function(b){String.prototype.includes||Object.defineProperty(String.prototype,"includes",{enumerable:!1,writable:!0,value:function(d,a){"number"!==typeof a&&(a=0);return a+d.length>this.length?!1:-1!==this.indexOf(d,a)}});Array.prototype.includes||Object.defineProperty(Array.prototype,"includes",{enumerable:!1,writable:!0,value:function(d,a){var f=Object(this),h=parseInt(f.length)||0;if(0===h)return!1; a=parseInt(a)||0;0<=a||(a=h+a,0>a&&(a=0));for(var k;a",{rel:"stylesheet",type:"text/css",href:"js/natural_js/css/natural.ui."+c.context.attr("template").design+".css"}).appendTo("head");p("",{rel:"stylesheet",type:"text/css",href:"css/common."+c.context.attr("template").design+".css"}).appendTo("head");p("",{rel:"stylesheet", -type:"text/css",href:"js/natural_js/lib/material/icon"+(c.browser.is("ie")?"_ie":"")+".css"}).appendTo("head");p("",{rel:"stylesheet",type:"text/css",href:"js/natural_js/lib/material/material-components-web.min.css"}).appendTo("head");void 0===c.context.attr("ui").button&&(c.context.attr("ui").button={});c.context.attr("ui").button.customStyle=!0;c.context.attr("ui").alert.onBeforeShow=c.context.attr("ui").popup.onBeforeShow=u.aop.design.material.onBeforeShow;b()}).fail(function(d){c.log(d); -c.context.attr("template").design=void 0;b()})}},aop:{design:{material:{init:function(b,d){d?(this.button(b),this.textfield(b),this.select(b)):(this.iconButton(b),this.list(b))},button:function(b){c(".mdc-button",b.view).each(function(d,a){a.className=c.string.trimToEmpty(a.className.replace(/btn_.*?__/g,""));d=a.getAttribute("data-icon");var f='
';d&&(d=''+d+"",0'+a.innerText+"");a.innerHTML=f;mdc.ripple.MDCRipple.attachTo(a)})},iconButton:function(b){c(".mdc-icon-button",b.view).each(function(d,a){a.className="material-icons mdc-ripple-upgraded--unbounded mdc-ripple-upgraded "+c.string.trimToEmpty(a.className.replace(/btn_.*?__/g,""));mdc.ripple.MDCRipple.attachTo(a).unbounded=!0})},onBeforeShow:function(b,d){if(this.options.isInput)return!1;void 0!== -this.options.title&&d.find(".msg_box__").css("padding-top",0);d.find(".buttonBox__ .button__").each(function(a,f){f.className="mdc-button "+c.string.trimToEmpty(f.className.replace(/btn_.*?__/g,""));a=f.getAttribute("data-icon");f.innerHTML='
'+(a?''+a+" ":"")+''+f.innerText+"";mdc.ripple.MDCRipple.attachTo(f)})},textfield:function(b){c(".mdc-text-field",b.view).each(function(d, -a){a=p(a);var f=a.attr("id"),h=a.data("label"),k=String(Math.random()).replace("0.",""),e=a.data("nolabel")?a.data("nolabel"):!1;a.is("textarea")?(a.addClass("mdc-text-field__input").removeClass("mdc-text-field"),a.attr("aria-label",h),"outlined"===a.data("type")?(d=a.wrap('').parent(),d=d.wrap('').parent(),d.prepend(''+ +type:"text/css",href:"js/natural_js/lib/material/icon"+(c.browser.is("ie")?"_ie":"")+".css"}).appendTo("head");p("",{rel:"stylesheet",type:"text/css",href:"js/natural_js/lib/material/material-components-web.min.css"}).appendTo("head");c.context.attr("ui").alert.onBeforeShow=c.context.attr("ui").popup.onBeforeShow=u.aop.design.material.onBeforeShow;b()}).fail(function(d){c.log(d);c.context.attr("template").design=void 0;b()})}},aop:{design:{material:{init:function(b,d){d?(this.button(b),this.textfield(b), +this.select(b)):(this.iconButton(b),this.list(b))},button:function(b){c(".mdc-button",b.view).each(function(d,a){a.className=c.string.trimToEmpty(a.className.replace(/btn_.*?__/g,""));d=a.getAttribute("data-icon");var f='
';d&&(d=''+d+"",0'+a.innerText+"
"); +a.innerHTML=f;mdc.ripple.MDCRipple.attachTo(a)})},iconButton:function(b){c(".mdc-icon-button",b.view).each(function(d,a){a.className="material-icons mdc-ripple-upgraded--unbounded mdc-ripple-upgraded "+c.string.trimToEmpty(a.className.replace(/btn_.*?__/g,""));mdc.ripple.MDCRipple.attachTo(a).unbounded=!0})},onBeforeShow:function(b,d){if(this.options.isInput)return!1;void 0!==this.options.title&&d.find(".msg_box__").css("padding-top",0);d.find(".buttonBox__ .button__").each(function(a,f){f.className= +"mdc-button "+c.string.trimToEmpty(f.className.replace(/btn_.*?__/g,""));a=f.getAttribute("data-icon");f.innerHTML='
'+(a?''+a+" ":"")+''+f.innerText+"";mdc.ripple.MDCRipple.attachTo(f)})},textfield:function(b){c(".mdc-text-field",b.view).each(function(d,a){a=p(a);var f=a.attr("id"),h=a.data("label"),k=String(Math.random()).replace("0.",""),e=a.data("nolabel")? +a.data("nolabel"):!1;a.is("textarea")?(a.addClass("mdc-text-field__input").removeClass("mdc-text-field"),a.attr("aria-label",h),"outlined"===a.data("type")?(d=a.wrap('').parent(),d=d.wrap('').parent(),d.prepend(''+ (e?"":''+h+"")+'')):(d=a.wrap('').parent(),d=d.wrap('').parent(),d.prepend(''+h+""),d.prepend(''), d.append(''))):(a.css({padding:"0",border:"none"}),a.addClass("mdc-text-field__input").removeClass("mdc-text-field"),a.attr("aria-labelledby",f+"-label-"+k),"outlined"===a.data("type")?(d=a.wrap('').parent(),d.prepend(''+(e?"":''+h+"")+'')):(d=a.wrap('').parent(),e||d.prepend(''+h+""),d.prepend(''),d.append('')),f=a.data("btnid"),h="",f&&(h=' id="'+f+'"'),a.data("trailingicon")?(d.addClass("mdc-text-field--with-trailing-icon"),