@budibase/server 1.0.30 → 1.0.34

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.
Files changed (179) hide show
  1. package/builder/assets/{index.2ccab04a.js → index.9b7f029a.js} +1 -1
  2. package/builder/index.html +1 -1
  3. package/coverage/clover.xml +60 -59
  4. package/coverage/coverage-final.json +2 -2
  5. package/coverage/lcov-report/api/controllers/analytics.js.html +1 -1
  6. package/coverage/lcov-report/api/controllers/apikeys.js.html +1 -1
  7. package/coverage/lcov-report/api/controllers/application.js.html +1 -1
  8. package/coverage/lcov-report/api/controllers/auth.js.html +1 -1
  9. package/coverage/lcov-report/api/controllers/automation.js.html +1 -1
  10. package/coverage/lcov-report/api/controllers/backup.js.html +1 -1
  11. package/coverage/lcov-report/api/controllers/cloud.js.html +1 -1
  12. package/coverage/lcov-report/api/controllers/component.js.html +1 -1
  13. package/coverage/lcov-report/api/controllers/datasource.js.html +1 -1
  14. package/coverage/lcov-report/api/controllers/dev.js.html +1 -1
  15. package/coverage/lcov-report/api/controllers/hosting.js.html +1 -1
  16. package/coverage/lcov-report/api/controllers/index.html +14 -14
  17. package/coverage/lcov-report/api/controllers/integration.js.html +1 -1
  18. package/coverage/lcov-report/api/controllers/layout.js.html +1 -1
  19. package/coverage/lcov-report/api/controllers/metadata.js.html +1 -1
  20. package/coverage/lcov-report/api/controllers/permission.js.html +1 -1
  21. package/coverage/lcov-report/api/controllers/query.js.html +18 -9
  22. package/coverage/lcov-report/api/controllers/role.js.html +1 -1
  23. package/coverage/lcov-report/api/controllers/routing.js.html +1 -1
  24. package/coverage/lcov-report/api/controllers/row/external.js.html +1 -1
  25. package/coverage/lcov-report/api/controllers/row/index.html +1 -1
  26. package/coverage/lcov-report/api/controllers/row/index.js.html +1 -1
  27. package/coverage/lcov-report/api/controllers/row/internal.js.html +1 -1
  28. package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +1 -1
  29. package/coverage/lcov-report/api/controllers/row/utils.js.html +1 -1
  30. package/coverage/lcov-report/api/controllers/screen.js.html +1 -1
  31. package/coverage/lcov-report/api/controllers/script.js.html +1 -1
  32. package/coverage/lcov-report/api/controllers/table/external.js.html +1 -1
  33. package/coverage/lcov-report/api/controllers/table/index.html +1 -1
  34. package/coverage/lcov-report/api/controllers/table/index.js.html +1 -1
  35. package/coverage/lcov-report/api/controllers/table/internal.js.html +1 -1
  36. package/coverage/lcov-report/api/controllers/table/utils.js.html +1 -1
  37. package/coverage/lcov-report/api/controllers/templates.js.html +1 -1
  38. package/coverage/lcov-report/api/controllers/user.js.html +1 -1
  39. package/coverage/lcov-report/api/controllers/view/exporters.js.html +1 -1
  40. package/coverage/lcov-report/api/controllers/view/index.html +1 -1
  41. package/coverage/lcov-report/api/controllers/view/index.js.html +1 -1
  42. package/coverage/lcov-report/api/controllers/view/utils.js.html +1 -1
  43. package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +1 -1
  44. package/coverage/lcov-report/api/controllers/webhook.js.html +1 -1
  45. package/coverage/lcov-report/api/index.html +1 -1
  46. package/coverage/lcov-report/api/index.js.html +1 -1
  47. package/coverage/lcov-report/api/routes/analytics.js.html +1 -1
  48. package/coverage/lcov-report/api/routes/apikeys.js.html +1 -1
  49. package/coverage/lcov-report/api/routes/application.js.html +1 -1
  50. package/coverage/lcov-report/api/routes/auth.js.html +1 -1
  51. package/coverage/lcov-report/api/routes/automation.js.html +1 -1
  52. package/coverage/lcov-report/api/routes/backup.js.html +1 -1
  53. package/coverage/lcov-report/api/routes/cloud.js.html +1 -1
  54. package/coverage/lcov-report/api/routes/component.js.html +1 -1
  55. package/coverage/lcov-report/api/routes/datasource.js.html +1 -1
  56. package/coverage/lcov-report/api/routes/deploy.js.html +1 -1
  57. package/coverage/lcov-report/api/routes/dev.js.html +1 -1
  58. package/coverage/lcov-report/api/routes/hosting.js.html +1 -1
  59. package/coverage/lcov-report/api/routes/index.html +1 -1
  60. package/coverage/lcov-report/api/routes/index.js.html +1 -1
  61. package/coverage/lcov-report/api/routes/integration.js.html +1 -1
  62. package/coverage/lcov-report/api/routes/layout.js.html +1 -1
  63. package/coverage/lcov-report/api/routes/metadata.js.html +1 -1
  64. package/coverage/lcov-report/api/routes/permission.js.html +1 -1
  65. package/coverage/lcov-report/api/routes/query.js.html +1 -1
  66. package/coverage/lcov-report/api/routes/role.js.html +1 -1
  67. package/coverage/lcov-report/api/routes/routing.js.html +1 -1
  68. package/coverage/lcov-report/api/routes/row.js.html +1 -1
  69. package/coverage/lcov-report/api/routes/screen.js.html +1 -1
  70. package/coverage/lcov-report/api/routes/script.js.html +1 -1
  71. package/coverage/lcov-report/api/routes/static.js.html +1 -1
  72. package/coverage/lcov-report/api/routes/table.js.html +1 -1
  73. package/coverage/lcov-report/api/routes/templates.js.html +1 -1
  74. package/coverage/lcov-report/api/routes/user.js.html +1 -1
  75. package/coverage/lcov-report/api/routes/view.js.html +1 -1
  76. package/coverage/lcov-report/api/routes/webhook.js.html +1 -1
  77. package/coverage/lcov-report/automations/actions.js.html +1 -1
  78. package/coverage/lcov-report/automations/automationUtils.js.html +1 -1
  79. package/coverage/lcov-report/automations/bullboard.js.html +1 -1
  80. package/coverage/lcov-report/automations/index.html +1 -1
  81. package/coverage/lcov-report/automations/index.js.html +1 -1
  82. package/coverage/lcov-report/automations/steps/bash.js.html +1 -1
  83. package/coverage/lcov-report/automations/steps/createRow.js.html +1 -1
  84. package/coverage/lcov-report/automations/steps/delay.js.html +1 -1
  85. package/coverage/lcov-report/automations/steps/deleteRow.js.html +1 -1
  86. package/coverage/lcov-report/automations/steps/discord.js.html +1 -1
  87. package/coverage/lcov-report/automations/steps/executeQuery.js.html +1 -1
  88. package/coverage/lcov-report/automations/steps/executeScript.js.html +1 -1
  89. package/coverage/lcov-report/automations/steps/filter.js.html +1 -1
  90. package/coverage/lcov-report/automations/steps/index.html +1 -1
  91. package/coverage/lcov-report/automations/steps/integromat.js.html +1 -1
  92. package/coverage/lcov-report/automations/steps/outgoingWebhook.js.html +1 -1
  93. package/coverage/lcov-report/automations/steps/queryRows.js.html +1 -1
  94. package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +1 -1
  95. package/coverage/lcov-report/automations/steps/serverLog.js.html +1 -1
  96. package/coverage/lcov-report/automations/steps/slack.js.html +1 -1
  97. package/coverage/lcov-report/automations/steps/updateRow.js.html +1 -1
  98. package/coverage/lcov-report/automations/steps/utils.js.html +1 -1
  99. package/coverage/lcov-report/automations/steps/zapier.js.html +1 -1
  100. package/coverage/lcov-report/automations/triggerInfo/app.js.html +1 -1
  101. package/coverage/lcov-report/automations/triggerInfo/cron.js.html +1 -1
  102. package/coverage/lcov-report/automations/triggerInfo/index.html +1 -1
  103. package/coverage/lcov-report/automations/triggerInfo/index.js.html +1 -1
  104. package/coverage/lcov-report/automations/triggerInfo/rowDeleted.js.html +1 -1
  105. package/coverage/lcov-report/automations/triggerInfo/rowSaved.js.html +1 -1
  106. package/coverage/lcov-report/automations/triggerInfo/rowUpdated.js.html +1 -1
  107. package/coverage/lcov-report/automations/triggerInfo/webhook.js.html +1 -1
  108. package/coverage/lcov-report/automations/triggers.js.html +1 -1
  109. package/coverage/lcov-report/automations/utils.js.html +1 -1
  110. package/coverage/lcov-report/constants/index.html +1 -1
  111. package/coverage/lcov-report/constants/index.js.html +1 -1
  112. package/coverage/lcov-report/constants/layouts.js.html +1 -1
  113. package/coverage/lcov-report/constants/screens.js.html +1 -1
  114. package/coverage/lcov-report/db/client.js.html +1 -1
  115. package/coverage/lcov-report/db/inMemoryView.js.html +1 -1
  116. package/coverage/lcov-report/db/index.html +1 -1
  117. package/coverage/lcov-report/db/index.js.html +1 -1
  118. package/coverage/lcov-report/db/linkedRows/LinkController.js.html +1 -1
  119. package/coverage/lcov-report/db/linkedRows/index.html +1 -1
  120. package/coverage/lcov-report/db/linkedRows/index.js.html +1 -1
  121. package/coverage/lcov-report/db/linkedRows/linkUtils.js.html +1 -1
  122. package/coverage/lcov-report/db/newid.js.html +1 -1
  123. package/coverage/lcov-report/db/utils.js.html +1 -1
  124. package/coverage/lcov-report/events/AutomationEmitter.js.html +1 -1
  125. package/coverage/lcov-report/events/index.html +1 -1
  126. package/coverage/lcov-report/events/index.js.html +1 -1
  127. package/coverage/lcov-report/events/utils.js.html +1 -1
  128. package/coverage/lcov-report/index.html +15 -15
  129. package/coverage/lcov-report/integrations/tests/TestConfiguration.js.html +1 -1
  130. package/coverage/lcov-report/integrations/tests/index.html +1 -1
  131. package/coverage/lcov-report/middleware/appInfo.js.html +1 -1
  132. package/coverage/lcov-report/middleware/authorized.js.html +1 -1
  133. package/coverage/lcov-report/middleware/builder.js.html +1 -1
  134. package/coverage/lcov-report/middleware/currentapp.js.html +1 -1
  135. package/coverage/lcov-report/middleware/index.html +1 -1
  136. package/coverage/lcov-report/middleware/joi-validator.js.html +1 -1
  137. package/coverage/lcov-report/middleware/resourceId.js.html +1 -1
  138. package/coverage/lcov-report/middleware/selfhost.js.html +1 -1
  139. package/coverage/lcov-report/middleware/usageQuota.js.html +1 -1
  140. package/coverage/lcov-report/middleware/utils.js.html +1 -1
  141. package/coverage/lcov-report/threads/automation.js.html +1 -1
  142. package/coverage/lcov-report/threads/index.html +1 -1
  143. package/coverage/lcov-report/threads/index.js.html +1 -1
  144. package/coverage/lcov-report/threads/query.js.html +1 -1
  145. package/coverage/lcov-report/threads/utils.js.html +1 -1
  146. package/coverage/lcov-report/utilities/bcrypt.js.html +1 -1
  147. package/coverage/lcov-report/utilities/budibaseDir.js.html +1 -1
  148. package/coverage/lcov-report/utilities/centralPath.js.html +1 -1
  149. package/coverage/lcov-report/utilities/csvParser.js.html +1 -1
  150. package/coverage/lcov-report/utilities/global.js.html +1 -1
  151. package/coverage/lcov-report/utilities/index.html +5 -5
  152. package/coverage/lcov-report/utilities/index.js.html +4 -4
  153. package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +1 -1
  154. package/coverage/lcov-report/utilities/queue/index.html +1 -1
  155. package/coverage/lcov-report/utilities/routing/index.html +1 -1
  156. package/coverage/lcov-report/utilities/routing/index.js.html +1 -1
  157. package/coverage/lcov-report/utilities/rowProcessor/index.html +1 -1
  158. package/coverage/lcov-report/utilities/rowProcessor/index.js.html +1 -1
  159. package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +1 -1
  160. package/coverage/lcov-report/utilities/scriptRunner.js.html +1 -1
  161. package/coverage/lcov-report/utilities/security.js.html +1 -1
  162. package/coverage/lcov-report/utilities/statusCodes.js.html +1 -1
  163. package/coverage/lcov-report/utilities/users.js.html +1 -1
  164. package/coverage/lcov-report/utilities/workerRequests.js.html +1 -1
  165. package/coverage/lcov.info +103 -98
  166. package/dist/api/controllers/query.js +4 -1
  167. package/dist/environment.js +1 -0
  168. package/dist/integrations/dynamodb.js +19 -0
  169. package/dist/integrations/s3.js +17 -8
  170. package/dist/package.json +4 -4
  171. package/dist/tsconfig.tsbuildinfo +1 -1
  172. package/dist/utilities/index.js +1 -1
  173. package/package.json +5 -5
  174. package/src/api/controllers/query.js +4 -1
  175. package/src/environment.js +1 -0
  176. package/src/integrations/dynamodb.ts +18 -0
  177. package/src/integrations/oracle.ts +1 -1
  178. package/src/integrations/s3.ts +18 -7
  179. package/src/utilities/index.js +1 -1
