vome-core 0.1.31 → 0.1.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/admin/config/plugin-dev.js +1 -1
- package/dist/admin/crud/components/vm-richtext-extensions.d.ts +4 -2
- package/dist/admin/crud/components/vm-richtext-extensions.js +1 -1
- package/dist/admin/crud/components/vm-richtext.vue +104 -64
- package/dist/admin/crud/config.js +1 -1
- package/dist/admin/crud/confirm.js +1 -1
- package/dist/admin/crud/dict.js +1 -1
- package/dist/admin/crud/key.js +1 -1
- package/dist/admin/crud/mitt.js +1 -1
- package/dist/admin/crud/plugins.js +1 -1
- package/dist/admin/crud/span.js +1 -1
- package/dist/admin/crud/style.js +1 -1
- package/dist/admin/crud/validate.js +1 -1
- package/dist/admin/directives/perm.js +1 -1
- package/dist/admin/hooks/useUpload.js +1 -1
- package/dist/admin/lib/browser.js +1 -1
- package/dist/admin/lib/cn.js +1 -1
- package/dist/admin/lib/dialog-float.js +1 -1
- package/dist/admin/lib/export-excel.js +1 -1
- package/dist/admin/lib/import-excel.js +1 -1
- package/dist/admin/lib/json.js +1 -1
- package/dist/admin/lib/menu.js +1 -1
- package/dist/admin/lib/tree.js +1 -1
- package/dist/admin/lib/upload.js +1 -1
- package/dist/admin/lib/video-frame.js +1 -1
- package/dist/index.js +1 -1
- package/dist/server/index.js +1 -1
- package/dist/shared/excel.js +1 -1
- package/dist/shared/index.js +1 -1
- package/dist/shared/locale-json.js +1 -1
- package/dist/shared/tree.js +1 -1
- package/package.json +18 -73
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x31d91a=_0x1824;(function(_0x4ce650,_0x207eb8){const _0x40a5ee=_0x1824,_0x531727=_0x4ce650();while(!![]){try{const _0x159c76=parseInt(_0x40a5ee(0x7b))/0x1*(-parseInt(_0x40a5ee(0x98))/0x2)+-parseInt(_0x40a5ee(0x83))/0x3+-parseInt(_0x40a5ee(0x80))/0x4*(-parseInt(_0x40a5ee(0x87))/0x5)+parseInt(_0x40a5ee(0x7c))/0x6*(parseInt(_0x40a5ee(0x85))/0x7)+-parseInt(_0x40a5ee(0x92))/0x8+-parseInt(_0x40a5ee(0x8f))/0x9+parseInt(_0x40a5ee(0x81))/0xa;if(_0x159c76===_0x207eb8)break;else _0x531727['push'](_0x531727['shift']());}catch(_0x3d1c2a){_0x531727['push'](_0x531727['shift']());}}}(_0x2012,0x9e484));const ORG=_0x31d91a(0x7f);export function serviceUrlFromDocs(_0x1917ed){const _0x594c88=_0x31d91a,_0x19a7e5=new URL(_0x1917ed),_0x25fd8b=_0x19a7e5['hostname'][_0x594c88(0x84)](/^www\./,'')[_0x594c88(0x84)](/^service\./,'');return _0x19a7e5[_0x594c88(0x91)]+_0x594c88(0x97)+_0x25fd8b;}export function seatApiBaseFromDocs(_0x40fb23){const _0x5dd906=_0x31d91a;return serviceUrlFromDocs(_0x40fb23)+_0x5dd906(0x8b);}export function licenseIssueUrlFromDocs(_0x332392){const _0x1fb397=_0x31d91a;return serviceUrlFromDocs(_0x332392)+_0x1fb397(0x94);}function giteeArchive(_0x4d494c){const _0x31a231=_0x31d91a;return'https://gitee.com/'+ORG+'/'+_0x4d494c+_0x31a231(0x90);}function githubArchive(_0x1a37eb){const _0x598d14=_0x31d91a;return _0x598d14(0x8a)+ORG+'/'+_0x1a37eb+_0x598d14(0x82);}function giteeRepo(_0x5c236c){const _0x1d27e2=_0x31d91a;return _0x1d27e2(0x7e)+ORG+'/'+_0x5c236c;}function githubRepo(_0x3e69ba){return'https://github.com/'+ORG+'/'+_0x3e69ba;}function _0x2012(){const _0xfc1bd4=['Ahr0Chm6lY9NAxrODwiUy29TlW','l2fWCc9WBhvNAw5tDg9Yzs9Zzwf0','z2L0zwu','DM9Tzs1WBhvNAw4TzNvSBa','l3bSDwDPBNmVDxbSB2fK','otuYmtC2nK1TEMrcsG','l3jLCg9ZAxrVCNKVyxjJAgL2zs9Tyxn0zxiUEMLW','ChjVDg9JB2W','nJyWmZu2oenpu2Dhra','57QV5yMn56UV','l2fWCc9WBhvNAw5tDg9Yzs93ywXSzxqVBgLJzw5Zzs9PC3n1zq','6zkP5A2qic8G5PYn5yQH56UV5O+s5lU26isA5OMl5P6277YilNzVBwxVVjRKU4uGC2vYDMvY77Yj77Ym6ycc5zci5lIk5lYG44cb55+T5l+H44cb5PsV5lUy562j6io95yQB5OMP5Bgv44cc','DM9Tzs1WBhvNAw4TC2vYDMLJzq','lY9Zzxj2AwnLlG','mtm0nJjxvxHbwxG','57QV5zco56UV','Ahr0Chm6lY92B21LA2OUy29T','mtu4verztw5k','mJrRvw9sr1O','5A6m5Pw05lIA5yQH5QIH5z2x6isA5OMl5P6277YilNzVBwxVVjRLKkSGC2vYDMvYios4JIb3zwlVViNVViZMNkZLNldLVidLJ5hMIzpLJixLKi7LJ5hLUipJGii','Ahr0Chm6lY9NAxrLzs5JB20V','DM9TzwTQ','oty2mdrgCNffzLe','mZuWmtK4nJbYtKjnzhu','l2fYy2HPDMuVCMvMCY9OzwfKCY9Tyxn0zxiUEMLW','mtGYnJaXmfjlsvzvza','CMvWBgfJzq','mte0mZG0mLnRyuHhEq','DM9Tzs1WBhvNAw4TzNjVBNq','mtbSuKrzqMy','yMfJA2vUza','zNjVBNrLBMq'];_0x2012=function(){return _0xfc1bd4;};return _0x2012();}const docsUrl=_0x31d91a(0x7a);function _0x1824(_0x100c28,_0x1f0557){_0x100c28=_0x100c28-0x7a;const _0x2012e1=_0x2012();let _0x1824fc=_0x2012e1[_0x100c28];if(_0x1824['ESTQcT']===undefined){var _0x57a7ac=function(_0x35c30d){const _0x3f17e8='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1917ed='',_0x19a7e5='';for(let _0x25fd8b=0x0,_0x40fb23,_0x332392,_0x4d494c=0x0;_0x332392=_0x35c30d['charAt'](_0x4d494c++);~_0x332392&&(_0x40fb23=_0x25fd8b%0x4?_0x40fb23*0x40+_0x332392:_0x332392,_0x25fd8b++%0x4)?_0x1917ed+=String['fromCharCode'](0xff&_0x40fb23>>(-0x2*_0x25fd8b&0x6)):0x0){_0x332392=_0x3f17e8['indexOf'](_0x332392);}for(let _0x1a37eb=0x0,_0x5c236c=_0x1917ed['length'];_0x1a37eb<_0x5c236c;_0x1a37eb++){_0x19a7e5+='%'+('00'+_0x1917ed['charCodeAt'](_0x1a37eb)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x19a7e5);};_0x1824['McmWAw']=_0x57a7ac,_0x1824['ebLHNv']={},_0x1824['ESTQcT']=!![];}const _0x41b24c=_0x2012e1[0x0],_0x47c723=_0x100c28+_0x41b24c,_0x2483f5=_0x1824['ebLHNv'][_0x47c723];return!_0x2483f5?(_0x1824fc=_0x1824['McmWAw'](_0x1824fc),_0x1824['ebLHNv'][_0x47c723]=_0x1824fc):_0x1824fc=_0x2483f5,_0x1824fc;}export const pluginDev={'docsUrl':docsUrl,'serviceUrl':serviceUrlFromDocs(docsUrl),'uploadUrl':docsUrl+_0x31d91a(0x8e),'mirrors':{'prefer':_0x31d91a(0x8c),'giteeOrg':_0x31d91a(0x7e)+ORG,'githubOrg':_0x31d91a(0x8a)+ORG},'scaffolds':{'full':{'key':'full','title':'前端\x20+\x20后端','desc':_0x31d91a(0x7d),'repo':_0x31d91a(0x8d),'repoUrl':giteeRepo(_0x31d91a(0x8d)),'githubRepoUrl':githubRepo(_0x31d91a(0x8d)),'downloadUrl':giteeArchive(_0x31d91a(0x8d)),'githubDownloadUrl':githubArchive('vome-plugin-full')},'backend':{'key':_0x31d91a(0x88),'title':_0x31d91a(0x99),'desc':_0x31d91a(0x95),'repo':_0x31d91a(0x96),'repoUrl':giteeRepo(_0x31d91a(0x96)),'githubRepoUrl':githubRepo(_0x31d91a(0x96)),'downloadUrl':giteeArchive('vome-plugin-service'),'githubDownloadUrl':githubArchive('vome-plugin-service')},'frontend':{'key':_0x31d91a(0x89),'title':_0x31d91a(0x93),'desc':'后台微应用脚手架(.vome:含\x20web/),以\x20wujie\x20挂载独立前端页面。','repo':_0x31d91a(0x86),'repoUrl':giteeRepo('vome-plugin-front'),'githubRepoUrl':githubRepo('vome-plugin-front'),'downloadUrl':giteeArchive('vome-plugin-front'),'githubDownloadUrl':githubArchive(_0x31d91a(0x86))}}};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { Node } from '@tiptap/core';
|
|
1
2
|
/** OSS 直传后的 `<video>` 块 */
|
|
2
|
-
export declare const VmRichtextVideo: any
|
|
3
|
+
export declare const VmRichtextVideo: Node<any, any>;
|
|
3
4
|
declare module '@tiptap/core' {
|
|
4
5
|
interface Commands<ReturnType> {
|
|
5
6
|
video: {
|
|
@@ -9,4 +10,5 @@ declare module '@tiptap/core' {
|
|
|
9
10
|
};
|
|
10
11
|
}
|
|
11
12
|
}
|
|
12
|
-
|
|
13
|
+
/** 常用表情(面板展示;可继续扩) */
|
|
14
|
+
export declare const VM_RICHTEXT_EMOJIS: readonly ["😀", "😃", "😄", "😁", "😆", "😅", "🤣", "😂", "🙂", "🙃", "😉", "😊", "😇", "🥰", "😍", "🤩", "😘", "😗", "😚", "😙", "😋", "😛", "😜", "🤪", "😝", "🤑", "🤗", "🤭", "🤫", "🤔", "🤐", "🤨", "😐", "😑", "😶", "😏", "😒", "🙄", "😬", "🤥", "😌", "😔", "😪", "🤤", "😴", "😷", "🤒", "🤕", "🤢", "🤮", "🥵", "🥶", "🥴", "😵", "🤯", "🤠", "🥳", "😎", "🤓", "🧐", "😕", "😟", "🙁", "☹️", "😮", "😯", "😲", "😳", "🥺", "😦", "😧", "😨", "😰", "😥", "😢", "😭", "😱", "😖", "😣", "😞", "😓", "😩", "😫", "🥱", "😤", "😡", "😠", "🤬", "😈", "👿", "👋", "🤚", "🖐", "✋", "🖖", "👌", "🤌", "🤏", "✌️", "🤞", "🤟", "🤘", "🤙", "👈", "👉", "👆", "🖕", "👇", "☝️", "👍", "👎", "✊", "👊", "🤛", "🤜", "👏", "🙌", "👐", "🤲", "🤝", "🙏", "💪", "🦾", "✍️", "💅", "🤳", "❤️", "🧡", "💛", "💚", "💙", "💜", "🖤", "🤍", "🤎", "💔", "❣️", "💕", "💞", "💓", "💗", "💖", "💘", "💝", "💟", "☮️", "✝️", "☪️", "🕉", "☸️", "✡️", "🔯", "🕎", "☯️", "☦️", "🛐", "⭐", "🌟", "✨", "⚡", "🔥", "💥", "☀️", "🌙", "⭐️", "🌈", "✅", "❌", "⭕", "❗", "❓", "‼️", "⁉️", "💯", "🔔", "🔕", "📌", "📍", "📎", "🔗", "🔒", "🔓", "🔑", "🗝", "💡", "🔦", "📝", "✏️", "✒️", "🖊", "🖋", "🖌", "🖍", "💼", "📁", "📂", "📅", "📆", "🗓", "📇", "📈", "📉", "📊", "📋", "📤", "📥", "📦", "📫", "📬", "📭", "📮", "📯", "📜", "📃", "📄", "📑", "☕", "🍵", "🧃", "🥤", "🧋", "🍺", "🍻", "🥂", "🍷", "🍸", "🍕", "🍔", "🍟", "🌭", "🍿", "🍩", "🍪", "🎂", "🍰", "🧁", "🍎", "🍊", "🍋", "🍌", "🍉", "🍇", "🍓", "🫐", "🍒", "🍑", "⚽", "🏀", "🏈", "⚾", "🎾", "🏐", "🏉", "🎱", "🏓", "🏸", "🎮", "🕹", "🎲", "🧩", "🎯", "🎳", "🎰", "🎸", "🎹", "🥁", "🎤", "🎧", "🎬", "🎥", "📷", "📸", "📹", "📺", "📻", "🎙", "🚀", "✈️", "🛩", "🛫", "🛬", "🛰", "💺", "🛸", "🚁", "🛶", "🚗", "🚕", "🚙", "🚌", "🚎", "🏎", "🚓", "🚑", "🚒", "🚐", "🏠", "🏡", "🏢", "🏣", "🏤", "🏥", "🏦", "🏨", "🏩", "🏪", "🐶", "🐱", "🐭", "🐹", "🐰", "🦊", "🐻", "🐼", "🐻❄️", "🐨", "🐯", "🦁", "🐮", "🐷", "🐸", "🐵", "🙈", "🙉", "🙊", "🐒", "🐔", "🐧", "🐦", "🐤", "🐣", "🐥", "🦆", "🦅", "🦉", "🦇", "🎉", "🎊", "🎈", "🎁", "🎀", "🎗", "🎫", "🎟", "🏆", "🏅"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x2dd3b8=_0x49bb;function _0x32d5(){const _0x4bf947=['mtuYnZu0ChzWDMf4','nteZmZm4mfHSswX0zq','ovbXvfb0va','BMfTzq','y3jLyxrL','Bwf4lxDPzhrOoJeWmcu7yM9YzgvYlxjHzgL1CZO4ChG','mJC0mZCZmJbmuKfkvfy','mJfbvhLJA3C','DMLKzw8','DMLKzw9BC3jJxq','mtKXndGWve5fr2zb','8j+qU+kaJEkDHo+4JW','nJq2nZm1yLvLA1by','nZq5nJi2ngr6uhPuCa','mJH1DvvXrLy','ndeXmJuXnhvXqur3qG'];_0x32d5=function(){return _0x4bf947;};return _0x32d5();}function _0x49bb(_0x1867fc,_0x553ae4){_0x1867fc=_0x1867fc-0x1d4;const _0x32d5c2=_0x32d5();let _0x49bb68=_0x32d5c2[_0x1867fc];if(_0x49bb['uybJOh']===undefined){var _0x39447d=function(_0x49687a){const _0x1c9af5='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5de107='',_0x1847fe='';for(let _0xc2310e=0x0,_0x35a00f,_0x373881,_0x1aa84a=0x0;_0x373881=_0x49687a['charAt'](_0x1aa84a++);~_0x373881&&(_0x35a00f=_0xc2310e%0x4?_0x35a00f*0x40+_0x373881:_0x373881,_0xc2310e++%0x4)?_0x5de107+=String['fromCharCode'](0xff&_0x35a00f>>(-0x2*_0xc2310e&0x6)):0x0){_0x373881=_0x1c9af5['indexOf'](_0x373881);}for(let _0xc1256b=0x0,_0x14b9e6=_0x5de107['length'];_0xc1256b<_0x14b9e6;_0xc1256b++){_0x1847fe+='%'+('00'+_0x5de107['charCodeAt'](_0xc1256b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1847fe);};_0x49bb['CEYJzv']=_0x39447d,_0x49bb['hDQoBP']={},_0x49bb['uybJOh']=!![];}const _0x5b4a30=_0x32d5c2[0x0],_0x34454e=_0x1867fc+_0x5b4a30,_0x390aeb=_0x49bb['hDQoBP'][_0x34454e];return!_0x390aeb?(_0x49bb68=_0x49bb['CEYJzv'](_0x49bb68),_0x49bb['hDQoBP'][_0x34454e]=_0x49bb68):_0x49bb68=_0x390aeb,_0x49bb68;}(function(_0x1811b5,_0x4305e6){const _0x49be71=_0x49bb,_0x46ee29=_0x1811b5();while(!![]){try{const _0x2365b7=parseInt(_0x49be71(0x1d9))/0x1+parseInt(_0x49be71(0x1df))/0x2*(-parseInt(_0x49be71(0x1d6))/0x3)+parseInt(_0x49be71(0x1dd))/0x4*(-parseInt(_0x49be71(0x1db))/0x5)+-parseInt(_0x49be71(0x1de))/0x6+parseInt(_0x49be71(0x1e0))/0x7+parseInt(_0x49be71(0x1dc))/0x8*(-parseInt(_0x49be71(0x1e1))/0x9)+parseInt(_0x49be71(0x1d5))/0xa;if(_0x2365b7===_0x4305e6)break;else _0x46ee29['push'](_0x46ee29['shift']());}catch(_0x5dc5ca){_0x46ee29['push'](_0x46ee29['shift']());}}}(_0x32d5,0x93f50));import{Node,mergeAttributes}from'@tiptap/core';export const VmRichtextVideo=Node[_0x2dd3b8(0x1e3)]({'name':_0x2dd3b8(0x1d7),'group':'block','atom':!![],'selectable':!![],'draggable':!![],'addAttributes'(){return{'src':{'default':null},'controls':{'default':!![]}};},'parseHTML'(){const _0x15480d=_0x2dd3b8;return[{'tag':_0x15480d(0x1d8)}];},'renderHTML'({HTMLAttributes:_0x5de107}){const _0x35e129=_0x2dd3b8;return['video',mergeAttributes(_0x5de107,{'controls':!![],'style':_0x35e129(0x1d4)})];},'addCommands'(){const _0x2d3edf=_0x2dd3b8;return{'setVideo':_0x1847fe=>({commands:_0xc2310e})=>_0xc2310e['insertContent']({'type':this[_0x2d3edf(0x1e2)],'attrs':_0x1847fe})};}});export const VM_RICHTEXT_EMOJIS=['\uD83D\uDE00','\uD83D\uDE03','\uD83D\uDE04','\uD83D\uDE01','\uD83D\uDE06','\uD83D\uDE05','\uD83E\uDD23','\uD83D\uDE02','\uD83D\uDE42','\uD83D\uDE43','\uD83D\uDE09','\uD83D\uDE0A','\uD83D\uDE07','\uD83E\uDD70','\uD83D\uDE0D','\uD83E\uDD29','\uD83D\uDE18','\uD83D\uDE17','\uD83D\uDE1A','\uD83D\uDE19','\uD83D\uDE0B','\uD83D\uDE1B','\uD83D\uDE1C','\uD83E\uDD2A','\uD83D\uDE1D','\uD83E\uDD11','\uD83E\uDD17','\uD83E\uDD2D','\uD83E\uDD2B','\uD83E\uDD14','\uD83E\uDD10','\uD83E\uDD28','\uD83D\uDE10','\uD83D\uDE11','\uD83D\uDE36','\uD83D\uDE0F','\uD83D\uDE12','\uD83D\uDE44','\uD83D\uDE2C','\uD83E\uDD25','\uD83D\uDE0C','\uD83D\uDE14','\uD83D\uDE2A','\uD83E\uDD24','\uD83D\uDE34','\uD83D\uDE37','\uD83E\uDD12','\uD83E\uDD15','\uD83E\uDD22','\uD83E\uDD2E','\uD83E\uDD75','\uD83E\uDD76','\uD83E\uDD74','\uD83D\uDE35','\uD83E\uDD2F','\uD83E\uDD20','\uD83E\uDD73','\uD83D\uDE0E','\uD83E\uDD13','\uD83E\uDDD0','\uD83D\uDE15','\uD83D\uDE1F','\uD83D\uDE41','☹️','\uD83D\uDE2E','\uD83D\uDE2F','\uD83D\uDE32','\uD83D\uDE33','\uD83E\uDD7A','\uD83D\uDE26','\uD83D\uDE27','\uD83D\uDE28','\uD83D\uDE30','\uD83D\uDE25','\uD83D\uDE22','\uD83D\uDE2D','\uD83D\uDE31','\uD83D\uDE16','\uD83D\uDE23','\uD83D\uDE1E','\uD83D\uDE13','\uD83D\uDE29','\uD83D\uDE2B','\uD83E\uDD71','\uD83D\uDE24','\uD83D\uDE21','\uD83D\uDE20','\uD83E\uDD2C','\uD83D\uDE08','\uD83D\uDC7F','\uD83D\uDC4B','\uD83E\uDD1A','\uD83D\uDD90','✋','\uD83D\uDD96','\uD83D\uDC4C','\uD83E\uDD0C','\uD83E\uDD0F','✌️','\uD83E\uDD1E','\uD83E\uDD1F','\uD83E\uDD18','\uD83E\uDD19','\uD83D\uDC48','\uD83D\uDC49','\uD83D\uDC46','\uD83D\uDD95','\uD83D\uDC47','☝️','\uD83D\uDC4D','\uD83D\uDC4E','✊','\uD83D\uDC4A','\uD83E\uDD1B','\uD83E\uDD1C','\uD83D\uDC4F','\uD83D\uDE4C','\uD83D\uDC50','\uD83E\uDD32','\uD83E\uDD1D','\uD83D\uDE4F','\uD83D\uDCAA','\uD83E\uDDBE','✍️','\uD83D\uDC85','\uD83E\uDD33','❤️','\uD83E\uDDE1','\uD83D\uDC9B','\uD83D\uDC9A','\uD83D\uDC99','\uD83D\uDC9C','\uD83D\uDDA4','\uD83E\uDD0D','\uD83E\uDD0E','\uD83D\uDC94','❣️','\uD83D\uDC95','\uD83D\uDC9E','\uD83D\uDC93','\uD83D\uDC97','\uD83D\uDC96','\uD83D\uDC98','\uD83D\uDC9D','\uD83D\uDC9F','☮️','✝️','☪️','\uD83D\uDD49','☸️','✡️','\uD83D\uDD2F','\uD83D\uDD4E','☯️','☦️','\uD83D\uDED0','⭐','\uD83C\uDF1F','✨','⚡','\uD83D\uDD25','\uD83D\uDCA5','☀️','\uD83C\uDF19','⭐️','\uD83C\uDF08','✅','❌','⭕','❗','❓','‼️','⁉️','\uD83D\uDCAF','\uD83D\uDD14','\uD83D\uDD15','\uD83D\uDCCC','\uD83D\uDCCD','\uD83D\uDCCE','\uD83D\uDD17','\uD83D\uDD12','\uD83D\uDD13','\uD83D\uDD11','\uD83D\uDDDD','\uD83D\uDCA1','\uD83D\uDD26','\uD83D\uDCDD','✏️','✒️','\uD83D\uDD8A','\uD83D\uDD8B','\uD83D\uDD8C','\uD83D\uDD8D','\uD83D\uDCBC','\uD83D\uDCC1','\uD83D\uDCC2','\uD83D\uDCC5','\uD83D\uDCC6','\uD83D\uDDD3','\uD83D\uDCC7','\uD83D\uDCC8','\uD83D\uDCC9','\uD83D\uDCCA','\uD83D\uDCCB','\uD83D\uDCE4','\uD83D\uDCE5','\uD83D\uDCE6','\uD83D\uDCEB','\uD83D\uDCEC','\uD83D\uDCED','\uD83D\uDCEE','\uD83D\uDCEF','\uD83D\uDCDC','\uD83D\uDCC3','\uD83D\uDCC4','\uD83D\uDCD1','☕','\uD83C\uDF75','\uD83E\uDDC3','\uD83E\uDD64','\uD83E\uDDCB','\uD83C\uDF7A','\uD83C\uDF7B','\uD83E\uDD42','\uD83C\uDF77','\uD83C\uDF78','\uD83C\uDF55','\uD83C\uDF54','\uD83C\uDF5F','\uD83C\uDF2D','\uD83C\uDF7F','\uD83C\uDF69','\uD83C\uDF6A','\uD83C\uDF82','\uD83C\uDF70','\uD83E\uDDC1','\uD83C\uDF4E','\uD83C\uDF4A','\uD83C\uDF4B','\uD83C\uDF4C','\uD83C\uDF49','\uD83C\uDF47','\uD83C\uDF53','\uD83E\uDED0','\uD83C\uDF52','\uD83C\uDF51','⚽','\uD83C\uDFC0','\uD83C\uDFC8','⚾','\uD83C\uDFBE','\uD83C\uDFD0','\uD83C\uDFC9','\uD83C\uDFB1','\uD83C\uDFD3','\uD83C\uDFF8','\uD83C\uDFAE','\uD83D\uDD79','\uD83C\uDFB2','\uD83E\uDDE9','\uD83C\uDFAF','\uD83C\uDFB3','\uD83C\uDFB0','\uD83C\uDFB8','\uD83C\uDFB9','\uD83E\uDD41','\uD83C\uDFA4','\uD83C\uDFA7','\uD83C\uDFAC','\uD83C\uDFA5','\uD83D\uDCF7','\uD83D\uDCF8','\uD83D\uDCF9','\uD83D\uDCFA','\uD83D\uDCFB','\uD83C\uDF99','\uD83D\uDE80','✈️','\uD83D\uDEE9','\uD83D\uDEEB','\uD83D\uDEEC','\uD83D\uDEF0','\uD83D\uDCBA','\uD83D\uDEF8','\uD83D\uDE81','\uD83D\uDEF6','\uD83D\uDE97','\uD83D\uDE95','\uD83D\uDE99','\uD83D\uDE8C','\uD83D\uDE8E','\uD83C\uDFCE','\uD83D\uDE93','\uD83D\uDE91','\uD83D\uDE92','\uD83D\uDE90','\uD83C\uDFE0','\uD83C\uDFE1','\uD83C\uDFE2','\uD83C\uDFE3','\uD83C\uDFE4','\uD83C\uDFE5','\uD83C\uDFE6','\uD83C\uDFE8','\uD83C\uDFE9','\uD83C\uDFEA','\uD83D\uDC36','\uD83D\uDC31','\uD83D\uDC2D','\uD83D\uDC39','\uD83D\uDC30','\uD83E\uDD8A','\uD83D\uDC3B','\uD83D\uDC3C',_0x2dd3b8(0x1da),'\uD83D\uDC28','\uD83D\uDC2F','\uD83E\uDD81','\uD83D\uDC2E','\uD83D\uDC37','\uD83D\uDC38','\uD83D\uDC35','\uD83D\uDE48','\uD83D\uDE49','\uD83D\uDE4A','\uD83D\uDC12','\uD83D\uDC14','\uD83D\uDC27','\uD83D\uDC26','\uD83D\uDC24','\uD83D\uDC23','\uD83D\uDC25','\uD83E\uDD86','\uD83E\uDD85','\uD83E\uDD89','\uD83E\uDD87','\uD83C\uDF89','\uD83C\uDF8A','\uD83C\uDF88','\uD83C\uDF81','\uD83C\uDF80','\uD83C\uDF97','\uD83C\uDFAB','\uD83C\uDF9F','\uD83C\uDFC6','\uD83C\uDFC5'];
|
|
@@ -47,10 +47,24 @@
|
|
|
47
47
|
<button type="button" class="vm-richtext__btn" :class="{ 'is-active': editor.isActive('link') }" title="链接" @click="toggleLink"><i class="ri-link" /></button>
|
|
48
48
|
<button v-if="uploadEnabled" type="button" class="vm-richtext__btn" title="图片" @click="pickImage"><i class="ri-image-line" /></button>
|
|
49
49
|
<button v-if="uploadEnabled" type="button" class="vm-richtext__btn" title="上传视频" @click="pickVideo"><i class="ri-video-line" /></button>
|
|
50
|
-
<button
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
50
|
+
<button
|
|
51
|
+
ref="emojiBtnRef"
|
|
52
|
+
type="button"
|
|
53
|
+
class="vm-richtext__btn"
|
|
54
|
+
:class="{ 'is-active': emojiOpen }"
|
|
55
|
+
title="表情"
|
|
56
|
+
@click="toggleEmoji"
|
|
57
|
+
>
|
|
58
|
+
<i class="ri-emotion-line" />
|
|
59
|
+
</button>
|
|
60
|
+
<Teleport to="body">
|
|
61
|
+
<div
|
|
62
|
+
v-if="emojiOpen"
|
|
63
|
+
ref="emojiPanelRef"
|
|
64
|
+
class="vm-richtext__emoji-panel"
|
|
65
|
+
:style="emojiPanelStyle"
|
|
66
|
+
@mousedown.prevent
|
|
67
|
+
>
|
|
54
68
|
<button
|
|
55
69
|
v-for="(e, i) in VM_RICHTEXT_EMOJIS"
|
|
56
70
|
:key="i"
|
|
@@ -61,7 +75,7 @@
|
|
|
61
75
|
{{ e }}
|
|
62
76
|
</button>
|
|
63
77
|
</div>
|
|
64
|
-
</
|
|
78
|
+
</Teleport>
|
|
65
79
|
<span class="vm-richtext__sep" />
|
|
66
80
|
<button type="button" class="vm-richtext__btn" title="插入表格" @click="insertTable"><i class="ri-table-line" /></button>
|
|
67
81
|
<button type="button" class="vm-richtext__btn" title="撤销" :disabled="!editor.can().undo()" @click="editor.chain().focus().undo().run()"><i class="ri-arrow-go-back-line" /></button>
|
|
@@ -74,7 +88,7 @@
|
|
|
74
88
|
</template>
|
|
75
89
|
|
|
76
90
|
<script setup lang="ts">
|
|
77
|
-
import { computed, onBeforeUnmount, onMounted, shallowRef, watch } from 'vue'
|
|
91
|
+
import { computed, nextTick, onBeforeUnmount, onMounted, shallowRef, watch } from 'vue'
|
|
78
92
|
import DOMPurify from 'dompurify'
|
|
79
93
|
import { EditorContent, useEditor } from '@tiptap/vue-3'
|
|
80
94
|
import StarterKit from '@tiptap/starter-kit'
|
|
@@ -86,7 +100,6 @@ import TextAlign from '@tiptap/extension-text-align'
|
|
|
86
100
|
import Highlight from '@tiptap/extension-highlight'
|
|
87
101
|
import TextStyle from '@tiptap/extension-text-style'
|
|
88
102
|
import Color from '@tiptap/extension-color'
|
|
89
|
-
import Youtube from '@tiptap/extension-youtube'
|
|
90
103
|
import TaskList from '@tiptap/extension-task-list'
|
|
91
104
|
import TaskItem from '@tiptap/extension-task-item'
|
|
92
105
|
import Table from '@tiptap/extension-table'
|
|
@@ -101,7 +114,7 @@ defineOptions({ name: 'vm-richtext' })
|
|
|
101
114
|
const RICH_TAGS = [
|
|
102
115
|
'p', 'br', 'div', 'span', 'strong', 'b', 'em', 'i', 'u', 's', 'del', 'strike', 'a',
|
|
103
116
|
'ul', 'ol', 'li', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote', 'code', 'pre',
|
|
104
|
-
'img', 'video', 'source', '
|
|
117
|
+
'img', 'video', 'source', 'table', 'thead', 'tbody', 'tr', 'th', 'td', 'hr', 'sup', 'sub',
|
|
105
118
|
'mark',
|
|
106
119
|
]
|
|
107
120
|
|
|
@@ -131,7 +144,9 @@ const { toUpload } = useUpload()
|
|
|
131
144
|
const syncing = shallowRef(false)
|
|
132
145
|
const uploading = shallowRef(false)
|
|
133
146
|
const emojiOpen = shallowRef(false)
|
|
134
|
-
const
|
|
147
|
+
const emojiBtnRef = shallowRef<HTMLElement>()
|
|
148
|
+
const emojiPanelRef = shallowRef<HTMLElement>()
|
|
149
|
+
const emojiPanelStyle = shallowRef<Record<string, string>>({})
|
|
135
150
|
|
|
136
151
|
const readOnlyMode = computed(() => props.readonly)
|
|
137
152
|
const uploadEnabled = computed(() => Boolean(props.uploadImage) || props.autoUpload !== false)
|
|
@@ -146,8 +161,7 @@ function sanitize(html: string) {
|
|
|
146
161
|
ALLOWED_TAGS: RICH_TAGS,
|
|
147
162
|
ALLOWED_ATTR: [
|
|
148
163
|
'href', 'target', 'rel', 'class', 'src', 'alt', 'title', 'width', 'height',
|
|
149
|
-
'colspan', 'rowspan', 'align', 'controls', 'style',
|
|
150
|
-
'frameborder', 'allowfullscreen', 'allow', 'referrerpolicy',
|
|
164
|
+
'colspan', 'rowspan', 'align', 'controls', 'style',
|
|
151
165
|
],
|
|
152
166
|
})
|
|
153
167
|
}
|
|
@@ -208,21 +222,42 @@ function pickVideo() {
|
|
|
208
222
|
pickFile('video/*', (file) => void insertVideo(file))
|
|
209
223
|
}
|
|
210
224
|
|
|
225
|
+
function placeEmojiPanel() {
|
|
226
|
+
const btn = emojiBtnRef.value
|
|
227
|
+
if (!btn) return
|
|
228
|
+
const rect = btn.getBoundingClientRect()
|
|
229
|
+
const panelW = 320
|
|
230
|
+
const panelH = 280
|
|
231
|
+
const gap = 6
|
|
232
|
+
let left = rect.left
|
|
233
|
+
let top = rect.bottom + gap
|
|
234
|
+
if (left + panelW > window.innerWidth - 8) {
|
|
235
|
+
left = Math.max(8, window.innerWidth - panelW - 8)
|
|
236
|
+
}
|
|
237
|
+
if (top + panelH > window.innerHeight - 8) {
|
|
238
|
+
top = Math.max(8, rect.top - panelH - gap)
|
|
239
|
+
}
|
|
240
|
+
emojiPanelStyle.value = {
|
|
241
|
+
position: 'fixed',
|
|
242
|
+
left: `${left}px`,
|
|
243
|
+
top: `${top}px`,
|
|
244
|
+
zIndex: '10050',
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
async function toggleEmoji() {
|
|
249
|
+
emojiOpen.value = !emojiOpen.value
|
|
250
|
+
if (emojiOpen.value) {
|
|
251
|
+
await nextTick()
|
|
252
|
+
placeEmojiPanel()
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
|
|
211
256
|
function insertEmoji(emoji: string) {
|
|
212
257
|
editor.value?.chain().focus().insertContent(emoji).run()
|
|
213
258
|
emojiOpen.value = false
|
|
214
259
|
}
|
|
215
260
|
|
|
216
|
-
function insertYoutube() {
|
|
217
|
-
const ed = editor.value
|
|
218
|
-
if (!ed) return
|
|
219
|
-
const url = window.prompt('YouTube 链接', 'https://www.youtube.com/watch?v=')
|
|
220
|
-
if (url == null) return
|
|
221
|
-
const src = url.trim()
|
|
222
|
-
if (!src) return
|
|
223
|
-
ed.chain().focus().setYoutubeVideo({ src }).run()
|
|
224
|
-
}
|
|
225
|
-
|
|
226
261
|
function insertTable() {
|
|
227
262
|
editor.value
|
|
228
263
|
?.chain()
|
|
@@ -321,7 +356,6 @@ const editor = useEditor({
|
|
|
321
356
|
}),
|
|
322
357
|
Image.configure({ allowBase64: false }),
|
|
323
358
|
VmRichtextVideo,
|
|
324
|
-
Youtube.configure({ width: 640, height: 360, nocookie: true }),
|
|
325
359
|
Table.configure({ resizable: true }),
|
|
326
360
|
TableRow,
|
|
327
361
|
TableHeader,
|
|
@@ -356,13 +390,25 @@ watch(() => props.disabled, (v) => {
|
|
|
356
390
|
|
|
357
391
|
function onDocClick(e: MouseEvent) {
|
|
358
392
|
if (!emojiOpen.value) return
|
|
359
|
-
const
|
|
360
|
-
if (
|
|
393
|
+
const t = e.target as Node
|
|
394
|
+
if (emojiBtnRef.value?.contains(t)) return
|
|
395
|
+
if (emojiPanelRef.value?.contains(t)) return
|
|
396
|
+
emojiOpen.value = false
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
function onWinReposition() {
|
|
400
|
+
if (emojiOpen.value) placeEmojiPanel()
|
|
361
401
|
}
|
|
362
402
|
|
|
363
|
-
onMounted(() =>
|
|
403
|
+
onMounted(() => {
|
|
404
|
+
document.addEventListener('click', onDocClick)
|
|
405
|
+
window.addEventListener('resize', onWinReposition)
|
|
406
|
+
window.addEventListener('scroll', onWinReposition, true)
|
|
407
|
+
})
|
|
364
408
|
onBeforeUnmount(() => {
|
|
365
409
|
document.removeEventListener('click', onDocClick)
|
|
410
|
+
window.removeEventListener('resize', onWinReposition)
|
|
411
|
+
window.removeEventListener('scroll', onWinReposition, true)
|
|
366
412
|
editor.value?.destroy()
|
|
367
413
|
})
|
|
368
414
|
</script>
|
|
@@ -439,43 +485,6 @@ onBeforeUnmount(() => {
|
|
|
439
485
|
background: var(--border);
|
|
440
486
|
}
|
|
441
487
|
|
|
442
|
-
.vm-richtext__emoji-wrap {
|
|
443
|
-
position: relative;
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
.vm-richtext__emoji-panel {
|
|
447
|
-
position: absolute;
|
|
448
|
-
top: calc(100% + 4px);
|
|
449
|
-
left: 0;
|
|
450
|
-
z-index: 20;
|
|
451
|
-
display: grid;
|
|
452
|
-
grid-template-columns: repeat(8, 28px);
|
|
453
|
-
gap: 2px;
|
|
454
|
-
width: max-content;
|
|
455
|
-
max-width: 240px;
|
|
456
|
-
padding: 6px;
|
|
457
|
-
border: 1px solid var(--border);
|
|
458
|
-
border-radius: 8px;
|
|
459
|
-
background: var(--card);
|
|
460
|
-
box-shadow: var(--shadow-soft);
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
.vm-richtext__emoji-item {
|
|
464
|
-
display: flex;
|
|
465
|
-
align-items: center;
|
|
466
|
-
justify-content: center;
|
|
467
|
-
width: 28px;
|
|
468
|
-
height: 28px;
|
|
469
|
-
border: none;
|
|
470
|
-
border-radius: 6px;
|
|
471
|
-
background: transparent;
|
|
472
|
-
font-size: 18px;
|
|
473
|
-
line-height: 1;
|
|
474
|
-
cursor: pointer;
|
|
475
|
-
|
|
476
|
-
&:hover { background: var(--muted); }
|
|
477
|
-
}
|
|
478
|
-
|
|
479
488
|
.vm-richtext__content {
|
|
480
489
|
height: var(--vm-richtext-height, 320px) !important;
|
|
481
490
|
min-height: var(--vm-richtext-height, 320px) !important;
|
|
@@ -495,7 +504,6 @@ onBeforeUnmount(() => {
|
|
|
495
504
|
:deep(ul), :deep(ol) { margin: 0.5em 0; padding-left: 1.25em; }
|
|
496
505
|
:deep(a) { color: var(--brand); text-decoration: underline; }
|
|
497
506
|
:deep(img), :deep(video) { max-width: 100%; height: auto; margin: 8px 0; border-radius: 8px; }
|
|
498
|
-
:deep(iframe) { max-width: 100%; margin: 8px 0; border: none; border-radius: 8px; }
|
|
499
507
|
:deep(table) { width: 100%; border-collapse: collapse; margin: 8px 0; }
|
|
500
508
|
:deep(th), :deep(td) { border: 1px solid var(--border); padding: 6px 8px; }
|
|
501
509
|
:deep(blockquote) { margin: 0.5em 0; padding-left: 12px; border-left: 3px solid var(--border); color: var(--muted-foreground); }
|
|
@@ -510,6 +518,39 @@ onBeforeUnmount(() => {
|
|
|
510
518
|
</style>
|
|
511
519
|
|
|
512
520
|
<style lang="scss">
|
|
521
|
+
/* Teleport 到 body:勿 scoped */
|
|
522
|
+
.vm-richtext__emoji-panel {
|
|
523
|
+
display: grid;
|
|
524
|
+
grid-template-columns: repeat(10, 28px);
|
|
525
|
+
gap: 2px;
|
|
526
|
+
width: 320px;
|
|
527
|
+
max-height: 280px;
|
|
528
|
+
overflow: auto;
|
|
529
|
+
padding: 8px;
|
|
530
|
+
border: 1px solid var(--border);
|
|
531
|
+
border-radius: 10px;
|
|
532
|
+
background: var(--card);
|
|
533
|
+
box-shadow: var(--shadow-soft, 0 8px 24px rgba(0, 0, 0, 0.12));
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
.vm-richtext__emoji-item {
|
|
537
|
+
display: flex;
|
|
538
|
+
align-items: center;
|
|
539
|
+
justify-content: center;
|
|
540
|
+
width: 28px;
|
|
541
|
+
height: 28px;
|
|
542
|
+
border: none;
|
|
543
|
+
border-radius: 6px;
|
|
544
|
+
background: transparent;
|
|
545
|
+
font-size: 18px;
|
|
546
|
+
line-height: 1;
|
|
547
|
+
cursor: pointer;
|
|
548
|
+
|
|
549
|
+
&:hover {
|
|
550
|
+
background: var(--muted);
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
|
|
513
554
|
.vm-richtext__content .tiptap.vm-richtext__prose {
|
|
514
555
|
min-height: 100%;
|
|
515
556
|
padding: 12px 14px;
|
|
@@ -536,7 +577,6 @@ onBeforeUnmount(() => {
|
|
|
536
577
|
blockquote { margin: 0.45em 0; padding-left: 12px; border-left: 3px solid var(--border); color: var(--muted-foreground); }
|
|
537
578
|
a { color: var(--brand); text-decoration: underline; cursor: pointer; }
|
|
538
579
|
img, video { display: block; max-width: 100%; height: auto; margin: 8px 0; border-radius: 8px; }
|
|
539
|
-
iframe { display: block; max-width: 100%; margin: 8px 0; border: none; border-radius: 8px; }
|
|
540
580
|
mark { background: color-mix(in srgb, var(--brand) 22%, transparent); border-radius: 2px; padding: 0 2px; }
|
|
541
581
|
code { padding: 0.1em 0.35em; border-radius: 4px; background: var(--muted); font-size: 0.92em; }
|
|
542
582
|
pre { margin: 0.5em 0; padding: 10px 12px; border-radius: 8px; background: var(--muted); overflow-x: auto;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3465e2,_0x186d76){const _0x55907b=_0x5615,_0x597617=_0x3465e2();while(!![]){try{const _0x3304f0=parseInt(_0x55907b(0x93))/0x1+-parseInt(_0x55907b(0x97))/0x2*(parseInt(_0x55907b(0x9b))/0x3)+-parseInt(_0x55907b(0x96))/0x4+parseInt(_0x55907b(0x9d))/0x5*(parseInt(_0x55907b(0x98))/0x6)+parseInt(_0x55907b(0x92))/0x7+parseInt(_0x55907b(0x99))/0x8*(-parseInt(_0x55907b(0x90))/0x9)+parseInt(_0x55907b(0x94))/0xa;if(_0x3304f0===_0x186d76)break;else _0x597617['push'](_0x597617['shift']());}catch(_0x5aef6d){_0x597617['push'](_0x597617['shift']());}}}(_0x33a1,0xc8989));import{getCrudConfig}from'./style';import{CRUD_LABELS,DEFAULT_CRUD_DICT}from'./dict';export{CRUD_LABELS,DEFAULT_CRUD_DICT};export const DEFAULT_CRUD_PERMISSION={'page':!![],'list':!![],'info':!![],'add':!![],'delete':!![],'update':!![]};function _0x33a1(){const _0xff83d2=['nJCYmKvTDgHduG','mJmYmtm2nfL1wwD3Ba','ognqvwfXza','CgfNAw5HDgLVBG','nJq1tMnKDuDs','yxbP','mtbPExrPv0i','zgLJDa','C2vHCMnO','nZa3nJC5oxjYvgXkrG','C29YDa','otm0ntmYmKrpBw5LBa','nZG3nta4BNfrC1Lo','mJm3mJC4mhnbDg9PuW','BgfIzwW','mZiXmJiXmM5TCfnruG'];_0x33a1=function(){return _0xff83d2;};return _0x33a1();}export function mergeDict(_0x3a59f6){const _0x491407=_0x5615,_0x59066d=getCrudConfig()[_0x491407(0x8e)];if(!_0x3a59f6)return{..._0x59066d,'label':{..._0x59066d[_0x491407(0x95)]}};return{..._0x59066d,..._0x3a59f6,'api':{..._0x59066d['api'],..._0x3a59f6[_0x491407(0x9c)]},'pagination':{..._0x59066d[_0x491407(0x9a)],..._0x3a59f6[_0x491407(0x9a)]},'search':{..._0x59066d[_0x491407(0x8f)],..._0x3a59f6['search']},'sort':{..._0x59066d[_0x491407(0x91)],..._0x3a59f6[_0x491407(0x91)]},'label':{..._0x59066d['label'],..._0x3a59f6['label']}};}function _0x5615(_0xd0bd27,_0x9731e7){_0xd0bd27=_0xd0bd27-0x8e;const _0x33a144=_0x33a1();let _0x5615c4=_0x33a144[_0xd0bd27];if(_0x5615['fFEEOU']===undefined){var _0x4dfbe2=function(_0x4a1c9f){const _0x20314a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3a59f6='',_0x59066d='';for(let _0x4a74a7=0x0,_0x3e0df3,_0x4c783e,_0x4689a0=0x0;_0x4c783e=_0x4a1c9f['charAt'](_0x4689a0++);~_0x4c783e&&(_0x3e0df3=_0x4a74a7%0x4?_0x3e0df3*0x40+_0x4c783e:_0x4c783e,_0x4a74a7++%0x4)?_0x3a59f6+=String['fromCharCode'](0xff&_0x3e0df3>>(-0x2*_0x4a74a7&0x6)):0x0){_0x4c783e=_0x20314a['indexOf'](_0x4c783e);}for(let _0x1ab8e1=0x0,_0x186369=_0x3a59f6['length'];_0x1ab8e1<_0x186369;_0x1ab8e1++){_0x59066d+='%'+('00'+_0x3a59f6['charCodeAt'](_0x1ab8e1)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x59066d);};_0x5615['UOZmjS']=_0x4dfbe2,_0x5615['ymMHZC']={},_0x5615['fFEEOU']=!![];}const _0x4c52d7=_0x33a144[0x0],_0x5f368b=_0xd0bd27+_0x4c52d7,_0x14c6eb=_0x5615['ymMHZC'][_0x5f368b];return!_0x14c6eb?(_0x5615c4=_0x5615['UOZmjS'](_0x5615c4),_0x5615['ymMHZC'][_0x5f368b]=_0x5615c4):_0x5615c4=_0x14c6eb,_0x5615c4;}export function mergePermission(_0x4a74a7,_0x3e0df3){return{...DEFAULT_CRUD_PERMISSION,..._0x3e0df3,..._0x4a74a7};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x18200a=_0x50ee;function _0x50ee(_0x504578,_0x391110){_0x504578=_0x504578-0x1b6;const _0x910b14=_0x910b();let _0x50ee43=_0x910b14[_0x504578];if(_0x50ee['SJLhFe']===undefined){var _0x27d404=function(_0x9f556e){const _0x335b48='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x360a7b='',_0x48a62e='';for(let _0x21f126=0x0,_0x38e329,_0x29f979,_0x336d91=0x0;_0x29f979=_0x9f556e['charAt'](_0x336d91++);~_0x29f979&&(_0x38e329=_0x21f126%0x4?_0x38e329*0x40+_0x29f979:_0x29f979,_0x21f126++%0x4)?_0x360a7b+=String['fromCharCode'](0xff&_0x38e329>>(-0x2*_0x21f126&0x6)):0x0){_0x29f979=_0x335b48['indexOf'](_0x29f979);}for(let _0x4bfc94=0x0,_0x44b310=_0x360a7b['length'];_0x4bfc94<_0x44b310;_0x4bfc94++){_0x48a62e+='%'+('00'+_0x360a7b['charCodeAt'](_0x4bfc94)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x48a62e);};_0x50ee['msJVSF']=_0x27d404,_0x50ee['oIWFgG']={},_0x50ee['SJLhFe']=!![];}const _0x560a46=_0x910b14[0x0],_0x5a2bee=_0x504578+_0x560a46,_0x38accb=_0x50ee['oIWFgG'][_0x5a2bee];return!_0x38accb?(_0x50ee43=_0x50ee['msJVSF'](_0x50ee43),_0x50ee['oIWFgG'][_0x5a2bee]=_0x50ee43):_0x50ee43=_0x38accb,_0x50ee43;}(function(_0x5a58a5,_0x450fa1){const _0x46cbb8=_0x50ee,_0x68868=_0x5a58a5();while(!![]){try{const _0x408bc2=-parseInt(_0x46cbb8(0x1c1))/0x1+-parseInt(_0x46cbb8(0x1d0))/0x2*(parseInt(_0x46cbb8(0x1be))/0x3)+parseInt(_0x46cbb8(0x1c6))/0x4+-parseInt(_0x46cbb8(0x1cf))/0x5*(-parseInt(_0x46cbb8(0x1bd))/0x6)+-parseInt(_0x46cbb8(0x1d6))/0x7+parseInt(_0x46cbb8(0x1c5))/0x8*(-parseInt(_0x46cbb8(0x1c2))/0x9)+parseInt(_0x46cbb8(0x1ba))/0xa;if(_0x408bc2===_0x450fa1)break;else _0x68868['push'](_0x68868['shift']());}catch(_0x4803a4){_0x68868['push'](_0x68868['shift']());}}}(_0x910b,0x8163d));import{createApp,h,ref}from'vue';import{Dialog,DialogContent,DialogFooter,DialogHeader,DialogTitle}from'#vome-host/components/ui/dialog';export function vmConfirm(_0x360a7b){const _0x344061=_0x50ee,_0x48a62e=typeof _0x360a7b===_0x344061(0x1ce)?{'message':_0x360a7b}:_0x360a7b;return new Promise(_0x21f126=>{const _0x376748=_0x344061,_0x38e329=ref(!![]),_0x29f979=document[_0x376748(0x1b9)](_0x376748(0x1c3));document[_0x376748(0x1c9)][_0x376748(0x1ca)](_0x29f979);const _0x336d91=createApp({'setup'(){const _0x4b9790=_0x376748;function _0x4bfc94(_0x44b310){const _0x5a2967=_0x50ee;_0x38e329[_0x5a2967(0x1bf)]=![],_0x21f126(_0x44b310),setTimeout(()=>{_0x336d91['unmount'](),_0x29f979['remove']();},0xc8);}return()=>h(Dialog,{'open':_0x38e329[_0x4b9790(0x1bf)],'onUpdate:open':_0x2f7334=>{if(!_0x2f7334)_0x4bfc94(![]);}},{'default':()=>h(DialogContent,{'class':'vm-confirm','showCloseButton':![]},{'default':()=>[h(DialogHeader,{'class':_0x4b9790(0x1cb)},()=>h(DialogTitle,{'class':_0x4b9790(0x1c8)},()=>_0x48a62e['title']||'提示')),h(_0x4b9790(0x1c3),{'class':_0x4b9790(0x1d4)},_0x48a62e[_0x4b9790(0x1d7)]),h(DialogFooter,{'class':_0x4b9790(0x1d3)},()=>[h('button',{'type':_0x4b9790(0x1cc),'class':_0x4b9790(0x1cd),'onClick':()=>_0x4bfc94(![])},_0x48a62e[_0x4b9790(0x1c0)]||'取消'),h('button',{'type':'button','class':_0x4b9790(0x1bb),'onClick':()=>_0x4bfc94(!![])},_0x48a62e[_0x4b9790(0x1c7)]||'确定')])]})});}});_0x336d91[_0x376748(0x1d1)](_0x29f979);});}function _0x910b(){const _0x39d8ea=['BwvZC2fNzq','z2v0rwXLBwvUDej5swq','Dw5KzwzPBMvK','C3r5Bgu','y3jLyxrLrwXLBwvUDa','mtm0mti4odbvAuzuzLi','DM0Ty29UzMLYBv9FyNrUigLZlxbYAw1HCNK','DM0Ty29UzMLYBs1ZDhLSzq','mtHMvvbnz2K','nJiZnte3BeHpBvbx','DMfSDwu','y2fUy2vSvgv4Da','mZi0otm2rKrJr050','nZiWodfICgTeuhm','zgL2','AgvHza','mZy4s3bkufb1','mJe0mtK2ogzMueTpza','y29UzMLYBvrLEhq','DM0Ty29UzMLYBv9FDgL0Bgu','yM9KEq','yxbWzw5Kq2HPBgq','DM0Ty29UzMLYBv9FAgvHza','yNv0Dg9U','DM0Ty29UzMLYBv9FyNrUigLZlwDOB3n0','C3rYAw5N','mta0mZqZnuL3BvncvG','mtbfvKzswLu','Bw91BNq','Dgv4DenVBNrLBNq','DM0Ty29UzMLYBv9FzM9VDa','DM0Ty29UzMLYBv9FyM9KEq','cI52Bs1JB25MAxjTw2rHDgeTC2XVDd0NzgLHBg9NlwnVBNrLBNqNxsb7cIaGD2LKDgG6ig1PBIG0mdbWEcWGy2fSyYGXmdb2DYaTidmYChGPksaHAw1WB3j0yw50oWOGig1HEc13Awr0AdOGBwLUkdqWmhb4lcbJywXJkdeWmhz3ic0GmZjWEcKPicfPBxbVCNrHBNq7cIaGz2fWoIaWicfPBxbVCNrHBNq7cIaGCgfKzgLUzZOGmcaHAw1WB3j0yw50oWOGigjVCMrLCJOGBM9UzsaHAw1WB3j0yw50oWOGigjVCMrLCI1YywrPDxm6idi0ChGGiwLTCg9YDgfUDdSkicbIB3GTC2HHzg93oIb2yxiOls1ZAgfKB3CTC29MDcKGiwLTCg9YDgfUDdSkFqOUDM0Ty29UzMLYBv9FAgvHzcb7ihbHzgrPBMC6ide4ChGGmJjWEcaWoYbIB3jKzxiTyM90Dg9ToIbUB25LoYb9cI52Bs1JB25MAxjTx190AxrSzsb7igzVBNqTC2L6ztOGmtzWEdSGzM9UDc13zwLNAhq6idy1mdSGFqOUDM0Ty29UzMLYBv9FyM9KEsb7cIaGCgfKzgLUzZOGmtjWEcaYmNb4idHWEdSkicbJB2XVCJOGDMfYkc0TzM9YzwDYB3vUzcK7cIaGzM9UDc1ZAxPLoIaXnhb4oWOGigXPBMuTAgvPz2H0oIaXlJy7cN0klNzTlwnVBMzPCM1Fx2zVB3qGEWOGigrPC3bSyxK6igzSzxG7cIaGANvZDgLMEs1JB250zw50oIbMBgv4lwvUzdSkicbNyxa6idHWEdSkicbWywrKAw5NoIaXnhb4idiYChG7cN0klNzTlwnVBMzPCM1Fx2j0BIb7cIaGAgvPz2H0oIaZnNb4oWOGihbHzgrPBMC6idaGmtzWEdSkicbIB3jKzxi6ig5VBMu7cIaGyM9YzgvYlxjHzgL1CZOGmtjWEdSkicbMB250lxnPEMu6ideZChG7cIaGzM9UDc13zwLNAhq6idyWmdSkicbJDxjZB3i6ihbVAw50zxi7cN0klNzTlwnVBMzPCM1Fx2j0BI5PCY1WCMLTyxj5ihSGyMfJA2DYB3vUzdOGDMfYkc0TyNjHBMqPoYbJB2XVCJOGi2zMzJSGFqOUDM0Ty29UzMLYBv9FyNrUlMLZlxbYAw1HCNK6Ag92zxiGEYbIywnRz3jVDw5KoIb2yxiOls1ICMfUzc1KzwvWktSGFqOUDM0Ty29UzMLYBv9FyNrUlMLZlwDOB3n0ihSGyMfJA2DYB3vUzdOGDMfYkc0TBxv0zwqPoYbJB2XVCJOGDMfYkc0TzM9YzwDYB3vUzcK7ih0k','mty4mJiWnxnsCfvQuG'];_0x910b=function(){return _0x39d8ea;};return _0x910b();}if(typeof document!==_0x18200a(0x1b7)&&!document[_0x18200a(0x1b6)](_0x18200a(0x1bc))){const style=document['createElement'](_0x18200a(0x1b8));style['id']=_0x18200a(0x1bc),style[_0x18200a(0x1d2)]=_0x18200a(0x1d5),document[_0x18200a(0x1c4)][_0x18200a(0x1ca)](style);}
|
package/dist/admin/crud/dict.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x42dc(_0x29262e,_0x2a41f6){_0x29262e=_0x29262e-0x15a;const _0xd63453=_0xd634();let _0x42dc17=_0xd63453[_0x29262e];if(_0x42dc['MRNvug']===undefined){var _0x394ac8=function(_0x455330){const _0x20eb00='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x45ab44='',_0x3639fa='';for(let _0x2fe362=0x0,_0x3650a9,_0x525c24,_0x566eee=0x0;_0x525c24=_0x455330['charAt'](_0x566eee++);~_0x525c24&&(_0x3650a9=_0x2fe362%0x4?_0x3650a9*0x40+_0x525c24:_0x525c24,_0x2fe362++%0x4)?_0x45ab44+=String['fromCharCode'](0xff&_0x3650a9>>(-0x2*_0x2fe362&0x6)):0x0){_0x525c24=_0x20eb00['indexOf'](_0x525c24);}for(let _0xd3a183=0x0,_0x484fd2=_0x45ab44['length'];_0xd3a183<_0x484fd2;_0xd3a183++){_0x3639fa+='%'+('00'+_0x45ab44['charCodeAt'](_0xd3a183)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3639fa);};_0x42dc['RYcipJ']=_0x394ac8,_0x42dc['QEVrzT']={},_0x42dc['MRNvug']=!![];}const _0x1634b4=_0xd63453[0x0],_0x1e6cd4=_0x29262e+_0x1634b4,_0x2f18d2=_0x42dc['QEVrzT'][_0x1e6cd4];return!_0x2f18d2?(_0x42dc17=_0x42dc['RYcipJ'](_0x42dc17),_0x42dc['QEVrzT'][_0x1e6cd4]=_0x42dc17):_0x42dc17=_0x2f18d2,_0x42dc17;}const _0xe91faf=_0x42dc;(function(_0x1e62bb,_0x2f79b8){const _0x51af78=_0x42dc,_0x57b7f1=_0x1e62bb();while(!![]){try{const _0x126fb3=parseInt(_0x51af78(0x15c))/0x1*(parseInt(_0x51af78(0x167))/0x2)+parseInt(_0x51af78(0x15e))/0x3*(parseInt(_0x51af78(0x15b))/0x4)+parseInt(_0x51af78(0x16a))/0x5*(parseInt(_0x51af78(0x169))/0x6)+-parseInt(_0x51af78(0x175))/0x7*(-parseInt(_0x51af78(0x165))/0x8)+parseInt(_0x51af78(0x161))/0x9+-parseInt(_0x51af78(0x163))/0xa*(parseInt(_0x51af78(0x162))/0xb)+-parseInt(_0x51af78(0x15f))/0xc*(parseInt(_0x51af78(0x181))/0xd);if(_0x126fb3===_0x2f79b8)break;else _0x57b7f1['push'](_0x57b7f1['shift']());}catch(_0x6c1f3f){_0x57b7f1['push'](_0x57b7f1['shift']());}}}(_0xd634,0xb8ecf));function _0xd634(){const _0x45cd62=['mJbvAMv4wLK','5yIG6zMK5OIq5yQF','5BEY5yIG6zMK','6k+36l6t5ywL','5PYa5Bcp5yc8','6zQq6jEp5yAf5A65','5ywXihSWFsdMNAe','5PYa5AsN5yc8','5ywZ6zsU5A2x','5lIk5lIa6Ag1','5y+w5RAi6ycj5OUP','nZCXmtm0n21SEMDdrq','5l+D5A2y5OIq5yQF','5PQc5PEG5PwW5O2U','6ycj5OUPEZb9','5P+L55Yl5PU05AsA','5lIn6io95lI656M6','5PcC57sIEZb9','5zUE5Ps256Uz','5B275BQv5yIG6zMK','DxbKyxrL','6AUy57QN5PcC57sI','EZb9ic8G6Ag1','mZm5m2rKCvDwra','CxvLCNK','5BEY5B275BQv5yIG6zMK','5Q2K5Pon5l2C5Bcg5PwW5O2U5Qch6k6W5lI65BEY5yIG6zMK77Ym5PIV5zcM57UN57UT77YF','5yQG6l295lIT4OcM','C2L6zq','zgvSzxrL','nJy4C2fwqxvg','mJa3nZmZyK5ds3ve','CgfNzq','mte0tNPQtwfN','nde2mdr4uLzYsuu','BgLZDa','mteWnZK0mtrHuKzAvuK','nty3nNHWD1jwBG','mJeYmJbwvvbhsfC','ywrK','ofDuCvnPDa','C29YDa','mNLzrK9nyW','A2v5v29Yza','mZe1odiYz1nfuwzA'];_0xd634=function(){return _0x45cd62;};return _0xd634();}export const CRUD_LABELS={'op':'操作','add':'新增','delete':'删除','multiDelete':'删除','export':'导出','import':'导入','update':'编辑','refresh':'刷新','info':'详情','search':'搜索','reset':'重置','clear':'清空','save':'保存','close':'取消','confirm':'确定','advSearch':_0xe91faf(0x17f),'searchKey':'搜索关键字','placeholder':_0xe91faf(0x16d),'tips':'提示','saveSuccess':_0xe91faf(0x176),'deleteSuccess':_0xe91faf(0x16b),'deleteConfirm':_0xe91faf(0x184),'forceDeleteConfirm':'此操作将永久删除选中数据,是否继续?','empty':_0xe91faf(0x177),'desc':'降序','asc':'升序','select':'选择','deselect':_0xe91faf(0x174),'seeMore':_0xe91faf(0x179),'hideContent':_0xe91faf(0x16f),'nonEmpty':_0xe91faf(0x17a),'list':'列表','trash':_0xe91faf(0x17c),'searchNamed':_0xe91faf(0x17b),'selectNamed':_0xe91faf(0x178),'keyword':_0xe91faf(0x172),'range':'区间','min':_0xe91faf(0x16e),'max':_0xe91faf(0x171),'start':'开始','end':'结束','total':_0xe91faf(0x170),'pageSize':_0xe91faf(0x180),'prevPage':_0xe91faf(0x173),'nextPage':'下一页','forceDeleted':_0xe91faf(0x183),'deleted':_0xe91faf(0x16c),'restore':'恢复','forceDelete':_0xe91faf(0x17d),'loading':_0xe91faf(0x185)};export const DEFAULT_CRUD_DICT={'primaryId':'id','api':{'list':_0xe91faf(0x160),'add':_0xe91faf(0x164),'update':_0xe91faf(0x17e),'delete':_0xe91faf(0x15a),'info':'info','page':'page'},'pagination':{'page':_0xe91faf(0x15d),'size':_0xe91faf(0x186)},'search':{'keyWord':_0xe91faf(0x168),'query':_0xe91faf(0x182)},'sort':{'prop':'order','order':_0xe91faf(0x166)},'label':CRUD_LABELS};
|
package/dist/admin/crud/key.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x17d716=_0x251c;(function(_0x288526,_0x465554){const _0x3a7473=_0x251c,_0x1285f2=_0x288526();while(!![]){try{const _0x1b1931=parseInt(_0x3a7473(0xaa))/0x1*(-parseInt(_0x3a7473(0xa2))/0x2)+-parseInt(_0x3a7473(0xad))/0x3*(parseInt(_0x3a7473(0xa3))/0x4)+-parseInt(_0x3a7473(0xb2))/0x5*(-parseInt(_0x3a7473(0xb3))/0x6)+-parseInt(_0x3a7473(0xb0))/0x7*(parseInt(_0x3a7473(0xab))/0x8)+parseInt(_0x3a7473(0xae))/0x9*(parseInt(_0x3a7473(0xac))/0xa)+parseInt(_0x3a7473(0xb1))/0xb+-parseInt(_0x3a7473(0xa5))/0xc*(-parseInt(_0x3a7473(0xa9))/0xd);if(_0x1b1931===_0x465554)break;else _0x1285f2['push'](_0x1285f2['shift']());}catch(_0x46b6a2){_0x1285f2['push'](_0x1285f2['shift']());}}}(_0x171d,0x4848a));function _0x251c(_0x40e594,_0x22b83f){_0x40e594=_0x40e594-0xa2;const _0x171d7e=_0x171d();let _0x251cd4=_0x171d7e[_0x40e594];if(_0x251c['xQlSXc']===undefined){var _0x2d3e53=function(_0x45d74f){const _0x561773='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x14c8c3='',_0x1078ea='';for(let _0x22ba63=0x0,_0x3393fa,_0x2aba56,_0x3a4cde=0x0;_0x2aba56=_0x45d74f['charAt'](_0x3a4cde++);~_0x2aba56&&(_0x3393fa=_0x22ba63%0x4?_0x3393fa*0x40+_0x2aba56:_0x2aba56,_0x22ba63++%0x4)?_0x14c8c3+=String['fromCharCode'](0xff&_0x3393fa>>(-0x2*_0x22ba63&0x6)):0x0){_0x2aba56=_0x561773['indexOf'](_0x2aba56);}for(let _0x5c207b=0x0,_0x354717=_0x14c8c3['length'];_0x5c207b<_0x354717;_0x5c207b++){_0x1078ea+='%'+('00'+_0x14c8c3['charCodeAt'](_0x5c207b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1078ea);};_0x251c['VXgyyP']=_0x2d3e53,_0x251c['XIWbyv']={},_0x251c['xQlSXc']=!![];}const _0x375308=_0x171d7e[0x0],_0x16efd1=_0x40e594+_0x375308,_0x2cd2b7=_0x251c['XIWbyv'][_0x16efd1];return!_0x2cd2b7?(_0x251cd4=_0x251c['VXgyyP'](_0x251cd4),_0x251c['XIWbyv'][_0x16efd1]=_0x251cd4):_0x251cd4=_0x2cd2b7,_0x251cd4;}import{inject}from'vue';export const CRUD_KEY=Symbol(_0x17d716(0xa6));export const CRUD_MITT_KEY=Symbol(_0x17d716(0xa8));export const CRUD_OPTIONS_KEY=Symbol('useCrud__options');export const TABLE_OPTIONS_KEY=Symbol(_0x17d716(0xa4));function _0x171d(){const _0x11055a=['ndK4zufftvrA','mty1nty2v0DgCNzd','ndyZmMrcs0jzDG','DxnLvgfIBgvFx29WDgLVBNm','mti3mMrbre9KBG','DM0Ty3j1za','DxnLvxbZzxj0x19VChrPB25Z','DM0Ty3j1zc1TAxr0','ndq5mdjhyu1brLa','n1P0v2fbrG','ntq0q3nzvvHb','mtmXnZKZmefIzLHdAG','nde3ru1bAwXQ','ouz4Ewz4BG','DM0TDgfIBguTyxbP','nJm0mNHNu1v3Dq','nJa3mdKYmNLYB0rywa','mJKXme1IELvkza'];_0x171d=function(){return _0x11055a;};return _0x171d();}export const UPSERT_OPTIONS_KEY=Symbol(_0x17d716(0xa7));export const SEARCH_OPTIONS_KEY=Symbol('useSearch__options');export const TABLE_API_KEY=Symbol(_0x17d716(0xaf));export function injectCrudOptions(){return inject(CRUD_OPTIONS_KEY,undefined);}export function injectTableOptions(){return inject(TABLE_OPTIONS_KEY,undefined);}export function injectUpsertOptions(){return inject(UPSERT_OPTIONS_KEY,undefined);}export function injectSearchOptions(){return inject(SEARCH_OPTIONS_KEY,undefined);}
|
package/dist/admin/crud/mitt.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x2843(){var _0x4c4c6c=['mJC3nJrXquXnANm','zgvSzxrL','zM9YrwfJAa','zw1PDa','C2v0','mZiWodHczNDYqu0','BwfW','ywrK','mZbKBMjuDw8','mZeZmdu4ngTeCuDKqG','otGYnJq1zNvNtuv2','mtmZotKWnwPOCLnHyG','ndi1mZu0s0TlAvvW','odK3nZa0muPtDM50yG','z2v0','mtK4vK5Muejt'];_0x2843=function(){return _0x4c4c6c;};return _0x2843();}var _0x4aa898=_0x1f3a;(function(_0x16e3cf,_0xd7c5fd){var _0x4cf1fb=_0x1f3a,_0x268723=_0x16e3cf();while(!![]){try{var _0x4daa8b=-parseInt(_0x4cf1fb(0xca))/0x1+-parseInt(_0x4cf1fb(0xc3))/0x2+parseInt(_0x4cf1fb(0xcd))/0x3*(parseInt(_0x4cf1fb(0xce))/0x4)+parseInt(_0x4cf1fb(0xc8))/0x5+-parseInt(_0x4cf1fb(0xc6))/0x6*(-parseInt(_0x4cf1fb(0xc9))/0x7)+parseInt(_0x4cf1fb(0xc7))/0x8+-parseInt(_0x4cf1fb(0xcb))/0x9;if(_0x4daa8b===_0xd7c5fd)break;else _0x268723['push'](_0x268723['shift']());}catch(_0x167427){_0x268723['push'](_0x268723['shift']());}}}(_0x2843,0x89bda));function _0x1f3a(_0x33d618,_0x2be9b3){_0x33d618=_0x33d618-0xc1;var _0x2843a9=_0x2843();var _0x1f3ab3=_0x2843a9[_0x33d618];if(_0x1f3a['TrRuTY']===undefined){var _0x551a7d=function(_0x6021e2){var _0x2cf3e7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x2c262f='',_0x316fb3='';for(var _0x42577c=0x0,_0x47b921,_0x52b491,_0x11ec7a=0x0;_0x52b491=_0x6021e2['charAt'](_0x11ec7a++);~_0x52b491&&(_0x47b921=_0x42577c%0x4?_0x47b921*0x40+_0x52b491:_0x52b491,_0x42577c++%0x4)?_0x2c262f+=String['fromCharCode'](0xff&_0x47b921>>(-0x2*_0x42577c&0x6)):0x0){_0x52b491=_0x2cf3e7['indexOf'](_0x52b491);}for(var _0x55242a=0x0,_0x313106=_0x2c262f['length'];_0x55242a<_0x313106;_0x55242a++){_0x316fb3+='%'+('00'+_0x2c262f['charCodeAt'](_0x55242a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x316fb3);};_0x1f3a['qmDuwa']=_0x551a7d,_0x1f3a['NiYKBz']={},_0x1f3a['TrRuTY']=!![];}var _0x95b593=_0x2843a9[0x0],_0x3f977e=_0x33d618+_0x95b593,_0x2a5cce=_0x1f3a['NiYKBz'][_0x3f977e];return!_0x2a5cce?(_0x1f3ab3=_0x1f3a['qmDuwa'](_0x1f3ab3),_0x1f3a['NiYKBz'][_0x3f977e]=_0x1f3ab3):_0x1f3ab3=_0x2a5cce,_0x1f3ab3;}export class Mitt{[_0x4aa898(0xc4)]=new Map();['on'](_0x2c262f,_0x316fb3){var _0x1f45d5=_0x4aa898;if(!this[_0x1f45d5(0xc4)]['has'](_0x2c262f))this[_0x1f45d5(0xc4)][_0x1f45d5(0xc2)](_0x2c262f,new Set());this[_0x1f45d5(0xc4)][_0x1f45d5(0xcc)](_0x2c262f)[_0x1f45d5(0xc5)](_0x316fb3);}['off'](_0x42577c,_0x47b921){var _0x22463a=_0x4aa898;if(!_0x47b921){this[_0x22463a(0xc4)][_0x22463a(0xcf)](_0x42577c);return;}this['map'][_0x22463a(0xcc)](_0x42577c)?.[_0x22463a(0xcf)](_0x47b921);}[_0x4aa898(0xc1)](_0x52b491,..._0x11ec7a){var _0x29bf50=_0x4aa898;this[_0x29bf50(0xc4)]['get'](_0x52b491)?.[_0x29bf50(0xd0)](_0x55242a=>_0x55242a(..._0x11ec7a));}}export function createMitt(){return new Mitt();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x212894,_0x59a9c6){const _0x150116=_0x394f,_0x1e219f=_0x212894();while(!![]){try{const _0x4cc70d=-parseInt(_0x150116(0xef))/0x1*(parseInt(_0x150116(0x10e))/0x2)+-parseInt(_0x150116(0xff))/0x3+parseInt(_0x150116(0xee))/0x4+parseInt(_0x150116(0x102))/0x5+-parseInt(_0x150116(0x110))/0x6+parseInt(_0x150116(0x100))/0x7+-parseInt(_0x150116(0xe6))/0x8*(parseInt(_0x150116(0x115))/0x9);if(_0x4cc70d===_0x59a9c6)break;else _0x1e219f['push'](_0x1e219f['shift']());}catch(_0x470ce7){_0x1e219f['push'](_0x1e219f['shift']());}}}(_0x450a,0x2326c));import{findEpsEntity}from'../lib/eps';import{getCrudStyle}from'./style';export function toTree(_0x29b2c6={}){const _0x249d6e=_0x394f;return{'__plugin':'toTree','tree':!![],'lazy':_0x29b2c6[_0x249d6e(0x10f)]??![]};}export function setFocus(_0x4fc49f){const _0x158e12=_0x394f;return{'__plugin':_0x158e12(0xea),'prop':_0x4fc49f??''};}export function setRules(){const _0x340fcb=_0x394f;return{'__plugin':_0x340fcb(0xe4)};}export function setAuto(_0x7eea2e={'hideLabel':!![]}){return{'__plugin':'setAuto',..._0x7eea2e};}export const Plugins={'Table':{'toTree':toTree},'Form':{'setFocus':setFocus,'setRules':setRules},'Search':{'setAuto':setAuto}};export function applyTablePlugins(_0x4462eb){const _0x5dd38d=_0x394f,_0x33e4bb=getCrudStyle()[_0x5dd38d(0xde)],_0x53a6b4={'border':_0x33e4bb['border'],'autoHeight':_0x33e4bb['autoHeight'],'contextMenu':_0x33e4bb[_0x5dd38d(0xf9)],..._0x4462eb},_0x5898fd=[..._0x33e4bb[_0x5dd38d(0x11b)],..._0x4462eb?.[_0x5dd38d(0x11b)]||[]],_0x3e34b8={..._0x53a6b4};delete _0x3e34b8[_0x5dd38d(0x11b)];for(const _0x15d18e of _0x5898fd){if(!_0x15d18e||typeof _0x15d18e!=='object')continue;_0x15d18e[_0x5dd38d(0x11e)]===_0x5dd38d(0xe8)&&(_0x3e34b8[_0x5dd38d(0x106)]=!![],_0x3e34b8[_0x5dd38d(0x107)]=Boolean(_0x15d18e[_0x5dd38d(0x10f)]));}return _0x3e34b8;}function stripAlias(_0x51a941){const _0x2fba03=_0x394f;return _0x51a941['includes']('.')?_0x51a941[_0x2fba03(0xf1)]('.')[_0x2fba03(0x113)]():_0x51a941;}function toSource(_0x328215){const _0x4bc69d=_0x394f,_0x3234eb=_0x328215[_0x4bc69d(0xfb)]()[_0x4bc69d(0x11d)](/\s+as\s+[a-zA-Z_]\w*$/i,'')[_0x4bc69d(0xfb)]();return _0x3234eb[_0x4bc69d(0xf2)]('.')?_0x3234eb:'a.'+_0x3234eb;}function parseRef(_0x4d4594){const _0x5d9d8c=_0x394f,_0x3d6541=/^(.+?)\s+as\s+([a-zA-Z_]\w*)$/i,_0x3d51f0=_0x15ae51=>{const _0xa49f9f=_0x394f,_0x2dc5ab=_0x15ae51['trim'](),_0x1c850b=_0x2dc5ab[_0xa49f9f(0xe0)](_0x3d6541);if(_0x1c850b)return{'expr':_0x1c850b[0x1][_0xa49f9f(0xfb)](),'asName':_0x1c850b[0x2]};return{'expr':_0x2dc5ab,'asName':undefined};};if(typeof _0x4d4594===_0x5d9d8c(0xed)){const {expr:_0x470c5b,asName:_0x28fd93}=_0x3d51f0(_0x4d4594),_0x4bfb3d=toSource(_0x470c5b),_0x5833e8=stripAlias(_0x4bfb3d);return{'column':_0x5833e8,'source':_0x4bfb3d,'param':_0x28fd93??_0x5833e8,'multiple':!![],'none':![]};}if(!_0x4d4594||typeof _0x4d4594!==_0x5d9d8c(0x119))return null;const _0x4517c7=_0x4d4594;if(!_0x4517c7[_0x5d9d8c(0x10d)])return null;const {expr:_0x5f543f,asName:_0x5467be}=_0x3d51f0(_0x4517c7[_0x5d9d8c(0x10d)]),_0x55fbd8=toSource(_0x5f543f),_0x6da3f=stripAlias(_0x55fbd8);return{'column':_0x6da3f,'source':_0x55fbd8,'param':_0x5467be??_0x6da3f,'label':_0x4517c7['label'],'dict':_0x4517c7['dict'],'multiple':_0x4517c7[_0x5d9d8c(0xf6)]!==![],'none':Boolean(_0x4517c7[_0x5d9d8c(0xe7)])};}function displayName(_0x34b5c7,_0xa9b574){const _0x377a0e=_0x394f;return _0x34b5c7[_0x377a0e(0x10b)]||_0xa9b574?.[_0x377a0e(0x104)]||_0x34b5c7[_0x377a0e(0x10d)];}function _0x450a(){const _0x36decc=['y29TBwvUDa','CgfNzvf1zxj5t3a','DhjLzq','DhjLzuXHENK','ChjVCa','zMLLBgrmAwTL','BwfW','BgfIzwW','Aw5WDxq','y29SDw1U','nKHqywLjDG','Bgf6Eq','mtKYotqYsvvvuKXf','Aw50','A2v5v29Yza','Cg9W','BNvTyMvYlxjHBMDL','mZKZmZq1zwv1we5P','C291CMnL','ywrK','zMLLBgrbCNjHEq','B2jQzwn0','CgfYyw0','CgX1z2LUCW','AwDUB3jLrMLLBgrZ','CMvWBgfJzq','x19WBhvNAw4','zMLSDgvY','5PYa5AsN5yc8','zMXVyxq','zgf0zxjHBMDL','C2vHCMnO','BgvUz3rO','DgfIBgu','BMfTzxnWywnL','Bwf0y2G','CMfUz2u','zgLJDa','AgfZ','C2v0uNvSzxm','zMLUza','mJrtBxjUt1a','BM9Uzq','Dg9uCMvL','ChvZAa','C2v0rM9JDxm','A2v5D29Yza','DhLWzq','C3rYAw5N','nJa1mdm2rMvhA29m','mZC5mtf4vezkqLe','A2v5v29YzeXPA2vgAwvSzhm','C3bSAxq','Aw5JBhvKzxm','5PYa5Bcp5yc8','C2vSzwn0','5ywZ6zsU5A2x','BxvSDgLWBgu','Bwf4','y29SDw1UCW','y29UDgv4De1LBNu','AgLKzuXHyMvS','DhjPBq','AM9PBG','ChjVCgvYDhLoyw1L','AxnbCNjHEq','mJmWndmWzwDlrvbz','nJKYnZC2sKTRvNn1','BwLU','mtiZnZG0merUy0j2Ba','CgfNzunVBhvTBNm'];_0x450a=function(){return _0x36decc;};return _0x450a();}function _0x394f(_0x2922d9,_0x3569b4){_0x2922d9=_0x2922d9-0xda;const _0x450abd=_0x450a();let _0x394fd3=_0x450abd[_0x2922d9];if(_0x394f['OvIjeD']===undefined){var _0x17e012=function(_0x5cc2c7){const _0x1c4a30='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x29b2c6='',_0x4fc49f='';for(let _0x7eea2e=0x0,_0x4462eb,_0x33e4bb,_0x53a6b4=0x0;_0x33e4bb=_0x5cc2c7['charAt'](_0x53a6b4++);~_0x33e4bb&&(_0x4462eb=_0x7eea2e%0x4?_0x4462eb*0x40+_0x33e4bb:_0x33e4bb,_0x7eea2e++%0x4)?_0x29b2c6+=String['fromCharCode'](0xff&_0x4462eb>>(-0x2*_0x7eea2e&0x6)):0x0){_0x33e4bb=_0x1c4a30['indexOf'](_0x33e4bb);}for(let _0x5898fd=0x0,_0x3e34b8=_0x29b2c6['length'];_0x5898fd<_0x3e34b8;_0x5898fd++){_0x4fc49f+='%'+('00'+_0x29b2c6['charCodeAt'](_0x5898fd)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4fc49f);};_0x394f['kNirVD']=_0x17e012,_0x394f['DZEdiA']={},_0x394f['OvIjeD']=!![];}const _0x3dca17=_0x450abd[0x0],_0x4f09ec=_0x2922d9+_0x3dca17,_0x46b22a=_0x394f['DZEdiA'][_0x4f09ec];return!_0x46b22a?(_0x394fd3=_0x394f['kNirVD'](_0x394fd3),_0x394f['DZEdiA'][_0x4f09ec]=_0x394fd3):_0x394fd3=_0x46b22a,_0x394fd3;}function fieldKeyOf(_0x3500f6,_0x555905){const _0x501f97=_0x394f,_0x4e6598=_0x555905?.['table']?.[_0x501f97(0xfb)](),_0x276315=(_0x555905?.['propertyName']||_0x3500f6['column']||'')[_0x501f97(0xfb)]();if(!_0x4e6598||!_0x276315)return;return _0x4e6598+'.'+_0x276315;}export function buildAutoSearchItems(_0x285123,_0xa0879d={}){const _0x31163e=_0x394f,_0x558b84=new Set(_0xa0879d[_0x31163e(0x11c)]||[]),_0x59d9ba=_0x285123[_0x31163e(0xdc)]||{};let _0x483beb=_0x59d9ba['fieldEq']||[],_0xaaf8f7=_0x59d9ba['fieldLike']||[],_0x5c905f=_0x59d9ba[_0x31163e(0x118)]||[],_0x5e4939=_0x59d9ba['fieldRange']||[],_0x15525e=_0x59d9ba[_0x31163e(0xf0)]||[],_0x26d385=[];const _0xfdbb1f=!_0x483beb[_0x31163e(0xdd)]&&!_0xaaf8f7['length']&&!_0x5c905f['length']&&!_0x5e4939[_0x31163e(0xdd)]&&!_0x15525e[_0x31163e(0xdd)],_0x594519=_0x285123['namespace']?findEpsEntity('/'+_0x285123[_0x31163e(0xdf)]):undefined;if(_0x594519){_0x26d385=[..._0x594519[_0x31163e(0xf8)]||[],..._0x594519[_0x31163e(0x103)]||[]];if(!_0x285123[_0x31163e(0xdc)]||_0xfdbb1f){const _0x12cc80=_0x594519[_0x31163e(0x105)];_0x12cc80&&(_0x483beb=_0x12cc80['fieldEq']||[],_0xaaf8f7=_0x12cc80[_0x31163e(0x109)]||[],_0x5c905f=_0x12cc80['fieldArray']||[],_0x5e4939=_0x12cc80['fieldRange']||[],_0x15525e=_0x12cc80[_0x31163e(0xf0)]||[]);}}const _0xd8a43e=(_0x3cbae5,_0x4b484a)=>{const _0x41b2d9=_0x31163e,_0xa21468=_0x3cbae5[_0x41b2d9(0xf2)]('.')?_0x3cbae5:'a.'+_0x3cbae5,_0x502b10=_0x4b484a??stripAlias(_0xa21468);return _0x26d385[_0x41b2d9(0xe5)](_0x740e32=>_0x740e32['source']===_0xa21468)||_0x26d385[_0x41b2d9(0xe5)](_0x3767b7=>_0x3767b7[_0x41b2d9(0xfd)]===_0x502b10&&(!_0x3767b7[_0x41b2d9(0x116)]||_0x3767b7[_0x41b2d9(0x116)]['startsWith']('a.')))||_0x26d385[_0x41b2d9(0xe5)](_0x57981e=>_0x57981e[_0x41b2d9(0xfd)]===_0x502b10);},_0x28586a=[],_0x18fcff=new Set(),_0x219297=_0x228cec=>{const _0x5dcf55=_0x31163e;if(!_0x228cec[_0x5dcf55(0x108)]||_0x18fcff[_0x5dcf55(0xe3)](_0x228cec[_0x5dcf55(0x108)]))return;_0x18fcff[_0x5dcf55(0x117)](_0x228cec[_0x5dcf55(0x108)]),_0x28586a[_0x5dcf55(0xe9)](_0x228cec);};for(const _0x40a765 of _0xaaf8f7){const _0x310197=parseRef(_0x40a765);if(!_0x310197||_0x310197['none']||_0x558b84[_0x31163e(0xe3)](_0x310197[_0x31163e(0x11a)]))continue;const _0x3c341f=_0xd8a43e(_0x310197[_0x31163e(0x116)],_0x310197[_0x31163e(0x10d)]),_0x18dec9=displayName(_0x310197,_0x3c341f),_0x499896=fieldKeyOf(_0x310197,_0x3c341f);_0x219297({'prop':_0x310197['param'],'label':_0xa0879d['hideLabel']?'':_0x18dec9,'nameFallback':_0x18dec9,'fieldKey':_0x499896,'phMode':_0x31163e(0xdc),'placeholder':'搜索'+_0x18dec9,'type':_0x31163e(0x10c)});}for(const _0x930ed7 of _0x5c905f){const _0x4e993c=parseRef(_0x930ed7);if(!_0x4e993c||_0x4e993c[_0x31163e(0xe7)]||_0x558b84['has'](_0x4e993c[_0x31163e(0x11a)]))continue;const _0x2ab8aa=_0xd8a43e(_0x4e993c[_0x31163e(0x116)],_0x4e993c[_0x31163e(0x10d)]),_0x5dd9d1=displayName(_0x4e993c,_0x2ab8aa),_0x17c724=fieldKeyOf(_0x4e993c,_0x2ab8aa);_0x219297({'prop':_0x4e993c[_0x31163e(0x11a)],'label':_0xa0879d['hideLabel']?'':_0x5dd9d1,'nameFallback':_0x5dd9d1,'fieldKey':_0x17c724,'phMode':_0x31163e(0xdc),'placeholder':'搜索'+_0x5dd9d1,'type':_0x31163e(0x10c)});}for(const _0x1e9367 of _0x483beb){const _0x20e290=parseRef(_0x1e9367);if(!_0x20e290||_0x20e290[_0x31163e(0xe7)]||_0x558b84[_0x31163e(0xe3)](_0x20e290['param']))continue;const _0x3d5ceb=_0xd8a43e(_0x20e290[_0x31163e(0x116)],_0x20e290[_0x31163e(0x10d)]),_0x3d7e7a=_0x20e290[_0x31163e(0xe2)]||(typeof _0x3d5ceb?.[_0x31163e(0xe2)]===_0x31163e(0xed)?_0x3d5ceb[_0x31163e(0xe2)]:Array[_0x31163e(0xfe)](_0x3d5ceb?.['dict'])?_0x3d5ceb[_0x31163e(0xe2)][0x0]:undefined),_0x6085fa=displayName(_0x20e290,_0x3d5ceb),_0x32520d=fieldKeyOf(_0x20e290,_0x3d5ceb),_0x2b8d8c=_0xa0879d[_0x31163e(0xfa)]?'':_0x6085fa;_0x3d7e7a?_0x219297({'prop':_0x20e290[_0x31163e(0x11a)],'label':_0x2b8d8c,'nameFallback':_0x6085fa,'fieldKey':_0x32520d,'phMode':_0x31163e(0xf4),'placeholder':'选择'+_0x6085fa,'type':_0x31163e(0xf4),'dict':_0x3d7e7a,'multiple':_0x20e290[_0x31163e(0xf6)]}):_0x219297({'prop':_0x20e290['param'],'label':_0x2b8d8c,'nameFallback':_0x6085fa,'fieldKey':_0x32520d,'phMode':_0x31163e(0xdc),'placeholder':'搜索'+_0x6085fa,'type':_0x31163e(0x10c)});}for(const _0x4bd457 of _0x5e4939){if(!_0x4bd457?.['column']||_0x4bd457[_0x31163e(0xe7)])continue;if(_0x558b84[_0x31163e(0xe3)](_0x4bd457['min'])||_0x558b84['has'](_0x4bd457[_0x31163e(0xf7)]))continue;const _0x4cd7a0=toSource(_0x4bd457[_0x31163e(0x10d)]),_0x129a56=stripAlias(_0x4bd457['column']),_0x53f907=_0xd8a43e(_0x4cd7a0,_0x129a56),_0x309b94=_0x4bd457['label']||_0x53f907?.[_0x31163e(0x104)]||_0x129a56,_0x42a4c4=fieldKeyOf({'column':_0x129a56},_0x53f907),_0x3847=_0xa0879d['hideLabel']?'':_0x309b94,_0x24852c=_0x4bd457[_0x31163e(0xec)]===_0x31163e(0x111)||_0x4bd457[_0x31163e(0xec)]===_0x31163e(0xda),_0x28dc49=_0x24852c?_0x31163e(0xf3):'开始',_0x5b45b7=_0x24852c?_0x31163e(0x120):'结束';_0x219297({'prop':'__range_'+_0x4bd457[_0x31163e(0x101)]+'_'+_0x4bd457[_0x31163e(0xf7)],'label':_0x3847,'nameFallback':_0x309b94,'fieldKey':_0x42a4c4,'phMode':_0x31163e(0xe1),'placeholder':_0x309b94||'区间','type':_0x24852c?_0x31163e(0x114):_0x31163e(0xdb),'range':{'min':_0x4bd457['min'],'max':_0x4bd457[_0x31163e(0xf7)],'rangeType':_0x4bd457[_0x31163e(0xec)]},'component':{'name':_0x24852c?'vm-number-range':'vm-date-range','props':_0x24852c?{'mode':_0x4bd457[_0x31163e(0xec)],'startPlaceholder':''+_0x309b94+_0x28dc49,'endPlaceholder':''+_0x309b94+_0x5b45b7}:{'precision':_0x4bd457['type'],'startPlaceholder':''+_0x309b94+_0x28dc49,'endPlaceholder':''+_0x309b94+_0x5b45b7}}});}if(_0x15525e[_0x31163e(0xdd)]){const _0x2b934d=[],_0x48ce44=_0x15525e[_0x31163e(0x10a)](_0x3b4f7f=>{const _0x2fe2b0=_0x31163e,_0x28dac4=parseRef(_0x3b4f7f);if(!_0x28dac4)return typeof _0x3b4f7f===_0x2fe2b0(0xed)?stripAlias(_0x3b4f7f):'';const _0x2e5f18=_0xd8a43e(_0x28dac4[_0x2fe2b0(0x116)],_0x28dac4['column']),_0x357dc6=fieldKeyOf(_0x28dac4,_0x2e5f18);if(_0x357dc6)_0x2b934d['push'](_0x357dc6);return displayName(_0x28dac4,_0x2e5f18);})[_0x31163e(0x11f)](Boolean);_0x219297({'prop':_0x31163e(0x112),'label':_0xa0879d[_0x31163e(0xfa)]?'':'关键字','nameFallback':_0x48ce44['join']('、')||_0x31163e(0xf5),'phMode':_0x31163e(0xeb),'keywordParts':_0x2b934d,'placeholder':'搜索'+(_0x48ce44[_0x31163e(0xfc)]('、')||_0x31163e(0xf5)),'type':_0x31163e(0x10c)});}return _0x28586a;}
|
|
1
|
+
(function(_0x526faf,_0x9e04eb){const _0x2f4adb=_0x40dd,_0x1727cf=_0x526faf();while(!![]){try{const _0x486611=parseInt(_0x2f4adb(0x11b))/0x1*(parseInt(_0x2f4adb(0x10a))/0x2)+parseInt(_0x2f4adb(0x110))/0x3*(parseInt(_0x2f4adb(0xe2))/0x4)+parseInt(_0x2f4adb(0x116))/0x5+-parseInt(_0x2f4adb(0x108))/0x6+-parseInt(_0x2f4adb(0xed))/0x7+parseInt(_0x2f4adb(0x10d))/0x8+-parseInt(_0x2f4adb(0xe7))/0x9;if(_0x486611===_0x9e04eb)break;else _0x1727cf['push'](_0x1727cf['shift']());}catch(_0x190e66){_0x1727cf['push'](_0x1727cf['shift']());}}}(_0x3152,0x4e258));function _0x40dd(_0x1bbbc8,_0x2bc0d0){_0x1bbbc8=_0x1bbbc8-0xe0;const _0x3152a1=_0x3152();let _0x40ddf7=_0x3152a1[_0x1bbbc8];if(_0x40dd['zpwvwM']===undefined){var _0x3bcc2a=function(_0x43f65f){const _0xb7c06f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x205a02='',_0x521a58='';for(let _0x32b1fd=0x0,_0x186321,_0x203952,_0x1f369b=0x0;_0x203952=_0x43f65f['charAt'](_0x1f369b++);~_0x203952&&(_0x186321=_0x32b1fd%0x4?_0x186321*0x40+_0x203952:_0x203952,_0x32b1fd++%0x4)?_0x205a02+=String['fromCharCode'](0xff&_0x186321>>(-0x2*_0x32b1fd&0x6)):0x0){_0x203952=_0xb7c06f['indexOf'](_0x203952);}for(let _0x5d6cf5=0x0,_0x1edacd=_0x205a02['length'];_0x5d6cf5<_0x1edacd;_0x5d6cf5++){_0x521a58+='%'+('00'+_0x205a02['charCodeAt'](_0x5d6cf5)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x521a58);};_0x40dd['AnYPSV']=_0x3bcc2a,_0x40dd['lXRxym']={},_0x40dd['zpwvwM']=!![];}const _0x3476e7=_0x3152a1[0x0],_0x5777ef=_0x1bbbc8+_0x3476e7,_0x169355=_0x40dd['lXRxym'][_0x5777ef];return!_0x169355?(_0x40ddf7=_0x40dd['AnYPSV'](_0x40ddf7),_0x40dd['lXRxym'][_0x5777ef]=_0x40ddf7):_0x40ddf7=_0x169355,_0x40ddf7;}function _0x3152(){const _0x30dc6a=['DhLWzq','ChjVCa','C291CMnL','x19Yyw5Nzv8','AgfZ','BNvTyMvYlxjHBMDL','AgLKzuXHyMvS','CMfUz2u','zMLLBgrsyw5Nzq','C2vHCMnO','A2v5v29Yza','DgfIBgu','AM9PBG','CgfYyw0','zMLSDgvY','DhjLzuXHENK','zMLUza','Cg9W','zgLJDa','B2jQzwn0','C3rYAw5N','C2v0uNvSzxm','C2v0rM9JDxm','Bwf0y2G','yM9YzgvY','Aw5WDxq','mJK3nZGXogz3y1Hmua','C2v0qxv0BW','oti0mMrcqMrwEa','AwDUB3jLrMLLBgrZ','CgfNzvf1zxj5t3a','ndG4mdy4me15shrNCW','zgf0zxjHBMDL','DM0Tzgf0zs1Yyw5Nzq','mJyWnZnNvLfit0m','DhjPBq','zMLLBgrfCq','y29SDw1UCW','CgX1z2LUCW','C3rHCNrZv2L0Aa','mtq4mJu3mezlDLrHrG','A2v5D29Yza','CgfNzunVBhvTBNm','BMfTzxnWywnL','C2vSzwn0','mteXr3r4DxPl','AxnbCNjHEq','ChjVCgvYDhLoyw1L','5PYa5AsN5yc8','5ywZ6zsU5A2x','zMLLBgrbCNjHEq','x19WBhvNAw4','BM9Uzq','Aw5JBhvKzxm','CMvWBgfJzq','mZjHtKPxBM8','BgvUz3rO','y29SDw1U','C3bSAxq','Bwf4','ndG3mtm2n1veuKjKBa','BwLU','5PYa5Bcp5yc8','BgfIzwW','BxvSDgLWBgu','DM0TBNvTyMvYlxjHBMDL','ote5odi4D1LjvhbI'];_0x3152=function(){return _0x30dc6a;};return _0x3152();}import{findEpsEntity}from'../lib/eps';import{getCrudStyle}from'./style';export function toTree(_0x205a02={}){return{'__plugin':'toTree','tree':!![],'lazy':_0x205a02['lazy']??![]};}export function setFocus(_0x521a58){const _0x2211c6=_0x40dd;return{'__plugin':_0x2211c6(0x104),'prop':_0x521a58??''};}export function setRules(){const _0x2c2bcf=_0x40dd;return{'__plugin':_0x2c2bcf(0x103)};}export function setAuto(_0x32b1fd={'hideLabel':!![]}){const _0x23376f=_0x40dd;return{'__plugin':_0x23376f(0x109),..._0x32b1fd};}export const Plugins={'Table':{'toTree':toTree},'Form':{'setFocus':setFocus,'setRules':setRules},'Search':{'setAuto':setAuto}};export function applyTablePlugins(_0x186321){const _0x206525=_0x40dd,_0x203952=getCrudStyle()[_0x206525(0xf9)],_0x1f369b={'border':_0x203952[_0x206525(0x106)],'autoHeight':_0x203952['autoHeight'],'contextMenu':_0x203952['contextMenu'],..._0x186321},_0x5d6cf5=[..._0x203952[_0x206525(0x114)],..._0x186321?.[_0x206525(0x114)]||[]],_0x1edacd={..._0x1f369b};delete _0x1edacd[_0x206525(0x114)];for(const _0x143454 of _0x5d6cf5){if(!_0x143454||typeof _0x143454!==_0x206525(0x101))continue;_0x143454[_0x206525(0x121)]==='toTree'&&(_0x1edacd['tree']=!![],_0x1edacd[_0x206525(0xfd)]=Boolean(_0x143454['lazy']));}return _0x1edacd;}function stripAlias(_0x4453e6){const _0x35fe15=_0x40dd;return _0x4453e6[_0x35fe15(0xe0)]('.')?_0x4453e6[_0x35fe15(0xe5)]('.')[_0x35fe15(0xff)]():_0x4453e6;}function toSource(_0x39f514){const _0x1ac76c=_0x40dd,_0x3d3c2e=_0x39f514['trim']()[_0x1ac76c(0xe1)](/\s+as\s+[a-zA-Z_]\w*$/i,'')[_0x1ac76c(0x111)]();return _0x3d3c2e[_0x1ac76c(0xe0)]('.')?_0x3d3c2e:'a.'+_0x3d3c2e;}function parseRef(_0x198c5f){const _0x42f7ca=_0x40dd,_0x198b76=/^(.+?)\s+as\s+([a-zA-Z_]\w*)$/i,_0x2b1d42=_0x367f81=>{const _0x37ccbb=_0x40dd,_0x26a158=_0x367f81[_0x37ccbb(0x111)](),_0x34f673=_0x26a158[_0x37ccbb(0x105)](_0x198b76);if(_0x34f673)return{'expr':_0x34f673[0x1][_0x37ccbb(0x111)](),'asName':_0x34f673[0x2]};return{'expr':_0x26a158,'asName':undefined};};if(typeof _0x198c5f===_0x42f7ca(0x102)){const {expr:_0xa52df6,asName:_0x529a50}=_0x2b1d42(_0x198c5f),_0x5d9b29=toSource(_0xa52df6),_0x4d210f=stripAlias(_0x5d9b29);return{'column':_0x4d210f,'source':_0x5d9b29,'param':_0x529a50??_0x4d210f,'multiple':!![],'none':![]};}if(!_0x198c5f||typeof _0x198c5f!=='object')return null;const _0x1f7122=_0x198c5f;if(!_0x1f7122[_0x42f7ca(0xe4)])return null;const {expr:_0x1c7af4,asName:_0x2f5c8d}=_0x2b1d42(_0x1f7122[_0x42f7ca(0xe4)]),_0x1a34ed=toSource(_0x1c7af4),_0x31145a=stripAlias(_0x1a34ed);return{'column':_0x31145a,'source':_0x1a34ed,'param':_0x2f5c8d??_0x31145a,'label':_0x1f7122[_0x42f7ca(0xea)],'dict':_0x1f7122[_0x42f7ca(0x100)],'multiple':_0x1f7122['multiple']!==![],'none':Boolean(_0x1f7122[_0x42f7ca(0x122)])};}function displayName(_0x4a0778,_0x1d6511){const _0x3f24b8=_0x40dd;return _0x4a0778[_0x3f24b8(0xea)]||_0x1d6511?.['comment']||_0x4a0778['column'];}function fieldKeyOf(_0x3d0de7,_0x1ce4ad){const _0x483901=_0x40dd,_0x5ef53f=_0x1ce4ad?.['table']?.[_0x483901(0x111)](),_0x352f6e=(_0x1ce4ad?.[_0x483901(0x11d)]||_0x3d0de7[_0x483901(0xe4)]||'')['trim']();if(!_0x5ef53f||!_0x352f6e)return;return _0x5ef53f+'.'+_0x352f6e;}export function buildAutoSearchItems(_0xb60303,_0x472391={}){const _0x2381fe=_0x40dd,_0x194d23=new Set(_0x472391[_0x2381fe(0x10b)]||[]),_0x5007e2=_0xb60303[_0x2381fe(0xf7)]||{};let _0x2d6af0=_0x5007e2[_0x2381fe(0x112)]||[],_0x9ee440=_0x5007e2['fieldLike']||[],_0x1784b2=_0x5007e2[_0x2381fe(0x120)]||[],_0x54bce8=_0x5007e2[_0x2381fe(0xf6)]||[],_0x28d85d=_0x5007e2['keyWordLikeFields']||[],_0x4ed4ae=[];const _0x5afe42=!_0x2d6af0[_0x2381fe(0xe3)]&&!_0x9ee440['length']&&!_0x1784b2[_0x2381fe(0xe3)]&&!_0x54bce8[_0x2381fe(0xe3)]&&!_0x28d85d[_0x2381fe(0xe3)],_0x19984a=_0xb60303[_0x2381fe(0x119)]?findEpsEntity('/'+_0xb60303[_0x2381fe(0x119)]):undefined;if(_0x19984a){_0x4ed4ae=[..._0x19984a[_0x2381fe(0x113)]||[],..._0x19984a[_0x2381fe(0x118)]||[]];if(!_0xb60303[_0x2381fe(0xf7)]||_0x5afe42){const _0x25e101=_0x19984a[_0x2381fe(0x10c)];_0x25e101&&(_0x2d6af0=_0x25e101[_0x2381fe(0x112)]||[],_0x9ee440=_0x25e101['fieldLike']||[],_0x1784b2=_0x25e101[_0x2381fe(0x120)]||[],_0x54bce8=_0x25e101['fieldRange']||[],_0x28d85d=_0x25e101['keyWordLikeFields']||[]);}}const _0x493752=(_0xff1439,_0x14b9fa)=>{const _0x21866d=_0x2381fe,_0x4183a9=_0xff1439[_0x21866d(0xe0)]('.')?_0xff1439:'a.'+_0xff1439,_0x4c398b=_0x14b9fa??stripAlias(_0x4183a9);return _0x4ed4ae['find'](_0x2c3eba=>_0x2c3eba[_0x21866d(0xf0)]===_0x4183a9)||_0x4ed4ae[_0x21866d(0xfe)](_0x3f342c=>_0x3f342c[_0x21866d(0x11d)]===_0x4c398b&&(!_0x3f342c[_0x21866d(0xf0)]||_0x3f342c[_0x21866d(0xf0)][_0x21866d(0x115)]('a.')))||_0x4ed4ae[_0x21866d(0xfe)](_0x48848c=>_0x48848c[_0x21866d(0x11d)]===_0x4c398b);},_0x42d2e7=[],_0x3efb5d=new Set(),_0x2d6d44=_0x445e16=>{const _0x2d4466=_0x2381fe;if(!_0x445e16[_0x2d4466(0xef)]||_0x3efb5d['has'](_0x445e16[_0x2d4466(0xef)]))return;_0x3efb5d['add'](_0x445e16[_0x2d4466(0xef)]),_0x42d2e7['push'](_0x445e16);};for(const _0x243b72 of _0x9ee440){const _0x519f09=parseRef(_0x243b72);if(!_0x519f09||_0x519f09[_0x2381fe(0x122)]||_0x194d23['has'](_0x519f09[_0x2381fe(0xfb)]))continue;const _0x15a20b=_0x493752(_0x519f09[_0x2381fe(0xf0)],_0x519f09[_0x2381fe(0xe4)]),_0x27e4fd=displayName(_0x519f09,_0x15a20b),_0x9263f7=fieldKeyOf(_0x519f09,_0x15a20b);_0x2d6d44({'prop':_0x519f09['param'],'label':_0x472391['hideLabel']?'':_0x27e4fd,'nameFallback':_0x27e4fd,'fieldKey':_0x9263f7,'phMode':'search','placeholder':'搜索'+_0x27e4fd,'type':_0x2381fe(0x107)});}for(const _0x4d3175 of _0x1784b2){const _0x222a7e=parseRef(_0x4d3175);if(!_0x222a7e||_0x222a7e['none']||_0x194d23['has'](_0x222a7e[_0x2381fe(0xfb)]))continue;const _0x6603a6=_0x493752(_0x222a7e['source'],_0x222a7e[_0x2381fe(0xe4)]),_0x10930b=displayName(_0x222a7e,_0x6603a6),_0x1a32fe=fieldKeyOf(_0x222a7e,_0x6603a6);_0x2d6d44({'prop':_0x222a7e[_0x2381fe(0xfb)],'label':_0x472391[_0x2381fe(0xf4)]?'':_0x10930b,'nameFallback':_0x10930b,'fieldKey':_0x1a32fe,'phMode':_0x2381fe(0xf7),'placeholder':'搜索'+_0x10930b,'type':_0x2381fe(0x107)});}for(const _0x442949 of _0x2d6af0){const _0x28b324=parseRef(_0x442949);if(!_0x28b324||_0x28b324[_0x2381fe(0x122)]||_0x194d23[_0x2381fe(0xf2)](_0x28b324[_0x2381fe(0xfb)]))continue;const _0x1b7dc0=_0x493752(_0x28b324[_0x2381fe(0xf0)],_0x28b324[_0x2381fe(0xe4)]),_0x1072e8=_0x28b324[_0x2381fe(0x100)]||(typeof _0x1b7dc0?.[_0x2381fe(0x100)]===_0x2381fe(0x102)?_0x1b7dc0[_0x2381fe(0x100)]:Array[_0x2381fe(0x11c)](_0x1b7dc0?.['dict'])?_0x1b7dc0['dict'][0x0]:undefined),_0x15e715=displayName(_0x28b324,_0x1b7dc0),_0x3c339c=fieldKeyOf(_0x28b324,_0x1b7dc0),_0x483748=_0x472391[_0x2381fe(0xf4)]?'':_0x15e715;_0x1072e8?_0x2d6d44({'prop':_0x28b324[_0x2381fe(0xfb)],'label':_0x483748,'nameFallback':_0x15e715,'fieldKey':_0x3c339c,'phMode':_0x2381fe(0x11a),'placeholder':'选择'+_0x15e715,'type':'select','dict':_0x1072e8,'multiple':_0x28b324[_0x2381fe(0xeb)]}):_0x2d6d44({'prop':_0x28b324[_0x2381fe(0xfb)],'label':_0x483748,'nameFallback':_0x15e715,'fieldKey':_0x3c339c,'phMode':'search','placeholder':'搜索'+_0x15e715,'type':_0x2381fe(0x107)});}for(const _0x5d4cb8 of _0x54bce8){if(!_0x5d4cb8?.[_0x2381fe(0xe4)]||_0x5d4cb8[_0x2381fe(0x122)])continue;if(_0x194d23[_0x2381fe(0xf2)](_0x5d4cb8[_0x2381fe(0xe8)])||_0x194d23[_0x2381fe(0xf2)](_0x5d4cb8[_0x2381fe(0xe6)]))continue;const _0x44c1c8=toSource(_0x5d4cb8[_0x2381fe(0xe4)]),_0x244db3=stripAlias(_0x5d4cb8[_0x2381fe(0xe4)]),_0xa79566=_0x493752(_0x44c1c8,_0x244db3),_0x2eaf59=_0x5d4cb8[_0x2381fe(0xea)]||_0xa79566?.['comment']||_0x244db3,_0x5826ff=fieldKeyOf({'column':_0x244db3},_0xa79566),_0x90ebc4=_0x472391['hideLabel']?'':_0x2eaf59,_0x5ecd0c=_0x5d4cb8['type']==='int'||_0x5d4cb8[_0x2381fe(0xee)]==='float',_0xed0971=_0x5ecd0c?_0x2381fe(0xe9):'开始',_0x159acf=_0x5ecd0c?_0x2381fe(0x11e):'结束';_0x2d6d44({'prop':_0x2381fe(0xf1)+_0x5d4cb8[_0x2381fe(0xe8)]+'_'+_0x5d4cb8[_0x2381fe(0xe6)],'label':_0x90ebc4,'nameFallback':_0x2eaf59,'fieldKey':_0x5826ff,'phMode':_0x2381fe(0xf5),'placeholder':_0x2eaf59||'区间','type':_0x5ecd0c?_0x2381fe(0xf3):_0x2381fe(0x10e),'range':{'min':_0x5d4cb8[_0x2381fe(0xe8)],'max':_0x5d4cb8[_0x2381fe(0xe6)],'rangeType':_0x5d4cb8[_0x2381fe(0xee)]},'component':{'name':_0x5ecd0c?_0x2381fe(0xec):_0x2381fe(0x10f),'props':_0x5ecd0c?{'mode':_0x5d4cb8['type'],'startPlaceholder':''+_0x2eaf59+_0xed0971,'endPlaceholder':''+_0x2eaf59+_0x159acf}:{'precision':_0x5d4cb8['type'],'startPlaceholder':''+_0x2eaf59+_0xed0971,'endPlaceholder':''+_0x2eaf59+_0x159acf}}});}if(_0x28d85d[_0x2381fe(0xe3)]){const _0x4da111=[],_0x511475=_0x28d85d['map'](_0x46806c=>{const _0x3f3c0a=_0x2381fe,_0x3a88e2=parseRef(_0x46806c);if(!_0x3a88e2)return typeof _0x46806c===_0x3f3c0a(0x102)?stripAlias(_0x46806c):'';const _0x49beed=_0x493752(_0x3a88e2[_0x3f3c0a(0xf0)],_0x3a88e2[_0x3f3c0a(0xe4)]),_0x2f765d=fieldKeyOf(_0x3a88e2,_0x49beed);if(_0x2f765d)_0x4da111['push'](_0x2f765d);return displayName(_0x3a88e2,_0x49beed);})[_0x2381fe(0xfc)](Boolean);_0x2d6d44({'prop':_0x2381fe(0xf8),'label':_0x472391[_0x2381fe(0xf4)]?'':_0x2381fe(0x11f),'nameFallback':_0x511475['join']('、')||_0x2381fe(0x11f),'phMode':_0x2381fe(0x117),'keywordParts':_0x4da111,'placeholder':'搜索'+(_0x511475[_0x2381fe(0xfa)]('、')||_0x2381fe(0x11f)),'type':_0x2381fe(0x107)});}return _0x42d2e7;}
|