ng-configcat-publicapi-ui 2.4.0 → 2.5.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.
- package/esm2020/lib/_services/public-api.service.mjs +11 -5
- package/esm2020/lib/_services/setting-list-form-helper.mjs +30 -13
- package/esm2020/lib/authorization/authorization.component.mjs +3 -3
- package/esm2020/lib/base/base.component.mjs +7 -4
- package/esm2020/lib/configuration.mjs +3 -3
- package/esm2020/lib/dialogs/concurrent-dialog/concurrent-dialog.component.mjs +3 -3
- package/esm2020/lib/dialogs/expand-dialog/expand-dialog.component.mjs +3 -3
- package/esm2020/lib/dialogs/reason-dialog/reason-dialog.component.mjs +3 -3
- package/esm2020/lib/dialogs/save-snackbar/save-snackbar.component.mjs +4 -4
- package/esm2020/lib/ng-configcat-publicapi-ui.module.mjs +4 -4
- package/esm2020/lib/selects/config-select/config-select.component.mjs +3 -3
- package/esm2020/lib/selects/environment-select/environment-select.component.mjs +3 -3
- package/esm2020/lib/selects/product-select/product-select.component.mjs +3 -3
- package/esm2020/lib/selects/setting-select/setting-select.component.mjs +3 -3
- package/esm2020/lib/setting-item/setting-item.component.mjs +14 -5
- package/esm2020/lib/setting-list/setting/rollout-percentage-items/rollout-percentage-items.component.mjs +4 -4
- package/esm2020/lib/setting-list/setting/rollout-rules/rollout-rules.component.mjs +21 -6
- package/esm2020/lib/setting-list/setting/setting.component.mjs +15 -6
- package/esm2020/lib/setting-list/setting/value/value.component.mjs +4 -4
- package/esm2020/lib/setting-list/setting-list.component.mjs +15 -9
- package/fesm2015/ng-configcat-publicapi-ui.mjs +148 -83
- package/fesm2015/ng-configcat-publicapi-ui.mjs.map +1 -1
- package/fesm2020/ng-configcat-publicapi-ui.mjs +147 -83
- package/fesm2020/ng-configcat-publicapi-ui.mjs.map +1 -1
- package/lib/_services/public-api.service.d.ts +2 -1
- package/lib/base/base.component.d.ts +1 -0
- package/lib/setting-item/setting-item.component.d.ts +3 -1
- package/lib/setting-list/setting/rollout-rules/rollout-rules.component.d.ts +10 -2
- package/lib/setting-list/setting/setting.component.d.ts +4 -2
- package/lib/setting-list/setting-list.component.d.ts +4 -1
- package/package.json +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { ProductsService, EnvironmentsService, ConfigsService, FeatureFlagsSettingsService, FeatureFlagSettingValuesService, MeService, IntegrationLinksService } from 'ng-configcat-publicapi';
|
|
2
|
+
import { ProductsService, EnvironmentsService, ConfigsService, FeatureFlagsSettingsService, FeatureFlagSettingValuesService, MeService, IntegrationLinksService, SegmentsService } from 'ng-configcat-publicapi';
|
|
3
3
|
import { Configuration } from '../configuration';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class PublicApiService {
|
|
@@ -13,6 +13,7 @@ export declare class PublicApiService {
|
|
|
13
13
|
createSettingsService(basicAuthUsername?: string | null, basicAuthPassword?: string | null, basePath?: string | null): FeatureFlagsSettingsService;
|
|
14
14
|
createSettingValuesService(basicAuthUsername?: string | null, basicAuthPassword?: string | null, basePath?: string | null): FeatureFlagSettingValuesService;
|
|
15
15
|
createIntegrationLinksService(basicAuthUsername?: string | null, basicAuthPassword?: string | null, basePath?: string | null): IntegrationLinksService;
|
|
16
|
+
createSegmentsService(basicAuthUsername?: string | null, basicAuthPassword?: string | null, basePath?: string | null): SegmentsService;
|
|
16
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<PublicApiService, [null, { optional: true; }]>;
|
|
17
18
|
static ɵprov: i0.ɵɵInjectableDeclaration<PublicApiService>;
|
|
18
19
|
}
|
|
@@ -11,6 +11,7 @@ export declare class BaseComponent {
|
|
|
11
11
|
protected createEnvironmentsService(): import("ng-configcat-publicapi").EnvironmentsService;
|
|
12
12
|
protected createSettingsService(): import("ng-configcat-publicapi").FeatureFlagsSettingsService;
|
|
13
13
|
protected createSettingValuesService(): import("ng-configcat-publicapi").FeatureFlagSettingValuesService;
|
|
14
|
+
protected createSegmentsService(): import("ng-configcat-publicapi").SegmentsService;
|
|
14
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseComponent, never>;
|
|
15
16
|
static ɵcmp: i0.ɵɵComponentDeclaration<BaseComponent, "base", never, { "basePath": "basePath"; "basicAuthUsername": "basicAuthUsername"; "basicAuthPassword": "basicAuthPassword"; }, {}, never, never>;
|
|
16
17
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnInit, EventEmitter } from '@angular/core';
|
|
2
2
|
import { BaseComponent } from '../base/base.component';
|
|
3
|
-
import { SettingValueModel } from 'ng-configcat-publicapi';
|
|
3
|
+
import { SegmentListModel, SettingValueModel } from 'ng-configcat-publicapi';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import { PublicApiService } from '../_services';
|
|
6
6
|
import { SettingValuesModel, UpdateSettingValuesModel } from '../_models';
|
|
@@ -22,9 +22,11 @@ export declare class SettingItemComponent extends BaseComponent implements OnIni
|
|
|
22
22
|
saveFailed: EventEmitter<any>;
|
|
23
23
|
formValuesChanged: EventEmitter<any>;
|
|
24
24
|
settingValue: SettingValueModel;
|
|
25
|
+
segments: SegmentListModel[];
|
|
25
26
|
constructor(publicApiService: PublicApiService);
|
|
26
27
|
ngOnInit(): void;
|
|
27
28
|
loadSettingValues: () => Observable<SettingValuesModel>;
|
|
29
|
+
loadSegments: () => Observable<SegmentListModel[]>;
|
|
28
30
|
handleSave: (model: UpdateSettingValuesModel) => Observable<SettingValuesModel>;
|
|
29
31
|
onEditSettingRequested(setting: any): void;
|
|
30
32
|
onDeleteSettingRequested(setting: any): void;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { FormGroup, FormControl, FormArray } from '@angular/forms';
|
|
2
2
|
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
-
import { SettingType, RolloutRuleComparator } from 'ng-configcat-publicapi';
|
|
3
|
+
import { SettingType, RolloutRuleComparator, SegmentListModel, SegmentComparator } from 'ng-configcat-publicapi';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class RolloutRulesComponent {
|
|
6
6
|
private dialog;
|
|
7
7
|
formGroup: FormGroup;
|
|
8
8
|
readOnly: boolean;
|
|
9
|
+
segments: SegmentListModel[];
|
|
9
10
|
SettingType: {
|
|
10
11
|
Boolean: SettingType;
|
|
11
12
|
String: SettingType;
|
|
@@ -17,6 +18,10 @@ export declare class RolloutRulesComponent {
|
|
|
17
18
|
value: RolloutRuleComparator;
|
|
18
19
|
label: string;
|
|
19
20
|
}[];
|
|
21
|
+
segmentComparators: {
|
|
22
|
+
value: SegmentComparator;
|
|
23
|
+
label: string;
|
|
24
|
+
}[];
|
|
20
25
|
constructor(dialog: MatDialog);
|
|
21
26
|
onlyFirstTooltip(): boolean;
|
|
22
27
|
setting(): any;
|
|
@@ -46,7 +51,10 @@ export declare class RolloutRulesComponent {
|
|
|
46
51
|
getRolloutRuleValueFormControl(rolloutRule: any): FormControl;
|
|
47
52
|
getRolloutRuleComparisonValueFormControl(rolloutRule: any): FormControl;
|
|
48
53
|
getRolloutRuleComparisonAttributeFormControl(rolloutRule: any): FormControl;
|
|
54
|
+
getRolloutRuleTypeFormControl(rolloutRule: any): FormControl;
|
|
49
55
|
getRolloutRuleComparatorFormControl(rolloutRule: any): FormControl;
|
|
56
|
+
getRolloutRuleSegmentComparatorFormControl(rolloutRule: any): FormControl;
|
|
57
|
+
getRolloutRuleSegmentIdFormControl(rolloutRule: any): FormControl;
|
|
50
58
|
static ɵfac: i0.ɵɵFactoryDeclaration<RolloutRulesComponent, never>;
|
|
51
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RolloutRulesComponent, "configcat-rollout-rules", never, { "formGroup": "formGroup"; "readOnly": "readOnly"; }, {}, never, never>;
|
|
59
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RolloutRulesComponent, "configcat-rollout-rules", never, { "formGroup": "formGroup"; "readOnly": "readOnly"; "segments": "segments"; }, {}, never, never>;
|
|
52
60
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnInit, EventEmitter, ChangeDetectorRef } from '@angular/core';
|
|
2
2
|
import { FormGroup, FormArray, FormControl } from '@angular/forms';
|
|
3
|
-
import { SettingType } from 'ng-configcat-publicapi';
|
|
3
|
+
import { SegmentListModel, SettingType } from 'ng-configcat-publicapi';
|
|
4
4
|
import { SettingListFormHelper } from '../../_services/setting-list-form-helper';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class SettingComponent implements OnInit {
|
|
@@ -12,6 +12,7 @@ export declare class SettingComponent implements OnInit {
|
|
|
12
12
|
canDeleteSetting: boolean;
|
|
13
13
|
deleteSettingText: string;
|
|
14
14
|
showEnvironmentName: boolean;
|
|
15
|
+
segments: SegmentListModel[];
|
|
15
16
|
editSettingRequested: EventEmitter<any>;
|
|
16
17
|
deleteSettingRequested: EventEmitter<any>;
|
|
17
18
|
rulesBeingRendered: boolean;
|
|
@@ -30,11 +31,12 @@ export declare class SettingComponent implements OnInit {
|
|
|
30
31
|
rolloutPercentageItems(): FormArray;
|
|
31
32
|
value(): FormControl;
|
|
32
33
|
addRolloutRule(): void;
|
|
34
|
+
addSegmentRolloutRule(): void;
|
|
33
35
|
removeRolloutRules(): void;
|
|
34
36
|
addRolloutPercentageItem(): void;
|
|
35
37
|
removeRolloutPercentageItems(): void;
|
|
36
38
|
editSetting(): void;
|
|
37
39
|
deleteSetting(): void;
|
|
38
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<SettingComponent, never>;
|
|
39
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SettingComponent, "setting", never, { "formGroup": "formGroup"; "readOnly": "readOnly"; "canEditSetting": "canEditSetting"; "canDeleteSetting": "canDeleteSetting"; "deleteSettingText": "deleteSettingText"; "showEnvironmentName": "showEnvironmentName"; }, { "editSettingRequested": "editSettingRequested"; "deleteSettingRequested": "deleteSettingRequested"; }, never, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SettingComponent, "setting", never, { "formGroup": "formGroup"; "readOnly": "readOnly"; "canEditSetting": "canEditSetting"; "canDeleteSetting": "canDeleteSetting"; "deleteSettingText": "deleteSettingText"; "showEnvironmentName": "showEnvironmentName"; "segments": "segments"; }, { "editSettingRequested": "editSettingRequested"; "deleteSettingRequested": "deleteSettingRequested"; }, never, never>;
|
|
40
42
|
}
|
|
@@ -5,6 +5,7 @@ import { Observable, Subscription } from 'rxjs';
|
|
|
5
5
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
6
6
|
import { MatDialog } from '@angular/material/dialog';
|
|
7
7
|
import { SettingListFormHelper } from '../_services/setting-list-form-helper';
|
|
8
|
+
import { SegmentListModel } from 'ng-configcat-publicapi';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
export declare class SettingListComponent implements OnInit, OnChanges, OnDestroy {
|
|
10
11
|
private formHelper;
|
|
@@ -14,6 +15,7 @@ export declare class SettingListComponent implements OnInit, OnChanges, OnDestro
|
|
|
14
15
|
canDeleteSetting: boolean;
|
|
15
16
|
onSave: (value: UpdateSettingValuesModel) => Observable<SettingValuesModel>;
|
|
16
17
|
loadSettingValues: () => Observable<SettingValuesModel>;
|
|
18
|
+
loadSegments: () => Observable<SegmentListModel[]>;
|
|
17
19
|
deleteSettingText: string;
|
|
18
20
|
showEnvironmentName: boolean;
|
|
19
21
|
editSettingRequested: EventEmitter<any>;
|
|
@@ -22,6 +24,7 @@ export declare class SettingListComponent implements OnInit, OnChanges, OnDestro
|
|
|
22
24
|
formValuesChangedSubscription: Subscription | null;
|
|
23
25
|
loading: boolean;
|
|
24
26
|
settingValues: SettingValuesModel;
|
|
27
|
+
segments: SegmentListModel[];
|
|
25
28
|
formGroup: FormGroup;
|
|
26
29
|
submitting: boolean;
|
|
27
30
|
showRevertQuestion: boolean;
|
|
@@ -42,5 +45,5 @@ export declare class SettingListComponent implements OnInit, OnChanges, OnDestro
|
|
|
42
45
|
onEditSettingRequested(setting: any): void;
|
|
43
46
|
onDeleteSettingRequested(setting: any): void;
|
|
44
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<SettingListComponent, never>;
|
|
45
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SettingListComponent, "configcat-setting-list", never, { "canEditSetting": "canEditSetting"; "canDeleteSetting": "canDeleteSetting"; "onSave": "onSave"; "loadSettingValues": "loadSettingValues"; "deleteSettingText": "deleteSettingText"; "showEnvironmentName": "showEnvironmentName"; }, { "editSettingRequested": "editSettingRequested"; "deleteSettingRequested": "deleteSettingRequested"; "formValuesChanged": "formValuesChanged"; }, never, never>;
|
|
48
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SettingListComponent, "configcat-setting-list", never, { "canEditSetting": "canEditSetting"; "canDeleteSetting": "canDeleteSetting"; "onSave": "onSave"; "loadSettingValues": "loadSettingValues"; "loadSegments": "loadSegments"; "deleteSettingText": "deleteSettingText"; "showEnvironmentName": "showEnvironmentName"; }, { "editSettingRequested": "editSettingRequested"; "deleteSettingRequested": "deleteSettingRequested"; "formValuesChanged": "formValuesChanged"; }, never, never>;
|
|
46
49
|
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ng-configcat-publicapi-ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.3",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/common": "^13.
|
|
6
|
-
"@angular/core": "^13.
|
|
7
|
-
"ng-configcat-publicapi": "^2.
|
|
5
|
+
"@angular/common": "^13.2.0",
|
|
6
|
+
"@angular/core": "^13.2.0",
|
|
7
|
+
"ng-configcat-publicapi": "^2.7.0",
|
|
8
8
|
"semver": "^7.3.5"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|