@budibase/server 1.0.49-alpha.7 → 1.0.49-alpha.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (178) hide show
  1. package/builder/assets/{index.b7cd931c.js → index.94a9250f.js} +1 -1
  2. package/builder/index.html +1 -1
  3. package/coverage/clover.xml +58 -66
  4. package/coverage/coverage-final.json +1 -1
  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/index.html +1 -1
  16. package/coverage/lcov-report/api/controllers/integration.js.html +1 -1
  17. package/coverage/lcov-report/api/controllers/layout.js.html +1 -1
  18. package/coverage/lcov-report/api/controllers/metadata.js.html +1 -1
  19. package/coverage/lcov-report/api/controllers/migrations.js.html +1 -1
  20. package/coverage/lcov-report/api/controllers/permission.js.html +1 -1
  21. package/coverage/lcov-report/api/controllers/query/index.html +1 -1
  22. package/coverage/lcov-report/api/controllers/query/index.js.html +1 -1
  23. package/coverage/lcov-report/api/controllers/query/validation.js.html +1 -1
  24. package/coverage/lcov-report/api/controllers/role.js.html +1 -1
  25. package/coverage/lcov-report/api/controllers/routing.js.html +1 -1
  26. package/coverage/lcov-report/api/controllers/row/external.js.html +29 -116
  27. package/coverage/lcov-report/api/controllers/row/index.html +11 -11
  28. package/coverage/lcov-report/api/controllers/row/index.js.html +1 -1
  29. package/coverage/lcov-report/api/controllers/row/internal.js.html +1 -1
  30. package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +1 -1
  31. package/coverage/lcov-report/api/controllers/row/staticFormula.js.html +1 -1
  32. package/coverage/lcov-report/api/controllers/row/utils.js.html +1 -1
  33. package/coverage/lcov-report/api/controllers/screen.js.html +1 -1
  34. package/coverage/lcov-report/api/controllers/script.js.html +1 -1
  35. package/coverage/lcov-report/api/controllers/table/bulkFormula.js.html +1 -1
  36. package/coverage/lcov-report/api/controllers/table/external.js.html +1 -1
  37. package/coverage/lcov-report/api/controllers/table/index.html +1 -1
  38. package/coverage/lcov-report/api/controllers/table/index.js.html +1 -1
  39. package/coverage/lcov-report/api/controllers/table/internal.js.html +1 -1
  40. package/coverage/lcov-report/api/controllers/table/utils.js.html +1 -1
  41. package/coverage/lcov-report/api/controllers/templates.js.html +1 -1
  42. package/coverage/lcov-report/api/controllers/user.js.html +1 -1
  43. package/coverage/lcov-report/api/controllers/view/exporters.js.html +1 -1
  44. package/coverage/lcov-report/api/controllers/view/index.html +1 -1
  45. package/coverage/lcov-report/api/controllers/view/index.js.html +1 -1
  46. package/coverage/lcov-report/api/controllers/view/utils.js.html +1 -1
  47. package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +1 -1
  48. package/coverage/lcov-report/api/controllers/webhook.js.html +1 -1
  49. package/coverage/lcov-report/api/index.html +1 -1
  50. package/coverage/lcov-report/api/index.js.html +1 -1
  51. package/coverage/lcov-report/api/routes/analytics.js.html +1 -1
  52. package/coverage/lcov-report/api/routes/apikeys.js.html +1 -1
  53. package/coverage/lcov-report/api/routes/application.js.html +1 -1
  54. package/coverage/lcov-report/api/routes/auth.js.html +1 -1
  55. package/coverage/lcov-report/api/routes/automation.js.html +1 -1
  56. package/coverage/lcov-report/api/routes/backup.js.html +1 -1
  57. package/coverage/lcov-report/api/routes/cloud.js.html +1 -1
  58. package/coverage/lcov-report/api/routes/component.js.html +1 -1
  59. package/coverage/lcov-report/api/routes/datasource.js.html +1 -1
  60. package/coverage/lcov-report/api/routes/deploy.js.html +1 -1
  61. package/coverage/lcov-report/api/routes/dev.js.html +1 -1
  62. package/coverage/lcov-report/api/routes/index.html +1 -1
  63. package/coverage/lcov-report/api/routes/index.js.html +1 -1
  64. package/coverage/lcov-report/api/routes/integration.js.html +1 -1
  65. package/coverage/lcov-report/api/routes/layout.js.html +1 -1
  66. package/coverage/lcov-report/api/routes/metadata.js.html +1 -1
  67. package/coverage/lcov-report/api/routes/migrations.js.html +1 -1
  68. package/coverage/lcov-report/api/routes/permission.js.html +1 -1
  69. package/coverage/lcov-report/api/routes/query.js.html +1 -1
  70. package/coverage/lcov-report/api/routes/role.js.html +1 -1
  71. package/coverage/lcov-report/api/routes/routing.js.html +1 -1
  72. package/coverage/lcov-report/api/routes/row.js.html +1 -1
  73. package/coverage/lcov-report/api/routes/screen.js.html +1 -1
  74. package/coverage/lcov-report/api/routes/script.js.html +1 -1
  75. package/coverage/lcov-report/api/routes/static.js.html +1 -1
  76. package/coverage/lcov-report/api/routes/table.js.html +1 -1
  77. package/coverage/lcov-report/api/routes/templates.js.html +1 -1
  78. package/coverage/lcov-report/api/routes/user.js.html +1 -1
  79. package/coverage/lcov-report/api/routes/view.js.html +1 -1
  80. package/coverage/lcov-report/api/routes/webhook.js.html +1 -1
  81. package/coverage/lcov-report/automations/actions.js.html +1 -1
  82. package/coverage/lcov-report/automations/automationUtils.js.html +1 -1
  83. package/coverage/lcov-report/automations/bullboard.js.html +1 -1
  84. package/coverage/lcov-report/automations/index.html +1 -1
  85. package/coverage/lcov-report/automations/index.js.html +1 -1
  86. package/coverage/lcov-report/automations/steps/bash.js.html +1 -1
  87. package/coverage/lcov-report/automations/steps/createRow.js.html +1 -1
  88. package/coverage/lcov-report/automations/steps/delay.js.html +1 -1
  89. package/coverage/lcov-report/automations/steps/deleteRow.js.html +1 -1
  90. package/coverage/lcov-report/automations/steps/discord.js.html +1 -1
  91. package/coverage/lcov-report/automations/steps/executeQuery.js.html +1 -1
  92. package/coverage/lcov-report/automations/steps/executeScript.js.html +1 -1
  93. package/coverage/lcov-report/automations/steps/filter.js.html +1 -1
  94. package/coverage/lcov-report/automations/steps/index.html +1 -1
  95. package/coverage/lcov-report/automations/steps/integromat.js.html +1 -1
  96. package/coverage/lcov-report/automations/steps/outgoingWebhook.js.html +1 -1
  97. package/coverage/lcov-report/automations/steps/queryRows.js.html +1 -1
  98. package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +1 -1
  99. package/coverage/lcov-report/automations/steps/serverLog.js.html +1 -1
  100. package/coverage/lcov-report/automations/steps/slack.js.html +1 -1
  101. package/coverage/lcov-report/automations/steps/updateRow.js.html +1 -1
  102. package/coverage/lcov-report/automations/steps/utils.js.html +1 -1
  103. package/coverage/lcov-report/automations/steps/zapier.js.html +1 -1
  104. package/coverage/lcov-report/automations/triggerInfo/app.js.html +1 -1
  105. package/coverage/lcov-report/automations/triggerInfo/cron.js.html +1 -1
  106. package/coverage/lcov-report/automations/triggerInfo/index.html +1 -1
  107. package/coverage/lcov-report/automations/triggerInfo/index.js.html +1 -1
  108. package/coverage/lcov-report/automations/triggerInfo/rowDeleted.js.html +1 -1
  109. package/coverage/lcov-report/automations/triggerInfo/rowSaved.js.html +1 -1
  110. package/coverage/lcov-report/automations/triggerInfo/rowUpdated.js.html +1 -1
  111. package/coverage/lcov-report/automations/triggerInfo/webhook.js.html +1 -1
  112. package/coverage/lcov-report/automations/triggers.js.html +1 -1
  113. package/coverage/lcov-report/automations/utils.js.html +1 -1
  114. package/coverage/lcov-report/constants/index.html +1 -1
  115. package/coverage/lcov-report/constants/index.js.html +1 -1
  116. package/coverage/lcov-report/constants/layouts.js.html +1 -1
  117. package/coverage/lcov-report/constants/screens.js.html +1 -1
  118. package/coverage/lcov-report/db/client.js.html +1 -1
  119. package/coverage/lcov-report/db/inMemoryView.js.html +1 -1
  120. package/coverage/lcov-report/db/index.html +1 -1
  121. package/coverage/lcov-report/db/index.js.html +1 -1
  122. package/coverage/lcov-report/db/linkedRows/LinkController.js.html +1 -1
  123. package/coverage/lcov-report/db/linkedRows/index.html +1 -1
  124. package/coverage/lcov-report/db/linkedRows/index.js.html +1 -1
  125. package/coverage/lcov-report/db/linkedRows/linkUtils.js.html +1 -1
  126. package/coverage/lcov-report/db/newid.js.html +1 -1
  127. package/coverage/lcov-report/db/utils.js.html +1 -1
  128. package/coverage/lcov-report/events/AutomationEmitter.js.html +1 -1
  129. package/coverage/lcov-report/events/index.html +1 -1
  130. package/coverage/lcov-report/events/index.js.html +1 -1
  131. package/coverage/lcov-report/events/utils.js.html +1 -1
  132. package/coverage/lcov-report/index.html +11 -11
  133. package/coverage/lcov-report/integrations/tests/TestConfiguration.js.html +1 -1
  134. package/coverage/lcov-report/integrations/tests/index.html +1 -1
  135. package/coverage/lcov-report/middleware/appInfo.js.html +1 -1
  136. package/coverage/lcov-report/middleware/authorized.js.html +1 -1
  137. package/coverage/lcov-report/middleware/builder.js.html +1 -1
  138. package/coverage/lcov-report/middleware/currentapp.js.html +1 -1
  139. package/coverage/lcov-report/middleware/index.html +1 -1
  140. package/coverage/lcov-report/middleware/joi-validator.js.html +1 -1
  141. package/coverage/lcov-report/middleware/resourceId.js.html +1 -1
  142. package/coverage/lcov-report/middleware/selfhost.js.html +1 -1
  143. package/coverage/lcov-report/middleware/usageQuota.js.html +1 -1
  144. package/coverage/lcov-report/middleware/utils.js.html +1 -1
  145. package/coverage/lcov-report/threads/automation.js.html +1 -1
  146. package/coverage/lcov-report/threads/index.html +1 -1
  147. package/coverage/lcov-report/threads/index.js.html +1 -1
  148. package/coverage/lcov-report/threads/query.js.html +1 -1
  149. package/coverage/lcov-report/threads/utils.js.html +1 -1
  150. package/coverage/lcov-report/utilities/bcrypt.js.html +1 -1
  151. package/coverage/lcov-report/utilities/budibaseDir.js.html +1 -1
  152. package/coverage/lcov-report/utilities/centralPath.js.html +1 -1
  153. package/coverage/lcov-report/utilities/csvParser.js.html +1 -1
  154. package/coverage/lcov-report/utilities/global.js.html +1 -1
  155. package/coverage/lcov-report/utilities/index.html +1 -1
  156. package/coverage/lcov-report/utilities/index.js.html +1 -1
  157. package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +1 -1
  158. package/coverage/lcov-report/utilities/queue/index.html +1 -1
  159. package/coverage/lcov-report/utilities/routing/index.html +1 -1
  160. package/coverage/lcov-report/utilities/routing/index.js.html +1 -1
  161. package/coverage/lcov-report/utilities/rowProcessor/index.html +1 -1
  162. package/coverage/lcov-report/utilities/rowProcessor/index.js.html +1 -1
  163. package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +1 -1
  164. package/coverage/lcov-report/utilities/scriptRunner.js.html +1 -1
  165. package/coverage/lcov-report/utilities/security.js.html +1 -1
  166. package/coverage/lcov-report/utilities/statusCodes.js.html +1 -1
  167. package/coverage/lcov-report/utilities/usageQuota/index.html +1 -1
  168. package/coverage/lcov-report/utilities/usageQuota/index.js.html +1 -1
  169. package/coverage/lcov-report/utilities/usageQuota/rows.js.html +1 -1
  170. package/coverage/lcov-report/utilities/usageQuota/usageQuoteReset.js.html +1 -1
  171. package/coverage/lcov-report/utilities/users.js.html +1 -1
  172. package/coverage/lcov-report/utilities/workerRequests.js.html +1 -1
  173. package/coverage/lcov.info +89 -97
  174. package/dist/api/controllers/row/external.js +10 -18
  175. package/dist/package.json +4 -4
  176. package/dist/tsconfig.tsbuildinfo +1 -1
  177. package/package.json +5 -5
  178. package/src/api/controllers/row/external.js +23 -52