@@ -1267,7 +1267,7 @@ https://github.com/highlightjs/highlight.js/issues/2877`));var de=J;function ee(
1267
1267
  This action cannot be undone.`)},m(o,l){E(o,e,l),E(o,n,l),k(n,i),k(n,a),E(o,s,l)},p(o,l){l&1&&r!==(r=o[0].name+"")&&Ce(i,r)},d(o){o&&S(e),o&&S(n),o&&S(s)}}}function lie(t){let e,n,r,i,a,s;e=new jn({props:{$$slots:{control:[sie],default:[aie]},$$scope:{ctx:t}}});let o={okText:"Delete Automation",onOk:t[3],title:"Confirm Deletion",$$slots:{default:[oie]},$$scope:{ctx:t}};r=new xn({props:o}),t[4](r);let l={automation:t[0]};return a=new nie({props:l}),t[5](a),{c(){w(e.$$.fragment),n=I(),w(r.$$.fragment),i=I(),w(a.$$.fragment)},m(u,c){C(e,u,c),E(u,n,c),C(r,u,c),E(u,i,c),C(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){h(e.$$.fragment,u),h(r.$$.fragment,u),h(a.$$.fragment,u),s=!1},d(u){$(e,u),u&&S(n),t[4](null),$(r,u),u&&S(i),t[5](null),$(a,u)}}}function uie(t,e,n){let r;oe(t,Rt,c=>n(6,r=c));let{automation:i}=e,a,s;async function o(){await Dt.actions.delete(i),Me.success("Automation deleted."),r("../automate")}function l(c){Z[c?"unshift":"push"](()=>{a=c,n(1,a)})}function u(c){Z[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 cie extends ae{constructor(e){super();se(this,e,uie,lie,te,{automation:0})}}function LT(t,e,n){const r=t.slice();return r[5]=e[n],r[7]=n,r}function fie(t){let e,n,r;return e=new cie({props:{automation:t[5]}}),{c(){w(e.$$.fragment),n=I()},m(i,a){C(e,i,a),E(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){h(e.$$.fragment,i),r=!1},d(i){$(e,i),i&&S(n)}}}function PT(t){let e,n;function r(){return t[3](t[5])}return e=new Ai({props:{border:t[7]>0,icon:"ShareAndroid",text:t[5].name,selected:t[5]._id===t[1],$$slots:{default:[fie]},$$scope:{ctx:t}}}),e.$on("click",r),{c(){w(e.$$.fragment)},m(i,a){C(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){h(e.$$.fragment,i),n=!1},d(i){$(e,i)}}}function die(t){let e,n,r=t[0].automations,i=[];for(let s=0;s<r.length;s+=1)i[s]=PT(LT(t,r,s));const a=s=>h(i[s],1,1,()=>{i[s]=null});return{c(){e=M("div");for(let s=0;s<i.length;s+=1)i[s].c();T(e,"class","automations-list svelte-g64vb")},m(s,o){E(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=LT(s,r,l);i[l]?(i[l].p(u,o),m(i[l],1)):(i[l]=PT(u),i[l].c(),m(i[l],1),i[l].m(e,null))}for(re(),l=r.length;l<i.length;l+=1)a(l);ie()}},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)h(i[o]);n=!1},d(s){s&&S(e),at(i,s)}}}function pie(t,e,n){let r,i,a;oe(t,Rt,l=>n(4,i=l)),oe(t,Dt,l=>n(0,a=l)),qt(()=>{Dt.actions.fetch()});function s(l){Dt.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 _ie extends ae{constructor(e){super();se(this,e,pie,die,te,{})}}function UT(t,e,n){const r=t.slice();return r[17]=e[n][0],r[18]=e[n][1],r}function mie(t){let e;return{c(){e=Y(`Please name your automation, then select a trigger. Every automation must
