@openremote/or-rules 1.12.0-snapshot.20251212145816 → 1.12.0-snapshot.20251212165311

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 (156) hide show
  1. package/custom-elements-jsx.d.ts +0 -44
  2. package/custom-elements.json +17 -211
  3. package/dist/umd/index.bundle.js +686 -601
  4. package/dist/umd/index.bundle.js.map +1 -1
  5. package/lib/flow-viewer/components/confirmation-dialog.d.ts +1 -0
  6. package/lib/flow-viewer/components/confirmation-dialog.d.ts.map +1 -0
  7. package/lib/flow-viewer/components/connection-container.d.ts +1 -0
  8. package/lib/flow-viewer/components/connection-container.d.ts.map +1 -0
  9. package/lib/flow-viewer/components/connection-line.d.ts +1 -0
  10. package/lib/flow-viewer/components/connection-line.d.ts.map +1 -0
  11. package/lib/flow-viewer/components/context-menu.d.ts +1 -0
  12. package/lib/flow-viewer/components/context-menu.d.ts.map +1 -0
  13. package/lib/flow-viewer/components/editor-workspace.d.ts +1 -0
  14. package/lib/flow-viewer/components/editor-workspace.d.ts.map +1 -0
  15. package/lib/flow-viewer/components/flow-editor.d.ts +1 -0
  16. package/lib/flow-viewer/components/flow-editor.d.ts.map +1 -0
  17. package/lib/flow-viewer/components/flow-node-socket.d.ts +1 -0
  18. package/lib/flow-viewer/components/flow-node-socket.d.ts.map +1 -0
  19. package/lib/flow-viewer/components/flow-node.d.ts +1 -0
  20. package/lib/flow-viewer/components/flow-node.d.ts.map +1 -0
  21. package/lib/flow-viewer/components/internal-picker.d.ts +1 -0
  22. package/lib/flow-viewer/components/internal-picker.d.ts.map +1 -0
  23. package/lib/flow-viewer/components/node-menu-item.d.ts +1 -0
  24. package/lib/flow-viewer/components/node-menu-item.d.ts.map +1 -0
  25. package/lib/flow-viewer/components/node-panel.d.ts +1 -0
  26. package/lib/flow-viewer/components/node-panel.d.ts.map +1 -0
  27. package/lib/flow-viewer/components/notification-dialog.d.ts +1 -0
  28. package/lib/flow-viewer/components/notification-dialog.d.ts.map +1 -0
  29. package/lib/flow-viewer/components/popup-modal.d.ts +1 -0
  30. package/lib/flow-viewer/components/popup-modal.d.ts.map +1 -0
  31. package/lib/flow-viewer/components/rule-browser.d.ts +1 -0
  32. package/lib/flow-viewer/components/rule-browser.d.ts.map +1 -0
  33. package/lib/flow-viewer/components/selectable-element.d.ts +1 -0
  34. package/lib/flow-viewer/components/selectable-element.d.ts.map +1 -0
  35. package/lib/flow-viewer/components/selection-box.d.ts +1 -0
  36. package/lib/flow-viewer/components/selection-box.d.ts.map +1 -0
  37. package/lib/flow-viewer/components/top-bar.d.ts +1 -0
  38. package/lib/flow-viewer/components/top-bar.d.ts.map +1 -0
  39. package/lib/flow-viewer/components/workspace-contextmenu-options.d.ts +1 -0
  40. package/lib/flow-viewer/components/workspace-contextmenu-options.d.ts.map +1 -0
  41. package/lib/flow-viewer/components/writable-dropdown.d.ts +1 -0
  42. package/lib/flow-viewer/components/writable-dropdown.d.ts.map +1 -0
  43. package/lib/flow-viewer/converters/node-converter.d.ts +1 -0
  44. package/lib/flow-viewer/converters/node-converter.d.ts.map +1 -0
  45. package/lib/flow-viewer/flow-viewer.d.ts +1 -0
  46. package/lib/flow-viewer/flow-viewer.d.ts.map +1 -0
  47. package/lib/flow-viewer/models/camera.d.ts +1 -0
  48. package/lib/flow-viewer/models/camera.d.ts.map +1 -0
  49. package/lib/flow-viewer/models/context-menu-button.d.ts +1 -0
  50. package/lib/flow-viewer/models/context-menu-button.d.ts.map +1 -0
  51. package/lib/flow-viewer/models/light-node-collection.d.ts +1 -0
  52. package/lib/flow-viewer/models/light-node-collection.d.ts.map +1 -0
  53. package/lib/flow-viewer/models/status.d.ts +1 -0
  54. package/lib/flow-viewer/models/status.d.ts.map +1 -0
  55. package/lib/flow-viewer/node-structure/copy.machine.d.ts +1 -0
  56. package/lib/flow-viewer/node-structure/copy.machine.d.ts.map +1 -0
  57. package/lib/flow-viewer/node-structure/identity.assigner.d.ts +1 -0
  58. package/lib/flow-viewer/node-structure/identity.assigner.d.ts.map +1 -0
  59. package/lib/flow-viewer/node-structure/identity.dom.link.d.ts +1 -0
  60. package/lib/flow-viewer/node-structure/identity.dom.link.d.ts.map +1 -0
  61. package/lib/flow-viewer/node-structure/index.d.ts +1 -0
  62. package/lib/flow-viewer/node-structure/index.d.ts.map +1 -0
  63. package/lib/flow-viewer/node-structure/socket.type.matcher.d.ts +1 -0
  64. package/lib/flow-viewer/node-structure/socket.type.matcher.d.ts.map +1 -0
  65. package/lib/flow-viewer/node-structure/utils.d.ts +1 -0
  66. package/lib/flow-viewer/node-structure/utils.d.ts.map +1 -0
  67. package/lib/flow-viewer/services/copy-paste-manager.d.ts +1 -0
  68. package/lib/flow-viewer/services/copy-paste-manager.d.ts.map +1 -0
  69. package/lib/flow-viewer/services/exporter.d.ts +1 -0
  70. package/lib/flow-viewer/services/exporter.d.ts.map +1 -0
  71. package/lib/flow-viewer/services/input.d.ts +1 -0
  72. package/lib/flow-viewer/services/input.d.ts.map +1 -0
  73. package/lib/flow-viewer/services/integration.d.ts +1 -0
  74. package/lib/flow-viewer/services/integration.d.ts.map +1 -0
  75. package/lib/flow-viewer/services/modal.d.ts +1 -0
  76. package/lib/flow-viewer/services/modal.d.ts.map +1 -0
  77. package/lib/flow-viewer/services/project.d.ts +1 -0
  78. package/lib/flow-viewer/services/project.d.ts.map +1 -0
  79. package/lib/flow-viewer/services/shortcuts.d.ts +1 -0
  80. package/lib/flow-viewer/services/shortcuts.d.ts.map +1 -0
  81. package/lib/flow-viewer/styles/editor-workspace-style.d.ts +1 -0
  82. package/lib/flow-viewer/styles/editor-workspace-style.d.ts.map +1 -0
  83. package/lib/flow-viewer/styles/flow-node-style.d.ts +1 -0
  84. package/lib/flow-viewer/styles/flow-node-style.d.ts.map +1 -0
  85. package/lib/flow-viewer/styles/picker-styles.d.ts +1 -0
  86. package/lib/flow-viewer/styles/picker-styles.d.ts.map +1 -0
  87. package/lib/flow-viewer/utils.d.ts +1 -0
  88. package/lib/flow-viewer/utils.d.ts.map +1 -0
  89. package/lib/index.d.ts +2 -1
  90. package/lib/index.d.ts.map +1 -0
  91. package/lib/index.js +1 -1
  92. package/lib/index.js.map +1 -1
  93. package/lib/json-viewer/forms/or-rule-form-alarm.d.ts +1 -0
  94. package/lib/json-viewer/forms/or-rule-form-alarm.d.ts.map +1 -0
  95. package/lib/json-viewer/forms/or-rule-form-email-message.d.ts +1 -0
  96. package/lib/json-viewer/forms/or-rule-form-email-message.d.ts.map +1 -0
  97. package/lib/json-viewer/forms/or-rule-form-localized.d.ts +1 -0
  98. package/lib/json-viewer/forms/or-rule-form-localized.d.ts.map +1 -0
  99. package/lib/json-viewer/forms/or-rule-form-push-notification.d.ts +1 -0
  100. package/lib/json-viewer/forms/or-rule-form-push-notification.d.ts.map +1 -0
  101. package/lib/json-viewer/forms/or-rule-form-webhook.d.ts +1 -0
  102. package/lib/json-viewer/forms/or-rule-form-webhook.d.ts.map +1 -0
  103. package/lib/json-viewer/modals/or-rule-alarm-modal.d.ts +1 -0
  104. package/lib/json-viewer/modals/or-rule-alarm-modal.d.ts.map +1 -0
  105. package/lib/json-viewer/modals/or-rule-notification-modal.d.ts +1 -0
  106. package/lib/json-viewer/modals/or-rule-notification-modal.d.ts.map +1 -0
  107. package/lib/json-viewer/modals/or-rule-radial-modal.d.ts +1 -0
  108. package/lib/json-viewer/modals/or-rule-radial-modal.d.ts.map +1 -0
  109. package/lib/json-viewer/modals/or-rule-webhook-modal.d.ts +1 -0
  110. package/lib/json-viewer/modals/or-rule-webhook-modal.d.ts.map +1 -0
  111. package/lib/json-viewer/or-rule-action-alarm.d.ts +1 -0
  112. package/lib/json-viewer/or-rule-action-alarm.d.ts.map +1 -0
  113. package/lib/json-viewer/or-rule-action-attribute.d.ts +20 -6
  114. package/lib/json-viewer/or-rule-action-attribute.d.ts.map +1 -0
  115. package/lib/json-viewer/or-rule-action-attribute.js +12 -12
  116. package/lib/json-viewer/or-rule-action-attribute.js.map +1 -1
  117. package/lib/json-viewer/or-rule-action-notification.d.ts +1 -0
  118. package/lib/json-viewer/or-rule-action-notification.d.ts.map +1 -0
  119. package/lib/json-viewer/or-rule-action-webhook.d.ts +1 -0
  120. package/lib/json-viewer/or-rule-action-webhook.d.ts.map +1 -0
  121. package/lib/json-viewer/or-rule-asset-query.d.ts +22 -8
  122. package/lib/json-viewer/or-rule-asset-query.d.ts.map +1 -0
  123. package/lib/json-viewer/or-rule-asset-query.js +28 -28
  124. package/lib/json-viewer/or-rule-asset-query.js.map +1 -1
  125. package/lib/json-viewer/or-rule-condition.d.ts +1 -0
  126. package/lib/json-viewer/or-rule-condition.d.ts.map +1 -0
  127. package/lib/json-viewer/or-rule-condition.js.map +1 -1
  128. package/lib/json-viewer/or-rule-json-viewer.d.ts +2 -2
  129. package/lib/json-viewer/or-rule-json-viewer.d.ts.map +1 -0
  130. package/lib/json-viewer/or-rule-json-viewer.js +5 -5
  131. package/lib/json-viewer/or-rule-json-viewer.js.map +1 -1
  132. package/lib/json-viewer/or-rule-then-otherwise.d.ts +1 -0
  133. package/lib/json-viewer/or-rule-then-otherwise.d.ts.map +1 -0
  134. package/lib/json-viewer/or-rule-then-otherwise.js +3 -1
  135. package/lib/json-viewer/or-rule-then-otherwise.js.map +1 -1
  136. package/lib/json-viewer/or-rule-trigger-query.d.ts +1 -0
  137. package/lib/json-viewer/or-rule-trigger-query.d.ts.map +1 -0
  138. package/lib/json-viewer/or-rule-when.d.ts +1 -0
  139. package/lib/json-viewer/or-rule-when.d.ts.map +1 -0
  140. package/lib/json-viewer/or-rule-when.js.map +1 -1
  141. package/lib/or-rule-group-viewer.d.ts +1 -0
  142. package/lib/or-rule-group-viewer.d.ts.map +1 -0
  143. package/lib/or-rule-text-viewer.d.ts +1 -0
  144. package/lib/or-rule-text-viewer.d.ts.map +1 -0
  145. package/lib/or-rule-tree.d.ts +1 -0
  146. package/lib/or-rule-tree.d.ts.map +1 -0
  147. package/lib/or-rule-viewer.d.ts +4 -1
  148. package/lib/or-rule-viewer.d.ts.map +1 -0
  149. package/lib/or-rule-viewer.js +15 -9
  150. package/lib/or-rule-viewer.js.map +1 -1
  151. package/lib/style.d.ts +1 -0
  152. package/lib/style.d.ts.map +1 -0
  153. package/package.json +14 -14
  154. package/lib/or-rule-validity.d.ts +0 -34
  155. package/lib/or-rule-validity.js +0 -67
  156. package/lib/or-rule-validity.js.map +0 -1