@@ -1302,7 +1302,7 @@ function print() { __p += __j.call(arguments, '') }
1302
1302
  This action cannot be undone.`)},m(o,l){E(o,e,l),E(o,n,l),M(n,i),M(n,a),E(o,s,l)},p(o,l){l&1&&r!==(r=o[0].name+"")&&Ue(i,r)},d(o){o&&S(e),o&&S(n),o&&S(s)}}}function Ppe(t){let e,n,r,i,a,s;e=new _i({props:{$$slots:{control:[Mpe],default:[Dpe]},$$scope:{ctx:t}}});let o={okText:"Delete Automation",onOk:t[3],title:"Confirm Deletion",$$slots:{default:[Lpe]},$$scope:{ctx:t}};r=new ai({props:o}),t[4](r);let l={automation:t[0]};return a=new Ape({props:l}),t[5](a),{c(){T(e.$$.fragment),n=L(),T(r.$$.fragment),i=L(),T(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){g(e.$$.fragment,u),g(r.$$.fragment,u),g(a.$$.fragment,u),s=!1},d(u){O(e,u),u&&S(n),t[4](null),O(r,u),u&&S(i),t[5](null),O(a,u)}}}function Upe(t,e,n){let r;_e(t,en,c=>n(6,r=c));let{automation:i}=e,a,s;async function o(){await _n.actions.delete(i),Xe.success("Automation deleted."),r("../automate")}function l(c){ae[c?"unshift":"push"](()=>{a=c,n(1,a)})}function u(c){ae[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 Bpe extends fe{constructor(e){super();de(this,e,Upe,Ppe,ce,{automation:0})}}function DR(t,e,n){const r=t.slice();return r[5]=e[n],r[7]=n,r}function Fpe(t){let e,n,r;return e=new Bpe({props:{automation:t[5]}}),{c(){T(e.$$.fragment),n=L()},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){g(e.$$.fragment,i),r=!1},d(i){O(e,i),i&&S(n)}}}function MR(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:[Fpe]},$$scope:{ctx:t}}}),e.$on("click",r),{c(){T(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){g(e.$$.fragment,i),n=!1},d(i){O(e,i)}}}function qpe(t){let e,n,r=t[0].automations,i=[];for(let s=0;s<r.length;s+=1)i[s]=MR(DR(t,r,s));const a=s=>g(i[s],1,1,()=>{i[s]=null});return{c(){e=B("div");for(let s=0;s<i.length;s+=1)i[s].c();$(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=DR(s,r,l);i[l]?(i[l].p(u,o),m(i[l],1)):(i[l]=MR(u),i[l].c(),m(i[l],1),i[l].m(e,null))}for(le(),l=r.length;l<i.length;l+=1)a(l);ue()}},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&&S(e),Rt(i,s)}}}function Gpe(t,e,n){let r,i,a;_e(t,en,l=>n(4,i=l)),_e(t,_n,l=>n(0,a=l)),gn(()=>{_n.actions.fetch()});function s(l){_n.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 zpe extends fe{constructor(e){super();de(this,e,Gpe,qpe,ce,{})}}function LR(t,e,n){const r=t.slice();return r[17]=e[n][0],r[18]=e[n][1],r}function Ype(t){let e;return{c(){e=W(`Please name your automation, then select a trigger. Every automation must
