rete-angular-plugin 2.4.0 → 2.5.0

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 (118) hide show
  1. package/12/bundles/rete-angular-plugin-ng12.umd.js +44 -8
  2. package/12/bundles/rete-angular-plugin-ng12.umd.js.map +1 -1
  3. package/12/esm2015/index.js +2 -1
  4. package/12/esm2015/module.js +10 -5
  5. package/12/esm2015/presets/classic/components/connection/connection-wrapper.component.js +2 -1
  6. package/12/esm2015/presets/classic/components/node/node.component.js +6 -5
  7. package/12/esm2015/shared/pipes/impure-keyvalue.pipe.js +24 -0
  8. package/12/esm2015/shared/pipes/index.js +2 -0
  9. package/12/fesm2015/rete-angular-plugin-ng12.js +37 -10
  10. package/12/fesm2015/rete-angular-plugin-ng12.js.map +1 -1
  11. package/12/index.d.ts +1 -0
  12. package/12/module.d.ts +3 -2
  13. package/12/shared/pipes/impure-keyvalue.pipe.d.ts +12 -0
  14. package/12/shared/pipes/index.d.ts +1 -0
  15. package/13/esm2020/index.mjs +2 -1
  16. package/13/esm2020/module.mjs +10 -5
  17. package/13/esm2020/presets/classic/components/connection/connection-wrapper.component.mjs +2 -1
  18. package/13/esm2020/presets/classic/components/node/node.component.mjs +7 -6
  19. package/13/esm2020/shared/pipes/impure-keyvalue.pipe.mjs +24 -0
  20. package/13/esm2020/shared/pipes/index.mjs +2 -0
  21. package/13/fesm2015/rete-angular-plugin-ng13.mjs +40 -11
  22. package/13/fesm2015/rete-angular-plugin-ng13.mjs.map +1 -1
  23. package/13/fesm2020/rete-angular-plugin-ng13.mjs +38 -11
  24. package/13/fesm2020/rete-angular-plugin-ng13.mjs.map +1 -1
  25. package/13/index.d.ts +1 -0
  26. package/13/module.d.ts +3 -2
  27. package/13/shared/pipes/impure-keyvalue.pipe.d.ts +12 -0
  28. package/13/shared/pipes/index.d.ts +1 -0
  29. package/14/esm2020/index.mjs +2 -1
  30. package/14/esm2020/module.mjs +10 -5
  31. package/14/esm2020/presets/classic/components/connection/connection-wrapper.component.mjs +2 -1
  32. package/14/esm2020/presets/classic/components/node/node.component.mjs +7 -6
  33. package/14/esm2020/shared/pipes/impure-keyvalue.pipe.mjs +24 -0
  34. package/14/esm2020/shared/pipes/index.mjs +2 -0
  35. package/14/fesm2015/rete-angular-plugin-ng14.mjs +40 -11
  36. package/14/fesm2015/rete-angular-plugin-ng14.mjs.map +1 -1
  37. package/14/fesm2020/rete-angular-plugin-ng14.mjs +38 -11
  38. package/14/fesm2020/rete-angular-plugin-ng14.mjs.map +1 -1
  39. package/14/index.d.ts +1 -0
  40. package/14/module.d.ts +3 -2
  41. package/14/shared/pipes/impure-keyvalue.pipe.d.ts +12 -0
  42. package/14/shared/pipes/index.d.ts +1 -0
  43. package/15/esm2020/index.mjs +2 -1
  44. package/15/esm2020/module.mjs +10 -5
  45. package/15/esm2020/presets/classic/components/connection/connection-wrapper.component.mjs +2 -1
  46. package/15/esm2020/presets/classic/components/node/node.component.mjs +7 -6
  47. package/15/esm2020/shared/pipes/impure-keyvalue.pipe.mjs +24 -0
  48. package/15/esm2020/shared/pipes/index.mjs +2 -0
  49. package/15/fesm2015/rete-angular-plugin-ng15.mjs +40 -11
  50. package/15/fesm2015/rete-angular-plugin-ng15.mjs.map +1 -1
  51. package/15/fesm2020/rete-angular-plugin-ng15.mjs +38 -11
  52. package/15/fesm2020/rete-angular-plugin-ng15.mjs.map +1 -1
  53. package/15/index.d.ts +1 -0
  54. package/15/module.d.ts +3 -2
  55. package/15/shared/pipes/impure-keyvalue.pipe.d.ts +12 -0
  56. package/15/shared/pipes/index.d.ts +1 -0
  57. package/16/esm2022/index.mjs +2 -1
  58. package/16/esm2022/module.mjs +10 -5
  59. package/16/esm2022/presets/classic/components/connection/connection-wrapper.component.mjs +2 -1
  60. package/16/esm2022/presets/classic/components/node/node.component.mjs +7 -6
  61. package/16/esm2022/shared/pipes/impure-keyvalue.pipe.mjs +24 -0
  62. package/16/esm2022/shared/pipes/index.mjs +2 -0
  63. package/16/fesm2022/rete-angular-plugin-ng16.mjs +38 -11
  64. package/16/fesm2022/rete-angular-plugin-ng16.mjs.map +1 -1
  65. package/16/index.d.ts +1 -0
  66. package/16/module.d.ts +3 -2
  67. package/16/shared/pipes/impure-keyvalue.pipe.d.ts +12 -0
  68. package/16/shared/pipes/index.d.ts +1 -0
  69. package/17/esm2022/index.mjs +2 -1
  70. package/17/esm2022/module.mjs +10 -5
  71. package/17/esm2022/presets/classic/components/connection/connection-wrapper.component.mjs +2 -1
  72. package/17/esm2022/presets/classic/components/node/node.component.mjs +7 -6
  73. package/17/esm2022/shared/pipes/impure-keyvalue.pipe.mjs +24 -0
  74. package/17/esm2022/shared/pipes/index.mjs +2 -0
  75. package/17/fesm2022/rete-angular-plugin-ng17.mjs +38 -11
  76. package/17/fesm2022/rete-angular-plugin-ng17.mjs.map +1 -1
  77. package/17/index.d.ts +1 -0
  78. package/17/module.d.ts +3 -2
  79. package/17/shared/pipes/impure-keyvalue.pipe.d.ts +12 -0
  80. package/17/shared/pipes/index.d.ts +1 -0
  81. package/18/esm2022/index.mjs +2 -1
  82. package/18/esm2022/module.mjs +10 -5
  83. package/18/esm2022/presets/classic/components/connection/connection-wrapper.component.mjs +2 -1
  84. package/18/esm2022/presets/classic/components/node/node.component.mjs +7 -6
  85. package/18/esm2022/shared/pipes/impure-keyvalue.pipe.mjs +24 -0
  86. package/18/esm2022/shared/pipes/index.mjs +2 -0
  87. package/18/fesm2022/rete-angular-plugin-ng18.mjs +38 -11
  88. package/18/fesm2022/rete-angular-plugin-ng18.mjs.map +1 -1
  89. package/18/index.d.ts +1 -0
  90. package/18/module.d.ts +3 -2
  91. package/18/shared/pipes/impure-keyvalue.pipe.d.ts +12 -0
  92. package/18/shared/pipes/index.d.ts +1 -0
  93. package/19/fesm2022/rete-angular-plugin-ng19.mjs +32 -9
  94. package/19/fesm2022/rete-angular-plugin-ng19.mjs.map +1 -1
  95. package/19/index.d.ts +1 -0
  96. package/19/shared/pipes/impure-keyvalue.pipe.d.ts +12 -0
  97. package/19/shared/pipes/index.d.ts +1 -0
  98. package/20/fesm2022/rete-angular-plugin-ng20.mjs +32 -9
  99. package/20/fesm2022/rete-angular-plugin-ng20.mjs.map +1 -1
  100. package/20/index.d.ts +13 -2
  101. package/CHANGELOG.md +14 -0
  102. package/bundles/rete-angular-plugin.umd.js +41 -11
  103. package/bundles/rete-angular-plugin.umd.js.map +1 -1
  104. package/esm2015/index.js +2 -1
  105. package/esm2015/module.js +6 -3
  106. package/esm2015/presets/classic/components/connection/connection-wrapper.component.js +2 -1
  107. package/esm2015/presets/classic/components/node/node.component.js +2 -2
  108. package/esm2015/rete-angular-plugin.js +10 -9
  109. package/esm2015/shared/pipes/impure-keyvalue.pipe.js +20 -0
  110. package/esm2015/shared/pipes/index.js +2 -0
  111. package/fesm2015/rete-angular-plugin.js +27 -5
  112. package/fesm2015/rete-angular-plugin.js.map +1 -1
  113. package/index.d.ts +1 -0
  114. package/package.json +1 -1
  115. package/rete-angular-plugin.d.ts +9 -8
  116. package/rete-angular-plugin.metadata.json +1 -1
  117. package/shared/pipes/impure-keyvalue.pipe.d.ts +9 -0
  118. package/shared/pipes/index.d.ts +1 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ # [2.5.0](https://github.com/retejs/angular-plugin/compare/v2.4.1...v2.5.0) (2025-09-02)
