ng-configcat-publicapi-ui 2.13.2 → 3.0.0
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/_directives/input-display-normalizer.directive.mjs +4 -4
- package/esm2020/lib/_models/deleteSettingModel.mjs +2 -0
- package/esm2020/lib/_models/index.mjs +2 -1
- package/esm2020/lib/_services/public-api.service.mjs +4 -4
- package/esm2020/lib/_services/setting-list-form-helper.mjs +4 -4
- package/esm2020/lib/authorization/authorization.component.mjs +5 -5
- package/esm2020/lib/base/base.component.mjs +4 -4
- package/esm2020/lib/configuration.mjs +4 -4
- package/esm2020/lib/dialogs/delete-setting-dialog/delete-setting-dialog.component.mjs +27 -0
- package/esm2020/lib/dialogs/expand-dialog/expand-dialog.component.mjs +6 -5
- package/esm2020/lib/dialogs/reason-dialog/reason-dialog.component.mjs +5 -5
- package/esm2020/lib/dialogs/save-snackbar/save-snackbar.component.mjs +4 -4
- package/esm2020/lib/ng-configcat-publicapi-ui.module.mjs +9 -9
- package/esm2020/lib/selects/config-select/config-select.component.mjs +6 -6
- package/esm2020/lib/selects/environment-select/environment-select.component.mjs +5 -5
- package/esm2020/lib/selects/product-select/product-select.component.mjs +4 -4
- package/esm2020/lib/selects/setting-select/setting-select.component.mjs +5 -5
- package/esm2020/lib/setting-item/setting-item.component.mjs +5 -18
- package/esm2020/lib/setting-list/setting/rollout-percentage-items/rollout-percentage-items.component.mjs +9 -9
- package/esm2020/lib/setting-list/setting/rollout-rules/rollout-rules.component.mjs +5 -5
- package/esm2020/lib/setting-list/setting/setting.component.mjs +7 -17
- package/esm2020/lib/setting-list/setting/value/value.component.mjs +4 -4
- package/esm2020/lib/setting-list/setting-list.component.mjs +6 -38
- package/fesm2015/ng-configcat-publicapi-ui.mjs +111 -162
- package/fesm2015/ng-configcat-publicapi-ui.mjs.map +1 -1
- package/fesm2020/ng-configcat-publicapi-ui.mjs +109 -162
- package/fesm2020/ng-configcat-publicapi-ui.mjs.map +1 -1
- package/lib/_directives/input-display-normalizer.directive.d.ts +1 -1
- package/lib/_models/deleteSettingModel.d.ts +6 -0
- package/lib/_models/index.d.ts +1 -0
- package/lib/authorization/authorization.component.d.ts +1 -1
- package/lib/base/base.component.d.ts +1 -1
- package/lib/dialogs/delete-setting-dialog/delete-setting-dialog.component.d.ts +17 -0
- package/lib/dialogs/expand-dialog/expand-dialog.component.d.ts +1 -1
- package/lib/dialogs/reason-dialog/reason-dialog.component.d.ts +1 -1
- package/lib/dialogs/save-snackbar/save-snackbar.component.d.ts +1 -1
- package/lib/ng-configcat-publicapi-ui.module.d.ts +4 -4
- package/lib/selects/config-select/config-select.component.d.ts +1 -1
- package/lib/selects/environment-select/environment-select.component.d.ts +1 -1
- package/lib/selects/product-select/product-select.component.d.ts +1 -1
- package/lib/selects/setting-select/setting-select.component.d.ts +1 -1
- package/lib/setting-item/setting-item.component.d.ts +1 -4
- package/lib/setting-list/setting/rollout-percentage-items/rollout-percentage-items.component.d.ts +1 -1
- package/lib/setting-list/setting/rollout-rules/rollout-rules.component.d.ts +1 -1
- package/lib/setting-list/setting/setting.component.d.ts +5 -9
- package/lib/setting-list/setting/value/value.component.d.ts +1 -1
- package/lib/setting-list/setting-list.component.d.ts +5 -6
- package/package.json +4 -4
- package/esm2020/lib/dialogs/concurrent-dialog/concurrent-dialog.component.mjs +0 -25
- package/lib/dialogs/concurrent-dialog/concurrent-dialog.component.d.ts +0 -12
|
@@ -9,5 +9,5 @@ export declare class InputDisplayNormalizerDirective {
|
|
|
9
9
|
constructor();
|
|
10
10
|
onChange($event: any): void;
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputDisplayNormalizerDirective, never>;
|
|
12
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<InputDisplayNormalizerDirective, "input[inputDisplayNormalizer]", never, {}, {}, never, never, false>;
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<InputDisplayNormalizerDirective, "input[inputDisplayNormalizer]", never, {}, {}, never, never, false, never>;
|
|
13
13
|
}
|
package/lib/_models/index.d.ts
CHANGED
|
@@ -16,5 +16,5 @@ export declare class AuthorizationComponent implements OnInit {
|
|
|
16
16
|
onSubmit(): void;
|
|
17
17
|
getPublicApiUrl(): string;
|
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<AuthorizationComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AuthorizationComponent, "configcat-authorization", never, { "basePath": "basePath"; "integrationName": "integrationName"; }, { "authorized": "authorized"; }, never, never, false>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AuthorizationComponent, "configcat-authorization", never, { "basePath": "basePath"; "integrationName": "integrationName"; }, { "authorized": "authorized"; }, never, never, false, never>;
|
|
20
20
|
}
|
|
@@ -13,5 +13,5 @@ export declare class BaseComponent {
|
|
|
13
13
|
protected createSettingValuesService(): import("ng-configcat-publicapi").FeatureFlagSettingValuesService;
|
|
14
14
|
protected createSegmentsService(): import("ng-configcat-publicapi").SegmentsService;
|
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BaseComponent, "base", never, { "basePath": "basePath"; "basicAuthUsername": "basicAuthUsername"; "basicAuthPassword": "basicAuthPassword"; }, {}, never, never, false>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaseComponent, "base", never, { "basePath": "basePath"; "basicAuthUsername": "basicAuthUsername"; "basicAuthPassword": "basicAuthPassword"; }, {}, never, never, false, never>;
|
|
17
17
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class DeleteSettingDialogComponent {
|
|
4
|
+
dialogRef: MatDialogRef<DeleteSettingDialogComponent>;
|
|
5
|
+
data: {
|
|
6
|
+
system: string;
|
|
7
|
+
ticketType: string;
|
|
8
|
+
};
|
|
9
|
+
constructor(dialogRef: MatDialogRef<DeleteSettingDialogComponent>, data: {
|
|
10
|
+
system: string;
|
|
11
|
+
ticketType: string;
|
|
12
|
+
});
|
|
13
|
+
remove(): void;
|
|
14
|
+
cancel(): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DeleteSettingDialogComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DeleteSettingDialogComponent, "app-delete-setting-dialog", never, {}, {}, never, never, false, never>;
|
|
17
|
+
}
|
|
@@ -20,5 +20,5 @@ export declare class ExpandDialogComponent implements OnInit, OnDestroy {
|
|
|
20
20
|
ngOnDestroy(): void;
|
|
21
21
|
close(): void;
|
|
22
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<ExpandDialogComponent, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ExpandDialogComponent, "configcat-expand-dialog", never, {}, {}, never, never, false>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ExpandDialogComponent, "configcat-expand-dialog", never, {}, {}, never, never, false, never>;
|
|
24
24
|
}
|
|
@@ -11,5 +11,5 @@ export declare class ReasonDialogComponent implements OnInit {
|
|
|
11
11
|
handleSaveButton(): void;
|
|
12
12
|
cancel(): void;
|
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<ReasonDialogComponent, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ReasonDialogComponent, "configcat-reason-dialog", never, {}, {}, never, never, false>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ReasonDialogComponent, "configcat-reason-dialog", never, {}, {}, never, never, false, never>;
|
|
15
15
|
}
|
|
@@ -4,5 +4,5 @@ export declare class SaveSnackbarComponent implements OnInit {
|
|
|
4
4
|
constructor();
|
|
5
5
|
ngOnInit(): void;
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<SaveSnackbarComponent, never>;
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SaveSnackbarComponent, "configcat-save-snackbar", never, {}, {}, never, never, false>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SaveSnackbarComponent, "configcat-save-snackbar", never, {}, {}, never, never, false, never>;
|
|
8
8
|
}
|
|
@@ -14,9 +14,9 @@ import * as i10 from "./setting-list/setting/rollout-percentage-items/rollout-pe
|
|
|
14
14
|
import * as i11 from "./setting-list/setting/rollout-rules/rollout-rules.component";
|
|
15
15
|
import * as i12 from "./setting-list/setting/value/value.component";
|
|
16
16
|
import * as i13 from "./dialogs/reason-dialog/reason-dialog.component";
|
|
17
|
-
import * as i14 from "./dialogs/
|
|
18
|
-
import * as i15 from "./dialogs/
|
|
19
|
-
import * as i16 from "./dialogs/
|
|
17
|
+
import * as i14 from "./dialogs/save-snackbar/save-snackbar.component";
|
|
18
|
+
import * as i15 from "./dialogs/expand-dialog/expand-dialog.component";
|
|
19
|
+
import * as i16 from "./dialogs/delete-setting-dialog/delete-setting-dialog.component";
|
|
20
20
|
import * as i17 from "./_directives/input-display-normalizer.directive";
|
|
21
21
|
import * as i18 from "@angular/common";
|
|
22
22
|
import * as i19 from "@angular/forms";
|
|
@@ -40,6 +40,6 @@ export declare class NgConfigCatPublicApiUIModule {
|
|
|
40
40
|
static forRoot(configurationFactory: () => Configuration): ModuleWithProviders<NgConfigCatPublicApiUIModule>;
|
|
41
41
|
constructor();
|
|
42
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgConfigCatPublicApiUIModule, never>;
|
|
43
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgConfigCatPublicApiUIModule, [typeof i1.BaseComponent, typeof i2.ProductSelectComponent, typeof i3.ConfigSelectComponent, typeof i4.EnvironmentSelectComponent, typeof i5.SettingSelectComponent, typeof i6.SettingItemComponent, typeof i7.AuthorizationComponent, typeof i8.SettingListComponent, typeof i9.SettingComponent, typeof i10.RolloutPercentageItemsComponent, typeof i11.RolloutRulesComponent, typeof i12.ValueComponent, typeof i13.ReasonDialogComponent, typeof i14.
|
|
43
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgConfigCatPublicApiUIModule, [typeof i1.BaseComponent, typeof i2.ProductSelectComponent, typeof i3.ConfigSelectComponent, typeof i4.EnvironmentSelectComponent, typeof i5.SettingSelectComponent, typeof i6.SettingItemComponent, typeof i7.AuthorizationComponent, typeof i8.SettingListComponent, typeof i9.SettingComponent, typeof i10.RolloutPercentageItemsComponent, typeof i11.RolloutRulesComponent, typeof i12.ValueComponent, typeof i13.ReasonDialogComponent, typeof i14.SaveSnackbarComponent, typeof i15.ExpandDialogComponent, typeof i16.DeleteSettingDialogComponent, typeof i17.InputDisplayNormalizerDirective], [typeof i18.CommonModule, typeof i19.FormsModule, typeof i19.ReactiveFormsModule, typeof i20.BrowserAnimationsModule, typeof i21.MatFormFieldModule, typeof i22.MatOptionModule, typeof i23.MatSelectModule, typeof i24.MatButtonModule, typeof i25.MatInputModule, typeof i26.MatIconModule, typeof i27.MatTooltipModule, typeof i28.MatChipsModule, typeof i29.MatAutocompleteModule, typeof i30.DragDropModule, typeof i31.RouterModule, typeof i32.MatSnackBarModule, typeof i33.MatDialogModule, typeof i34.MatMenuModule, typeof i35.ApiModule], [typeof i7.AuthorizationComponent, typeof i2.ProductSelectComponent, typeof i3.ConfigSelectComponent, typeof i4.EnvironmentSelectComponent, typeof i5.SettingSelectComponent, typeof i6.SettingItemComponent, typeof i17.InputDisplayNormalizerDirective]>;
|
|
44
44
|
static ɵinj: i0.ɵɵInjectorDeclaration<NgConfigCatPublicApiUIModule>;
|
|
45
45
|
}
|
|
@@ -13,5 +13,5 @@ export declare class ConfigSelectComponent extends BaseComponent implements OnIn
|
|
|
13
13
|
ngOnChanges(): void;
|
|
14
14
|
reloadConfigs(): void;
|
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigSelectComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ConfigSelectComponent, "configcat-config-select", never, { "valueFormControl": "valueFormControl"; "productId": "productId"; }, {}, never, never, false>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConfigSelectComponent, "configcat-config-select", never, { "valueFormControl": "valueFormControl"; "productId": "productId"; }, {}, never, never, false, never>;
|
|
17
17
|
}
|
|
@@ -13,5 +13,5 @@ export declare class EnvironmentSelectComponent extends BaseComponent implements
|
|
|
13
13
|
ngOnChanges(): void;
|
|
14
14
|
reloadEnvironments(): void;
|
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<EnvironmentSelectComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EnvironmentSelectComponent, "configcat-environment-select", never, { "valueFormControl": "valueFormControl"; "productId": "productId"; }, {}, never, never, false>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EnvironmentSelectComponent, "configcat-environment-select", never, { "valueFormControl": "valueFormControl"; "productId": "productId"; }, {}, never, never, false, never>;
|
|
17
17
|
}
|
|
@@ -10,5 +10,5 @@ export declare class ProductSelectComponent extends BaseComponent implements OnI
|
|
|
10
10
|
constructor(publicApiService: PublicApiService);
|
|
11
11
|
ngOnInit(): void;
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductSelectComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ProductSelectComponent, "configcat-product-select", never, { "valueFormControl": "valueFormControl"; }, {}, never, never, false>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductSelectComponent, "configcat-product-select", never, { "valueFormControl": "valueFormControl"; }, {}, never, never, false, never>;
|
|
14
14
|
}
|
|
@@ -13,5 +13,5 @@ export declare class SettingSelectComponent extends BaseComponent implements OnI
|
|
|
13
13
|
ngOnChanges(): void;
|
|
14
14
|
reloadSettings(): void;
|
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<SettingSelectComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SettingSelectComponent, "configcat-setting-select", never, { "valueFormControl": "valueFormControl"; "configId": "configId"; }, {}, never, never, false>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SettingSelectComponent, "configcat-setting-select", never, { "valueFormControl": "valueFormControl"; "configId": "configId"; }, {}, never, never, false, never>;
|
|
17
17
|
}
|
|
@@ -10,11 +10,9 @@ export declare class SettingItemComponent extends BaseComponent implements OnIni
|
|
|
10
10
|
environmentId: string;
|
|
11
11
|
configId: string;
|
|
12
12
|
settingId: number;
|
|
13
|
-
canEditSetting: boolean;
|
|
14
13
|
canDeleteSetting: boolean;
|
|
15
14
|
deleteSettingText: string;
|
|
16
15
|
showEnvironmentName: boolean;
|
|
17
|
-
editSettingRequested: EventEmitter<any>;
|
|
18
16
|
deleteSettingRequested: EventEmitter<any>;
|
|
19
17
|
loadSucceeded: EventEmitter<any>;
|
|
20
18
|
loadFailed: EventEmitter<any>;
|
|
@@ -29,9 +27,8 @@ export declare class SettingItemComponent extends BaseComponent implements OnIni
|
|
|
29
27
|
loadSettingValues: () => Observable<SettingValuesModel>;
|
|
30
28
|
loadSegments: () => Observable<SegmentListModel[]>;
|
|
31
29
|
handleSave: (model: UpdateSettingValuesModel) => Observable<SettingValuesModel>;
|
|
32
|
-
onEditSettingRequested(setting: any): void;
|
|
33
30
|
onDeleteSettingRequested(setting: any): void;
|
|
34
31
|
onFormValuesChanged(): void;
|
|
35
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<SettingItemComponent, never>;
|
|
36
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SettingItemComponent, "configcat-setting-item", never, { "productId": "productId"; "environmentId": "environmentId"; "configId": "configId"; "settingId": "settingId"; "
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SettingItemComponent, "configcat-setting-item", never, { "productId": "productId"; "environmentId": "environmentId"; "configId": "configId"; "settingId": "settingId"; "canDeleteSetting": "canDeleteSetting"; "deleteSettingText": "deleteSettingText"; "showEnvironmentName": "showEnvironmentName"; }, { "deleteSettingRequested": "deleteSettingRequested"; "loadSucceeded": "loadSucceeded"; "loadFailed": "loadFailed"; "saveSucceeded": "saveSucceeded"; "saveFailed": "saveFailed"; "formValuesChanged": "formValuesChanged"; }, never, never, false, never>;
|
|
37
34
|
}
|
package/lib/setting-list/setting/rollout-percentage-items/rollout-percentage-items.component.d.ts
CHANGED
|
@@ -23,5 +23,5 @@ export declare class RolloutPercentageItemsComponent {
|
|
|
23
23
|
getRolloutPercentageItemFormGroups(): UntypedFormGroup[];
|
|
24
24
|
getPercentageFormControl(rolloutPercentageItem: any): UntypedFormControl;
|
|
25
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<RolloutPercentageItemsComponent, never>;
|
|
26
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RolloutPercentageItemsComponent, "configcat-rollout-percentage-items", never, { "formGroup": "formGroup"; "readOnly": "readOnly"; }, {}, never, never, false>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RolloutPercentageItemsComponent, "configcat-rollout-percentage-items", never, { "formGroup": "formGroup"; "readOnly": "readOnly"; }, {}, never, never, false, never>;
|
|
27
27
|
}
|
|
@@ -57,5 +57,5 @@ export declare class RolloutRulesComponent {
|
|
|
57
57
|
getRolloutRuleSegmentComparatorFormControl(rolloutRule: any): UntypedFormControl;
|
|
58
58
|
getRolloutRuleSegmentIdFormControl(rolloutRule: any): UntypedFormControl;
|
|
59
59
|
static ɵfac: i0.ɵɵFactoryDeclaration<RolloutRulesComponent, never>;
|
|
60
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RolloutRulesComponent, "configcat-rollout-rules", never, { "formGroup": "formGroup"; "readOnly": "readOnly"; "segments": "segments"; }, {}, never, never, false>;
|
|
60
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RolloutRulesComponent, "configcat-rollout-rules", never, { "formGroup": "formGroup"; "readOnly": "readOnly"; "segments": "segments"; }, {}, never, never, false, never>;
|
|
61
61
|
}
|
|
@@ -1,23 +1,20 @@
|
|
|
1
|
-
import { OnInit, EventEmitter
|
|
1
|
+
import { OnInit, EventEmitter } from '@angular/core';
|
|
2
2
|
import { UntypedFormGroup, UntypedFormArray, UntypedFormControl } from '@angular/forms';
|
|
3
|
-
import { SegmentListModel, SettingType } from 'ng-configcat-publicapi';
|
|
3
|
+
import { SegmentListModel, SettingModel, 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 {
|
|
7
7
|
private formHelper;
|
|
8
|
-
private cdRef;
|
|
9
8
|
dashboardBasePath: string;
|
|
10
9
|
productId: string;
|
|
11
10
|
environmentId: string;
|
|
12
11
|
configId: string;
|
|
13
12
|
formGroup: UntypedFormGroup;
|
|
14
13
|
readOnly: boolean;
|
|
15
|
-
canEditSetting: boolean;
|
|
16
14
|
canDeleteSetting: boolean;
|
|
17
15
|
deleteSettingText: string;
|
|
18
16
|
showEnvironmentName: boolean;
|
|
19
17
|
segments: SegmentListModel[];
|
|
20
|
-
editSettingRequested: EventEmitter<any>;
|
|
21
18
|
deleteSettingRequested: EventEmitter<any>;
|
|
22
19
|
rulesBeingRendered: boolean;
|
|
23
20
|
SettingType: {
|
|
@@ -26,10 +23,10 @@ export declare class SettingComponent implements OnInit {
|
|
|
26
23
|
Int: SettingType;
|
|
27
24
|
Double: SettingType;
|
|
28
25
|
};
|
|
29
|
-
constructor(formHelper: SettingListFormHelper
|
|
26
|
+
constructor(formHelper: SettingListFormHelper);
|
|
30
27
|
ngOnInit(): void;
|
|
31
28
|
environment(): any;
|
|
32
|
-
setting():
|
|
29
|
+
setting(): SettingModel;
|
|
33
30
|
integrationLinks(): UntypedFormArray;
|
|
34
31
|
rolloutRules(): UntypedFormArray;
|
|
35
32
|
rolloutPercentageItems(): UntypedFormArray;
|
|
@@ -39,9 +36,8 @@ export declare class SettingComponent implements OnInit {
|
|
|
39
36
|
removeRolloutRules(): void;
|
|
40
37
|
addRolloutPercentageItem(): void;
|
|
41
38
|
removeRolloutPercentageItems(): void;
|
|
42
|
-
editSetting(): void;
|
|
43
39
|
deleteSetting(): void;
|
|
44
40
|
getDashboardUrl(): string;
|
|
45
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<SettingComponent, never>;
|
|
46
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SettingComponent, "setting", never, { "dashboardBasePath": "dashboardBasePath"; "productId": "productId"; "environmentId": "environmentId"; "configId": "configId"; "formGroup": "formGroup"; "readOnly": "readOnly"; "
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SettingComponent, "setting", never, { "dashboardBasePath": "dashboardBasePath"; "productId": "productId"; "environmentId": "environmentId"; "configId": "configId"; "formGroup": "formGroup"; "readOnly": "readOnly"; "canDeleteSetting": "canDeleteSetting"; "deleteSettingText": "deleteSettingText"; "showEnvironmentName": "showEnvironmentName"; "segments": "segments"; }, { "deleteSettingRequested": "deleteSettingRequested"; }, never, never, false, never>;
|
|
47
43
|
}
|
|
@@ -16,5 +16,5 @@ export declare class ValueComponent {
|
|
|
16
16
|
popOut(): void;
|
|
17
17
|
formatDecimalNumber(value: number): string;
|
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<ValueComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ValueComponent, "configcat-value", never, { "valueFormControl": "valueFormControl"; "setting": "setting"; }, {}, never, never, false>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ValueComponent, "configcat-value", never, { "valueFormControl": "valueFormControl"; "setting": "setting"; }, {}, never, never, false, never>;
|
|
20
20
|
}
|
|
@@ -5,7 +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
|
+
import { SegmentListModel, SettingModel } from 'ng-configcat-publicapi';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
export declare class SettingListComponent implements OnInit, OnChanges, OnDestroy {
|
|
11
11
|
private formHelper;
|
|
@@ -15,14 +15,12 @@ export declare class SettingListComponent implements OnInit, OnChanges, OnDestro
|
|
|
15
15
|
environmentId: string;
|
|
16
16
|
configId: string;
|
|
17
17
|
dashboardBasePath: string;
|
|
18
|
-
canEditSetting: boolean;
|
|
19
18
|
canDeleteSetting: boolean;
|
|
20
19
|
onSave: (value: UpdateSettingValuesModel) => Observable<SettingValuesModel>;
|
|
21
20
|
loadSettingValues: () => Observable<SettingValuesModel>;
|
|
22
21
|
loadSegments: () => Observable<SegmentListModel[]>;
|
|
23
22
|
deleteSettingText: string;
|
|
24
23
|
showEnvironmentName: boolean;
|
|
25
|
-
editSettingRequested: EventEmitter<any>;
|
|
26
24
|
deleteSettingRequested: EventEmitter<any>;
|
|
27
25
|
formValuesChanged: EventEmitter<any>;
|
|
28
26
|
formValuesChangedSubscription: Subscription | null;
|
|
@@ -47,8 +45,9 @@ export declare class SettingListComponent implements OnInit, OnChanges, OnDestro
|
|
|
47
45
|
updateSettingValues(updateSettingValuesModel: any): void;
|
|
48
46
|
handleRevertYes(): void;
|
|
49
47
|
handleRevertCancel(): void;
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
onDeleteSettingRequested(setting: {
|
|
49
|
+
setting: SettingModel;
|
|
50
|
+
}): void;
|
|
52
51
|
static ɵfac: i0.ɵɵFactoryDeclaration<SettingListComponent, never>;
|
|
53
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SettingListComponent, "configcat-setting-list", never, { "productId": "productId"; "environmentId": "environmentId"; "configId": "configId"; "dashboardBasePath": "dashboardBasePath"; "
|
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SettingListComponent, "configcat-setting-list", never, { "productId": "productId"; "environmentId": "environmentId"; "configId": "configId"; "dashboardBasePath": "dashboardBasePath"; "canDeleteSetting": "canDeleteSetting"; "onSave": "onSave"; "loadSettingValues": "loadSettingValues"; "loadSegments": "loadSegments"; "deleteSettingText": "deleteSettingText"; "showEnvironmentName": "showEnvironmentName"; }, { "deleteSettingRequested": "deleteSettingRequested"; "formValuesChanged": "formValuesChanged"; }, never, never, false, never>;
|
|
54
53
|
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ng-configcat-publicapi-ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/common": "^
|
|
6
|
-
"@angular/core": "^
|
|
7
|
-
"ng-configcat-publicapi": "^
|
|
5
|
+
"@angular/common": "^15.1.4",
|
|
6
|
+
"@angular/core": "^15.1.4",
|
|
7
|
+
"ng-configcat-publicapi": "^3.0.0",
|
|
8
8
|
"semver": "^7.3.5"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@angular/material/dialog";
|
|
4
|
-
import * as i2 from "@angular/material/button";
|
|
5
|
-
import * as i3 from "@angular/router";
|
|
6
|
-
export class ConcurrentDialogComponent {
|
|
7
|
-
constructor(dialogRef) {
|
|
8
|
-
this.dialogRef = dialogRef;
|
|
9
|
-
}
|
|
10
|
-
ngOnInit() {
|
|
11
|
-
}
|
|
12
|
-
save() {
|
|
13
|
-
this.dialogRef.close({ button: 'save' });
|
|
14
|
-
}
|
|
15
|
-
discard() {
|
|
16
|
-
this.dialogRef.close({ button: 'discard' });
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
ConcurrentDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ConcurrentDialogComponent, deps: [{ token: i1.MatDialogRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
20
|
-
ConcurrentDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: ConcurrentDialogComponent, selector: "configcat-concurrent-dialog", ngImport: i0, template: "<h3 mat-dialog-title>Concurrent update detected</h3>\n<p>\n Somebody updated the feature flags & settings while you were editing them.\n</p>\n<ul>\n <li>\n To discard your local changes and reload the updated values, click <strong>Discard my changes & reload</strong>\n </li>\n <li>\n To save you local values and overwrite the remote changes, click <strong>Save anyway</strong>\n </li>\n</ul>\n<p>For more info about the changes check the <a [routerLink]=\"['/auditlog']\" target=\"_blank\" rel=\"noopener noreferrer\" >audit logs</a> in a new tab.</p>\n<div mat-dialog-actions>\n <button type=\"button\" style=\"margin-right: 10px;\" mat-flat-button color=\"primary\" (click)=\"discard()\">Discard\n local changes & reload</button>\n <button type=\"button\" mat-stroked-button (click)=\"save()\">Save anyway</button>\n</div>", styles: [""], dependencies: [{ kind: "component", type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i3.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: i1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }] });
|
|
21
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ConcurrentDialogComponent, decorators: [{
|
|
22
|
-
type: Component,
|
|
23
|
-
args: [{ selector: 'configcat-concurrent-dialog', template: "<h3 mat-dialog-title>Concurrent update detected</h3>\n<p>\n Somebody updated the feature flags & settings while you were editing them.\n</p>\n<ul>\n <li>\n To discard your local changes and reload the updated values, click <strong>Discard my changes & reload</strong>\n </li>\n <li>\n To save you local values and overwrite the remote changes, click <strong>Save anyway</strong>\n </li>\n</ul>\n<p>For more info about the changes check the <a [routerLink]=\"['/auditlog']\" target=\"_blank\" rel=\"noopener noreferrer\" >audit logs</a> in a new tab.</p>\n<div mat-dialog-actions>\n <button type=\"button\" style=\"margin-right: 10px;\" mat-flat-button color=\"primary\" (click)=\"discard()\">Discard\n local changes & reload</button>\n <button type=\"button\" mat-stroked-button (click)=\"save()\">Save anyway</button>\n</div>" }]
|
|
24
|
-
}], ctorParameters: function () { return [{ type: i1.MatDialogRef }]; } });
|
|
25
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uY3VycmVudC1kaWFsb2cuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmctY29uZmlnY2F0LXB1YmxpY2FwaS11aS9zcmMvbGliL2RpYWxvZ3MvY29uY3VycmVudC1kaWFsb2cvY29uY3VycmVudC1kaWFsb2cuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmctY29uZmlnY2F0LXB1YmxpY2FwaS11aS9zcmMvbGliL2RpYWxvZ3MvY29uY3VycmVudC1kaWFsb2cvY29uY3VycmVudC1kaWFsb2cuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBVSxNQUFNLGVBQWUsQ0FBQzs7Ozs7QUFRbEQsTUFBTSxPQUFPLHlCQUF5QjtJQUVwQyxZQUNTLFNBQWt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1hcmdpbi1yaWdodDogMTBweDtcIiBtYXQtZmxhdC1idXR0b24gY29sb3I9XCJwcmltYXJ5XCIgKGNsaWNrKT1cImRpc2NhcmQoKVwiPkRpc2NhcmRcbiAgICAgICAgbG9jYWwgY2hhbmdlcyAmIHJlbG9hZDwvYnV0dG9uPlxuICAgIDxidXR0b24gdHlwZT1cImJ1dHRvblwiIG1hdC1zdHJva2VkLWJ1dHRvbiAoY2xpY2spPVwic2F2ZSgpXCI+U2F2ZSBhbnl3YXk8L2J1dHRvbj5cbjwvZGl2PiJdfQ==
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class ConcurrentDialogComponent implements OnInit {
|
|
5
|
-
dialogRef: MatDialogRef<ConcurrentDialogComponent>;
|
|
6
|
-
constructor(dialogRef: MatDialogRef<ConcurrentDialogComponent>);
|
|
7
|
-
ngOnInit(): void;
|
|
8
|
-
save(): void;
|
|
9
|
-
discard(): void;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ConcurrentDialogComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ConcurrentDialogComponent, "configcat-concurrent-dialog", never, {}, {}, never, never, false>;
|
|
12
|
-
}
|