1303
1303
  start with a trigger.`)},m(n,r){E(n,e,r)},d(n){n&&S(e)}}}function jpe(t){let e;return{c(){e=W("Triggers")},m(n,r){E(n,e,r)},d(n){n&&S(e)}}}function Vpe(t){let e=t[18].name+"",n;return{c(){n=W(e)},m(r,i){E(r,n,i)},p(r,i){i&8&&e!==(e=r[18].name+"")&&Ue(n,e)},d(r){r&&S(n)}}}function PR(t){let e,n,r,i,a,s,o,l,u,c;r=new Ot({props:{name:t[18].icon}}),s=new rt({props:{size:"S",$$slots:{default:[Vpe]},$$scope:{ctx:t}}});function f(){return t[13](t[18])}return{c(){e=B("div"),n=B("div"),T(r.$$.fragment),i=L(),a=B("span"),T(s.$$.fragment),o=L(),$(a,"class","icon-spacing svelte-d3iboa"),$(n,"class","item-body svelte-d3iboa"),$(e,"class","item svelte-d3iboa"),pe(e,"selected",t[2]===t[18].name)},m(d,p){E(d,e,p),M(e,n),C(r,n,null),M(n,i),M(n,a),C(s,a,null),M(e,o),l=!0,u||(c=ze(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&&S(e),O(r),O(s),u=!1,c()}}}function Hpe(t){let e,n,r,i;e=new rt({props:{size:"S",$$slots:{default:[jpe]},$$scope:{ctx:t}}});let a=t[3],s=[];for(let l=0;l<a.length;l+=1)s[l]=PR(LR(t,a,l));const o=l=>g(s[l],1,1,()=>{s[l]=null});return{c(){T(e.$$.fragment),n=L(),r=B("div");for(let l=0;l<s.length;l+=1)s[l].c();$(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=LR(l,a,f);s[f]?(s[f].p(d,u),m(s[f],1)):(s[f]=PR(d),s[f].c(),m(s[f],1),s[f].m(r,null))}for(le(),f=a.length;f<s.length;f+=1)o(f);ue()}},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){O(e,l),l&&S(n),l&&S(r),Rt(s,l)}}}function Wpe(t){let e,n,r,i,a,s,o,l,u,c;e=new fg({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:[Ype]},$$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 lt({props:p}),ae.push(()=>ge(a,"value",f)),ae.push(()=>ge(a,"error",d)),a.$on("change",t[12]),u=new st({props:{noPadding:!0,$$slots:{default:[Hpe]},$$scope:{ctx:t}}}),{c(){T(e.$$.fragment),n=L(),T(r.$$.fragment),i=L(),T(a.$$.fragment),l=L(),T(u.$$.fragment)},m(_,h){C(e,_,h),E(_,n,h),C(r,_,h),E(_,i,h),C(a,_,h),E(_,l,h),C(u,_,h),c=!0},p(_,h){const b={};h&2097152&&(b.$$scope={dirty:h,ctx:_}),r.$set(b);const v={};!s&&h&1&&(s=!0,v.value=_[0],he(()=>s=!1)),!o&&h&16&&(o=!0,v.error=_[4],he(()=>o=!1)),a.$set(v);const w={};h&2097164&&(w.$$scope={dirty:h,ctx:_}),u.$set(w)},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(_){O(e,_),_&&S(n),O(r,_),_&&S(i),O(a,_),_&&S(l),O(u,_)}}}function xpe(t){let e,n;return e=new Zt({props:{title:"Create Automation",confirmText:"Save",size:"M",onConfirm:t[5],disabled:!t[2]||!t[0],$$slots:{default:[Wpe]},$$scope:{ctx:t}}}),{c(){T(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){g(e.$$.fragment,r),n=!1},d(r){O(e,r)}}}function Qpe(t,e,n){let r,i,a,s,o,l;_e(t,_n,N=>n(8,s=N)),_e(t,en,N=>n(16,o=N)),_e(t,Zo,N=>n(9,l=N));let u,c,f=!1,d,{webhookModal:p}=e;async function _(){var R;await _n.actions.create({name:u,instanceId:r});const N=s.selectedAutomation.constructBlock("TRIGGER",d.stepId,d);_n.actions.addBlockToAutomation(N),d.stepId==="WEBHOOK"&&p.show,await _n.actions.save((R=s.selectedAutomation)==null?void 0:R.automation),Xe.success(`Automation ${u} created.`),o(`./${s.selectedAutomation.automation._id}`),_r.captureEvent(Nr.AUTOMATION.CREATED,{name:u})}const h=N=>{d=N,n(2,c=N.name)};function b(N){u=N,n(0,u)}function v(N){i=N,n(4,i),n(1,f),n(0,u)}const w=()=>n(1,f=!0),A=N=>h(N);return t.$$set=N=>{"webhookModal"in N&&n(7,p=N.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,v,w,A]}class UR extends fe{constructor(e){super();de(this,e,Qpe,xpe,ce,{webhookModal:7})}}function Kpe(t){let e,n;return e=new UR({props:{webhookModal:t[1]}}),{c(){T(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){g(e.$$.fragment,r),n=!1},d(r){O(e,r)}}}function Xpe(t){let e,n,r,i,a;n=new zpe({});let s={$$slots:{default:[Kpe]},$$scope:{ctx:t}};return i=new zt({props:s}),t[2](i),{c(){e=B("div"),T(n.$$.fragment),r=L(),T(i.$$.fragment),$(e,"class","tab-content-padding svelte-1r2f9up")},m(o,l){E(o,e,l),C(n,e,null),M(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){g(n.$$.fragment,o),g(i.$$.fragment,o),a=!1},d(o){o&&S(e),O(n),t[2](null),O(i)}}}function Zpe(t){let e,n;return e=new Bn({props:{title:"Automations",$$slots:{default:[Xpe]},$$scope:{ctx:t}}}),{c(){T(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){g(e.$$.fragment,r),n=!1},d(r){O(e,r)}}}function Jpe(t){let e,n,r,i,a,s;return n=new Si({props:{selected:"Automations",$$slots:{default:[Zpe]},$$scope:{ctx:t}}}),a=new Ot({props:{hoverable:!0,name:"AddCircle"}}),a.$on("click",function(){Tt(t[0].show)&&t[0].show.apply(this,arguments)}),{c(){e=B("div"),T(n.$$.fragment),r=L(),i=B("div"),T(a.$$.fragment),$(i,"class","add-button svelte-1r2f9up"),$(i,"data-cy","new-screen"),$(e,"class","title svelte-1r2f9up")},m(o,l){E(o,e,l),C(n,e,null),M(e,r),M(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){g(n.$$.fragment,o),g(a.$$.fragment,o),s=!1},d(o){o&&S(e),O(n),O(a)}}}function e_e(t,e,n){let{modal:r}=e,{webhookModal:i}=e;function a(s){ae[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 t_e extends fe{constructor(e){super();de(this,e,e_e,Jpe,ce,{modal:0,webhookModal:1})}}function n_e(t){let e,n,r,i;return r=new st({props:{gap:"S",justifyItems:"center",$$slots:{default:[o_e]},$$scope:{ctx:t}}}),{c(){e=B("div"),n=B("div"),T(r.$$.fragment),$(n,"class","main svelte-16gumu0"),$(e,"class","centered svelte-16gumu0")},m(a,s){E(a,e,s),M(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){g(r.$$.fragment,a),i=!1},d(a){a&&S(e),O(r)}}}function r_e(t){let e;const n=t[4].default,r=It(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)&&Dt(r,n,i,i[8],e?Lt(n,i[8],a,null):Mt(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 i_e(t){let e;return{c(){e=W("You have no automations")},m(n,r){E(n,e,r)},d(n){n&&S(e)}}}function a_e(t){let e;return{c(){e=W("Let's fix that. Call the bots!")},m(n,r){E(n,e,r)},d(n){n&&S(e)}}}function s_e(t){let e;return{c(){e=W("Create automation")},m(n,r){E(n,e,r)},d(n){n&&S(e)}}}function o_e(t){let e,n,r,i,a,s,o,l,u;return i=new Pt({props:{size:"M",$$slots:{default:[i_e]},$$scope:{ctx:t}}}),s=new rt({props:{size:"M",$$slots:{default:[a_e]},$$scope:{ctx:t}}}),l=new Ct({props:{size:"M",cta:!0,$$slots:{default:[s_e]},$$scope:{ctx:t}}}),l.$on("click",t[5]),{c(){e=ye("svg"),n=ye("use"),r=L(),T(i.$$.fragment),a=L(),T(s.$$.fragment),o=L(),T(l.$$.fragment),un(n,"xlink:href","#spectrum-icon-18-WorkflowAdd"),$(e,"width","60px"),$(e,"height","60px"),$(e,"class","spectrum-Icon"),$(e,"focusable","false")},m(c,f){E(c,e,f),M(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){g(i.$$.fragment,c),g(s.$$.fragment,c),g(l.$$.fragment,c),u=!1},d(c){c&&S(e),c&&S(r),O(i,c),c&&S(a),O(s,c),c&&S(o),O(l,c)}}}function l_e(t){let e,n;return e=new UR({props:{webhookModal:t[1]}}),{c(){T(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){g(e.$$.fragment,r),n=!1},d(r){O(e,r)}}}function u_e(t){let e,n;return e=new V1({}),{c(){T(e.$$.fragment)},m(r,i){C(e,r,i),n=!0},i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){g(e.$$.fragment,r),n=!1},d(r){O(e,r)}}}function c_e(t){let e,n,r,i,a,s,o,l,u,c,f,d;r=new t_e({props:{modal:t[0],webhookModal:t[1]}});const p=[r_e,n_e],_=[];function h(w,A){return w[2]?0:1}s=h(t),o=_[s]=p[s](t);let b={$$slots:{default:[l_e]},$$scope:{ctx:t}};u=new zt({props:b}),t[6](u);let v={width:"30%",$$slots:{default:[u_e]},$$scope:{ctx:t}};return f=new zt({props:v}),t[7](f),{c(){e=B("div"),n=B("div"),T(r.$$.fragment),i=L(),a=B("div"),o.c(),l=L(),T(u.$$.fragment),c=L(),T(f.$$.fragment),$(n,"class","nav svelte-16gumu0"),$(a,"class","content svelte-16gumu0"),$(e,"class","root svelte-16gumu0")},m(w,A){E(w,e,A),M(e,n),C(r,n,null),M(e,i),M(e,a),_[s].m(a,null),M(e,l),C(u,e,null),M(e,c),C(f,e,null),d=!0},p(w,[A]){const N={};A&1&&(N.modal=w[0]),A&2&&(N.webhookModal=w[1]),r.$set(N);let R=s;s=h(w),s===R?_[s].p(w,A):(le(),g(_[R],1,1,()=>{_[R]=null}),ue(),o=_[s],o?o.p(w,A):(o=_[s]=p[s](w),o.c()),m(o,1),o.m(a,null));const D={};A&258&&(D.$$scope={dirty:A,ctx:w}),u.$set(D);const U={};A&256&&(U.$$scope={dirty:A,ctx:w}),f.$set(U)},i(w){d||(m(r.$$.fragment,w),m(o),m(u.$$.fragment,w),m(f.$$.fragment,w),d=!0)},o(w){g(r.$$.fragment,w),g(o),g(u.$$.fragment,w),g(f.$$.fragment,w),d=!1},d(w){w&&S(e),O(r),_[s].d(),t[6](null),O(u),t[7](null),O(f)}}}function f_e(t,e,n){let r,i;_e(t,_n,d=>n(3,i=d));let{$$slots:a={},$$scope:s}=e,o,l;const u=()=>o.show();function c(d){ae[d?"unshift":"push"](()=>{o=d,n(0,o)})}function f(d){ae[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 d_e extends fe{constructor(e){super();de(this,e,f_e,c_e,ce,{})}}function p_e(t){let e;return{c(){e=W("Publish")},m(n,r){E(n,e,r)},d(n){n&&S(e)}}}function __e(t){let e,n;return e=new Zt({props:{title:"Enjoying Budibase?",size:"L",showConfirmButton:!1,showCancelButton:!1}}),{c(){T(e.$$.fragment)},m(r,i){C(e,r,i),n=!0},p:Be,i(r){n||(m(e.$$.fragment,r),n=!0)},o(r){g(e.$$.fragment,r),n=!1},d(r){O(e,r)}}}function m_e(t){let e;return{c(){e=B("span"),e.textContent=`The changes you have made will be published to the production version of
