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
@@ -437,6 +437,36 @@
437
437
  }] });
438
438
  })();
439
439
 
440
+ var ImpureKeyvaluePipe = /** @class */ (function () {
441
+ function ImpureKeyvaluePipe() {
442
+ }
443
+ ImpureKeyvaluePipe.prototype.transform = function (value, compareFn) {
444
+ if (!value || typeof value !== 'object') {
445
+ return [];
446
+ }
447
+ var result = Object.entries(value).map(function (_a) {
448
+ var _b = __read(_a, 2), key = _b[0], val = _b[1];
449
+ return ({ key: key, value: val });
450
+ });
451
+ if (compareFn) {
452
+ result.sort(compareFn);
453
+ }
454
+ return result;
455
+ };
456
+ return ImpureKeyvaluePipe;
457
+ }());
458
+ ImpureKeyvaluePipe.ɵfac = function ImpureKeyvaluePipe_Factory(t) { return new (t || ImpureKeyvaluePipe)(); };
459
+ ImpureKeyvaluePipe.ɵpipe = /*@__PURE__*/ i0__namespace.ɵɵdefinePipe({ name: "keyvalueimpure", type: ImpureKeyvaluePipe, pure: false });
460
+ (function () {
461
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ImpureKeyvaluePipe, [{
462
+ type: i0.Pipe,
463
+ args: [{
464
+ name: 'keyvalueimpure',
465
+ pure: false
466
+ }]
467
+ }], null, null);
468
+ })();
469
+
440
470
  var _c0$1 = function (a2, a3, a4, a5) { return { type: "socket", side: "output", key: a2, nodeId: a3, payload: a4, seed: a5 }; };
441
471
  function NodeComponent_div_2_Template(rf, ctx) {
442
472
  if (rf & 1) {
@@ -556,11 +586,11 @@
556
586
  i0__namespace.ɵɵtext(1);
557
587
  i0__namespace.ɵɵelementEnd();
558
588
  i0__namespace.ɵɵtemplate(2, NodeComponent_div_2_Template, 4, 9, "div", 1);
559
- i0__namespace.ɵɵpipe(3, "keyvalue");
589
+ i0__namespace.ɵɵpipe(3, "keyvalueimpure");
560
590
  i0__namespace.ɵɵtemplate(4, NodeComponent_div_4_Template, 1, 5, "div", 2);
561
- i0__namespace.ɵɵpipe(5, "keyvalue");
591
+ i0__namespace.ɵɵpipe(5, "keyvalueimpure");
562
592
  i0__namespace.ɵɵtemplate(6, NodeComponent_div_6_Template, 4, 15, "div", 3);
563
- i0__namespace.ɵɵpipe(7, "keyvalue");
593
+ i0__namespace.ɵɵpipe(7, "keyvalueimpure");
564
594
  }
565
595
  if (rf & 2) {
566
596
  i0__namespace.ɵɵadvance(1);
@@ -572,7 +602,7 @@
572
602
  i0__namespace.ɵɵadvance(2);
573
603
  i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind2(7, 10, ctx.data.inputs, ctx.sortByIndex));
574
604
  }
