@openziti/ziti-console-lib 0.6.4 → 0.6.5

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.
@@ -423,7 +423,7 @@ class SettingsServiceClass {
423
423
  growler$3.error("Name and URL required");
424
424
  }
425
425
  else {
426
- this.controllerSave(name, url);
426
+ return this.controllerSave(name, url);
427
427
  }
428
428
  }
429
429
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SettingsServiceClass, deps: [{ token: i1$1.HttpBackend }, { token: GrowlerService }], target: i0.ɵɵFactoryTarget.Injectable }); }
@@ -1221,31 +1221,51 @@ class StringInputComponent {
1221
1221
  }, 500)();
1222
1222
  }
1223
1223
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: StringInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1224
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: StringInputComponent, selector: "lib-string-input", inputs: { fieldName: "fieldName", fieldValue: "fieldValue", placeholder: "placeholder", parentage: "parentage", labelColor: "labelColor", fieldClass: "fieldClass", error: "error" }, outputs: { fieldValueChange: "fieldValueChange" }, ngImport: i0, template: `
1224
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: StringInputComponent, selector: "lib-string-input", inputs: { fieldName: "fieldName", helpText: "helpText", fieldValue: "fieldValue", placeholder: "placeholder", parentage: "parentage", labelColor: "labelColor", fieldClass: "fieldClass", error: "error" }, outputs: { fieldValueChange: "fieldValueChange" }, ngImport: i0, template: `
1225
1225
  <div [ngClass]="fieldClass + (!_isValid ? 'invalid' : '')" class="string-input-container">
1226
- <label for="schema_{{parentage?parentage+'_':''}}{{_idName}}" [ngStyle]="{'color': labelColor}">{{_fieldName}}</label>
1226
+ <div class="label-container">
1227
+ <label for="schema_{{parentage?parentage+'_':''}}{{_idName}}" [ngStyle]="{'color': labelColor}">{{_fieldName}}</label>
1228
+ <div
1229
+ *ngIf="helpText"
1230
+ class="form-field-info infoicon"
1231
+ matTooltip="{{helpText}}"
1232
+ matTooltipPosition="above"
1233
+ matTooltipClass="wide-tooltip"
1234
+ ></div>
1235
+ </div>
1227
1236
  <input id="schema_{{parentage?parentage+'_':''}}{{_idName}}"
1228
1237
  type="text" class="jsonEntry"
1229
1238
  [ngClass]="{'error': error}"
1230
1239
  [placeholder]="placeholder" [(ngModel)]="fieldValue" (paste)="onKeyup()" (keyup)="onKeyup()"/>
1231
1240
  <div *ngIf="error" class="error">{{error}}</div>
1232
1241
  </div>
1233
- `, isInline: true, styles: [".string-input-container{margin:var(--marginSmall) 0}.string-input-container label{margin-bottom:0;margin-top:0}.string-input-container input.error{border-color:red}.string-input-container div.error{color:red}\n"], dependencies: [{ kind: "directive", type: i1$4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$4.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i5.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] }); }
1242
+ `, isInline: true, styles: [".string-input-container{margin:var(--marginSmall) 0}.string-input-container label{margin-bottom:0;margin-top:0;width:-moz-fit-content;width:fit-content}.string-input-container input.error{border-color:red}.string-input-container div.error{color:red}.label-container{display:flex;gap:5px;margin-bottom:5px;margin-top:10px}\n"], dependencies: [{ kind: "directive", type: i1$4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$4.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i5.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }] }); }
1234
1243
  }
