@veloceapps/sdk 4.0.10 → 4.0.11

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.
@@ -1321,6 +1321,9 @@
1321
1321
  };
1322
1322
  ConfigurationPlugin.prototype.registerPort = function (name) {
1323
1323
  var _this = this;
1324
+ var model$ = this.host.model$;
1325
+ var portItems$ = model$.pipe(rxjs.map(function (model) { return model.lineItems.filter(function (li) { return li.port === _this.host.boundName; }); }));
1326
+ var portDomain$ = model$.pipe(rxjs.map(function (model) { return model.portDomains[_this.host.boundName]; }));
1324
1327
  var add = function (type, attributes) {
1325
1328
  if (attributes === void 0) { attributes = []; }
1326
1329
  if (!_this.modelSnapshot) {
@@ -1333,15 +1336,16 @@
1333
1336
  var generated = i2.generateLineItem(portDomain.name, type, _this.modelSnapshot.id, attributes);
1334
1337
  _this.configurationService.patch(new i2.LineItemWorker(_this.modelSnapshot).insert(_this.modelSnapshot.id, generated).li);
1335
1338
  };
1339
+ this.portHost.portItems$ = portItems$;
1340
+ this.portHost.portDomain$ = portDomain$;
1336
1341
  this.portHost.addPortItem = add;
1337
1342
  };
1338
1343
  ConfigurationPlugin.prototype.registerAttribute = function (name) {
1339
1344
  var _this = this;
1340
- var _a;
1341
1345
  if (!this.host.model$) {
1342
1346
  return;
1343
1347
  }
1344
- var value$ = (_a = this.host.model$) === null || _a === void 0 ? void 0 : _a.pipe(rxjs.map(function (model) { var _a; return i2.getAttributeValue((_a = model === null || model === void 0 ? void 0 : model.attributes) !== null && _a !== void 0 ? _a : [], name); }));
1348
+ var value$ = this.host.model$.pipe(rxjs.map(function (model) { var _a; return i2.getAttributeValue((_a = model === null || model === void 0 ? void 0 : model.attributes) !== null && _a !== void 0 ? _a : [], name); }));
1345
1349
  var patch = function (value) {
1346
1350
  if (!_this.modelSnapshot) {
1347
1351
  return;