@openziti/ziti-console-lib 1.1.2 → 1.1.3
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.
|
@@ -320,6 +320,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImpo
|
|
|
320
320
|
}] } });
|
|
321
321
|
|
|
322
322
|
class NumberInputComponent {
|
|
323
|
+
set fieldName(name) {
|
|
324
|
+
this._fieldName = name;
|
|
325
|
+
this._idName = name.replace(/\s/g, '').toLowerCase();
|
|
326
|
+
}
|
|
323
327
|
constructor() {
|
|
324
328
|
this._fieldName = 'Field Label';
|
|
325
329
|
this._idName = 'fieldname';
|
|
@@ -331,19 +335,17 @@ class NumberInputComponent {
|
|
|
331
335
|
this.fieldValueChange = new EventEmitter();
|
|
332
336
|
this.valueChange = new Subject();
|
|
333
337
|
this._isValid = true;
|
|
334
|
-
|
|
335
|
-
set fieldName(name) {
|
|
336
|
-
this._fieldName = name;
|
|
337
|
-
this._idName = name.replace(/\s/g, '').toLowerCase();
|
|
338
|
+
this._emitEventsDebounced = debounce(this.emitEvents.bind(this), 500);
|
|
338
339
|
}
|
|
339
340
|
setIsValid(isValid) {
|
|
340
341
|
this._isValid = isValid;
|
|
341
342
|
}
|
|
342
343
|
onKeyup() {
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
344
|
+
this._emitEventsDebounced();
|
|
345
|
+
}
|
|
346
|
+
emitEvents() {
|
|
347
|
+
this.fieldValueChange.emit(this.fieldValue);
|
|
348
|
+
this.valueChange.next(this.fieldValue);
|
|
347
349
|
}
|
|
348
350
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: NumberInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
349
351
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.17", type: NumberInputComponent, isStandalone: false, selector: "lib-number-input", inputs: { fieldName: "fieldName", helpText: "helpText", fieldValue: "fieldValue", placeholder: "placeholder", parentage: "parentage", labelColor: "labelColor", fieldClass: "fieldClass", error: "error" }, outputs: { fieldValueChange: "fieldValueChange" }, ngImport: i0, template: `
|
|
@@ -362,7 +364,7 @@ class NumberInputComponent {
|
|
|
362
364
|
<input id="schema_{{parentage?parentage+'_':''}}{{_idName}}"
|
|
363
365
|
type="number" class="jsonEntry"
|
|
364
366
|
[ngClass]="{'error': error}"
|
|
365
|
-
[placeholder]="placeholder" [(ngModel)]="fieldValue" (paste)="onKeyup()" (keyup)="onKeyup()"/>
|
|
367
|
+
[placeholder]="placeholder" [(ngModel)]="fieldValue" (paste)="onKeyup()" (keyup)="onKeyup()" (change)="emitEvents()"/>
|
|
366
368
|
@if (error) {
|
|
367
369
|
<div class="error">{{error}}</div>
|
|
368
370
|
}
|
|
@@ -387,13 +389,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImpo
|
|
|
387
389
|
<input id="schema_{{parentage?parentage+'_':''}}{{_idName}}"
|
|
388
390
|
type="number" class="jsonEntry"
|
|
389
391
|
[ngClass]="{'error': error}"
|
|
390
|
-
[placeholder]="placeholder" [(ngModel)]="fieldValue" (paste)="onKeyup()" (keyup)="onKeyup()"/>
|
|
392
|
+
[placeholder]="placeholder" [(ngModel)]="fieldValue" (paste)="onKeyup()" (keyup)="onKeyup()" (change)="emitEvents()"/>
|
|
391
393
|
@if (error) {
|
|
392
394
|
<div class="error">{{error}}</div>
|
|
393
395
|
}
|
|
394
396
|
</div>
|
|
395
397
|
`, standalone: false, styles: [".number-input-container{margin:var(--marginSmall) 0}.number-input-container label{margin-bottom:0rem;margin-top:0rem}.number-input-container input.error{border-color:red}.number-input-container div.error{color:red}.label-container{display:flex;gap:.3125rem;margin-bottom:var(--marginSmall);margin-top:var(--marginMedium)}\n"] }]
|
|
396
|
-
}], propDecorators: { fieldName: [{
|
|
398
|
+
}], ctorParameters: () => [], propDecorators: { fieldName: [{
|
|
397
399
|
type: Input
|
|
398
400
|
}], helpText: [{
|
|
399
401
|
type: Input
|
|
@@ -882,7 +884,7 @@ class CheckboxListInputComponent {
|
|
|
882
884
|
<input type="checkbox"
|
|
883
885
|
class="jsonEntry checkbox"
|
|
884
886
|
[ngClass]="{'error': error}"
|
|
885
|
-
[
|
|
887
|
+
[(ngModel)]="item.checked" (ngModelChange)="updateFieldVal()"/>
|
|
886
888
|
<span class="boxlabel">{{item.name}}</span>
|
|
887
889
|
</div>
|
|
888
890
|
}
|
|
@@ -890,7 +892,7 @@ class CheckboxListInputComponent {
|
|
|
890
892
|
<div class="error">{{error}}</div>
|
|
891
893
|
}
|
|
892
894
|
</div>
|
|
893
|
-
`, isInline: true, styles: [".boxlabel{text-transform:uppercase;position:absolute;padding-top:.3rem;padding-left:.25rem}input{width:1rem;height:1.5rem;border-radius:.25rem}input:checked{background-color:var(--green)!important}.jsonEntry.checkbox{width:1.5625rem;height:1.5625rem;border-radius:.9375rem;cursor:pointer;transition:background-color .5s;top:.8125rem;left:.625rem;background-color:var(--navigation);transition:var(--transition);border:.125rem var(--offWhite) solid}.jsonEntry.checkbox:checked{background-color:var(--green);background-image:url(/assets/images/check.png);background-size:45%;background-position:center center;background-repeat:no-repeat;border:none}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] }); }
|
|
895
|
+
`, isInline: true, styles: [".boxlabel{text-transform:uppercase;position:absolute;padding-top:.3rem;padding-left:.25rem}input{width:1rem;height:1.5rem;border-radius:.25rem}input:checked{background-color:var(--green)!important}.jsonEntry.checkbox{width:1.5625rem;height:1.5625rem;border-radius:.9375rem;cursor:pointer;transition:background-color .5s;top:.8125rem;left:.625rem;background-color:var(--navigation);transition:var(--transition);border:.125rem var(--offWhite) solid}.jsonEntry.checkbox:checked{background-color:var(--green);background-image:url(/assets/images/check.png);background-size:45%;background-position:center center;background-repeat:no-repeat;border:none}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i2.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] }); }
|
|
894
896
|
}
|
|
895
897
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: CheckboxListInputComponent, decorators: [{
|
|
896
898
|
type: Component,
|
|
@@ -902,7 +904,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImpo
|
|
|
902
904
|
<input type="checkbox"
|
|
903
905
|
class="jsonEntry checkbox"
|
|
904
906
|
[ngClass]="{'error': error}"
|
|
905
|
-
[
|
|
907
|
+
[(ngModel)]="item.checked" (ngModelChange)="updateFieldVal()"/>
|
|
906
908
|
<span class="boxlabel">{{item.name}}</span>
|
|
907
909
|
</div>
|
|
908
910
|
}
|
|
@@ -18376,6 +18378,9 @@ class ConfigEditorComponent {
|
|
|
18376
18378
|
if (item.addedItems) {
|
|
18377
18379
|
data[item.key] = item.addedItems;
|
|
18378
18380
|
}
|
|
18381
|
+
else if (item?.component?.instance?.fieldValue) {
|
|
18382
|
+
data[item.key] = item.component.instance.fieldValue;
|
|
18383
|
+
}
|
|
18379
18384
|
else {
|
|
18380
18385
|
data[item.key] = [];
|
|
18381
18386
|
}
|
|
@@ -18384,7 +18389,7 @@ class ConfigEditorComponent {
|
|
|
18384
18389
|
const val = this.addItemsToConfig(item.items, {}, item.type);
|
|
18385
18390
|
let hasDefinition = false;
|
|
18386
18391
|
keys(val).forEach((key) => {
|
|
18387
|
-
if (isBoolean(val[key]) || (!isEmpty(val[key]) && !isNil(val[key]))) {
|
|
18392
|
+
if (isBoolean(val[key]) || isNumber(val[key]) || (!isEmpty(val[key]) && !isNil(val[key]))) {
|
|
18388
18393
|
hasDefinition = true;
|
|
18389
18394
|
}
|
|
18390
18395
|
});
|
|
@@ -18517,11 +18522,11 @@ class ConfigEditorComponent {
|
|
|
18517
18522
|
return data;
|
|
18518
18523
|
}
|
|
18519
18524
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ConfigEditorComponent, deps: [{ token: SchemaService }, { token: GrowlerService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
18520
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.17", type: ConfigEditorComponent, isStandalone: false, selector: "lib-config-editor", inputs: { configErrors: "configErrors", configData: "configData", showJsonView: "showJsonView", schema: "schema" }, outputs: { configErrorsChange: "configErrorsChange", configDataChange: "configDataChange" }, viewQueries: [{ propertyName: "dynamicForm", first: true, predicate: ["dynamicform"], descendants: true, read: ViewContainerRef }, { propertyName: "editor", first: true, predicate: JsonEditorComponent, descendants: true }], ngImport: i0, template: "<div class=\"form-field-extended-fields\" [hidden]=\"showJsonView\" (mouseup)=\"formDataChangedDebounced($event)\" (keyup)=\"formDataChangedDebounced($event)\" (clickOutside)=\"formDataChangedDebounced($event)\">\n <ng-container #dynamicform></ng-container>\n</div>\n@if (showJsonView && !hideConfigJSON) {\n <lib-json-view (dataChange)=\"jsonDataChangedDebounced($event)\" [(data)]=\"configData\"></lib-json-view>\n}\n@if (showJsonView && hideConfigJSON) {\n <lib-json-view [(data)]=\"configData\"></lib-json-view>\n}", styles: [""], dependencies: [{ kind: "directive", type: i1$4.ClickOutsideDirective, selector: "[clickOutside]", inputs: ["clickOutsideEnabled", "attachOutsideOnClick", "delayClickOutsideInit", "emitOnBlur", "exclude", "excludeBeforeClick", "clickOutsideEvents"], outputs: ["clickOutside"] }, { kind: "component", type: JsonViewComponent, selector: "lib-json-view", inputs: ["data", "schema", "readOnly", "jsonInvalid", "showCopy", "showLineNumbers"], outputs: ["dataChange", "jsonChange", "jsonInvalidChange"] }] }); }
|
|
18525
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.17", type: ConfigEditorComponent, isStandalone: false, selector: "lib-config-editor", inputs: { configErrors: "configErrors", configData: "configData", showJsonView: "showJsonView", schema: "schema" }, outputs: { configErrorsChange: "configErrorsChange", configDataChange: "configDataChange" }, viewQueries: [{ propertyName: "dynamicForm", first: true, predicate: ["dynamicform"], descendants: true, read: ViewContainerRef }, { propertyName: "editor", first: true, predicate: JsonEditorComponent, descendants: true }], ngImport: i0, template: "<div class=\"form-field-extended-fields\" [hidden]=\"showJsonView\" (mouseup)=\"formDataChangedDebounced($event)\" (keyup)=\"formDataChangedDebounced($event)\" (clickOutside)=\"formDataChangedDebounced($event)\">\n <ng-container #dynamicform></ng-container>\n</div>\n@if (showJsonView && !hideConfigJSON) {\n <lib-json-view (dataChange)=\"jsonDataChangedDebounced($event)\" [(data)]=\"configData\"></lib-json-view>\n}\n@if (showJsonView && hideConfigJSON) {\n <lib-json-view [(data)]=\"configData\"></lib-json-view>\n}\n", styles: [""], dependencies: [{ kind: "directive", type: i1$4.ClickOutsideDirective, selector: "[clickOutside]", inputs: ["clickOutsideEnabled", "attachOutsideOnClick", "delayClickOutsideInit", "emitOnBlur", "exclude", "excludeBeforeClick", "clickOutsideEvents"], outputs: ["clickOutside"] }, { kind: "component", type: JsonViewComponent, selector: "lib-json-view", inputs: ["data", "schema", "readOnly", "jsonInvalid", "showCopy", "showLineNumbers"], outputs: ["dataChange", "jsonChange", "jsonInvalidChange"] }] }); }
|
|
18521
18526
|
}
|
|
18522
18527
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImport: i0, type: ConfigEditorComponent, decorators: [{
|
|
18523
18528
|
type: Component,
|
|
18524
|
-
args: [{ selector: 'lib-config-editor', standalone: false, template: "<div class=\"form-field-extended-fields\" [hidden]=\"showJsonView\" (mouseup)=\"formDataChangedDebounced($event)\" (keyup)=\"formDataChangedDebounced($event)\" (clickOutside)=\"formDataChangedDebounced($event)\">\n <ng-container #dynamicform></ng-container>\n</div>\n@if (showJsonView && !hideConfigJSON) {\n <lib-json-view (dataChange)=\"jsonDataChangedDebounced($event)\" [(data)]=\"configData\"></lib-json-view>\n}\n@if (showJsonView && hideConfigJSON) {\n <lib-json-view [(data)]=\"configData\"></lib-json-view>\n}" }]
|
|
18529
|
+
args: [{ selector: 'lib-config-editor', standalone: false, template: "<div class=\"form-field-extended-fields\" [hidden]=\"showJsonView\" (mouseup)=\"formDataChangedDebounced($event)\" (keyup)=\"formDataChangedDebounced($event)\" (clickOutside)=\"formDataChangedDebounced($event)\">\n <ng-container #dynamicform></ng-container>\n</div>\n@if (showJsonView && !hideConfigJSON) {\n <lib-json-view (dataChange)=\"jsonDataChangedDebounced($event)\" [(data)]=\"configData\"></lib-json-view>\n}\n@if (showJsonView && hideConfigJSON) {\n <lib-json-view [(data)]=\"configData\"></lib-json-view>\n}\n" }]
|
|
18525
18530
|
}], ctorParameters: () => [{ type: SchemaService }, { type: GrowlerService }], propDecorators: { configErrors: [{
|
|
18526
18531
|
type: Input
|
|
18527
18532
|
}], configErrorsChange: [{
|
|
@@ -30862,7 +30867,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.17", ngImpo
|
|
|
30862
30867
|
}] });
|
|
30863
30868
|
|
|
30864
30869
|
const ZAC_VERSION = {
|
|
30865
|
-
"version": "4.1.
|
|
30870
|
+
"version": "4.1.3"
|
|
30866
30871
|
};
|
|
30867
30872
|
|
|
30868
30873
|
/*
|