@@ -17,3 +17,4 @@ export declare class ConfirmationDialog extends ConfirmationDialog_base {
17
17
  protected render(): import("lit").TemplateResult<1>;
18
18
  }
19
19
  export {};
20
+ //# sourceMappingURL=confirmation-dialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"confirmation-dialog.d.ts","sourceRoot":"","sources":["../../../src/flow-viewer/components/confirmation-dialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;;;;;;;;;;;AAK5C,qBACa,kBAAmB,SAAQ,uBAA8B;IAC/B,SAAS,SAAmB;IAC5B,YAAY,SAAuB;IACnC,QAAQ,SAA4C;IAEvF,WAAkB,MAAM,4BAcvB;IAED,SAAS,CAAC,MAAM;CAcnB"}
@@ -4,3 +4,4 @@ export declare class ConnectionContainer extends LitElement {
4
4
  constructor();
5
5
  protected render(): import("lit").TemplateResult<1>;
6
6
  }
7
+ //# sourceMappingURL=connection-container.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connection-container.d.ts","sourceRoot":"","sources":["../../../src/flow-viewer/components/connection-container.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAMvC,qBACa,mBAAoB,SAAQ,UAAU;IACf,OAAO,CAAC,SAAS,CAAmB;;IAepE,SAAS,CAAC,MAAM;CAGnB"}
@@ -20,3 +20,4 @@ export declare class ConnectionLine extends SelectableElement {
20
20
  private nodeChanged;
21
21
  private get isInvalid();
22
22
  }
23
+ //# sourceMappingURL=connection-line.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connection-line.d.ts","sourceRoot":"","sources":["../../../src/flow-viewer/components/connection-line.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAInD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAIrD,qBACa,cAAe,SAAQ,iBAAiB;IACV,UAAU,EAAG,cAAc,CAAC;IAC5B,SAAS,EAAG,eAAe,CAAC;IAEvC,OAAO,CAAC,UAAU,CAAS;IAEvD,OAAO,CAAC,eAAe,CAAY;IACnC,OAAO,CAAC,aAAa,CAAY;IAEjC,OAAO,CAAC,WAAW,CAAkB;IACrC,OAAO,CAAC,SAAS,CAAkB;IACnC,OAAO,CAAC,cAAc,CAAkB;IACxC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAQ;IAClC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAK;;IAO7B,oBAAoB;IAM3B,SAAS,CAAC,YAAY;IAOtB,SAAS,CAAC,MAAM;IAyDhB,WAAkB,MAAM,4BAoBvB;IAED,OAAO,CAAC,WAAW,CAAmC;IAEtD,OAAO,KAAK,SAAS,GAEpB;CACJ"}
@@ -27,3 +27,4 @@ export declare class ContextMenu extends ContextMenu_base {
27
27
  private separatorTemplate;
28
28
  }
29
29
  export {};
30
+ //# sourceMappingURL=context-menu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-menu.d.ts","sourceRoot":"","sources":["../../../src/flow-viewer/components/context-menu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAE5C,OAAO,EAAE,gBAAgB,EAAqB,MAAM,+BAA+B,CAAC;;;;;;;;;;;AAGpF,qBACa,WAAY,SAAQ,gBAA8B;IAC3D,WAAkB,MAAM,YAAsC;IAE9D,WAAkB,MAAM,4BA+CvB;WAEa,IAAI,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,gBAAgB,CAAC,EAAE;WAW5E,KAAK;IAOnB,OAAO,CAAC,MAAM,CAAC,IAAI,CAAc;IACjC,OAAO,CAAC,OAAO,CAA0B;IAET,OAAO,CAAC,MAAM,CAAS;IAEvD,OAAO,CAAC,SAAS,CAAW;IAE5B,SAAS,CAAC,YAAY;IAItB,SAAS,CAAC,OAAO;IAajB,SAAS,CAAC,MAAM;IAkBhB,OAAO,CAAC,aAAa,CAEpB;IAED,OAAO,CAAC,cAAc;IAgBtB,OAAO,CAAC,iBAAiB;CAG5B"}
@@ -65,3 +65,4 @@ export declare class EditorWorkspace extends EditorWorkspace_base {
65
65
  private stopPan;
66
66
  }
67
67
  export {};
