ng-configcat-publicapi-ui 2.8.4 → 2.10.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/_services/public-api.service.mjs +3 -3
- package/esm2020/lib/_services/setting-list-form-helper.mjs +5 -5
- package/esm2020/lib/authorization/authorization.component.mjs +10 -10
- package/esm2020/lib/base/base.component.mjs +3 -3
- package/esm2020/lib/configuration.mjs +3 -3
- package/esm2020/lib/dialogs/concurrent-dialog/concurrent-dialog.component.mjs +4 -4
- package/esm2020/lib/dialogs/expand-dialog/expand-dialog.component.mjs +10 -10
- package/esm2020/lib/dialogs/reason-dialog/reason-dialog.component.mjs +9 -9
- package/esm2020/lib/dialogs/save-snackbar/save-snackbar.component.mjs +3 -3
- package/esm2020/lib/ng-configcat-publicapi-ui.module.mjs +23 -25
- package/esm2020/lib/selects/config-select/config-select.component.mjs +10 -10
- package/esm2020/lib/selects/environment-select/environment-select.component.mjs +10 -10
- package/esm2020/lib/selects/product-select/product-select.component.mjs +9 -9
- package/esm2020/lib/selects/setting-select/setting-select.component.mjs +9 -9
- package/esm2020/lib/setting-item/setting-item.component.mjs +3 -3
- package/esm2020/lib/setting-list/setting/rollout-percentage-items/rollout-percentage-items.component.mjs +10 -10
- package/esm2020/lib/setting-list/setting/rollout-rules/rollout-rules.component.mjs +21 -21
- package/esm2020/lib/setting-list/setting/setting.component.mjs +12 -12
- package/esm2020/lib/setting-list/setting/value/value.component.mjs +7 -7
- package/esm2020/lib/setting-list/setting-list.component.mjs +9 -9
- package/fesm2015/ng-configcat-publicapi-ui.mjs +184 -186
- package/fesm2015/ng-configcat-publicapi-ui.mjs.map +1 -1
- package/fesm2020/ng-configcat-publicapi-ui.mjs +182 -184
- package/fesm2020/ng-configcat-publicapi-ui.mjs.map +1 -1
- package/{ng-configcat-publicapi-ui.d.ts → index.d.ts} +0 -0
- package/lib/_services/setting-list-form-helper.d.ts +6 -6
- package/lib/authorization/authorization.component.d.ts +4 -4
- package/lib/base/base.component.d.ts +1 -1
- package/lib/dialogs/concurrent-dialog/concurrent-dialog.component.d.ts +1 -1
- package/lib/dialogs/expand-dialog/expand-dialog.component.d.ts +6 -6
- package/lib/dialogs/reason-dialog/reason-dialog.component.d.ts +4 -4
- package/lib/dialogs/save-snackbar/save-snackbar.component.d.ts +1 -1
- package/lib/selects/config-select/config-select.component.d.ts +3 -3
- package/lib/selects/environment-select/environment-select.component.d.ts +3 -3
- package/lib/selects/product-select/product-select.component.d.ts +3 -3
- package/lib/selects/setting-select/setting-select.component.d.ts +3 -3
- package/lib/setting-item/setting-item.component.d.ts +1 -1
- package/lib/setting-list/setting/rollout-percentage-items/rollout-percentage-items.component.d.ts +9 -9
- package/lib/setting-list/setting/rollout-rules/rollout-rules.component.d.ts +14 -14
- package/lib/setting-list/setting/setting.component.d.ts +7 -7
- package/lib/setting-list/setting/value/value.component.d.ts +3 -3
- package/lib/setting-list/setting-list.component.d.ts +5 -5
- package/package.json +6 -6
|
File without changes
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { SettingValuesModel } from '../_models/settingValuesModel';
|
|
2
|
-
import {
|
|
2
|
+
import { UntypedFormBuilder, UntypedFormGroup } from '@angular/forms';
|
|
3
3
|
import { RolloutPercentageItemModel, RolloutRuleModel, SettingType, SettingValueModel } from 'ng-configcat-publicapi';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class SettingListFormHelper {
|
|
6
6
|
private formBuilder;
|
|
7
|
-
constructor(formBuilder:
|
|
8
|
-
createSettingValuesFormGroup(settingValuesModel: SettingValuesModel):
|
|
9
|
-
createSettingValueFormGroup(settingValueModel: SettingValueModel, readOnly: boolean):
|
|
10
|
-
createRolloutPercentageItemFormGroup(p: RolloutPercentageItemModel, readOnly: boolean, settingType: SettingType | undefined):
|
|
11
|
-
createRolloutRuleFormGroup(r: RolloutRuleModel, readOnly: boolean, settingType: SettingType | undefined):
|
|
7
|
+
constructor(formBuilder: UntypedFormBuilder);
|
|
8
|
+
createSettingValuesFormGroup(settingValuesModel: SettingValuesModel): UntypedFormGroup;
|
|
9
|
+
createSettingValueFormGroup(settingValueModel: SettingValueModel, readOnly: boolean): UntypedFormGroup;
|
|
10
|
+
createRolloutPercentageItemFormGroup(p: RolloutPercentageItemModel, readOnly: boolean, settingType: SettingType | undefined): UntypedFormGroup;
|
|
11
|
+
createRolloutRuleFormGroup(r: RolloutRuleModel, readOnly: boolean, settingType: SettingType | undefined): UntypedFormGroup;
|
|
12
12
|
private getValidatorsForSettingType;
|
|
13
13
|
private getAllRolloutRules;
|
|
14
14
|
private getComparisonAttributes;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { OnInit, EventEmitter } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { UntypedFormGroup, UntypedFormBuilder } from '@angular/forms';
|
|
3
3
|
import { PublicApiService } from '../_services';
|
|
4
4
|
import { FormHelper } from '../_services/form-helper';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class AuthorizationComponent implements OnInit {
|
|
7
7
|
private formBuilder;
|
|
8
8
|
private publicApiService;
|
|
9
|
-
formGroup:
|
|
9
|
+
formGroup: UntypedFormGroup;
|
|
10
10
|
basePath: null;
|
|
11
11
|
integrationName: string;
|
|
12
12
|
authorized: EventEmitter<any>;
|
|
13
13
|
FormHelper: typeof FormHelper;
|
|
14
|
-
constructor(formBuilder:
|
|
14
|
+
constructor(formBuilder: UntypedFormBuilder, publicApiService: PublicApiService);
|
|
15
15
|
ngOnInit(): void;
|
|
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>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AuthorizationComponent, "configcat-authorization", never, { "basePath": "basePath"; "integrationName": "integrationName"; }, { "authorized": "authorized"; }, never, never, false>;
|
|
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>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaseComponent, "base", never, { "basePath": "basePath"; "basicAuthUsername": "basicAuthUsername"; "basicAuthPassword": "basicAuthPassword"; }, {}, never, never, false>;
|
|
17
17
|
}
|
|
@@ -8,5 +8,5 @@ export declare class ConcurrentDialogComponent implements OnInit {
|
|
|
8
8
|
save(): void;
|
|
9
9
|
discard(): void;
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<ConcurrentDialogComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ConcurrentDialogComponent, "configcat-concurrent-dialog", never, {}, {}, never, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConcurrentDialogComponent, "configcat-concurrent-dialog", never, {}, {}, never, never, false>;
|
|
12
12
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
2
|
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
3
|
import { Subscription } from 'rxjs';
|
|
4
|
-
import {
|
|
4
|
+
import { UntypedFormBuilder, UntypedFormGroup, UntypedFormArray, UntypedFormControl } from '@angular/forms';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class ExpandDialogComponent implements OnInit, OnDestroy {
|
|
7
7
|
dialogRef: MatDialogRef<ExpandDialogComponent>;
|
|
@@ -9,16 +9,16 @@ export declare class ExpandDialogComponent implements OnInit, OnDestroy {
|
|
|
9
9
|
data: any;
|
|
10
10
|
formControlSubscription: Subscription | null;
|
|
11
11
|
formGroupSubscription: Subscription | null;
|
|
12
|
-
formGroup:
|
|
13
|
-
constructor(dialogRef: MatDialogRef<ExpandDialogComponent>, formBuilder:
|
|
12
|
+
formGroup: UntypedFormGroup;
|
|
13
|
+
constructor(dialogRef: MatDialogRef<ExpandDialogComponent>, formBuilder: UntypedFormBuilder, data: any);
|
|
14
14
|
ngOnInit(): void;
|
|
15
|
-
values():
|
|
16
|
-
getValueControls():
|
|
15
|
+
values(): UntypedFormArray;
|
|
16
|
+
getValueControls(): UntypedFormControl[];
|
|
17
17
|
buildFormGroup(): void;
|
|
18
18
|
add(): void;
|
|
19
19
|
remove(index: any): void;
|
|
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>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ExpandDialogComponent, "configcat-expand-dialog", never, {}, {}, never, never, false>;
|
|
24
24
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
-
import {
|
|
3
|
+
import { UntypedFormGroup, UntypedFormBuilder } from '@angular/forms';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class ReasonDialogComponent implements OnInit {
|
|
6
6
|
dialogRef: MatDialogRef<ReasonDialogComponent>;
|
|
7
7
|
private formBuilder;
|
|
8
|
-
formGroup:
|
|
9
|
-
constructor(dialogRef: MatDialogRef<ReasonDialogComponent>, formBuilder:
|
|
8
|
+
formGroup: UntypedFormGroup;
|
|
9
|
+
constructor(dialogRef: MatDialogRef<ReasonDialogComponent>, formBuilder: UntypedFormBuilder);
|
|
10
10
|
ngOnInit(): void;
|
|
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>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ReasonDialogComponent, "configcat-reason-dialog", never, {}, {}, never, never, false>;
|
|
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>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SaveSnackbarComponent, "configcat-save-snackbar", never, {}, {}, never, never, false>;
|
|
8
8
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { OnInit, OnChanges } from '@angular/core';
|
|
2
2
|
import { BaseComponent } from '../../base/base.component';
|
|
3
3
|
import { ConfigModel } from 'ng-configcat-publicapi';
|
|
4
|
-
import {
|
|
4
|
+
import { UntypedFormControl } from '@angular/forms';
|
|
5
5
|
import { PublicApiService } from '../../_services';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class ConfigSelectComponent extends BaseComponent implements OnInit, OnChanges {
|
|
8
|
-
valueFormControl:
|
|
8
|
+
valueFormControl: UntypedFormControl;
|
|
9
9
|
productId: string;
|
|
10
10
|
configs: ConfigModel[];
|
|
11
11
|
constructor(publicApiService: PublicApiService);
|
|
@@ -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>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConfigSelectComponent, "configcat-config-select", never, { "valueFormControl": "valueFormControl"; "productId": "productId"; }, {}, never, never, false>;
|
|
17
17
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { OnInit, OnChanges } from '@angular/core';
|
|
2
2
|
import { BaseComponent } from '../../base/base.component';
|
|
3
3
|
import { EnvironmentModel } from 'ng-configcat-publicapi';
|
|
4
|
-
import {
|
|
4
|
+
import { UntypedFormControl } from '@angular/forms';
|
|
5
5
|
import { PublicApiService } from '../../_services';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class EnvironmentSelectComponent extends BaseComponent implements OnInit, OnChanges {
|
|
8
|
-
valueFormControl:
|
|
8
|
+
valueFormControl: UntypedFormControl;
|
|
9
9
|
productId: string;
|
|
10
10
|
environments: EnvironmentModel[];
|
|
11
11
|
constructor(publicApiService: PublicApiService);
|
|
@@ -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>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EnvironmentSelectComponent, "configcat-environment-select", never, { "valueFormControl": "valueFormControl"; "productId": "productId"; }, {}, never, never, false>;
|
|
17
17
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { BaseComponent } from '../../base/base.component';
|
|
3
3
|
import { ProductModel } from 'ng-configcat-publicapi';
|
|
4
|
-
import {
|
|
4
|
+
import { UntypedFormControl } from '@angular/forms';
|
|
5
5
|
import { PublicApiService } from '../../_services';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class ProductSelectComponent extends BaseComponent implements OnInit {
|
|
8
|
-
valueFormControl:
|
|
8
|
+
valueFormControl: UntypedFormControl;
|
|
9
9
|
products: ProductModel[];
|
|
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>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductSelectComponent, "configcat-product-select", never, { "valueFormControl": "valueFormControl"; }, {}, never, never, false>;
|
|
14
14
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { OnInit, OnChanges } from '@angular/core';
|
|
2
2
|
import { BaseComponent } from '../../base/base.component';
|
|
3
3
|
import { SettingModel } from 'ng-configcat-publicapi';
|
|
4
|
-
import {
|
|
4
|
+
import { UntypedFormControl } from '@angular/forms';
|
|
5
5
|
import { PublicApiService } from '../../_services';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class SettingSelectComponent extends BaseComponent implements OnInit, OnChanges {
|
|
8
|
-
valueFormControl:
|
|
8
|
+
valueFormControl: UntypedFormControl;
|
|
9
9
|
configId: string;
|
|
10
10
|
settings: SettingModel[];
|
|
11
11
|
constructor(publicApiService: PublicApiService);
|
|
@@ -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>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SettingSelectComponent, "configcat-setting-select", never, { "valueFormControl": "valueFormControl"; "configId": "configId"; }, {}, never, never, false>;
|
|
17
17
|
}
|
|
@@ -33,5 +33,5 @@ export declare class SettingItemComponent extends BaseComponent implements OnIni
|
|
|
33
33
|
onDeleteSettingRequested(setting: any): void;
|
|
34
34
|
onFormValuesChanged(): void;
|
|
35
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<SettingItemComponent, never>;
|
|
36
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SettingItemComponent, "configcat-setting-item", never, { "productId": "productId"; "environmentId": "environmentId"; "configId": "configId"; "settingId": "settingId"; "canEditSetting": "canEditSetting"; "canDeleteSetting": "canDeleteSetting"; "deleteSettingText": "deleteSettingText"; "showEnvironmentName": "showEnvironmentName"; }, { "editSettingRequested": "editSettingRequested"; "deleteSettingRequested": "deleteSettingRequested"; "loadSucceeded": "loadSucceeded"; "loadFailed": "loadFailed"; "saveSucceeded": "saveSucceeded"; "saveFailed": "saveFailed"; "formValuesChanged": "formValuesChanged"; }, never, never>;
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SettingItemComponent, "configcat-setting-item", never, { "productId": "productId"; "environmentId": "environmentId"; "configId": "configId"; "settingId": "settingId"; "canEditSetting": "canEditSetting"; "canDeleteSetting": "canDeleteSetting"; "deleteSettingText": "deleteSettingText"; "showEnvironmentName": "showEnvironmentName"; }, { "editSettingRequested": "editSettingRequested"; "deleteSettingRequested": "deleteSettingRequested"; "loadSucceeded": "loadSucceeded"; "loadFailed": "loadFailed"; "saveSucceeded": "saveSucceeded"; "saveFailed": "saveFailed"; "formValuesChanged": "formValuesChanged"; }, never, never, false>;
|
|
37
37
|
}
|
package/lib/setting-list/setting/rollout-percentage-items/rollout-percentage-items.component.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UntypedFormGroup, UntypedFormArray, UntypedFormControl } from '@angular/forms';
|
|
2
2
|
import { SettingType } from 'ng-configcat-publicapi';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class RolloutPercentageItemsComponent {
|
|
5
|
-
formGroup:
|
|
5
|
+
formGroup: UntypedFormGroup;
|
|
6
6
|
readOnly: boolean;
|
|
7
7
|
SettingType: {
|
|
8
8
|
Boolean: SettingType;
|
|
@@ -11,17 +11,17 @@ export declare class RolloutPercentageItemsComponent {
|
|
|
11
11
|
Double: SettingType;
|
|
12
12
|
};
|
|
13
13
|
setting(): any;
|
|
14
|
-
rolloutRules():
|
|
15
|
-
rolloutPercentageItems():
|
|
16
|
-
rolloutPercentageItemsSum():
|
|
17
|
-
value(rolloutPercentageItem:
|
|
14
|
+
rolloutRules(): UntypedFormArray;
|
|
15
|
+
rolloutPercentageItems(): UntypedFormArray;
|
|
16
|
+
rolloutPercentageItemsSum(): UntypedFormControl;
|
|
17
|
+
value(rolloutPercentageItem: UntypedFormGroup): UntypedFormControl;
|
|
18
18
|
constructor();
|
|
19
19
|
percentageChanged(index: number): void;
|
|
20
20
|
updateSum(): void;
|
|
21
21
|
removeRolloutPercentageItem(index: number): void;
|
|
22
22
|
removeAll(): void;
|
|
23
|
-
getRolloutPercentageItemFormGroups():
|
|
24
|
-
getPercentageFormControl(rolloutPercentageItem: any):
|
|
23
|
+
getRolloutPercentageItemFormGroups(): UntypedFormGroup[];
|
|
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>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RolloutPercentageItemsComponent, "configcat-rollout-percentage-items", never, { "formGroup": "formGroup"; "readOnly": "readOnly"; }, {}, never, never, false>;
|
|
27
27
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UntypedFormGroup, UntypedFormControl, UntypedFormArray } from '@angular/forms';
|
|
2
2
|
import { MatDialog } from '@angular/material/dialog';
|
|
3
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
|
-
formGroup:
|
|
7
|
+
formGroup: UntypedFormGroup;
|
|
8
8
|
readOnly: boolean;
|
|
9
9
|
segments: SegmentListModel[];
|
|
10
10
|
SettingType: {
|
|
@@ -25,36 +25,36 @@ export declare class RolloutRulesComponent {
|
|
|
25
25
|
constructor(dialog: MatDialog);
|
|
26
26
|
onlyFirstTooltip(): boolean;
|
|
27
27
|
setting(): any;
|
|
28
|
-
rolloutRules():
|
|
28
|
+
rolloutRules(): UntypedFormArray;
|
|
29
29
|
comparisonAttributes(): any;
|
|
30
30
|
removeRule(index: any): void;
|
|
31
31
|
onDrop(event: any): void;
|
|
32
|
-
attributeChanged(event: any, comparisonAttribute:
|
|
32
|
+
attributeChanged(event: any, comparisonAttribute: UntypedFormControl): void;
|
|
33
33
|
getPlaceHolder(rolloutRule: any): "" | "e.g: user_id1, user_id2, user_id3" | "e.g: jane@example.com, john@example.com" | "e.g: France, Brazil" | "e.g: value1, value2, value3" | "part-of-id" | "e.g: @example.com" | "e.g: United" | "e.g: any-part-of-your-value-string" | "e.g: 1.0.0, 2.0.1" | "e.g: 1.0.0" | "e.g: 42";
|
|
34
34
|
getComparisonValueType(rolloutRule: any): "text" | "number";
|
|
35
35
|
getInfoClass(rolloutRule: any): "warn" | "info";
|
|
36
36
|
getInfoTooltip(rolloutRule: any): "Learn more about comparators" | "Consider using sensitive text comparators. Click to learn more." | "Click to learn more about comparators";
|
|
37
37
|
comparatorChanged(rolloutRule: any): void;
|
|
38
38
|
isListType(rolloutRule: any): boolean;
|
|
39
|
-
validateSemVer(c:
|
|
39
|
+
validateSemVer(c: UntypedFormControl): {
|
|
40
40
|
validateSemVer: {
|
|
41
41
|
valid: boolean;
|
|
42
42
|
};
|
|
43
43
|
} | null;
|
|
44
|
-
validateSemVerList(c:
|
|
44
|
+
validateSemVerList(c: UntypedFormControl): {
|
|
45
45
|
validateSemVerList: {
|
|
46
46
|
valid: boolean;
|
|
47
47
|
};
|
|
48
48
|
} | null;
|
|
49
49
|
popOut(rolloutRule: any): void;
|
|
50
50
|
trackByIndex(index: number): any;
|
|
51
|
-
getRolloutRuleValueFormControl(rolloutRule: any):
|
|
52
|
-
getRolloutRuleComparisonValueFormControl(rolloutRule: any):
|
|
53
|
-
getRolloutRuleComparisonAttributeFormControl(rolloutRule: any):
|
|
54
|
-
getRolloutRuleTypeFormControl(rolloutRule: any):
|
|
55
|
-
getRolloutRuleComparatorFormControl(rolloutRule: any):
|
|
56
|
-
getRolloutRuleSegmentComparatorFormControl(rolloutRule: any):
|
|
57
|
-
getRolloutRuleSegmentIdFormControl(rolloutRule: any):
|
|
51
|
+
getRolloutRuleValueFormControl(rolloutRule: any): UntypedFormControl;
|
|
52
|
+
getRolloutRuleComparisonValueFormControl(rolloutRule: any): UntypedFormControl;
|
|
53
|
+
getRolloutRuleComparisonAttributeFormControl(rolloutRule: any): UntypedFormControl;
|
|
54
|
+
getRolloutRuleTypeFormControl(rolloutRule: any): UntypedFormControl;
|
|
55
|
+
getRolloutRuleComparatorFormControl(rolloutRule: any): UntypedFormControl;
|
|
56
|
+
getRolloutRuleSegmentComparatorFormControl(rolloutRule: any): UntypedFormControl;
|
|
57
|
+
getRolloutRuleSegmentIdFormControl(rolloutRule: any): UntypedFormControl;
|
|
58
58
|
static ɵfac: i0.ɵɵFactoryDeclaration<RolloutRulesComponent, never>;
|
|
59
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RolloutRulesComponent, "configcat-rollout-rules", never, { "formGroup": "formGroup"; "readOnly": "readOnly"; "segments": "segments"; }, {}, never, never>;
|
|
59
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RolloutRulesComponent, "configcat-rollout-rules", never, { "formGroup": "formGroup"; "readOnly": "readOnly"; "segments": "segments"; }, {}, never, never, false>;
|
|
60
60
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnInit, EventEmitter, ChangeDetectorRef } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { UntypedFormGroup, UntypedFormArray, UntypedFormControl } from '@angular/forms';
|
|
3
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";
|
|
@@ -10,7 +10,7 @@ export declare class SettingComponent implements OnInit {
|
|
|
10
10
|
productId: string;
|
|
11
11
|
environmentId: string;
|
|
12
12
|
configId: string;
|
|
13
|
-
formGroup:
|
|
13
|
+
formGroup: UntypedFormGroup;
|
|
14
14
|
readOnly: boolean;
|
|
15
15
|
canEditSetting: boolean;
|
|
16
16
|
canDeleteSetting: boolean;
|
|
@@ -30,10 +30,10 @@ export declare class SettingComponent implements OnInit {
|
|
|
30
30
|
ngOnInit(): void;
|
|
31
31
|
environment(): any;
|
|
32
32
|
setting(): any;
|
|
33
|
-
integrationLinks():
|
|
34
|
-
rolloutRules():
|
|
35
|
-
rolloutPercentageItems():
|
|
36
|
-
value():
|
|
33
|
+
integrationLinks(): UntypedFormArray;
|
|
34
|
+
rolloutRules(): UntypedFormArray;
|
|
35
|
+
rolloutPercentageItems(): UntypedFormArray;
|
|
36
|
+
value(): UntypedFormControl;
|
|
37
37
|
addRolloutRule(): void;
|
|
38
38
|
addSegmentRolloutRule(): void;
|
|
39
39
|
removeRolloutRules(): void;
|
|
@@ -43,5 +43,5 @@ export declare class SettingComponent implements OnInit {
|
|
|
43
43
|
deleteSetting(): void;
|
|
44
44
|
getDashboardUrl(): string;
|
|
45
45
|
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"; "canEditSetting": "canEditSetting"; "canDeleteSetting": "canDeleteSetting"; "deleteSettingText": "deleteSettingText"; "showEnvironmentName": "showEnvironmentName"; "segments": "segments"; }, { "editSettingRequested": "editSettingRequested"; "deleteSettingRequested": "deleteSettingRequested"; }, never, never>;
|
|
46
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SettingComponent, "setting", never, { "dashboardBasePath": "dashboardBasePath"; "productId": "productId"; "environmentId": "environmentId"; "configId": "configId"; "formGroup": "formGroup"; "readOnly": "readOnly"; "canEditSetting": "canEditSetting"; "canDeleteSetting": "canDeleteSetting"; "deleteSettingText": "deleteSettingText"; "showEnvironmentName": "showEnvironmentName"; "segments": "segments"; }, { "editSettingRequested": "editSettingRequested"; "deleteSettingRequested": "deleteSettingRequested"; }, never, never, false>;
|
|
47
47
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UntypedFormControl } from '@angular/forms';
|
|
2
2
|
import { MatDialog } from '@angular/material/dialog';
|
|
3
3
|
import { SettingModel, SettingType } from 'ng-configcat-publicapi';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class ValueComponent {
|
|
6
6
|
private dialog;
|
|
7
|
-
valueFormControl:
|
|
7
|
+
valueFormControl: UntypedFormControl;
|
|
8
8
|
setting: SettingModel;
|
|
9
9
|
SettingType: {
|
|
10
10
|
Boolean: SettingType;
|
|
@@ -15,5 +15,5 @@ export declare class ValueComponent {
|
|
|
15
15
|
constructor(dialog: MatDialog);
|
|
16
16
|
popOut(): void;
|
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<ValueComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ValueComponent, "configcat-value", never, { "valueFormControl": "valueFormControl"; "setting": "setting"; }, {}, never, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ValueComponent, "configcat-value", never, { "valueFormControl": "valueFormControl"; "setting": "setting"; }, {}, never, never, false>;
|
|
19
19
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnInit, EventEmitter, OnDestroy, OnChanges } from '@angular/core';
|
|
2
2
|
import { SettingValuesModel, UpdateSettingValuesModel } from '../_models';
|
|
3
|
-
import {
|
|
3
|
+
import { UntypedFormArray, UntypedFormGroup } from '@angular/forms';
|
|
4
4
|
import { Observable, Subscription } from 'rxjs';
|
|
5
5
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
6
6
|
import { MatDialog } from '@angular/material/dialog';
|
|
@@ -29,7 +29,7 @@ export declare class SettingListComponent implements OnInit, OnChanges, OnDestro
|
|
|
29
29
|
loading: boolean;
|
|
30
30
|
settingValues: SettingValuesModel;
|
|
31
31
|
segments: SegmentListModel[];
|
|
32
|
-
formGroup:
|
|
32
|
+
formGroup: UntypedFormGroup;
|
|
33
33
|
submitting: boolean;
|
|
34
34
|
showRevertQuestion: boolean;
|
|
35
35
|
showFeedBackMessage: boolean;
|
|
@@ -40,8 +40,8 @@ export declare class SettingListComponent implements OnInit, OnChanges, OnDestro
|
|
|
40
40
|
ngOnDestroy(): void;
|
|
41
41
|
reloadSettingValues(): void;
|
|
42
42
|
createFormGroup(): void;
|
|
43
|
-
settingValuesFormArray():
|
|
44
|
-
getSettingValueFormGroups():
|
|
43
|
+
settingValuesFormArray(): UntypedFormArray;
|
|
44
|
+
getSettingValueFormGroups(): UntypedFormGroup[];
|
|
45
45
|
submit(): void;
|
|
46
46
|
updateSettingValues(updateSettingValuesModel: any): void;
|
|
47
47
|
handleRevertYes(): void;
|
|
@@ -49,5 +49,5 @@ export declare class SettingListComponent implements OnInit, OnChanges, OnDestro
|
|
|
49
49
|
onEditSettingRequested(setting: any): void;
|
|
50
50
|
onDeleteSettingRequested(setting: any): void;
|
|
51
51
|
static ɵfac: i0.ɵɵFactoryDeclaration<SettingListComponent, never>;
|
|
52
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SettingListComponent, "configcat-setting-list", never, { "productId": "productId"; "environmentId": "environmentId"; "configId": "configId"; "dashboardBasePath": "dashboardBasePath"; "canEditSetting": "canEditSetting"; "canDeleteSetting": "canDeleteSetting"; "onSave": "onSave"; "loadSettingValues": "loadSettingValues"; "loadSegments": "loadSegments"; "deleteSettingText": "deleteSettingText"; "showEnvironmentName": "showEnvironmentName"; }, { "editSettingRequested": "editSettingRequested"; "deleteSettingRequested": "deleteSettingRequested"; "formValuesChanged": "formValuesChanged"; }, never, never>;
|
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SettingListComponent, "configcat-setting-list", never, { "productId": "productId"; "environmentId": "environmentId"; "configId": "configId"; "dashboardBasePath": "dashboardBasePath"; "canEditSetting": "canEditSetting"; "canDeleteSetting": "canDeleteSetting"; "onSave": "onSave"; "loadSettingValues": "loadSettingValues"; "loadSegments": "loadSegments"; "deleteSettingText": "deleteSettingText"; "showEnvironmentName": "showEnvironmentName"; }, { "editSettingRequested": "editSettingRequested"; "deleteSettingRequested": "deleteSettingRequested"; "formValuesChanged": "formValuesChanged"; }, never, never, false>;
|
|
53
53
|
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ng-configcat-publicapi-ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/common": "^
|
|
6
|
-
"@angular/core": "^
|
|
7
|
-
"ng-configcat-publicapi": "^2.
|
|
5
|
+
"@angular/common": "^14.1.1",
|
|
6
|
+
"@angular/core": "^14.1.1",
|
|
7
|
+
"ng-configcat-publicapi": "^2.9.0",
|
|
8
8
|
"semver": "^7.3.5"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
"esm2020": "esm2020/ng-configcat-publicapi-ui.mjs",
|
|
16
16
|
"fesm2020": "fesm2020/ng-configcat-publicapi-ui.mjs",
|
|
17
17
|
"fesm2015": "fesm2015/ng-configcat-publicapi-ui.mjs",
|
|
18
|
-
"typings": "
|
|
18
|
+
"typings": "index.d.ts",
|
|
19
19
|
"exports": {
|
|
20
20
|
"./package.json": {
|
|
21
21
|
"default": "./package.json"
|
|
22
22
|
},
|
|
23
23
|
".": {
|
|
24
|
-
"types": "./
|
|
24
|
+
"types": "./index.d.ts",
|
|
25
25
|
"esm2020": "./esm2020/ng-configcat-publicapi-ui.mjs",
|
|
26
26
|
"es2020": "./fesm2020/ng-configcat-publicapi-ui.mjs",
|
|
27
27
|
"es2015": "./fesm2015/ng-configcat-publicapi-ui.mjs",
|