form-designer-xinyi 1.0.6 → 1.0.8
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/{az-DCXiiESG.js → az-BK9Z-lLh.js} +1 -1
- package/dist/{az-DmWa7of3.cjs → az-wkpMLQmv.cjs} +1 -1
- package/dist/{be-CehLJrUq.js → be-BEJBpOM_.js} +1 -1
- package/dist/{be-B-cUmHNN.cjs → be-oHPNI5Gc.cjs} +1 -1
- package/dist/{bg-18LWlbZr.cjs → bg-C0MaQwC9.cjs} +1 -1
- package/dist/{bg-zhplua9e.js → bg-DZewkL_k.js} +1 -1
- package/dist/{bn-bd-CcPtAGME.js → bn-bd-B70US5nU.js} +1 -1
- package/dist/{bn-bd-BWDGAQhC.cjs → bn-bd-j_dbEveW.cjs} +1 -1
- package/dist/{ca-BaCNJLRX.cjs → ca-B5jbXDIY.cjs} +1 -1
- package/dist/{ca-A3T5YUwb.js → ca-D9mNguJd.js} +1 -1
- package/dist/{cs-CCSDjOne.js → cs-BUX0b-Qj.js} +1 -1
- package/dist/{cs-CV_5Kg0X.cjs → cs-Cg6iLniZ.cjs} +1 -1
- package/dist/{da-DICIPJ7L.cjs → da-Bk0I_ccU.cjs} +1 -1
- package/dist/{da-DavfOOe1.js → da-i1cRRoJc.js} +1 -1
- package/dist/{de-WfBNIQqf.js → de-6EY30Xk7.js} +1 -1
- package/dist/{de-D8r7IfHE.cjs → de-XK8ryblR.cjs} +1 -1
- package/dist/{el-BrojGZyy.js → el-Dqf18Ryf.js} +1 -1
- package/dist/{el-CUwcZO-P.cjs → el-op4fxjva.cjs} +1 -1
- package/dist/{en-gb-4YMsyvf2.cjs → en-gb-BKuiimUh.cjs} +1 -1
- package/dist/{en-gb-B5QcQufb.js → en-gb-ChxZw5bE.js} +1 -1
- package/dist/{es-CYfO6Mad.js → es-B5uwwKah.js} +1 -1
- package/dist/{es-Br_4k5vZ.cjs → es-qO5hgDQ9.cjs} +1 -1
- package/dist/{et-IWC4iffC.cjs → et-BiG_9iuq.cjs} +1 -1
- package/dist/{et-3NG2tKXu.js → et-CQ28eltJ.js} +1 -1
- package/dist/{fa-_wIRoD_d.js → fa-DUZw1TFM.js} +1 -1
- package/dist/{fa-ByoHLaAA.cjs → fa-DvdloN-e.cjs} +1 -1
- package/dist/{fi-J0k6EJlz.cjs → fi-D2uNJunQ.cjs} +1 -1
- package/dist/{fi-BIQ0OeZJ.js → fi-DSufvn3N.js} +1 -1
- package/dist/{form-BJ79G9Nc.js → form-BNqn8rpt.js} +41 -43
- package/dist/form-DatH2HYc.cjs +1 -0
- package/dist/{formLogic-BQvIQPC2.cjs → formLogic-DRQx68Lc.cjs} +1 -1
- package/dist/{formLogic-GbcioU8h.js → formLogic-DeLOyzr3.js} +145 -141
- package/dist/{fr-f6CWXCIZ.js → fr-BLHNWimt.js} +1 -1
- package/dist/{fr-8ScCPkWr.cjs → fr-BnGHC3ao.cjs} +1 -1
- package/dist/{fr-ca-hx0r1nrG.cjs → fr-ca-CVnAlSzP.cjs} +1 -1
- package/dist/{fr-ca-CXTwE2V0.js → fr-ca-DC5UZH1V.js} +1 -1
- package/dist/{ga-BVDRkJPo.js → ga-CLC4uVOE.js} +1 -1
- package/dist/{ga-C2LamDJC.cjs → ga-FSfmZP8s.cjs} +1 -1
- package/dist/{gl-Dk0ykLq3.js → gl-B5tyX5wx.js} +1 -1
- package/dist/{gl-D8BHoJpO.cjs → gl-CLe4arkn.cjs} +1 -1
- package/dist/{he-D2izWVbj.js → he-BorgLpdp.js} +1 -1
- package/dist/{he-CmrTXyqH.cjs → he-Ci3JjCko.cjs} +1 -1
- package/dist/{hi-CNX7sMVD.cjs → hi-DOXjlQk0.cjs} +1 -1
- package/dist/{hi-BFR1-qyt.js → hi-TK9aKw0o.js} +1 -1
- package/dist/{hr-Dqw4Je-P.js → hr-BA4jQOr_.js} +1 -1
- package/dist/{hr-CC9Y--og.cjs → hr-z9sh4FaJ.cjs} +1 -1
- package/dist/{hu-BaJDmmT9.cjs → hu-B6s35yrM.cjs} +1 -1
- package/dist/{hu-CvWQciV7.js → hu-C8I57XAX.js} +1 -1
- package/dist/{hy-am-Cdasy0RS.cjs → hy-am-B79yAgCP.cjs} +1 -1
- package/dist/{hy-am-BdtAHcL5.js → hy-am-CTkYA9L3.js} +1 -1
- package/dist/{id-BBsaOyVs.js → id-BTOYvEfF.js} +1 -1
- package/dist/{id-BNh86keQ.cjs → id-C96KjYbT.cjs} +1 -1
- package/dist/{index-D5JHVbNh.cjs → index-BPOtGySn.cjs} +2 -2
- package/dist/{index-D7W0k0u4.js → index-CupDYm7Q.js} +64 -64
- package/dist/{is-Kk3AMomZ.cjs → is-DnrNkwj-.cjs} +1 -1
- package/dist/{is-Bd2uUZ9z.js → is-M6XtCwoz.js} +1 -1
- package/dist/{it-LvU1KcVi.js → it-B1QRz2pT.js} +1 -1
- package/dist/{it-BHlwtY6j.cjs → it-ClKF9xfE.cjs} +1 -1
- package/dist/{ja-DTV9ylxr.js → ja-0GrW5Akv.js} +1 -1
- package/dist/{ja-BC6K7Pw3.cjs → ja-BbpBRQoX.cjs} +1 -1
- package/dist/{ka-CR-7-T4T.js → ka-BCQrnDVJ.js} +1 -1
- package/dist/{ka-DjET44-u.cjs → ka-DRczzR4i.cjs} +1 -1
- package/dist/{kk-BXOus3KY.js → kk-C3hLk0ee.js} +1 -1
- package/dist/{kk-8LH-vkZU.cjs → kk-DBvnoW1b.cjs} +1 -1
- package/dist/{km-BQGykOzd.js → km-D7KVKL6z.js} +1 -1
- package/dist/{km-CMVFV48q.cjs → km-kA4crWgU.cjs} +1 -1
- package/dist/{kn-DXXz8pMJ.js → kn-4OhfSuSm.js} +1 -1
- package/dist/{kn-CP1vyeUu.cjs → kn-C39qI1Ub.cjs} +1 -1
- package/dist/{ko-D7aPDoMs.js → ko-BsFHLKb2.js} +1 -1
- package/dist/{ko-zQn3ds4Y.cjs → ko-Bw9NMy6x.cjs} +1 -1
- package/dist/{ku-55XCN59b.cjs → ku-Bhneyab1.cjs} +1 -1
- package/dist/{ku-Sl-E675w.js → ku-DfvcKN1O.js} +1 -1
- package/dist/{lt-BJPMuYiv.cjs → lt-BUfVCE-V.cjs} +1 -1
- package/dist/{lt-BXCNO63g.js → lt-KiqBbVf_.js} +1 -1
- package/dist/{lv-B2K4oU9o.js → lv-BHgOZUSe.js} +1 -1
- package/dist/{lv-C0t3uaD0.cjs → lv-Dd1jbSJS.cjs} +1 -1
- package/dist/{mk-yeQA31OJ.js → mk-CX3XTTqX.js} +1 -1
- package/dist/{mk-BLEZmIXT.cjs → mk-DFYo4bcI.cjs} +1 -1
- package/dist/{ml-DWXBKcYv.cjs → ml-Bo78EteW.cjs} +1 -1
- package/dist/{ml-B7IvE3Nz.js → ml-CnR8KHZo.js} +1 -1
- package/dist/{mn-zWbORxOS.js → mn-D3Zoiroq.js} +1 -1
- package/dist/{mn-Bj6aEkuZ.cjs → mn-lwUfgYBV.cjs} +1 -1
- package/dist/{ms-my-Dyay6N1l.cjs → ms-my-DMjpxz6X.cjs} +1 -1
- package/dist/{ms-my-DjP68MGa.js → ms-my-ZvFdKXrr.js} +1 -1
- package/dist/{nb-DpWGXU_u.cjs → nb-CmIPUF7S.cjs} +1 -1
- package/dist/{nb-PAp_gltD.js → nb-D7Vhs7vX.js} +1 -1
- package/dist/{ne-CnRZExU0.cjs → ne-B763gXlh.cjs} +1 -1
- package/dist/{ne-mkgOgbNz.js → ne-CwPKb_7O.js} +1 -1
- package/dist/{nl-IAGiFWBv.js → nl-DkaiCC4v.js} +1 -1
- package/dist/{nl-DLU-z0ra.cjs → nl-Te5PqoWC.cjs} +1 -1
- package/dist/{nl-be-kzoOeEgx.js → nl-be-CgaE96XX.js} +1 -1
- package/dist/{nl-be-Dkj_gkhL.cjs → nl-be-wftuuAhX.cjs} +1 -1
- package/dist/{pl-Baj1I8GO.js → pl-CLCJCB6s.js} +1 -1
- package/dist/{pl-BS34GFOE.cjs → pl-vIPEImNv.cjs} +1 -1
- package/dist/{pt-CIHMBpVk.cjs → pt-B6Y04PUI.cjs} +1 -1
- package/dist/{pt-br-CFTvUOlr.js → pt-br-CpKrw0cZ.js} +1 -1
- package/dist/{pt-br-CcdWcD17.cjs → pt-br-DxVLAnbu.cjs} +1 -1
- package/dist/{pt-DcQl-rk4.js → pt-lMeuqpjX.js} +1 -1
- package/dist/{ro-D_sqbedh.js → ro-Cl-ZKVWH.js} +1 -1
- package/dist/{ro-BBx6W0Ur.cjs → ro-Ctr-HsJN.cjs} +1 -1
- package/dist/{ru-BPiTbTns.cjs → ru-BkKxsk5S.cjs} +1 -1
- package/dist/{ru-D33b424C.js → ru-BmtUzZXX.js} +1 -1
- package/dist/{sk-CJR-axoF.js → sk-B-zIxgxe.js} +1 -1
- package/dist/{sk-yJ6xfgJV.cjs → sk-B21X-u_g.cjs} +1 -1
- package/dist/{sl-BkEd4Gay.cjs → sl-7uxQVMpU.cjs} +1 -1
- package/dist/{sl-BprGwnQA.js → sl-BbEzwVaz.js} +1 -1
- package/dist/{sr-DY1Hrw_Q.js → sr-C6My2K0G.js} +1 -1
- package/dist/{sr-BLJlPp49.cjs → sr-CZcR4vky.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{sv-CAh58l7d.cjs → sv-BQmi34Yr.cjs} +1 -1
- package/dist/{sv-Cbur1G4L.js → sv-y7gQcLNU.js} +1 -1
- package/dist/{ta-DJRKhDDz.js → ta-C1FnoZFb.js} +1 -1
- package/dist/{ta-BIYDOFpD.cjs → ta-DcXlLW1B.cjs} +1 -1
- package/dist/{th-QjgmzCvW.js → th-CuYnga_t.js} +1 -1
- package/dist/{th-B062oT7A.cjs → th-D7zAYMme.cjs} +1 -1
- package/dist/{tr-DcGV5grj.js → tr--s9R6SJP.js} +1 -1
- package/dist/{tr-DnAMCFLV.cjs → tr-B0HGUDDK.cjs} +1 -1
- package/dist/ui/antd/index.cjs +1 -1
- package/dist/ui/antd/index.js +1 -1
- package/dist/{uk-_7GtaiN3.cjs → uk-BrJ_s6L_.cjs} +1 -1
- package/dist/{uk-DHXW1H_9.js → uk-DEe8_1VF.js} +1 -1
- package/dist/{ur-BANGdPC7.cjs → ur-BTTAXJfv.cjs} +1 -1
- package/dist/{ur-XSWWR6Ob.js → ur-CDDx-ffC.js} +1 -1
- package/dist/{vi-Bq3oktGm.js → vi-B-3j6GNL.js} +1 -1
- package/dist/{vi-CqFtyze6.cjs → vi-DKkas-px.cjs} +1 -1
- package/dist/{zh-cn-DJ21UUZc.js → zh-cn-DNyKCtR3.js} +1 -1
- package/dist/{zh-cn-0wEdPUmd.cjs → zh-cn-DyxAGtkE.cjs} +1 -1
- package/dist/{zh-hk-DcbbXzaN.js → zh-hk-CmdiEtEd.js} +1 -1
- package/dist/{zh-hk-BQBum5JI.cjs → zh-hk-dLA9cgVp.cjs} +1 -1
- package/dist/{zh-tw-h6skddG7.cjs → zh-tw-D2Bbp7OG.cjs} +1 -1
- package/dist/{zh-tw-VzvMr6rj.js → zh-tw-DPJYhf5n.js} +1 -1
- package/package.json +1 -1
- package/dist/form-B8j308ig.cjs +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const i=require("./_commonjsHelpers-DwTZ_eVU.cjs"),s=require("./index-
|
|
1
|
+
"use strict";const i=require("./_commonjsHelpers-DwTZ_eVU.cjs"),s=require("./index-BPOtGySn.cjs");var o={exports:{}};(function(_,l){(function(r,e){_.exports=e(s.requireDayjs_min())})(i.commonjsGlobal,function(r){function e(a){return a&&typeof a=="object"&&"default"in a?a:{default:a}}var n=e(r),t={name:"az",weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"bir neçə saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},ordinal:function(a){return a}};return n.default.locale(t,null,!0),t})})(o);const m=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));exports.az=m;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("./_commonjsHelpers-DwTZ_eVU.cjs"),l=require("./index-
|
|
1
|
+
"use strict";const s=require("./_commonjsHelpers-DwTZ_eVU.cjs"),l=require("./index-BPOtGySn.cjs");var i={exports:{}};(function(o,a){(function(t,e){o.exports=e(l.requireDayjs_min())})(s.commonjsGlobal,function(t){function e(_){return _&&typeof _=="object"&&"default"in _?_:{default:_}}var r=e(t),n={name:"be",weekdays:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),months:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),weekStart:1,weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"}};return r.default.locale(n,null,!0),n})})(i);const u=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));exports.be=u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const i=require("./_commonjsHelpers-DwTZ_eVU.cjs"),a=require("./index-
|
|
1
|
+
"use strict";const i=require("./_commonjsHelpers-DwTZ_eVU.cjs"),a=require("./index-BPOtGySn.cjs");var l={exports:{}};(function(s,u){(function(r,e){s.exports=e(a.requireDayjs_min())})(i.commonjsGlobal,function(r){function e(_){return _&&typeof _=="object"&&"default"in _?_:{default:_}}var d=e(r),n={name:"bg",weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekStart:1,ordinal:function(_){var o=_%100;if(o>10&&o<20)return _+"-ти";var t=_%10;return t===1?_+"-ви":t===2?_+"-ри":t===7||t===8?_+"-ми":_+"-ти"},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"}};return d.default.locale(n,null,!0),n})})(l);const m=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));exports.bg=m;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const a=require("./_commonjsHelpers-DwTZ_eVU.cjs"),m=require("./index-
|
|
1
|
+
"use strict";const a=require("./_commonjsHelpers-DwTZ_eVU.cjs"),m=require("./index-BPOtGySn.cjs");var l={exports:{}};(function(s,f){(function(r,n){s.exports=n(m.requireDayjs_min())})(a.commonjsGlobal,function(r){function n(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var u=n(r),d={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},i={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"},e={name:"bn-bd",weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdaysMin:"রবি_সোম_মঙ্গ_বুধ_বৃহঃ_শুক্র_শনি".split("_"),weekStart:0,preparse:function(t){return t.replace(/[১২৩৪৫৬৭৮৯০]/g,function(_){return i[_]})},postformat:function(t){return t.replace(/\d/g,function(_){return d[_]})},ordinal:function(t){var _=["ই","লা","রা","ঠা","শে"],o=t%100;return"["+t+(_[(o-20)%10]||_[o]||_[0])+"]"},formats:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY খ্রিস্টাব্দ",LL:"D MMMM YYYY খ্রিস্টাব্দ",LLL:"D MMMM YYYY খ্রিস্টাব্দ, A h:mm সময়",LLLL:"dddd, D MMMM YYYY খ্রিস্টাব্দ, A h:mm সময়"},meridiem:function(t){return t<4?"রাত":t<6?"ভোর":t<12?"সকাল":t<15?"দুপুর":t<18?"বিকাল":t<20?"সন্ধ্যা":"রাত"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"}};return u.default.locale(e,null,!0),e})})(l);const c=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));exports.bnBd=c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const l=require("./_commonjsHelpers-DwTZ_eVU.cjs"),o=require("./index-
|
|
1
|
+
"use strict";const l=require("./_commonjsHelpers-DwTZ_eVU.cjs"),o=require("./index-BPOtGySn.cjs");var a={exports:{}};(function(n,i){(function(s,t){n.exports=t(o.requireDayjs_min())})(l.commonjsGlobal,function(s){function t(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var r=t(s),_={name:"ca",weekdays:"Diumenge_Dilluns_Dimarts_Dimecres_Dijous_Divendres_Dissabte".split("_"),weekdaysShort:"Dg._Dl._Dt._Dc._Dj._Dv._Ds.".split("_"),weekdaysMin:"Dg_Dl_Dt_Dc_Dj_Dv_Ds".split("_"),months:"Gener_Febrer_Març_Abril_Maig_Juny_Juliol_Agost_Setembre_Octubre_Novembre_Desembre".split("_"),monthsShort:"Gen._Febr._Març_Abr._Maig_Juny_Jul._Ag._Set._Oct._Nov._Des.".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",ll:"D MMM YYYY",lll:"D MMM YYYY, H:mm",llll:"ddd D MMM YYYY, H:mm"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},ordinal:function(e){return""+e+(e===1||e===3?"r":e===2?"n":e===4?"t":"è")}};return r.default.locale(_,null,!0),_})})(a);const u=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));exports.ca=u;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const c=require("./_commonjsHelpers-DwTZ_eVU.cjs"),l=require("./index-
|
|
1
|
+
"use strict";const c=require("./_commonjsHelpers-DwTZ_eVU.cjs"),l=require("./index-BPOtGySn.cjs");var p={exports:{}};(function(d,y){(function(u,_){d.exports=_(l.requireDayjs_min())})(c.commonjsGlobal,function(u){function _(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var i=_(u);function o(e){return e>1&&e<5&&~~(e/10)!=1}function t(e,n,m,s){var r=e+" ";switch(m){case"s":return n||s?"pár sekund":"pár sekundami";case"m":return n?"minuta":s?"minutu":"minutou";case"mm":return n||s?r+(o(e)?"minuty":"minut"):r+"minutami";case"h":return n?"hodina":s?"hodinu":"hodinou";case"hh":return n||s?r+(o(e)?"hodiny":"hodin"):r+"hodinami";case"d":return n||s?"den":"dnem";case"dd":return n||s?r+(o(e)?"dny":"dní"):r+"dny";case"M":return n||s?"měsíc":"měsícem";case"MM":return n||s?r+(o(e)?"měsíce":"měsíců"):r+"měsíci";case"y":return n||s?"rok":"rokem";case"yy":return n||s?r+(o(e)?"roky":"let"):r+"lety"}}var a={name:"cs",weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),months:"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),monthsShort:"led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),weekStart:1,yearStart:4,ordinal:function(e){return e+"."},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},relativeTime:{future:"za %s",past:"před %s",s:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t}};return i.default.locale(a,null,!0),a})})(p);const M=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));exports.cs=M;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("./_commonjsHelpers-DwTZ_eVU.cjs"),d=require("./index-
|
|
1
|
+
"use strict";const s=require("./_commonjsHelpers-DwTZ_eVU.cjs"),d=require("./index-BPOtGySn.cjs");var o={exports:{}};(function(a,i){(function(r,t){a.exports=t(d.requireDayjs_min())})(s.commonjsGlobal,function(r){function t(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var _=t(r),n={name:"da",weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn._man._tirs._ons._tors._fre._lør.".split("_"),weekdaysMin:"sø._ma._ti._on._to._fr._lø.".split("_"),months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj_juni_juli_aug._sept._okt._nov._dec.".split("_"),weekStart:1,yearStart:4,ordinal:function(e){return e+"."},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"}};return _.default.locale(n,null,!0),n})})(o);const m=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));exports.da=m;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("./_commonjsHelpers-DwTZ_eVU.cjs"),m=require("./index-
|
|
1
|
+
"use strict";const s=require("./_commonjsHelpers-DwTZ_eVU.cjs"),m=require("./index-BPOtGySn.cjs");var l={exports:{}};(function(_,S){(function(a,r){_.exports=r(m.requireDayjs_min())})(s.commonjsGlobal,function(a){function r(n){return n&&typeof n=="object"&&"default"in n?n:{default:n}}var o=r(a),u={s:"ein paar Sekunden",m:["eine Minute","einer Minute"],mm:"%d Minuten",h:["eine Stunde","einer Stunde"],hh:"%d Stunden",d:["ein Tag","einem Tag"],dd:["%d Tage","%d Tagen"],M:["ein Monat","einem Monat"],MM:["%d Monate","%d Monaten"],y:["ein Jahr","einem Jahr"],yy:["%d Jahre","%d Jahren"]};function e(n,M,d){var t=u[d];return Array.isArray(t)&&(t=t[M?0:1]),t.replace("%d",n)}var i={name:"de",weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sept._Okt._Nov._Dez.".split("_"),ordinal:function(n){return n+"."},weekStart:1,yearStart:4,formats:{LTS:"HH:mm:ss",LT:"HH:mm",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},relativeTime:{future:"in %s",past:"vor %s",s:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e}};return o.default.locale(i,null,!0),i})})(l);const p=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));exports.de=p;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("./_commonjsHelpers-DwTZ_eVU.cjs"),l=require("./index-
|
|
1
|
+
"use strict";const s=require("./_commonjsHelpers-DwTZ_eVU.cjs"),l=require("./index-BPOtGySn.cjs");var d={exports:{}};(function(r,m){(function(t,e){r.exports=e(l.requireDayjs_min())})(s.commonjsGlobal,function(t){function e(_){return _&&typeof _=="object"&&"default"in _?_:{default:_}}var n=e(t),o={name:"el",weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),months:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαι_Ιουν_Ιουλ_Αυγ_Σεπτ_Οκτ_Νοε_Δεκ".split("_"),ordinal:function(_){return _},weekStart:1,relativeTime:{future:"σε %s",past:"πριν %s",s:"μερικά δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένα μήνα",MM:"%d μήνες",y:"ένα χρόνο",yy:"%d χρόνια"},formats:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"}};return n.default.locale(o,null,!0),o})})(d);const i=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));exports.el=i;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("./_commonjsHelpers-DwTZ_eVU.cjs"),d=require("./index-
|
|
1
|
+
"use strict";const s=require("./_commonjsHelpers-DwTZ_eVU.cjs"),d=require("./index-BPOtGySn.cjs");var m={exports:{}};(function(o,y){(function(a,t){o.exports=t(d.requireDayjs_min())})(s.commonjsGlobal,function(a){function t(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var u=t(a),_={name:"en-gb",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekStart:1,yearStart:4,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},ordinal:function(e){var r=["th","st","nd","rd"],n=e%100;return"["+e+(r[(n-20)%10]||r[n]||r[0])+"]"}};return u.default.locale(_,null,!0),_})})(m);const i=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));exports.enGb=i;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("./_commonjsHelpers-DwTZ_eVU.cjs"),m=require("./index-
|
|
1
|
+
"use strict";const r=require("./_commonjsHelpers-DwTZ_eVU.cjs"),m=require("./index-BPOtGySn.cjs");var u={exports:{}};(function(n,i){(function(s,o){n.exports=o(m.requireDayjs_min())})(r.commonjsGlobal,function(s){function o(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var t=o(s),_={name:"es",monthsShort:"ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),weekStart:1,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},ordinal:function(e){return e+"º"}};return t.default.locale(_,null,!0),_})})(u);const a=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));exports.es=a;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const o=require("./_commonjsHelpers-DwTZ_eVU.cjs"),l=require("./index-
|
|
1
|
+
"use strict";const o=require("./_commonjsHelpers-DwTZ_eVU.cjs"),l=require("./index-BPOtGySn.cjs");var p={exports:{}};(function(_,k){(function(n,s){_.exports=s(l.requireDayjs_min())})(o.commonjsGlobal,function(n){function s(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var i=s(n);function e(t,m,a,d){var u={s:["mõne sekundi","mõni sekund","paar sekundit"],m:["ühe minuti","üks minut"],mm:["%d minuti","%d minutit"],h:["ühe tunni","tund aega","üks tund"],hh:["%d tunni","%d tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:["%d kuu","%d kuud"],y:["ühe aasta","aasta","üks aasta"],yy:["%d aasta","%d aastat"]};return m?(u[a][2]?u[a][2]:u[a][1]).replace("%d",t):(d?u[a][0]:u[a][1]).replace("%d",t)}var r={name:"et",weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),ordinal:function(t){return t+"."},weekStart:1,relativeTime:{future:"%s pärast",past:"%s tagasi",s:e,m:e,mm:e,h:e,hh:e,d:e,dd:"%d päeva",M:e,MM:e,y:e,yy:e},formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"}};return i.default.locale(r,null,!0),r})})(p);const M=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));exports.et=M;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const s=require("./_commonjsHelpers-DwTZ_eVU.cjs"),a=require("./index-
|
|
1
|
+
"use strict";const s=require("./_commonjsHelpers-DwTZ_eVU.cjs"),a=require("./index-BPOtGySn.cjs");var d={exports:{}};(function(r,l){(function(t,e){r.exports=e(a.requireDayjs_min())})(s.commonjsGlobal,function(t){function e(_){return _&&typeof _=="object"&&"default"in _?_:{default:_}}var n=e(t),o={name:"fa",weekdays:"یکشنبه_دوشنبه_سهشنبه_چهارشنبه_پنجشنبه_جمعه_شنبه".split("_"),weekdaysShort:"یکشنبه_دوشنبه_سهشنبه_چهارشنبه_پنجشنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekStart:6,months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),ordinal:function(_){return _},formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"}};return n.default.locale(o,null,!0),o})})(d);const i=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));exports.fa=i;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const M=require("./_commonjsHelpers-DwTZ_eVU.cjs"),Y=require("./index-
|
|
1
|
+
"use strict";const M=require("./_commonjsHelpers-DwTZ_eVU.cjs"),Y=require("./index-BPOtGySn.cjs");var h={exports:{}};(function(s,y){(function(n,e){s.exports=e(Y.requireDayjs_min())})(M.commonjsGlobal,function(n){function e(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}var l=e(n);function u(t,m,o,k){var d={s:"muutama sekunti",m:"minuutti",mm:"%d minuuttia",h:"tunti",hh:"%d tuntia",d:"päivä",dd:"%d päivää",M:"kuukausi",MM:"%d kuukautta",y:"vuosi",yy:"%d vuotta",numbers:"nolla_yksi_kaksi_kolme_neljä_viisi_kuusi_seitsemän_kahdeksan_yhdeksän".split("_")},r={s:"muutaman sekunnin",m:"minuutin",mm:"%d minuutin",h:"tunnin",hh:"%d tunnin",d:"päivän",dd:"%d päivän",M:"kuukauden",MM:"%d kuukauden",y:"vuoden",yy:"%d vuoden",numbers:"nollan_yhden_kahden_kolmen_neljän_viiden_kuuden_seitsemän_kahdeksan_yhdeksän".split("_")},a=k&&!m?r:d,_=a[o];return t<10?_.replace("%d",a.numbers[t]):_.replace("%d",t)}var i={name:"fi",weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),ordinal:function(t){return t+"."},weekStart:1,yearStart:4,relativeTime:{future:"%s päästä",past:"%s sitten",s:u,m:u,mm:u,h:u,hh:u,d:u,dd:u,M:u,MM:u,y:u,yy:u},formats:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM[ta] YYYY",LLL:"D. MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, D. MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"D. MMM YYYY",lll:"D. MMM YYYY, [klo] HH.mm",llll:"ddd, D. MMM YYYY, [klo] HH.mm"}};return l.default.locale(i,null,!0),i})})(h);const p=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));exports.fi=p;
|
|
@@ -1,36 +1,34 @@
|
|
|
1
|
-
import { reactive as F, inject as C, watch as D, nextTick as
|
|
1
|
+
import { reactive as F, inject as C, watch as D, nextTick as P, defineComponent as j, ref as w, provide as L, onMounted as E, computed as g, openBlock as y, createElementBlock as k, createVNode as O, unref as A, mergeProps as W, withCtx as M, renderSlot as S, Fragment as R, renderList as $ } from "vue";
|
|
2
2
|
import { Form as B } from "ant-design-vue";
|
|
3
3
|
import { e as N, d as q } from "./revoke-WcKDH9Ha.js";
|
|
4
4
|
function v(s = null) {
|
|
5
|
-
const
|
|
6
|
-
let o = [],
|
|
7
|
-
D(() =>
|
|
8
|
-
|
|
5
|
+
const l = F({}), a = C("pageManager");
|
|
6
|
+
let o = [], i = {};
|
|
7
|
+
D(() => l, (e) => {
|
|
8
|
+
P(() => {
|
|
9
9
|
for (const t in e)
|
|
10
|
-
e[t] !==
|
|
11
|
-
n.condition.conditions.map((
|
|
12
|
-
|
|
13
|
-
})
|
|
14
|
-
d(u, !0);
|
|
15
|
-
}));
|
|
10
|
+
e[t] !== i[t] && (o == null || o.forEach((n) => {
|
|
11
|
+
n.condition.conditions.map((p) => p.field).includes(t) && f(n.condition) && n.actions.forEach((p) => {
|
|
12
|
+
m(p);
|
|
13
|
+
});
|
|
16
14
|
}));
|
|
17
|
-
|
|
15
|
+
i = N(e);
|
|
18
16
|
});
|
|
19
17
|
}, { deep: !0 });
|
|
20
18
|
function f(e) {
|
|
21
19
|
return e.operator === "and" ? e.conditions.every((t) => {
|
|
22
20
|
if (!t.field)
|
|
23
21
|
return !0;
|
|
24
|
-
const n =
|
|
25
|
-
return
|
|
22
|
+
const n = l[t.field];
|
|
23
|
+
return d(n, t);
|
|
26
24
|
}) : e.operator === "or" ? e.conditions.some((t) => {
|
|
27
25
|
if (!t.field)
|
|
28
26
|
return !0;
|
|
29
|
-
const n =
|
|
30
|
-
return
|
|
27
|
+
const n = l[t.field];
|
|
28
|
+
return d(n, t);
|
|
31
29
|
}) : !0;
|
|
32
30
|
}
|
|
33
|
-
function
|
|
31
|
+
function d(e, t) {
|
|
34
32
|
if (!t.value)
|
|
35
33
|
return !1;
|
|
36
34
|
switch (t.operator) {
|
|
@@ -51,15 +49,15 @@ function v(s = null) {
|
|
|
51
49
|
case "nin":
|
|
52
50
|
return !t.value.includes(e);
|
|
53
51
|
case "null":
|
|
54
|
-
return e == null || e ===
|
|
52
|
+
return e == null || e.length === 0;
|
|
55
53
|
case "notNull":
|
|
56
|
-
return e != null && e
|
|
54
|
+
return e != null && e.length > 0;
|
|
57
55
|
default:
|
|
58
56
|
return !0;
|
|
59
57
|
}
|
|
60
58
|
}
|
|
61
|
-
function
|
|
62
|
-
if (!e.field || t && ["
|
|
59
|
+
function m(e, t = !1) {
|
|
60
|
+
if (!e.field || t && ["setValue"].includes(e.trigger ?? ""))
|
|
63
61
|
return;
|
|
64
62
|
const n = a.find(e.field);
|
|
65
63
|
switch (e.trigger) {
|
|
@@ -95,14 +93,14 @@ function v(s = null) {
|
|
|
95
93
|
o = e;
|
|
96
94
|
}
|
|
97
95
|
return {
|
|
98
|
-
formData:
|
|
96
|
+
formData: l,
|
|
99
97
|
setLogicRules: h
|
|
100
98
|
};
|
|
101
99
|
}
|
|
102
100
|
const T = {
|
|
103
101
|
class: "form-main",
|
|
104
102
|
style: { height: "100%" }
|
|
105
|
-
}, J = /* @__PURE__ */
|
|
103
|
+
}, J = /* @__PURE__ */ j({
|
|
106
104
|
__name: "form",
|
|
107
105
|
props: {
|
|
108
106
|
componentSchema: {
|
|
@@ -111,15 +109,15 @@ const T = {
|
|
|
111
109
|
default: () => ({})
|
|
112
110
|
}
|
|
113
111
|
},
|
|
114
|
-
setup(s, { expose:
|
|
115
|
-
const a = s, o =
|
|
116
|
-
|
|
117
|
-
|
|
112
|
+
setup(s, { expose: l }) {
|
|
113
|
+
const a = s, o = w(null), i = C("forms", {}), { formData: f, setLogicRules: d } = v(e);
|
|
114
|
+
L("formData", f), D(() => a.componentSchema.componentProps.logicRules, (r) => {
|
|
115
|
+
d(r);
|
|
118
116
|
}, {
|
|
119
117
|
deep: !0,
|
|
120
118
|
immediate: !0
|
|
121
119
|
});
|
|
122
|
-
function
|
|
120
|
+
function m() {
|
|
123
121
|
return f;
|
|
124
122
|
}
|
|
125
123
|
function h() {
|
|
@@ -133,43 +131,43 @@ const T = {
|
|
|
133
131
|
function t(r) {
|
|
134
132
|
Object.assign(f, r);
|
|
135
133
|
}
|
|
136
|
-
|
|
137
|
-
var r,
|
|
138
|
-
if (((r = a.componentSchema) == null ? void 0 : r.type) === "form" &&
|
|
139
|
-
const x = ((
|
|
140
|
-
return o.value.validate = h,
|
|
134
|
+
E(async () => {
|
|
135
|
+
var r, c, u, b;
|
|
136
|
+
if (((r = a.componentSchema) == null ? void 0 : r.type) === "form" && i.value && o.value) {
|
|
137
|
+
const x = ((u = (c = a.componentSchema) == null ? void 0 : c.componentProps) == null ? void 0 : u.name) ?? ((b = a.componentSchema) == null ? void 0 : b.name) ?? "default";
|
|
138
|
+
return o.value.validate = h, i.value[x] = o.value, o.value.getData = m, o.value.setData = t, !1;
|
|
141
139
|
}
|
|
142
140
|
});
|
|
143
141
|
const n = g(() => {
|
|
144
142
|
const r = a.componentSchema.componentProps;
|
|
145
|
-
let
|
|
146
|
-
return r.labelLayout === "fixed" && (
|
|
143
|
+
let c = r.labelCol, u = r.wrapperCol;
|
|
144
|
+
return r.labelLayout === "fixed" && (c = { flex: `${typeof r.labelWidth == "number" ? r.labelWidth + "px" : r.labelWidth}` }, u = { flex: 1 }), {
|
|
147
145
|
...r,
|
|
148
|
-
labelCol:
|
|
149
|
-
wrapperCol:
|
|
146
|
+
labelCol: c,
|
|
147
|
+
wrapperCol: u
|
|
150
148
|
};
|
|
151
149
|
});
|
|
152
|
-
function
|
|
150
|
+
function p(r) {
|
|
153
151
|
console.log(r);
|
|
154
152
|
}
|
|
155
153
|
const _ = g(() => a.componentSchema.children ?? []);
|
|
156
|
-
return
|
|
154
|
+
return l({
|
|
157
155
|
form: o,
|
|
158
|
-
getData:
|
|
156
|
+
getData: m,
|
|
159
157
|
setData: t,
|
|
160
158
|
validate: h
|
|
161
|
-
}), (r,
|
|
159
|
+
}), (r, c) => (y(), k("div", T, [
|
|
162
160
|
O(A(B), W({
|
|
163
161
|
ref_key: "form",
|
|
164
162
|
ref: o,
|
|
165
163
|
model: A(f)
|
|
166
164
|
}, n.value, {
|
|
167
165
|
style: { height: "100%" },
|
|
168
|
-
onFinish:
|
|
166
|
+
onFinish: p
|
|
169
167
|
}), {
|
|
170
168
|
default: M(() => [
|
|
171
169
|
S(r.$slots, "edit-node", {}, () => [
|
|
172
|
-
(y(!0), k(R, null, $(_.value, (
|
|
170
|
+
(y(!0), k(R, null, $(_.value, (u) => S(r.$slots, "node", { componentSchema: u })), 256))
|
|
173
171
|
])
|
|
174
172
|
]),
|
|
175
173
|
_: 3
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),S=require("ant-design-vue"),b=require("./revoke-phWAbVpJ.cjs");function A(a=null){const c=n.reactive({}),u=n.inject("pageManager");let s=[],d={};n.watch(()=>c,e=>{n.nextTick(()=>{for(const t in e)e[t]!==d[t]&&(s==null||s.forEach(o=>{o.condition.conditions.map(p=>p.field).includes(t)&&f(o.condition)&&o.actions.forEach(p=>{h(p)})}));d=b.deepClone(e)})},{deep:!0});function f(e){return e.operator==="and"?e.conditions.every(t=>{if(!t.field)return!0;const o=c[t.field];return m(o,t)}):e.operator==="or"?e.conditions.some(t=>{if(!t.field)return!0;const o=c[t.field];return m(o,t)}):!0}function m(e,t){if(!t.value)return!1;switch(t.operator){case"eq":return typeof e=="object"?b.deepEqual(e,t.value):e===t.value;case"neq":return typeof e=="object"?!b.deepEqual(e,t.value):e!==t.value;case"gt":return(typeof e=="number"||typeof e=="string")&&e>t.value;case"gte":return(typeof e=="number"||typeof e=="string")&&e>=t.value;case"lt":return(typeof e=="number"||typeof e=="string")&&e<t.value;case"lte":return(typeof e=="number"||typeof e=="string")&&e<=t.value;case"in":return t.value.includes(e);case"nin":return!t.value.includes(e);case"null":return e==null||e.length===0;case"notNull":return e!=null&&e.length>0;default:return!0}}function h(e,t=!1){if(!e.field||t&&["setValue"].includes(e.trigger??""))return;const o=u.find(e.field);switch(e.trigger){case"hide":o.setAttr("hidden",!t);break;case"show":o.setAttr("hidden",t);break;case"required":o.setAttr("required",!t),a==null||a();break;case"notRequired":o.setAttr("required",t),a==null||a();break;case"readonly":o.setAttr("readOnly",!t);break;case"readWrite":o.setAttr("readOnly",t);break;case"disabled":o.setAttr("disabled",!t);break;case"enabled":o.setAttr("disabled",t);break;case"setValue":o.setValue(e.value)}}function g(e){s=e}return{formData:c,setLogicRules:g}}const D={class:"form-main",style:{height:"100%"}},C=n.defineComponent({__name:"form",props:{componentSchema:{type:Object,require:!0,default:()=>({})}},setup(a,{expose:c}){const u=a,s=n.ref(null),d=n.inject("forms",{}),{formData:f,setLogicRules:m}=A(e);n.provide("formData",f),n.watch(()=>u.componentSchema.componentProps.logicRules,r=>{m(r)},{deep:!0,immediate:!0});function h(){return f}function g(){var r;return(r=s.value)==null?void 0:r.validateFields()}function e(){var r;return(r=s.value)==null?void 0:r.clearValidate()}function t(r){Object.assign(f,r)}n.onMounted(async()=>{var r,i,l,y;if(((r=u.componentSchema)==null?void 0:r.type)==="form"&&d.value&&s.value){const q=((l=(i=u.componentSchema)==null?void 0:i.componentProps)==null?void 0:l.name)??((y=u.componentSchema)==null?void 0:y.name)??"default";return s.value.validate=g,d.value[q]=s.value,s.value.getData=h,s.value.setData=t,!1}});const o=n.computed(()=>{const r=u.componentSchema.componentProps;let i=r.labelCol,l=r.wrapperCol;return r.labelLayout==="fixed"&&(i={flex:`${typeof r.labelWidth=="number"?r.labelWidth+"px":r.labelWidth}`},l={flex:1}),{...r,labelCol:i,wrapperCol:l}});function p(r){console.log(r)}const k=n.computed(()=>u.componentSchema.children??[]);return c({form:s,getData:h,setData:t,validate:g}),(r,i)=>(n.openBlock(),n.createElementBlock("div",D,[n.createVNode(n.unref(S.Form),n.mergeProps({ref_key:"form",ref:s,model:n.unref(f)},o.value,{style:{height:"100%"},onFinish:p}),{default:n.withCtx(()=>[n.renderSlot(r.$slots,"edit-node",{},()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(k.value,l=>n.renderSlot(r.$slots,"node",{componentSchema:l})),256))])]),_:3},16,["model"])]))}});exports.default=C;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("ant-design-vue"),_=require("./index-C_zOeNxV.cjs"),x=require("./revoke-phWAbVpJ.cjs"),w=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),g={class:"mb-2 w-full"},b={class:"flex items-center w-340px"},C=e.createElementVNode("span",{class:"iconfont epic-icon-shanchu1"},null,-1),B=[C],E=e.defineComponent({__name:"actionItem",props:{modelValue:{},fieldOptions:{},triggerOptions:{}},emits:["update:modelValue","delete"],setup(p,{emit:h}){const v=e.inject("designer"),i=h,u=p,t=_.useVModel(u,"modelValue",i),V=e.computed(()=>v.state.checkedNode),a=e.computed(()=>x.findSchemas([V.value],l=>l.field&&l.field===t.value.field,!0));function r(){i("delete")}return(f,l)=>(e.openBlock(),e.createElementBlock("div",g,[e.createVNode(e.unref(c.Space),null,{default:e.withCtx(()=>[e.createVNode(e.unref(c.Select),{class:"w-100px",value:e.unref(t).trigger,"onUpdate:value":l[0]||(l[0]=o=>e.unref(t).trigger=o),options:u.triggerOptions,placeholder:"选择动作"},null,8,["value","options"]),e.createElementVNode("div",b,[e.createVNode(e.unref(c.Select),{class:"flex-1",value:e.unref(t).field,"onUpdate:value":l[1]||(l[1]=o=>e.unref(t).field=o),options:u.fieldOptions,placeholder:"选择字段"},null,8,["value","options"]),e.unref(t).trigger==="setValue"&&e.unref(t).field?(e.openBlock(),e.createBlock(e.unref(_._sfc_main),{key:0,class:"w-240px ml-2",modelValue:e.unref(t).value,"onUpdate:modelValue":l[2]||(l[2]=o=>e.unref(t).value=o),"component-schema":{...a.value,noFormItem:!0}},null,8,["modelValue","component-schema"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"w-28px h-28px cursor-pointer bg-red-100 text-red-400 hover:bg-red-400 border-solid border-1px border-red-300 rounded-full flex justify-center items-center hover:text-white",onClick:r},B)]),_:1})]))}}),y=e.createElementVNode("span",{class:"iconfont epic-icon-tianjia"},null,-1),O=e.defineComponent({__name:"actionEdit",props:{modelValue:{}},emits:["update:modelValue"],setup(p,{emit:h}){const v=e.inject("designer"),i=e.computed(()=>v.state.checkedNode),u=e.computed(()=>{var o;return x.getFormSchemas([i.value],(o=i.value)==null?void 0:o.componentProps.name).map(m=>({label:m.label,value:m.id})).reverse()}),t=[{label:"隐藏",value:"hide"},{label:"显示",value:"show"},{label:"必填",value:"required"},{label:"非必填",value:"notRequired"},{label:"只读",value:"readonly"},{label:"可写",value:"readWrite"},{label:"禁用",value:"disabled"},{label:"启用",value:"enabled"},{label:"设置值",value:"setValue"}],V=p,a=h,r=_.useVModel(V,"modelValue",a);function f(o){r.value.push({trigger:o})}function l(o){r.value.splice(o,1)}return(o,m)=>(e.openBlock(),e.createElementBlock("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(d,n)=>(e.openBlock(),e.createBlock(E,{modelValue:e.unref(r)[n],"onUpdate:modelValue":s=>e.unref(r)[n]=s,key:n,fieldOptions:u.value,triggerOptions:t,onDelete:s=>l(n)},null,8,["modelValue","onUpdate:modelValue","fieldOptions","onDelete"]))),128)),e.createVNode(e.unref(c.Dropdown),null,{overlay:e.withCtx(()=>[e.createVNode(e.unref(c.Menu),null,{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(t,d=>e.createVNode(e.unref(c.MenuItem),{onClick:n=>f(d.value),key:d.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.label),1)]),_:2},1032,["onClick"])),64))]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("span",{class:"ant-dropdown-link cursor-pointer text-blue-500",onClick:m[0]||(m[0]=e.withModifiers(()=>{},["prevent"]))},[y,e.createTextVNode(" 添加动作 ")])]),_:1})]))}}),S={class:"mb-4"},$=e.createElementVNode("span",{class:"iconfont epic-icon-shanchu1"},null,-1),D=[$],U=e.defineComponent({__name:"conditionItem",props:{modelValue:{},fieldOptions:{}},emits:["update:modelValue","delete"],setup(p,{emit:h}){const v=e.inject("designer"),i=h,u=p,t=_.useVModel(u,"modelValue",i),V=e.computed(()=>v.state.checkedNode),a=e.computed(()=>x.findSchemas([V.value],s=>s.field===t.value.field,!0)),r=[{label:"等于",value:"eq"},{label:"不等于",value:"neq"}],f=[{label:"大于",value:"gt"},{label:"大于等于",value:"gte"},{label:"小于",value:"lt"},{label:"小于等于",value:"lte"}],l=[{label:"包含",value:"in"},{label:"不包含",value:"nin"}],o=[...r.map(n=>n.value),...f.map(n=>n.value),...l.map(n=>n.value)],m=e.computed(()=>{const n=[{label:"为空",value:"null"},{label:"非空",value:"notNull"}];return["input","textarea","password","select"].includes(a.value.type)&&n.unshift(...l),["number"].includes(a.value.type)&&n.unshift(...f),["input","number","textarea","password","radio","checkbox","select","slider","time","date","cascader","switch","color-picker","JSelectDept","JSelectMultiple","JDictSelectTag","classifiedDictionary","selectUser"].includes(a.value.type)&&n.unshift(...r),n});e.watch(()=>m.value,n=>{t.value.operator=n[0].value});function d(){i("delete")}return(n,s)=>(e.openBlock(),e.createElementBlock("div",S,[e.createVNode(e.unref(c.Space),null,{default:e.withCtx(()=>[e.createVNode(e.unref(c.Select),{class:"w-100px",value:e.unref(t).field,"onUpdate:value":s[0]||(s[0]=k=>e.unref(t).field=k),options:u.fieldOptions,placeholder:"选择字段"},null,8,["value","options"]),e.unref(t).field?(e.openBlock(),e.createBlock(e.unref(c.Select),{key:0,value:e.unref(t).operator,"onUpdate:value":s[1]||(s[1]=k=>e.unref(t).operator=k),class:"w-90px",options:m.value,placeholder:"选择判断条件"},null,8,["value","options"])):e.createCommentVNode("",!0),e.unref(t).field&&e.unref(t).operator&&o.includes(e.unref(t).operator)?(e.openBlock(),e.createBlock(e.unref(_._sfc_main),{key:1,modelValue:e.unref(t).value,"onUpdate:modelValue":s[2]||(s[2]=k=>e.unref(t).value=k),"component-schema":{...a.value,noFormItem:!0}},null,8,["modelValue","component-schema"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"w-28px h-28px cursor-pointer bg-red-100 text-red-400 hover:bg-red-400 border-solid border-1px border-red-300 rounded-full flex justify-center items-center hover:text-white",onClick:d},D)]),_:1})]))}}),N=p=>(e.pushScopeId("data-v-327c8865"),p=p(),e.popScopeId(),p),j={class:"flex"},T={key:0,class:"logical-operator"},q=N(()=>e.createElementVNode("div",{class:"logical-operator__line"},null,-1)),I={class:"flex-1"},M=N(()=>e.createElementVNode("span",{class:"iconfont epic-icon-tianjia mr-1"},null,-1)),F=e.defineComponent({__name:"conditionEdit",props:{modelValue:{}},emits:["update:modelValue"],setup(p,{emit:h}){const v=e.inject("designer"),i=e.computed(()=>v.state.checkedNode),u=e.computed(()=>{var l;return x.getFormSchemas([i.value],(l=i.value)==null?void 0:l.componentProps.name).map(o=>({label:o.label,value:o.field})).reverse()}),t=p,V=h,a=_.useVModel(t,"modelValue",V);function r(){a.value.conditions.push({})}function f(l){a.value.conditions.splice(l,1)}return(l,o)=>(e.openBlock(),e.createElementBlock("div",j,[e.unref(a).conditions.length?(e.openBlock(),e.createElementBlock("div",T,[q,e.createVNode(e.unref(c.Switch),{checked:e.unref(a).operator,"onUpdate:checked":o[0]||(o[0]=m=>e.unref(a).operator=m),"checked-children":"且",checkedValue:"and",unCheckedValue:"or","un-checked-children":"或"},null,8,["checked"])])):e.createCommentVNode("",!0),e.createElementVNode("div",I,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a).conditions,(m,d)=>(e.openBlock(),e.createBlock(U,{modelValue:e.unref(a).conditions[d],"onUpdate:modelValue":n=>e.unref(a).conditions[d]=n,key:d,fieldOptions:u.value,onDelete:n=>f(d)},null,8,["modelValue","onUpdate:modelValue","fieldOptions","onDelete"]))),128)),e.createVNode(e.unref(c.Button),{class:"w-100%",type:"dashed",onClick:r},{icon:e.withCtx(()=>[M]),default:e.withCtx(()=>[e.createTextVNode(" 添加条件 ")]),_:1})])]))}}),L=w._export_sfc(F,[["__scopeId","data-v-327c8865"]]),R={class:"epic-drawer-container h-full"},A={class:"h-full overflow-auto"},J=e.createElementVNode("span",{class:"iconfont epic-icon-tianjia mr-1"},null,-1),P=["onClick"],z=e.createElementVNode("span",{class:"iconfont epic-icon-tianjia"},null,-1),H=[z],W={class:"epic-modal-footer"},G=e.defineComponent({__name:"drawer",emits:["ok"],setup(p,{expose:h,emit:v}){const i=v,u=e.ref(!1),t=e.ref([]);function V(o=[]){t.value=o,u.value=!0}function a(){t.value.push({actions:[],condition:{conditions:[],operator:"and"}})}function r(o){t.value.splice(o,1)}function f(){u.value=!1}function l(){i("ok",t.value),f()}return h({showDrawer:V}),(o,m)=>(e.openBlock(),e.createBlock(e.unref(c.Drawer),{class:"epic-drawer-form-logic",width:"550px",title:"逻辑规则",open:u.value,"onUpdate:open":m[0]||(m[0]=d=>u.value=d)},{default:e.withCtx(()=>[e.createElementVNode("div",R,[e.createElementVNode("div",A,[e.createVNode(e.unref(c.Button),{class:"w-full",type:"primary",onClick:a},{icon:e.withCtx(()=>[J]),default:e.withCtx(()=>[e.createTextVNode(" 添加逻辑规则 ")]),_:1}),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,(d,n)=>(e.openBlock(),e.createBlock(e.unref(c.Card),{key:n,class:"mt-2",bodyStyle:{padding:"16px"}},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"absolute top-8px right-8px cursor-pointer rounded-full w-24px h-24px text-16px flex items-center justify-center hover:bg-gray-100 rotate-45",onClick:s=>r(n)},H,8,P),e.createVNode(e.unref(c.Divider),null,{default:e.withCtx(()=>[e.createTextVNode("当满足以下条件时")]),_:1}),e.createVNode(L,{modelValue:d.condition,"onUpdate:modelValue":s=>d.condition=s},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(e.unref(c.Divider),null,{default:e.withCtx(()=>[e.createTextVNode("则执行")]),_:1}),e.createVNode(O,{modelValue:d.actions,"onUpdate:modelValue":s=>d.actions=s},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024))),128))])]),e.createElementVNode("div",W,[e.createVNode(e.unref(c.Space),{align:"end"},{default:e.withCtx(()=>[e.createVNode(e.unref(c.Button),{onClick:f},{default:e.withCtx(()=>[e.createTextVNode("关闭")]),_:1}),e.createVNode(e.unref(c.Button),{type:"primary",onClick:l},{default:e.withCtx(()=>[e.createTextVNode(" 确定 ")]),_:1})]),_:1})])]),_:1},8,["open"]))}}),K=e.createElementVNode("span",{class:"iconfont epic-icon-shezhi mr-1"},null,-1),Q=e.defineComponent({__name:"formLogic",props:{modelValue:{}},emits:["update:modelValue"],setup(p,{emit:h}){const v=e.inject("pageSchema"),i=p,u=e.ref(),t=h;function V(){var r;(r=u.value)==null||r.showDrawer(i.modelValue)}function a(r){t("update:modelValue",r),v.logicRules=r}return(r,f)=>{var l;return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(c.Badge),{count:((l=i.modelValue)==null?void 0:l.length)??0},{default:e.withCtx(()=>[e.createVNode(e.unref(c.Button),{onClick:V},{icon:e.withCtx(()=>[K]),default:e.withCtx(()=>[e.createTextVNode(" 配置")]),_:1})]),_:1},8,["count"]),e.createVNode(G,{onOk:a,ref_key:"drawerRef",ref:u},null,512)])}}});exports.default=Q;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("ant-design-vue"),_=require("./index-C_zOeNxV.cjs"),x=require("./revoke-phWAbVpJ.cjs"),w=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),g={class:"mb-2 w-full"},b={class:"flex items-center w-340px"},C=e.createElementVNode("span",{class:"iconfont epic-icon-shanchu1"},null,-1),B=[C],E=e.defineComponent({__name:"actionItem",props:{modelValue:{},fieldOptions:{},triggerOptions:{}},emits:["update:modelValue","delete"],setup(p,{emit:h}){const v=e.inject("designer"),i=h,u=p,t=_.useVModel(u,"modelValue",i),V=e.computed(()=>v.state.checkedNode),a=e.computed(()=>x.findSchemas([V.value],l=>l.field&&l.field===t.value.field,!0));function r(){i("delete")}return(f,l)=>(e.openBlock(),e.createElementBlock("div",g,[e.createVNode(e.unref(c.Space),null,{default:e.withCtx(()=>[e.createVNode(e.unref(c.Select),{class:"w-100px",value:e.unref(t).trigger,"onUpdate:value":l[0]||(l[0]=o=>e.unref(t).trigger=o),options:u.triggerOptions,placeholder:"选择动作"},null,8,["value","options"]),e.createElementVNode("div",b,[e.createVNode(e.unref(c.Select),{class:"flex-1",value:e.unref(t).field,"onUpdate:value":l[1]||(l[1]=o=>e.unref(t).field=o),options:u.fieldOptions,placeholder:"选择字段"},null,8,["value","options"]),e.unref(t).trigger==="setValue"&&e.unref(t).field?(e.openBlock(),e.createBlock(e.unref(_._sfc_main),{key:0,class:"w-240px ml-2",modelValue:e.unref(t).value,"onUpdate:modelValue":l[2]||(l[2]=o=>e.unref(t).value=o),"component-schema":{...a.value,noFormItem:!0}},null,8,["modelValue","component-schema"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"w-28px h-28px cursor-pointer bg-red-100 text-red-400 hover:bg-red-400 border-solid border-1px border-red-300 rounded-full flex justify-center items-center hover:text-white",onClick:r},B)]),_:1})]))}}),y=e.createElementVNode("span",{class:"iconfont epic-icon-tianjia"},null,-1),O=e.defineComponent({__name:"actionEdit",props:{modelValue:{}},emits:["update:modelValue"],setup(p,{emit:h}){const v=e.inject("designer"),i=e.computed(()=>v.state.checkedNode),u=e.computed(()=>{var o;return x.getFormSchemas([i.value],(o=i.value)==null?void 0:o.componentProps.name).map(m=>({label:m.label,value:m.id})).reverse()}),t=[{label:"隐藏",value:"hide"},{label:"显示",value:"show"},{label:"必填",value:"required"},{label:"非必填",value:"notRequired"},{label:"只读",value:"readonly"},{label:"可写",value:"readWrite"},{label:"禁用",value:"disabled"},{label:"启用",value:"enabled"},{label:"设置值",value:"setValue"}],V=p,a=h,r=_.useVModel(V,"modelValue",a);function f(o){r.value.push({trigger:o})}function l(o){r.value.splice(o,1)}return(o,m)=>(e.openBlock(),e.createElementBlock("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(r),(d,n)=>(e.openBlock(),e.createBlock(E,{modelValue:e.unref(r)[n],"onUpdate:modelValue":s=>e.unref(r)[n]=s,key:n,fieldOptions:u.value,triggerOptions:t,onDelete:s=>l(n)},null,8,["modelValue","onUpdate:modelValue","fieldOptions","onDelete"]))),128)),e.createVNode(e.unref(c.Dropdown),null,{overlay:e.withCtx(()=>[e.createVNode(e.unref(c.Menu),null,{default:e.withCtx(()=>[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(t,d=>e.createVNode(e.unref(c.MenuItem),{onClick:n=>f(d.value),key:d.value},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(d.label),1)]),_:2},1032,["onClick"])),64))]),_:1})]),default:e.withCtx(()=>[e.createElementVNode("span",{class:"ant-dropdown-link cursor-pointer text-blue-500",onClick:m[0]||(m[0]=e.withModifiers(()=>{},["prevent"]))},[y,e.createTextVNode(" 添加动作 ")])]),_:1})]))}}),S={class:"mb-4"},$=e.createElementVNode("span",{class:"iconfont epic-icon-shanchu1"},null,-1),D=[$],U=e.defineComponent({__name:"conditionItem",props:{modelValue:{},fieldOptions:{}},emits:["update:modelValue","delete"],setup(p,{emit:h}){const v=e.inject("designer"),i=h,u=p,t=_.useVModel(u,"modelValue",i),V=e.computed(()=>v.state.checkedNode),a=e.computed(()=>x.findSchemas([V.value],s=>s.field===t.value.field,!0)),r=[{label:"等于",value:"eq"},{label:"不等于",value:"neq"}],f=[{label:"大于",value:"gt"},{label:"大于等于",value:"gte"},{label:"小于",value:"lt"},{label:"小于等于",value:"lte"}],l=[{label:"包含",value:"in"},{label:"不包含",value:"nin"}],o=[...r.map(n=>n.value),...f.map(n=>n.value),...l.map(n=>n.value)],m=e.computed(()=>{const n=[{label:"为空",value:"null"},{label:"非空",value:"notNull"}];return["input","textarea","password","select"].includes(a.value.type)&&n.unshift(...l),["number"].includes(a.value.type)&&n.unshift(...f),["input","number","textarea","password","radio","checkbox","select","slider","time","date","cascader","switch","color-picker","JSelectDept","JSelectMultiple","JDictSelectTag","classifiedDictionary","selectUser"].includes(a.value.type)&&n.unshift(...r),n});e.watch(()=>m.value,n=>{t.value.operator=n[0].value});function d(){i("delete")}return(n,s)=>(e.openBlock(),e.createElementBlock("div",S,[e.createVNode(e.unref(c.Space),null,{default:e.withCtx(()=>[e.createVNode(e.unref(c.Select),{class:"w-100px",value:e.unref(t).field,"onUpdate:value":s[0]||(s[0]=k=>e.unref(t).field=k),options:u.fieldOptions,placeholder:"选择字段"},null,8,["value","options"]),e.unref(t).field?(e.openBlock(),e.createBlock(e.unref(c.Select),{key:0,value:e.unref(t).operator,"onUpdate:value":s[1]||(s[1]=k=>e.unref(t).operator=k),class:"w-90px",options:m.value,placeholder:"选择判断条件"},null,8,["value","options"])):e.createCommentVNode("",!0),e.unref(t).field&&e.unref(t).operator&&o.includes(e.unref(t).operator)?(e.openBlock(),e.createBlock(e.unref(_._sfc_main),{key:1,modelValue:e.unref(t).value,"onUpdate:modelValue":s[2]||(s[2]=k=>e.unref(t).value=k),"component-schema":{...a.value,noFormItem:!0}},null,8,["modelValue","component-schema"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"w-28px h-28px cursor-pointer bg-red-100 text-red-400 hover:bg-red-400 border-solid border-1px border-red-300 rounded-full flex justify-center items-center hover:text-white",onClick:d},D)]),_:1})]))}}),N=p=>(e.pushScopeId("data-v-327c8865"),p=p(),e.popScopeId(),p),j={class:"flex"},T={key:0,class:"logical-operator"},q=N(()=>e.createElementVNode("div",{class:"logical-operator__line"},null,-1)),I={class:"flex-1"},M=N(()=>e.createElementVNode("span",{class:"iconfont epic-icon-tianjia mr-1"},null,-1)),F=e.defineComponent({__name:"conditionEdit",props:{modelValue:{}},emits:["update:modelValue"],setup(p,{emit:h}){const v=e.inject("designer"),i=e.computed(()=>v.state.checkedNode),u=e.computed(()=>{var l;return x.getFormSchemas([i.value],(l=i.value)==null?void 0:l.componentProps.name).map(o=>({label:o.label,value:o.field})).reverse()}),t=p,V=h,a=_.useVModel(t,"modelValue",V);function r(){a.value.conditions.push({})}function f(l){a.value.conditions.splice(l,1)}return(l,o)=>(e.openBlock(),e.createElementBlock("div",j,[e.unref(a).conditions.length?(e.openBlock(),e.createElementBlock("div",T,[q,e.createVNode(e.unref(c.Switch),{checked:e.unref(a).operator,"onUpdate:checked":o[0]||(o[0]=m=>e.unref(a).operator=m),"checked-children":"且",checkedValue:"and",unCheckedValue:"or","un-checked-children":"或"},null,8,["checked"])])):e.createCommentVNode("",!0),e.createElementVNode("div",I,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a).conditions,(m,d)=>(e.openBlock(),e.createBlock(U,{modelValue:e.unref(a).conditions[d],"onUpdate:modelValue":n=>e.unref(a).conditions[d]=n,key:d,fieldOptions:u.value,onDelete:n=>f(d)},null,8,["modelValue","onUpdate:modelValue","fieldOptions","onDelete"]))),128)),e.createVNode(e.unref(c.Button),{class:"w-100%",type:"dashed",onClick:r},{icon:e.withCtx(()=>[M]),default:e.withCtx(()=>[e.createTextVNode(" 添加条件 ")]),_:1})])]))}}),L=w._export_sfc(F,[["__scopeId","data-v-327c8865"]]),R={class:"epic-drawer-container h-full"},A={class:"h-full flex flex-col"},J={class:"px-16px"},P=e.createElementVNode("span",{class:"iconfont epic-icon-tianjia mr-1"},null,-1),z={class:"mt-2 flex-1 overflow-auto px-16px"},H=["onClick"],W=e.createElementVNode("span",{class:"iconfont epic-icon-tianjia"},null,-1),G=[W],K={class:"epic-modal-footer"},Q=e.defineComponent({__name:"drawer",emits:["ok"],setup(p,{expose:h,emit:v}){const i=v,u=e.ref(!1),t=e.ref([]);function V(o=[]){t.value=o,u.value=!0}function a(){t.value.push({actions:[],condition:{conditions:[],operator:"and"}})}function r(o){t.value.splice(o,1)}function f(){u.value=!1}function l(){i("ok",t.value),f()}return h({showDrawer:V}),(o,m)=>(e.openBlock(),e.createBlock(e.unref(c.Drawer),{class:"epic-drawer-form-logic",width:"550px",title:"逻辑规则",open:u.value,"onUpdate:open":m[0]||(m[0]=d=>u.value=d)},{default:e.withCtx(()=>[e.createElementVNode("div",R,[e.createElementVNode("div",A,[e.createElementVNode("div",J,[e.createVNode(e.unref(c.Button),{class:"w-full",type:"primary",onClick:a},{icon:e.withCtx(()=>[P]),default:e.withCtx(()=>[e.createTextVNode(" 添加逻辑规则 ")]),_:1})]),e.createElementVNode("div",z,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.value,(d,n)=>(e.openBlock(),e.createBlock(e.unref(c.Card),{key:n,class:"mt-2",bodyStyle:{padding:"16px"}},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"absolute top-8px right-8px cursor-pointer rounded-full w-24px h-24px text-16px flex items-center justify-center hover:bg-gray-100 rotate-45",onClick:s=>r(n)},G,8,H),e.createVNode(e.unref(c.Divider),null,{default:e.withCtx(()=>[e.createTextVNode("当满足以下条件时")]),_:1}),e.createVNode(L,{modelValue:d.condition,"onUpdate:modelValue":s=>d.condition=s},null,8,["modelValue","onUpdate:modelValue"]),e.createVNode(e.unref(c.Divider),null,{default:e.withCtx(()=>[e.createTextVNode("则执行")]),_:1}),e.createVNode(O,{modelValue:d.actions,"onUpdate:modelValue":s=>d.actions=s},null,8,["modelValue","onUpdate:modelValue"])]),_:2},1024))),128))])])]),e.createElementVNode("div",K,[e.createVNode(e.unref(c.Space),{align:"end"},{default:e.withCtx(()=>[e.createVNode(e.unref(c.Button),{onClick:f},{default:e.withCtx(()=>[e.createTextVNode("关闭")]),_:1}),e.createVNode(e.unref(c.Button),{type:"primary",onClick:l},{default:e.withCtx(()=>[e.createTextVNode(" 确定 ")]),_:1})]),_:1})])]),_:1},8,["open"]))}}),X=e.createElementVNode("span",{class:"iconfont epic-icon-shezhi mr-1"},null,-1),Y=e.defineComponent({__name:"formLogic",props:{modelValue:{}},emits:["update:modelValue"],setup(p,{emit:h}){const v=e.inject("pageSchema"),i=p,u=e.ref(),t=h;function V(){var r;(r=u.value)==null||r.showDrawer(i.modelValue)}function a(r){t("update:modelValue",r),v.logicRules=r}return(r,f)=>{var l;return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(e.unref(c.Badge),{count:((l=i.modelValue)==null?void 0:l.length)??0},{default:e.withCtx(()=>[e.createVNode(e.unref(c.Button),{onClick:V},{icon:e.withCtx(()=>[X]),default:e.withCtx(()=>[e.createTextVNode(" 配置")]),_:1})]),_:1},8,["count"]),e.createVNode(Q,{onOk:a,ref_key:"drawerRef",ref:u},null,512)])}}});exports.default=Y;
|