68
+ //# sourceMappingURL=editor-workspace.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"editor-workspace.d.ts","sourceRoot":"","sources":["../../../src/flow-viewer/components/editor-workspace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,MAAM,KAAK,CAAC;AAGvC,OAAO,EAAE,IAAI,EAAc,MAAM,mBAAmB,CAAC;AASrD,OAAO,EAAoC,UAAU,EAAE,MAAM,eAAe,CAAC;AAC7E,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;;;;;;;;;;;AAI1C,qBACa,eAAgB,SAAQ,oBAA8B;IAC/D,IAAW,UAAU,eAEpB;IAED,MAAM,KAAK,MAAM,4BAEhB;IAED,IAAW,QAAQ;;;MAGlB;IAED,OAAO,KAAK,yBAAyB,GAGpC;IACsC,MAAM,EAAE,MAAM,CAA2B;IAEzC,aAAa,SAAK;IAClB,iBAAiB,SAAQ;IACzB,cAAc,SAAM;IACpB,cAAc,SAAM;IAEpB,WAAW,EAAG,UAAU,CAAC;IAEhC,OAAO,CAAC,kBAAkB,CAAS;IACnC,OAAO,CAAC,cAAc,CAA4C;IAClE,OAAO,CAAC,YAAY,CAA4C;IAEhG,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,gBAAgB,CAAc;;IAmD/B,WAAW;IAMX,SAAS,CAAC,KAAK,EAAE,IAAI,EAAE,EAAE,OAAO,SAAK;IA2CrC,aAAa,CAAC,KAAK,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,CAAA;KAAE;;;;IAQ/C,aAAa,CAAC,KAAK,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,CAAA;KAAE;;;;IAQ/C,YAAY,CAAC,KAAK,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,CAAC,EAAE,MAAM,CAAA;KAAE;;;;IAQxC,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IAWzC,SAAS,CAAC,YAAY;IAYtB,SAAS,CAAC,MAAM;IA0BhB,OAAO,CAAC,QAAQ;IAShB,OAAO,CAAC,MAAM,CASb;IAED,OAAO,CAAC,MAAM,CAcb;IAED,OAAO,CAAC,wBAAwB,CAI/B;IAED,OAAO,CAAC,OAAO,CAId;CACJ"}
@@ -46,3 +46,4 @@ export declare class FlowEditor extends FlowEditor_base implements RuleView {
46
46
  private serialiseRule;
47
47
  }
48
48
  export {};
49
+ //# sourceMappingURL=flow-editor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flow-editor.d.ts","sourceRoot":"","sources":["../../../src/flow-viewer/components/flow-editor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAE5C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAm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30
  private linkIdentity;
31
31
  }
32
32
  export {};
33
+ //# sourceMappingURL=flow-node-socket.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flow-node-socket.d.ts","sourceRoot":"","sources":["../../../src/flow-viewer/components/flow-node-socket.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAE5C,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;;;;;;;;;;;AAO/C,qBACa,cAAe,SAAQ,mBAA8B;IAE9D,IAAW,kBAAkB;;;MAE5B;IAED,WAAkB,MAAM,4BAkCvB;IAED,IAAW,gBAAgB,WAK1B;IACkC,MAAM,EAAG,UAAU,CAAC;IACpB,IAAI,EAAG,OAAO,GAAG,QAAQ,CAAC;IACzB,WAAW,UAAS;IAExD,OAAO,CAAC,eAAe,CAAS;IAEhC,OAAO,CAAC,UAAU,CAAe;IAE1B,oBAAoB;IAU3B,SAAS,CAAC,YAAY;IAmCtB,SAAS,CAAC,OAAO;IAIjB,SAAS,CAAC,MAAM;IAgBhB,OAAO,CAAC,WAAW,CAA8B;IAEjD,OAAO,CAAC,YAAY;CAKvB"}
@@ -21,3 +21,4 @@ export declare class FlowNode extends SelectableElement {
21
21
  private stopDrag;
22
22
  private linkIdentity;
23
23
  }
24
+ //# sourceMappingURL=flow-node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flow-node.d.ts","sourceRoot":"","sources":["../../../src/flow-viewer/components/flow-node.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,IAAI,EAAsC,MAAM,mBAAmB,CAAC;AAK5E,OAAO,EAAC,iBAAiB,EAAC,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;AAInD,qBACa,QAAS,SAAQ,iBAAiB;IACI,IAAI,EAAG,IAAI,CAAC;IACpB,SAAS,EAAG,eAAe,CAAC;IAChB,MAAM,UAAS;IAEtB,OAAO,CAAC,OAAO,CAAS;IACpC,OAAO,CAAC,cAAc,CAAS;;IAM/D,WAAkB,MAAM,8BAgBvB;IAEM,oBAAoB;IAQpB,YAAY;cAKH,YAAY;cAwBZ,OAAO;IAKvB,SAAS,CAAC,MAAM;IAgDhB,OAAO,CAAC,WAAW,CAAmC;IAEtD,OAAO,CAAC,YAAY,CAInB;IAED,OAAO,CAAC,SAAS,CAQhB;IAED,OAAO,CAAC,MAAM,CAMb;IAED,OAAO,CAAC,QAAQ,CAKf;IAED,OAAO,CAAC,YAAY,CAEnB;CACJ"}
@@ -35,3 +35,4 @@ export declare class InternalPicker extends InternalPicker_base {
35
35
  private onPicked;
36
36
  }
37
37
  export {};
38
+ //# sourceMappingURL=internal-picker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"internal-picker.d.ts","sourceRoot":"","sources":["../../../src/flow-viewer/components/internal-picker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,cAAc,EAAE,MAAM,KAAK,CAAC;AAE5D,OAAO,EAAE,IAAI,EAA2E,MAAM,mBAAmB,CAAC;AAIlH,OAAO,2BAA2B,CAAC;;;;;;;;;;;AAYnC,qBACa,cAAe,SAAQ,mBAA8B;IACA,IAAI,EAAG,IAAI,CAAC;IACxB,aAAa,EAAG,MAAM,CAAC;IAE7C,OAAO,CAAC,aAAa,CAAS;IAE1D,OAAO,CAAC,cAAc,CAAkB;;IAMxC,IAAW,QAAQ,6CAElB;IAED,WAAkB,MAAM,8BA0CvB;IAED,SAAS,CAAC,YAAY;IAatB,SAAS,CAAC,MAAM;YA6BF,wBAAwB;YAyBxB,iCAAiC;IAY/C,OAAO,KAAK,mBAAmB,GA6C9B;IAED,OAAO,KAAK,UAAU,GAErB;IAED,OAAO,KAAK,mBAAmB,GAE9B;IAED,OAAO,KAAK,aAAa,GAGxB;IAED,OAAO,KAAK,aAAa,GAMxB;IAED,OAAO,KAAK,cAAc,GAOzB;IAED,OAAO,CAAC,cAAc;IActB,OAAO,KAAK,SAAS,GAEpB;IAED,OAAO,CAAC,QAAQ;YAKF,QAAQ;CAIzB"}
@@ -28,3 +28,4 @@ export declare class NodeMenuItem extends NodeMenuItem_base {
28
28
  private stopDrag;
29
29
  }
30
30
  export {};
31
+ //# sourceMappingURL=node-menu-item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node-menu-item.d.ts","sourceRoot":"","sources":["../../../src/flow-viewer/components/node-menu-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAE5C,OAAO,EAAE,IAAI,EAAY,MAAM,mBAAmB,CAAC;;;;;;;;;;;AAOnD,qBACa,YAAa,SAAQ,iBAA8B;IACrB,IAAI,EAAG,IAAI,CAAC;IACnB,OAAO,CAAC,UAAU,CAAS;IAE3B,OAAO,CAAC,CAAC,CAAK;IACd,OAAO,CAAC,CAAC,CAAK;IAEd,OAAO,CAAC,SAAS,CAAoB;IAErE,OAAO,CAAC,OAAO,CAAK;IACpB,OAAO,CAAC,OAAO,CAAK;;IAMpB,MAAM,KAAK,MAAM,4BAgChB;IAED,SAAS,CAAC,MAAM;IAuBhB,OAAO,KAAK,gBAAgB,GAE3B;IAED,OAAO,KAAK,YAAY,GAGvB;IAED,OAAO,CAAC,SAAS,CAShB;IAED,OAAO,CAAC,MAAM,CAGb;IAED,OAAO,CAAC,QAAQ,CAkBf;CACJ"}
@@ -23,3 +23,4 @@ export declare class NodePanel extends NodePanel_base {
23
23
  private get listTemplate();
24
24
  }
25
25
  export {};
26
+ //# sourceMappingURL=node-panel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node-panel.d.ts","sourceRoot":"","sources":["../../../src/flow-viewer/components/node-panel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAE5C,OAAO,EAAY,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEnD,OAAO,EAAE,WAAW,EAAE,MAAM,6CAA6C,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;;;;;;;;;;;AAG3C,qBACa,SAAU,SAAQ,cAA8B;IACvB,KAAK,EAAE,IAAI,EAAE,CAAM;IACrD,MAAM,KAAK,MAAM,4BAwChB;IAE8B,MAAM,EAAG,WAAW,CAAC;IACb,WAAW,EAAG,UAAU,CAAC;IAEhE,SAAS,CAAC,YAAY;IAItB,SAAS,CAAC,MAAM;IAQhB,OAAO,CAAC,YAAY;IAIpB,OAAO,KAAK,YAAY,GAmBvB;CACJ"}
@@ -16,3 +16,4 @@ export declare class NotificationDialog extends NotificationDialog_base {
16
16
  protected render(): import("lit").TemplateResult<1>;
17
17
  }
18
18
  export {};
