ng-configcat-publicapi-ui 2.3.1 → 2.5.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/README.md +15 -15
- package/{esm2015/lib/_models/index.js → esm2020/lib/_models/index.mjs} +3 -3
- package/esm2020/lib/_models/settingValuesModel.mjs +2 -0
- package/{esm2015/lib/_models/updateSettingValuesModel.js → esm2020/lib/_models/updateSettingValuesModel.mjs} +2 -2
- package/esm2020/lib/_services/form-helper.mjs +21 -0
- package/{esm2015/lib/_services/index.js → esm2020/lib/_services/index.mjs} +2 -2
- package/esm2020/lib/_services/public-api.service.mjs +68 -0
- package/esm2020/lib/_services/setting-list-form-helper.mjs +152 -0
- package/esm2020/lib/authorization/authorization.component.mjs +50 -0
- package/esm2020/lib/base/base.component.mjs +45 -0
- package/esm2020/lib/configuration.mjs +13 -0
- package/esm2020/lib/dialogs/concurrent-dialog/concurrent-dialog.component.mjs +25 -0
- package/esm2020/lib/dialogs/expand-dialog/expand-dialog.component.mjs +77 -0
- package/esm2020/lib/dialogs/reason-dialog/reason-dialog.component.mjs +36 -0
- package/esm2020/lib/dialogs/save-snackbar/save-snackbar.component.mjs +14 -0
- package/esm2020/lib/ng-configcat-publicapi-ui.module.mjs +160 -0
- package/esm2020/lib/selects/config-select/config-select.component.mjs +56 -0
- package/esm2020/lib/selects/environment-select/environment-select.component.mjs +43 -0
- package/esm2020/lib/selects/product-select/product-select.component.mjs +36 -0
- package/esm2020/lib/selects/setting-select/setting-select.component.mjs +43 -0
- package/esm2020/lib/setting-item/setting-item.component.mjs +129 -0
- package/esm2020/lib/setting-list/setting/rollout-percentage-items/rollout-percentage-items.component.mjs +81 -0
- package/esm2020/lib/setting-list/setting/rollout-rules/rollout-rules.component.mjs +295 -0
- package/esm2020/lib/setting-list/setting/setting.component.mjs +137 -0
- package/esm2020/lib/setting-list/setting/value/value.component.mjs +32 -0
- package/esm2020/lib/setting-list/setting-list.component.mjs +200 -0
- package/esm2020/ng-configcat-publicapi-ui.mjs +5 -0
- package/{esm2015/public-api.js → esm2020/public-api.mjs} +12 -12
- package/fesm2015/ng-configcat-publicapi-ui.mjs +1588 -0
- package/fesm2015/ng-configcat-publicapi-ui.mjs.map +1 -0
- package/fesm2020/ng-configcat-publicapi-ui.mjs +1569 -0
- package/fesm2020/ng-configcat-publicapi-ui.mjs.map +1 -0
- package/lib/_models/index.d.ts +2 -2
- package/lib/_models/settingValuesModel.d.ts +11 -11
- package/lib/_models/updateSettingValuesModel.d.ts +7 -7
- package/lib/_services/form-helper.d.ts +4 -4
- package/lib/_services/index.d.ts +1 -1
- package/lib/_services/public-api.service.d.ts +19 -15
- package/lib/_services/setting-list-form-helper.d.ts +17 -14
- package/lib/authorization/authorization.component.d.ts +18 -15
- package/lib/base/base.component.d.ts +17 -13
- package/lib/configuration.d.ts +8 -5
- package/lib/dialogs/concurrent-dialog/concurrent-dialog.component.d.ts +12 -9
- package/lib/dialogs/expand-dialog/expand-dialog.component.d.ts +24 -20
- package/lib/dialogs/reason-dialog/reason-dialog.component.d.ts +15 -12
- package/lib/dialogs/save-snackbar/save-snackbar.component.d.ts +8 -5
- package/lib/ng-configcat-publicapi-ui.module.d.ts +44 -6
- package/lib/selects/config-select/config-select.component.d.ts +17 -14
- package/lib/selects/environment-select/environment-select.component.d.ts +17 -14
- package/lib/selects/product-select/product-select.component.d.ts +14 -11
- package/lib/selects/setting-select/setting-select.component.d.ts +17 -14
- package/lib/setting-item/setting-item.component.d.ts +37 -31
- package/lib/setting-list/setting/rollout-percentage-items/rollout-percentage-items.component.d.ts +27 -22
- package/lib/setting-list/setting/rollout-rules/rollout-rules.component.d.ts +60 -46
- package/lib/setting-list/setting/setting.component.d.ts +43 -37
- package/lib/setting-list/setting/value/value.component.d.ts +19 -16
- package/lib/setting-list/setting-list.component.d.ts +50 -42
- package/ng-configcat-publicapi-ui.d.ts +5 -18
- package/package.json +26 -21
- package/public-api.d.ts +8 -8
- package/bundles/ng-configcat-publicapi-ui.umd.js +0 -1826
- package/bundles/ng-configcat-publicapi-ui.umd.js.map +0 -1
- package/esm2015/lib/_models/settingValuesModel.js +0 -2
- package/esm2015/lib/_services/form-helper.js +0 -21
- package/esm2015/lib/_services/public-api.service.js +0 -71
- package/esm2015/lib/_services/setting-list-form-helper.js +0 -128
- package/esm2015/lib/authorization/authorization.component.js +0 -49
- package/esm2015/lib/base/base.component.js +0 -40
- package/esm2015/lib/configuration.js +0 -10
- package/esm2015/lib/dialogs/concurrent-dialog/concurrent-dialog.component.js +0 -26
- package/esm2015/lib/dialogs/expand-dialog/expand-dialog.component.js +0 -70
- package/esm2015/lib/dialogs/reason-dialog/reason-dialog.component.js +0 -35
- package/esm2015/lib/dialogs/save-snackbar/save-snackbar.component.js +0 -15
- package/esm2015/lib/ng-configcat-publicapi-ui.module.js +0 -100
- package/esm2015/lib/selects/config-select/config-select.component.js +0 -48
- package/esm2015/lib/selects/environment-select/environment-select.component.js +0 -40
- package/esm2015/lib/selects/product-select/product-select.component.js +0 -34
- package/esm2015/lib/selects/setting-select/setting-select.component.js +0 -40
- package/esm2015/lib/setting-item/setting-item.component.js +0 -106
- package/esm2015/lib/setting-list/setting/rollout-percentage-items/rollout-percentage-items.component.js +0 -69
- package/esm2015/lib/setting-list/setting/rollout-rules/rollout-rules.component.js +0 -260
- package/esm2015/lib/setting-list/setting/setting.component.js +0 -112
- package/esm2015/lib/setting-list/setting/value/value.component.js +0 -31
- package/esm2015/lib/setting-list/setting-list.component.js +0 -179
- package/esm2015/ng-configcat-publicapi-ui.js +0 -19
- package/fesm2015/ng-configcat-publicapi-ui.js +0 -1415
- package/fesm2015/ng-configcat-publicapi-ui.js.map +0 -1
- package/ng-configcat-publicapi-ui.metadata.json +0 -1
|
@@ -1,20 +1,24 @@
|
|
|
1
|
-
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
|
-
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
-
import { Subscription } from 'rxjs';
|
|
4
|
-
import { FormBuilder, FormGroup, FormArray } from '@angular/forms';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import { Subscription } from 'rxjs';
|
|
4
|
+
import { FormBuilder, FormGroup, FormArray, FormControl } from '@angular/forms';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ExpandDialogComponent implements OnInit, OnDestroy {
|
|
7
|
+
dialogRef: MatDialogRef<ExpandDialogComponent>;
|
|
8
|
+
private formBuilder;
|
|
9
|
+
data: any;
|
|
10
|
+
formControlSubscription: Subscription | null;
|
|
11
|
+
formGroupSubscription: Subscription | null;
|
|
12
|
+
formGroup: FormGroup;
|
|
13
|
+
constructor(dialogRef: MatDialogRef<ExpandDialogComponent>, formBuilder: FormBuilder, data: any);
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
values(): FormArray;
|
|
16
|
+
getValueControls(): FormControl[];
|
|
17
|
+
buildFormGroup(): void;
|
|
18
|
+
add(): void;
|
|
19
|
+
remove(index: any): void;
|
|
20
|
+
ngOnDestroy(): void;
|
|
21
|
+
close(): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExpandDialogComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ExpandDialogComponent, "configcat-expand-dialog", never, {}, {}, never, never>;
|
|
24
|
+
}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
-
import { FormGroup, FormBuilder } from '@angular/forms';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import { FormGroup, FormBuilder } from '@angular/forms';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ReasonDialogComponent implements OnInit {
|
|
6
|
+
dialogRef: MatDialogRef<ReasonDialogComponent>;
|
|
7
|
+
private formBuilder;
|
|
8
|
+
formGroup: FormGroup;
|
|
9
|
+
constructor(dialogRef: MatDialogRef<ReasonDialogComponent>, formBuilder: FormBuilder);
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
handleSaveButton(): void;
|
|
12
|
+
cancel(): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ReasonDialogComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ReasonDialogComponent, "configcat-reason-dialog", never, {}, {}, never, never>;
|
|
15
|
+
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SaveSnackbarComponent implements OnInit {
|
|
4
|
+
constructor();
|
|
5
|
+
ngOnInit(): void;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SaveSnackbarComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SaveSnackbarComponent, "configcat-save-snackbar", never, {}, {}, never, never>;
|
|
8
|
+
}
|
|
@@ -1,6 +1,44 @@
|
|
|
1
|
-
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
-
import { Configuration } from './configuration';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
+
import { Configuration } from './configuration';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "./base/base.component";
|
|
5
|
+
import * as i2 from "./selects/product-select/product-select.component";
|
|
6
|
+
import * as i3 from "./selects/config-select/config-select.component";
|
|
7
|
+
import * as i4 from "./selects/environment-select/environment-select.component";
|
|
8
|
+
import * as i5 from "./selects/setting-select/setting-select.component";
|
|
9
|
+
import * as i6 from "./setting-item/setting-item.component";
|
|
10
|
+
import * as i7 from "./authorization/authorization.component";
|
|
11
|
+
import * as i8 from "./setting-list/setting-list.component";
|
|
12
|
+
import * as i9 from "./setting-list/setting/setting.component";
|
|
13
|
+
import * as i10 from "./setting-list/setting/rollout-percentage-items/rollout-percentage-items.component";
|
|
14
|
+
import * as i11 from "./setting-list/setting/rollout-rules/rollout-rules.component";
|
|
15
|
+
import * as i12 from "./setting-list/setting/value/value.component";
|
|
16
|
+
import * as i13 from "./dialogs/reason-dialog/reason-dialog.component";
|
|
17
|
+
import * as i14 from "./dialogs/concurrent-dialog/concurrent-dialog.component";
|
|
18
|
+
import * as i15 from "./dialogs/save-snackbar/save-snackbar.component";
|
|
19
|
+
import * as i16 from "./dialogs/expand-dialog/expand-dialog.component";
|
|
20
|
+
import * as i17 from "@angular/common";
|
|
21
|
+
import * as i18 from "@angular/forms";
|
|
22
|
+
import * as i19 from "@angular/platform-browser/animations";
|
|
23
|
+
import * as i20 from "@angular/material/form-field";
|
|
24
|
+
import * as i21 from "@angular/material/core";
|
|
25
|
+
import * as i22 from "@angular/material/select";
|
|
26
|
+
import * as i23 from "@angular/material/button";
|
|
27
|
+
import * as i24 from "@angular/material/input";
|
|
28
|
+
import * as i25 from "@angular/material/icon";
|
|
29
|
+
import * as i26 from "@angular/material/tooltip";
|
|
30
|
+
import * as i27 from "@angular/material/chips";
|
|
31
|
+
import * as i28 from "@angular/material/autocomplete";
|
|
32
|
+
import * as i29 from "@angular/cdk/drag-drop";
|
|
33
|
+
import * as i30 from "@angular/router";
|
|
34
|
+
import * as i31 from "@angular/material/snack-bar";
|
|
35
|
+
import * as i32 from "@angular/material/dialog";
|
|
36
|
+
import * as i33 from "@angular/material/menu";
|
|
37
|
+
import * as i34 from "ng-configcat-publicapi";
|
|
38
|
+
export declare class NgConfigCatPublicApiUIModule {
|
|
39
|
+
static forRoot(configurationFactory: () => Configuration): ModuleWithProviders<NgConfigCatPublicApiUIModule>;
|
|
40
|
+
constructor();
|
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgConfigCatPublicApiUIModule, never>;
|
|
42
|
+
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.ConcurrentDialogComponent, typeof i15.SaveSnackbarComponent, typeof i16.ExpandDialogComponent], [typeof i17.CommonModule, typeof i18.FormsModule, typeof i18.ReactiveFormsModule, typeof i19.BrowserAnimationsModule, typeof i20.MatFormFieldModule, typeof i21.MatOptionModule, typeof i22.MatSelectModule, typeof i23.MatButtonModule, typeof i24.MatInputModule, typeof i25.MatIconModule, typeof i26.MatTooltipModule, typeof i27.MatChipsModule, typeof i28.MatAutocompleteModule, typeof i29.DragDropModule, typeof i30.RouterModule, typeof i31.MatSnackBarModule, typeof i32.MatDialogModule, typeof i33.MatMenuModule, typeof i34.ApiModule], [typeof i7.AuthorizationComponent, typeof i2.ProductSelectComponent, typeof i3.ConfigSelectComponent, typeof i4.EnvironmentSelectComponent, typeof i5.SettingSelectComponent, typeof i6.SettingItemComponent]>;
|
|
43
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NgConfigCatPublicApiUIModule>;
|
|
44
|
+
}
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
import { OnInit, OnChanges } from '@angular/core';
|
|
2
|
-
import { BaseComponent } from '../../base/base.component';
|
|
3
|
-
import { ConfigModel } from 'ng-configcat-publicapi';
|
|
4
|
-
import { FormControl } from '@angular/forms';
|
|
5
|
-
import { PublicApiService } from '../../_services';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { OnInit, OnChanges } from '@angular/core';
|
|
2
|
+
import { BaseComponent } from '../../base/base.component';
|
|
3
|
+
import { ConfigModel } from 'ng-configcat-publicapi';
|
|
4
|
+
import { FormControl } from '@angular/forms';
|
|
5
|
+
import { PublicApiService } from '../../_services';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class ConfigSelectComponent extends BaseComponent implements OnInit, OnChanges {
|
|
8
|
+
valueFormControl: FormControl;
|
|
9
|
+
productId: string;
|
|
10
|
+
configs: ConfigModel[];
|
|
11
|
+
constructor(publicApiService: PublicApiService);
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
ngOnChanges(): void;
|
|
14
|
+
reloadConfigs(): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigSelectComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConfigSelectComponent, "configcat-config-select", never, { "valueFormControl": "valueFormControl"; "productId": "productId"; }, {}, never, never>;
|
|
17
|
+
}
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
import { OnInit, OnChanges } from '@angular/core';
|
|
2
|
-
import { BaseComponent } from '../../base/base.component';
|
|
3
|
-
import { EnvironmentModel } from 'ng-configcat-publicapi';
|
|
4
|
-
import { FormControl } from '@angular/forms';
|
|
5
|
-
import { PublicApiService } from '../../_services';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { OnInit, OnChanges } from '@angular/core';
|
|
2
|
+
import { BaseComponent } from '../../base/base.component';
|
|
3
|
+
import { EnvironmentModel } from 'ng-configcat-publicapi';
|
|
4
|
+
import { FormControl } from '@angular/forms';
|
|
5
|
+
import { PublicApiService } from '../../_services';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class EnvironmentSelectComponent extends BaseComponent implements OnInit, OnChanges {
|
|
8
|
+
valueFormControl: FormControl;
|
|
9
|
+
productId: string;
|
|
10
|
+
environments: EnvironmentModel[];
|
|
11
|
+
constructor(publicApiService: PublicApiService);
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
ngOnChanges(): void;
|
|
14
|
+
reloadEnvironments(): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EnvironmentSelectComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EnvironmentSelectComponent, "configcat-environment-select", never, { "valueFormControl": "valueFormControl"; "productId": "productId"; }, {}, never, never>;
|
|
17
|
+
}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { BaseComponent } from '../../base/base.component';
|
|
3
|
-
import { ProductModel } from 'ng-configcat-publicapi';
|
|
4
|
-
import { FormControl } from '@angular/forms';
|
|
5
|
-
import { PublicApiService } from '../../_services';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { BaseComponent } from '../../base/base.component';
|
|
3
|
+
import { ProductModel } from 'ng-configcat-publicapi';
|
|
4
|
+
import { FormControl } from '@angular/forms';
|
|
5
|
+
import { PublicApiService } from '../../_services';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class ProductSelectComponent extends BaseComponent implements OnInit {
|
|
8
|
+
valueFormControl: FormControl;
|
|
9
|
+
products: ProductModel[];
|
|
10
|
+
constructor(publicApiService: PublicApiService);
|
|
11
|
+
ngOnInit(): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProductSelectComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductSelectComponent, "configcat-product-select", never, { "valueFormControl": "valueFormControl"; }, {}, never, never>;
|
|
14
|
+
}
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
import { OnInit, OnChanges } from '@angular/core';
|
|
2
|
-
import { BaseComponent } from '../../base/base.component';
|
|
3
|
-
import { SettingModel } from 'ng-configcat-publicapi';
|
|
4
|
-
import { FormControl } from '@angular/forms';
|
|
5
|
-
import { PublicApiService } from '../../_services';
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
import { OnInit, OnChanges } from '@angular/core';
|
|
2
|
+
import { BaseComponent } from '../../base/base.component';
|
|
3
|
+
import { SettingModel } from 'ng-configcat-publicapi';
|
|
4
|
+
import { FormControl } from '@angular/forms';
|
|
5
|
+
import { PublicApiService } from '../../_services';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class SettingSelectComponent extends BaseComponent implements OnInit, OnChanges {
|
|
8
|
+
valueFormControl: FormControl;
|
|
9
|
+
configId: string;
|
|
10
|
+
settings: SettingModel[];
|
|
11
|
+
constructor(publicApiService: PublicApiService);
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
ngOnChanges(): void;
|
|
14
|
+
reloadSettings(): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SettingSelectComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SettingSelectComponent, "configcat-setting-select", never, { "valueFormControl": "valueFormControl"; "configId": "configId"; }, {}, never, never>;
|
|
17
|
+
}
|
|
@@ -1,31 +1,37 @@
|
|
|
1
|
-
import { OnInit, EventEmitter } from '@angular/core';
|
|
2
|
-
import { BaseComponent } from '../base/base.component';
|
|
3
|
-
import { SettingValueModel } from 'ng-configcat-publicapi';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
|
-
import { PublicApiService } from '../_services';
|
|
6
|
-
import { SettingValuesModel, UpdateSettingValuesModel } from '../_models';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
1
|
+
import { OnInit, EventEmitter } from '@angular/core';
|
|
2
|
+
import { BaseComponent } from '../base/base.component';
|
|
3
|
+
import { SegmentListModel, SettingValueModel } from 'ng-configcat-publicapi';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { PublicApiService } from '../_services';
|
|
6
|
+
import { SettingValuesModel, UpdateSettingValuesModel } from '../_models';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class SettingItemComponent extends BaseComponent implements OnInit {
|
|
9
|
+
productId: string;
|
|
10
|
+
environmentId: string;
|
|
11
|
+
configId: string;
|
|
12
|
+
settingId: number;
|
|
13
|
+
canEditSetting: boolean;
|
|
14
|
+
canDeleteSetting: boolean;
|
|
15
|
+
deleteSettingText: string;
|
|
16
|
+
showEnvironmentName: boolean;
|
|
17
|
+
segmentsEnabled: boolean;
|
|
18
|
+
editSettingRequested: EventEmitter<any>;
|
|
19
|
+
deleteSettingRequested: EventEmitter<any>;
|
|
20
|
+
loadSucceeded: EventEmitter<any>;
|
|
21
|
+
loadFailed: EventEmitter<any>;
|
|
22
|
+
saveSucceeded: EventEmitter<any>;
|
|
23
|
+
saveFailed: EventEmitter<any>;
|
|
24
|
+
formValuesChanged: EventEmitter<any>;
|
|
25
|
+
settingValue: SettingValueModel;
|
|
26
|
+
segments: SegmentListModel[];
|
|
27
|
+
constructor(publicApiService: PublicApiService);
|
|
28
|
+
ngOnInit(): void;
|
|
29
|
+
loadSettingValues: () => Observable<SettingValuesModel>;
|
|
30
|
+
loadSegments: () => Observable<SegmentListModel[]>;
|
|
31
|
+
handleSave: (model: UpdateSettingValuesModel) => Observable<SettingValuesModel>;
|
|
32
|
+
onEditSettingRequested(setting: any): void;
|
|
33
|
+
onDeleteSettingRequested(setting: any): void;
|
|
34
|
+
onFormValuesChanged(): void;
|
|
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"; "segmentsEnabled": "segmentsEnabled"; }, { "editSettingRequested": "editSettingRequested"; "deleteSettingRequested": "deleteSettingRequested"; "loadSucceeded": "loadSucceeded"; "loadFailed": "loadFailed"; "saveSucceeded": "saveSucceeded"; "saveFailed": "saveFailed"; "formValuesChanged": "formValuesChanged"; }, never, never>;
|
|
37
|
+
}
|
package/lib/setting-list/setting/rollout-percentage-items/rollout-percentage-items.component.d.ts
CHANGED
|
@@ -1,22 +1,27 @@
|
|
|
1
|
-
import { FormGroup, FormArray, FormControl } from '@angular/forms';
|
|
2
|
-
import { SettingType } from 'ng-configcat-publicapi';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
import { FormGroup, FormArray, FormControl } from '@angular/forms';
|
|
2
|
+
import { SettingType } from 'ng-configcat-publicapi';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class RolloutPercentageItemsComponent {
|
|
5
|
+
formGroup: FormGroup;
|
|
6
|
+
readOnly: boolean;
|
|
7
|
+
SettingType: {
|
|
8
|
+
Boolean: SettingType;
|
|
9
|
+
String: SettingType;
|
|
10
|
+
Int: SettingType;
|
|
11
|
+
Double: SettingType;
|
|
12
|
+
};
|
|
13
|
+
setting(): any;
|
|
14
|
+
rolloutRules(): FormArray;
|
|
15
|
+
rolloutPercentageItems(): FormArray;
|
|
16
|
+
rolloutPercentageItemsSum(): FormControl;
|
|
17
|
+
value(rolloutPercentageItem: FormGroup): FormControl;
|
|
18
|
+
constructor();
|
|
19
|
+
percentageChanged(index: number): void;
|
|
20
|
+
updateSum(): void;
|
|
21
|
+
removeRolloutPercentageItem(index: number): void;
|
|
22
|
+
removeAll(): void;
|
|
23
|
+
getRolloutPercentageItemFormGroups(): FormGroup[];
|
|
24
|
+
getPercentageFormControl(rolloutPercentageItem: any): FormControl;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RolloutPercentageItemsComponent, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RolloutPercentageItemsComponent, "configcat-rollout-percentage-items", never, { "formGroup": "formGroup"; "readOnly": "readOnly"; }, {}, never, never>;
|
|
27
|
+
}
|
|
@@ -1,46 +1,60 @@
|
|
|
1
|
-
import { FormGroup, FormControl, FormArray } from '@angular/forms';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
export declare class RolloutRulesComponent {
|
|
6
|
-
private dialog;
|
|
7
|
-
formGroup: FormGroup;
|
|
8
|
-
readOnly: boolean;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
valid: boolean;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
1
|
+
import { FormGroup, FormControl, FormArray } from '@angular/forms';
|
|
2
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
+
import { SettingType, RolloutRuleComparator, SegmentListModel, SegmentComparator } from 'ng-configcat-publicapi';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class RolloutRulesComponent {
|
|
6
|
+
private dialog;
|
|
7
|
+
formGroup: FormGroup;
|
|
8
|
+
readOnly: boolean;
|
|
9
|
+
segments: SegmentListModel[];
|
|
10
|
+
SettingType: {
|
|
11
|
+
Boolean: SettingType;
|
|
12
|
+
String: SettingType;
|
|
13
|
+
Int: SettingType;
|
|
14
|
+
Double: SettingType;
|
|
15
|
+
};
|
|
16
|
+
defaultComparisonAttributes: string[];
|
|
17
|
+
rolloutRuleComparators: {
|
|
18
|
+
value: RolloutRuleComparator;
|
|
19
|
+
label: string;
|
|
20
|
+
}[];
|
|
21
|
+
segmentComparators: {
|
|
22
|
+
value: SegmentComparator;
|
|
23
|
+
label: string;
|
|
24
|
+
}[];
|
|
25
|
+
constructor(dialog: MatDialog);
|
|
26
|
+
onlyFirstTooltip(): boolean;
|
|
27
|
+
setting(): any;
|
|
28
|
+
rolloutRules(): FormArray;
|
|
29
|
+
comparisonAttributes(): any;
|
|
30
|
+
removeRule(index: any): void;
|
|
31
|
+
onDrop(event: any): void;
|
|
32
|
+
attributeChanged(event: any, comparisonAttribute: FormControl): void;
|
|
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
|
+
getComparisonValueType(rolloutRule: any): "text" | "number";
|
|
35
|
+
getInfoClass(rolloutRule: any): "warn" | "info";
|
|
36
|
+
getInfoTooltip(rolloutRule: any): "Learn more about comparators" | "Consider using sensitive text comparators. Click to learn more." | "Click to learn more about comparators";
|
|
37
|
+
comparatorChanged(rolloutRule: any): void;
|
|
38
|
+
isListType(rolloutRule: any): boolean;
|
|
39
|
+
validateSemVer(c: FormControl): {
|
|
40
|
+
validateSemVer: {
|
|
41
|
+
valid: boolean;
|
|
42
|
+
};
|
|
43
|
+
} | null;
|
|
44
|
+
validateSemVerList(c: FormControl): {
|
|
45
|
+
validateSemVerList: {
|
|
46
|
+
valid: boolean;
|
|
47
|
+
};
|
|
48
|
+
} | null;
|
|
49
|
+
popOut(rolloutRule: any): void;
|
|
50
|
+
trackByIndex(index: number): any;
|
|
51
|
+
getRolloutRuleValueFormControl(rolloutRule: any): FormControl;
|
|
52
|
+
getRolloutRuleComparisonValueFormControl(rolloutRule: any): FormControl;
|
|
53
|
+
getRolloutRuleComparisonAttributeFormControl(rolloutRule: any): FormControl;
|
|
54
|
+
getRolloutRuleTypeFormControl(rolloutRule: any): FormControl;
|
|
55
|
+
getRolloutRuleComparatorFormControl(rolloutRule: any): FormControl;
|
|
56
|
+
getRolloutRuleSegmentComparatorFormControl(rolloutRule: any): FormControl;
|
|
57
|
+
getRolloutRuleSegmentIdFormControl(rolloutRule: any): FormControl;
|
|
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>;
|
|
60
|
+
}
|
|
@@ -1,37 +1,43 @@
|
|
|
1
|
-
import { OnInit, EventEmitter, ChangeDetectorRef } from '@angular/core';
|
|
2
|
-
import { FormGroup, FormArray, FormControl } from '@angular/forms';
|
|
3
|
-
import { SettingType } from 'ng-configcat-publicapi';
|
|
4
|
-
import { SettingListFormHelper } from '../../_services/setting-list-form-helper';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
private
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
1
|
+
import { OnInit, EventEmitter, ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import { FormGroup, FormArray, FormControl } from '@angular/forms';
|
|
3
|
+
import { SegmentListModel, SettingType } from 'ng-configcat-publicapi';
|
|
4
|
+
import { SettingListFormHelper } from '../../_services/setting-list-form-helper';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class SettingComponent implements OnInit {
|
|
7
|
+
private formHelper;
|
|
8
|
+
private cdRef;
|
|
9
|
+
formGroup: FormGroup;
|
|
10
|
+
readOnly: boolean;
|
|
11
|
+
canEditSetting: boolean;
|
|
12
|
+
canDeleteSetting: boolean;
|
|
13
|
+
deleteSettingText: string;
|
|
14
|
+
showEnvironmentName: boolean;
|
|
15
|
+
segments: SegmentListModel[];
|
|
16
|
+
segmentsEnabled: boolean;
|
|
17
|
+
editSettingRequested: EventEmitter<any>;
|
|
18
|
+
deleteSettingRequested: EventEmitter<any>;
|
|
19
|
+
rulesBeingRendered: boolean;
|
|
20
|
+
SettingType: {
|
|
21
|
+
Boolean: SettingType;
|
|
22
|
+
String: SettingType;
|
|
23
|
+
Int: SettingType;
|
|
24
|
+
Double: SettingType;
|
|
25
|
+
};
|
|
26
|
+
constructor(formHelper: SettingListFormHelper, cdRef: ChangeDetectorRef);
|
|
27
|
+
ngOnInit(): void;
|
|
28
|
+
environment(): any;
|
|
29
|
+
setting(): any;
|
|
30
|
+
integrationLinks(): FormArray;
|
|
31
|
+
rolloutRules(): FormArray;
|
|
32
|
+
rolloutPercentageItems(): FormArray;
|
|
33
|
+
value(): FormControl;
|
|
34
|
+
addRolloutRule(): void;
|
|
35
|
+
addSegmentRolloutRule(): void;
|
|
36
|
+
removeRolloutRules(): void;
|
|
37
|
+
addRolloutPercentageItem(): void;
|
|
38
|
+
removeRolloutPercentageItems(): void;
|
|
39
|
+
editSetting(): void;
|
|
40
|
+
deleteSetting(): void;
|
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SettingComponent, never>;
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SettingComponent, "setting", never, { "formGroup": "formGroup"; "readOnly": "readOnly"; "canEditSetting": "canEditSetting"; "canDeleteSetting": "canDeleteSetting"; "deleteSettingText": "deleteSettingText"; "showEnvironmentName": "showEnvironmentName"; "segments": "segments"; "segmentsEnabled": "segmentsEnabled"; }, { "editSettingRequested": "editSettingRequested"; "deleteSettingRequested": "deleteSettingRequested"; }, never, never>;
|
|
43
|
+
}
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import { FormControl } from '@angular/forms';
|
|
2
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
-
import { SettingModel, SettingType } from 'ng-configcat-publicapi';
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { FormControl } from '@angular/forms';
|
|
2
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
+
import { SettingModel, SettingType } from 'ng-configcat-publicapi';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ValueComponent {
|
|
6
|
+
private dialog;
|
|
7
|
+
valueFormControl: FormControl;
|
|
8
|
+
setting: SettingModel;
|
|
9
|
+
SettingType: {
|
|
10
|
+
Boolean: SettingType;
|
|
11
|
+
String: SettingType;
|
|
12
|
+
Int: SettingType;
|
|
13
|
+
Double: SettingType;
|
|
14
|
+
};
|
|
15
|
+
constructor(dialog: MatDialog);
|
|
16
|
+
popOut(): void;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ValueComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ValueComponent, "configcat-value", never, { "valueFormControl": "valueFormControl"; "setting": "setting"; }, {}, never, never>;
|
|
19
|
+
}
|