1268
1268
  start with a trigger.`)},m(n,r){E(n,e,r)},d(n){n&&S(e)}}}function gie(t){let e;return{c(){e=Y("Triggers")},m(n,r){E(n,e,r)},d(n){n&&S(e)}}}function hie(t){let e=t[18].name+"",n;return{c(){n=Y(e)},m(r,i){E(r,n,i)},p(r,i){i&8&&e!==(e=r[18].name+"")&&Ce(n,e)},d(r){r&&S(n)}}}function BT(t){let e,n,r,i,a,s,o,l,u,c;r=new nt({props:{name:t[18].icon}}),s=new Ye({props:{size:"S",$$slots:{default:[hie]},$$scope:{ctx:t}}});function f(){return t[13](t[18])}return{c(){e=M("div"),n=M("div"),w(r.$$.fragment),i=I(),a=M("span"),w(s.$$.fragment),o=I(),T(a,"class","icon-spacing svelte-d3iboa"),T(n,"class","item-body svelte-d3iboa"),T(e,"class","item svelte-d3iboa"),ne(e,"selected",t[2]===t[18].name)},m(d,p){E(d,e,p),k(e,n),C(r,n,null),k(n,i),k(n,a),C(s,a,null),k(e,o),l=!0,u||(c=we(e,"click",f),u=!0)},p(d,p){t=d;const _={};p&8&&(_.name=t[18].icon),r.$set(_);const g={};p&2097160&&(g.$$scope={dirty:p,ctx:t}),s.$set(g),p&12&&ne(e,"selected",t[2]===t[18].name)},i(d){l||(m(r.$$.fragment,d),m(s.$$.fragment,d),l=!0)},o(d){h(r.$$.fragment,d),h(s.$$.fragment,d),l=!1},d(d){d&&S(e),$(r),$(s),u=!1,c()}}}function bie(t){let e,n,r,i;e=new Ye({props:{size:"S",$$slots:{default:[gie]},$$scope:{ctx:t}}});let a=t[3],s=[];for(let l=0;l<a.length;l+=1)s[l]=BT(UT(t,a,l));const o=l=>h(s[l],1,1,()=>{s[l]=null});return{c(){w(e.$$.fragment),n=I(),r=M("div");for(let l=0;l<s.length;l+=1)s[l].c();T(r,"class","item-list svelte-d3iboa")},m(l,u){C(e,l,u),E(l,n,u),E(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=UT(l,a,f);s[f]?(s[f].p(d,u),m(s[f],1)):(s[f]=BT(d),s[f].c(),m(s[f],1),s[f].m(r,null))}for(re(),f=a.length;f<s.length;f+=1)o(f);ie()}},i(l){if(!i){m(e.$$.fragment,l);for(let u=0;u<a.length;u+=1)m(s[u]);i=!0}},o(l){h(e.$$.fragment,l),s=s.filter(Boolean);for(let u=0;u<s.length;u+=1)h(s[u]);i=!1},d(l){$(e,l),l&&S(n),l&&S(r),at(s,l)}}}function vie(t){let e,n,r,i,a,s,o,l,u,c;e=new ac({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 Ye({props:{size:"XS",$$slots:{default:[mie]},$$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 We({props:p}),Z.push(()=>fe(a,"value",f)),Z.push(()=>fe(a,"error",d)),a.$on("change",t[12]),u=new qe({props:{noPadding:!0,$$slots:{default:[bie]},$$scope:{ctx:t}}}),{c(){w(e.$$.fragment),n=I(),w(r.$$.fragment),i=I(),w(a.$$.fragment),l=I(),w(u.$$.fragment)},m(_,g){C(e,_,g),E(_,n,g),C(r,_,g),E(_,i,g),C(a,_,g),E(_,l,g),C(u,_,g),c=!0},p(_,g){const b={};g&2097152&&(b.$$scope={dirty:g,ctx:_}),r.$set(b);const v={};!s&&g&1&&(s=!0,v.value=_[0],pe(()=>s=!1)),!o&&g&16&&(o=!0,v.error=_[4],pe(()=>o=!1)),a.$set(v);const y={};g&2097164&&(y.$$scope={dirty:g,ctx:_}),u.$set(y)},i(_){c||(m(e.$$.fragment,_),m(r.$$.fragment,_),m(a.$$.fragment,_),m(u.$$.fragment,_),c=!0)},o(_){h(e.$$.fragment,_),h(r.$$.fragment,_),h(a.$$.fragment,_),h(u.$$.fragment,_),c=!1},d(_){$(e,_),_&&S(n),$(r,_),_&&S(i),$(a,_),_&&S(l),$(u,_)}}}function Eie(t){let e,n;return e=new $t({props:{title:"Create Automation",confirmText:"Save",size:"M",onConfirm:t[5],disabled:!t[2]||!t[0],$$slots:{default:[vie]},$$scope:{ctx:t}}}),{c(){w(e.$$.fragment)},m(r,i){C(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){h(e.$$.fragment,r),n=!1},d(r){$(e,r)}}}function Sie(t,e,n){let r,i,a,s,o,l;oe(t,Dt,O=>n(8,s=O)),oe(t,Rt,O=>n(16,o=O)),oe(t,la,O=>n(9,l=O));let u,c,f=!1,d,{webhookModal:p}=e;async function _(){var N;await Dt.actions.create({name:u,instanceId:r});const O=s.selectedAutomation.constructBlock("TRIGGER",d.stepId,d);Dt.actions.addBlockToAutomation(O),d.stepId==="WEBHOOK"&&p.show,await Dt.actions.save((N=s.selectedAutomation)==null?void 0:N.automation),Me.success(`Automation ${u} created.`),o(`./${s.selectedAutomation.automation._id}`),mn.captureEvent(On.AUTOMATION.CREATED,{name:u})}const g=O=>{d=O,n(2,c=O.name)};function b(O){u=O,n(0,u)}function v(O){i=O,n(4,i),n(1,f),n(0,u)}const y=()=>n(1,f=!0),R=O=>g(O);return t.$$set=O=>{"webhookModal"in O&&n(7,p=O.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,_,g,p,s,l,b,v,y,R]}class FT extends ae{constructor(e){super();se(this,e,Sie,Eie,te,{webhookModal:7})}}function yie(t){let e,n;return e=new FT({props:{webhookModal:t[1]}}),{c(){w(e.$$.fragment)},m(r,i){C(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){h(e.$$.fragment,r),n=!1},d(r){$(e,r)}}}function Tie(t){let e,n,r,i,a;n=new _ie({});let s={$$slots:{default:[yie]},$$scope:{ctx:t}};return i=new vt({props:s}),t[2](i),{c(){e=M("div"),w(n.$$.fragment),r=I(),w(i.$$.fragment),T(e,"class","tab-content-padding svelte-1r2f9up")},m(o,l){E(o,e,l),C(n,e,null),k(e,r),C(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){h(n.$$.fragment,o),h(i.$$.fragment,o),a=!1},d(o){o&&S(e),$(n),t[2](null),$(i)}}}function wie(t){let e,n;return e=new Mn({props:{title:"Automations",$$slots:{default:[Tie]},$$scope:{ctx:t}}}),{c(){w(e.$$.fragment)},m(r,i){C(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){h(e.$$.fragment,r),n=!1},d(r){$(e,r)}}}function Cie(t){let e,n,r,i,a,s;return n=new zr({props:{selected:"Automations",$$slots:{default:[wie]},$$scope:{ctx:t}}}),a=new nt({props:{hoverable:!0,name:"AddCircle"}}),a.$on("click",function(){et(t[0].show)&&t[0].show.apply(this,arguments)}),{c(){e=M("div"),w(n.$$.fragment),r=I(),i=M("div"),w(a.$$.fragment),T(i,"class","add-button svelte-1r2f9up"),T(i,"data-cy","new-screen"),T(e,"class","title svelte-1r2f9up")},m(o,l){E(o,e,l),C(n,e,null),k(e,r),k(e,i),C(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){h(n.$$.fragment,o),h(a.$$.fragment,o),s=!1},d(o){o&&S(e),$(n),$(a)}}}function $ie(t,e,n){let{modal:r}=e,{webhookModal:i}=e;function a(s){Z[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 Oie extends ae{constructor(e){super();se(this,e,$ie,Cie,te,{modal:0,webhookModal:1})}}function Nie(t){let e,n,r,i;return r=new qe({props:{gap:"S",justifyItems:"center",$$slots:{default:[Die]},$$scope:{ctx:t}}}),{c(){e=M("div"),n=M("div"),w(r.$$.fragment),T(n,"class","main svelte-16gumu0"),T(e,"class","centered svelte-16gumu0")},m(a,s){E(a,e,s),k(e,n),C(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){h(r.$$.fragment,a),i=!1},d(a){a&&S(e),$(r)}}}function Rie(t){let e;const n=t[4].default,r=ut(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)&&ct(r,n,i,i[8],e?dt(n,i[8],a,null):ft(i[8]),null)},i(i){e||(m(r,i),e=!0)},o(i){h(r,i),e=!1},d(i){r&&r.d(i)}}}function Aie(t){let e;return{c(){e=Y("You have no automations")},m(n,r){E(n,e,r)},d(n){n&&S(e)}}}function kie(t){let e;return{c(){e=Y("Let's fix that. Call the bots!")},m(n,r){E(n,e,r)},d(n){n&&S(e)}}}function Iie(t){let e;return{c(){e=Y("Create automation")},m(n,r){E(n,e,r)},d(n){n&&S(e)}}}function Die(t){let e,n,r,i,a,s,o,l,u;return i=new mt({props:{size:"M",$$slots:{default:[Aie]},$$scope:{ctx:t}}}),s=new Ye({props:{size:"M",$$slots:{default:[kie]},$$scope:{ctx:t}}}),l=new lt({props:{size:"M",cta:!0,$$slots:{default:[Iie]},$$scope:{ctx:t}}}),l.$on("click",t[5]),{c(){e=ge("svg"),n=ge("use"),r=I(),w(i.$$.fragment),a=I(),w(s.$$.fragment),o=I(),w(l.$$.fragment),Yt(n,"xlink:href","#spectrum-icon-18-WorkflowAdd"),T(e,"width","60px"),T(e,"height","60px"),T(e,"class","spectrum-Icon"),T(e,"focusable","false")},m(c,f){E(c,e,f),k(e,n),E(c,r,f),C(i,c,f),E(c,a,f),C(s,c,f),E(c,o,f),C(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){h(i.$$.fragment,c),h(s.$$.fragment,c),h(l.$$.fragment,c),u=!1},d(c){c&&S(e),c&&S(r),$(i,c),c&&S(a),$(s,c),c&&S(o),$(l,c)}}}function Mie(t){let e,n;return e=new FT({props:{webhookModal:t[1]}}),{c(){w(e.$$.fragment)},m(r,i){C(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){h(e.$$.fragment,r),n=!1},d(r){$(e,r)}}}function Lie(t){let e,n;return e=new Md({}),{c(){w(e.$$.fragment)},m(r,i){C(e,r,i),n=!0},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){$(e,r)}}}function Pie(t){let e,n,r,i,a,s,o,l,u,c,f,d;r=new Oie({props:{modal:t[0],webhookModal:t[1]}});const p=[Rie,Nie],_=[];function g(y,R){return y[2]?0:1}s=g(t),o=_[s]=p[s](t);let b={$$slots:{default:[Mie]},$$scope:{ctx:t}};u=new vt({props:b}),t[6](u);let v={width:"30%",$$slots:{default:[Lie]},$$scope:{ctx:t}};return f=new vt({props:v}),t[7](f),{c(){e=M("div"),n=M("div"),w(r.$$.fragment),i=I(),a=M("div"),o.c(),l=I(),w(u.$$.fragment),c=I(),w(f.$$.fragment),T(n,"class","nav svelte-16gumu0"),T(a,"class","content svelte-16gumu0"),T(e,"class","root svelte-16gumu0")},m(y,R){E(y,e,R),k(e,n),C(r,n,null),k(e,i),k(e,a),_[s].m(a,null),k(e,l),C(u,e,null),k(e,c),C(f,e,null),d=!0},p(y,[R]){const O={};R&1&&(O.modal=y[0]),R&2&&(O.webhookModal=y[1]),r.$set(O);let N=s;s=g(y),s===N?_[s].p(y,R):(re(),h(_[N],1,1,()=>{_[N]=null}),ie(),o=_[s],o?o.p(y,R):(o=_[s]=p[s](y),o.c()),m(o,1),o.m(a,null));const D={};R&258&&(D.$$scope={dirty:R,ctx:y}),u.$set(D);const F={};R&256&&(F.$$scope={dirty:R,ctx:y}),f.$set(F)},i(y){d||(m(r.$$.fragment,y),m(o),m(u.$$.fragment,y),m(f.$$.fragment,y),d=!0)},o(y){h(r.$$.fragment,y),h(o),h(u.$$.fragment,y),h(f.$$.fragment,y),d=!1},d(y){y&&S(e),$(r),_[s].d(),t[6](null),$(u),t[7](null),$(f)}}}function Uie(t,e,n){let r,i;oe(t,Dt,d=>n(3,i=d));let{$$slots:a={},$$scope:s}=e,o,l;const u=()=>o.show();function c(d){Z[d?"unshift":"push"](()=>{o=d,n(0,o)})}function f(d){Z[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 Bie extends ae{constructor(e){super();se(this,e,Uie,Pie,te,{})}}function Fie(t){let e;return{c(){e=Y("Publish")},m(n,r){E(n,e,r)},d(n){n&&S(e)}}}function qie(t){let e,n;return e=new $t({props:{title:"Enjoying Budibase?",size:"L",showConfirmButton:!1,showCancelButton:!1}}),{c(){w(e.$$.fragment)},m(r,i){C(e,r,i),n=!0},p:ye,i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),n=!1},d(r){$(e,r)}}}function Gie(t){let e;return{c(){e=M("span"),e.textContent=`The changes you have made will be published to the production version of
