@openremote/or-rules 1.8.0-snapshot.20250723203453 → 1.8.0-snapshot.20250725120000

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 (584) hide show
  1. package/README.md +30 -30
  2. package/custom-elements.json +13 -13
  3. package/dist/umd/index.bundle.js +4998 -4707
  4. package/dist/umd/index.bundle.js.map +1 -0
  5. package/lib/flow-viewer/components/confirmation-dialog.d.ts +2 -2
  6. package/lib/flow-viewer/components/confirmation-dialog.js +61 -24
  7. package/lib/flow-viewer/components/connection-container.d.ts +1 -1
  8. package/lib/flow-viewer/components/connection-container.js +35 -1
  9. package/lib/flow-viewer/components/connection-line.d.ts +1 -1
  10. package/lib/flow-viewer/components/connection-line.js +117 -28
  11. package/lib/flow-viewer/components/context-menu.d.ts +2 -2
  12. package/lib/flow-viewer/components/context-menu.js +140 -45
  13. package/lib/flow-viewer/components/editor-workspace.d.ts +2 -2
  14. package/lib/flow-viewer/components/editor-workspace.js +282 -20
  15. package/lib/flow-viewer/components/flow-editor.d.ts +2 -2
  16. package/lib/flow-viewer/components/flow-editor.js +160 -47
  17. package/lib/flow-viewer/components/flow-node-socket.d.ts +2 -2
  18. package/lib/flow-viewer/components/flow-node-socket.js +146 -31
  19. package/lib/flow-viewer/components/flow-node.d.ts +1 -1
  20. package/lib/flow-viewer/components/flow-node.js +192 -29
  21. package/lib/flow-viewer/components/internal-picker.d.ts +1 -1
  22. package/lib/flow-viewer/components/internal-picker.js +271 -54
  23. package/lib/flow-viewer/components/node-menu-item.d.ts +2 -2
  24. package/lib/flow-viewer/components/node-menu-item.js +132 -32
  25. package/lib/flow-viewer/components/node-panel.d.ts +2 -2
  26. package/lib/flow-viewer/components/node-panel.js +104 -60
  27. package/lib/flow-viewer/components/notification-dialog.d.ts +2 -2
  28. package/lib/flow-viewer/components/notification-dialog.js +55 -23
  29. package/lib/flow-viewer/components/popup-modal.d.ts +1 -1
  30. package/lib/flow-viewer/components/popup-modal.js +113 -54
  31. package/lib/flow-viewer/components/rule-browser.d.ts +2 -2
  32. package/lib/flow-viewer/components/rule-browser.js +119 -30
  33. package/lib/flow-viewer/components/selectable-element.d.ts +1 -1
  34. package/lib/flow-viewer/components/selectable-element.js +71 -1
  35. package/lib/flow-viewer/components/selection-box.d.ts +1 -1
  36. package/lib/flow-viewer/components/selection-box.js +119 -15
  37. package/lib/flow-viewer/components/top-bar.d.ts +2 -2
  38. package/lib/flow-viewer/components/top-bar.js +116 -49
  39. package/lib/flow-viewer/components/workspace-contextmenu-options.js +128 -5
  40. package/lib/flow-viewer/components/writable-dropdown.d.ts +1 -1
  41. package/lib/flow-viewer/components/writable-dropdown.js +51 -5
  42. package/lib/flow-viewer/converters/node-converter.js +10 -1
  43. package/lib/flow-viewer/flow-viewer.js +19 -1
  44. package/lib/flow-viewer/models/camera.js +2 -1
  45. package/lib/flow-viewer/models/context-menu-button.js +2 -1
  46. package/lib/flow-viewer/models/light-node-collection.js +2 -1
  47. package/lib/flow-viewer/models/status.js +8 -1
  48. package/lib/flow-viewer/node-structure/copy.machine.js +34 -1
  49. package/lib/flow-viewer/node-structure/identity.assigner.js +10 -1
  50. package/lib/flow-viewer/node-structure/identity.dom.link.js +4 -1
  51. package/lib/flow-viewer/node-structure/index.js +5 -1
  52. package/lib/flow-viewer/node-structure/socket.type.matcher.js +50 -1
  53. package/lib/flow-viewer/node-structure/utils.js +109 -1
  54. package/lib/flow-viewer/services/copy-paste-manager.js +59 -1
  55. package/lib/flow-viewer/services/exporter.js +67 -1
  56. package/lib/flow-viewer/services/input.d.ts +0 -1
  57. package/lib/flow-viewer/services/input.js +80 -1
  58. package/lib/flow-viewer/services/integration.d.ts +0 -1
  59. package/lib/flow-viewer/services/integration.js +27 -1
  60. package/lib/flow-viewer/services/modal.js +29 -8
  61. package/lib/flow-viewer/services/project.d.ts +0 -1
  62. package/lib/flow-viewer/services/project.js +222 -1
  63. package/lib/flow-viewer/services/project.js.map +1 -1
  64. package/lib/flow-viewer/services/shortcuts.js +63 -1
  65. package/lib/flow-viewer/styles/editor-workspace-style.js +55 -53
  66. package/lib/flow-viewer/styles/flow-node-style.js +95 -93
  67. package/lib/flow-viewer/styles/picker-styles.js +31 -29
  68. package/lib/flow-viewer/utils.js +49 -1
  69. package/lib/index.d.ts +2 -2
  70. package/lib/index.js +953 -56
  71. package/lib/index.js.map +1 -1
  72. package/lib/json-viewer/forms/or-rule-form-alarm.d.ts +1 -1
  73. package/lib/json-viewer/forms/or-rule-form-alarm.js +91 -18
  74. package/lib/json-viewer/forms/or-rule-form-email-message.d.ts +2 -2
  75. package/lib/json-viewer/forms/or-rule-form-email-message.js +51 -12
  76. package/lib/json-viewer/forms/or-rule-form-localized.d.ts +2 -2
  77. package/lib/json-viewer/forms/or-rule-form-localized.js +269 -43
  78. package/lib/json-viewer/forms/or-rule-form-localized.js.map +1 -1
  79. package/lib/json-viewer/forms/or-rule-form-push-notification.d.ts +1 -1
  80. package/lib/json-viewer/forms/or-rule-form-push-notification.js +152 -63
  81. package/lib/json-viewer/forms/or-rule-form-push-notification.js.map +1 -1
  82. package/lib/json-viewer/forms/or-rule-form-webhook.js +296 -101
  83. package/lib/json-viewer/modals/or-rule-alarm-modal.d.ts +2 -2
  84. package/lib/json-viewer/modals/or-rule-alarm-modal.js +173 -17
  85. package/lib/json-viewer/modals/or-rule-notification-modal.d.ts +2 -2
  86. package/lib/json-viewer/modals/or-rule-notification-modal.js +196 -11
  87. package/lib/json-viewer/modals/or-rule-radial-modal.d.ts +2 -2
  88. package/lib/json-viewer/modals/or-rule-radial-modal.js +142 -17
  89. package/lib/json-viewer/modals/or-rule-webhook-modal.d.ts +1 -1
  90. package/lib/json-viewer/modals/or-rule-webhook-modal.js +78 -8
  91. package/lib/json-viewer/or-rule-action-alarm.js +97 -5
  92. package/lib/json-viewer/or-rule-action-attribute.d.ts +1 -1
  93. package/lib/json-viewer/or-rule-action-attribute.js +235 -33
  94. package/lib/json-viewer/or-rule-action-notification.js +465 -56
  95. package/lib/json-viewer/or-rule-action-webhook.d.ts +1 -1
  96. package/lib/json-viewer/or-rule-action-webhook.js +49 -18
  97. package/lib/json-viewer/or-rule-asset-query.d.ts +5 -5
  98. package/lib/json-viewer/or-rule-asset-query.js +849 -126
  99. package/lib/json-viewer/or-rule-condition.js +216 -29
  100. package/lib/json-viewer/or-rule-json-viewer.d.ts +1 -1
  101. package/lib/json-viewer/or-rule-json-viewer.js +393 -34
  102. package/lib/json-viewer/or-rule-then-otherwise.js +609 -113
  103. package/lib/json-viewer/or-rule-trigger-query.d.ts +1 -1
  104. package/lib/json-viewer/or-rule-trigger-query.js +227 -57
  105. package/lib/json-viewer/or-rule-when.js +343 -126
  106. package/lib/or-rule-group-viewer.d.ts +2 -2
  107. package/lib/or-rule-group-viewer.js +106 -12
  108. package/lib/or-rule-text-viewer.d.ts +0 -2
  109. package/lib/or-rule-text-viewer.js +133 -22
  110. package/lib/or-rule-text-viewer.js.map +1 -1
  111. package/lib/or-rule-tree.js +601 -57
  112. package/lib/or-rule-tree.js.map +1 -1
  113. package/lib/or-rule-validity.d.ts +1 -1
  114. package/lib/or-rule-validity.js +373 -62
  115. package/lib/or-rule-viewer.d.ts +1 -1
  116. package/lib/or-rule-viewer.js +361 -81
  117. package/lib/style.js +89 -64
  118. package/package.json +13 -13
  119. package/dist/umd/003671ee2a876e7614cd94390e2255b3.js +0 -1
  120. package/dist/umd/0078b630bed2938ce03f618c2bcd1363.js +0 -1
  121. package/dist/umd/0144de97a3c256f81447e7e7135780e5.js +0 -1
  122. package/dist/umd/019e34e85139cfc611bf23efa096c980.js +0 -1
  123. package/dist/umd/02174460fe8ff6a6bc19db86543b9600.js +0 -1
  124. package/dist/umd/029ed9161a8d24a9c2ba97124020989d.js +0 -1
  125. package/dist/umd/03452373324e7ceaf58e3830eafd1a28.js +0 -1
  126. package/dist/umd/03980cb12dacd26148c22bb61fce440f.js +0 -1
  127. package/dist/umd/03a5f5b2b97a8fc289399d92fba810d0.js +0 -1
  128. package/dist/umd/03aae8272914723a7bf85b984385032c.js +0 -1
  129. package/dist/umd/03ab996935e5c1a84ac09966ede74fb8.js +0 -1
  130. package/dist/umd/0416c21cfe088739209926632a360e3b.js +0 -1
  131. package/dist/umd/069a0d6b093e73e820f6a60a91fa614b.js +0 -1
  132. package/dist/umd/06d958315fc6cdbb28576b03e43203aa.js +0 -1
  133. package/dist/umd/07397bd479cbc34bc04576b4f15bdf18.js +0 -1
  134. package/dist/umd/07567125b93045706d81f17f7d04e262.js +0 -1
  135. package/dist/umd/078dd0bd08c93b1512e3d1b777591b21.js +0 -1
  136. package/dist/umd/0972f21af3e75388ef55435c0b3b831d.js +0 -1
  137. package/dist/umd/0973bb38b2e3efd2a879fd8e81d50fce.js +0 -1
  138. package/dist/umd/0a1d9862d917663419ac2dd2e8193267.js +0 -1
  139. package/dist/umd/0b06cbc7edf78b6f2810187262e7630b.js +0 -1
  140. package/dist/umd/0bd45b2d490c48c31619072a4fb0eaea.js +0 -1
  141. package/dist/umd/0cd2349b7f4b6f7013e195c8145d2917.js +0 -1
  142. package/dist/umd/0dd9fc97c3dee2275f41cd20ffaea059.js +0 -1
  143. package/dist/umd/0e67325b9a04863301e36c0c37947069.js +0 -1
  144. package/dist/umd/0f147528a6f36ca40c8b3ec796429f58.js +0 -1
  145. package/dist/umd/0f2d1162158745e1093693a3a999932a.js +0 -1
  146. package/dist/umd/0fa30731c46fe8b6a54f9752ad0ed7e0.js +0 -1
  147. package/dist/umd/0fd64c8920c10008be86572dd6830dc1.js +0 -1
  148. package/dist/umd/10132993df2cf9c9423b53a8a44379ab.js +0 -1
  149. package/dist/umd/1034e3807d1bcf55cb564491950237ab.js +0 -1
  150. package/dist/umd/105b17c6442efb97c18ca2aef3976b06.js +0 -1
  151. package/dist/umd/10c464f3f882bfeeefbc0934c2ee9fbe.js +0 -1
  152. package/dist/umd/111d9fdb9864abba36298d1a0807fe6d.js +0 -1
  153. package/dist/umd/1195816afa4a5e8183857be16a04ae6f.js +0 -1
  154. package/dist/umd/119f6c45ea400e3c27e1ce172e4c881d.js +0 -1
  155. package/dist/umd/11e3a2a8fb5bcb9d19298a80cafd3f5a.js +0 -1
  156. package/dist/umd/130340e2c62b9e858f186dab5f491e55.js +0 -1
  157. package/dist/umd/135747176621bcc94e9edd0323a81d3c.js +0 -1
  158. package/dist/umd/1383530217ac0068c844902d24e18e08.js +0 -1
  159. package/dist/umd/13eda3507db9cbfb400f46b9b3ff6553.js +0 -1
  160. package/dist/umd/1495a3d68b15b8622c53f6688b64809f.js +0 -1
  161. package/dist/umd/1533058f0ce13acdaa8d5bdc7d147bef.js +0 -1
  162. package/dist/umd/15f3800d33b854ba476c9daf1b9e0326.js +0 -1
  163. package/dist/umd/16c2e1b50af4ba05edaa03c8c9e9d18c.js +0 -1
  164. package/dist/umd/170487867de05784a96608617bdd544d.js +0 -1
  165. package/dist/umd/1736cea368ae85240f34289307fdf67f.js +0 -1
  166. package/dist/umd/17632e1e19e438f431784dfd77e01773.js +0 -1
  167. package/dist/umd/17dc98279d24649d3ca77cbce8c44e83.js +0 -1
  168. package/dist/umd/1875ecdf54e78b5f07ff1bd944cf794b.js +0 -1
  169. package/dist/umd/191feb6103c36b202bc01ba262916cdf.js +0 -1
  170. package/dist/umd/1b15b9f88acaf59b96e59c6b5f32da12.js +0 -1
  171. package/dist/umd/1c24a68cb472146022d0806ea2505cfb.js +0 -1
  172. package/dist/umd/1c57b3481f295105588972ffa1305521.js +0 -1
  173. package/dist/umd/1cc6fc3772824e2f87f10a9c3fad2dae.js +0 -1
  174. package/dist/umd/1ce14f2cad9f3c122cb5ccfcd485ffb4.js +0 -1
  175. package/dist/umd/1d3796180f854b5d8ab435ab0a1c2c11.js +0 -1
  176. package/dist/umd/1dddd8903e00ce9149ded23fb87f6f34.js +0 -1
  177. package/dist/umd/1e5fe0a75db78dcabbd4f27c2b084e4b.js +0 -1
  178. package/dist/umd/1ed6368e8e20628ad5229329eec28baa.js +0 -1
  179. package/dist/umd/1ff1389501159e4846a5133e3b8992d8.js +0 -1
  180. package/dist/umd/210aec2722e6416a0349a987260e14a3.js +0 -1
  181. package/dist/umd/211511e7b374f57ad31acaf49dbdccb1.js +0 -1
  182. package/dist/umd/2272c6632c52c3e402ab27b8045ab8f1.js +0 -1
  183. package/dist/umd/228ca80abf1ae030cbfe7faaec61913f.js +0 -1
  184. package/dist/umd/2302902e10c4afab56e1b864c96070cb.js +0 -1
  185. package/dist/umd/23602ad4c88f0f19e7a0a12454ebf556.js +0 -1
  186. package/dist/umd/23bb1a9f279e7a732bfd405350aab114.js +0 -1
  187. package/dist/umd/24a3ff38afde257888d755ece9bfd704.js +0 -1
  188. package/dist/umd/24f97ddd76026815674affbc50ad6169.js +0 -1
  189. package/dist/umd/25718a469574ade47e23567d8c543169.js +0 -1
  190. package/dist/umd/25eda4bb98e40a82cfd5b4bf9fbc06ec.js +0 -1
  191. package/dist/umd/262f489eb59166e1215642b60446d123.js +0 -1
  192. package/dist/umd/269732f4c5f6e82ea3246548a9631b47.js +0 -1
  193. package/dist/umd/275d8f4e0550edce2f3b85b3eaa94e54.js +0 -1
  194. package/dist/umd/27730a0bdc6f430cc85049a46a73a029.js +0 -1
  195. package/dist/umd/27846e85433e54a3ec0ab34d62233dc5.js +0 -1
  196. package/dist/umd/283970c76db99e2d0d90f0e7c45494f9.js +0 -1
  197. package/dist/umd/28785bea435918d49b290d27bf660baa.js +0 -1
  198. package/dist/umd/2a8394955e047270a2a965ec67843989.js +0 -1
  199. package/dist/umd/2aa392a501973ebfcea38239a45ed8e7.js +0 -1
  200. package/dist/umd/2ad349208b3a727abb3c9f943865a27c.js +0 -1
  201. package/dist/umd/2b1b8f8b9e8f1e423a69afd121fd7da9.js +0 -1
  202. package/dist/umd/2b5729e073775b8fb827fc8e4725e48a.js +0 -1
  203. package/dist/umd/2c3ad366cda02f17520d3369cae64c2c.js +0 -1
  204. package/dist/umd/2d2a75e3d01a74b93d07db04df8abe5e.js +0 -1
  205. package/dist/umd/2dd82c65030101b60dffccedd8741c6e.js +0 -1
  206. package/dist/umd/2e841e8b77c2a2c00fd71940632bc1e1.js +0 -1
  207. package/dist/umd/2f055ac4066041b9008dd6aebf9df34b.js +0 -1
  208. package/dist/umd/2f25a4dc442bc9aebc58cae30c50c3e2.js +0 -1
  209. package/dist/umd/2f55cddc8eb85b63ee5b4ce0e5488230.js +0 -1
  210. package/dist/umd/2fc0239242a898632ca8aa451cb930c2.js +0 -1
  211. package/dist/umd/2fe2904fc024afaf81732563cb83e547.js +0 -1
  212. package/dist/umd/318dcae1cdcd4733986a93e7a5fab7b8.js +0 -1
  213. package/dist/umd/31c610efb1d25afc90853b52ba4cb089.js +0 -1
  214. package/dist/umd/328cbf598e9711b0a87c19437b02f80d.js +0 -1
  215. package/dist/umd/33b4e371d4983ab56f4db08627119f0b.js +0 -1
  216. package/dist/umd/349237ad9565dc823ce7bcb7527ba7ee.js +0 -1
  217. package/dist/umd/34b8d1c8a81822685f809c49097b81fc.js +0 -1
  218. package/dist/umd/34f99cce131bd7aa65e7a924e2456006.js +0 -1
  219. package/dist/umd/3567d1ea443427e944a6f189a0898819.js +0 -1
  220. package/dist/umd/363d3bac8dcd9a83332c3758185ce080.js +0 -1
  221. package/dist/umd/3645af9e7e929d3abe3255c739e20e84.js +0 -1
  222. package/dist/umd/367def81f25c0a08527f9a4e86e70c56.js +0 -1
  223. package/dist/umd/37172facd8a534a38f378ca2a9c7c11b.js +0 -1
  224. package/dist/umd/37ee3b5201ae2e2dc5dc8b1b20ad900e.js +0 -1
  225. package/dist/umd/3834f2acef5a5debb2a21ad919272307.js +0 -1
  226. package/dist/umd/38b1d18836e38ee7b4deaeba0c35f7b8.js +0 -1
  227. package/dist/umd/39fea85ed7dd99d7c6c9e59b7040523f.js +0 -1
  228. package/dist/umd/3a1227a65a1fc39ca476c295d1a260a4.js +0 -1
  229. package/dist/umd/3a6ca6958d003ae67bb7fefc8713ee93.js +0 -1
  230. package/dist/umd/3ac8c7749734990e2d9f81eeca219886.js +0 -1
  231. package/dist/umd/3b02cca9e95276a74f3ed2bbc7a64ce6.js +0 -1
  232. package/dist/umd/3b190e5159c72fb7e27271956772bcba.js +0 -1
  233. package/dist/umd/3b544bb2c5a4e7b225a4b50235a0fd6d.js +0 -1
  234. package/dist/umd/3b6e7dc98c47eeafd851ca5072db4be6.js +0 -1
  235. package/dist/umd/3bf96f8eb1859e2724a4b769af3b5f1e.js +0 -1
  236. package/dist/umd/3c5b59a666c5d39d9ba9cc054d36a410.js +0 -1
  237. package/dist/umd/3ea020c57c2bbf457a8497df313b2e5c.js +0 -1
  238. package/dist/umd/3eefbe1c009cfd730b2ca6f834367c45.js +0 -1
  239. package/dist/umd/3f896944a97f002f2146e028ff2eac63.js +0 -1
  240. package/dist/umd/414cd2c842fa42bf71e155f870619e00.js +0 -1
  241. package/dist/umd/42c556183279bbdaaed3a8a9f9108f58.js +0 -1
  242. package/dist/umd/42e0ea6351d45d342caab13cb12f9ea4.js +0 -1
  243. package/dist/umd/43139bfbcbce9de597b4985dc1e6a03b.js +0 -1
  244. package/dist/umd/432a5982ba3ddf958381d780e1e9a8e2.js +0 -1
  245. package/dist/umd/432aff60ba31a74d2120031fdc894775.js +0 -1
  246. package/dist/umd/4430c55f023b72fb5e389cee9351b38c.js +0 -1
  247. package/dist/umd/44599d9b6202ebebfcdd073edf3562e3.js +0 -1
  248. package/dist/umd/44efcea2f84e80cc4092a89796afe886.js +0 -1
  249. package/dist/umd/472ba8f81bf8cac86027cb1be4e3b9cd.js +0 -1
  250. package/dist/umd/479ec45a8edfe482fae4298d1e9862d2.js +0 -1
  251. package/dist/umd/47e4cb297b2c3841ef86ce04a7f5584e.js +0 -1
  252. package/dist/umd/47e5776dff3b80ed69ab5947dba33c76.js +0 -1
  253. package/dist/umd/48e9351c5623d4da657ce7d5d0267ea6.js +0 -1
  254. package/dist/umd/492e618a031cfde9c83d699c430de2ac.js +0 -1
  255. package/dist/umd/49582665262ff6179b9f3a98adf7ed5c.js +0 -1
  256. package/dist/umd/4b692785a8a6340a89e6067274a7583c.js +0 -1
  257. package/dist/umd/4bee3a46b8378a7b4ef84492f08abd22.js +0 -1
  258. package/dist/umd/4bf3bc1fbdd26ac698fef1bdf26e3ff4.js +0 -1
  259. package/dist/umd/4bf6763c5956e3bccbf0373068810ded.js +0 -1
  260. package/dist/umd/4c1bdecbedd36a5765de184ac056822a.js +0 -1
  261. package/dist/umd/4d0849c6c9a868c09130600ac68319b3.js +0 -1
  262. package/dist/umd/4d0ebf4c528cee9b0cdd3e076e06570b.js +0 -1
  263. package/dist/umd/4d156ee0485ab4b40b090a3cd7b995a9.js +0 -1
  264. package/dist/umd/4d6d9020e7e5c8d8dee7a5e374355f05.js +0 -1
  265. package/dist/umd/4d8cb7033879cb7fcc7a43798e2bde22.js +0 -1
  266. package/dist/umd/4e389cce6fb8f78845fab249bce43c0b.js +0 -1
  267. package/dist/umd/4ef80ee74467e0297eec3cc03092da01.js +0 -1
  268. package/dist/umd/4f683c6881e9f8740f5516a85b9eb9da.js +0 -1
  269. package/dist/umd/5106411f7468a5ee5b1ee77aed12c0c7.js +0 -1
  270. package/dist/umd/51f903c5ce5284a63196247cffb5ca40.js +0 -1
  271. package/dist/umd/52fd09d1713345d9ee64dc7daea9fd6f.js +0 -1
  272. package/dist/umd/5348f3cfbe5a63954e7d984f197bbddb.js +0 -1
  273. package/dist/umd/5352ecd8e5f1a2637b48e18cc406edb1.js +0 -1
  274. package/dist/umd/5398e3b596fa15df4d84b2aa0464e5c4.js +0 -1
  275. package/dist/umd/53e3600928916423671f3388e2d67844.js +0 -1
  276. package/dist/umd/54560f13b36626237959e93b7771a484.js +0 -1
  277. package/dist/umd/54a10f3bddad1e6da452fee7124fe846.js +0 -1
  278. package/dist/umd/57e14488b13e50ebdb5fdfc7880da683.js +0 -1
  279. package/dist/umd/57f4109bd1f06be4dc2bcb8ff7eaf1e5.js +0 -1
  280. package/dist/umd/582e24f5ba929e358fadfc7be4c18025.js +0 -1
  281. package/dist/umd/58598705e7012f4ca1eb1dd21d3c59a5.js +0 -1
  282. package/dist/umd/5861dfe4f2c7823623e82d0619c5bf06.js +0 -1
  283. package/dist/umd/58aab872dbdb5e1607076e1935130e03.js +0 -1
  284. package/dist/umd/58c35e5c73bbc1664bbd67c570342aa0.js +0 -1
  285. package/dist/umd/58e7f91772635a5c59bacc975735da6c.js +0 -1
  286. package/dist/umd/59cc05504a1c823b6d4796bf6b430822.js +0 -1
  287. package/dist/umd/5a496ae20cc576bef1d35972548207cf.js +0 -1
  288. package/dist/umd/5a741aab715866cb4d9a55e89dfc8420.js +0 -1
  289. package/dist/umd/5b6a626249d0bc43e412fffa6a9ee177.js +0 -1
  290. package/dist/umd/5cab33610b8d9c1aee4db4672811cb5f.js +0 -1
  291. package/dist/umd/5cd4e1282f4409600b942819b7aa4f21.js +0 -1
  292. package/dist/umd/5ce650c06c385f9d15621e54c60457c0.js +0 -1
  293. package/dist/umd/5cebfc2c3495b6294dcb2a99e5174872.js +0 -1
  294. package/dist/umd/5d312b184c1f4565f51247d3c6dbba90.js +0 -1
  295. package/dist/umd/5d3314103b00c8ea165c6f9f6757f794.js +0 -1
  296. package/dist/umd/5df362c9904925cdf574d9506e4be76d.js +0 -1
  297. package/dist/umd/5e55b301888460bd06c8e26d1011e01a.js +0 -1
  298. package/dist/umd/5e8a4f4320a07ae4bb1d8a5cd621d955.js +0 -1
  299. package/dist/umd/5f3ce6efab3c679ec1ad25ab0b3f6b2f.js +0 -1
  300. package/dist/umd/5f5a93ab1249b7cbdb13d9466febd3a0.js +0 -1
  301. package/dist/umd/5fedbf948ed123687f77167fac1faf8b.js +0 -1
  302. package/dist/umd/60190285b6c2243e14184b9e57d48dbb.js +0 -1
  303. package/dist/umd/603e2644074e6512faf427d511d47fe4.js +0 -1
  304. package/dist/umd/60ede8d7ffdf4c05f2ce51b6d8d2be68.js +0 -1
  305. package/dist/umd/6130486ae80b103700a2e1eec0bc5cea.js +0 -1
  306. package/dist/umd/622e27eec5f26148f51ccc30315a3deb.js +0 -1
  307. package/dist/umd/6250c7594cd66ca91184b5beca293e06.js +0 -1
  308. package/dist/umd/62a96977e725e8bc809dc80afe0fedf1.js +0 -1
  309. package/dist/umd/63596b4896732fb322ab0496b4be1e74.js +0 -1
  310. package/dist/umd/6490772da5aecc6cb9e4c625abc74a96.js +0 -1
  311. package/dist/umd/64a5f4d62507d032038dcd76d15188e1.js +0 -1
  312. package/dist/umd/64d6924350bd7706850cdc0dcc76ccf6.js +0 -1
  313. package/dist/umd/65e7cf62ca9df32c18b630f31025a401.js +0 -1
  314. package/dist/umd/663ffb67b9683a2126410325d1a5a152.js +0 -1
  315. package/dist/umd/669c462287be8fa855e0ac003c145b55.js +0 -1
  316. package/dist/umd/678f5201c1917429f334b88078ca4174.js +0 -1
  317. package/dist/umd/6a1c347ab79a93f3ac01b08c8ccfc827.js +0 -1
  318. package/dist/umd/6a851f05f1f4a974e02fe23eac2bad4e.js +0 -1
  319. package/dist/umd/6b4b87a54f673cfbb82be45329441bef.js +0 -1
  320. package/dist/umd/6bed1b724e74e6bc80688f42bc824d70.js +0 -1
  321. package/dist/umd/6c0a75dc5671c3f237a79f6e45b9891c.js +0 -1
  322. package/dist/umd/6c67587c2093ac3a19da9f2196e040b7.js +0 -1
  323. package/dist/umd/6c6d192b6860b4508a14c2d04769a35e.js +0 -1
  324. package/dist/umd/6d0c0aa17d36cb16bafc76d7376b97f7.js +0 -1
  325. package/dist/umd/6d38cef4a006e6cfe54a6117aba7b600.js +0 -1
  326. package/dist/umd/6e40b726d91e9138d9eaef6fd012c740.js +0 -1
  327. package/dist/umd/6faa9e5f2a0122d2333fa450337a09b0.js +0 -1
  328. package/dist/umd/70074e0c785c9a808dea76c7c7d17af3.js +0 -1
  329. package/dist/umd/70286c33cab463fd576766adecd2d5d9.js +0 -1
  330. package/dist/umd/70289d3b9b2b851df3286e20e40410a6.js +0 -1
  331. package/dist/umd/7080d2a1db1608264a6d9d9fbaf2cce8.js +0 -1
  332. package/dist/umd/70efbabef77fb217f904f41dbf7fe8bf.js +0 -1
  333. package/dist/umd/714763ddd9bd466c95df7b042900bb87.js +0 -1
  334. package/dist/umd/7222998c10fabd9c824cf8cf540b3b74.js +0 -1
  335. package/dist/umd/724a16861717b5b4f786d24b56b62614.js +0 -1
  336. package/dist/umd/7259bceba25ac1476fc775122a63d249.js +0 -1
  337. package/dist/umd/725da29f1643c2263a437c08a1454aea.js +0 -1
  338. package/dist/umd/742afd6665dee8dafd43661093bdda9d.js +0 -1
  339. package/dist/umd/755114145e5b97e5571a160a39e716db.js +0 -1
  340. package/dist/umd/757ef1b870d065a77ce3c182a03d93ad.js +0 -1
  341. package/dist/umd/7648d83718f74149cb2db078b19fb7db.js +0 -1
  342. package/dist/umd/764b59bdd3a89e14f88c9d63020551a1.js +0 -1
  343. package/dist/umd/77aaca51c1c32acaf32656d45f4dc017.js +0 -1
  344. package/dist/umd/78632dc7e1875ec8c39416f645e53733.js +0 -1
  345. package/dist/umd/79241f85b016a7332f85bb66667459c2.js +0 -1
  346. package/dist/umd/79455ab9a6cd507f5314141cc965093a.js +0 -1
  347. package/dist/umd/7aa17a5a81c83c0f455941b3b286d5da.js +0 -1
  348. package/dist/umd/7b839a5c1f6d89538928c8a29003bbda.js +0 -1
  349. package/dist/umd/7bc18fc7a7d1323c178aa1846d79fb3c.js +0 -1
  350. package/dist/umd/7d64980faff5b041a461fd0ba3e2f3f5.js +0 -1
  351. package/dist/umd/7e4099fc2d04c7c1cf96892b962ba4ec.js +0 -1
  352. package/dist/umd/7ec97a8161bf26e434d3891f64adb15b.js +0 -1
  353. package/dist/umd/7f45be8b3fab8d742afc26fc48a23d2e.js +0 -1
  354. package/dist/umd/7f79d4bde67c8013b187889b63e25bce.js +0 -1
  355. package/dist/umd/7f9a9efc9ab681fcbf6400e2adb368a9.js +0 -1
  356. package/dist/umd/805cb6232d7a9fa46025d48a43622ecf.js +0 -1
  357. package/dist/umd/80ddbf4f0fdde4ddba57130e61043017.js +0 -1
  358. package/dist/umd/81318a3530fb35d5178eb7a4a13a606f.js +0 -1
  359. package/dist/umd/817edb0c6f9d66f9c0027762edb1d797.js +0 -1
  360. package/dist/umd/827c1cbf746eacfc23ed2037e4d6359d.js +0 -1
  361. package/dist/umd/83387cb17a7680f59240e7b399e3ac2b.js +0 -1
  362. package/dist/umd/839e3594798c1942d3c92f9acfaa5f0b.js +0 -1
  363. package/dist/umd/83bd353f98aa901411c82b8af58d1296.js +0 -1
  364. package/dist/umd/84270e22d4439d15b0d8f392d1338d8e.js +0 -1
  365. package/dist/umd/843c762c24f7fac628d8c62519a7b308.js +0 -1
  366. package/dist/umd/84abf03cc94d264bb38020b4ac5f76e1.js +0 -1
  367. package/dist/umd/84effdea6b72577c780f6621246d2e82.js +0 -1
  368. package/dist/umd/852f0ecd7b17e3bfd700a821ff438f7e.js +0 -1
  369. package/dist/umd/8646c11c7b2b46a2b2becab0d9e549c7.js +0 -1
  370. package/dist/umd/875ae58e8015a6d08dbc9d0c04e24638.js +0 -1
  371. package/dist/umd/879d6bc1ca1dde95a9a98dc7a2ab0d06.js +0 -1
  372. package/dist/umd/87bce6f50196688852142c679227b1b9.js +0 -1
  373. package/dist/umd/880ae94877022f7fb0458ced0825eb4c.js +0 -1
  374. package/dist/umd/88730abfeb4a23e692ac7933882f12eb.js +0 -1
  375. package/dist/umd/88da0e09d486e197aaca5bc3d6350998.js +0 -1
  376. package/dist/umd/88e2feda80ac8cfb28f1dc0ec833b40d.js +0 -1
  377. package/dist/umd/894052ca1f8f35cc1cf7cfb29ef75027.js +0 -1
  378. package/dist/umd/894edcaf39c3c95818e3949d737ed459.js +0 -1
  379. package/dist/umd/8a31266178067a316bb2503147cdb5cb.js +0 -1
  380. package/dist/umd/8a5127228870aafabfff6111d29313d6.js +0 -1
  381. package/dist/umd/8b8336037f074d9dcbd20eab535b803f.js +0 -1
  382. package/dist/umd/8c7616f0adba6a5ac0d2f06ba4ebd696.js +0 -1
  383. package/dist/umd/8d9bb1799d9b98db107e84f10132e17f.js +0 -1
  384. package/dist/umd/8ed58ed9c7e1cb1ae1f2830d29011ffb.js +0 -1
  385. package/dist/umd/8ed5aba33ead1f94e97d5c35a5e93434.js +0 -1
  386. package/dist/umd/8eede17ae9e4d25c3c17b8a8a7fc3c3d.js +0 -1
  387. package/dist/umd/8f9ce72eeabbf31f2d51f4bcfc66d3b0.js +0 -1
  388. package/dist/umd/90812d89181b698975cbb081adcbbcb0.js +0 -1
  389. package/dist/umd/90f3dc3c18d447104b63c156cb7fddb5.js +0 -1
  390. package/dist/umd/91beb08737a1bbf071f351fb0acdbf3c.js +0 -1
  391. package/dist/umd/92f4aab5c66f6269c7054c8fbcb3de13.js +0 -1
  392. package/dist/umd/950a205e91da7e78226dd785fd6d34db.js +0 -1
  393. package/dist/umd/962969a46fefcace3305abd4d6e14a2e.js +0 -1
  394. package/dist/umd/9696a4229fb787eeb25b26f1274b75ee.js +0 -1
  395. package/dist/umd/96b8d8b5efd11741639659c63a485c27.js +0 -1
  396. package/dist/umd/972ea4b6ab9d3baeab6d00057cd5f9d3.js +0 -1
  397. package/dist/umd/9807cf1e443a7440371904b6525f37eb.js +0 -1
  398. package/dist/umd/981bd23edacd811f9e4a583d89b544ee.js +0 -1
  399. package/dist/umd/9827973b533de05b338533a0211d97d9.js +0 -1
  400. package/dist/umd/983fccb9f00748c487e889f6c83aa367.js +0 -1
  401. package/dist/umd/9920e03a65566d728a73c7bf18bc5741.js +0 -1
  402. package/dist/umd/99add2656ccb006ff11de385c4219f41.js +0 -1
  403. package/dist/umd/9b1fd9cf4206cc32e84150c49707d811.js +0 -1
  404. package/dist/umd/9b4733fc7a2fe9aedb0fa242bd49e9f0.js +0 -1
  405. package/dist/umd/9b4de1346c73ba258736f1a3f00fdc14.js +0 -1
  406. package/dist/umd/9b5a6ec07bb0a2daade10189696fc399.js +0 -1
  407. package/dist/umd/9b80d1a12acd18c90e41ca92073122a7.js +0 -1
  408. package/dist/umd/9b9578869f378f8e2afbf85a76c0ac72.js +0 -1
  409. package/dist/umd/9ebb9ac2c9c875649c72722bc585d445.js +0 -1
  410. package/dist/umd/9ed8c3550b5c3c1e878d0692f0338cb7.js +0 -1
  411. package/dist/umd/9fa80a5bc14fe8644697fe0dd7b99431.js +0 -1
  412. package/dist/umd/9fd3f255cfd09016ec7f4896bc51864c.js +0 -1
  413. package/dist/umd/a0e32ba94aa4384823d768802b9486e1.js +0 -1
  414. package/dist/umd/a1c8660c5bcc6b6a43a7fb3c351174d9.js +0 -1
  415. package/dist/umd/a223748cd69094dd12b486353b22f479.js +0 -1
  416. package/dist/umd/a2746fc96d535b19c120d4b87dc86ef1.js +0 -1
  417. package/dist/umd/a2b29b879b9e8606085c0d3776f789ca.js +0 -1
  418. package/dist/umd/a34efdb6282815cdc27d2f83352b59e0.js +0 -1
  419. package/dist/umd/a3dfa410d90c00078f4b015410048f34.js +0 -1
  420. package/dist/umd/a41ce517e26d17d855b7224af9ee433b.js +0 -1
  421. package/dist/umd/a496f663a8cf2dc047e12d8a80d76510.js +0 -1
  422. package/dist/umd/a4bedde07e392f8ebf64341b61f75df2.js +0 -1
  423. package/dist/umd/a4d638b976f02f35740be031f996e088.js +0 -1
  424. package/dist/umd/a4e021a4b5d5d65cc87fee17c1886c3f.js +0 -1
  425. package/dist/umd/a52f9ac0e3d582ed7e488aa1dfc33eda.js +0 -1
  426. package/dist/umd/a533e643002830be2da76c9527265860.js +0 -1
  427. package/dist/umd/a569591af2f834ec4b58f43ab7742186.js +0 -1
  428. package/dist/umd/a678d4dedcc646810a379211797d5294.js +0 -1
  429. package/dist/umd/a6eb87af5cd7ae7e4fcba8ec606ec4ba.js +0 -1
  430. package/dist/umd/a709bba98acec5da3ea6258e245514cb.js +0 -1
  431. package/dist/umd/a9cb92db2399f7ac97ad55fe79fe5c20.js +0 -1
  432. package/dist/umd/a9f61cc92a7407c8ca0a5843b29d7a57.js +0 -1
  433. package/dist/umd/aa0417796df2b0398a45c00f93f37ea4.js +0 -1
  434. package/dist/umd/aa0eee504d52a12d3a30bbd523afcc34.js +0 -1
  435. package/dist/umd/aa5623ec68d23fedb9c9c115c7d99063.js +0 -1
  436. package/dist/umd/ab0128ab12bcb8729032421b40f5f8dd.js +0 -1
  437. package/dist/umd/ab237eed5fd16ab99c06f0d28d465edb.js +0 -1
  438. package/dist/umd/ab720dd0a0fd070ad82c052263f748e2.js +0 -1
  439. package/dist/umd/ac54fd77986affc0a122d325788b34d3.js +0 -1
  440. package/dist/umd/af1635b600efd13f6059eb6ac9deae12.js +0 -1
  441. package/dist/umd/af6fdb556ee3f9065578bb01f81f6216.js +0 -1
  442. package/dist/umd/afba1f28f2baa29eae717d6cb03f5464.js +0 -1
  443. package/dist/umd/b02d982ccb1011197a5a24800b178a0a.js +0 -1
  444. package/dist/umd/b03bc4e99280d8b4dfd1c6cddedfbd76.js +0 -1
  445. package/dist/umd/b10accbff47791a59b8494225af07025.js +0 -1
  446. package/dist/umd/b1170472ae4b50e3b0070eb991e502fe.js +0 -1
  447. package/dist/umd/b1e349371cb9c226905c846706ad8b93.js +0 -1
  448. package/dist/umd/b1f3f77a9279cdb38846ebe13c3438bc.js +0 -1
  449. package/dist/umd/b20cd9acf45420fcacfd923754185663.js +0 -1
  450. package/dist/umd/b24bb117549d04501b98ffb66b427e0f.js +0 -1
  451. package/dist/umd/b275e591896df64fa3202d90ae70c583.js +0 -1
  452. package/dist/umd/b2d62f22463367ca31dfdbc615637c32.js +0 -1
  453. package/dist/umd/b306285dfd802d091e788de0f96b8cb2.js +0 -1
  454. package/dist/umd/b33ef9b4202539d3690251cb8213a034.js +0 -1
  455. package/dist/umd/b3f1431b9e6d9e6632a93c2cd89f945b.js +0 -1
  456. package/dist/umd/b676b876040015b30352b3cda5e243b7.js +0 -1
  457. package/dist/umd/b714a3647ca66ab7685eb0437c9e3a8d.js +0 -1
  458. package/dist/umd/b808fb222140a85b23ebbe0fffa906d9.js +0 -1
  459. package/dist/umd/b881dca9d9a80f61d87374b4bd5a2dd5.js +0 -1
  460. package/dist/umd/b8b6bd460e7da0ba8f3b2218327966ee.js +0 -1
  461. package/dist/umd/b934b22e8f8a8b1ba81dbc2cf058b0cd.js +0 -1
  462. package/dist/umd/b953ce2f19e7291598cd9c05128133c1.js +0 -1
  463. package/dist/umd/b992b348ffb6453e4a02a60e71c5304e.js +0 -1
  464. package/dist/umd/b9bf918956902d11645efb99e2ab5293.js +0 -1
  465. package/dist/umd/ba6b8b3e06cd9d0aee9c69278ee84647.js +0 -1
  466. package/dist/umd/bb1365c0983ce5ad50060b24788b9630.js +0 -1
  467. package/dist/umd/bb1de0986c4fb3ee31c5a413b8f97c94.js +0 -1
  468. package/dist/umd/bb5bab7a675544fe31ddb7f4a77dffb9.js +0 -1
  469. package/dist/umd/bd309bb3f23f2bfbcf914f2e71474ab5.js +0 -1
  470. package/dist/umd/be75b76e74c78535966ec8aaa7d46bec.js +0 -1
  471. package/dist/umd/bf37de323316c6ae5745fc11fd576b1c.js +0 -1
  472. package/dist/umd/c19292ad0187d75dd9580319cbfd5688.js +0 -1
  473. package/dist/umd/c1a1f4ba29aa2d9a0b1a1abe5cfee0c6.js +0 -1
  474. package/dist/umd/c2999cd0bf63072240931010a45c21da.js +0 -1
  475. package/dist/umd/c2f4581864c135dff9056745035d3914.js +0 -1
  476. package/dist/umd/c2fa476995041f9982b89a1c483da2b9.js +0 -1
  477. package/dist/umd/c3832579be376308fa819b04e7b0c66f.js +0 -1
  478. package/dist/umd/c3f345c994392d97785925e790513a9f.js +0 -1
  479. package/dist/umd/c428d0ff296b8b683347a18896d72015.js +0 -1
  480. package/dist/umd/c4e58637b4d14c303e29d3ce4b4a210f.js +0 -1
  481. package/dist/umd/c51840077c684be0e7e13339f85cd4a9.js +0 -1
  482. package/dist/umd/c530988d2b1966fd10a4d99fa3877e1b.js +0 -1
  483. package/dist/umd/c5647f3b9e799d1b9818e80796f8a574.js +0 -1
  484. package/dist/umd/c64d6e1e72024bb5d3d3e9bfc19d183d.js +0 -1
  485. package/dist/umd/c6938ce24c731f9ee703747909cd2aad.js +0 -1
  486. package/dist/umd/c80e89199aef31e48addb2b35ea96365.js +0 -1
  487. package/dist/umd/c8230f96396f0378d032dce2be3dce66.js +0 -1
  488. package/dist/umd/c8acc93023012737a3bf8fb767b66838.js +0 -1
  489. package/dist/umd/c93947dfac92c92c3999d1d51fc5b516.js +0 -1
  490. package/dist/umd/c9568507cc8ea516d091749c7919b744.js +0 -1
  491. package/dist/umd/cb0d121a88477f943960f5ad60602c22.js +0 -1
  492. package/dist/umd/cb4bb785934eeca9b408e892ae6b73b7.js +0 -1
  493. package/dist/umd/cb5746e29527a2fdb9f857a121e086ed.js +0 -1
  494. package/dist/umd/cb652f200fc3dd740b2e7f678a9272ea.js +0 -1
  495. package/dist/umd/cb9910e014b468ada91393696fcad206.js +0 -1
  496. package/dist/umd/cbdbd623038183a8c068dd24ecd90682.js +0 -1
  497. package/dist/umd/cbdc4ca43a8c940a6c3f59a8b6f17df5.js +0 -1
  498. package/dist/umd/cc0de4981277622a9017f137023a6dd5.js +0 -1
  499. package/dist/umd/cc65d108f0e7cfb200de1d0bcf115005.js +0 -1
  500. package/dist/umd/cd9a17f94a922c7c88000b1b3cdd67df.js +0 -1
  501. package/dist/umd/cf188b3f83735389d47bb12fc9f7069a.js +0 -1
  502. package/dist/umd/cf26dd07f19bcb5b7efbf057a6cfeb8f.js +0 -1
  503. package/dist/umd/cf3f6b1c74c72cb5d02870022dbc9f94.js +0 -1
  504. package/dist/umd/cf909ad6e321c2f98750f5c3581556f8.js +0 -1
  505. package/dist/umd/cf9c7cbfc2b609b9ae59daeab82719c4.js +0 -1
  506. package/dist/umd/cfaaa83ec3973688a7946b95b597c228.js +0 -1
  507. package/dist/umd/d0415105402964718010284fcfa8b2ea.js +0 -1
  508. package/dist/umd/d09463c099fb2c44719380623a5c68fb.js +0 -1
  509. package/dist/umd/d1a1ee70e5eed28571ae9c619f33de7c.js +0 -1
  510. package/dist/umd/d1db2c4677dd2ee7a0c690c58798a013.js +0 -1
  511. package/dist/umd/d43ad5f9bad9a042b49b2592c7639c28.js +0 -1
  512. package/dist/umd/d4ad4ca9643d85d3990bfefe29cb3bb0.js +0 -1
  513. package/dist/umd/d4f1a314cb3668f8e17f24bccf0229b6.js +0 -1
  514. package/dist/umd/d4f5981ee5a73d8a6e19112f2ffcb72c.js +0 -1
  515. package/dist/umd/d542dda7308361c34af2afb9b70d755a.js +0 -1
  516. package/dist/umd/d5999827bd3af6b813a871de344b109a.js +0 -1
  517. package/dist/umd/d5a6140d581e5c4eb200259ce372f40b.js +0 -1
  518. package/dist/umd/d5f79987405c2169278f8de37bcc9d05.js +0 -1
  519. package/dist/umd/d7340300249ab98bd9b3f538a767106e.js +0 -1
  520. package/dist/umd/d78d3b050ea95b068380d975fd413fd7.js +0 -1
  521. package/dist/umd/d7d616d4aa8fd3f51d681242853dcde9.js +0 -1
  522. package/dist/umd/d83cda12aee0c87c8b381a1234bf7798.js +0 -1
  523. package/dist/umd/d869a443b727ea4b7cef2de0ff2a6ed8.js +0 -1
  524. package/dist/umd/d8f7ecdd496f3caf14f5afbedfff1937.js +0 -1
  525. package/dist/umd/d9b2daf38414fcbaf89924ad3e10e587.js +0 -1
  526. package/dist/umd/da740c1b29a85b999a6874b59a1baeef.js +0 -1
  527. package/dist/umd/db8ca5cfb6fe4aaef215f116f6991784.js +0 -1
  528. package/dist/umd/dc8240db39815020378555a4d80571c3.js +0 -1
  529. package/dist/umd/dc83a73f0eb89665520bbb6672dfa3cb.js +0 -1
  530. package/dist/umd/dc932cde2fbfca8e2901fb693968b131.js +0 -1
  531. package/dist/umd/ddbc961769cd2ff4d4a7a136168ebf4c.js +0 -1
  532. package/dist/umd/de0fd4fd7c2d7a4887cbc99eed91f797.js +0 -1
  533. package/dist/umd/de73b4d2a9ed4bcb851f9141e303636d.js +0 -1
  534. package/dist/umd/e0adad8a8579bf99f3e22f7c214a5c64.js +0 -1
  535. package/dist/umd/e0c565aadda4787ba4ef4456c0a7ee29.js +0 -1
  536. package/dist/umd/e0fa6a4fe8bff90d50ce812e666957ca.js +0 -1
  537. package/dist/umd/e13fc7d468ab9b5797f2a44412ca2f00.js +0 -1
  538. package/dist/umd/e2b38a8393be2cf23f3894ace3efb1c3.js +0 -1
  539. package/dist/umd/e2fe8f0d4fd950b20b30fabaea96b3f8.js +0 -1
  540. package/dist/umd/e37ac12436bcd0536ec98ae8470a1228.js +0 -1
  541. package/dist/umd/e4917fa7632b01d28e99304d32d989f7.js +0 -1
  542. package/dist/umd/e61779df91186b23e7adf2d1968b2708.js +0 -1
  543. package/dist/umd/e6ad50b520736b595970c9e07029c3f1.js +0 -1
  544. package/dist/umd/e7e1a807af3160b342e0a3550cf8f7c5.js +0 -1
  545. package/dist/umd/e7f37e0f2b6113039c45a326264c4d36.js +0 -1
  546. package/dist/umd/e80d5ee40455d0675f8f2a3688071adf.js +0 -1
  547. package/dist/umd/e874d975c9128dc6eb9a513d088bed9f.js +0 -1
  548. package/dist/umd/e9382a0e67b22188c75e9418de1c9295.js +0 -1
  549. package/dist/umd/e9c8f7e13e00284ce126890bf7ac46fd.js +0 -1
  550. package/dist/umd/ea6edcde22c9fdbb9f7b8d9cf72a062b.js +0 -1
  551. package/dist/umd/eaa55a522fb2cb2f0287711f42344984.js +0 -1
  552. package/dist/umd/eb08efe1d361a9c5e37e1d4c8100212e.js +0 -1
  553. package/dist/umd/eb0b62e1895dcf7491419aa728f00c38.js +0 -1
  554. package/dist/umd/ecdb4966f685f3e44b1f28fae46827a3.js +0 -1
  555. package/dist/umd/ecff3d4bbf59ef41230960af46098e74.js +0 -1
  556. package/dist/umd/ed88b2c21452a7eaea143e54e27a0879.js +0 -1
  557. package/dist/umd/ee41eb1fd1d1c87c45e818b5a8a65cf8.js +0 -1
  558. package/dist/umd/ee5d36473f84db2af26d82efd69a38ec.js +0 -1
  559. package/dist/umd/ef6cac9d9a3156e1c19b46cd181863ed.js +0 -1
  560. package/dist/umd/ef7dedac6423354de55896b34230d548.js +0 -1
  561. package/dist/umd/ef87482c92662e8b69a21f47588474ea.js +0 -1
  562. package/dist/umd/efc14cdf19554635e477781704353ec2.js +0 -1
  563. package/dist/umd/eff4371180dfac54de25ed3a0105d82f.js +0 -1
  564. package/dist/umd/f15362a7feef894b2e7f706252e6c510.js +0 -1
  565. package/dist/umd/f15cbf0d23cba4a313f3f2acfef5370c.js +0 -1
  566. package/dist/umd/f18c12f0446bad25ec3732c621d60f88.js +0 -1
  567. package/dist/umd/f2fb7fcc9bdd849d687150c07a81ffe4.js +0 -1
  568. package/dist/umd/f326f2f263b1498fedbe1d07d7254d10.js +0 -1
  569. package/dist/umd/f4480bd3d93cb0949fc4f3af8eff6531.js +0 -1
  570. package/dist/umd/f5655f072ce70050c78fab024d5028a8.js +0 -1
  571. package/dist/umd/f666b5647087bcfdf6623f8b14d56657.js +0 -1
  572. package/dist/umd/f6d7091e70dee6c74956acfef2464d08.js +0 -1
  573. package/dist/umd/f799992a362826cff3c7d1ce9dc9940c.js +0 -1
  574. package/dist/umd/fa0c561bb37040fc8145e5c70ea64912.js +0 -1
  575. package/dist/umd/fb393a7455b47f3d4fc30cf219d5145c.js +0 -1
  576. package/dist/umd/fb5080213f065f82f0391c551c864434.js +0 -1
  577. package/dist/umd/fd3859a700b456e06c65c0cf6b0af05c.js +0 -1
  578. package/dist/umd/fd5bc50b18c9f46380cbe5ec1ac2127b.js +0 -1
  579. package/dist/umd/fd9645aaf1f70c8abc562be41bee25fc.js +0 -1
  580. package/dist/umd/fd98f0e48b18e1de428edd5174539c2a.js +0 -1
  581. package/dist/umd/fe9499c0a5444f7f42843fa00fb355cb.js +0 -1
  582. package/dist/umd/fec23c6964d6cf25681d1f3e24b076a4.js +0 -1
  583. package/dist/umd/ffd3b83e8b5878f4785591ff54b1dfff.js +0 -1
  584. package/dist/umd/index.bundle.js.LICENSE.txt +0 -228