1304
1304
  the application.`},m(n,r){E(n,e,r)},d(n){n&&S(e)}}}function g_e(t){let e,n;return e=new Zt({props:{title:"Publish to Production",confirmText:"Publish",onConfirm:t[2],$$slots:{default:[m_e]},$$scope:{ctx:t}}}),{c(){T(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){g(e.$$.fragment,r),n=!1},d(r){O(e,r)}}}function h_e(t){let e,n,r,i,a,s;e=new Ct({props:{secondary:!0,$$slots:{default:[p_e]},$$scope:{ctx:t}}}),e.$on("click",function(){Tt(t[1].show)&&t[1].show.apply(this,arguments)});let o={$$slots:{default:[__e]},$$scope:{ctx:t}};r=new zt({props:o}),t[3](r);let l={$$slots:{default:[g_e]},$$scope:{ctx:t}};return a=new zt({props:l}),t[4](a),{c(){T(e.$$.fragment),n=L(),T(r.$$.fragment),i=L(),T(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){g(e.$$.fragment,u),g(r.$$.fragment,u),g(a.$$.fragment,u),s=!1},d(u){O(e,u),u&&S(n),t[3](null),O(r,u),u&&S(i),t[4](null),O(a,u)}}}function b_e(t,e,n){let r;_e(t,tt,u=>n(5,r=u));let i,a;async function s(){try{const u=await gt.post("/api/deploy");if(u.status!==200)throw new Error(`status ${u.status}`);_r.captureEvent(Nr.APP.PUBLISHED,{appId:r.appId}),Xe.success("Application published successfully")}catch(u){_r.captureException(u),Xe.error(`Error publishing app: ${u}`)}}function o(u){ae[u?"unshift":"push"](()=>{i=u,n(0,i)})}function l(u){ae[u?"unshift":"push"](()=>{a=u,n(1,a)})}return[i,a,s,o,l]}class v_e extends fe{constructor(e){super();de(this,e,b_e,h_e,ce,{})}}function E_e(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 lt({props:u}),ae.push(()=>ge(a,"value",l)),{c(){e=B("span"),e.textContent=`The changes you have made will be deleted and the application reverted