1269
1269
  the application.`},m(n,r){E(n,e,r)},d(n){n&&S(e)}}}function Yie(t){let e,n;return e=new $t({props:{title:"Publish to Production",confirmText:"Publish",onConfirm:t[2],$$slots:{default:[Gie]},$$scope:{ctx:t}}}),{c(){w(e.$$.fragment)},m(r,i){C(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){h(e.$$.fragment,r),n=!1},d(r){$(e,r)}}}function zie(t){let e,n,r,i,a,s;e=new lt({props:{secondary:!0,$$slots:{default:[Fie]},$$scope:{ctx:t}}}),e.$on("click",function(){et(t[1].show)&&t[1].show.apply(this,arguments)});let o={$$slots:{default:[qie]},$$scope:{ctx:t}};r=new vt({props:o}),t[3](r);let l={$$slots:{default:[Yie]},$$scope:{ctx:t}};return a=new vt({props:l}),t[4](a),{c(){w(e.$$.fragment),n=I(),w(r.$$.fragment),i=I(),w(a.$$.fragment)},m(u,c){C(e,u,c),E(u,n,c),C(r,u,c),E(u,i,c),C(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){h(e.$$.fragment,u),h(r.$$.fragment,u),h(a.$$.fragment,u),s=!1},d(u){$(e,u),u&&S(n),t[3](null),$(r,u),u&&S(i),t[4](null),$(a,u)}}}function Vie(t,e,n){let r;oe(t,Pe,u=>n(5,r=u));let i,a;async function s(){try{const u=await Ve.post("/api/deploy");if(u.status!==200)throw new Error(`status ${u.status}`);mn.captureEvent(On.APP.PUBLISHED,{appId:r.appId}),Me.success("Application published successfully")}catch(u){mn.captureException(u),Me.error(`Error publishing app: ${u}`)}}function o(u){Z[u?"unshift":"push"](()=>{i=u,n(0,i)})}function l(u){Z[u?"unshift":"push"](()=>{a=u,n(1,a)})}return[i,a,s,o,l]}class jie extends ae{constructor(e){super();se(this,e,Vie,zie,te,{})}}function Hie(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 We({props:u}),Z.push(()=>fe(a,"value",l)),{c(){e=M("span"),e.textContent=`The changes you have made will be deleted and the application reverted
