init
This commit is contained in:
1
web10/public/js/filament/filament/app.js
Normal file
1
web10/public/js/filament/filament/app.js
Normal file
File diff suppressed because one or more lines are too long
13
web10/public/js/filament/filament/echo.js
Normal file
13
web10/public/js/filament/filament/echo.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
123
web10/public/js/filament/forms/components/file-upload.js
Normal file
123
web10/public/js/filament/forms/components/file-upload.js
Normal file
File diff suppressed because one or more lines are too long
1
web10/public/js/filament/forms/components/key-value.js
Normal file
1
web10/public/js/filament/forms/components/key-value.js
Normal file
@@ -0,0 +1 @@
|
||||
function i({state:o}){return{state:o,rows:[],shouldUpdateRows:!0,init:function(){this.updateRows(),this.rows.length<=0&&this.addRow(),this.shouldUpdateRows=!0,this.$watch("state",()=>{if(!this.shouldUpdateRows){this.shouldUpdateRows=!0;return}this.updateRows()})},addRow:function(){this.rows.push({key:"",value:""}),this.updateState()},deleteRow:function(t){this.rows.splice(t,1),this.rows.length<=0&&this.addRow(),this.updateState(),this.shouldUpdateRows=!0},reorderRows:function(t){let e=Alpine.raw(this.rows),s=e.splice(t.oldIndex,1)[0];e.splice(t.newIndex,0,s),this.rows=e,this.updateState()},updateRows:function(){let t=[];for(let[e,s]of Object.entries(this.state??{}))t.push({key:e,value:s});this.rows=t},updateState:function(){let t={};this.rows.forEach(e=>{e.key===""||e.key===null||(t[e.key]=e.value)}),this.shouldUpdateRows=!1,this.state=t}}}export{i as default};
|
||||
51
web10/public/js/filament/forms/components/markdown-editor.js
Normal file
51
web10/public/js/filament/forms/components/markdown-editor.js
Normal file
File diff suppressed because one or more lines are too long
143
web10/public/js/filament/forms/components/rich-editor.js
Normal file
143
web10/public/js/filament/forms/components/rich-editor.js
Normal file
File diff suppressed because one or more lines are too long
6
web10/public/js/filament/forms/components/select.js
Normal file
6
web10/public/js/filament/forms/components/select.js
Normal file
File diff suppressed because one or more lines are too long
1
web10/public/js/filament/forms/components/tags-input.js
Normal file
1
web10/public/js/filament/forms/components/tags-input.js
Normal file
@@ -0,0 +1 @@
|
||||
function i({state:a,splitKeys:n}){return{newTag:"",state:a,createTag:function(){if(this.newTag=this.newTag.trim(),this.newTag!==""){if(this.state.includes(this.newTag)){this.newTag="";return}this.state.push(this.newTag),this.newTag=""}},deleteTag:function(t){this.state=this.state.filter(e=>e!==t)},input:{["x-on:blur"]:"createTag()",["x-model"]:"newTag",["x-on:keydown"](t){["Enter",...n].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.createTag())},["x-on:paste"](){$nextTick(()=>{let t=n.map(e=>e.replace(/[/\-\\^$*+?.()|[\]{}]/g,"\\$&")).join("|");this.newTag.split(new RegExp(t,"g")).forEach(e=>{this.newTag=e,this.createTag()})})}}}}export{i as default};
|
||||
1
web10/public/js/filament/forms/components/textarea.js
Normal file
1
web10/public/js/filament/forms/components/textarea.js
Normal file
@@ -0,0 +1 @@
|
||||
function t({initialHeight:e}){return{render:function(){this.$el.scrollHeight>0&&(this.$el.style.height=e+"rem",this.$el.style.height=this.$el.scrollHeight+"px")}}}export{t as default};
|
||||
1
web10/public/js/filament/forms/forms.js
Normal file
1
web10/public/js/filament/forms/forms.js
Normal file
@@ -0,0 +1 @@
|
||||
(()=>{function b(n){n.directive("mask",(e,{value:t,expression:u},{effect:f,evaluateLater:c})=>{let r=()=>u,l="";queueMicrotask(()=>{if(["function","dynamic"].includes(t)){let o=c(u);f(()=>{r=a=>{let s;return n.dontAutoEvaluateFunctions(()=>{o(d=>{s=typeof d=="function"?d(a):d},{scope:{$input:a,$money:I.bind({el:e})}})}),s},i(e,!1)})}else i(e,!1);e._x_model&&e._x_model.set(e.value)}),e.addEventListener("input",()=>i(e)),e.addEventListener("blur",()=>i(e,!1));function i(o,a=!0){let s=o.value,d=r(s);if(!d||d==="false")return!1;if(l.length-o.value.length===1)return l=o.value;let g=()=>{l=o.value=p(s,d)};a?k(o,d,()=>{g()}):g()}function p(o,a){if(o==="")return"";let s=h(a,o);return m(a,s)}}).before("model")}function k(n,e,t){let u=n.selectionStart,f=n.value;t();let c=f.slice(0,u),r=m(e,h(e,c)).length;n.setSelectionRange(r,r)}function h(n,e){let t=e,u="",f={9:/[0-9]/,a:/[a-zA-Z]/,"*":/[a-zA-Z0-9]/},c="";for(let r=0;r<n.length;r++){if(["9","a","*"].includes(n[r])){c+=n[r];continue}for(let l=0;l<t.length;l++)if(t[l]===n[r]){t=t.slice(0,l)+t.slice(l+1);break}}for(let r=0;r<c.length;r++){let l=!1;for(let i=0;i<t.length;i++)if(f[c[r]].test(t[i])){u+=t[i],t=t.slice(0,i)+t.slice(i+1),l=!0;break}if(!l)break}return u}function m(n,e){let t=Array.from(e),u="";for(let f=0;f<n.length;f++){if(!["9","a","*"].includes(n[f])){u+=n[f];continue}if(t.length===0)break;u+=t.shift()}return u}function I(n,e=".",t,u=2){if(n==="-")return"-";if(/^\D+$/.test(n))return"9";t=t??(e===","?".":",");let f=(i,p)=>{let o="",a=0;for(let s=i.length-1;s>=0;s--)i[s]!==p&&(a===3?(o=i[s]+p+o,a=0):o=i[s]+o,a++);return o},c=n.startsWith("-")?"-":"",r=n.replaceAll(new RegExp(`[^0-9\\${e}]`,"g"),""),l=Array.from({length:r.split(e)[0].length}).fill("9").join("");return l=`${c}${f(l,t)}`,u>0&&n.includes(e)&&(l+=`${e}`+"9".repeat(u)),queueMicrotask(()=>{this.el.value.endsWith(e)||this.el.value[this.el.selectionStart-1]===e&&this.el.setSelectionRange(this.el.selectionStart-1,this.el.selectionStart-1)}),l}var v=b;document.addEventListener("alpine:init",()=>{window.Alpine.plugin(v)});})();
|
||||
1
web10/public/js/filament/notifications/notifications.js
Normal file
1
web10/public/js/filament/notifications/notifications.js
Normal file
File diff suppressed because one or more lines are too long
1
web10/public/js/filament/support/async-alpine.js
Normal file
1
web10/public/js/filament/support/async-alpine.js
Normal file
@@ -0,0 +1 @@
|
||||
(()=>{var l=t=>new Promise(e=>{window.addEventListener("async-alpine:load",n=>{n.detail.id===t.id&&e()})}),d=l,h=()=>new Promise(t=>{"requestIdleCallback"in window?window.requestIdleCallback(t):setTimeout(t,200)}),p=h,_=t=>new Promise(e=>{let n=t.indexOf("("),i=t.slice(n),s=window.matchMedia(i);s.matches?e():s.addEventListener("change",e,{once:!0})}),u=_,c=(t,e)=>new Promise(n=>{let i="0px 0px 0px 0px";if(e.indexOf("(")!==-1){let a=e.indexOf("(")+1;i=e.slice(a,-1)}let s=new IntersectionObserver(a=>{a[0].isIntersecting&&(s.disconnect(),n())},{rootMargin:i});s.observe(t.el)}),f=c,r="__internal_",o={Alpine:null,_options:{prefix:"ax-",alpinePrefix:"x-",root:"load",inline:"load-src",defaultStrategy:"immediate"},_alias:!1,_data:{},_realIndex:0,get _index(){return this._realIndex++},init(t,e={}){return this.Alpine=t,this._options={...this._options,...e},this},start(){return this._processInline(),this._setupComponents(),this._mutations(),this},data(t,e=!1){return this._data[t]={loaded:!1,download:e},this},url(t,e){!t||!e||(this._data[t]||this.data(t),this._data[t].download=()=>import(this._parseUrl(e)))},alias(t){this._alias=t},_processInline(){let t=document.querySelectorAll(`[${this._options.prefix}${this._options.inline}]`);for(let e of t)this._inlineElement(e)},_inlineElement(t){let e=t.getAttribute(`${this._options.alpinePrefix}data`),n=t.getAttribute(`${this._options.prefix}${this._options.inline}`);if(!e||!n)return;let i=this._parseName(e);this.url(i,n)},_setupComponents(){let t=document.querySelectorAll(`[${this._options.prefix}${this._options.root}]`);for(let e of t)this._setupComponent(e)},_setupComponent(t){let e=t.getAttribute(`${this._options.alpinePrefix}data`);t.setAttribute(`${this._options.alpinePrefix}ignore`,"");let n=this._parseName(e),i=t.getAttribute(`${this._options.prefix}${this._options.root}`)||this._options.defaultStrategy;this._componentStrategy({name:n,strategy:i,el:t,id:t.id||this._index})},async _componentStrategy(t){let e=t.strategy.split("|").map(i=>i.trim()).filter(i=>i!=="immediate").filter(i=>i!=="eager");if(!e.length){await this._download(t.name),this._activate(t);return}let n=[];for(let i of e){if(i==="idle"){n.push(p());continue}if(i.startsWith("visible")){n.push(f(t,i));continue}if(i.startsWith("media")){n.push(u(i));continue}i==="event"&&n.push(d(t))}Promise.all(n).then(async()=>{await this._download(t.name),this._activate(t)})},async _download(t){if(t.startsWith(r)||(this._handleAlias(t),!this._data[t]||this._data[t].loaded))return;let e=await this._getModule(t);this.Alpine.data(t,e),this._data[t].loaded=!0},async _getModule(t){if(!this._data[t])return;let e=await this._data[t].download();return typeof e=="function"?e:e[t]||e.default||Object.values(e)[0]||!1},_activate(t){t.el.removeAttribute(`${this._options.alpinePrefix}ignore`),t.el._x_ignore=!1,this.Alpine.initTree(t.el)},_mutations(){new MutationObserver(t=>{for(let e of t)if(e.addedNodes)for(let n of e.addedNodes)n.nodeType===1&&(n.hasAttribute(`${this._options.prefix}${this._options.root}`)&&this._mutationEl(n),n.querySelectorAll(`[${this._options.prefix}${this._options.root}]`).forEach(i=>this._mutationEl(i)))}).observe(document,{attributes:!0,childList:!0,subtree:!0})},_mutationEl(t){t.hasAttribute(`${this._options.prefix}${this._options.inline}`)&&this._inlineElement(t),this._setupComponent(t)},_handleAlias(t){!this._alias||this._data[t]||this.url(t,this._alias.replace("[name]",t))},_parseName(t){return(t||"").split(/[({]/g)[0]||`${r}${this._index}`},_parseUrl(t){return new RegExp("^(?:[a-z+]+:)?//","i").test(t)?t:new URL(t,document.baseURI).href}};document.addEventListener("alpine:init",()=>{window.AsyncAlpine=o,o.init(Alpine,window.AsyncAlpineOptions||{}),document.dispatchEvent(new CustomEvent("async-alpine:init")),o.start()});})();
|
||||
35
web10/public/js/filament/support/support.js
Normal file
35
web10/public/js/filament/support/support.js
Normal file
File diff suppressed because one or more lines are too long
1
web10/public/js/filament/tables/tables.js
Normal file
1
web10/public/js/filament/tables/tables.js
Normal file
@@ -0,0 +1 @@
|
||||
(()=>{})();
|
||||
29
web10/public/js/filament/widgets/components/chart.js
Normal file
29
web10/public/js/filament/widgets/components/chart.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user