575
- }, directives: [i1__namespace.NgForOf, RefDirective, i1__namespace.NgIf], pipes: [i1__namespace.KeyValuePipe], styles: ["[_nghost-%COMP%]{display:block;background:rgba(110,136,255,.8);border:2px solid #4e58bf;border-radius:10px;cursor:pointer;box-sizing:border-box;width:180px;height:auto;padding-bottom:6px;position:relative;-webkit-user-select:none;user-select:none;line-height:initial;font-family:Arial}[_nghost-%COMP%]:hover{background:rgba(130,153,255,.8)}.selected[_nghost-%COMP%]{background:#ffd92c;border-color:#e3c000}[_nghost-%COMP%] .title[_ngcontent-%COMP%]{color:#fff;font-family:sans-serif;font-size:18px;padding:8px}[_nghost-%COMP%] .output[_ngcontent-%COMP%]{text-align:right}[_nghost-%COMP%] .input[_ngcontent-%COMP%]{text-align:left}[_nghost-%COMP%] .input-title[_ngcontent-%COMP%], [_nghost-%COMP%] .output-title[_ngcontent-%COMP%]{vertical-align:middle;color:#fff;display:inline-block;font-family:sans-serif;font-size:14px;margin:6px;line-height:24px}[_nghost-%COMP%] .input-title[hidden][_ngcontent-%COMP%], [_nghost-%COMP%] .output-title[hidden][_ngcontent-%COMP%]{display:none}[_nghost-%COMP%] .output-socket[_ngcontent-%COMP%]{text-align:right;margin-right:-18px;display:inline-block}[_nghost-%COMP%] .input-socket[_ngcontent-%COMP%]{text-align:left;margin-left:-18px;display:inline-block}[_nghost-%COMP%] .input-control[_ngcontent-%COMP%]{z-index:1;width:calc(100% - 36px);vertical-align:middle;display:inline-block}[_nghost-%COMP%] .control[_ngcontent-%COMP%]{padding:6px 18px}"] });
605
+ }, directives: [i1__namespace.NgForOf, RefDirective, i1__namespace.NgIf], pipes: [ImpureKeyvaluePipe], styles: ["[_nghost-%COMP%]{display:block;background:rgba(110,136,255,.8);border:2px solid #4e58bf;border-radius:10px;cursor:pointer;box-sizing:border-box;width:180px;height:auto;padding-bottom:6px;position:relative;-webkit-user-select:none;user-select:none;line-height:initial;font-family:Arial}[_nghost-%COMP%]:hover{background:rgba(130,153,255,.8)}.selected[_nghost-%COMP%]{background:#ffd92c;border-color:#e3c000}[_nghost-%COMP%] .title[_ngcontent-%COMP%]{color:#fff;font-family:sans-serif;font-size:18px;padding:8px}[_nghost-%COMP%] .output[_ngcontent-%COMP%]{text-align:right}[_nghost-%COMP%] .input[_ngcontent-%COMP%]{text-align:left}[_nghost-%COMP%] .input-title[_ngcontent-%COMP%], [_nghost-%COMP%] .output-title[_ngcontent-%COMP%]{vertical-align:middle;color:#fff;display:inline-block;font-family:sans-serif;font-size:14px;margin:6px;line-height:24px}[_nghost-%COMP%] .input-title[hidden][_ngcontent-%COMP%], [_nghost-%COMP%] .output-title[hidden][_ngcontent-%COMP%]{display:none}[_nghost-%COMP%] .output-socket[_ngcontent-%COMP%]{text-align:right;margin-right:-18px;display:inline-block}[_nghost-%COMP%] .input-socket[_ngcontent-%COMP%]{text-align:left;margin-left:-18px;display:inline-block}[_nghost-%COMP%] .input-control[_ngcontent-%COMP%]{z-index:1;width:calc(100% - 36px);vertical-align:middle;display:inline-block}[_nghost-%COMP%] .control[_ngcontent-%COMP%]{padding:6px 18px}"] });
576
606
  (function () {
577
607
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(NodeComponent, [{
578
608
  type: i0.Component,
@@ -841,6 +871,7 @@
841
871
  this.ref.instance.start = this._start;
842
872
  this.ref.instance.end = this._end;
843
873
  this.ref.instance.path = this._path;
874
+ this.ref.changeDetectorRef.markForCheck();
844
875
  };
845
876
  return ConnectionWrapperComponent;
846
877
  }());
@@ -1938,7 +1969,8 @@
1938
1969
  ConnectionComponent,
1939
1970
  ConnectionWrapperComponent,
1940
1971
  SocketComponent,
1941
- ControlComponent
1972
+ ControlComponent,
1973
+ ImpureKeyvaluePipe
1942
1974
  ],
1943
1975
  imports: [
1944
1976
  i1.CommonModule
@@ -1949,7 +1981,8 @@
1949
1981
  ConnectionComponent,
1950
1982
  ConnectionWrapperComponent,
1951
1983
  SocketComponent,
1952
- ControlComponent
1984
+ ControlComponent,
1985
+ ImpureKeyvaluePipe
1953
1986
  ],
1954
1987
  entryComponents: [
1955
1988
  NodeComponent,
@@ -1967,12 +2000,14 @@
1967
2000
  ConnectionComponent,
1968
2001
  ConnectionWrapperComponent,
1969
2002
  SocketComponent,
1970
- ControlComponent], imports: [i1.CommonModule], exports: [RefDirective,
2003
+ ControlComponent,
2004
+ ImpureKeyvaluePipe], imports: [i1.CommonModule], exports: [RefDirective,
1971
2005
  NodeComponent,
1972
2006
  ConnectionComponent,
1973
2007
  ConnectionWrapperComponent,
1974
2008
  SocketComponent,
1975
- ControlComponent] });
2009
+ ControlComponent,
2010
+ ImpureKeyvaluePipe] });
1976
2011
  })();
1977
2012
 
1978
2013
  var ReteContextMenuModule = /** @class */ (function () {
@@ -2257,6 +2292,7 @@
2257
2292
  exports.ContextMenuItemComponent = ContextMenuItemComponent;
2258
2293
  exports.ContextMenuSearchComponent = ContextMenuSearchComponent;
2259
2294
  exports.ControlComponent = ControlComponent;
2295
+ exports.ImpureKeyvaluePipe = ImpureKeyvaluePipe;
2260
2296
  exports.MiniNodeComponent = MiniNodeComponent;
2261
2297
  exports.MiniViewportComponent = MiniViewportComponent;
2262
2298
  exports.MinimapComponent = MinimapComponent;