1305
- back to its production state.`,n=L(),r=B("span"),r.textContent="Please enter your app name to continue.",i=L(),T(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],he(()=>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&&S(e),c&&S(n),c&&S(r),c&&S(i),O(a,c)}}}function S_e(t){let e,n;return e=new Zt({props:{title:"Revert Changes",confirmText:"Revert",onConfirm:t[3],disabled:t[2]!==t[0].name,$$slots:{default:[E_e]},$$scope:{ctx:t}}}),{c(){T(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){g(e.$$.fragment,r),n=!1},d(r){O(e,r)}}}function y_e(t){let e,n,r,i;e=new Ot({props:{name:"Revert",hoverable:!0}}),e.$on("click",function(){Tt(t[1].show)&&t[1].show.apply(this,arguments)});let a={$$slots:{default:[S_e]},$$scope:{ctx:t}};return r=new zt({props:a}),t[5](r),{c(){T(e.$$.fragment),n=L(),T(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){g(e.$$.fragment,s),g(r.$$.fragment,s),i=!1},d(s){O(e,s),s&&S(n),t[5](null),O(r,s)}}}function $_e(t,e,n){let r,i;_e(t,tt,c=>n(0,i=c));let a,s;const o=async()=>{try{const c=await gt.post(`/api/dev/${r}/revert`),f=await c.json();if(c.status!==200)throw f.message;const d=await gt.get(`/api/applications/${r}/appPackage`),p=await d.json();if(d.ok)await tt.actions.initialise(p);else throw new Error(p);Xe.info("Changes reverted.")}catch(c){Xe.error(`Error reverting changes: ${c}`)}};function l(c){s=c,n(2,s)}function u(c){ae[c?"unshift":"push"](()=>{a=c,n(1,a)})}return t.$$.update=()=>{t.$$.dirty&1&&(r=i.appId)},[i,a,s,o,l,u]}class w_e extends fe{constructor(e){super();de(this,e,$_e,y_e,ce,{})}}const T_e="@budibase/client",C_e="1.0.49-alpha.6",O_e="MPL-2.0",N_e="dist/budibase-client.js",R_e="dist/budibase-client.js",A_e="module",k_e="src/index.js",I_e={".":{import:"./dist/budibase-client.js",require:"./dist/budibase-client.js"},"./package.json":"./package.json","./manifest.json":"./manifest.json"},D_e={build:"rollup -c","dev:builder":"rollup -cw"},M_e={"@budibase/bbui":"^1.0.49-alpha.6","@budibase/standard-components":"^0.9.139","@budibase/string-templates":"^1.0.49-alpha.6",regexparam:"^1.3.0","rollup-plugin-polyfill-node":"^0.8.0",shortid:"^2.2.15","svelte-spa-router":"^3.0.5"},L_e={"@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"},P_e="d1836a898cab3f8ab80ee6d8f42be1a9eed7dcdc";var H1={name:T_e,version:C_e,license:O_e,module:N_e,main:R_e,type:A_e,svelte:k_e,exports:I_e,scripts:D_e,dependencies:M_e,devDependencies:L_e,gitHead:P_e};function U_e(t){let e,n;return e=new rt({props:{size:"S",$$slots:{default:[F_e]},$$scope:{ctx:t}}}),{c(){T(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){g(e.$$.fragment,r),n=!1},d(r){O(e,r)}}}function B_e(t){let e,n;return e=new rt({props:{size:"S",$$slots:{default:[q_e]},$$scope:{ctx:t}}}),{c(){T(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){g(e.$$.fragment,r),n=!1},d(r){O(e,r)}}}function F_e(t){let e,n,r=t[0].version+"",i,a;return{c(){e=W("This app is currently using version "),n=B("b"),i=W(r),a=W(` which is the
1305
+ back to its production state.`,n=L(),r=B("span"),r.textContent="Please enter your app name to continue.",i=L(),T(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],he(()=>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&&S(e),c&&S(n),c&&S(r),c&&S(i),O(a,c)}}}function S_e(t){let e,n;return e=new Zt({props:{title:"Revert Changes",confirmText:"Revert",onConfirm:t[3],disabled:t[2]!==t[0].name,$$slots:{default:[E_e]},$$scope:{ctx:t}}}),{c(){T(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){g(e.$$.fragment,r),n=!1},d(r){O(e,r)}}}function y_e(t){let e,n,r,i;e=new Ot({props:{name:"Revert",hoverable:!0}}),e.$on("click",function(){Tt(t[1].show)&&t[1].show.apply(this,arguments)});let a={$$slots:{default:[S_e]},$$scope:{ctx:t}};return r=new zt({props:a}),t[5](r),{c(){T(e.$$.fragment),n=L(),T(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){g(e.$$.fragment,s),g(r.$$.fragment,s),i=!1},d(s){O(e,s),s&&S(n),t[5](null),O(r,s)}}}function $_e(t,e,n){let r,i;_e(t,tt,c=>n(0,i=c));let a,s;const o=async()=>{try{const c=await gt.post(`/api/dev/${r}/revert`),f=await c.json();if(c.status!==200)throw f.message;const d=await gt.get(`/api/applications/${r}/appPackage`),p=await d.json();if(d.ok)await tt.actions.initialise(p);else throw new Error(p);Xe.info("Changes reverted.")}catch(c){Xe.error(`Error reverting changes: ${c}`)}};function l(c){s=c,n(2,s)}function u(c){ae[c?"unshift":"push"](()=>{a=c,n(1,a)})}return t.$$.update=()=>{t.$$.dirty&1&&(r=i.appId)},[i,a,s,o,l,u]}class w_e extends fe{constructor(e){super();de(this,e,$_e,y_e,ce,{})}}const T_e="@budibase/client",C_e="1.0.49-alpha.7",O_e="MPL-2.0",N_e="dist/budibase-client.js",R_e="dist/budibase-client.js",A_e="module",k_e="src/index.js",I_e={".":{import:"./dist/budibase-client.js",require:"./dist/budibase-client.js"},"./package.json":"./package.json","./manifest.json":"./manifest.json"},D_e={build:"rollup -c","dev:builder":"rollup -cw"},M_e={"@budibase/bbui":"^1.0.49-alpha.7","@budibase/standard-components":"^0.9.139","@budibase/string-templates":"^1.0.49-alpha.7",regexparam:"^1.3.0","rollup-plugin-polyfill-node":"^0.8.0",shortid:"^2.2.15","svelte-spa-router":"^3.0.5"},L_e={"@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"},P_e="d1836a898cab3f8ab80ee6d8f42be1a9eed7dcdc";var H1={name:T_e,version:C_e,license:O_e,module:N_e,main:R_e,type:A_e,svelte:k_e,exports:I_e,scripts:D_e,dependencies:M_e,devDependencies:L_e,gitHead:P_e};function U_e(t){let e,n;return e=new rt({props:{size:"S",$$slots:{default:[F_e]},$$scope:{ctx:t}}}),{c(){T(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){g(e.$$.fragment,r),n=!1},d(r){O(e,r)}}}function B_e(t){let e,n;return e=new rt({props:{size:"S",$$slots:{default:[q_e]},$$scope:{ctx:t}}}),{c(){T(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){g(e.$$.fragment,r),n=!1},d(r){O(e,r)}}}function F_e(t){let e,n,r=t[0].version+"",i,a;return{c(){e=W("This app is currently using version "),n=B("b"),i=W(r),a=W(` which is the
1306
1306
  latest version available.`)},m(s,o){E(s,e,o),E(s,n,o),M(n,i),E(s,a,o)},p(s,o){o&1&&r!==(r=s[0].version+"")&&Ue(i,r)},d(s){s&&S(e),s&&S(n),s&&S(a)}}}function q_e(t){let e,n,r=t[0].version+"",i,a,s,o;return{c(){e=W("This app is currently using version "),n=B("b"),i=W(r),a=W(`, but version