@@ -1,102 +1,297 @@
1
- var __decorate=this&&this.__decorate||function(e,t,o,i){var n,r=arguments.length,s=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,o,i);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(s=(r<3?n(s):r>3?n(t,o,s):n(t,o))||s);return r>3&&s&&Object.defineProperty(t,o,s),s};import{InputType}from"@openremote/or-mwc-components/or-mwc-input";import{i18next}from"@openremote/or-translate";import{css,html,LitElement}from"lit";import{customElement,property,state}from"lit/decorators.js";import{when}from"lit/directives/when.js";import{OrRulesJsonRuleChangedEvent}from"../or-rule-json-viewer";const styling=css`
2
- .divider {
3
- border-bottom: 1px solid rgba(0, 0, 0, 12%);
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { InputType } from "@openremote/or-mwc-components/or-mwc-input";
8
+ import { i18next } from "@openremote/or-translate";
9
+ import { css, html, LitElement } from "lit";
10
+ import { customElement, property, state } from "lit/decorators.js";
11
+ import { when } from 'lit/directives/when.js';
12
+ import { OrRulesJsonRuleChangedEvent } from "../or-rule-json-viewer";
13
+ //language=css
14
+ const styling = css `
15
+ .divider {
16
+ border-bottom: 1px solid rgba(0, 0, 0, 12%);
17
+ }
18
+ `;
19
+ let OrRuleFormWebhook = class OrRuleFormWebhook extends LitElement {
20
+ constructor() {
21
+ super(...arguments);
22
+ this.loading = false;
23
+ this.httpMethodOptions = ["GET" /* HTTPMethod.GET */, "POST" /* HTTPMethod.POST */, "PUT" /* HTTPMethod.PUT */, "DELETE" /* HTTPMethod.DELETE */];
24
+ this.authMethodOptions = new Map([
25
+ ["username_password", (i18next.t('username') + " & " + i18next.t('password'))],
26
+ ["client_credentials", "oauth Client Credentials Grant"],
27
+ ["password", "oauth Password Grant"]
28
+ ]);
4
29
  }
5
- `;let OrRuleFormWebhook=class extends LitElement{constructor(){super(...arguments),this.loading=!1,this.httpMethodOptions=["GET","POST","PUT","DELETE"],this.authMethodOptions=new Map([["username_password",i18next.t("username")+" & "+i18next.t("password")],["client_credentials","oauth Client Credentials Grant"],["password","oauth Password Grant"]])}static get styles(){return[styling]}shouldUpdate(e){return e.has("webhook")&&null==this.webhook.headers&&(this.webhook.headers={}),super.shouldUpdate(e)}getAuthMethod(e){return null!=e.oAuthGrant?this.authMethodOptions.get(e.oAuthGrant.grant_type):this.authMethodOptions.get("username_password")}getOAuthGrant(e){return"client_credentials"==e||"password"==e?{grant_type:e}:void 0}reloadHeaders(){this.loading=!0,this.updateComplete.then((()=>this.loading=!1)),this.notifyWebhookUpdate(!1)}notifyWebhookUpdate(e=!0){e&&this.requestUpdate("webhook"),this.dispatchEvent(new OrRulesJsonRuleChangedEvent)}render(){return when(!this.webhook,(()=>html`
6
- ${i18next.t("errorOccurred")}
7
- `),(()=>html`
8
- <form style="display: flex; flex-direction: column; min-width: 520px;">
9
- <!-- HTTP Method & URL -->
10
- <div style="display: flex; flex-direction: row; align-items: center; gap: 5px; margin-bottom: 28px;">
11
- <or-mwc-input style="flex: 0;" type="${InputType.SELECT}" .value="${this.webhook.httpMethod}"
12
- .options="${this.httpMethodOptions}"
13
- @or-mwc-input-changed="${e=>{this.webhook.httpMethod=e.detail.value,this.notifyWebhookUpdate()}}"
14
- ></or-mwc-input>
15
- <or-mwc-input style="flex: 1;" type="${InputType.URL}" required label="${i18next.t("webUrl")}"
16
- .value="${this.webhook.url}" helperPersistent
17
- @or-mwc-input-changed="${e=>{this.webhook.url=e.detail.value,this.notifyWebhookUpdate()}}"></or-mwc-input>
18
- </div>
19
- <!-- Headers -->
20
- <div style="display: flex; flex-direction: column; gap: 5px; margin-bottom: 28px;">
21
- <span>Headers</span>
22
- ${when(this.loading,(()=>html`
23
- ${this.getHeadersTemplate(this.webhook.headers,!0)}
24
- `),(()=>html`
25
- ${this.getHeadersTemplate(this.webhook.headers,!1)}
26
- `))}
27
- <or-mwc-input type="${InputType.BUTTON}" icon="plus" label="addRequestHeader"
28
- @or-mwc-input-changed="${e=>{null!=(this.webhook.headers?this.webhook.headers[""]:void 0)?this.webhook.headers[""].push(""):this.webhook.headers[""]=[""],this.reloadHeaders()}}"></or-mwc-input>
29
- </div>
30
- <!-- Authorization -->
31
- <div style="display: flex; flex-direction: column; gap: 10px; margin-bottom: ${this.webhook.oAuthGrant||this.webhook.usernamePassword?"28px":"0"};">
32
- <or-mwc-input type="${InputType.SWITCH}" fullwidth label="${i18next.t("requiresAuthorization")}"
33
- .value="${this.webhook.oAuthGrant||this.webhook.usernamePassword}"
34
- @or-mwc-input-changed="${e=>{this.webhook.usernamePassword=e.detail.value?{username:"admin",password:"secret"}:void 0,this.notifyWebhookUpdate()}}"></or-mwc-input>
35
- ${when(this.webhook.oAuthGrant||this.webhook.usernamePassword,(()=>{const e=Array.from(this.authMethodOptions.values());return html`
36
- <or-mwc-input type="${InputType.SELECT}" label="${i18next.t("method")}"
37
- .value="${this.getAuthMethod(this.webhook)}"
38
- .options="${e}"
39
- @or-mwc-input-changed="${e=>{const t=[...this.authMethodOptions.entries()].find((t=>t[1]==e.detail.value));this.webhook.oAuthGrant=this.getOAuthGrant(t[0]),this.notifyWebhookUpdate()}}"></or-mwc-input>
40
- ${this.getAuthSettingsTemplate(this.webhook)}
41
- `}))}
42
- </div>
43
- <!-- Payload -->
44
- <div style="display: flex; flex-direction: column; gap: 5px;">
45
- ${when("GET"!=this.webhook.httpMethod&&"DELETE"!=this.webhook.httpMethod,(()=>html`
46
- <or-mwc-input type="${InputType.SWITCH}" fullwidth label="${i18next.t("includeBodyInRequest")}"
47
- .value="${null!=this.webhook.payload}"
48
- @or-mwc-input-changed="${e=>{this.webhook.payload=e.detail.value?JSON.stringify({rule:"%RULESET_NAME%",assets:"%TRIGGER_ASSETS%"},null,4):void 0,this.notifyWebhookUpdate()}}"
49
- ></or-mwc-input>
50
- ${when(null!=this.webhook.payload,(()=>html`
51
- <or-mwc-input type="${InputType.TEXTAREA}" .value="${this.webhook.payload}"
52
- @or-mwc-input-changed="${e=>{this.webhook.payload=e.detail.value,this.notifyWebhookUpdate()}}"></or-mwc-input>
53
- `))}
54
- `))}
55
- </div>
56
- </form>
57
- `))}getHeadersTemplate(e,t){return Object.keys(this.webhook.headers).sort(((e,t)=>-e.localeCompare(t))).map(((e,o,i)=>{const n=this.webhook.headers[e];return n.map(((o,i)=>html`
58
- <div style="display: flex; gap: 5px;">
59
- <or-mwc-input type="${InputType.TEXT}" label="${i18next.t("header")}" value="${e}"
60
- style="flex: 1;" .disabled="${t}"
61
- @or-mwc-input-changed="${t=>{n.length>0?n.splice(i,1):delete this.webhook.headers[e];const r=this.webhook.headers[t.detail.value];r&&r.length>0?r.push(o):this.webhook.headers[t.detail.value]=[o],this.reloadHeaders()}}"
62
- ></or-mwc-input>
63
- <or-mwc-input type="${InputType.TEXT}" label="${i18next.t("value")}" value="${o}"
64
- style="flex: 1;" .disabled="${t}"
65
- @or-mwc-input-changed="${t=>{this.webhook.headers[e][i]=t.detail.value,this.notifyWebhookUpdate()}}"
66
- ></or-mwc-input>
67
- <or-mwc-input type="${InputType.BUTTON}" icon="delete" .disabled="${t}"
68
- @or-mwc-input-changed="${()=>{n.splice(i,1),this.reloadHeaders()}}"></or-mwc-input>
69
- </div>
70
- `))}))}getAuthSettingsTemplate(e){var t,o;const i=e.oAuthGrant;return null==i?html`
71
- <div style="display: flex; flex-direction: column; gap: 10px;">
72
- <or-mwc-input type="${InputType.TEXT}" label="${i18next.t("username")}"
73
- .value="${null===(t=e.usernamePassword)||void 0===t?void 0:t.username}"
74
- @or-mwc-input-changed="${e=>{this.webhook.usernamePassword||(this.webhook.usernamePassword={}),this.webhook.usernamePassword.username=e.detail.value,this.notifyWebhookUpdate()}}"></or-mwc-input>
75
- <or-mwc-input type="${InputType.TEXT}" label="${i18next.t("password")}"
76
- .value="${null===(o=this.webhook.usernamePassword)||void 0===o?void 0:o.password}"
77
- @or-mwc-input-changed="${e=>{this.webhook.usernamePassword||(this.webhook.usernamePassword={}),this.webhook.usernamePassword.password=e.detail.value,this.notifyWebhookUpdate()}}"></or-mwc-input>
78
- </div>
79
- `:html`
80
- <div style="display: flex; flex-direction: column; gap: 10px;">
81
- <div style="display: flex; flex-direction: row; align-items: center; gap: 5px;">
82
- <or-mwc-input style="flex: 1;" type="${InputType.URL}" required
83
- label="${i18next.t("tokenUrl")}" .value="${i.tokenEndpointUri}"
84
- @or-mwc-input-changed="${e=>{i.tokenEndpointUri=e.detail.value,this.notifyWebhookUpdate()}}"></or-mwc-input>
85
- </div>
86
- ${when(null!=i.grant_type,(()=>{switch(i.grant_type){case"client_credentials":{const e=i;return html`
87
- <or-mwc-input type="${InputType.TEXT}" label="${i18next.t("clientId")}"
88
- .value="${e.client_id}"
89
- @or-mwc-input-changed="${t=>{e.client_id=t.detail.value,this.notifyWebhookUpdate()}}"></or-mwc-input>
90
- <or-mwc-input type="${InputType.PASSWORD}" label="${i18next.t("clientSecret")}"
91
- .value="${e.client_secret}"
92
- @or-mwc-input-changed="${t=>{e.client_secret=t.detail.value,this.notifyWebhookUpdate()}}"></or-mwc-input>
93
- `}case"password":{const e=i;return html`
94
- <or-mwc-input type="${InputType.TEXT}" label="${i18next.t("username")}"
95
- .value="${e.username}"
96
- @or-mwc-input-changed="${t=>{e.username=t.detail.value,this.notifyWebhookUpdate()}}"></or-mwc-input>
97
- <or-mwc-input type="${InputType.TEXT}" label="${i18next.t("password")}"
98
- .value="${e.password}"
99
- @or-mwc-input-changed="${t=>{e.password=t.detail.value,this.notifyWebhookUpdate()}}"></or-mwc-input>
100
- `}default:return html`${i18next.t("errorOccurred")}`}}))}
101
- </div>
102
- `}};__decorate([property({type:Object})],OrRuleFormWebhook.prototype,"webhook",void 0),__decorate([state()],OrRuleFormWebhook.prototype,"loading",void 0),OrRuleFormWebhook=__decorate([customElement("or-rule-form-webhook")],OrRuleFormWebhook);export{OrRuleFormWebhook};
30
+ static get styles() {
31
+ return [styling];
32
+ }
33
+ /* --------------------------- */
34
+ // Lifecycle methods
35
+ shouldUpdate(changedProperties) {
36
+ if (changedProperties.has('webhook')) {
37
+ if (this.webhook.headers == undefined) {
38
+ this.webhook.headers = {};
39
+ }
40
+ }
41
+ return super.shouldUpdate(changedProperties);
42
+ }
43
+ /* --------------- */
44
+ // Util
45
+ getAuthMethod(webhook) {
46
+ if (webhook.oAuthGrant != undefined) {
47
+ return this.authMethodOptions.get(webhook.oAuthGrant.grant_type);
48
+ }
49
+ else {
50
+ return this.authMethodOptions.get("username_password");
51
+ }
52
+ }
53
+ getOAuthGrant(authMethodKey) {
54
+ if (authMethodKey == 'client_credentials' || authMethodKey == 'password') {
55
+ return { grant_type: authMethodKey };
56
+ }
57
+ else {
58
+ return undefined;
59
+ }
60
+ }
61
+ reloadHeaders() {
62
+ this.loading = true;
63
+ this.updateComplete.then(() => this.loading = false);
64
+ this.notifyWebhookUpdate(false);
65
+ }
66
+ notifyWebhookUpdate(requestUpdate = true) {
67
+ if (requestUpdate) {
68
+ this.requestUpdate("webhook");
69
+ }
70
+ this.dispatchEvent(new OrRulesJsonRuleChangedEvent());
71
+ }
72
+ /* ---------------- */
73
+ // Template rendering
74
+ render() {
75
+ return when(!this.webhook, () => html `
76
+ ${i18next.t('errorOccurred')}
77
+ `, () => html `
78
+ <form style="display: flex; flex-direction: column; min-width: 520px;">
79
+ <!-- HTTP Method & URL -->
80
+ <div style="display: flex; flex-direction: row; align-items: center; gap: 5px; margin-bottom: 28px;">
81
+ <or-mwc-input style="flex: 0;" type="${InputType.SELECT}" .value="${this.webhook.httpMethod}"
82
+ .options="${this.httpMethodOptions}"
83
+ @or-mwc-input-changed="${(ev) => {
84
+ this.webhook.httpMethod = ev.detail.value;
85
+ this.notifyWebhookUpdate();
86
+ }}"
87
+ ></or-mwc-input>
88
+ <or-mwc-input style="flex: 1;" type="${InputType.URL}" required label="${i18next.t('webUrl')}"
89
+ .value="${this.webhook.url}" helperPersistent
90
+ @or-mwc-input-changed="${(e) => {
91
+ this.webhook.url = e.detail.value;
92
+ this.notifyWebhookUpdate();
93
+ }}"></or-mwc-input>
94
+ </div>
95
+ <!-- Headers -->
96
+ <div style="display: flex; flex-direction: column; gap: 5px; margin-bottom: 28px;">
97
+ <span>Headers</span>
98
+ ${when(this.loading, () => html `
99
+ ${this.getHeadersTemplate(this.webhook.headers, true)}
100
+ `, () => html `
101
+ ${this.getHeadersTemplate(this.webhook.headers, false)}
102
+ `)}
103
+ <or-mwc-input type="${InputType.BUTTON}" icon="plus" label="addRequestHeader"
104
+ @or-mwc-input-changed="${(ev) => {
105
+ if ((this.webhook.headers ? this.webhook.headers[''] : undefined) != undefined) {
106
+ this.webhook.headers[''].push('');
107
+ }
108
+ else {
109
+ this.webhook.headers[''] = [''];
110
+ }
111
+ this.reloadHeaders();
112
+ }}"></or-mwc-input>
113
+ </div>
114
+ <!-- Authorization -->
115
+ <div style="display: flex; flex-direction: column; gap: 10px; margin-bottom: ${this.webhook.oAuthGrant || this.webhook.usernamePassword ? '28px' : '0'};">
116
+ <or-mwc-input type="${InputType.SWITCH}" fullwidth label="${i18next.t('requiresAuthorization')}"
117
+ .value="${this.webhook.oAuthGrant || this.webhook.usernamePassword}"
118
+ @or-mwc-input-changed="${(ev) => {
119
+ this.webhook.usernamePassword = ev.detail.value ? {
120
+ username: 'admin',
121
+ password: 'secret'
122
+ } : undefined;
123
+ this.notifyWebhookUpdate();
124
+ }}"></or-mwc-input>
125
+ ${when(this.webhook.oAuthGrant || this.webhook.usernamePassword, () => {
126
+ const values = Array.from(this.authMethodOptions.values());
127
+ return html `
128
+ <or-mwc-input type="${InputType.SELECT}" label="${i18next.t('method')}"
129
+ .value="${this.getAuthMethod(this.webhook)}"
130
+ .options="${values}"
131
+ @or-mwc-input-changed="${(ev) => {
132
+ const entry = [...this.authMethodOptions.entries()].find((entry) => entry[1] == ev.detail.value);
133
+ this.webhook.oAuthGrant = this.getOAuthGrant(entry[0]);
134
+ this.notifyWebhookUpdate();
135
+ }}"></or-mwc-input>
136
+ ${this.getAuthSettingsTemplate(this.webhook)}
137
+ `;
138
+ })}
139
+ </div>
140
+ <!-- Payload -->
141
+ <div style="display: flex; flex-direction: column; gap: 5px;">
142
+ ${when(this.webhook.httpMethod != "GET" /* HTTPMethod.GET */ && this.webhook.httpMethod != "DELETE" /* HTTPMethod.DELETE */, () => html `
143
+ <or-mwc-input type="${InputType.SWITCH}" fullwidth label="${i18next.t('includeBodyInRequest')}"
144
+ .value="${this.webhook.payload != undefined}"
145
+ @or-mwc-input-changed="${(ev) => {
146
+ this.webhook.payload = ev.detail.value ? JSON.stringify({
147
+ rule: "%RULESET_NAME%",
148
+ assets: "%TRIGGER_ASSETS%"
149
+ }, null, 4) : undefined;
150
+ this.notifyWebhookUpdate();
151
+ }}"
152
+ ></or-mwc-input>
153
+ ${when(this.webhook.payload != undefined, () => {
154
+ return html `
155
+ <or-mwc-input type="${InputType.TEXTAREA}" .value="${this.webhook.payload}"
156
+ @or-mwc-input-changed="${(ev) => {
157
+ this.webhook.payload = ev.detail.value;
158
+ this.notifyWebhookUpdate();
159
+ }}"></or-mwc-input>
160
+ `;
161
+ })}
162
+ `)}
163
+ </div>
164
+ </form>
165
+ `);
166
+ }
167
+ getHeadersTemplate(headers, loading) {
168
+ return Object.keys(this.webhook.headers)
169
+ .sort((a, b) => -(a.localeCompare(b)))
170
+ .map((key, keyIndex, keys) => {
171
+ const values = this.webhook.headers[key];
172
+ return values.map((value, valueIndex) => html `
173
+ <div style="display: flex; gap: 5px;">
174
+ <or-mwc-input type="${InputType.TEXT}" label="${i18next.t('header')}" value="${key}"
175
+ style="flex: 1;" .disabled="${loading}"
176
+ @or-mwc-input-changed="${(ev) => {
177
+ values.length > 0 ? values.splice(valueIndex, 1) : delete this.webhook.headers[key];
178
+ const newValues = this.webhook.headers[ev.detail.value];
179
+ if (newValues && newValues.length > 0) {
180
+ newValues.push(value);
181
+ }
182
+ else {
183
+ this.webhook.headers[ev.detail.value] = [value];
184
+ }
185
+ this.reloadHeaders();
186
+ }}"
187
+ ></or-mwc-input>
188
+ <or-mwc-input type="${InputType.TEXT}" label="${i18next.t('value')}" value="${value}"
189
+ style="flex: 1;" .disabled="${loading}"
190
+ @or-mwc-input-changed="${(ev) => {
191
+ this.webhook.headers[key][valueIndex] = ev.detail.value;
192
+ this.notifyWebhookUpdate();
193
+ }}"
194
+ ></or-mwc-input>
195
+ <or-mwc-input type="${InputType.BUTTON}" icon="delete" .disabled="${loading}"
196
+ @or-mwc-input-changed="${() => {
197
+ values.splice(valueIndex, 1);
198
+ this.reloadHeaders();
199
+ }}"></or-mwc-input>
200
+ </div>
201
+ `);
202
+ });
203
+ }
204
+ getAuthSettingsTemplate(webhook) {
205
+ var _a, _b;
206
+ const authGrant = webhook.oAuthGrant;
207
+ if (authGrant == undefined) {
208
+ return html `
209
+ <div style="display: flex; flex-direction: column; gap: 10px;">
210
+ <or-mwc-input type="${InputType.TEXT}" label="${i18next.t('username')}"
211
+ .value="${(_a = webhook.usernamePassword) === null || _a === void 0 ? void 0 : _a.username}"
212
+ @or-mwc-input-changed="${(ev) => {
213
+ if (!this.webhook.usernamePassword) {
214
+ this.webhook.usernamePassword = {};
215
+ }
216
+ this.webhook.usernamePassword.username = ev.detail.value;
217
+ this.notifyWebhookUpdate();
218
+ }}"></or-mwc-input>
219
+ <or-mwc-input type="${InputType.TEXT}" label="${i18next.t('password')}"
220
+ .value="${(_b = this.webhook.usernamePassword) === null || _b === void 0 ? void 0 : _b.password}"
221
+ @or-mwc-input-changed="${(ev) => {
222
+ if (!this.webhook.usernamePassword) {
223
+ this.webhook.usernamePassword = {};
224
+ }
225
+ this.webhook.usernamePassword.password = ev.detail.value;
226
+ this.notifyWebhookUpdate();
227
+ }}"></or-mwc-input>
228
+ </div>
229
+ `;
230
+ }
231
+ else {
232
+ return html `
233
+ <div style="display: flex; flex-direction: column; gap: 10px;">
234
+ <div style="display: flex; flex-direction: row; align-items: center; gap: 5px;">
235
+ <or-mwc-input style="flex: 1;" type="${InputType.URL}" required
236
+ label="${i18next.t('tokenUrl')}" .value="${authGrant.tokenEndpointUri}"
237
+ @or-mwc-input-changed="${(ev) => {
238
+ authGrant.tokenEndpointUri = ev.detail.value;
239
+ this.notifyWebhookUpdate();
240
+ }}"></or-mwc-input>
241
+ </div>
242
+ ${when(authGrant.grant_type != undefined, () => {
243
+ switch (authGrant.grant_type) {
244
+ case "client_credentials": {
245
+ const grant = authGrant;
246
+ return html `
247
+ <or-mwc-input type="${InputType.TEXT}" label="${i18next.t('clientId')}"
248
+ .value="${grant.client_id}"
249
+ @or-mwc-input-changed="${(ev) => {
250
+ grant.client_id = ev.detail.value;
251
+ this.notifyWebhookUpdate();
252
+ }}"></or-mwc-input>
253
+ <or-mwc-input type="${InputType.PASSWORD}" label="${i18next.t('clientSecret')}"
254
+ .value="${grant.client_secret}"
255
+ @or-mwc-input-changed="${(ev) => {
256
+ grant.client_secret = ev.detail.value;
257
+ this.notifyWebhookUpdate();
258
+ }}"></or-mwc-input>
259
+ `;
260
+ }
261
+ case "password": {
262
+ const grant = authGrant;
263
+ return html `
264
+ <or-mwc-input type="${InputType.TEXT}" label="${i18next.t('username')}"
265
+ .value="${grant.username}"
266
+ @or-mwc-input-changed="${(ev) => {
267
+ grant.username = ev.detail.value;
268
+ this.notifyWebhookUpdate();
269
+ }}"></or-mwc-input>
270
+ <or-mwc-input type="${InputType.TEXT}" label="${i18next.t('password')}"
271
+ .value="${grant.password}"
272
+ @or-mwc-input-changed="${(ev) => {
273
+ grant.password = ev.detail.value;
274
+ this.notifyWebhookUpdate();
275
+ }}"></or-mwc-input>
276
+ `;
277
+ }
278
+ default:
279
+ return html `${i18next.t('errorOccurred')}`;
280
+ }
281
+ })}
282
+ </div>
283
+ `;
284
+ }
285
+ }
286
+ };
287
+ __decorate([
288
+ property({ type: Object })
289
+ ], OrRuleFormWebhook.prototype, "webhook", void 0);
290
+ __decorate([
291
+ state()
292
+ ], OrRuleFormWebhook.prototype, "loading", void 0);
293
+ OrRuleFormWebhook = __decorate([
294
+ customElement("or-rule-form-webhook")
295
+ ], OrRuleFormWebhook);
296
+ export { OrRuleFormWebhook };
297
+ //# sourceMappingURL=or-rule-form-webhook.js.map
@@ -5,7 +5,7 @@ declare const OrRuleAlarmModal_base: (new (...args: any[]) => {
5
5
  _i18nextJustInitialized: boolean;
6
6
  connectedCallback(): void;
7
7
  disconnectedCallback(): void;
8
- shouldUpdate(changedProps: import("lit").PropertyValueMap<any> | Map<PropertyKey, unknown>): any;
8
+ shouldUpdate(changedProps: PropertyValues): any;
9
9
  initCallback: (options: import("i18next").InitOptions) => void;
10
10
  langChangedCallback: () => void;
11
11
  readonly isConnected: boolean;
@@ -20,7 +20,7 @@ export declare class OrRuleAlarmModal extends OrRuleAlarmModal_base {
20
20
  renderDialogHTML(action: RuleActionAlarm): void;
21
21
  firstUpdated(changedProperties: PropertyValues): void;
22
22
  checkForm(): void;
23
- protected render(): import("lit-html").TemplateResult<1>;
23
+ protected render(): import("lit").TemplateResult<1>;
24
24
  protected setActionAlarmSeverity(value: string | undefined): void;
25
25
  }
26
26
  export {};
@@ -1,17 +1,173 @@
1
- var __decorate=this&&this.__decorate||function(t,e,o,r){var i,n=arguments.length,a=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,r);else for(var l=t.length-1;l>=0;l--)(i=t[l])&&(a=(n<3?i(a):n>3?i(e,o,a):i(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};import{css,html,LitElement}from"lit";import{customElement,property}from"lit/decorators.js";import"@openremote/or-mwc-components/or-mwc-input";import{InputType}from"@openremote/or-mwc-components/or-mwc-input";import i18next from"i18next";import{translate}from"@openremote/or-translate";import{OrMwcDialogOpenedEvent}from"@openremote/or-mwc-components/or-mwc-dialog";import{OrRulesJsonRuleChangedEvent}from"../or-rule-json-viewer";const checkValidity=(t,e)=>{if(t){const o=t.querySelectorAll("or-mwc-input");Array.prototype.slice.call(o).every((t=>{if(t.shadowRoot){const e=t.shadowRoot.querySelector("input, textarea");return t.type===InputType.SELECT||!(!e||!e.checkValidity())||(t._mdcComponent.valid=!1,t._mdcComponent.helperTextContent="required",!1)}return!1}))&&e.close()}},style=css`
2
- :host {
3
- display: flex;
4
- align-items: center;
5
- }
6
- :host > * {
7
- margin: 0 3px 6px;
8
- }
9
- .min-width {
10
- min-width: 200px;
11
- }
12
- `;let OrRuleAlarmModal=class extends(translate(i18next)(LitElement)){static get styles(){return style}constructor(){super(),this.title="settings",this.addEventListener(OrMwcDialogOpenedEvent.NAME,this.initDialog)}initDialog(){this.shadowRoot.getElementById("alarm-modal")}renderDialogHTML(t){const e=this.shadowRoot.getElementById("alarm-modal");if(!this.shadowRoot)return;const o=this.shadowRoot.querySelector(".alarm-form-slot");if(e&&o){let t=document.createElement("div");o.assignedNodes({flatten:!0}).forEach((e=>{e instanceof HTMLElement&&t.appendChild(e)})),e.content=html`${t}`,e.dismissAction=null,this.requestUpdate()}}firstUpdated(t){t.has("action")&&this.renderDialogHTML(this.action)}checkForm(){const t=this.shadowRoot.host;if(this.shadowRoot){const e=this.shadowRoot.querySelector("or-rule-form-alarm");if(e&&e.shadowRoot){const o=e.shadowRoot.querySelector("form");return checkValidity(o,t)}}}render(){var t;if(!this.action)return html``;const e=[{actionName:"cancel",content:html`<or-mwc-input class="button" .type="${InputType.BUTTON}" .label="${i18next.t("cancel")}"></or-mwc-input>`,action:t=>{}},{actionName:"",content:html`<or-mwc-input class="button" .type="${InputType.BUTTON}" .label="${i18next.t("ok")}" @or-mwc-input-changed="${this.checkForm}"></or-mwc-input>`}];return html`
13
- <or-mwc-input style="width: 200px" .type="${InputType.SELECT}" .value="${null===(t=this.action.alarm)||void 0===t?void 0:t.severity}" .label="${i18next.t("alarm.severity")}" .options="${[["LOW",i18next.t("alarm.severity_LOW")],["MEDIUM",i18next.t("alarm.severity_MEDIUM")],["HIGH",i18next.t("alarm.severity_HIGH")]]}" @or-mwc-input-changed="${t=>this.setActionAlarmSeverity(t.detail.value)}"></or-mwc-input>
14
- <or-mwc-input .type="${InputType.BUTTON}" .label="${i18next.t("settings")}" @or-mwc-input-changed="${()=>{const t=this.shadowRoot.getElementById("alarm-modal");t&&t.open()}}"></or-mwc-input>
15
- <or-mwc-dialog id="alarm-modal" heading="${this.title}" .actions="${e}"></or-mwc-dialog>
16
- <slot class="alarm-form-slot"></slot>
17
- `}setActionAlarmSeverity(t){if(t&&this.action.alarm){const e=this.action.alarm;e.severity=t,this.action.alarm=Object.assign({},e)}this.dispatchEvent(new OrRulesJsonRuleChangedEvent),this.requestUpdate()}};__decorate([property({type:Object,attribute:!1})],OrRuleAlarmModal.prototype,"action",void 0),__decorate([property({type:String})],OrRuleAlarmModal.prototype,"title",void 0),__decorate([property({type:Object})],OrRuleAlarmModal.prototype,"query",void 0),OrRuleAlarmModal=__decorate([customElement("or-rule-alarm-modal")],OrRuleAlarmModal);export{OrRuleAlarmModal};
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ /*
8
+ * Copyright 2024, OpenRemote Inc.
9
+ *
10
+ * See the CONTRIBUTORS.txt file in the distribution for a
11
+ * full listing of individual contributors.
12
+ *
13
+ * This program is free software: you can redistribute it and/or modify
14
+ * it under the terms of the GNU Affero General Public License as
15
+ * published by the Free Software Foundation, either version 3 of the
16
+ * License, or (at your option) any later version.
17
+ *
18
+ * This program is distributed in the hope that it will be useful,
19
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
20
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21
+ * GNU Affero General Public License for more details.
22
+ *
23
+ * You should have received a copy of the GNU Affero General Public License
24
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
25
+ */
26
+ import { css, html, LitElement } from "lit";
27
+ import { customElement, property } from "lit/decorators.js";
28
+ import "@openremote/or-mwc-components/or-mwc-input";
29
+ import { InputType } from "@openremote/or-mwc-components/or-mwc-input";
30
+ import i18next from "i18next";
31
+ import { translate } from "@openremote/or-translate";
32
+ import { OrMwcDialogOpenedEvent } from "@openremote/or-mwc-components/or-mwc-dialog";
33
+ import { OrRulesJsonRuleChangedEvent } from "../or-rule-json-viewer";
34
+ const checkValidity = (form, dialog) => {
35
+ if (form) {
36
+ const inputs = form.querySelectorAll('or-mwc-input');
37
+ const elements = Array.prototype.slice.call(inputs);
38
+ const valid = elements.every((element) => {
39
+ if (element.shadowRoot) {
40
+ const input = element.shadowRoot.querySelector('input, textarea');
41
+ if (element.type === InputType.SELECT) {
42
+ return true;
43
+ }
44
+ if (input && input.checkValidity()) {
45
+ return true;
46
+ }
47
+ else {
48
+ element._mdcComponent.valid = false;
49
+ element._mdcComponent.helperTextContent = 'required';
50
+ return false;
51
+ }
52
+ }
53
+ else {
54
+ return false;
55
+ }
56
+ });
57
+ if (valid) {
58
+ dialog.close();
59
+ }
60
+ }
61
+ };
62
+ // language=CSS
63
+ const style = css `
64
+ :host {
65
+ display: flex;
66
+ align-items: center;
67
+ }
68
+ :host > * {
69
+ margin: 0 3px 6px;
70
+ }
71
+ .min-width {
72
+ min-width: 200px;
73
+ }
74
+ `;
75
+ let OrRuleAlarmModal = class OrRuleAlarmModal extends translate(i18next)(LitElement) {
76
+ static get styles() {
77
+ return style;
78
+ }
79
+ constructor() {
80
+ super();
81
+ this.title = "settings";
82
+ this.addEventListener(OrMwcDialogOpenedEvent.NAME, this.initDialog);
83
+ }
84
+ initDialog() {
85
+ const modal = this.shadowRoot.getElementById('alarm-modal');
86
+ if (!modal)
87
+ return;
88
+ }
89
+ renderDialogHTML(action) {
90
+ const dialog = this.shadowRoot.getElementById("alarm-modal");
91
+ if (!this.shadowRoot)
92
+ return;
93
+ const slot = this.shadowRoot.querySelector('.alarm-form-slot');
94
+ if (dialog && slot) {
95
+ let container = document.createElement("div");
96
+ slot.assignedNodes({ flatten: true }).forEach((child) => {
97
+ if (child instanceof HTMLElement) {
98
+ container.appendChild(child);
99
+ }
100
+ });
101
+ dialog.content = html `${container}`;
102
+ dialog.dismissAction = null;
103
+ this.requestUpdate();
104
+ }
105
+ }
106
+ firstUpdated(changedProperties) {
107
+ if (changedProperties.has("action")) {
108
+ this.renderDialogHTML(this.action);
109
+ }
110
+ }
111
+ checkForm() {
112
+ const dialog = this.shadowRoot.host;
113
+ if (this.shadowRoot) {
114
+ const alarmConfig = this.shadowRoot.querySelector('or-rule-form-alarm');
115
+ if (alarmConfig && alarmConfig.shadowRoot) {
116
+ const form = alarmConfig.shadowRoot.querySelector('form');
117
+ return checkValidity(form, dialog);
118
+ }
119
+ }
120
+ }
121
+ render() {
122
+ var _a;
123
+ if (!this.action)
124
+ return html ``;
125
+ const alarmPickerModalActions = [
126
+ {
127
+ actionName: "cancel",
128
+ content: html `<or-mwc-input class="button" .type="${InputType.BUTTON}" .label="${i18next.t("cancel")}"></or-mwc-input>`,
129
+ action: (dialog) => {
130
+ }
131
+ },
132
+ {
133
+ actionName: "",
134
+ content: html `<or-mwc-input class="button" .type="${InputType.BUTTON}" .label="${i18next.t("ok")}" @or-mwc-input-changed="${this.checkForm}"></or-mwc-input>`
135
+ }
136
+ ];
137
+ const alarmPickerModalOpen = () => {
138
+ const dialog = this.shadowRoot.getElementById("alarm-modal");
139
+ if (dialog) {
140
+ dialog.open();
141
+ }
142
+ };
143
+ return html `
144
+ <or-mwc-input style="width: 200px" .type="${InputType.SELECT}" .value="${(_a = this.action.alarm) === null || _a === void 0 ? void 0 : _a.severity}" .label="${i18next.t("alarm.severity")}" .options="${[["LOW" /* AlarmSeverity.LOW */, i18next.t("alarm.severity_LOW")], ["MEDIUM" /* AlarmSeverity.MEDIUM */, i18next.t("alarm.severity_MEDIUM")], ["HIGH" /* AlarmSeverity.HIGH */, i18next.t("alarm.severity_HIGH")]]}" @or-mwc-input-changed="${(e) => this.setActionAlarmSeverity(e.detail.value)}"></or-mwc-input>
145
+ <or-mwc-input .type="${InputType.BUTTON}" .label="${i18next.t("settings")}" @or-mwc-input-changed="${alarmPickerModalOpen}"></or-mwc-input>
146
+ <or-mwc-dialog id="alarm-modal" heading="${this.title}" .actions="${alarmPickerModalActions}"></or-mwc-dialog>
147
+ <slot class="alarm-form-slot"></slot>
148
+ `;
149
+ }
150
+ setActionAlarmSeverity(value) {
151
+ if (value && this.action.alarm) {
152
+ const alarm = this.action.alarm;
153
+ alarm.severity = value;
154
+ this.action.alarm = Object.assign({}, alarm);
155
+ }
156
+ this.dispatchEvent(new OrRulesJsonRuleChangedEvent());
157
+ this.requestUpdate();
158
+ }
159
+ };
160
+ __decorate([
161
+ property({ type: Object, attribute: false })
162
+ ], OrRuleAlarmModal.prototype, "action", void 0);
163
+ __decorate([
164
+ property({ type: String })
165
+ ], OrRuleAlarmModal.prototype, "title", void 0);
166
+ __decorate([
167
+ property({ type: Object })
168
+ ], OrRuleAlarmModal.prototype, "query", void 0);
169
+ OrRuleAlarmModal = __decorate([
170
+ customElement("or-rule-alarm-modal")
171
+ ], OrRuleAlarmModal);
172
+ export { OrRuleAlarmModal };
173
+ //# sourceMappingURL=or-rule-alarm-modal.js.map