19
+ //# sourceMappingURL=notification-dialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification-dialog.d.ts","sourceRoot":"","sources":["../../../src/flow-viewer/components/notification-dialog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;;;;;;;;;;;AAK5C,qBACa,kBAAmB,SAAQ,uBAA8B;IAC/B,UAAU,SAAmB;IAC7B,OAAO,SAAO;IAEjD,WAAkB,MAAM,4BAiBvB;IAED,SAAS,CAAC,MAAM;CAUnB"}
@@ -22,3 +22,4 @@ export declare class PopupModal extends PopupModal_base {
22
22
  protected render(): TemplateResult<1>;
23
23
  }
24
24
  export {};
25
+ //# sourceMappingURL=popup-modal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"popup-modal.d.ts","sourceRoot":"","sources":["../../../src/flow-viewer/components/popup-modal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,cAAc,EAAE,MAAM,KAAK,CAAC;;;;;;;;;;;AAK5D,qBACa,UAAW,SAAQ,eAA8B;IACtB,WAAW,UAAQ;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,cAAc,CAAC;IAEpB,OAAO,CAAC,MAAM,CAAS;;IAM5D,KAAK;IAIL,IAAI;IAIX,WAAkB,MAAM,4BAkDvB;IAED,SAAS,CAAC,YAAY;IAUtB,SAAS,CAAC,MAAM;CAcnB"}
@@ -19,3 +19,4 @@ export declare class RuleBrowser extends RuleBrowser_base {
19
19
  private getButton;
20
20
  }
21
21
  export {};
22
+ //# sourceMappingURL=rule-browser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rule-browser.d.ts","sourceRoot":"","sources":["../../../src/flow-viewer/components/rule-browser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;;;;;;;;;;;AAS5C,qBACa,WAAY,SAAQ,gBAA8B;IAC/B,OAAO,CAAC,MAAM,CAAe;IACzD,OAAO,CAAC,cAAc,CAAuB;IAE7C,WAAkB,MAAM,4BA2BvB;cAEe,YAAY;IAW5B,SAAS,CAAC,MAAM;IAqBhB,OAAO,CAAC,QAAQ,CAef;IAED,OAAO,CAAC,SAAS,CAKhB;CACJ"}
@@ -22,3 +22,4 @@ export declare class SelectableElement extends SelectableElement_base {
22
22
  private readonly handleSelection;
23
23
  }
24
24
  export {};
25
+ //# sourceMappingURL=selectable-element.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selectable-element.d.ts","sourceRoot":"","sources":["../../../src/flow-viewer/components/selectable-element.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;;;;;;;;;;;AAKjC,qBAAa,iBAAkB,SAAQ,sBAA8B;IACjE,IAAW,QAAQ,YAElB;IAED,IAAW,MAAM,gBAEhB;IAC4B,OAAO,CAAC,UAAU,CAAS;IACxB,OAAO,CAAC,gBAAgB,CAAe;IAEhE,oBAAoB;IAWpB,SAAS,CAAC,OAAO,EAAE,WAAW;IAQrC,SAAS,CAAC,YAAY;IAOtB,OAAO,CAAC,QAAQ,CAAC,UAAU,CAI1B;IAED,OAAO,CAAC,QAAQ,CAAC,YAAY,CAI5B;IAED,OAAO,CAAC,QAAQ,CAAC,eAAe,CAO/B;CACJ"}
@@ -14,3 +14,4 @@ export declare class SelectionBox extends LitElement {
14
14
  private workspaceMouseUp;
15
15
  private selectInBounds;
16
16
  }
17
+ //# sourceMappingURL=selection-box.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selection-box.d.ts","sourceRoot":"","sources":["../../../src/flow-viewer/components/selection-box.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAG5C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAGrD,qBACa,YAAa,SAAQ,UAAU;IAExC,WAAkB,MAAM,4BAiBvB;IACsC,SAAS,EAAG,eAAe,CAAC;IAEnE,SAAgB,gBAAgB,MAAM;IAEN,OAAO,CAAC,WAAW,CAAS;IAE5B,OAAO,CAAC,sBAAsB,CAAkB;IAChD,OAAO,CAAC,YAAY,CAAuC;IAE3F,SAAS,CAAC,YAAY;IAKtB,SAAS,CAAC,MAAM;IAKhB,OAAO,CAAC,kBAAkB,CAOzB;IAED,OAAO,CAAC,SAAS,CAsBhB;IAED,OAAO,CAAC,gBAAgB,CAMvB;IAED,OAAO,CAAC,cAAc;CAezB"}
@@ -20,3 +20,4 @@ export declare class TopBar extends TopBar_base {
20
20
  private showSaveAsDialog;
21
21
  }
22
22
  export {};
23
+ //# sourceMappingURL=top-bar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"top-bar.d.ts","sourceRoot":"","sources":["../../../src/flow-viewer/components/top-bar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAM5C,OAAO,EAAmC,UAAU,EAAE,MAAM,eAAe,CAAC;;;;;;;;;;;AAG5E,qBACa,MAAO,SAAQ,WAA8B;IACtD,MAAM,KAAK,MAAM,4BAgChB;IAEsC,WAAW,EAAG,UAAU,CAAC;IAEhE,SAAS,CAAC,YAAY;IAMtB,SAAS,CAAC,MAAM;IAmBhB,OAAO,CAAC,IAAI;IAUZ,OAAO,CAAC,eAAe;IAMvB,OAAO,CAAC,gBAAgB;CAwB3B"}
@@ -1,3 +1,4 @@
1
1
  import { EditorWorkspace } from "./editor-workspace";
2
2
  import { ContextMenuButton, ContextMenuSeparator } from "../models/context-menu-button";
3
3
  export declare const createContextMenuButtons: (workspace: EditorWorkspace, e: MouseEvent) => (ContextMenuButton | ContextMenuSeparator)[];
4
+ //# sourceMappingURL=workspace-contextmenu-options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"workspace-contextmenu-options.d.ts","sourceRoot":"","sources":["../../../src/flow-viewer/components/workspace-contextmenu-options.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAIrD,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAQxF,eAAO,MAAM,wBAAwB,GAAI,WAAW,eAAe,EAAE,GAAG,UAAU,iDAsHjF,CAAC"}
@@ -11,3 +11,4 @@ export declare class WritableDropdown extends LitElement {
11
11
  protected shouldUpdate(_changedProperties: PropertyValues): boolean;
12
12
  protected render(): import("lit").TemplateResult<1>;
13
13
  }
14
+ //# sourceMappingURL=writable-dropdown.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"writable-dropdown.d.ts","sourceRoot":"","sources":["../../../src/flow-viewer/components/writable-dropdown.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAQ,cAAc,EAAE,MAAM,KAAK,CAAC;AAIvD,qBACa,gBAAiB,SAAQ,UAAU;IACM,KAAK,CAAC,EAAE,GAAG,CAAC;IAC5B,OAAO,EAAE;QAAE,KAAK,EAAE,GAAG,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAM;IAE9C,aAAa,EAAG,iBAAiB,CAAC;IAEnE,WAAkB,MAAM,4BAEvB;IAED,SAAS,CAAC,YAAY;IAOtB,SAAS,CAAC,YAAY,CAAC,kBAAkB,EAAE,cAAc;IAQzD,SAAS,CAAC,MAAM;CAOnB"}
@@ -1,2 +1,3 @@
1
1
  import { ComplexAttributeConverter } from "lit";
2
2
  export declare const nodeConverter: ComplexAttributeConverter<unknown, unknown>;
3
+ //# sourceMappingURL=node-converter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node-converter.d.ts","sourceRoot":"","sources":["../../../src/flow-viewer/converters/node-converter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,KAAK,CAAC;AAIhD,eAAO,MAAM,aAAa,EAAE,yBAAyB,CAAC,OAAO,EAAE,OAAO,CAQrE,CAAC"}
@@ -16,3 +16,4 @@ export { RuleBrowser } from "./components/rule-browser";
16
16
  export { WritableDropdown } from "./components/writable-dropdown";
17
17
  export { ConfirmationDialog } from "./components/confirmation-dialog";
18
18
  export { NotificationDialog } from "./components/notification-dialog";
19
+ //# sourceMappingURL=flow-viewer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flow-viewer.d.ts","sourceRoot":"","sources":["../../src/flow-viewer/flow-viewer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC"}
@@ -3,3 +3,4 @@ export interface Camera {
3
3
  y: number;
4
4
  zoom: number;
5
5
  }
