@budibase/server 1.0.58-alpha.0 → 1.0.58-alpha.4
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/builder/assets/{index.820a4026.js → index.8093c1df.js} +1 -1
- package/builder/index.html +1 -1
- package/coverage/clover.xml +65 -65
- package/coverage/coverage-final.json +5 -5
- package/coverage/lcov-report/api/controllers/analytics.js.html +1 -1
- package/coverage/lcov-report/api/controllers/apikeys.js.html +1 -1
- package/coverage/lcov-report/api/controllers/application.js.html +1 -1
- package/coverage/lcov-report/api/controllers/auth.js.html +1 -1
- package/coverage/lcov-report/api/controllers/automation.js.html +1 -1
- package/coverage/lcov-report/api/controllers/backup.js.html +1 -1
- package/coverage/lcov-report/api/controllers/cloud.js.html +1 -1
- package/coverage/lcov-report/api/controllers/component.js.html +1 -1
- package/coverage/lcov-report/api/controllers/datasource.js.html +1 -1
- package/coverage/lcov-report/api/controllers/dev.js.html +1 -1
- package/coverage/lcov-report/api/controllers/index.html +1 -1
- package/coverage/lcov-report/api/controllers/integration.js.html +1 -1
- package/coverage/lcov-report/api/controllers/layout.js.html +1 -1
- package/coverage/lcov-report/api/controllers/metadata.js.html +1 -1
- package/coverage/lcov-report/api/controllers/migrations.js.html +1 -1
- package/coverage/lcov-report/api/controllers/permission.js.html +1 -1
- package/coverage/lcov-report/api/controllers/query/index.html +12 -12
- package/coverage/lcov-report/api/controllers/query/index.js.html +13 -13
- package/coverage/lcov-report/api/controllers/query/validation.js.html +20 -2
- package/coverage/lcov-report/api/controllers/role.js.html +1 -1
- package/coverage/lcov-report/api/controllers/routing.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/external.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/index.html +1 -1
- package/coverage/lcov-report/api/controllers/row/index.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/internal.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/staticFormula.js.html +1 -1
- package/coverage/lcov-report/api/controllers/row/utils.js.html +1 -1
- package/coverage/lcov-report/api/controllers/screen.js.html +1 -1
- package/coverage/lcov-report/api/controllers/script.js.html +1 -1
- package/coverage/lcov-report/api/controllers/table/bulkFormula.js.html +1 -1
- package/coverage/lcov-report/api/controllers/table/external.js.html +1 -1
- package/coverage/lcov-report/api/controllers/table/index.html +1 -1
- package/coverage/lcov-report/api/controllers/table/index.js.html +1 -1
- package/coverage/lcov-report/api/controllers/table/internal.js.html +1 -1
- package/coverage/lcov-report/api/controllers/table/utils.js.html +1 -1
- package/coverage/lcov-report/api/controllers/templates.js.html +1 -1
- package/coverage/lcov-report/api/controllers/user.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/exporters.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/index.html +1 -1
- package/coverage/lcov-report/api/controllers/view/index.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/utils.js.html +1 -1
- package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +1 -1
- package/coverage/lcov-report/api/controllers/webhook.js.html +1 -1
- package/coverage/lcov-report/api/index.html +1 -1
- package/coverage/lcov-report/api/index.js.html +1 -1
- package/coverage/lcov-report/api/routes/analytics.js.html +1 -1
- package/coverage/lcov-report/api/routes/apikeys.js.html +1 -1
- package/coverage/lcov-report/api/routes/application.js.html +1 -1
- package/coverage/lcov-report/api/routes/auth.js.html +1 -1
- package/coverage/lcov-report/api/routes/automation.js.html +1 -1
- package/coverage/lcov-report/api/routes/backup.js.html +1 -1
- package/coverage/lcov-report/api/routes/cloud.js.html +1 -1
- package/coverage/lcov-report/api/routes/component.js.html +1 -1
- package/coverage/lcov-report/api/routes/datasource.js.html +1 -1
- package/coverage/lcov-report/api/routes/deploy.js.html +1 -1
- package/coverage/lcov-report/api/routes/dev.js.html +1 -1
- package/coverage/lcov-report/api/routes/index.html +1 -1
- package/coverage/lcov-report/api/routes/index.js.html +1 -1
- package/coverage/lcov-report/api/routes/integration.js.html +1 -1
- package/coverage/lcov-report/api/routes/layout.js.html +1 -1
- package/coverage/lcov-report/api/routes/metadata.js.html +1 -1
- package/coverage/lcov-report/api/routes/migrations.js.html +1 -1
- package/coverage/lcov-report/api/routes/permission.js.html +1 -1
- package/coverage/lcov-report/api/routes/query.js.html +1 -1
- package/coverage/lcov-report/api/routes/role.js.html +1 -1
- package/coverage/lcov-report/api/routes/routing.js.html +1 -1
- package/coverage/lcov-report/api/routes/row.js.html +1 -1
- package/coverage/lcov-report/api/routes/screen.js.html +1 -1
- package/coverage/lcov-report/api/routes/script.js.html +1 -1
- package/coverage/lcov-report/api/routes/static.js.html +1 -1
- package/coverage/lcov-report/api/routes/table.js.html +1 -1
- package/coverage/lcov-report/api/routes/templates.js.html +1 -1
- package/coverage/lcov-report/api/routes/user.js.html +1 -1
- package/coverage/lcov-report/api/routes/view.js.html +1 -1
- package/coverage/lcov-report/api/routes/webhook.js.html +1 -1
- package/coverage/lcov-report/automations/actions.js.html +1 -1
- package/coverage/lcov-report/automations/automationUtils.js.html +1 -1
- package/coverage/lcov-report/automations/bullboard.js.html +1 -1
- package/coverage/lcov-report/automations/index.html +1 -1
- package/coverage/lcov-report/automations/index.js.html +1 -1
- package/coverage/lcov-report/automations/steps/bash.js.html +1 -1
- package/coverage/lcov-report/automations/steps/createRow.js.html +1 -1
- package/coverage/lcov-report/automations/steps/delay.js.html +1 -1
- package/coverage/lcov-report/automations/steps/deleteRow.js.html +1 -1
- package/coverage/lcov-report/automations/steps/discord.js.html +1 -1
- package/coverage/lcov-report/automations/steps/executeQuery.js.html +1 -1
- package/coverage/lcov-report/automations/steps/executeScript.js.html +1 -1
- package/coverage/lcov-report/automations/steps/filter.js.html +1 -1
- package/coverage/lcov-report/automations/steps/index.html +1 -1
- package/coverage/lcov-report/automations/steps/integromat.js.html +1 -1
- package/coverage/lcov-report/automations/steps/outgoingWebhook.js.html +1 -1
- package/coverage/lcov-report/automations/steps/queryRows.js.html +1 -1
- package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +1 -1
- package/coverage/lcov-report/automations/steps/serverLog.js.html +1 -1
- package/coverage/lcov-report/automations/steps/slack.js.html +1 -1
- package/coverage/lcov-report/automations/steps/updateRow.js.html +1 -1
- package/coverage/lcov-report/automations/steps/utils.js.html +1 -1
- package/coverage/lcov-report/automations/steps/zapier.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/app.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/cron.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/index.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/index.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/rowDeleted.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/rowSaved.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/rowUpdated.js.html +1 -1
- package/coverage/lcov-report/automations/triggerInfo/webhook.js.html +1 -1
- package/coverage/lcov-report/automations/triggers.js.html +1 -1
- package/coverage/lcov-report/automations/utils.js.html +1 -1
- package/coverage/lcov-report/constants/index.html +1 -1
- package/coverage/lcov-report/constants/index.js.html +1 -1
- package/coverage/lcov-report/constants/layouts.js.html +1 -1
- package/coverage/lcov-report/constants/screens.js.html +1 -1
- package/coverage/lcov-report/db/client.js.html +1 -1
- package/coverage/lcov-report/db/inMemoryView.js.html +1 -1
- package/coverage/lcov-report/db/index.html +1 -1
- package/coverage/lcov-report/db/index.js.html +1 -1
- package/coverage/lcov-report/db/linkedRows/LinkController.js.html +1 -1
- package/coverage/lcov-report/db/linkedRows/index.html +1 -1
- package/coverage/lcov-report/db/linkedRows/index.js.html +1 -1
- package/coverage/lcov-report/db/linkedRows/linkUtils.js.html +1 -1
- package/coverage/lcov-report/db/newid.js.html +1 -1
- package/coverage/lcov-report/db/utils.js.html +1 -1
- package/coverage/lcov-report/events/AutomationEmitter.js.html +1 -1
- package/coverage/lcov-report/events/index.html +1 -1
- package/coverage/lcov-report/events/index.js.html +1 -1
- package/coverage/lcov-report/events/utils.js.html +1 -1
- package/coverage/lcov-report/index.html +17 -17
- package/coverage/lcov-report/integrations/tests/TestConfiguration.js.html +1 -1
- package/coverage/lcov-report/integrations/tests/index.html +1 -1
- package/coverage/lcov-report/middleware/appInfo.js.html +1 -1
- package/coverage/lcov-report/middleware/authorized.js.html +1 -1
- package/coverage/lcov-report/middleware/builder.js.html +1 -1
- package/coverage/lcov-report/middleware/currentapp.js.html +1 -1
- package/coverage/lcov-report/middleware/index.html +15 -15
- package/coverage/lcov-report/middleware/joi-validator.js.html +11 -11
- package/coverage/lcov-report/middleware/resourceId.js.html +1 -1
- package/coverage/lcov-report/middleware/selfhost.js.html +1 -1
- package/coverage/lcov-report/middleware/usageQuota.js.html +1 -1
- package/coverage/lcov-report/middleware/utils.js.html +1 -1
- package/coverage/lcov-report/threads/automation.js.html +1 -1
- package/coverage/lcov-report/threads/index.html +1 -1
- package/coverage/lcov-report/threads/index.js.html +12 -12
- package/coverage/lcov-report/threads/query.js.html +39 -39
- package/coverage/lcov-report/threads/utils.js.html +1 -1
- package/coverage/lcov-report/utilities/bcrypt.js.html +1 -1
- package/coverage/lcov-report/utilities/budibaseDir.js.html +1 -1
- package/coverage/lcov-report/utilities/centralPath.js.html +1 -1
- package/coverage/lcov-report/utilities/csvParser.js.html +1 -1
- package/coverage/lcov-report/utilities/global.js.html +1 -1
- package/coverage/lcov-report/utilities/index.html +1 -1
- package/coverage/lcov-report/utilities/index.js.html +1 -1
- package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +1 -1
- package/coverage/lcov-report/utilities/queue/index.html +1 -1
- package/coverage/lcov-report/utilities/routing/index.html +1 -1
- package/coverage/lcov-report/utilities/routing/index.js.html +1 -1
- package/coverage/lcov-report/utilities/rowProcessor/index.html +1 -1
- package/coverage/lcov-report/utilities/rowProcessor/index.js.html +1 -1
- package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +1 -1
- package/coverage/lcov-report/utilities/scriptRunner.js.html +1 -1
- package/coverage/lcov-report/utilities/security.js.html +1 -1
- package/coverage/lcov-report/utilities/statusCodes.js.html +1 -1
- package/coverage/lcov-report/utilities/usageQuota/index.html +1 -1
- package/coverage/lcov-report/utilities/usageQuota/index.js.html +1 -1
- package/coverage/lcov-report/utilities/usageQuota/rows.js.html +1 -1
- package/coverage/lcov-report/utilities/usageQuota/usageQuoteReset.js.html +1 -1
- package/coverage/lcov-report/utilities/users.js.html +1 -1
- package/coverage/lcov-report/utilities/workerRequests.js.html +1 -1
- package/coverage/lcov.info +92 -92
- package/dist/api/controllers/query/validation.js +6 -0
- package/dist/api/controllers/row/ExternalRequest.js +2 -1
- package/dist/integrations/base/sql.js +6 -6
- package/dist/package.json +4 -4
- package/dist/tests/utilities/TestConfiguration.js +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -5
- package/src/api/controllers/query/validation.js +6 -0
- package/src/api/controllers/row/ExternalRequest.ts +1 -1
- package/src/api/routes/tests/query.spec.js +13 -4
- package/src/integrations/base/sql.ts +28 -40
- package/src/tests/utilities/TestConfiguration.js +1 -0
|
@@ -1303,7 +1303,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
1303
1303
|
This action cannot be undone.`)},m(o,l){v(o,e,l),v(o,n,l),D(n,i),D(n,a),v(o,s,l)},p(o,l){l&1&&r!==(r=o[0].name+"")&&Ge(i,r)},d(o){o&&E(e),o&&E(n),o&&E(s)}}}function D_e(t){let e,n,r,i,a,s;e=new mi({props:{$$slots:{control:[k_e],default:[A_e]},$$scope:{ctx:t}}});let o={okText:"Delete Automation",onOk:t[3],title:"Confirm Deletion",$$slots:{default:[I_e]},$$scope:{ctx:t}};r=new si({props:o}),t[4](r);let l={automation:t[0]};return a=new O_e({props:l}),t[5](a),{c(){C(e.$$.fragment),n=L(),C(r.$$.fragment),i=L(),C(a.$$.fragment)},m(u,c){O(e,u,c),v(u,n,c),O(r,u,c),v(u,i,c),O(a,u,c),s=!0},p(u,[c]){const f={};c&134&&(f.$$scope={dirty:c,ctx:u}),e.$set(f);const d={};c&129&&(d.$$scope={dirty:c,ctx:u}),r.$set(d);const p={};c&1&&(p.automation=u[0]),a.$set(p)},i(u){s||(m(e.$$.fragment,u),m(r.$$.fragment,u),m(a.$$.fragment,u),s=!0)},o(u){g(e.$$.fragment,u),g(r.$$.fragment,u),g(a.$$.fragment,u),s=!1},d(u){N(e,u),u&&E(n),t[4](null),N(r,u),u&&E(i),t[5](null),N(a,u)}}}function M_e(t,e,n){let r;_e(t,tn,c=>n(6,r=c));let{automation:i}=e,a,s;async function o(){try{await vn.actions.delete(i),Ne.success("Automation deleted successfully"),r("../automate")}catch{Ne.error("Error deleting automation")}}function l(c){ie[c?"unshift":"push"](()=>{a=c,n(1,a)})}function u(c){ie[c?"unshift":"push"](()=>{s=c,n(2,s)})}return t.$$set=c=>{"automation"in c&&n(0,i=c.automation)},[i,a,s,o,l,u]}class L_e extends fe{constructor(e){super();de(this,e,M_e,D_e,ce,{automation:0})}}function PR(t,e,n){const r=t.slice();return r[5]=e[n],r[7]=n,r}function P_e(t){let e,n,r;return e=new L_e({props:{automation:t[5]}}),{c(){C(e.$$.fragment),n=L()},m(i,a){O(e,i,a),v(i,n,a),r=!0},p(i,a){const s={};a&1&&(s.automation=i[5]),e.$set(s)},i(i){r||(m(e.$$.fragment,i),r=!0)},o(i){g(e.$$.fragment,i),r=!1},d(i){N(e,i),i&&E(n)}}}function UR(t){let e,n;function r(){return t[3](t[5])}return e=new Fs({props:{border:t[7]>0,icon:"ShareAndroid",text:t[5].name,selected:t[5]._id===t[1],$$slots:{default:[P_e]},$$scope:{ctx:t}}}),e.$on("click",r),{c(){C(e.$$.fragment)},m(i,a){O(e,i,a),n=!0},p(i,a){t=i;const s={};a&1&&(s.text=t[5].name),a&3&&(s.selected=t[5]._id===t[1]),a&257&&(s.$$scope={dirty:a,ctx:t}),e.$set(s)},i(i){n||(m(e.$$.fragment,i),n=!0)},o(i){g(e.$$.fragment,i),n=!1},d(i){N(e,i)}}}function U_e(t){let e,n,r=t[0].automations,i=[];for(let s=0;s<r.length;s+=1)i[s]=UR(PR(t,r,s));const a=s=>g(i[s],1,1,()=>{i[s]=null});return{c(){e=U("div");for(let s=0;s<i.length;s+=1)i[s].c();w(e,"class","automations-list svelte-g64vb")},m(s,o){v(s,e,o);for(let l=0;l<i.length;l+=1)i[l].m(e,null);n=!0},p(s,[o]){if(o&7){r=s[0].automations;let l;for(l=0;l<r.length;l+=1){const u=PR(s,r,l);i[l]?(i[l].p(u,o),m(i[l],1)):(i[l]=UR(u),i[l].c(),m(i[l],1),i[l].m(e,null))}for(oe(),l=r.length;l<i.length;l+=1)a(l);le()}},i(s){if(!n){for(let o=0;o<r.length;o+=1)m(i[o]);n=!0}},o(s){i=i.filter(Boolean);for(let o=0;o<i.length;o+=1)g(i[o]);n=!1},d(s){s&&E(e),Rt(i,s)}}}function B_e(t,e,n){let r,i,a;_e(t,tn,l=>n(4,i=l)),_e(t,vn,l=>n(0,a=l)),pn(async()=>{try{await vn.actions.fetch()}catch{Ne.error("Error getting automations list")}});function s(l){vn.actions.select(l),i(`./${l._id}`)}const o=l=>s(l);return t.$$.update=()=>{var l,u;t.$$.dirty&1&&n(1,r=(u=(l=a.selectedAutomation)==null?void 0:l.automation)==null?void 0:u._id)},[a,r,s,o]}class F_e extends fe{constructor(e){super();de(this,e,B_e,U_e,ce,{})}}function BR(t,e,n){const r=t.slice();return r[17]=e[n][0],r[18]=e[n][1],r}function q_e(t){let e;return{c(){e=x(`Please name your automation, then select a trigger. Every automation must
|
|
1304
1304
|
start with a trigger.`)},m(n,r){v(n,e,r)},d(n){n&&E(e)}}}function G_e(t){let e;return{c(){e=x("Triggers")},m(n,r){v(n,e,r)},d(n){n&&E(e)}}}function z_e(t){let e=t[18].name+"",n;return{c(){n=x(e)},m(r,i){v(r,n,i)},p(r,i){i&8&&e!==(e=r[18].name+"")&&Ge(n,e)},d(r){r&&E(n)}}}function FR(t){let e,n,r,i,a,s,o,l,u,c;r=new Ct({props:{name:t[18].icon}}),s=new rt({props:{size:"S",$$slots:{default:[z_e]},$$scope:{ctx:t}}});function f(){return t[13](t[18])}return{c(){e=U("div"),n=U("div"),C(r.$$.fragment),i=L(),a=U("span"),C(s.$$.fragment),o=L(),w(a,"class","icon-spacing svelte-d3iboa"),w(n,"class","item-body svelte-d3iboa"),w(e,"class","item svelte-d3iboa"),pe(e,"selected",t[2]===t[18].name)},m(d,p){v(d,e,p),D(e,n),O(r,n,null),D(n,i),D(n,a),O(s,a,null),D(e,o),l=!0,u||(c=Ye(e,"click",f),u=!0)},p(d,p){t=d;const _={};p&8&&(_.name=t[18].icon),r.$set(_);const h={};p&2097160&&(h.$$scope={dirty:p,ctx:t}),s.$set(h),p&12&&pe(e,"selected",t[2]===t[18].name)},i(d){l||(m(r.$$.fragment,d),m(s.$$.fragment,d),l=!0)},o(d){g(r.$$.fragment,d),g(s.$$.fragment,d),l=!1},d(d){d&&E(e),N(r),N(s),u=!1,c()}}}function Y_e(t){let e,n,r,i;e=new rt({props:{size:"S",$$slots:{default:[G_e]},$$scope:{ctx:t}}});let a=t[3],s=[];for(let l=0;l<a.length;l+=1)s[l]=FR(BR(t,a,l));const o=l=>g(s[l],1,1,()=>{s[l]=null});return{c(){C(e.$$.fragment),n=L(),r=U("div");for(let l=0;l<s.length;l+=1)s[l].c();w(r,"class","item-list svelte-d3iboa")},m(l,u){O(e,l,u),v(l,n,u),v(l,r,u);for(let c=0;c<s.length;c+=1)s[c].m(r,null);i=!0},p(l,u){const c={};if(u&2097152&&(c.$$scope={dirty:u,ctx:l}),e.$set(c),u&76){a=l[3];let f;for(f=0;f<a.length;f+=1){const d=BR(l,a,f);s[f]?(s[f].p(d,u),m(s[f],1)):(s[f]=FR(d),s[f].c(),m(s[f],1),s[f].m(r,null))}for(oe(),f=a.length;f<s.length;f+=1)o(f);le()}},i(l){if(!i){m(e.$$.fragment,l);for(let u=0;u<a.length;u+=1)m(s[u]);i=!0}},o(l){g(e.$$.fragment,l),s=s.filter(Boolean);for(let u=0;u<s.length;u+=1)g(s[u]);i=!1},d(l){N(e,l),l&&E(n),l&&E(r),Rt(s,l)}}}function j_e(t){let e,n,r,i,a,s,o,l,u,c;e=new dg({props:{header:"You must publish your app to activate your automations.",message:"To test your automation before publishing, you can use the 'Run Test' functionality on the next screen."}}),r=new rt({props:{size:"XS",$$slots:{default:[q_e]},$$scope:{ctx:t}}});function f(_){t[10](_)}function d(_){t[11](_)}let p={label:"Name"};return t[0]!==void 0&&(p.value=t[0]),t[4]!==void 0&&(p.error=t[4]),a=new ct({props:p}),ie.push(()=>he(a,"value",f)),ie.push(()=>he(a,"error",d)),a.$on("change",t[12]),u=new at({props:{noPadding:!0,$$slots:{default:[Y_e]},$$scope:{ctx:t}}}),{c(){C(e.$$.fragment),n=L(),C(r.$$.fragment),i=L(),C(a.$$.fragment),l=L(),C(u.$$.fragment)},m(_,h){O(e,_,h),v(_,n,h),O(r,_,h),v(_,i,h),O(a,_,h),v(_,l,h),O(u,_,h),c=!0},p(_,h){const b={};h&2097152&&(b.$$scope={dirty:h,ctx:_}),r.$set(b);const $={};!s&&h&1&&(s=!0,$.value=_[0],be(()=>s=!1)),!o&&h&16&&(o=!0,$.error=_[4],be(()=>o=!1)),a.$set($);const y={};h&2097164&&(y.$$scope={dirty:h,ctx:_}),u.$set(y)},i(_){c||(m(e.$$.fragment,_),m(r.$$.fragment,_),m(a.$$.fragment,_),m(u.$$.fragment,_),c=!0)},o(_){g(e.$$.fragment,_),g(r.$$.fragment,_),g(a.$$.fragment,_),g(u.$$.fragment,_),c=!1},d(_){N(e,_),_&&E(n),N(r,_),_&&E(i),N(a,_),_&&E(l),N(u,_)}}}function V_e(t){let e,n;return e=new Jt({props:{title:"Create Automation",confirmText:"Save",size:"M",onConfirm:t[5],disabled:!t[2]||!t[0],$$slots:{default:[j_e]},$$scope:{ctx:t}}}),{c(){C(e.$$.fragment)},m(r,i){O(e,r,i),n=!0},p(r,[i]){const a={};i&5&&(a.disabled=!r[2]||!r[0]),i&2097183&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){g(e.$$.fragment,r),n=!1},d(r){N(e,r)}}}function H_e(t,e,n){let r,i,a,s,o,l;_e(t,vn,R=>n(8,s=R)),_e(t,tn,R=>n(16,o=R)),_e(t,Xo,R=>n(9,l=R));let u,c,f=!1,d,{webhookModal:p}=e;async function _(){var R;try{await vn.actions.create({name:u,instanceId:r});const T=s.selectedAutomation.constructBlock("TRIGGER",d.stepId,d);vn.actions.addBlockToAutomation(T),d.stepId==="WEBHOOK"&&p.show,await vn.actions.save((R=s.selectedAutomation)==null?void 0:R.automation),Ne.success(`Automation ${u} created`),o(`./${s.selectedAutomation.automation._id}`),pr.captureEvent(Or.AUTOMATION.CREATED,{name:u})}catch{Ne.error("Error creating automation")}}const h=R=>{d=R,n(2,c=R.name)};function b(R){u=R,n(0,u)}function $(R){i=R,n(4,i),n(1,f),n(0,u)}const y=()=>n(1,f=!0),A=R=>h(R);return t.$$set=R=>{"webhookModal"in R&&n(7,p=R.webhookModal)},t.$$.update=()=>{t.$$.dirty&512&&(r=l._id),t.$$.dirty&3&&n(4,i=f&&!u?"Please specify a name for the automation.":null),t.$$.dirty&256&&n(3,a=Object.entries(s.blockDefinitions.TRIGGER))},[u,f,c,a,i,_,h,p,s,l,b,$,y,A]}class qR extends fe{constructor(e){super();de(this,e,H_e,V_e,ce,{webhookModal:7})}}function W_e(t){let e,n;return e=new qR({props:{webhookModal:t[1]}}),{c(){C(e.$$.fragment)},m(r,i){O(e,r,i),n=!0},p(r,i){const a={};i&2&&(a.webhookModal=r[1]),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){g(e.$$.fragment,r),n=!1},d(r){N(e,r)}}}function x_e(t){let e,n,r,i,a;n=new F_e({});let s={$$slots:{default:[W_e]},$$scope:{ctx:t}};return i=new zt({props:s}),t[2](i),{c(){e=U("div"),C(n.$$.fragment),r=L(),C(i.$$.fragment),w(e,"class","tab-content-padding svelte-1r2f9up")},m(o,l){v(o,e,l),O(n,e,null),D(e,r),O(i,e,null),a=!0},p(o,l){const u={};l&10&&(u.$$scope={dirty:l,ctx:o}),i.$set(u)},i(o){a||(m(n.$$.fragment,o),m(i.$$.fragment,o),a=!0)},o(o){g(n.$$.fragment,o),g(i.$$.fragment,o),a=!1},d(o){o&&E(e),N(n),t[2](null),N(i)}}}function Q_e(t){let e,n;return e=new Un({props:{title:"Automations",$$slots:{default:[x_e]},$$scope:{ctx:t}}}),{c(){C(e.$$.fragment)},m(r,i){O(e,r,i),n=!0},p(r,i){const a={};i&11&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){g(e.$$.fragment,r),n=!1},d(r){N(e,r)}}}function K_e(t){let e,n,r,i,a,s;return n=new $i({props:{selected:"Automations",$$slots:{default:[Q_e]},$$scope:{ctx:t}}}),a=new Ct({props:{hoverable:!0,name:"AddCircle"}}),a.$on("click",function(){Nt(t[0].show)&&t[0].show.apply(this,arguments)}),{c(){e=U("div"),C(n.$$.fragment),r=L(),i=U("div"),C(a.$$.fragment),w(i,"class","add-button svelte-1r2f9up"),w(i,"data-cy","new-screen"),w(e,"class","title svelte-1r2f9up")},m(o,l){v(o,e,l),O(n,e,null),D(e,r),D(e,i),O(a,i,null),s=!0},p(o,[l]){t=o;const u={};l&11&&(u.$$scope={dirty:l,ctx:t}),n.$set(u)},i(o){s||(m(n.$$.fragment,o),m(a.$$.fragment,o),s=!0)},o(o){g(n.$$.fragment,o),g(a.$$.fragment,o),s=!1},d(o){o&&E(e),N(n),N(a)}}}function X_e(t,e,n){let{modal:r}=e,{webhookModal:i}=e;function a(s){ie[s?"unshift":"push"](()=>{r=s,n(0,r)})}return t.$$set=s=>{"modal"in s&&n(0,r=s.modal),"webhookModal"in s&&n(1,i=s.webhookModal)},[r,i,a]}class Z_e extends fe{constructor(e){super();de(this,e,X_e,K_e,ce,{modal:0,webhookModal:1})}}function J_e(t){let e,n,r,i;return r=new at({props:{gap:"S",justifyItems:"center",$$slots:{default:[ime]},$$scope:{ctx:t}}}),{c(){e=U("div"),n=U("div"),C(r.$$.fragment),w(n,"class","main svelte-16gumu0"),w(e,"class","centered svelte-16gumu0")},m(a,s){v(a,e,s),D(e,n),O(r,n,null),i=!0},p(a,s){const o={};s&257&&(o.$$scope={dirty:s,ctx:a}),r.$set(o)},i(a){i||(m(r.$$.fragment,a),i=!0)},o(a){g(r.$$.fragment,a),i=!1},d(a){a&&E(e),N(r)}}}function eme(t){let e;const n=t[4].default,r=kt(n,t,t[8],null);return{c(){r&&r.c()},m(i,a){r&&r.m(i,a),e=!0},p(i,a){r&&r.p&&(!e||a&256)&&It(r,n,i,i[8],e?Mt(n,i[8],a,null):Dt(i[8]),null)},i(i){e||(m(r,i),e=!0)},o(i){g(r,i),e=!1},d(i){r&&r.d(i)}}}function tme(t){let e;return{c(){e=x("You have no automations")},m(n,r){v(n,e,r)},d(n){n&&E(e)}}}function nme(t){let e;return{c(){e=x("Let's fix that. Call the bots!")},m(n,r){v(n,e,r)},d(n){n&&E(e)}}}function rme(t){let e;return{c(){e=x("Create automation")},m(n,r){v(n,e,r)},d(n){n&&E(e)}}}function ime(t){let e,n,r,i,a,s,o,l,u;return i=new Lt({props:{size:"M",$$slots:{default:[tme]},$$scope:{ctx:t}}}),s=new rt({props:{size:"M",$$slots:{default:[nme]},$$scope:{ctx:t}}}),l=new wt({props:{size:"M",cta:!0,$$slots:{default:[rme]},$$scope:{ctx:t}}}),l.$on("click",t[5]),{c(){e=ye("svg"),n=ye("use"),r=L(),C(i.$$.fragment),a=L(),C(s.$$.fragment),o=L(),C(l.$$.fragment),cn(n,"xlink:href","#spectrum-icon-18-WorkflowAdd"),w(e,"width","60px"),w(e,"height","60px"),w(e,"class","spectrum-Icon"),w(e,"focusable","false")},m(c,f){v(c,e,f),D(e,n),v(c,r,f),O(i,c,f),v(c,a,f),O(s,c,f),v(c,o,f),O(l,c,f),u=!0},p(c,f){const d={};f&256&&(d.$$scope={dirty:f,ctx:c}),i.$set(d);const p={};f&256&&(p.$$scope={dirty:f,ctx:c}),s.$set(p);const _={};f&256&&(_.$$scope={dirty:f,ctx:c}),l.$set(_)},i(c){u||(m(i.$$.fragment,c),m(s.$$.fragment,c),m(l.$$.fragment,c),u=!0)},o(c){g(i.$$.fragment,c),g(s.$$.fragment,c),g(l.$$.fragment,c),u=!1},d(c){c&&E(e),c&&E(r),N(i,c),c&&E(a),N(s,c),c&&E(o),N(l,c)}}}function ame(t){let e,n;return e=new qR({props:{webhookModal:t[1]}}),{c(){C(e.$$.fragment)},m(r,i){O(e,r,i),n=!0},p(r,i){const a={};i&2&&(a.webhookModal=r[1]),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){g(e.$$.fragment,r),n=!1},d(r){N(e,r)}}}function sme(t){let e,n;return e=new j1({}),{c(){C(e.$$.fragment)},m(r,i){O(e,r,i),n=!0},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){g(e.$$.fragment,r),n=!1},d(r){N(e,r)}}}function ome(t){let e,n,r,i,a,s,o,l,u,c,f,d;r=new Z_e({props:{modal:t[0],webhookModal:t[1]}});const p=[eme,J_e],_=[];function h(y,A){return y[2]?0:1}s=h(t),o=_[s]=p[s](t);let b={$$slots:{default:[ame]},$$scope:{ctx:t}};u=new zt({props:b}),t[6](u);let $={width:"30%",$$slots:{default:[sme]},$$scope:{ctx:t}};return f=new zt({props:$}),t[7](f),{c(){e=U("div"),n=U("div"),C(r.$$.fragment),i=L(),a=U("div"),o.c(),l=L(),C(u.$$.fragment),c=L(),C(f.$$.fragment),w(n,"class","nav svelte-16gumu0"),w(a,"class","content svelte-16gumu0"),w(e,"class","root svelte-16gumu0")},m(y,A){v(y,e,A),D(e,n),O(r,n,null),D(e,i),D(e,a),_[s].m(a,null),D(e,l),O(u,e,null),D(e,c),O(f,e,null),d=!0},p(y,[A]){const R={};A&1&&(R.modal=y[0]),A&2&&(R.webhookModal=y[1]),r.$set(R);let T=s;s=h(y),s===T?_[s].p(y,A):(oe(),g(_[T],1,1,()=>{_[T]=null}),le(),o=_[s],o?o.p(y,A):(o=_[s]=p[s](y),o.c()),m(o,1),o.m(a,null));const M={};A&258&&(M.$$scope={dirty:A,ctx:y}),u.$set(M);const P={};A&256&&(P.$$scope={dirty:A,ctx:y}),f.$set(P)},i(y){d||(m(r.$$.fragment,y),m(o),m(u.$$.fragment,y),m(f.$$.fragment,y),d=!0)},o(y){g(r.$$.fragment,y),g(o),g(u.$$.fragment,y),g(f.$$.fragment,y),d=!1},d(y){y&&E(e),N(r),_[s].d(),t[6](null),N(u),t[7](null),N(f)}}}function lme(t,e,n){let r,i;_e(t,vn,d=>n(3,i=d));let{$$slots:a={},$$scope:s}=e,o,l;const u=()=>o.show();function c(d){ie[d?"unshift":"push"](()=>{o=d,n(0,o)})}function f(d){ie[d?"unshift":"push"](()=>{l=d,n(1,l)})}return t.$$set=d=>{"$$scope"in d&&n(8,s=d.$$scope)},t.$$.update=()=>{t.$$.dirty&8&&n(2,r=i.automations[0])},[o,l,r,i,a,u,c,f,s]}class ume extends fe{constructor(e){super();de(this,e,lme,ome,ce,{})}}function cme(t){let e;return{c(){e=x("Publish")},m(n,r){v(n,e,r)},d(n){n&&E(e)}}}function fme(t){let e,n;return e=new Jt({props:{title:"Enjoying Budibase?",size:"L",showConfirmButton:!1,showCancelButton:!1}}),{c(){C(e.$$.fragment)},m(r,i){O(e,r,i),n=!0},p:qe,i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){g(e.$$.fragment,r),n=!1},d(r){N(e,r)}}}function dme(t){let e;return{c(){e=U("span"),e.textContent=`The changes you have made will be published to the production version of
|
|
1305
1305
|
the application.`},m(n,r){v(n,e,r)},d(n){n&&E(e)}}}function pme(t){let e,n;return e=new Jt({props:{title:"Publish to Production",confirmText:"Publish",onConfirm:t[2],$$slots:{default:[dme]},$$scope:{ctx:t}}}),{c(){C(e.$$.fragment)},m(r,i){O(e,r,i),n=!0},p(r,i){const a={};i&64&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){g(e.$$.fragment,r),n=!1},d(r){N(e,r)}}}function _me(t){let e,n,r,i,a,s;e=new wt({props:{secondary:!0,$$slots:{default:[cme]},$$scope:{ctx:t}}}),e.$on("click",function(){Nt(t[1].show)&&t[1].show.apply(this,arguments)});let o={$$slots:{default:[fme]},$$scope:{ctx:t}};r=new zt({props:o}),t[3](r);let l={$$slots:{default:[pme]},$$scope:{ctx:t}};return a=new zt({props:l}),t[4](a),{c(){C(e.$$.fragment),n=L(),C(r.$$.fragment),i=L(),C(a.$$.fragment)},m(u,c){O(e,u,c),v(u,n,c),O(r,u,c),v(u,i,c),O(a,u,c),s=!0},p(u,[c]){t=u;const f={};c&64&&(f.$$scope={dirty:c,ctx:t}),e.$set(f);const d={};c&64&&(d.$$scope={dirty:c,ctx:t}),r.$set(d);const p={};c&64&&(p.$$scope={dirty:c,ctx:t}),a.$set(p)},i(u){s||(m(e.$$.fragment,u),m(r.$$.fragment,u),m(a.$$.fragment,u),s=!0)},o(u){g(e.$$.fragment,u),g(r.$$.fragment,u),g(a.$$.fragment,u),s=!1},d(u){N(e,u),u&&E(n),t[3](null),N(r,u),u&&E(i),t[4](null),N(a,u)}}}function mme(t,e,n){let r;_e(t,tt,u=>n(5,r=u));let i,a;async function s(){try{await st.deployAppChanges(),pr.captureEvent(Or.APP.PUBLISHED,{appId:r.appId}),Ne.success("Application published successfully")}catch(u){pr.captureException(u),Ne.error("Error publishing app")}}function o(u){ie[u?"unshift":"push"](()=>{i=u,n(0,i)})}function l(u){ie[u?"unshift":"push"](()=>{a=u,n(1,a)})}return[i,a,s,o,l]}class gme extends fe{constructor(e){super();de(this,e,mme,_me,ce,{})}}function hme(t){let e,n,r,i,a,s,o;function l(c){t[4](c)}let u={};return t[2]!==void 0&&(u.value=t[2]),a=new ct({props:u}),ie.push(()=>he(a,"value",l)),{c(){e=U("span"),e.textContent=`The changes you have made will be deleted and the application reverted
|
|
1306
|
-
back to its production state.`,n=L(),r=U("span"),r.textContent="Please enter your app name to continue.",i=L(),C(a.$$.fragment)},m(c,f){v(c,e,f),v(c,n,f),v(c,r,f),v(c,i,f),O(a,c,f),o=!0},p(c,f){const d={};!s&&f&4&&(s=!0,d.value=c[2],be(()=>s=!1)),a.$set(d)},i(c){o||(m(a.$$.fragment,c),o=!0)},o(c){g(a.$$.fragment,c),o=!1},d(c){c&&E(e),c&&E(n),c&&E(r),c&&E(i),N(a,c)}}}function bme(t){let e,n;return e=new Jt({props:{title:"Revert Changes",confirmText:"Revert",onConfirm:t[3],disabled:t[2]!==t[0].name,$$slots:{default:[hme]},$$scope:{ctx:t}}}),{c(){C(e.$$.fragment)},m(r,i){O(e,r,i),n=!0},p(r,i){const a={};i&5&&(a.disabled=r[2]!==r[0].name),i&132&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){g(e.$$.fragment,r),n=!1},d(r){N(e,r)}}}function vme(t){let e,n,r,i;e=new Ct({props:{name:"Revert",hoverable:!0}}),e.$on("click",function(){Nt(t[1].show)&&t[1].show.apply(this,arguments)});let a={$$slots:{default:[bme]},$$scope:{ctx:t}};return r=new zt({props:a}),t[5](r),{c(){C(e.$$.fragment),n=L(),C(r.$$.fragment)},m(s,o){O(e,s,o),v(s,n,o),O(r,s,o),i=!0},p(s,[o]){t=s;const l={};o&133&&(l.$$scope={dirty:o,ctx:t}),r.$set(l)},i(s){i||(m(e.$$.fragment,s),m(r.$$.fragment,s),i=!0)},o(s){g(e.$$.fragment,s),g(r.$$.fragment,s),i=!1},d(s){N(e,s),s&&E(n),t[5](null),N(r,s)}}}function Eme(t,e,n){let r,i;_e(t,tt,c=>n(0,i=c));let a,s;const o=async()=>{try{await st.revertAppChanges(r);const c=await st.fetchAppPackage(r);await tt.actions.initialise(c),Ne.info("Changes reverted successfully")}catch(c){Ne.error(`Error reverting changes: ${c}`)}};function l(c){s=c,n(2,s)}function u(c){ie[c?"unshift":"push"](()=>{a=c,n(1,a)})}return t.$$.update=()=>{t.$$.dirty&1&&(r=i.appId)},[i,a,s,o,l,u]}class Sme extends fe{constructor(e){super();de(this,e,Eme,vme,ce,{})}}const yme="@budibase/client",$me="1.0.
|
|
1306
|
+
back to its production state.`,n=L(),r=U("span"),r.textContent="Please enter your app name to continue.",i=L(),C(a.$$.fragment)},m(c,f){v(c,e,f),v(c,n,f),v(c,r,f),v(c,i,f),O(a,c,f),o=!0},p(c,f){const d={};!s&&f&4&&(s=!0,d.value=c[2],be(()=>s=!1)),a.$set(d)},i(c){o||(m(a.$$.fragment,c),o=!0)},o(c){g(a.$$.fragment,c),o=!1},d(c){c&&E(e),c&&E(n),c&&E(r),c&&E(i),N(a,c)}}}function bme(t){let e,n;return e=new Jt({props:{title:"Revert Changes",confirmText:"Revert",onConfirm:t[3],disabled:t[2]!==t[0].name,$$slots:{default:[hme]},$$scope:{ctx:t}}}),{c(){C(e.$$.fragment)},m(r,i){O(e,r,i),n=!0},p(r,i){const a={};i&5&&(a.disabled=r[2]!==r[0].name),i&132&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){g(e.$$.fragment,r),n=!1},d(r){N(e,r)}}}function vme(t){let e,n,r,i;e=new Ct({props:{name:"Revert",hoverable:!0}}),e.$on("click",function(){Nt(t[1].show)&&t[1].show.apply(this,arguments)});let a={$$slots:{default:[bme]},$$scope:{ctx:t}};return r=new zt({props:a}),t[5](r),{c(){C(e.$$.fragment),n=L(),C(r.$$.fragment)},m(s,o){O(e,s,o),v(s,n,o),O(r,s,o),i=!0},p(s,[o]){t=s;const l={};o&133&&(l.$$scope={dirty:o,ctx:t}),r.$set(l)},i(s){i||(m(e.$$.fragment,s),m(r.$$.fragment,s),i=!0)},o(s){g(e.$$.fragment,s),g(r.$$.fragment,s),i=!1},d(s){N(e,s),s&&E(n),t[5](null),N(r,s)}}}function Eme(t,e,n){let r,i;_e(t,tt,c=>n(0,i=c));let a,s;const o=async()=>{try{await st.revertAppChanges(r);const c=await st.fetchAppPackage(r);await tt.actions.initialise(c),Ne.info("Changes reverted successfully")}catch(c){Ne.error(`Error reverting changes: ${c}`)}};function l(c){s=c,n(2,s)}function u(c){ie[c?"unshift":"push"](()=>{a=c,n(1,a)})}return t.$$.update=()=>{t.$$.dirty&1&&(r=i.appId)},[i,a,s,o,l,u]}class Sme extends fe{constructor(e){super();de(this,e,Eme,vme,ce,{})}}const yme="@budibase/client",$me="1.0.58-alpha.3",wme="MPL-2.0",Tme="dist/budibase-client.js",Cme="dist/budibase-client.js",Ome="module",Nme="src/index.js",Rme={".":{import:"./dist/budibase-client.js",require:"./dist/budibase-client.js"},"./package.json":"./package.json","./manifest.json":"./manifest.json"},Ame={build:"rollup -c","dev:builder":"rollup -cw"},kme={"@budibase/bbui":"^1.0.58-alpha.3","@budibase/frontend-core":"^1.0.58-alpha.3","@budibase/string-templates":"^1.0.58-alpha.3",regexparam:"^1.3.0","rollup-plugin-polyfill-node":"^0.8.0",shortid:"^2.2.15","svelte-spa-router":"^3.0.5"},Ime={"@rollup/plugin-alias":"^3.1.5","@rollup/plugin-commonjs":"^18.0.0","@rollup/plugin-node-resolve":"^11.2.1","@spectrum-css/button":"^3.0.3","@spectrum-css/card":"^3.0.3","@spectrum-css/divider":"^1.0.3","@spectrum-css/link":"^3.1.3","@spectrum-css/page":"^3.0.1","@spectrum-css/tag":"^3.1.4","@spectrum-css/typography":"^3.0.2","@spectrum-css/vars":"^3.0.1",apexcharts:"^3.22.1",dayjs:"^1.10.5","fs-extra":"^8.1.0",jsdom:"^16.0.1",postcss:"^8.2.10",rollup:"^2.44.0","rollup-plugin-json":"^4.0.0","rollup-plugin-postcss":"^4.0.0","rollup-plugin-svelte":"^7.1.0","rollup-plugin-svg":"^2.0.0","rollup-plugin-terser":"^7.0.2",svelte:"^3.38.2","svelte-apexcharts":"^1.0.2","svelte-flatpickr":"^3.1.0"},Dme="d1836a898cab3f8ab80ee6d8f42be1a9eed7dcdc";var V1={name:yme,version:$me,license:wme,module:Tme,main:Cme,type:Ome,svelte:Nme,exports:Rme,scripts:Ame,dependencies:kme,devDependencies:Ime,gitHead:Dme};function Mme(t){let e,n;return e=new rt({props:{size:"S",$$slots:{default:[Pme]},$$scope:{ctx:t}}}),{c(){C(e.$$.fragment)},m(r,i){O(e,r,i),n=!0},p(r,i){const a={};i&513&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){g(e.$$.fragment,r),n=!1},d(r){N(e,r)}}}function Lme(t){let e,n;return e=new rt({props:{size:"S",$$slots:{default:[Ume]},$$scope:{ctx:t}}}),{c(){C(e.$$.fragment)},m(r,i){O(e,r,i),n=!0},p(r,i){const a={};i&513&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){g(e.$$.fragment,r),n=!1},d(r){N(e,r)}}}function Pme(t){let e,n,r=t[0].version+"",i,a;return{c(){e=x("This app is currently using version "),n=U("b"),i=x(r),a=x(` which is the
|
|
1307
1307
|
latest version available.`)},m(s,o){v(s,e,o),v(s,n,o),D(n,i),v(s,a,o)},p(s,o){o&1&&r!==(r=s[0].version+"")&&Ge(i,r)},d(s){s&&E(e),s&&E(n),s&&E(a)}}}function Ume(t){let e,n,r=t[0].version+"",i,a,s,o;return{c(){e=x("This app is currently using version "),n=U("b"),i=x(r),a=x(`, but version
|
|
1308
1308
|
`),s=U("b"),s.textContent=`${V1.version}`,o=x(` is available. Updates can contain new features,
|
|
1309
1309
|
performance improvements and bug fixes.`)},m(l,u){v(l,e,u),v(l,n,u),D(n,i),v(l,a,u),v(l,s,u),v(l,o,u)},p(l,u){u&1&&r!==(r=l[0].version+"")&&Ge(i,r)},d(l){l&&E(e),l&&E(n),l&&E(a),l&&E(s),l&&E(o)}}}function GR(t){let e,n;return e=new rt({props:{size:"S",$$slots:{default:[Bme]},$$scope:{ctx:t}}}),{c(){C(e.$$.fragment)},m(r,i){O(e,r,i),n=!0},p(r,i){const a={};i&513&&(a.$$scope={dirty:i,ctx:r}),e.$set(a)},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){g(e.$$.fragment,r),n=!1},d(r){N(e,r)}}}function Bme(t){let e,n,r=t[0].revertableVersion+"",i,a;return{c(){e=x(`You can revert this app to version
|
package/builder/index.html
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap"
|
|
11
11
|
rel="stylesheet"
|
|
12
12
|
/>
|
|
13
|
-
<script type="module" crossorigin src="/builder/assets/index.
|
|
13
|
+
<script type="module" crossorigin src="/builder/assets/index.8093c1df.js"></script>
|
|
14
14
|
<link rel="modulepreload" href="/builder/assets/vendor.20f80cec.js">
|
|
15
15
|
<link rel="stylesheet" href="/builder/assets/vendor.5e1fe644.css">
|
|
16
16
|
<link rel="stylesheet" href="/builder/assets/index.38a1fb0a.css">
|
package/coverage/clover.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<coverage generated="
|
|
3
|
-
<project timestamp="
|
|
4
|
-
<metrics statements="4922" coveredstatements="3592" conditionals="2042" coveredconditionals="
|
|
2
|
+
<coverage generated="1644851051902" clover="3.2.0">
|
|
3
|
+
<project timestamp="1644851051902" name="All files">
|
|
4
|
+
<metrics statements="4922" coveredstatements="3592" conditionals="2042" coveredconditionals="1071" methods="714" coveredmethods="498" elements="7678" coveredelements="5161" complexity="0" loc="4922" ncloc="4922" packages="22" files="145" classes="145"/>
|
|
5
5
|
<package name="api">
|
|
6
6
|
<metrics statements="29" coveredstatements="27" conditionals="5" coveredconditionals="2" methods="5" coveredmethods="4"/>
|
|
7
7
|
<file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/index.js">
|
|
@@ -1204,9 +1204,9 @@
|
|
|
1204
1204
|
</file>
|
|
1205
1205
|
</package>
|
|
1206
1206
|
<package name="api.controllers.query">
|
|
1207
|
-
<metrics statements="103" coveredstatements="
|
|
1207
|
+
<metrics statements="103" coveredstatements="83" conditionals="29" coveredconditionals="19" methods="17" coveredmethods="15"/>
|
|
1208
1208
|
<file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/query/index.js">
|
|
1209
|
-
<metrics statements="95" coveredstatements="
|
|
1209
|
+
<metrics statements="95" coveredstatements="75" conditionals="29" coveredconditionals="19" methods="14" coveredmethods="12"/>
|
|
1210
1210
|
<line num="5" count="39" type="stmt"/>
|
|
1211
1211
|
<line num="6" count="39" type="stmt"/>
|
|
1212
1212
|
<line num="7" count="39" type="stmt"/>
|
|
@@ -1259,13 +1259,13 @@
|
|
|
1259
1259
|
<line num="102" count="1" type="stmt"/>
|
|
1260
1260
|
<line num="104" count="3" type="stmt"/>
|
|
1261
1261
|
<line num="107" count="39" type="stmt"/>
|
|
1262
|
-
<line num="108" count="
|
|
1263
|
-
<line num="110" count="
|
|
1264
|
-
<line num="114" count="
|
|
1265
|
-
<line num="116" count="
|
|
1266
|
-
<line num="117" count="
|
|
1262
|
+
<line num="108" count="7" type="stmt"/>
|
|
1263
|
+
<line num="110" count="7" type="stmt"/>
|
|
1264
|
+
<line num="114" count="7" type="stmt"/>
|
|
1265
|
+
<line num="116" count="7" type="stmt"/>
|
|
1266
|
+
<line num="117" count="7" type="stmt"/>
|
|
1267
1267
|
<line num="127" count="7" type="stmt"/>
|
|
1268
|
-
<line num="134" count="
|
|
1268
|
+
<line num="134" count="0" type="stmt"/>
|
|
1269
1269
|
<line num="139" count="2" type="stmt"/>
|
|
1270
1270
|
<line num="141" count="2" type="stmt"/>
|
|
1271
1271
|
<line num="142" count="2" type="stmt"/>
|
|
@@ -4228,7 +4228,7 @@
|
|
|
4228
4228
|
</file>
|
|
4229
4229
|
</package>
|
|
4230
4230
|
<package name="middleware">
|
|
4231
|
-
<metrics statements="268" coveredstatements="
|
|
4231
|
+
<metrics statements="268" coveredstatements="223" conditionals="181" coveredconditionals="129" methods="36" coveredmethods="31"/>
|
|
4232
4232
|
<file name="appInfo.js" path="/home/runner/work/budibase/budibase/packages/server/src/middleware/appInfo.js">
|
|
4233
4233
|
<metrics statements="10" coveredstatements="8" conditionals="11" coveredconditionals="6" methods="2" coveredmethods="2"/>
|
|
4234
4234
|
<line num="1" count="23" type="stmt"/>
|
|
@@ -4386,7 +4386,7 @@
|
|
|
4386
4386
|
<line num="113" count="169" type="stmt"/>
|
|
4387
4387
|
</file>
|
|
4388
4388
|
<file name="joi-validator.js" path="/home/runner/work/budibase/budibase/packages/server/src/middleware/joi-validator.js">
|
|
4389
|
-
<metrics statements="17" coveredstatements="
|
|
4389
|
+
<metrics statements="17" coveredstatements="15" conditionals="8" coveredconditionals="6" methods="4" coveredmethods="4"/>
|
|
4390
4390
|
<line num="3" count="276" type="stmt"/>
|
|
4391
4391
|
<line num="4" count="24" type="cond" truecount="1" falsecount="1"/>
|
|
4392
4392
|
<line num="5" count="0" type="stmt"/>
|
|
@@ -4396,10 +4396,10 @@
|
|
|
4396
4396
|
<line num="10" count="23" type="cond" truecount="1" falsecount="1"/>
|
|
4397
4397
|
<line num="11" count="23" type="stmt"/>
|
|
4398
4398
|
<line num="13" count="24" type="stmt"/>
|
|
4399
|
-
<line num="14" count="24" type="cond" truecount="
|
|
4400
|
-
<line num="15" count="
|
|
4399
|
+
<line num="14" count="24" type="cond" truecount="2" falsecount="0"/>
|
|
4400
|
+
<line num="15" count="1" type="stmt"/>
|
|
4401
4401
|
<line num="16" count="0" type="stmt"/>
|
|
4402
|
-
<line num="18" count="
|
|
4402
|
+
<line num="18" count="23" type="stmt"/>
|
|
4403
4403
|
<line num="22" count="40" type="stmt"/>
|
|
4404
4404
|
<line num="23" count="230" type="stmt"/>
|
|
4405
4405
|
<line num="26" count="40" type="stmt"/>
|
|
@@ -4612,14 +4612,14 @@
|
|
|
4612
4612
|
<line num="1" count="39" type="stmt"/>
|
|
4613
4613
|
<line num="2" count="39" type="stmt"/>
|
|
4614
4614
|
<line num="4" count="39" type="stmt"/>
|
|
4615
|
-
<line num="10" count="
|
|
4616
|
-
<line num="11" count="
|
|
4617
|
-
<line num="13" count="
|
|
4618
|
-
<line num="14" count="
|
|
4615
|
+
<line num="10" count="19" type="stmt"/>
|
|
4616
|
+
<line num="11" count="19" type="cond" truecount="2" falsecount="1"/>
|
|
4617
|
+
<line num="13" count="9" type="stmt"/>
|
|
4618
|
+
<line num="14" count="9" type="stmt"/>
|
|
4619
4619
|
<line num="16" count="10" type="stmt"/>
|
|
4620
4620
|
<line num="17" count="10" type="stmt"/>
|
|
4621
4621
|
<line num="19" count="0" type="stmt"/>
|
|
4622
|
-
<line num="21" count="
|
|
4622
|
+
<line num="21" count="19" type="stmt"/>
|
|
4623
4623
|
<line num="26" count="77" type="stmt"/>
|
|
4624
4624
|
<line num="27" count="77" type="cond" truecount="2" falsecount="0"/>
|
|
4625
4625
|
<line num="28" count="77" type="stmt"/>
|
|
@@ -4628,13 +4628,13 @@
|
|
|
4628
4628
|
<line num="38" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
4629
4629
|
<line num="39" count="0" type="stmt"/>
|
|
4630
4630
|
<line num="41" count="0" type="stmt"/>
|
|
4631
|
-
<line num="46" count="
|
|
4632
|
-
<line num="49" count="
|
|
4633
|
-
<line num="50" count="
|
|
4631
|
+
<line num="46" count="19" type="stmt"/>
|
|
4632
|
+
<line num="49" count="19" type="cond" truecount="1" falsecount="1"/>
|
|
4633
|
+
<line num="50" count="19" type="stmt"/>
|
|
4634
4634
|
<line num="52" count="0" type="stmt"/>
|
|
4635
|
-
<line num="54" count="
|
|
4636
|
-
<line num="55" count="
|
|
4637
|
-
<line num="56" count="
|
|
4635
|
+
<line num="54" count="19" type="stmt"/>
|
|
4636
|
+
<line num="55" count="15" type="cond" truecount="2" falsecount="0"/>
|
|
4637
|
+
<line num="56" count="1" type="stmt"/>
|
|
4638
4638
|
<line num="58" count="14" type="stmt"/>
|
|
4639
4639
|
<line num="65" count="39" type="stmt"/>
|
|
4640
4640
|
<line num="66" count="39" type="stmt"/>
|
|
@@ -4647,25 +4647,25 @@
|
|
|
4647
4647
|
<line num="4" count="2" type="stmt"/>
|
|
4648
4648
|
<line num="5" count="2" type="stmt"/>
|
|
4649
4649
|
<line num="6" count="2" type="stmt"/>
|
|
4650
|
-
<line num="10" count="
|
|
4651
|
-
<line num="11" count="
|
|
4652
|
-
<line num="12" count="
|
|
4653
|
-
<line num="13" count="
|
|
4654
|
-
<line num="14" count="
|
|
4655
|
-
<line num="15" count="
|
|
4656
|
-
<line num="16" count="
|
|
4657
|
-
<line num="17" count="
|
|
4658
|
-
<line num="18" count="
|
|
4659
|
-
<line num="22" count="
|
|
4660
|
-
<line num="23" count="
|
|
4661
|
-
<line num="27" count="
|
|
4662
|
-
<line num="29" count="
|
|
4663
|
-
<line num="30" count="
|
|
4664
|
-
<line num="33" count="
|
|
4650
|
+
<line num="10" count="14" type="stmt"/>
|
|
4651
|
+
<line num="11" count="14" type="stmt"/>
|
|
4652
|
+
<line num="12" count="14" type="stmt"/>
|
|
4653
|
+
<line num="13" count="14" type="stmt"/>
|
|
4654
|
+
<line num="14" count="14" type="stmt"/>
|
|
4655
|
+
<line num="15" count="14" type="stmt"/>
|
|
4656
|
+
<line num="16" count="14" type="stmt"/>
|
|
4657
|
+
<line num="17" count="14" type="stmt"/>
|
|
4658
|
+
<line num="18" count="14" type="stmt"/>
|
|
4659
|
+
<line num="22" count="14" type="stmt"/>
|
|
4660
|
+
<line num="23" count="14" type="stmt"/>
|
|
4661
|
+
<line num="27" count="15" type="stmt"/>
|
|
4662
|
+
<line num="29" count="15" type="stmt"/>
|
|
4663
|
+
<line num="30" count="15" type="stmt"/>
|
|
4664
|
+
<line num="33" count="15" type="cond" truecount="1" falsecount="1"/>
|
|
4665
4665
|
<line num="34" count="0" type="stmt"/>
|
|
4666
|
-
<line num="37" count="
|
|
4667
|
-
<line num="38" count="
|
|
4668
|
-
<line num="39" count="
|
|
4666
|
+
<line num="37" count="15" type="stmt"/>
|
|
4667
|
+
<line num="38" count="15" type="cond" truecount="2" falsecount="0"/>
|
|
4668
|
+
<line num="39" count="1" type="stmt"/>
|
|
4669
4669
|
<line num="41" count="14" type="stmt"/>
|
|
4670
4670
|
<line num="43" count="14" type="stmt"/>
|
|
4671
4671
|
<line num="44" count="14" type="stmt"/>
|
|
@@ -4708,30 +4708,30 @@
|
|
|
4708
4708
|
<line num="129" count="5" type="stmt"/>
|
|
4709
4709
|
<line num="131" count="1" type="stmt"/>
|
|
4710
4710
|
<line num="133" count="6" type="stmt"/>
|
|
4711
|
-
<line num="137" count="
|
|
4712
|
-
<line num="138" count="
|
|
4711
|
+
<line num="137" count="15" type="stmt"/>
|
|
4712
|
+
<line num="138" count="15" type="cond" truecount="3" falsecount="1"/>
|
|
4713
4713
|
<line num="139" count="0" type="stmt"/>
|
|
4714
|
-
<line num="141" count="
|
|
4715
|
-
<line num="142" count="
|
|
4716
|
-
<line num="143" count="
|
|
4714
|
+
<line num="141" count="15" type="cond" truecount="2" falsecount="0"/>
|
|
4715
|
+
<line num="142" count="15" type="cond" truecount="2" falsecount="0"/>
|
|
4716
|
+
<line num="143" count="15" type="stmt"/>
|
|
4717
4717
|
<line num="144" count="2" type="cond" truecount="1" falsecount="1"/>
|
|
4718
4718
|
<line num="145" count="2" type="stmt"/>
|
|
4719
|
-
<line num="148" count="
|
|
4720
|
-
<line num="150" count="
|
|
4721
|
-
<line num="151" count="
|
|
4719
|
+
<line num="148" count="15" type="cond" truecount="2" falsecount="0"/>
|
|
4720
|
+
<line num="150" count="10" type="stmt"/>
|
|
4721
|
+
<line num="151" count="10" type="stmt"/>
|
|
4722
4722
|
<line num="153" count="6" type="cond" truecount="1" falsecount="1"/>
|
|
4723
4723
|
<line num="154" count="0" type="stmt"/>
|
|
4724
4724
|
<line num="157" count="6" type="stmt"/>
|
|
4725
4725
|
<line num="158" count="6" type="stmt"/>
|
|
4726
|
-
<line num="160" count="
|
|
4727
|
-
<line num="161" count="
|
|
4728
|
-
<line num="162" count="
|
|
4726
|
+
<line num="160" count="10" type="stmt"/>
|
|
4727
|
+
<line num="161" count="10" type="stmt"/>
|
|
4728
|
+
<line num="162" count="10" type="stmt"/>
|
|
4729
4729
|
<line num="163" count="6" type="stmt"/>
|
|
4730
4730
|
<line num="164" count="6" type="stmt"/>
|
|
4731
4731
|
<line num="175" count="6" type="stmt"/>
|
|
4732
|
-
<line num="178" count="
|
|
4733
|
-
<line num="182" count="
|
|
4734
|
-
<line num="185" count="
|
|
4732
|
+
<line num="178" count="15" type="stmt"/>
|
|
4733
|
+
<line num="182" count="15" type="stmt"/>
|
|
4734
|
+
<line num="185" count="15" type="stmt"/>
|
|
4735
4735
|
<line num="186" count="19" type="cond" truecount="1" falsecount="1"/>
|
|
4736
4736
|
<line num="187" count="0" type="stmt"/>
|
|
4737
4737
|
<line num="189" count="19" type="cond" truecount="1" falsecount="1"/>
|
|
@@ -4739,17 +4739,17 @@
|
|
|
4739
4739
|
<line num="192" count="19" type="cond" truecount="1" falsecount="1"/>
|
|
4740
4740
|
<line num="194" count="19" type="stmt"/>
|
|
4741
4741
|
<line num="200" count="0" type="stmt"/>
|
|
4742
|
-
<line num="203" count="
|
|
4742
|
+
<line num="203" count="15" type="cond" truecount="1" falsecount="1"/>
|
|
4743
4743
|
<line num="208" count="0" type="stmt"/>
|
|
4744
4744
|
<line num="209" count="0" type="stmt"/>
|
|
4745
4745
|
<line num="217" count="0" type="stmt"/>
|
|
4746
|
-
<line num="219" count="
|
|
4746
|
+
<line num="219" count="15" type="stmt"/>
|
|
4747
4747
|
<line num="223" count="2" type="stmt"/>
|
|
4748
|
-
<line num="224" count="
|
|
4749
|
-
<line num="225" count="
|
|
4750
|
-
<line num="226" count="
|
|
4748
|
+
<line num="224" count="9" type="stmt"/>
|
|
4749
|
+
<line num="225" count="9" type="stmt"/>
|
|
4750
|
+
<line num="226" count="9" type="stmt"/>
|
|
4751
4751
|
<line num="228" count="8" type="stmt"/>
|
|
4752
|
-
<line num="231" count="
|
|
4752
|
+
<line num="231" count="1" type="stmt"/>
|
|
4753
4753
|
</file>
|
|
4754
4754
|
<file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/utils.js">
|
|
4755
4755
|
<metrics statements="37" coveredstatements="31" conditionals="14" coveredconditionals="9" methods="9" coveredmethods="8"/>
|