1235
1244
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: StringInputComponent, decorators: [{
1236
1245
  type: Component,
1237
1246
  args: [{ selector: 'lib-string-input', template: `
1238
1247
  <div [ngClass]="fieldClass + (!_isValid ? 'invalid' : '')" class="string-input-container">
1239
- <label for="schema_{{parentage?parentage+'_':''}}{{_idName}}" [ngStyle]="{'color': labelColor}">{{_fieldName}}</label>
1248
+ <div class="label-container">
1249
+ <label for="schema_{{parentage?parentage+'_':''}}{{_idName}}" [ngStyle]="{'color': labelColor}">{{_fieldName}}</label>
1250
+ <div
1251
+ *ngIf="helpText"
1252
+ class="form-field-info infoicon"
1253
+ matTooltip="{{helpText}}"
1254
+ matTooltipPosition="above"
1255
+ matTooltipClass="wide-tooltip"
1256
+ ></div>
1257
+ </div>
1240
1258
  <input id="schema_{{parentage?parentage+'_':''}}{{_idName}}"
1241
1259
  type="text" class="jsonEntry"
1242
1260
  [ngClass]="{'error': error}"
1243
1261
  [placeholder]="placeholder" [(ngModel)]="fieldValue" (paste)="onKeyup()" (keyup)="onKeyup()"/>
1244
1262
  <div *ngIf="error" class="error">{{error}}</div>
1245
1263
  </div>
1246
- `, styles: [".string-input-container{margin:var(--marginSmall) 0}.string-input-container label{margin-bottom:0;margin-top:0}.string-input-container input.error{border-color:red}.string-input-container div.error{color:red}\n"] }]
1264
+ `, styles: [".string-input-container{margin:var(--marginSmall) 0}.string-input-container label{margin-bottom:0;margin-top:0;width:-moz-fit-content;width:fit-content}.string-input-container input.error{border-color:red}.string-input-container div.error{color:red}.label-container{display:flex;gap:5px;margin-bottom:5px;margin-top:10px}\n"] }]
1247
1265
  }], propDecorators: { fieldName: [{
1248
1266
  type: Input
1267
+ }], helpText: [{
1268
+ type: Input
1249
1269
  }], fieldValue: [{
1250
1270
  type: Input
1251
1271
  }], placeholder: [{
@@ -1520,7 +1540,7 @@ class SelectorInputComponent {
1520
1540
  this._idName = 'fieldname';
1521
1541
  this._valueList = [];
1522
1542
  this.listIsObject = false;
1523
- this.fieldValue = '';
1543
+ this.hideSelect = false;
1524
1544
  this.placeholder = '';
1525
1545
  this.parentage = [];
1526
1546
  this.labelColor = '#000000';
@@ -1534,6 +1554,12 @@ class SelectorInputComponent {
1534
1554
  this._fieldName = name;
1535
1555
  this._idName = name.replace(/\s/g, '').toLowerCase();
1536
1556
  }
1557
+ set fieldValue(val) {
1558
+ this._fieldValue = val;
1559
+ }
1560
+ get fieldValue() {
1561
+ return this._fieldValue;
1562
+ }
1537
1563
  set valueList(list) {
1538
1564
  this.listIsObject = list?.length > 0 && typeof list[0] !== 'string';
1539
1565
  this._valueList = list;
@@ -1544,10 +1570,7 @@ class SelectorInputComponent {
1544
1570
  }
1545
1571
  });
1546
1572
  valToSet = valToSet || this.fieldValue;
1547
- this.fieldValue = undefined;
1548
- defer(() => {
1549
- this.fieldValue = valToSet;
1550
- });
1573
+ this.reInitSelect();
1551
1574
  }
1552
1575
  ;
1553
1576
  setIsValid(isValid) {
@@ -1555,54 +1578,105 @@ class SelectorInputComponent {
1555
1578
  }
1556
1579
  selected() {
1557
1580
  debounce(() => {
1581
+ if (this.fieldValue === 'undefined') {
1582
+ this.fieldValue = undefined;
1583
+ }
1558
1584
  this.fieldValueChange.emit(this.fieldValue);
1559
1585
  this.valueChange.next(this.fieldValue);
1560
1586
  }, 500)();
1561
1587
  }
1588
+ reInitSelect() {
1589
+ this.hideSelect = true;
1590
+ defer(() => {
1591
+ this.hideSelect = false;
1592
+ });
1593
+ }
1562
1594
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SelectorInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1563
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SelectorInputComponent, selector: "lib-selector-input", inputs: { fieldName: "fieldName", fieldValue: "fieldValue", placeholder: "placeholder", parentage: "parentage", valueList: "valueList", labelColor: "labelColor", fieldClass: "fieldClass", error: "error" }, outputs: { fieldValueChange: "fieldValueChange" }, ngImport: i0, template: `
1595
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SelectorInputComponent, selector: "lib-selector-input", inputs: { fieldName: "fieldName", fieldValue: "fieldValue", helpText: "helpText", placeholder: "placeholder", parentage: "parentage", valueList: "valueList", labelColor: "labelColor", fieldClass: "fieldClass", error: "error" }, outputs: { fieldValueChange: "fieldValueChange" }, ngImport: i0, template: `
1564
1596
  <div [ngClass]="fieldClass + (!_isValid ? 'invalid' : '')" class="selector-input-container">
1565
- <label [ngStyle]="{'color': labelColor}">{{_fieldName}}</label>
1566
- <select id="schema_{{parentage?parentage+'_':''}}{{_idName}}"
1567
- class="jsonEntry"
1568
- [ngClass]="{'error': error}"
1569
- [(ngModel)]="fieldValue" (change)="selected()">
1570
- <option value="" *ngIf="placeholder">{{placeholder}}</option>
1571
- <ng-container *ngIf="!listIsObject">
1572
- <option *ngFor="let name of _valueList" [value]="name">{{name}}</option>
1573
- </ng-container>
1574
- <ng-container *ngIf="listIsObject">
1575
- <option *ngFor="let data of _valueList" [value]="data.value">{{data.name}}</option>
1576
- </ng-container>
1597
+ <div class="label-container">
1598
+ <label [ngStyle]="{'color': labelColor}">{{_fieldName}}</label>
1599
+ <div
1600
+ *ngIf="helpText"
1601
+ class="form-field-info infoicon"
1602
+ matTooltip="{{helpText}}"
1603
+ matTooltipPosition="above"
1604
+ matTooltipClass="wide-tooltip"
1605
+ ></div>
1606
+ </div>
1607
+ <select
1608
+ *ngIf="!hideSelect"
1609
+ id="schema_{{parentage?parentage+'_':''}}{{_idName}}"
1610
+ class="jsonEntry"
1611
+ [ngClass]="{'error': error}"
1612
+ [(ngModel)]="fieldValue"
1613
+ (change)="selected()"
1614
+ >
1615
+ <option [value]="undefined" *ngIf="placeholder">{{placeholder}}</option>
1616
+ <ng-container *ngIf="!listIsObject">
1617
+ <option *ngFor="let name of _valueList" [value]="name">{{name}}</option>
1618
+ </ng-container>
1619
+ <ng-container *ngIf="listIsObject">
1620
+ <option *ngFor="let data of _valueList" [value]="data.value">{{data.name}}</option>
1621
+ </ng-container>
1622
+ </select>
1623
+ <select
1624
+ *ngIf="hideSelect"
1625
+ class="placeholder-select"
1626
+ [ngClass]="{'error': error}"
1627
+ [(ngModel)]="fieldValue"
1628
+ >
1577
1629
  </select>
1578
1630
  <div *ngIf="error" class="error">{{error}}</div>
1579
1631
  </div>
1580
- `, isInline: true, styles: [".selector-input-container{margin:var(--marginSmall) 0}.selector-input-container label{margin-bottom:0;margin-top:0}.selector-input-container input.error{border-color:red}.selector-input-container div.error{color:red}\n"], dependencies: [{ kind: "directive", type: i1$4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$4.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i5.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i5.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i5.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] }); }
1632
+ `, isInline: true, styles: [".selector-input-container{margin:var(--marginSmall) 0}.selector-input-container label{margin-bottom:0;margin-top:0;width:-moz-fit-content;width:fit-content}.selector-input-container input.error{border-color:red}.selector-input-container div.error{color:red}.label-container{display:flex;gap:5px;margin-bottom:5px;margin-top:10px}\n"], dependencies: [{ kind: "directive", type: i1$4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$4.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i5.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i5.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i5.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i3.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }] }); }
1581
1633
  }
1582
1634
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SelectorInputComponent, decorators: [{
1583
1635
  type: Component,
1584
1636
  args: [{ selector: 'lib-selector-input', template: `