1270
- back to its production state.`,n=I(),r=M("span"),r.textContent="Please enter your app name to continue.",i=I(),w(a.$$.fragment)},m(c,f){E(c,e,f),E(c,n,f),E(c,r,f),E(c,i,f),C(a,c,f),o=!0},p(c,f){const d={};!s&&f&4&&(s=!0,d.value=c[2],pe(()=>s=!1)),a.$set(d)},i(c){o||(m(a.$$.fragment,c),o=!0)},o(c){h(a.$$.fragment,c),o=!1},d(c){c&&S(e),c&&S(n),c&&S(r),c&&S(i),$(a,c)}}}function xie(t){let e,n;return e=new $t({props:{title:"Revert Changes",confirmText:"Revert",onConfirm:t[3],disabled:t[2]!==t[0].name,$$slots:{default:[Hie]},$$scope:{ctx:t}}}),{c(){w(e.$$.fragment)},m(r,i){C(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){h(e.$$.fragment,r),n=!1},d(r){$(e,r)}}}function Wie(t){let e,n,r,i;e=new nt({props:{name:"Revert",hoverable:!0}}),e.$on("click",function(){et(t[1].show)&&t[1].show.apply(this,arguments)});let a={$$slots:{default:[xie]},$$scope:{ctx:t}};return r=new vt({props:a}),t[5](r),{c(){w(e.$$.fragment),n=I(),w(r.$$.fragment)},m(s,o){C(e,s,o),E(s,n,o),C(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){h(e.$$.fragment,s),h(r.$$.fragment,s),i=!1},d(s){$(e,s),s&&S(n),t[5](null),$(r,s)}}}function Qie(t,e,n){let r,i;oe(t,Pe,c=>n(0,i=c));let a,s;const o=async()=>{try{const c=await Ve.post(`/api/dev/${r}/revert`),f=await c.json();if(c.status!==200)throw f.message;const d=await Ve.get(`/api/applications/${r}/appPackage`),p=await d.json();if(d.ok)await Pe.actions.initialise(p);else throw new Error(p);Me.info("Changes reverted.")}catch(c){Me.error(`Error reverting changes: ${c}`)}};function l(c){s=c,n(2,s)}function u(c){Z[c?"unshift":"push"](()=>{a=c,n(1,a)})}return t.$$.update=()=>{t.$$.dirty&1&&(r=i.appId)},[i,a,s,o,l,u]}class Kie extends ae{constructor(e){super();se(this,e,Qie,Wie,te,{})}}const Xie="@budibase/client",Zie="1.0.29",Jie="MPL-2.0",eae="dist/budibase-client.js",tae="dist/budibase-client.js",nae="module",rae="src/index.js",iae={".":{import:"./dist/budibase-client.js",require:"./dist/budibase-client.js"},"./package.json":"./package.json","./manifest.json":"./manifest.json"},aae={build:"rollup -c","dev:builder":"rollup -cw"},sae={"@budibase/bbui":"^1.0.29","@budibase/standard-components":"^0.9.139","@budibase/string-templates":"^1.0.29",regexparam:"^1.3.0",shortid:"^2.2.15","svelte-spa-router":"^3.0.5"},oae={"@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/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-node-builtins":"^2.1.2","rollup-plugin-node-globals":"^1.4.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"},lae="d1836a898cab3f8ab80ee6d8f42be1a9eed7dcdc";var Ld={name:Xie,version:Zie,license:Jie,module:eae,main:tae,type:nae,svelte:rae,exports:iae,scripts:aae,dependencies:sae,devDependencies:oae,gitHead:lae};function uae(t){let e,n;return e=new Ye({props:{size:"S",$$slots:{default:[fae]},$$scope:{ctx:t}}}),{c(){w(e.$$.fragment)},m(r,i){C(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){h(e.$$.fragment,r),n=!1},d(r){$(e,r)}}}function cae(t){let e,n;return e=new Ye({props:{size:"S",$$slots:{default:[dae]},$$scope:{ctx:t}}}),{c(){w(e.$$.fragment)},m(r,i){C(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){h(e.$$.fragment,r),n=!1},d(r){$(e,r)}}}function fae(t){let e,n,r=t[0].version+"",i,a;return{c(){e=Y("This app is currently using version "),n=M("b"),i=Y(r),a=Y(` which is the
1270
+ back to its production state.`,n=I(),r=M("span"),r.textContent="Please enter your app name to continue.",i=I(),w(a.$$.fragment)},m(c,f){E(c,e,f),E(c,n,f),E(c,r,f),E(c,i,f),C(a,c,f),o=!0},p(c,f){const d={};!s&&f&4&&(s=!0,d.value=c[2],pe(()=>s=!1)),a.$set(d)},i(c){o||(m(a.$$.fragment,c),o=!0)},o(c){h(a.$$.fragment,c),o=!1},d(c){c&&S(e),c&&S(n),c&&S(r),c&&S(i),$(a,c)}}}function xie(t){let e,n;return e=new $t({props:{title:"Revert Changes",confirmText:"Revert",onConfirm:t[3],disabled:t[2]!==t[0].name,$$slots:{default:[Hie]},$$scope:{ctx:t}}}),{c(){w(e.$$.fragment)},m(r,i){C(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){h(e.$$.fragment,r),n=!1},d(r){$(e,r)}}}function Wie(t){let e,n,r,i;e=new nt({props:{name:"Revert",hoverable:!0}}),e.$on("click",function(){et(t[1].show)&&t[1].show.apply(this,arguments)});let a={$$slots:{default:[xie]},$$scope:{ctx:t}};return r=new vt({props:a}),t[5](r),{c(){w(e.$$.fragment),n=I(),w(r.$$.fragment)},m(s,o){C(e,s,o),E(s,n,o),C(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){h(e.$$.fragment,s),h(r.$$.fragment,s),i=!1},d(s){$(e,s),s&&S(n),t[5](null),$(r,s)}}}function Qie(t,e,n){let r,i;oe(t,Pe,c=>n(0,i=c));let a,s;const o=async()=>{try{const c=await Ve.post(`/api/dev/${r}/revert`),f=await c.json();if(c.status!==200)throw f.message;const d=await Ve.get(`/api/applications/${r}/appPackage`),p=await d.json();if(d.ok)await Pe.actions.initialise(p);else throw new Error(p);Me.info("Changes reverted.")}catch(c){Me.error(`Error reverting changes: ${c}`)}};function l(c){s=c,n(2,s)}function u(c){Z[c?"unshift":"push"](()=>{a=c,n(1,a)})}return t.$$.update=()=>{t.$$.dirty&1&&(r=i.appId)},[i,a,s,o,l,u]}class Kie extends ae{constructor(e){super();se(this,e,Qie,Wie,te,{})}}const Xie="@budibase/client",Zie="1.0.33",Jie="MPL-2.0",eae="dist/budibase-client.js",tae="dist/budibase-client.js",nae="module",rae="src/index.js",iae={".":{import:"./dist/budibase-client.js",require:"./dist/budibase-client.js"},"./package.json":"./package.json","./manifest.json":"./manifest.json"},aae={build:"rollup -c","dev:builder":"rollup -cw"},sae={"@budibase/bbui":"^1.0.33","@budibase/standard-components":"^0.9.139","@budibase/string-templates":"^1.0.33",regexparam:"^1.3.0",shortid:"^2.2.15","svelte-spa-router":"^3.0.5"},oae={"@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/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-node-builtins":"^2.1.2","rollup-plugin-node-globals":"^1.4.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"},lae="d1836a898cab3f8ab80ee6d8f42be1a9eed7dcdc";var Ld={name:Xie,version:Zie,license:Jie,module:eae,main:tae,type:nae,svelte:rae,exports:iae,scripts:aae,dependencies:sae,devDependencies:oae,gitHead:lae};function uae(t){let e,n;return e=new Ye({props:{size:"S",$$slots:{default:[fae]},$$scope:{ctx:t}}}),{c(){w(e.$$.fragment)},m(r,i){C(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){h(e.$$.fragment,r),n=!1},d(r){$(e,r)}}}function cae(t){let e,n;return e=new Ye({props:{size:"S",$$slots:{default:[dae]},$$scope:{ctx:t}}}),{c(){w(e.$$.fragment)},m(r,i){C(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){h(e.$$.fragment,r),n=!1},d(r){$(e,r)}}}function fae(t){let e,n,r=t[0].version+"",i,a;return{c(){e=Y("This app is currently using version "),n=M("b"),i=Y(r),a=Y(` which is the
1271
1271
  latest version available.`)},m(s,o){E(s,e,o),E(s,n,o),k(n,i),E(s,a,o)},p(s,o){o&1&&r!==(r=s[0].version+"")&&Ce(i,r)},d(s){s&&S(e),s&&S(n),s&&S(a)}}}function dae(t){let e,n,r=t[0].version+"",i,a,s,o;return{c(){e=Y("This app is currently using version "),n=M("b"),i=Y(r),a=Y(`, but version
