rete-angular-plugin 2.1.0 → 2.1.2

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 (48) hide show
  1. package/12/bundles/rete-angular-plugin-ng12.umd.js +24 -3
  2. package/12/bundles/rete-angular-plugin-ng12.umd.js.map +1 -1
  3. package/12/esm2015/presets/classic/components/control/control.component.js +1 -1
  4. package/12/esm2015/presets/classic/components/node/node.component.js +16 -4
  5. package/12/fesm2015/rete-angular-plugin-ng12.js +16 -3
  6. package/12/fesm2015/rete-angular-plugin-ng12.js.map +1 -1
  7. package/12/presets/classic/components/node/node.component.d.ts +7 -1
  8. package/13/esm2020/presets/classic/components/control/control.component.mjs +2 -2
  9. package/13/esm2020/presets/classic/components/node/node.component.mjs +17 -5
  10. package/13/fesm2015/rete-angular-plugin-ng13.mjs +18 -5
  11. package/13/fesm2015/rete-angular-plugin-ng13.mjs.map +1 -1
  12. package/13/fesm2020/rete-angular-plugin-ng13.mjs +18 -5
  13. package/13/fesm2020/rete-angular-plugin-ng13.mjs.map +1 -1
  14. package/13/presets/classic/components/node/node.component.d.ts +7 -1
  15. package/14/esm2020/presets/classic/components/control/control.component.mjs +2 -2
  16. package/14/esm2020/presets/classic/components/node/node.component.mjs +17 -5
  17. package/14/fesm2015/rete-angular-plugin-ng14.mjs +18 -5
  18. package/14/fesm2015/rete-angular-plugin-ng14.mjs.map +1 -1
  19. package/14/fesm2020/rete-angular-plugin-ng14.mjs +18 -5
  20. package/14/fesm2020/rete-angular-plugin-ng14.mjs.map +1 -1
  21. package/14/presets/classic/components/node/node.component.d.ts +7 -1
  22. package/15/esm2020/presets/classic/components/control/control.component.mjs +2 -2
  23. package/15/esm2020/presets/classic/components/node/node.component.mjs +17 -5
  24. package/15/fesm2015/rete-angular-plugin-ng15.mjs +18 -5
  25. package/15/fesm2015/rete-angular-plugin-ng15.mjs.map +1 -1
  26. package/15/fesm2020/rete-angular-plugin-ng15.mjs +18 -5
  27. package/15/fesm2020/rete-angular-plugin-ng15.mjs.map +1 -1
  28. package/15/presets/classic/components/node/node.component.d.ts +7 -1
  29. package/16/esm2022/presets/classic/components/control/control.component.mjs +2 -2
  30. package/16/esm2022/presets/classic/components/node/node.component.mjs +17 -5
  31. package/16/fesm2022/rete-angular-plugin-ng16.mjs +18 -5
  32. package/16/fesm2022/rete-angular-plugin-ng16.mjs.map +1 -1
  33. package/16/presets/classic/components/node/node.component.d.ts +7 -1
  34. package/17/esm2022/presets/classic/components/control/control.component.mjs +2 -2
  35. package/17/esm2022/presets/classic/components/node/node.component.mjs +18 -6
  36. package/17/fesm2022/rete-angular-plugin-ng17.mjs +19 -6
  37. package/17/fesm2022/rete-angular-plugin-ng17.mjs.map +1 -1
  38. package/17/presets/classic/components/node/node.component.d.ts +7 -1
  39. package/CHANGELOG.md +14 -0
  40. package/bundles/rete-angular-plugin.umd.js +18 -2
  41. package/bundles/rete-angular-plugin.umd.js.map +1 -1
  42. package/esm2015/presets/classic/components/control/control.component.js +1 -1
  43. package/esm2015/presets/classic/components/node/node.component.js +10 -2
  44. package/fesm2015/rete-angular-plugin.js +10 -2
  45. package/fesm2015/rete-angular-plugin.js.map +1 -1
  46. package/package.json +1 -1
  47. package/presets/classic/components/node/node.component.d.ts +7 -1
  48. package/rete-angular-plugin.metadata.json +1 -1
@@ -509,6 +509,20 @@
509
509
  this.seed = 0;