1585
1637
  <div [ngClass]="fieldClass + (!_isValid ? 'invalid' : '')" class="selector-input-container">
1586
- <label [ngStyle]="{'color': labelColor}">{{_fieldName}}</label>
1587
- <select id="schema_{{parentage?parentage+'_':''}}{{_idName}}"
1588
- class="jsonEntry"
1589
- [ngClass]="{'error': error}"
1590
- [(ngModel)]="fieldValue" (change)="selected()">
1591
- <option value="" *ngIf="placeholder">{{placeholder}}</option>
1592
- <ng-container *ngIf="!listIsObject">
1593
- <option *ngFor="let name of _valueList" [value]="name">{{name}}</option>
1594
- </ng-container>
1595
- <ng-container *ngIf="listIsObject">
1596
- <option *ngFor="let data of _valueList" [value]="data.value">{{data.name}}</option>
1597
- </ng-container>
1638
+ <div class="label-container">
1639
+ <label [ngStyle]="{'color': labelColor}">{{_fieldName}}</label>
1640
+ <div
1641
+ *ngIf="helpText"
1642
+ class="form-field-info infoicon"
1643
+ matTooltip="{{helpText}}"
1644
+ matTooltipPosition="above"
1645
+ matTooltipClass="wide-tooltip"
1646
+ ></div>
1647
+ </div>
1648
+ <select
1649
+ *ngIf="!hideSelect"
1650
+ id="schema_{{parentage?parentage+'_':''}}{{_idName}}"
1651
+ class="jsonEntry"
1652
+ [ngClass]="{'error': error}"
1653
+ [(ngModel)]="fieldValue"
1654
+ (change)="selected()"
1655
+ >
1656
+ <option [value]="undefined" *ngIf="placeholder">{{placeholder}}</option>
1657
+ <ng-container *ngIf="!listIsObject">
1658
+ <option *ngFor="let name of _valueList" [value]="name">{{name}}</option>
1659
+ </ng-container>
1660
+ <ng-container *ngIf="listIsObject">
1661
+ <option *ngFor="let data of _valueList" [value]="data.value">{{data.name}}</option>
1662
+ </ng-container>
1663
+ </select>
1664
+ <select
1665
+ *ngIf="hideSelect"
1666
+ class="placeholder-select"
1667
+ [ngClass]="{'error': error}"
1668
+ [(ngModel)]="fieldValue"
1669
+ >
1598
1670
  </select>