1272
1272
  `),s=M("b"),s.textContent=`${Ld.version}`,o=Y(` is available. Updates can contain new features,
1273
1273
  performance improvements and bug fixes.`)},m(l,u){E(l,e,u),E(l,n,u),k(n,i),E(l,a,u),E(l,s,u),E(l,o,u)},p(l,u){u&1&&r!==(r=l[0].version+"")&&Ce(i,r)},d(l){l&&S(e),l&&S(n),l&&S(a),l&&S(s),l&&S(o)}}}function qT(t){let e,n;return e=new Ye({props:{size:"S",$$slots:{default:[pae]},$$scope:{ctx:t}}}),{c(){w(e.$$.fragment)},m(r,i){C(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){h(e.$$.fragment,r),n=!1},d(r){$(e,r)}}}function pae(t){let e,n,r=t[0].revertableVersion+"",i,a;return{c(){e=Y(`You can revert this app to version
@@ -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.2ccab04a.js"></script>
13
+ <script type="module" crossorigin src="/builder/assets/index.9b7f029a.js"></script>
14
14
  <link rel="modulepreload" href="/builder/assets/vendor.470042a4.js">
15
15
  <link rel="stylesheet" href="/builder/assets/vendor.5e1fe644.css">
16
16
  <link rel="stylesheet" href="/builder/assets/index.4fb3f887.css">
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1640891124058" clover="3.2.0">
3
- <project timestamp="1640891124058" name="All files">
4
- <metrics statements="4393" coveredstatements="3244" conditionals="1752" coveredconditionals="951" methods="624" coveredmethods="442" elements="6769" coveredelements="4637" complexity="0" loc="4393" ncloc="4393" packages="20" files="139" classes="139"/>
2
+ <coverage generated="1641300527319" clover="3.2.0">
3
+ <project timestamp="1641300527319" name="All files">
4
+ <metrics statements="4394" coveredstatements="3245" conditionals="1756" coveredconditionals="954" methods="624" coveredmethods="442" elements="6774" coveredelements="4641" complexity="0" loc="4394" ncloc="4394" packages="20" files="139" classes="139"/>
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">
@@ -38,7 +38,7 @@
38
38
  </file>