1307
1307
  `),s=B("b"),s.textContent=`${H1.version}`,o=W(` is available. Updates can contain new features,
1308
1308
  performance improvements and bug fixes.`)},m(l,u){E(l,e,u),E(l,n,u),M(n,i),E(l,a,u),E(l,s,u),E(l,o,u)},p(l,u){u&1&&r!==(r=l[0].version+"")&&Ue(i,r)},d(l){l&&S(e),l&&S(n),l&&S(a),l&&S(s),l&&S(o)}}}function BR(t){let e,n;return e=new rt({props:{size:"S",$$slots:{default:[G_e]},$$scope:{ctx:t}}}),{c(){T(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){g(e.$$.fragment,r),n=!1},d(r){O(e,r)}}}function G_e(t){let e,n,r=t[0].revertableVersion+"",i,a;return{c(){e=W(`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.b7cd931c.js"></script>
13
+ <script type="module" crossorigin src="/builder/assets/index.94a9250f.js"></script>
14
14
  <link rel="modulepreload" href="/builder/assets/vendor.d526bfe8.js">
15
15
  <link rel="stylesheet" href="/builder/assets/vendor.5e1fe644.css">
16
16
  <link rel="stylesheet" href="/builder/assets/index.83c0944f.css">
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1643747915250" clover="3.2.0">
3
- <project timestamp="1643747915250" name="All files">
4
- <metrics statements="4934" coveredstatements="3596" conditionals="2046" coveredconditionals="1072" methods="713" coveredmethods="498" elements="7693" coveredelements="5166" complexity="0" loc="4934" ncloc="4934" packages="22" files="145" classes="145"/>
2
+ <coverage generated="1643799543877" clover="3.2.0">
3
+ <project timestamp="1643799543877" name="All files">
4
+ <metrics statements="4926" coveredstatements="3596" conditionals="2046" coveredconditionals="1072" methods="713" coveredmethods="498" elements="7685" coveredelements="5166" complexity="0" loc="4926" ncloc="4926" 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">
@@ -1315,9 +1315,9 @@
1315
1315
  </file>