510
510
  this.cdr.detach();
511
511
  }
512
+ Object.defineProperty(NodeComponent.prototype, "width", {
513
+ get: function () {
514
+ return this.data.width;
515
+ },
516
+ enumerable: false,
517
+ configurable: true
518
+ });
519
+ Object.defineProperty(NodeComponent.prototype, "height", {
520
+ get: function () {
521
+ return this.data.height;
522
+ },
523
+ enumerable: false,
524
+ configurable: true
525
+ });
512
526
  Object.defineProperty(NodeComponent.prototype, "selected", {
513
527
  get: function () {
514
528
  return this.data.selected;
@@ -531,8 +545,9 @@
531
545
  return NodeComponent;
532
546
  }());
533
547
  NodeComponent.ɵfac = function NodeComponent_Factory(t) { return new (t || NodeComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef)); };
534
- NodeComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: NodeComponent, selectors: [["ng-component"]], hostAttrs: ["data-testid", "node"], hostVars: 2, hostBindings: function NodeComponent_HostBindings(rf, ctx) {
548
+ NodeComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: NodeComponent, selectors: [["ng-component"]], hostAttrs: ["data-testid", "node"], hostVars: 6, hostBindings: function NodeComponent_HostBindings(rf, ctx) {
535
549
  if (rf & 2) {
550
+ i0__namespace.ɵɵstyleProp("width", ctx.width, "px")("height", ctx.height, "px");
536
551
  i0__namespace.ɵɵclassProp("selected", ctx.selected);
537
552
  }
538
553
  }, inputs: { data: "data", emit: "emit", rendered: "rendered" }, features: [i0__namespace.ɵɵNgOnChangesFeature], decls: 8, vars: 13, consts: [["data-testid", "title", 1, "title"], ["class", "output", 4, "ngFor", "ngForOf"], ["class", "control", "refComponent", "", 3, "data", "emit", 4, "ngFor", "ngForOf"], ["class", "input", 4, "ngFor", "ngForOf"], [1, "output"], ["data-testid", "output-title", 1, "output-title"], ["refComponent", "", "data-testid", "output-socket", 1, "output-socket", 3, "data", "emit"], ["refComponent", "", 1, "control", 3, "data", "emit"], [1, "input"], ["refComponent", "", "data-testid", "input-socket", 1, "input-socket", 3, "data", "emit"], ["class", "input-title", "data-testid", "input-title", 4, "ngIf"], ["refComponent", "", "data-testid", "input-control", 1, "input-control", 3, "data", "emit"], ["data-testid", "input-title", 1, "input-title"]], template: function NodeComponent_Template(rf, ctx) {
@@ -557,7 +572,7 @@
557
572
  i0__namespace.ɵɵadvance(2);
558
573
  i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpipeBind2(7, 10, ctx.data.inputs, ctx.sortByIndex));
559
574
  }
560
- }, 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;min-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}"] });
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}"] });
561
576
  (function () {
562
577
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(NodeComponent, [{
563
578
  type: i0.Component,
@@ -574,6 +589,12 @@
574
589
  type: i0.Input
575
590
  }], rendered: [{
576
591
  type: i0.Input
592
+ }], width: [{
593
+ type: i0.HostBinding,
594
+ args: ['style.width.px']
595
+ }], height: [{
596
+ type: i0.HostBinding,
597
+ args: ['style.height.px']
577
598
  }], selected: [{
578
599
  type: i0.HostBinding,
579
600
  args: ['class.selected']
@@ -664,7 +685,7 @@
664
685
  if (rf & 2) {
665
686
  i0__namespace.ɵɵproperty("value", ctx.data.value)("readonly", ctx.data.readonly)("type", ctx.data.type);
666
687
  }
667
- }, styles: ["input[_ngcontent-%COMP%]{width:130px;border-radius:30px;background-color:#fff;padding:2px 6px;border:1px solid #999;font-size:110%}"] });
688
+ }, styles: ["input[_ngcontent-%COMP%]{width:100%;border-radius:30px;background-color:#fff;padding:2px 6px;border:1px solid #999;font-size:110%;box-sizing:border-box}"] });
668
689
  (function () {
669
690
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ControlComponent, [{
670
691
  type: i0.Component,