2
+
3
+
4
+ ### Features
5
+
6
+ * add impure pipe for ordeting inputs, outputs, etc ([f73a645](https://github.com/retejs/angular-plugin/commit/f73a645b6017fcb0db58a10523031fdadd805f23))
7
+
8
+ ## [2.4.1](https://github.com/retejs/angular-plugin/compare/v2.4.0...v2.4.1) (2025-09-02)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * change dection for connection component ([ff1a538](https://github.com/retejs/angular-plugin/commit/ff1a5380f082efefe66102cbc46155f1ef08316d))
14
+
1
15
  # [2.4.0](https://github.com/retejs/angular-plugin/compare/v2.3.2...v2.4.0) (2025-06-30)
2
16
 
3
17
 
@@ -433,7 +433,7 @@
433
433
  NodeComponent.decorators = [
434
434
  { type: core.Component, args: [{
435
435
  // [component-directive]
436
- template: "<div class=\"title\" data-testid=\"title\">{{data.label}}</div>\n<div class=\"output\" *ngFor=\"let output of data.outputs | keyvalue: sortByIndex\" [attr.data-testid]=\"'output-'+output.key\">\n <div class=\"output-title\" data-testid=\"output-title\">{{output.value?.label}}</div>\n <div\n class=\"output-socket\"\n refComponent\n [data]=\"{type: 'socket', side: 'output', key: output.key, nodeId: data.id, payload: output.value?.socket, seed: seed }\"\n [emit]=\"emit\"\n data-testid=\"output-socket\"\n ></div>\n</div>\n<div\n class=\"control\"\n *ngFor=\"let control of data.controls | keyvalue: sortByIndex\"\n refComponent\n [data]=\"{type: 'control', payload: control.value }\"\n [emit]=\"emit\"\n [attr.data-testid]=\"'control-'+control.key\"\n></div>\n<div class=\"input\" *ngFor=\"let input of data.inputs | keyvalue: sortByIndex\" [attr.data-testid]=\"'input-'+input.key\">\n <div\n class=\"input-socket\"\n refComponent\n [data]=\"{type: 'socket', side: 'input', key: input.key, nodeId: data.id, payload: input.value?.socket, seed: seed }\"\n [emit]=\"emit\"\n data-testid=\"input-socket\"\n ></div>\n <div class=\"input-title\" data-testid=\"input-title\" *ngIf=\"!input.value?.control || !input.value?.showControl\">{{input.value?.label}}</div>\n <div\n class=\"input-control\"\n [style.display]=\"input.value?.control && input.value?.showControl ? '' : 'none'\"\n refComponent\n [data]=\"{type: 'control', payload: input.value?.control }\"\n [emit]=\"emit\"\n data-testid=\"input-control\"\n ></div>\n</div>\n",
436
+ template: "<div class=\"title\" data-testid=\"title\">{{data.label}}</div>\n<div class=\"output\" *ngFor=\"let output of data.outputs | keyvalueimpure: sortByIndex\" [attr.data-testid]=\"'output-'+output.key\">\n <div class=\"output-title\" data-testid=\"output-title\">{{output.value?.label}}</div>\n <div\n class=\"output-socket\"\n refComponent\n [data]=\"{type: 'socket', side: 'output', key: output.key, nodeId: data.id, payload: output.value?.socket, seed: seed }\"\n [emit]=\"emit\"\n data-testid=\"output-socket\"\n ></div>\n</div>\n<div\n class=\"control\"\n *ngFor=\"let control of data.controls | keyvalueimpure: sortByIndex\"\n refComponent\n [data]=\"{type: 'control', payload: control.value }\"\n [emit]=\"emit\"\n [attr.data-testid]=\"'control-'+control.key\"\n></div>\n<div class=\"input\" *ngFor=\"let input of data.inputs | keyvalueimpure: sortByIndex\" [attr.data-testid]=\"'input-'+input.key\">\n <div\n class=\"input-socket\"\n refComponent\n [data]=\"{type: 'socket', side: 'input', key: input.key, nodeId: data.id, payload: input.value?.socket, seed: seed }\"\n [emit]=\"emit\"\n data-testid=\"input-socket\"\n ></div>\n <div class=\"input-title\" data-testid=\"input-title\" *ngIf=\"!input.value?.control || !input.value?.showControl\">{{input.value?.label}}</div>\n <div\n class=\"input-control\"\n [style.display]=\"input.value?.control && input.value?.showControl ? '' : 'none'\"\n refComponent\n [data]=\"{type: 'control', payload: input.value?.control }\"\n [emit]=\"emit\"\n data-testid=\"input-control\"\n ></div>\n</div>\n",
437
437
  host: {
438
438
  'data-testid': 'node'
439
439
  },
@@ -648,6 +648,7 @@
648
648
  this.ref.instance.start = this._start;
649
649
  this.ref.instance.end = this._end;
650
650
  this.ref.instance.path = this._path;
651
+ this.ref.changeDetectorRef.markForCheck();
651
652
  };
652
653
  return ConnectionWrapperComponent;
653
654
  }());
@@ -1148,6 +1149,31 @@
1148
1149
  emit: [{ type: core.Input }]
1149
1150
  };
1150
1151
 
1152
+ var ImpureKeyvaluePipe = /** @class */ (function () {
1153
+ function ImpureKeyvaluePipe() {
1154
+ }
1155
+ ImpureKeyvaluePipe.prototype.transform = function (value, compareFn) {
1156
+ if (!value || typeof value !== 'object') {
1157
+ return [];
1158
+ }
1159
+ var result = Object.entries(value).map(function (_a) {
1160
+ var _b = __read(_a, 2), key = _b[0], val = _b[1];
1161
+ return ({ key: key, value: val });
1162
+ });
1163
+ if (compareFn) {
1164
+ result.sort(compareFn);
1165
+ }
1166
+ return result;
1167
+ };
1168
+ return ImpureKeyvaluePipe;
1169
+ }());
1170
+ ImpureKeyvaluePipe.decorators = [
1171
+ { type: core.Pipe, args: [{
1172
+ name: 'keyvalueimpure',
1173
+ pure: false
1174
+ },] }
1175
+ ];
1176
+
1151
1177
  var ReteModule = /** @class */ (function () {
1152
1178
  function ReteModule() {
1153
1179
  }
@@ -1161,7 +1187,8 @@
1161
1187
  ConnectionComponent,
1162
1188
  ConnectionWrapperComponent,
1163
1189
  SocketComponent,
1164
- ControlComponent
1190
+ ControlComponent,
1191
+ ImpureKeyvaluePipe
1165
1192
  ],
1166
1193
  imports: [
1167
1194
  common.CommonModule
@@ -1172,7 +1199,8 @@
1172
1199
  ConnectionComponent,
1173
1200
  ConnectionWrapperComponent,
1174
1201
  SocketComponent,
1175
- ControlComponent
1202
+ ControlComponent,
1203
+ ImpureKeyvaluePipe
1176
1204
  ],
1177
1205
  entryComponents: [
1178
1206
  NodeComponent,
@@ -1748,6 +1776,7 @@
1748
1776
  exports.ContextMenuItemComponent = ContextMenuItemComponent;
1749
1777
  exports.ContextMenuSearchComponent = ContextMenuSearchComponent;
1750
1778
  exports.ControlComponent = ControlComponent;
1779
+ exports.ImpureKeyvaluePipe = ImpureKeyvaluePipe;
1751
1780
  exports.MiniNodeComponent = MiniNodeComponent;
1752
1781
  exports.MiniViewportComponent = MiniViewportComponent;
1753
1782
  exports.MinimapComponent = MinimapComponent;
@@ -1766,14 +1795,15 @@
1766
1795
  exports["ɵc"] = ConnectionWrapperComponent;
1767
1796
  exports["ɵd"] = SocketComponent;
1768
1797
  exports["ɵe"] = ControlComponent;
1769
- exports["ɵf"] = ContextMenuComponent;
1770
- exports["ɵg"] = ContextMenuSearchComponent;
1771
- exports["ɵh"] = ContextMenuItemComponent;
1772
- exports["ɵi"] = MinimapComponent;
1773
- exports["ɵj"] = MiniViewportComponent;
1774
- exports["ɵk"] = MiniNodeComponent;
1775
- exports["ɵl"] = PinsComponent;
1776
- exports["ɵm"] = PinComponent;
1798
+ exports["ɵf"] = ImpureKeyvaluePipe;
1799
+ exports["ɵg"] = ContextMenuComponent;
1800
+ exports["ɵh"] = ContextMenuSearchComponent;
1801
+ exports["ɵi"] = ContextMenuItemComponent;
1802
+ exports["ɵj"] = MinimapComponent;
1803
+ exports["ɵk"] = MiniViewportComponent;
1804
+ exports["ɵl"] = MiniNodeComponent;
1805
+ exports["ɵm"] = PinsComponent;
1806
+ exports["ɵn"] = PinComponent;
1777
1807
 
1778
1808
  Object.defineProperty(exports, '__esModule', { value: true });
1779
1809