1316
1316
  </package>
1317
1317
  <package name="api.controllers.row">
1318
- <metrics statements="644" coveredstatements="326" conditionals="292" coveredconditionals="88" methods="93" coveredmethods="39"/>
1318
+ <metrics statements="636" coveredstatements="326" conditionals="292" coveredconditionals="88" methods="93" coveredmethods="39"/>
1319
1319
  <file name="external.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/row/external.js">
1320
- <metrics statements="99" coveredstatements="15" conditionals="42" coveredconditionals="0" methods="13" coveredmethods="0"/>
1320
+ <metrics statements="91" coveredstatements="15" conditionals="42" coveredconditionals="0" methods="13" coveredmethods="0"/>
1321
1321
  <line num="6" count="39" type="stmt"/>
1322
1322
  <line num="10" count="39" type="stmt"/>
1323
1323
  <line num="11" count="39" type="stmt"/>
@@ -1335,88 +1335,80 @@
1335
1335
  <line num="34" count="0" type="stmt"/>
1336
1336
  <line num="35" count="0" type="stmt"/>
1337
1337
  <line num="36" count="0" type="stmt"/>
1338
- <line num="37" count="0" type="stmt"/>
1338
+ <line num="38" count="0" type="stmt"/>
1339
1339
  <line num="39" count="0" type="stmt"/>
1340
- <line num="40" count="0" type="stmt"/>
1341
- <line num="46" count="39" type="stmt"/>
1340
+ <line num="45" count="39" type="stmt"/>
1341
+ <line num="46" count="0" type="stmt"/>
1342
1342
  <line num="47" count="0" type="stmt"/>
1343
1343
  <line num="48" count="0" type="stmt"/>
1344
- <line num="49" count="0" type="stmt"/>
1345
- <line num="50" count="0" type="stmt"/>
1346
- <line num="55" count="39" type="stmt"/>
1344
+ <line num="53" count="39" type="stmt"/>
1345
+ <line num="56" count="0" type="stmt"/>
1346
+ <line num="57" count="0" type="cond" truecount="0" falsecount="2"/>
1347
1347
  <line num="58" count="0" type="stmt"/>
1348
- <line num="59" count="0" type="cond" truecount="0" falsecount="2"/>
1349
- <line num="60" count="0" type="stmt"/>
1350
- <line num="63" count="39" type="stmt"/>
1351
- <line num="64" count="0" type="stmt"/>
1352
- <line num="65" count="0" type="stmt"/>
1353
- <line num="66" count="0" type="stmt"/>
1354
- <line num="69" count="39" type="stmt"/>
1355
- <line num="70" count="0" type="stmt"/>
1356
- <line num="71" count="0" type="stmt"/>
1357
- <line num="72" count="0" type="stmt"/>
1358
- <line num="73" count="0" type="stmt"/>
1359
- <line num="81" count="0" type="cond" truecount="0" falsecount="2"/>
1348
+ <line num="61" count="39" type="stmt"/>
1349
+ <line num="62" count="0" type="stmt"/>
1350
+ <line num="63" count="0" type="stmt"/>
1351
+ <line num="66" count="39" type="stmt"/>
1352
+ <line num="67" count="0" type="stmt"/>
1353
+ <line num="68" count="0" type="stmt"/>
1354
+ <line num="69" count="0" type="stmt"/>
1355
+ <line num="72" count="0" type="cond" truecount="0" falsecount="2"/>
1356
+ <line num="75" count="39" type="stmt"/>
1357
+ <line num="76" count="0" type="stmt"/>
1358
+ <line num="77" count="0" type="stmt"/>
1359
+ <line num="78" count="0" type="stmt"/>
1360
+ <line num="81" count="0" type="stmt"/>
1360
1361
  <line num="84" count="39" type="stmt"/>