39
39
  </package>
40
40
  <package name="api.controllers">
41
- <metrics statements="1110" coveredstatements="797" conditionals="369" coveredconditionals="169" methods="153" coveredmethods="109"/>
41
+ <metrics statements="1111" coveredstatements="798" conditionals="371" coveredconditionals="171" methods="153" coveredmethods="109"/>
42
42
  <file name="analytics.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/analytics.js">
43
43
  <metrics statements="13" coveredstatements="6" conditionals="13" coveredconditionals="4" methods="2" coveredmethods="1"/>
44
44
  <line num="1" count="23" type="stmt"/>
@@ -824,77 +824,78 @@
824
824
  <line num="170" count="1" type="stmt"/>
825
825
  </file>
826
826
  <file name="query.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/query.js">
827
- <metrics statements="70" coveredstatements="59" conditionals="25" coveredconditionals="12" methods="9" coveredmethods="9"/>
827
+ <metrics statements="71" coveredstatements="60" conditionals="27" coveredconditionals="14" methods="9" coveredmethods="9"/>
828
828
  <line num="1" count="34" type="stmt"/>
829
829
  <line num="2" count="34" type="stmt"/>
830
830
  <line num="7" count="34" type="stmt"/>
831
831
  <line num="8" count="34" type="stmt"/>
832
832
  <line num="9" count="34" type="stmt"/>
833
- <line num="11" count="34" type="stmt"/>
834
- <line num="15" count="5" type="stmt"/>
835
- <line num="16" count="5" type="cond" truecount="2" falsecount="0"/>
836
- <line num="17" count="5" type="stmt"/>
837
- <line num="18" count="4" type="cond" truecount="1" falsecount="1"/>
838
- <line num="19" count="4" type="stmt"/>
839
- <line num="22" count="5" type="cond" truecount="2" falsecount="0"/>
840
- <line num="25" count="34" type="stmt"/>
841
- <line num="26" count="2" type="stmt"/>
842
- <line num="28" count="2" type="stmt"/>
843
- <line num="33" count="2" type="stmt"/>
844
- <line num="36" count="34" type="stmt"/>
845
- <line num="37" count="20" type="stmt"/>
846
- <line num="38" count="20" type="stmt"/>
847
- <line num="40" count="20" type="cond" truecount="1" falsecount="1"/>
833
+ <line num="10" count="34" type="stmt"/>
834
+ <line num="12" count="34" type="stmt"/>
835
+ <line num="18" count="5" type="stmt"/>
836
+ <line num="19" count="5" type="cond" truecount="2" falsecount="0"/>
837
+ <line num="20" count="5" type="stmt"/>
838
+ <line num="21" count="4" type="cond" truecount="1" falsecount="1"/>
839
+ <line num="22" count="4" type="stmt"/>
840
+ <line num="25" count="5" type="cond" truecount="2" falsecount="0"/>
841
+ <line num="28" count="34" type="stmt"/>
842
+ <line num="29" count="2" type="stmt"/>
843
+ <line num="31" count="2" type="stmt"/>
844
+ <line num="36" count="2" type="stmt"/>
845
+ <line num="39" count="34" type="stmt"/>
846
+ <line num="40" count="20" type="stmt"/>
848
847
  <line num="41" count="20" type="stmt"/>
848
+ <line num="43" count="20" type="cond" truecount="1" falsecount="1"/>
849
849
  <line num="44" count="20" type="stmt"/>
850
- <line num="45" count="20" type="stmt"/>
851
850
  <line num="47" count="20" type="stmt"/>
852
851
  <line num="48" count="20" type="stmt"/>