6
+ //# sourceMappingURL=camera.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"camera.d.ts","sourceRoot":"","sources":["../../../src/flow-viewer/models/camera.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,MAAM;IACnB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,IAAI,EAAE,MAAM,CAAC;CAChB"}
@@ -11,3 +11,4 @@ export interface ContextMenuButton extends ContextMenuEntry {
11
11
  export interface ContextMenuSeparator extends ContextMenuEntry {
12
12
  type: "separator";
13
13
  }
14
+ //# sourceMappingURL=context-menu-button.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context-menu-button.d.ts","sourceRoot":"","sources":["../../../src/flow-viewer/models/context-menu-button.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC7B,IAAI,EAAE,QAAQ,GAAG,WAAW,CAAC;CAChC;AAED,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB;IACvD,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,oBAAqB,SAAQ,gBAAgB;IAC1D,IAAI,EAAE,WAAW,CAAC;CACrB"}
@@ -3,3 +3,4 @@ export interface LightNodeCollection {
3
3
  nodes: Node[];
4
4
  connections: NodeConnection[];
5
5
  }
6
+ //# sourceMappingURL=light-node-collection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"light-node-collection.d.ts","sourceRoot":"","sources":["../../../src/flow-viewer/models/light-node-collection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEzD,MAAM,WAAW,mBAAmB;IAChC,KAAK,EAAE,IAAI,EAAE,CAAC;IACd,WAAW,EAAE,cAAc,EAAE,CAAC;CACjC"}
@@ -4,3 +4,4 @@ export declare enum Status {
4
4
  Success = 2,
5
5
  Failure = 3
6
6
  }
7
+ //# sourceMappingURL=status.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../../src/flow-viewer/models/status.ts"],"names":[],"mappings":"AAAA,oBAAY,MAAM;IACd,IAAI,IAAA;IACJ,OAAO,IAAA;IACP,OAAO,IAAA;IACP,OAAO,IAAA;CACV"}
@@ -2,3 +2,4 @@ import { Node } from "@openremote/model";
2
2
  export declare class CopyMachine {
3
3
  static copy(node: Node): Node;
4
4
  }
5
+ //# sourceMappingURL=copy.machine.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"copy.machine.d.ts","sourceRoot":"","sources":["../../../src/flow-viewer/node-structure/copy.machine.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAc,MAAM,mBAAmB,CAAC;AAErD,qBAAa,WAAW;WACN,IAAI,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI;CAqCvC"}
@@ -3,3 +3,4 @@ export declare class IdentityAssigner {
3
3
  static generateIdentity(): string;
4
4
  static getSocketElementIdentity(socket: NodeSocket): string | undefined;
5
5
  }
6
+ //# sourceMappingURL=identity.assigner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"identity.assigner.d.ts","sourceRoot":"","sources":["../../../src/flow-viewer/node-structure/identity.assigner.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,qBAAa,gBAAgB;WAEX,gBAAgB,IAAI,MAAM;WAI1B,wBAAwB,CAAC,MAAM,EAAE,UAAU;CAG5D"}
@@ -3,3 +3,4 @@ export declare class IdentityDomLink {
3
3
  [id: string]: any;
4
4
  };
5
5
  }
6
+ //# sourceMappingURL=identity.dom.link.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"identity.dom.link.d.ts","sourceRoot":"","sources":["../../../src/flow-viewer/node-structure/identity.dom.link.ts"],"names":[],"mappings":"AAAA,qBAAa,eAAe;IACxB,OAAc,GAAG,EAAE;QAAE,CAAC,EAAE,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAM;CACjD"}
@@ -2,3 +2,4 @@ export { NodeUtilities } from "./utils";
2
2
  export { IdentityAssigner } from "./identity.assigner";
3
3
  export { IdentityDomLink } from "./identity.dom.link";
4
4
  export { CopyMachine } from "./copy.machine";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/flow-viewer/node-structure/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC"}
@@ -3,3 +3,4 @@ export declare class SocketTypeMatcher {
3
3
  static match(a: NodeDataType, b: NodeDataType): boolean;
4
4
  private static readonly matches;
5
5
  }
6
+ //# sourceMappingURL=socket.type.matcher.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"socket.type.matcher.d.ts","sourceRoot":"","sources":["../../../src/flow-viewer/node-structure/socket.type.matcher.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAE/C,qBAAa,iBAAiB;WAEZ,KAAK,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,YAAY;IAKpD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,OAAO,CAyC7B;CACL"}
@@ -11,3 +11,4 @@ export declare class NodeUtilities {
11
11
  static lerpNumber(x: number, y: number, t: number): number;
12
12
  static lerp(a: NodePosition, b: NodePosition, t: number): NodePosition;
13
13
  }
14
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/flow-viewer/node-structure/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAE,cAAc,EAAE,YAAY,EAAE,YAAY,EAAY,eAAe,EAAC,MAAM,mBAAmB,CAAC;AAE9G,qBAAa,aAAa;WACR,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE;WAMvC,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE;WAWzC,4BAA4B,CAAC,KAAK,EAAE,eAAe,GAAG,YAAY;WAUlE,aAAa,CAAC,UAAU,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,EAAE;WA6BjE,QAAQ,CAAC,UAAU,EAAE,cAAc;WAgBnC,GAAG,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,YAAY,GAAG,YAAY;WAInD,QAAQ,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,YAAY,GAAG,YAAY;WAIxD,QAAQ,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,MAAM,GAAG,YAAY;WAIlD,UAAU,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;WAI1C,IAAI,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,YAAY,EAAE,CAAC,EAAE,MAAM,GAAG,YAAY;CAMhF"}
@@ -9,3 +9,4 @@ export declare class CopyPasteManager {
9
9
  cloneIsolated(obj: LightNodeCollection, positionOffset?: number): LightNodeCollection;
10
10
  copy(x: number, y: number): void;
11
11
  }
12
+ //# sourceMappingURL=copy-paste-manager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"copy-paste-manager.d.ts","sourceRoot":"","sources":["../../../src/flow-viewer/services/copy-paste-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAKtE,qBAAa,gBAAgB;IACzB,OAAO,CAAC,SAAS,CAAuB;IACxC,OAAO,CAAC,UAAU,CAAgB;IAElC,IAAW,MAAM,YAAgC;IAE1C,cAAc,CAAC,GAAG,EAAE,mBAAmB,EAAE,MAAM,EAAE,YAAY;IAK7D,gBAAgB,CAAC,SAAS,EAAE,YAAY;IAaxC,aAAa,CAAC,GAAG,EAAE,mBAAmB,EAAE,cAAc,SAAK;IAiC3D,IAAI,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;CAQnC"}
@@ -7,3 +7,4 @@ export declare class Exporter {
7
7
  exportAsNew(collection: NodeCollection): void;
8
8
  exportAsExisting(id: number, collection: NodeCollection): void;
9
9
  }
10
+ //# sourceMappingURL=exporter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exporter.d.ts","sourceRoot":"","sources":["../../../src/flow-viewer/services/exporter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAA8B,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAIxF,qBAAa,QAAQ;IACV,UAAU,CAAC,UAAU,EAAE,cAAc;IAIrC,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc;IAIxC,mBAAmB,CAAC,UAAU,EAAE,cAAc,EAAE,IAAI,EAAE,QAAQ,GAAG,OAAO,GAAG,OAAO;IAUlF,mBAAmB,CAAC,OAAO,EAAE,OAAO;IAIpC,WAAW,CAAC,UAAU,EAAE,cAAc;IAyBtC,gBAAgB,CAAC,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,cAAc;CAoBjE"}
@@ -14,3 +14,4 @@ export declare class Input extends EventEmitter {
14
14
  private onkeydown;
15
15
  private onkeyup;
16
16
  }
17
+ //# sourceMappingURL=input.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/flow-viewer/services/input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAGrE,qBAAa,KAAM,SAAQ,YAAY;IAC5B,QAAQ,EAAE,iBAAiB,EAAE,CAAM;IACnC,WAAW,EAAE,iBAAiB,EAAE,CAAM;IAC7C,OAAO,CAAC,iBAAiB,CAAgB;;IAclC,MAAM,CAAC,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,UAAQ;IASjE,QAAQ,CAAC,OAAO,EAAE,iBAAiB;IAYnC,eAAe,CAAC,OAAO,EAAE,iBAAiB,EAAE,aAAa,UAAQ;IAUjE,cAAc,CAAC,iBAAiB,UAAQ;IAOxC,MAAM,CAAC,GAAG,EAAE,MAAM;IAIzB,IAAW,oBAAoB,YAE9B;IAED,OAAO,CAAC,SAAS,CAGhB;IAED,OAAO,CAAC,OAAO,CAId;CACJ"}
@@ -4,3 +4,4 @@ export declare class Integration extends EventEmitter {
4
4
  nodes: Node[];
5
5
  refreshNodes(): Promise<void>;
6
6
  }
7
+ //# sourceMappingURL=integration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"integration.d.ts","sourceRoot":"","sources":["../../../src/flow-viewer/services/integration.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC,qBAAa,WAAY,SAAQ,YAAY;IAClC,KAAK,EAAE,IAAI,EAAE,CAAM;IAEb,YAAY;CAO5B"}
@@ -6,3 +6,4 @@ export declare class ModalService {
6
6
  notification(header: string, message: string, buttonText?: string): void;
7
7
  anything(header: string, content: TemplateResult): void;
8
8
  }