1361
1362
  <line num="85" count="0" type="stmt"/>
1362
1363
  <line num="86" count="0" type="stmt"/>
1363
1364
  <line num="87" count="0" type="stmt"/>
1364
1365
  <line num="88" count="0" type="stmt"/>
1366
+ <line num="89" count="0" type="stmt"/>
1367
+ <line num="95" count="0" type="stmt"/>
1365
1368
  <line num="96" count="0" type="stmt"/>
1366
1369
  <line num="99" count="39" type="stmt"/>
1367
1370
  <line num="100" count="0" type="stmt"/>
1368
1371
  <line num="101" count="0" type="stmt"/>
1369
1372
  <line num="102" count="0" type="stmt"/>
1370
- <line num="103" count="0" type="stmt"/>
1373
+ <line num="103" count="0" type="cond" truecount="0" falsecount="4"/>
1371
1374
  <line num="104" count="0" type="stmt"/>
1372
- <line num="105" count="0" type="stmt"/>
1373
- <line num="111" count="0" type="stmt"/>
1374
- <line num="112" count="0" type="stmt"/>
1375
- <line num="115" count="39" type="stmt"/>
1376
- <line num="116" count="0" type="stmt"/>
1377
- <line num="117" count="0" type="stmt"/>
1378
- <line num="118" count="0" type="stmt"/>
1379
- <line num="119" count="0" type="stmt"/>
1380
- <line num="120" count="0" type="cond" truecount="0" falsecount="4"/>
1381
- <line num="121" count="0" type="stmt"/>
1382
- <line num="123" count="0" type="stmt"/>
1383
- <line num="125" count="0" type="cond" truecount="0" falsecount="2"/>
1384
- <line num="126" count="0" type="stmt"/>
1385
- <line num="131" count="0" type="cond" truecount="0" falsecount="4"/>
1386
- <line num="132" count="0" type="stmt"/>
1387
- <line num="137" count="0" type="cond" truecount="0" falsecount="2"/>
1388
- <line num="139" count="0" type="cond" truecount="0" falsecount="2"/>
1389
- <line num="142" count="0" type="stmt"/>
1390
- <line num="146" count="0" type="stmt"/>
1391
- <line num="151" count="0" type="stmt"/>
1392
- <line num="152" count="0" type="cond" truecount="0" falsecount="4"/>
1393
- <line num="153" count="0" type="stmt"/>
1394
- <line num="166" count="0" type="stmt"/>
1375
+ <line num="106" count="0" type="stmt"/>
1376
+ <line num="108" count="0" type="cond" truecount="0" falsecount="2"/>
1377
+ <line num="109" count="0" type="stmt"/>
1378
+ <line num="114" count="0" type="cond" truecount="0" falsecount="4"/>
1379
+ <line num="115" count="0" type="stmt"/>
1380
+ <line num="120" count="0" type="cond" truecount="0" falsecount="2"/>
1381
+ <line num="122" count="0" type="cond" truecount="0" falsecount="2"/>
1382
+ <line num="125" count="0" type="stmt"/>
1383
+ <line num="129" count="0" type="stmt"/>
1384
+ <line num="134" count="0" type="stmt"/>
1385
+ <line num="135" count="0" type="cond" truecount="0" falsecount="4"/>
1386
+ <line num="136" count="0" type="stmt"/>
1387
+ <line num="144" count="0" type="stmt"/>
1388
+ <line num="147" count="0" type="stmt"/>
1389
+ <line num="150" count="39" type="stmt"/>
1390
+ <line num="152" count="0" type="stmt"/>
1391
+ <line num="155" count="39" type="stmt"/>
1392
+ <line num="156" count="0" type="stmt"/>
1393
+ <line num="157" count="0" type="stmt"/>
1394
+ <line num="158" count="0" type="stmt"/>
1395
+ <line num="159" count="0" type="stmt"/>
1396
+ <line num="160" count="0" type="stmt"/>
1397
+ <line num="161" count="0" type="cond" truecount="0" falsecount="4"/>
1398
+ <line num="162" count="0" type="stmt"/>
1399
+ <line num="164" count="0" type="stmt"/>
1400
+ <line num="165" count="0" type="stmt"/>
1395
1401
  <line num="169" count="0" type="stmt"/>
1396
- <line num="172" count="39" type="stmt"/>
1397
- <line num="174" count="0" type="stmt"/>
1398
- <line num="177" count="39" type="stmt"/>
1399
- <line num="178" count="0" type="stmt"/>
1402
+ <line num="170" count="0" type="stmt"/>
1403
+ <line num="173" count="0" type="stmt"/>
1404
+ <line num="174" count="0" type="cond" truecount="0" falsecount="2"/>
1400
1405
  <line num="179" count="0" type="stmt"/>
1401
- <line num="180" count="0" type="stmt"/>
1402
1406
  <line num="181" count="0" type="stmt"/>
1403
1407
  <line num="182" count="0" type="stmt"/>
1404
1408
  <line num="183" count="0" type="stmt"/>
1405
- <line num="184" count="0" type="cond" truecount="0" falsecount="4"/>
1406
1409
  <line num="185" count="0" type="stmt"/>
1407
- <line num="187" count="0" type="stmt"/>
1408
- <line num="188" count="0" type="stmt"/>
1409
- <line num="197" count="0" type="stmt"/>
1410
- <line num="198" count="0" type="stmt"/>
1411
- <line num="201" count="0" type="stmt"/>
1412
- <line num="202" count="0" type="cond" truecount="0" falsecount="2"/>
1413
- <line num="207" count="0" type="stmt"/>
1414
- <line num="209" count="0" type="stmt"/>
1415
- <line num="210" count="0" type="stmt"/>
1416
- <line num="211" count="0" type="stmt"/>
1417
- <line num="213" count="0" type="stmt"/>
1418
- <line num="214" count="0" type="stmt"/>
1419
- <line num="228" count="0" type="stmt"/>
1410
+ <line num="186" count="0" type="stmt"/>
1411
+ <line num="199" count="0" type="stmt"/>
1420
1412
  </file>
1421
1413
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/row/index.js">
1422
1414
  <metrics statements="85" coveredstatements="79" conditionals="34" coveredconditionals="32" methods="11" coveredmethods="11"/>