1599
1671
  <div *ngIf="error" class="error">{{error}}</div>
1600
1672
  </div>
1601
- `, styles: [".selector-input-container{margin:var(--marginSmall) 0}.selector-input-container label{margin-bottom:0;margin-top:0}.selector-input-container input.error{border-color:red}.selector-input-container div.error{color:red}\n"] }]
1673
+ `, styles: [".selector-input-container{margin:var(--marginSmall) 0}.selector-input-container label{margin-bottom:0;margin-top:0;width:-moz-fit-content;width:fit-content}.selector-input-container input.error{border-color:red}.selector-input-container div.error{color:red}.label-container{display:flex;gap:5px;margin-bottom:5px;margin-top:10px}\n"] }]
1602
1674
  }], propDecorators: { fieldName: [{
1603
1675
  type: Input
1604
1676
  }], fieldValue: [{
1605
1677
  type: Input
1678
+ }], helpText: [{
1679
+ type: Input
1606
1680
  }], placeholder: [{
1607
1681
  type: Input
1608
1682
  }], parentage: [{
@@ -2002,7 +2076,7 @@ class ProtocolAddressPortInputComponent {
2002
2076
  this.hostname = data.hostname;
2003
2077
  }
2004
2078
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ProtocolAddressPortInputComponent, deps: [{ token: ValidationService }], target: i0.ɵɵFactoryTarget.Component }); }
2005
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ProtocolAddressPortInputComponent, selector: "lib-protocol-address-port-input", inputs: { protocolList: "protocolList", showProtocol: "showProtocol", showAddress: "showAddress", showHostName: "showHostName", showPort: "showPort", disableProtocol: "disableProtocol", disableAddress: "disableAddress", disableHostName: "disableHostName", disablePort: "disablePort", protocol: "protocol", address: "address", hostname: "hostname", port: "port", parentage: "parentage", labelColor: "labelColor", labelPrefix: "labelPrefix", fieldClass: "fieldClass", error: "error" }, outputs: { fieldValueChange: "fieldValueChange", portChange: "portChange", addressChange: "addressChange", hostnameChange: "hostnameChange", protocolChange: "protocolChange" }, ngImport: i0, template: "<div class=\"grid {{className}}\">\n <div *ngIf=\"showProtocol\" [ngClass]=\"{disabled: disableProtocol, invalid: errors['protocol']}\">\n <lib-selector-input [fieldName]=\"protocolFieldName\"\n [(fieldValue)]=\"protocol\"\n [labelColor]=\"labelColor\"\n [placeholder]=\"undefined\"\n [valueList]=\"['tcp', 'udp']\"\n (fieldValueChange)=\"update()\"\n ></lib-selector-input>\n </div>\n <div *ngIf=\"showAddress\" [ngClass]=\"{disabled: disableAddress, invalid: errors['address']}\">\n <lib-string-input [fieldName]=\"addressFieldName\"\n [(fieldValue)]=\"address\"\n [labelColor]=\"labelColor\"\n [placeholder]=\"'host.name'\"\n (fieldValueChange)=\"update()\"\n ></lib-string-input>\n </div>\n <div *ngIf=\"showHostName\" [ngClass]=\"{disabled: disableHostName, invalid: errors['hostname']}\">\n <lib-string-input [fieldName]=\"hostnameFieldName\"\n [(fieldValue)]=\"hostname\"\n [labelColor]=\"labelColor\"\n [placeholder]=\"'host.name'\"\n (fieldValueChange)=\"update()\"\n ></lib-string-input>\n </div>\n <div *ngIf=\"showPort\" [ngClass]=\"{disabled: disablePort, invalid: errors['port']}\">\n <lib-number-input [fieldName]=\"portFieldName\"\n [(fieldValue)]=\"port\"\n [labelColor]=\"labelColor\"\n [placeholder]=\"'0'\"\n (fieldValueChange)=\"update()\"\n ></lib-number-input>\n </div>\n</div>\n", styles: [".grid{display:grid;grid-template-columns:auto;grid-gap:10px}.grid.addressFull{grid-template-columns:75px auto 75px}.grid.addressFull .disabled{opacity:.5;pointer-events:none}.grid.address-only{grid-template-columns:auto}.host-name-port{grid-template-columns:auto 75px}\n"], dependencies: [{ kind: "directive", type: i1$4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: StringInputComponent, selector: "lib-string-input", inputs: ["fieldName", "fieldValue", "placeholder", "parentage", "labelColor", "fieldClass", "error"], outputs: ["fieldValueChange"] }, { kind: "component", type: NumberInputComponent, selector: "lib-number-input", inputs: ["fieldName", "fieldValue", "placeholder", "parentage", "labelColor", "fieldClass", "error"], outputs: ["fieldValueChange"] }, { kind: "component", type: SelectorInputComponent, selector: "lib-selector-input", inputs: ["fieldName", "fieldValue", "placeholder", "parentage", "valueList", "labelColor", "fieldClass", "error"], outputs: ["fieldValueChange"] }] }); }
2079
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ProtocolAddressPortInputComponent, selector: "lib-protocol-address-port-input", inputs: { protocolList: "protocolList", showProtocol: "showProtocol", showAddress: "showAddress", showHostName: "showHostName", showPort: "showPort", disableProtocol: "disableProtocol", disableAddress: "disableAddress", disableHostName: "disableHostName", disablePort: "disablePort", protocol: "protocol", address: "address", hostname: "hostname", port: "port", parentage: "parentage", labelColor: "labelColor", labelPrefix: "labelPrefix", fieldClass: "fieldClass", error: "error" }, outputs: { fieldValueChange: "fieldValueChange", portChange: "portChange", addressChange: "addressChange", hostnameChange: "hostnameChange", protocolChange: "protocolChange" }, ngImport: i0, template: "<div class=\"grid {{className}}\">\n <div *ngIf=\"showProtocol\" [ngClass]=\"{disabled: disableProtocol, invalid: errors['protocol']}\">\n <lib-selector-input [fieldName]=\"protocolFieldName\"\n [(fieldValue)]=\"protocol\"\n [labelColor]=\"labelColor\"\n [placeholder]=\"undefined\"\n [valueList]=\"['tcp', 'udp']\"\n (fieldValueChange)=\"update()\"\n ></lib-selector-input>\n </div>\n <div *ngIf=\"showAddress\" [ngClass]=\"{disabled: disableAddress, invalid: errors['address']}\">\n <lib-string-input [fieldName]=\"addressFieldName\"\n [(fieldValue)]=\"address\"\n [labelColor]=\"labelColor\"\n [placeholder]=\"'host.name'\"\n (fieldValueChange)=\"update()\"\n ></lib-string-input>\n </div>\n <div *ngIf=\"showHostName\" [ngClass]=\"{disabled: disableHostName, invalid: errors['hostname']}\">\n <lib-string-input [fieldName]=\"hostnameFieldName\"\n [(fieldValue)]=\"hostname\"\n [labelColor]=\"labelColor\"\n [placeholder]=\"'host.name'\"\n (fieldValueChange)=\"update()\"\n ></lib-string-input>\n </div>\n <div *ngIf=\"showPort\" [ngClass]=\"{disabled: disablePort, invalid: errors['port']}\">\n <lib-number-input [fieldName]=\"portFieldName\"\n [(fieldValue)]=\"port\"\n [labelColor]=\"labelColor\"\n [placeholder]=\"'0'\"\n (fieldValueChange)=\"update()\"\n ></lib-number-input>\n </div>\n</div>\n", styles: [".grid{display:grid;grid-template-columns:auto;grid-gap:10px}.grid.addressFull{grid-template-columns:75px auto 75px}.grid.addressFull .disabled{opacity:.5;pointer-events:none}.grid.address-only{grid-template-columns:auto}.host-name-port{grid-template-columns:auto 75px}\n"], dependencies: [{ kind: "directive", type: i1$4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: StringInputComponent, selector: "lib-string-input", inputs: ["fieldName", "helpText", "fieldValue", "placeholder", "parentage", "labelColor", "fieldClass", "error"], outputs: ["fieldValueChange"] }, { kind: "component", type: NumberInputComponent, selector: "lib-number-input", inputs: ["fieldName", "fieldValue", "placeholder", "parentage", "labelColor", "fieldClass", "error"], outputs: ["fieldValueChange"] }, { kind: "component", type: SelectorInputComponent, selector: "lib-selector-input", inputs: ["fieldName", "fieldValue", "helpText", "placeholder", "parentage", "valueList", "labelColor", "fieldClass", "error"], outputs: ["fieldValueChange"] }] }); }
2006
2080
  }
2007
2081
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ProtocolAddressPortInputComponent, decorators: [{
2008
2082
  type: Component,
@@ -4091,9 +4165,9 @@ class SchemaService {
4091
4165
  const val = list?.length > 0 ? list[0] : '';
4092
4166
  let componentRef = view.createComponent(SelectorInputComponent);
4093
4167
  componentRef.setInput('fieldName', this.getLabel(key));
4168
+ componentRef.setInput('placeholder', `select ${key}`);
4094
4169
  if (parentage && !_.isEmpty(parentage))
4095
4170
  componentRef.setInput('parentage', parentage);
4096
- componentRef.setInput('fieldValue', val);
4097
4171
  componentRef.setInput('valueList', list);
4098
4172
  componentRef.setInput('labelColor', this.lColorArray[nestLevel]);
4099
4173
  return componentRef;