9
+ //# sourceMappingURL=modal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../src/flow-viewer/services/modal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAQ,cAAc,EAAE,MAAM,KAAK,CAAC;AAG3C,qBAAa,YAAY;IACd,OAAO,EAAG,UAAU,CAAC;IAErB,YAAY,CAAC,aAAa,EAAE,MAAM,IAAI,EAAE,MAAM,GAAE,MAA+C,EAAE,QAAQ,GAAE,MAAiD;IAU5J,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,GAAE,MAA8B;IASxF,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc;CAK1D"}
@@ -37,3 +37,4 @@ export declare class Project extends EventEmitter {
37
37
  removeInvalidConnections(): void;
38
38
  private enrichConnection;
39
39
  }
40
+ //# sourceMappingURL=project.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../../src/flow-viewer/services/project.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAE,cAAc,EAAE,cAAc,EAAE,UAAU,EAAC,MA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AAU,GAAG,IAAI,EAAE,aAAa,OAAO,UAazF;IAEM,gBAAgB,CAAC,UAAU,EAAE,cAAc;IAa3C,iBAAiB,CAAC,UAAU,EAAE,cAAc;IAa5C,gBAAgB,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO;IAsB/D,wBAAwB;IAM/B,OAAO,CAAC,gBAAgB;CAM3B"}
@@ -6,3 +6,4 @@ export declare class Shortcuts {
6
6
  }[];
7
7
  constructor();
8
8
  }
9
+ //# sourceMappingURL=shortcuts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shortcuts.d.ts","sourceRoot":"","sources":["../../../src/flow-viewer/services/shortcuts.ts"],"names":[],"mappings":"AAIA,qBAAa,SAAS;IACX,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,EAAE,CAAC;QAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAAC,MAAM,EAAE,MAAM,IAAI,CAAA;KAAE,EAAE,CAuC7E;;CAYL"}
@@ -1 +1,2 @@
1
1
  export declare const EditorWorkspaceStyle: import("lit").CSSResult;
2
+ //# sourceMappingURL=editor-workspace-style.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"editor-workspace-style.d.ts","sourceRoot":"","sources":["../../../src/flow-viewer/styles/editor-workspace-style.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,yBAoDhC,CAAC"}
@@ -1 +1,2 @@
1
1
  export declare const FlowNodeStyle: import("lit").CSSResult;
2
+ //# sourceMappingURL=flow-node-style.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"flow-node-style.d.ts","sourceRoot":"","sources":["../../../src/flow-viewer/styles/flow-node-style.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,yBA4FzB,CAAC"}
@@ -1 +1,2 @@
1
1
  export declare const PickerStyle: import("lit").CSSResult;
2
+ //# sourceMappingURL=picker-styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"picker-styles.d.ts","sourceRoot":"","sources":["../../../src/flow-viewer/styles/picker-styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,yBA4BvB,CAAC"}
@@ -23,3 +23,4 @@ export declare class Utilities {
23
23
  static humanLike(input: string): string;
24
24
  static ellipsis(input: string, maxLength?: number, ellipsis?: string): string;
25
25
  }
26
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/flow-viewer/utils.ts"],"names":[],"mappings":"AAAA,qBAAa,SAAS;WACJ,SAAS,CAAC,MAAM,EAAE,UAAU;;;;WAO5B,gBAAgB,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE;WAInG,cAAc,CAAC,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE;WAQrI,SAAS,CAAC,KAAK,EAAE,MAAM;WAavB,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,SAAK,EAAE,QAAQ,SAAQ;CAiBzE"}
package/lib/index.d.ts CHANGED
@@ -176,7 +176,7 @@ export declare function getAssetTypeFromQuery(query?: AssetQuery): string | unde
176
176
  export declare function getAssetIdsFromQuery(query?: AssetQuery): string[] | undefined;
177
177
  export declare const getAssetTypes: () => Promise<string[]>;
178
178
  export declare function getAssetInfos(config: RulesConfig | undefined, useActionConfig: boolean): Promise<AssetTypeInfo[]>;
