@openziti/ziti-console-lib 0.4.3 → 0.4.4
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.
- package/esm2022/lib/features/data-table/cells/table-cell-name/table-cell-name.component.mjs +4 -4
- package/esm2022/lib/features/projectable-forms/projectable-form.class.mjs +14 -16
- package/esm2022/lib/pages/configurations/configurations-page.service.mjs +2 -2
- package/esm2022/lib/pages/edge-router-policies/edge-router-policies-page.service.mjs +2 -2
- package/esm2022/lib/pages/edge-routers/edge-routers-page.service.mjs +2 -2
- package/esm2022/lib/pages/identities/identities-page.service.mjs +2 -2
- package/esm2022/lib/pages/service-edge-router-policies/service-edge-router-policies-page.service.mjs +2 -2
- package/esm2022/lib/pages/service-policies/service-policies-page.service.mjs +2 -2
- package/esm2022/lib/pages/services/services-page.service.mjs +3 -2
- package/esm2022/lib/shared/list-page-service.class.mjs +15 -14
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/openziti-ziti-console-lib.mjs +37 -39
- package/fesm2022/openziti-ziti-console-lib.mjs.map +1 -1
- package/lib/features/projectable-forms/projectable-form.class.d.ts +1 -1
- package/lib/features/projectable-forms/projectable-form.class.d.ts.map +1 -1
- package/lib/pages/services/services-page.service.d.ts +1 -0
- package/lib/pages/services/services-page.service.d.ts.map +1 -1
- package/lib/shared/list-page-service.class.d.ts +2 -2
- package/lib/shared/list-page-service.class.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -8,7 +8,7 @@ import * as i1$1 from '@angular/common/http';
|
|
|
8
8
|
import { HttpClient, HttpClientModule } from '@angular/common/http';
|
|
9
9
|
import * as i1 from 'ngx-logger';
|
|
10
10
|
import { NgxLoggerLevel } from 'ngx-logger';
|
|
11
|
-
import _, { isNumber, includes, isNil, defer, set, invoke, get, debounce, isEmpty, isNaN as isNaN$1, cloneDeep, unset, isBoolean, keys, forEach, isEqual,
|
|
11
|
+
import _, { isNumber, includes, isNil, defer, set, invoke, get, debounce, isEmpty, isNaN as isNaN$1, cloneDeep, unset, isBoolean, keys, forEach, isEqual, delay, isFunction, map as map$1, forOwn, isString, some, filter, sortedUniq, invert, isArray } from 'lodash';
|
|
12
12
|
import { __decorate, __param } from 'tslib';
|
|
13
13
|
import * as i1$4 from '@angular/common';
|
|
14
14
|
import { CommonModule } from '@angular/common';
|
|
@@ -2421,6 +2421,7 @@ let ListPageServiceClass = class ListPageServiceClass {
|
|
|
2421
2421
|
this.csvDownloadService = csvDownloadService;
|
|
2422
2422
|
this.extensionService = extensionService;
|
|
2423
2423
|
this.router = router;
|
|
2424
|
+
this.basePath = '';
|
|
2424
2425
|
this.headerComponentParams = {
|
|
2425
2426
|
filterType: 'TEXTINPUT',
|
|
2426
2427
|
enableSorting: true
|
|
@@ -2483,6 +2484,15 @@ let ListPageServiceClass = class ListPageServiceClass {
|
|
|
2483
2484
|
}
|
|
2484
2485
|
}
|
|
2485
2486
|
});
|
|
2487
|
+
router.events.subscribe((event) => {
|
|
2488
|
+
if (event => event instanceof NavigationEnd) {
|
|
2489
|
+
if (!event?.snapshot?.routeConfig?.path) {
|
|
2490
|
+
return;
|
|
2491
|
+
}
|
|
2492
|
+
const pathSegments = event.snapshot.routeConfig.path.split('/');
|
|
2493
|
+
this.basePath = pathSegments[0];
|
|
2494
|
+
}
|
|
2495
|
+
});
|
|
2486
2496
|
}
|
|
2487
2497
|
initMenuActions() {
|
|
2488
2498
|
if (this.extensionService.listActions) {
|
|
@@ -2544,22 +2554,12 @@ let ListPageServiceClass = class ListPageServiceClass {
|
|
|
2544
2554
|
}
|
|
2545
2555
|
return text?.length > 0;
|
|
2546
2556
|
}
|
|
2547
|
-
openEditForm(itemId = '',
|
|
2557
|
+
openEditForm(itemId = '', basePath) {
|
|
2548
2558
|
if (isEmpty(itemId)) {
|
|
2549
2559
|
itemId = 'create';
|
|
2550
2560
|
}
|
|
2551
|
-
|
|
2552
|
-
this.router?.navigateByUrl(`${
|
|
2553
|
-
}
|
|
2554
|
-
getBaseURLPath() {
|
|
2555
|
-
let path = '';
|
|
2556
|
-
window.location.pathname.split('/').forEach(segment => {
|
|
2557
|
-
if (isEmpty(segment)) {
|
|
2558
|
-
return;
|
|
2559
|
-
}
|
|
2560
|
-
path += `${segment}/`;
|
|
2561
|
-
});
|
|
2562
|
-
return path;
|
|
2561
|
+
basePath = basePath ? basePath : this.basePath;
|
|
2562
|
+
this.router?.navigateByUrl(`${basePath}${itemId}`);
|
|
2563
2563
|
}
|
|
2564
2564
|
};
|
|
2565
2565
|
ListPageServiceClass = __decorate([
|
|
@@ -3075,16 +3075,16 @@ class TableCellNameComponent {
|
|
|
3075
3075
|
return true;
|
|
3076
3076
|
}
|
|
3077
3077
|
linkClicked(event) {
|
|
3078
|
-
this.router.navigateByUrl(`${this.cellParams.pathRoot}
|
|
3078
|
+
this.router.navigateByUrl(`${this.cellParams.pathRoot}/${this.item.id}`);
|
|
3079
3079
|
event.stopPropagation();
|
|
3080
3080
|
event.preventDefault();
|
|
3081
3081
|
}
|
|
3082
3082
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TableCellNameComponent, deps: [{ token: i3$2.MatDialog }, { token: i3.Router }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3083
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TableCellNameComponent, selector: "lib-table-cell-name", ngImport: i0, template: "<span class=\"cell-name-container\">\n <a href=\"./{{cellParams.pathRoot}}{{item.id}}\" (click)=\"linkClicked($event)\">\n <div class=\"col cell-name-renderer\" data-id=\"{{item.id}}\">\n <div *ngIf=\"cellParams.showIdentityIcons\" class=\"cell-status-container\">\n <span class=\"circle {{item.hasApiSession}}\" title=\"Api Session\"></span>\n <span class=\"circle {{item.hasEdgeRouterConnection}}\" title=\"Edge Router Connected\"></span>\n </div>\n <div *ngIf=\"cellParams.showRouterIcons\" class=\"cell-status-container\">\n <span class=\"circle {{item.isVerified}}\" title=\"Api Session\"></span>\n <span class=\"circle {{item.isOnline}}\" title=\"Edge Router Connected\"></span>\n </div>\n <strong>{{item.name}}</strong>\n </div>\n </a>\n</span>\n", styles: [".cell-name-renderer{display:flex;flex-direction:row;gap:5px}.cell-name-container{display:flex;flex-direction:row;flex-wrap:nowrap}.cell-status-container{position:relative;display:flex;align-items:center;justify-content:center;gap:4px}\n"], dependencies: [{ kind: "directive", type: i1$4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
3083
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TableCellNameComponent, selector: "lib-table-cell-name", ngImport: i0, template: "<span class=\"cell-name-container\">\n <a href=\"./{{cellParams.pathRoot}}/{{item.id}}\" (click)=\"linkClicked($event)\">\n <div class=\"col cell-name-renderer\" data-id=\"{{item.id}}\">\n <div *ngIf=\"cellParams.showIdentityIcons\" class=\"cell-status-container\">\n <span class=\"circle {{item.hasApiSession}}\" title=\"Api Session\"></span>\n <span class=\"circle {{item.hasEdgeRouterConnection}}\" title=\"Edge Router Connected\"></span>\n </div>\n <div *ngIf=\"cellParams.showRouterIcons\" class=\"cell-status-container\">\n <span class=\"circle {{item.isVerified}}\" title=\"Api Session\"></span>\n <span class=\"circle {{item.isOnline}}\" title=\"Edge Router Connected\"></span>\n </div>\n <strong>{{item.name}}</strong>\n </div>\n </a>\n</span>\n", styles: [".cell-name-renderer{display:flex;flex-direction:row;gap:5px}.cell-name-container{display:flex;flex-direction:row;flex-wrap:nowrap}.cell-status-container{position:relative;display:flex;align-items:center;justify-content:center;gap:4px}\n"], dependencies: [{ kind: "directive", type: i1$4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
3084
3084
|
}
|
|
3085
3085
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TableCellNameComponent, decorators: [{
|
|
3086
3086
|
type: Component,
|
|
3087
|
-
args: [{ selector: 'lib-table-cell-name', template: "<span class=\"cell-name-container\">\n <a href=\"./{{cellParams.pathRoot}}{{item.id}}\" (click)=\"linkClicked($event)\">\n <div class=\"col cell-name-renderer\" data-id=\"{{item.id}}\">\n <div *ngIf=\"cellParams.showIdentityIcons\" class=\"cell-status-container\">\n <span class=\"circle {{item.hasApiSession}}\" title=\"Api Session\"></span>\n <span class=\"circle {{item.hasEdgeRouterConnection}}\" title=\"Edge Router Connected\"></span>\n </div>\n <div *ngIf=\"cellParams.showRouterIcons\" class=\"cell-status-container\">\n <span class=\"circle {{item.isVerified}}\" title=\"Api Session\"></span>\n <span class=\"circle {{item.isOnline}}\" title=\"Edge Router Connected\"></span>\n </div>\n <strong>{{item.name}}</strong>\n </div>\n </a>\n</span>\n", styles: [".cell-name-renderer{display:flex;flex-direction:row;gap:5px}.cell-name-container{display:flex;flex-direction:row;flex-wrap:nowrap}.cell-status-container{position:relative;display:flex;align-items:center;justify-content:center;gap:4px}\n"] }]
|
|
3087
|
+
args: [{ selector: 'lib-table-cell-name', template: "<span class=\"cell-name-container\">\n <a href=\"./{{cellParams.pathRoot}}/{{item.id}}\" (click)=\"linkClicked($event)\">\n <div class=\"col cell-name-renderer\" data-id=\"{{item.id}}\">\n <div *ngIf=\"cellParams.showIdentityIcons\" class=\"cell-status-container\">\n <span class=\"circle {{item.hasApiSession}}\" title=\"Api Session\"></span>\n <span class=\"circle {{item.hasEdgeRouterConnection}}\" title=\"Edge Router Connected\"></span>\n </div>\n <div *ngIf=\"cellParams.showRouterIcons\" class=\"cell-status-container\">\n <span class=\"circle {{item.isVerified}}\" title=\"Api Session\"></span>\n <span class=\"circle {{item.isOnline}}\" title=\"Edge Router Connected\"></span>\n </div>\n <strong>{{item.name}}</strong>\n </div>\n </a>\n</span>\n", styles: [".cell-name-renderer{display:flex;flex-direction:row;gap:5px}.cell-name-container{display:flex;flex-direction:row;flex-wrap:nowrap}.cell-status-container{position:relative;display:flex;align-items:center;justify-content:center;gap:4px}\n"] }]
|
|
3088
3088
|
}], ctorParameters: function () { return [{ type: i3$2.MatDialog }, { type: i3.Router }]; } });
|
|
3089
3089
|
|
|
3090
3090
|
/*
|
|
@@ -4325,7 +4325,7 @@ class ConfigurationsPageService extends ListPageServiceClass {
|
|
|
4325
4325
|
headerComponent: TableColumnDefaultComponent,
|
|
4326
4326
|
headerComponentParams: this.headerComponentParams,
|
|
4327
4327
|
cellRenderer: TableCellNameComponent,
|
|
4328
|
-
cellRendererParams: { pathRoot:
|
|
4328
|
+
cellRendererParams: { pathRoot: this.basePath },
|
|
4329
4329
|
onCellClicked: (data) => {
|
|
4330
4330
|
if (this.hasSelectedText()) {
|
|
4331
4331
|
return;
|
|
@@ -5245,7 +5245,7 @@ class IdentitiesPageService extends ListPageServiceClass {
|
|
|
5245
5245
|
headerComponent: TableColumnDefaultComponent,
|
|
5246
5246
|
headerComponentParams: this.headerComponentParams,
|
|
5247
5247
|
cellRenderer: TableCellNameComponent,
|
|
5248
|
-
cellRendererParams: { pathRoot: this.
|
|
5248
|
+
cellRendererParams: { pathRoot: this.basePath, showIdentityIcons: true },
|
|
5249
5249
|
onCellClicked: (data) => {
|
|
5250
5250
|
if (this.hasSelectedText()) {
|
|
5251
5251
|
return;
|
|
@@ -5804,7 +5804,7 @@ class EdgeRoutersPageService extends ListPageServiceClass {
|
|
|
5804
5804
|
headerComponent: TableColumnDefaultComponent,
|
|
5805
5805
|
headerComponentParams: this.headerComponentParams,
|
|
5806
5806
|
cellRenderer: TableCellNameComponent,
|
|
5807
|
-
cellRendererParams: { pathRoot: this.
|
|
5807
|
+
cellRendererParams: { pathRoot: this.basePath, showRouterIcons: true },
|
|
5808
5808
|
onCellClicked: (data) => {
|
|
5809
5809
|
if (this.hasSelectedText()) {
|
|
5810
5810
|
return;
|
|
@@ -7755,6 +7755,7 @@ class ProjectableForm extends ExtendableComponent {
|
|
|
7755
7755
|
this.initData = {};
|
|
7756
7756
|
this._dataChange = false;
|
|
7757
7757
|
this.apiOptions = [{ id: 'cli', label: 'Copy as CLI' }, { id: 'curl', label: 'Copy as CURL' }];
|
|
7758
|
+
this.basePath = '';
|
|
7758
7759
|
this.checkDataChangeDebounced = debounce(this.checkDataChange, 100, { maxWait: 100 });
|
|
7759
7760
|
this.subscription = new Subscription();
|
|
7760
7761
|
this.subscription.add(this.route?.params?.subscribe(params => {
|
|
@@ -7763,6 +7764,15 @@ class ProjectableForm extends ExtendableComponent {
|
|
|
7763
7764
|
this.entityId = id;
|
|
7764
7765
|
}
|
|
7765
7766
|
}));
|
|
7767
|
+
this.subscription.add(router.events.subscribe((event) => {
|
|
7768
|
+
if (event => event instanceof NavigationEnd) {
|
|
7769
|
+
if (!event?.snapshot?.routeConfig?.path) {
|
|
7770
|
+
return;
|
|
7771
|
+
}
|
|
7772
|
+
const pathSegments = event.snapshot.routeConfig.path.split('/');
|
|
7773
|
+
this.basePath = pathSegments[0];
|
|
7774
|
+
}
|
|
7775
|
+
}));
|
|
7766
7776
|
}
|
|
7767
7777
|
ngAfterViewInit() {
|
|
7768
7778
|
super.ngAfterViewInit();
|
|
@@ -7886,8 +7896,7 @@ class ProjectableForm extends ExtendableComponent {
|
|
|
7886
7896
|
}
|
|
7887
7897
|
}
|
|
7888
7898
|
returnToListPage() {
|
|
7889
|
-
|
|
7890
|
-
this.router?.navigateByUrl(`${baseUrl}`);
|
|
7899
|
+
this.router?.navigateByUrl(`${this.basePath}`);
|
|
7891
7900
|
}
|
|
7892
7901
|
ngDoCheck() {
|
|
7893
7902
|
this.checkDataChangeDebounced();
|
|
@@ -7940,18 +7949,6 @@ class ProjectableForm extends ExtendableComponent {
|
|
|
7940
7949
|
return results.data;
|
|
7941
7950
|
});
|
|
7942
7951
|
}
|
|
7943
|
-
getBaseURLPath() {
|
|
7944
|
-
let path = '';
|
|
7945
|
-
const urlSegments = window.location.pathname.split('/');
|
|
7946
|
-
const baseSegments = slice(urlSegments, 0, urlSegments.length - 1);
|
|
7947
|
-
baseSegments.forEach(segment => {
|
|
7948
|
-
if (isEmpty(segment)) {
|
|
7949
|
-
return;
|
|
7950
|
-
}
|
|
7951
|
-
path += `/${segment}`;
|
|
7952
|
-
});
|
|
7953
|
-
return path;
|
|
7954
|
-
}
|
|
7955
7952
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ProjectableForm, deps: [{ token: GrowlerService }, { token: SHAREDZ_EXTENSION }, { token: ZITI_DATA_SERVICE }, { token: i3.Router }, { token: i3.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
7956
7953
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ProjectableForm, selector: "ng-component", inputs: { isModal: "isModal", entityId: "entityId", formData: "formData" }, outputs: { close: "close", dataChange: "dataChange" }, viewQueries: [{ propertyName: "nameFieldInput", first: true, predicate: ["nameFieldInput"], descendants: true }], usesInheritance: true, ngImport: i0, template: '', isInline: true, styles: [""] }); }
|
|
7957
7954
|
}
|
|
@@ -10682,6 +10679,7 @@ class ServicesPageService extends ListPageServiceClass {
|
|
|
10682
10679
|
{ name: 'Download Selected', action: 'download-selected' },
|
|
10683
10680
|
];
|
|
10684
10681
|
this.resourceType = 'services';
|
|
10682
|
+
this.basePath = '/services/advanced';
|
|
10685
10683
|
this.validate = (formData) => {
|
|
10686
10684
|
return Promise.resolve({ passed: true });
|
|
10687
10685
|
};
|
|
@@ -10702,7 +10700,7 @@ class ServicesPageService extends ListPageServiceClass {
|
|
|
10702
10700
|
headerComponent: TableColumnDefaultComponent,
|
|
10703
10701
|
headerComponentParams: this.headerComponentParams,
|
|
10704
10702
|
cellRenderer: TableCellNameComponent,
|
|
10705
|
-
cellRendererParams: { pathRoot: 'services/advanced
|
|
10703
|
+
cellRendererParams: { pathRoot: '/services/advanced' },
|
|
10706
10704
|
onCellClicked: (data) => {
|
|
10707
10705
|
if (this.hasSelectedText()) {
|
|
10708
10706
|
return;
|
|
@@ -16279,7 +16277,7 @@ class EdgeRouterPoliciesPageService extends ListPageServiceClass {
|
|
|
16279
16277
|
headerComponent: TableColumnDefaultComponent,
|
|
16280
16278
|
headerComponentParams: this.headerComponentParams,
|
|
16281
16279
|
cellRenderer: TableCellNameComponent,
|
|
16282
|
-
cellRendererParams: { pathRoot:
|
|
16280
|
+
cellRendererParams: { pathRoot: this.basePath },
|
|
16283
16281
|
onCellClicked: (data) => {
|
|
16284
16282
|
if (this.hasSelectedText()) {
|
|
16285
16283
|
return;
|
|
@@ -16797,7 +16795,7 @@ class ServicePoliciesPageService extends ListPageServiceClass {
|
|
|
16797
16795
|
headerComponent: TableColumnDefaultComponent,
|
|
16798
16796
|
headerComponentParams: this.headerComponentParams,
|
|
16799
16797
|
cellRenderer: TableCellNameComponent,
|
|
16800
|
-
cellRendererParams: { pathRoot:
|
|
16798
|
+
cellRendererParams: { pathRoot: this.basePath },
|
|
16801
16799
|
onCellClicked: (data) => {
|
|
16802
16800
|
if (this.hasSelectedText()) {
|
|
16803
16801
|
return;
|
|
@@ -18292,7 +18290,7 @@ class ServiceEdgeRouterPoliciesPageService extends ListPageServiceClass {
|
|
|
18292
18290
|
headerComponent: TableColumnDefaultComponent,
|
|
18293
18291
|
headerComponentParams: this.headerComponentParams,
|
|
18294
18292
|
cellRenderer: TableCellNameComponent,
|
|
18295
|
-
cellRendererParams: { pathRoot:
|
|
18293
|
+
cellRendererParams: { pathRoot: this.basePath },
|
|
18296
18294
|
onCellClicked: (data) => {
|
|
18297
18295
|
if (this.hasSelectedText()) {
|
|
18298
18296
|
return;
|
|
@@ -19345,7 +19343,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
19345
19343
|
}] });
|
|
19346
19344
|
|
|
19347
19345
|
const VERSION = {
|
|
19348
|
-
"version": "3.4.
|
|
19346
|
+
"version": "3.4.3"
|
|
19349
19347
|
};
|
|
19350
19348
|
|
|
19351
19349
|
/*
|