853
- <line num="52" count="4" type="stmt"/>
852
+ <line num="50" count="20" type="stmt"/>
853
+ <line num="51" count="20" type="stmt"/>
854
854
  <line num="55" count="4" type="stmt"/>
855
- <line num="56" count="0" type="cond" truecount="0" falsecount="2"/>
856
- <line num="57" count="0" type="stmt"/>
855
+ <line num="58" count="4" type="stmt"/>
857
856
  <line num="59" count="0" type="cond" truecount="0" falsecount="2"/>
858
- <line num="61" count="0" type="stmt"/>
857
+ <line num="60" count="0" type="stmt"/>
859
858
  <line num="62" count="0" type="cond" truecount="0" falsecount="2"/>
860
859
  <line num="64" count="0" type="stmt"/>
861
- <line num="68" count="0" type="stmt"/>
862
- <line num="72" count="4" type="cond" truecount="1" falsecount="1"/>
863
- <line num="77" count="0" type="stmt"/>
864
- <line num="78" count="0" type="stmt"/>
865
- <line num="84" count="0" type="stmt"/>
866
- <line num="86" count="0" type="stmt"/>
867
- <line num="89" count="4" type="stmt"/>
868
- <line num="92" count="34" type="stmt"/>
869
- <line num="93" count="3" type="stmt"/>
870
- <line num="94" count="3" type="stmt"/>
871
- <line num="96" count="3" type="cond" truecount="2" falsecount="0"/>
872
- <line num="97" count="1" type="stmt"/>
873
- <line num="98" count="1" type="stmt"/>
874
- <line num="100" count="3" type="stmt"/>
875
- <line num="103" count="34" type="stmt"/>
876
- <line num="104" count="2" type="stmt"/>
877
- <line num="106" count="2" type="stmt"/>
878
- <line num="108" count="2" type="stmt"/>
860
+ <line num="65" count="0" type="cond" truecount="0" falsecount="2"/>
861
+ <line num="67" count="0" type="stmt"/>
862
+ <line num="71" count="0" type="stmt"/>
863
+ <line num="75" count="4" type="cond" truecount="1" falsecount="1"/>
864
+ <line num="80" count="0" type="stmt"/>
865
+ <line num="81" count="0" type="stmt"/>
866
+ <line num="87" count="0" type="stmt"/>
867
+ <line num="89" count="0" type="stmt"/>
868
+ <line num="92" count="4" type="stmt"/>
869
+ <line num="95" count="34" type="stmt"/>
870
+ <line num="96" count="3" type="stmt"/>
871
+ <line num="97" count="3" type="stmt"/>
872
+ <line num="99" count="3" type="cond" truecount="2" falsecount="0"/>
873
+ <line num="100" count="1" type="stmt"/>
874
+ <line num="101" count="1" type="stmt"/>
875
+ <line num="103" count="3" type="stmt"/>
876
+ <line num="106" count="34" type="stmt"/>
877
+ <line num="107" count="2" type="stmt"/>
879
878
  <line num="109" count="2" type="stmt"/>
880
879
  <line num="111" count="2" type="stmt"/>
881
880
  <line num="112" count="2" type="stmt"/>
882
- <line num="119" count="1" type="stmt"/>
883
- <line num="124" count="1" type="stmt"/>
884
- <line num="128" count="34" type="stmt"/>
885
- <line num="129" count="2" type="stmt"/>
886
- <line num="131" count="2" type="stmt"/>
881
+ <line num="114" count="2" type="stmt"/>
882
+ <line num="115" count="2" type="stmt"/>
883
+ <line num="122" count="1" type="stmt"/>
884
+ <line num="127" count="1" type="stmt"/>
885
+ <line num="131" count="34" type="stmt"/>
887
886
  <line num="132" count="2" type="stmt"/>
888
887
  <line num="134" count="2" type="stmt"/>
889
- <line num="140" count="2" type="stmt"/>
890
- <line num="141" count="2" type="stmt"/>
891
- <line num="147" count="1" type="stmt"/>
892
- <line num="149" count="1" type="stmt"/>
893
- <line num="153" count="34" type="stmt"/>
894
- <line num="154" count="1" type="stmt"/>
895
- <line num="155" count="1" type="stmt"/>
896
- <line num="156" count="1" type="stmt"/>
888
+ <line num="135" count="2" type="stmt"/>
889
+ <line num="137" count="2" type="stmt"/>
890
+ <line num="143" count="2" type="stmt"/>
891
+ <line num="144" count="2" type="stmt"/>
892
+ <line num="150" count="1" type="stmt"/>
893
+ <line num="152" count="1" type="stmt"/>
894
+ <line num="156" count="34" type="stmt"/>
897
895
  <line num="157" count="1" type="stmt"/>
896
+ <line num="158" count="1" type="stmt"/>
897
+ <line num="159" count="1" type="stmt"/>
898
+ <line num="160" count="1" type="stmt"/>
898
899
  </file>
899
900
  <file name="role.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/role.js">
900
901
  <metrics statements="53" coveredstatements="47" conditionals="22" coveredconditionals="14" methods="7" coveredmethods="5"/>
@@ -4368,7 +4369,7 @@
4368
4369
  </file>
4369
4370
  </package>
4370
4371
  <package name="utilities">
4371
- <metrics statements="323" coveredstatements="233" conditionals="123" coveredconditionals="67" methods="62" coveredmethods="42"/>
4372
+ <metrics statements="323" coveredstatements="233" conditionals="125" coveredconditionals="68" methods="62" coveredmethods="42"/>
4372
4373
  <file name="bcrypt.js" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/bcrypt.js">
4373
4374
  <metrics statements="9" coveredstatements="0" conditionals="2" coveredconditionals="0" methods="2" coveredmethods="0"/>
4374
4375
  <line num="3" count="0" type="stmt"/>
@@ -4534,7 +4535,7 @@
4534
4535
  <line num="95" count="0" type="stmt"/>
4535
4536
  </file>
4536
4537
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/index.js">
4537
- <metrics statements="68" coveredstatements="48" conditionals="18" coveredconditionals="7" methods="15" coveredmethods="11"/>
4538
+ <metrics statements="68" coveredstatements="48" conditionals="20" coveredconditionals="8" methods="15" coveredmethods="11"/>
4538
4539
  <line num="1" count="36" type="stmt"/>
4539
4540
  <line num="2" count="36" type="stmt"/>
4540
4541
  <line num="3" count="36" type="stmt"/>
@@ -4552,7 +4553,7 @@
4552
4553
  <line num="28" count="36" type="stmt"/>
4553
4554
  <line num="29" count="187" type="stmt"/>
4554
4555
  <line num="36" count="36" type="stmt"/>
4555
- <line num="37" count="2" type="cond" truecount="1" falsecount="1"/>
4556
+ <line num="37" count="2" type="cond" truecount="2" falsecount="2"/>
4556
4557
  <line num="39" count="2" type="stmt"/>
4557
4558
  <line num="41" count="0" type="stmt"/>
4558
4559
  <line num="55" count="36" type="stmt"/>