179
- export declare function getAssetsByType(type: string, realm?: string, loadedAssets?: Map<string, Asset[]>): Promise<{
179
+ export declare function getAssetsByType(type: string, customQuery?: AssetQuery, loadedAssets?: Map<string, Asset[]>): Promise<{
180
180
  assets?: Asset[];
181
181
  loadedAssets?: Map<string, Asset[]>;
182
182
  }>;
@@ -355,3 +355,4 @@ export declare class OrRules extends OrRules_base {
355
355
  */
356
356
  protected _saveRuleset(ruleset: RulesetUnion): Promise<import("axios").GenericAxiosResponse<void> | undefined>;
357
357
  }
358
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAY,UAAU,EAAE,cAAc,EAAE,cAAc,EAAY,MAAM,KAAK,CAAC;AAarF,OAAO,qBAAqB,CAAC;AAC7B,OAAO,EAGH,UAAU,EACV,aAAa,EACb,mBAAmB,EAEnB,QAAQ,EACR,UAAU,EACV,sBAAsB,EACtB,eAAe,EACf,aAAa,EACb,WAAW,EACX,YAAY,EAEZ,KAAK,EAGR,MAAM,mBAAmB,CAAC;AAC3B,OAAO,0BAA0B,CAAC;AAClC,OAAO,6CAA6C,CAAC;AACrD,OAAO,kBAAkB,CAAC;AAC1B,OAAO,wBAAwB,CAAC;AAChC,OAAO,gBAAgB,CAAC;AACxB,OAAO,2BAA2B,CAAC;AACnC,OAAO,EAAC,YAAY,EAAC,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAC,gBAAgB,EAAC,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAC,2BAA2B,EAAC,MAAM,4CAA4C,CAAC;AAIvF,OAAO,EAAC,eAAe,EAAC,MAAM,0BAA0B,CAAC;AAGzD,OAAO,EAAC,WAAW,EAAC,MAAM,SAAS,CAAC;AAEpC,0BAAkB,aAAa;IAC3B,WAAW,eAAe;IAC1B,WAAW,eAAe;IAC1B,I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AIG;IACH,SAAS,CAAC,qBAAqB,CAAC,MAAM,2BAAe,EAAE,eAAe,CAAC,EAAE,YAAY,EAAE;IAQvF;;;;OAIG;IACH,SAAS,CAAC,WAAW,CAAC,EAAE,EAAE,eAAe;IAuDzC;;OAEG;IACH,SAAS,CAAC,cAAc,IAAI,OAAO,CAAC,OAAO,CAAC;IAK5C;;;OAGG;IACH,SAAS,CAAC,kBAAkB,CAAC,EAAE,EAAE,wBAAwB;IAIzD;;;;;OAKG;IACH,SAAS,CAAC,kBAAkB,CAAC,EAAE,EAAE,2BAA2B;IA6C5D;;;OAGG;cACa,YAAY,CAAC,OAAO,EAAE,YAAY;CAerD"}
package/lib/index.js CHANGED
@@ -2,7 +2,7 @@ var __decorate=this&&this.__decorate||function(e,t,r,s){var o,n=arguments.length
2
2
  <or-rule-text-viewer id="rule-view" .ruleset="${e}" .config="${r}" .readonly="${s}"></or-rule-text-viewer>
3
3
  `,viewRulesetTemplate:'package demo.rules\n\nimport org.openremote.manager.rules.RulesBuilder\nimport org.openremote.model.notification.*\nimport org.openremote.model.attribute.AttributeInfo\nimport org.openremote.model.asset.Asset\nimport org.openremote.model.asset.impl.*\nimport org.openremote.model.query.*\nimport org.openremote.model.query.filter.*\nimport org.openremote.model.rules.Assets\nimport org.openremote.model.rules.Notifications\nimport org.openremote.model.rules.Users\n\nimport java.util.logging.Logger\nimport java.util.stream.Collectors\n\nLogger LOG = binding.LOG\nRulesBuilder rules = binding.rules\nNotifications notifications = binding.notifications\nUsers users = binding.users\nAssets assets = binding.assets\n\n/*\n* A groovy rule is made up of a when closure (LHS) which must return a boolean indicating whether the then closure (RHS)\n* should be executed. The rule engine will periodically evaluate the when closure and if it evaluates to true then the\n* rule then closure will execute.\n*\n* NOTE: DO NOT MODIFY THE FACTS IN THE WHEN CLOSURE THIS SHOULD BE DONE IN THE THEN CLOSURE\n*\n* To avoid an infinite rule loop the when closure should not continually return true for subsequent executions\n* so either the then closure should perform an action that prevents the when closure from matching on subsequent\n* evaluations, or custom facts should be used, some ideas:\n*\n* - Change the value of an attribute being matched in the when closure (which will prevent it matching on subsequent evaluations)\n* - Insert a custom fact on first match and test this fact in the when closure to determine when the rule should match again (for\n* example if a rule should match whenever the asset state changes the asset state timestamp can be used)\n*/\n\nrules.add()\n .name("Example rule")\n .when({\n facts ->\n\n // Find first matching asset state using an asset query\n\n facts.matchFirstAssetState(\n\n // Find asset state by asset type and attribute name\n new AssetQuery().types(ThingAsset).attributeNames("someAttribute")\n\n // Find asset state by asset ID and attribute name\n //new AssetQuery().ids("7CaBoyiDhtdf2kn1Xso1w5").attributeNames("someAttribute")\n\n // Find asset state by asset type, attribute name and value string predicate\n //new AssetQuery().types(ThingAsset).attributes(\n // new AttributePredicate()\n // .name("someAttribute")\n // .value(new StringPredicate()\n // .value("someValue")\n // .match(AssetQuery.Match.EXACT)\n // .caseSensitive(true)))\n\n // Find asset state by asset type and location attribute predicate\n //new AssetQuery().types(ThingAsset).attributes(\n // new AttributePredicate()\n // .name(Asset.LOCATION)\n // .value(new RadialGeofencePredicate()\n // .radius(100)\n // .lat(50.0)\n // .lng(0.0)))\n\n ).map { assetState ->\n\n // Use logging to help with debugging if needed //LOG.info("ATTRIBUTE FOUND")\n\n // Check if this rule really should fire this time\n Optional<Long> lastFireTimestamp = facts.getOptional("someAttribute")\n if (lastFireTimestamp.isPresent() && assetState.getTimestamp() <= lastFireTimestamp.get()) {\n return false\n }\n\n // OK to fire if we reach here\n\n // Compute and bind any facts required for the then closure\n facts.bind("assetState", assetState)\n true\n }.orElseGet {\n // Asset state didn\'t match so clear out any custom facts to allow the rule to fire next time the when closure matches\n facts.remove("someAttribute")\n false\n }\n\n})\n .then({\n facts ->\n\n // Extract any binded facts\n AttributeInfo assetState = facts.bound("assetState")\n\n // Insert the custom fact to prevent rule loop\n facts.put("someAttribute", assetState.getTimestamp())\n\n // Write to attributes\n def otherAttributeValue = null\n if (assetState.getValue().orElse{null} == "Value 1") {\n otherAttributeValue = "Converted Value 1"\n } else if (assetState.getValue().orElse{null} == "Value 2") {\n otherAttributeValue = "Converted Value 2"\n } else {\n otherAttributeValue = "Unknown"\n }\n assets.dispatch(assetState.id, "otherAttribute", otherAttributeValue)\n\n // Generate notifications (useful for rules that check if an attribute is out of range)\n //notifications.send(new Notification()\n // .setName("Attribute alert")\n // .setMessage(new EmailNotificationMessage()\n // .setTo("no-reply@openremote.io")\n // .setSubject("Attribute out of range: Attribute=${assetState.name} Asset ID=${assetState.id}")\n // .setText("Some text body")\n // .setHtml("<p>Or some HTML body</p>")\n // )\n //)\n})'},JAVASCRIPT:{viewTemplateProvider:(e,r,s)=>t`
4
4
  <or-rule-text-viewer id="rule-view" .ruleset="${e}" .config="${r}" .readonly="${s}"></or-rule-text-viewer>
5
- `,viewRulesetTemplate:'rules = [ // An array of rules, add more objects to add more rules\n {\n name: "Set bar to foo on someAttribute",\n description: "An example rule that sets \'bar\' on someAttribute when it is \'foo\'",\n when: function(facts) {\n return facts.matchAssetState(\n new AssetQuery().types(AssetType.THING).attributeValue("someAttribute", "foo")\n ).map(function(thing) {\n facts.bind("assetId", thing.id);\n return true;\n }).orElse(false);\n },\n then: function(facts) {\n facts.updateAssetState(\n facts.bound("assetId"), "someAttribute", "bar"\n );\n }\n }\n]'}};function getAssetDescriptorFromSection(e,t,r){if(!t||!t.descriptors)return;let s=r?t.descriptors.action:t.descriptors.when,o=t.descriptors.all,n=s&&s.assets?s.assets[e]?s.assets[e]:s.assets["*"]:void 0;return n||(o&&o.assets?o.assets[e]?o.assets[e]:o.assets["*"]:void 0)}export function getAssetTypeFromQuery(e){return e&&e.types&&e.types.length>0&&e.types[0]?e.types[0]:void 0}export function getAssetIdsFromQuery(e){return e&&e.ids?[...e.ids]:void 0}export const getAssetTypes=()=>__awaiter(void 0,void 0,void 0,function*(){return b.getAssetTypeInfos().map(e=>e.assetDescriptor.name)});export function getAssetInfos(e,t){let r=b.getAssetDescriptors();return getAssetTypes().then(s=>{let o=s||[],n=[];if(!e||!e.descriptors)return r.map(e=>b.getAssetTypeInfo(e));let l=t?e.descriptors.action:e.descriptors.when;return(l&&l.includeAssets||e.descriptors.all&&e.descriptors.all.includeAssets)&&(o=[],l&&l.includeAssets&&(o=[...l.includeAssets]),e.descriptors.all&&e.descriptors.all.includeAssets&&(o=[...e.descriptors.all.includeAssets])),l&&l.excludeAssets&&(n=[...l.excludeAssets]),e.descriptors.all&&e.descriptors.all.excludeAssets&&(n=n.concat(e.descriptors.all.excludeAssets)),r.filter(e=>!(o.length>0&&0>o.indexOf(e.name))&&0>n.indexOf(e.name)).map(r=>{let s=b.getAssetTypeInfo(r),o=getAssetDescriptorFromSection(r.name,e,t);if(!o)return s;let n={assetDescriptor:s.assetDescriptor?Object.assign({},s.assetDescriptor):{descriptorType:"asset"},attributeDescriptors:s.attributeDescriptors?[...s.attributeDescriptors]:[],metaItemDescriptors:s.metaItemDescriptors?[...s.metaItemDescriptors]:[],valueDescriptors:s.valueDescriptors?[...s.valueDescriptors]:[]};if(o.icon&&(n.assetDescriptor.icon=o.icon),o.color&&(n.assetDescriptor.colour=o.color),n.attributeDescriptors){let t=void 0!==o.includeAttributes?o.includeAttributes:void 0,r=void 0!==o.excludeAttributes?o.excludeAttributes:void 0;(t||r)&&(n.attributeDescriptors=n.attributeDescriptors.filter(e=>(!t||t.some(t=>g.stringMatch(t,e.name)))&&(!r||!r.some(t=>g.stringMatch(t,e.name))))),o.attributeDescriptors&&n.attributeDescriptors.map(t=>{let r=o.attributeDescriptors[t.name];r||(r=l&&l.attributeDescriptors?l.attributeDescriptors[t.name]:void 0),r||(r=e.descriptors.all&&e.descriptors.all.attributeDescriptors?e.descriptors.all.attributeDescriptors[t.name]:void 0),r&&(r.type&&(t.type=r.type),r.format&&(t.format=r.format),r.units&&(t.units=r.units),r.constraints&&(t.constraints=t.constraints?[...r.constraints,...t.constraints]:r.constraints))})}return n})})}export function getAssetsByType(e,t,r){return __awaiter(this,void 0,void 0,function*(){if(null==r?void 0:r.has(e))return{assets:null==r?void 0:r.get(e),loadedAssets:r};{r||(r=new Map);let s={types:[e],orderBy:{property:"NAME"}};void 0!=t&&(s.realm={name:t});let o=yield a.rest.api.AssetResource.queryAssets(s);return r.set(e,o.data),{assets:o.data,loadedAssets:r}}})}export class OrRulesRuleChangedEvent extends CustomEvent{constructor(e){super(OrRulesRuleChangedEvent.NAME,{bubbles:!0,composed:!0,detail:e})}}OrRulesRuleChangedEvent.NAME="or-rules-rule-changed";export class OrRulesRuleUnsupportedEvent extends CustomEvent{constructor(){super(OrRulesRuleUnsupportedEvent.NAME,{bubbles:!0,composed:!0})}}OrRulesRuleUnsupportedEvent.NAME="or-rules-rule-unsupported";export class OrRulesRequestSelectionEvent extends CustomEvent{constructor(e){super(OrRulesRequestSelectionEvent.NAME,{bubbles:!0,composed:!0,cancelable:!0,detail:e})}}OrRulesRequestSelectionEvent.NAME="or-rules-request-selection";export class OrRulesSelectionEvent extends CustomEvent{constructor(e){super(OrRulesSelectionEvent.NAME,{bubbles:!0,composed:!0,detail:e})}}OrRulesSelectionEvent.NAME="or-rules-selection";export class OrRulesRequestAddEvent extends CustomEvent{constructor(e){super(OrRulesRequestAddEvent.NAME,{bubbles:!0,composed:!0,detail:{detail:e,allow:!0}})}}OrRulesRequestAddEvent.NAME="or-rules-request-add";export class OrRulesRequestGroupEvent extends CustomEvent{constructor(e){super(OrRulesRequestGroupEvent.NAME,{bubbles:!0,composed:!0,detail:{value:e}})}}OrRulesRequestGroupEvent.NAME="or-rules-request-group";export class OrRulesAddEvent extends CustomEvent{constructor(e){super(OrRulesAddEvent.NAME,{bubbles:!0,composed:!0,detail:e})}}OrRulesAddEvent.NAME="or-rules-add";export class OrRulesRequestDeleteEvent extends CustomEvent{constructor(e){super(OrRulesRequestDeleteEvent.NAME,{bubbles:!0,composed:!0,detail:{detail:e,allow:!0}})}}OrRulesRequestDeleteEvent.NAME="or-rules-request-delete";export class OrRulesRequestSaveEvent extends CustomEvent{constructor(e){super(OrRulesRequestSaveEvent.NAME,{bubbles:!0,composed:!0,detail:{allow:!0,detail:e}})}}OrRulesRequestSaveEvent.NAME="or-rules-request-save";export class OrRulesSaveEvent extends CustomEvent{constructor(e){super(OrRulesSaveEvent.NAME,{bubbles:!0,composed:!0,detail:e})}}OrRulesSaveEvent.NAME="or-rules-save";export class OrRulesDeleteEvent extends CustomEvent{constructor(e){super(OrRulesDeleteEvent.NAME,{bubbles:!0,composed:!0,detail:e})}}OrRulesDeleteEvent.NAME="or-rules-delete";export class OrRulesGroupNameChangeEvent extends CustomEvent{constructor(e){super(OrRulesGroupNameChangeEvent.NAME,{bubbles:!0,composed:!0,cancelable:!0,detail:{value:e}})}}OrRulesGroupNameChangeEvent.NAME="or-rules-group-name-change";export const style=e`
5
+ `,viewRulesetTemplate:'rules = [ // An array of rules, add more objects to add more rules\n {\n name: "Set bar to foo on someAttribute",\n description: "An example rule that sets \'bar\' on someAttribute when it is \'foo\'",\n when: function(facts) {\n return facts.matchAssetState(\n new AssetQuery().types(AssetType.THING).attributeValue("someAttribute", "foo")\n ).map(function(thing) {\n facts.bind("assetId", thing.id);\n return true;\n }).orElse(false);\n },\n then: function(facts) {\n facts.updateAssetState(\n facts.bound("assetId"), "someAttribute", "bar"\n );\n }\n }\n]'}};function getAssetDescriptorFromSection(e,t,r){if(!t||!t.descriptors)return;let s=r?t.descriptors.action:t.descriptors.when,o=t.descriptors.all,n=s&&s.assets?s.assets[e]?s.assets[e]:s.assets["*"]:void 0;return n||(o&&o.assets?o.assets[e]?o.assets[e]:o.assets["*"]:void 0)}export function getAssetTypeFromQuery(e){return e&&e.types&&e.types.length>0&&e.types[0]?e.types[0]:void 0}export function getAssetIdsFromQuery(e){return e&&e.ids?[...e.ids]:void 0}export const getAssetTypes=()=>__awaiter(void 0,void 0,void 0,function*(){return b.getAssetTypeInfos().map(e=>e.assetDescriptor.name)});export function getAssetInfos(e,t){let r=b.getAssetDescriptors();return getAssetTypes().then(s=>{let o=s||[],n=[];if(!e||!e.descriptors)return r.map(e=>b.getAssetTypeInfo(e));let l=t?e.descriptors.action:e.descriptors.when;return(l&&l.includeAssets||e.descriptors.all&&e.descriptors.all.includeAssets)&&(o=[],l&&l.includeAssets&&(o=[...l.includeAssets]),e.descriptors.all&&e.descriptors.all.includeAssets&&(o=[...e.descriptors.all.includeAssets])),l&&l.excludeAssets&&(n=[...l.excludeAssets]),e.descriptors.all&&e.descriptors.all.excludeAssets&&(n=n.concat(e.descriptors.all.excludeAssets)),r.filter(e=>!(o.length>0&&0>o.indexOf(e.name))&&0>n.indexOf(e.name)).map(r=>{let s=b.getAssetTypeInfo(r),o=getAssetDescriptorFromSection(r.name,e,t);if(!o)return s;let n={assetDescriptor:s.assetDescriptor?Object.assign({},s.assetDescriptor):{descriptorType:"asset"},attributeDescriptors:s.attributeDescriptors?[...s.attributeDescriptors]:[],metaItemDescriptors:s.metaItemDescriptors?[...s.metaItemDescriptors]:[],valueDescriptors:s.valueDescriptors?[...s.valueDescriptors]:[]};if(o.icon&&(n.assetDescriptor.icon=o.icon),o.color&&(n.assetDescriptor.colour=o.color),n.attributeDescriptors){let t=void 0!==o.includeAttributes?o.includeAttributes:void 0,r=void 0!==o.excludeAttributes?o.excludeAttributes:void 0;(t||r)&&(n.attributeDescriptors=n.attributeDescriptors.filter(e=>(!t||t.some(t=>g.stringMatch(t,e.name)))&&(!r||!r.some(t=>g.stringMatch(t,e.name))))),o.attributeDescriptors&&n.attributeDescriptors.map(t=>{let r=o.attributeDescriptors[t.name];r||(r=l&&l.attributeDescriptors?l.attributeDescriptors[t.name]:void 0),r||(r=e.descriptors.all&&e.descriptors.all.attributeDescriptors?e.descriptors.all.attributeDescriptors[t.name]:void 0),r&&(r.type&&(t.type=r.type),r.format&&(t.format=r.format),r.units&&(t.units=r.units),r.constraints&&(t.constraints=t.constraints?[...r.constraints,...t.constraints]:r.constraints))})}return n})})}export function getAssetsByType(e,t,r){return __awaiter(this,void 0,void 0,function*(){if(null==r?void 0:r.has(e))return{assets:null==r?void 0:r.get(e),loadedAssets:r};{null!=r||(r=new Map);let s={realm:{name:a.displayRealm},types:[e],orderBy:{property:"NAME"}},o=yield a.rest.api.AssetResource.queryAssets(Object.assign(Object.assign({},s),t));return r.set(e,o.data),{assets:o.data,loadedAssets:r}}})}export class OrRulesRuleChangedEvent extends CustomEvent{constructor(e){super(OrRulesRuleChangedEvent.NAME,{bubbles:!0,composed:!0,detail:e})}}OrRulesRuleChangedEvent.NAME="or-rules-rule-changed";export class OrRulesRuleUnsupportedEvent extends CustomEvent{constructor(){super(OrRulesRuleUnsupportedEvent.NAME,{bubbles:!0,composed:!0})}}OrRulesRuleUnsupportedEvent.NAME="or-rules-rule-unsupported";export class OrRulesRequestSelectionEvent extends CustomEvent{constructor(e){super(OrRulesRequestSelectionEvent.NAME,{bubbles:!0,composed:!0,cancelable:!0,detail:e})}}OrRulesRequestSelectionEvent.NAME="or-rules-request-selection";export class OrRulesSelectionEvent extends CustomEvent{constructor(e){super(OrRulesSelectionEvent.NAME,{bubbles:!0,composed:!0,detail:e})}}OrRulesSelectionEvent.NAME="or-rules-selection";export class OrRulesRequestAddEvent extends CustomEvent{constructor(e){super(OrRulesRequestAddEvent.NAME,{bubbles:!0,composed:!0,detail:{detail:e,allow:!0}})}}OrRulesRequestAddEvent.NAME="or-rules-request-add";export class OrRulesRequestGroupEvent extends CustomEvent{constructor(e){super(OrRulesRequestGroupEvent.NAME,{bubbles:!0,composed:!0,detail:{value:e}})}}OrRulesRequestGroupEvent.NAME="or-rules-request-group";export class OrRulesAddEvent extends CustomEvent{constructor(e){super(OrRulesAddEvent.NAME,{bubbles:!0,composed:!0,detail:e})}}OrRulesAddEvent.NAME="or-rules-add";export class OrRulesRequestDeleteEvent extends CustomEvent{constructor(e){super(OrRulesRequestDeleteEvent.NAME,{bubbles:!0,composed:!0,detail:{detail:e,allow:!0}})}}OrRulesRequestDeleteEvent.NAME="or-rules-request-delete";export class OrRulesRequestSaveEvent extends CustomEvent{constructor(e){super(OrRulesRequestSaveEvent.NAME,{bubbles:!0,composed:!0,detail:{allow:!0,detail:e}})}}OrRulesRequestSaveEvent.NAME="or-rules-request-save";export class OrRulesSaveEvent extends CustomEvent{constructor(e){super(OrRulesSaveEvent.NAME,{bubbles:!0,composed:!0,detail:e})}}OrRulesSaveEvent.NAME="or-rules-save";export class OrRulesDeleteEvent extends CustomEvent{constructor(e){super(OrRulesDeleteEvent.NAME,{bubbles:!0,composed:!0,detail:e})}}OrRulesDeleteEvent.NAME="or-rules-delete";export class OrRulesGroupNameChangeEvent extends CustomEvent{constructor(e){super(OrRulesGroupNameChangeEvent.NAME,{bubbles:!0,composed:!0,cancelable:!0,detail:{value:e}})}}OrRulesGroupNameChangeEvent.NAME="or-rules-group-name-change";export const style=e`
6
6
 
7
7
  :host {
8
8
  display: flex;