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.
Files changed (88) hide show
  1. package/README.md +15 -15
  2. package/{esm2015/lib/_models/index.js → esm2020/lib/_models/index.mjs} +3 -3
  3. package/esm2020/lib/_models/settingValuesModel.mjs +2 -0
  4. package/{esm2015/lib/_models/updateSettingValuesModel.js → esm2020/lib/_models/updateSettingValuesModel.mjs} +2 -2
  5. package/esm2020/lib/_services/form-helper.mjs +21 -0
  6. package/{esm2015/lib/_services/index.js → esm2020/lib/_services/index.mjs} +2 -2
  7. package/esm2020/lib/_services/public-api.service.mjs +68 -0
  8. package/esm2020/lib/_services/setting-list-form-helper.mjs +152 -0
  9. package/esm2020/lib/authorization/authorization.component.mjs +50 -0
  10. package/esm2020/lib/base/base.component.mjs +45 -0
  11. package/esm2020/lib/configuration.mjs +13 -0
  12. package/esm2020/lib/dialogs/concurrent-dialog/concurrent-dialog.component.mjs +25 -0
  13. package/esm2020/lib/dialogs/expand-dialog/expand-dialog.component.mjs +77 -0
  14. package/esm2020/lib/dialogs/reason-dialog/reason-dialog.component.mjs +36 -0
  15. package/esm2020/lib/dialogs/save-snackbar/save-snackbar.component.mjs +14 -0
  16. package/esm2020/lib/ng-configcat-publicapi-ui.module.mjs +160 -0
  17. package/esm2020/lib/selects/config-select/config-select.component.mjs +56 -0
  18. package/esm2020/lib/selects/environment-select/environment-select.component.mjs +43 -0
  19. package/esm2020/lib/selects/product-select/product-select.component.mjs +36 -0
  20. package/esm2020/lib/selects/setting-select/setting-select.component.mjs +43 -0
  21. package/esm2020/lib/setting-item/setting-item.component.mjs +129 -0
  22. package/esm2020/lib/setting-list/setting/rollout-percentage-items/rollout-percentage-items.component.mjs +81 -0
  23. package/esm2020/lib/setting-list/setting/rollout-rules/rollout-rules.component.mjs +295 -0
  24. package/esm2020/lib/setting-list/setting/setting.component.mjs +137 -0
  25. package/esm2020/lib/setting-list/setting/value/value.component.mjs +32 -0
  26. package/esm2020/lib/setting-list/setting-list.component.mjs +200 -0
  27. package/esm2020/ng-configcat-publicapi-ui.mjs +5 -0
  28. package/{esm2015/public-api.js → esm2020/public-api.mjs} +12 -12
  29. package/fesm2015/ng-configcat-publicapi-ui.mjs +1588 -0
  30. package/fesm2015/ng-configcat-publicapi-ui.mjs.map +1 -0
  31. package/fesm2020/ng-configcat-publicapi-ui.mjs +1569 -0
  32. package/fesm2020/ng-configcat-publicapi-ui.mjs.map +1 -0
  33. package/lib/_models/index.d.ts +2 -2
  34. package/lib/_models/settingValuesModel.d.ts +11 -11
  35. package/lib/_models/updateSettingValuesModel.d.ts +7 -7
  36. package/lib/_services/form-helper.d.ts +4 -4
  37. package/lib/_services/index.d.ts +1 -1
  38. package/lib/_services/public-api.service.d.ts +19 -15
  39. package/lib/_services/setting-list-form-helper.d.ts +17 -14
  40. package/lib/authorization/authorization.component.d.ts +18 -15
  41. package/lib/base/base.component.d.ts +17 -13
  42. package/lib/configuration.d.ts +8 -5
  43. package/lib/dialogs/concurrent-dialog/concurrent-dialog.component.d.ts +12 -9
  44. package/lib/dialogs/expand-dialog/expand-dialog.component.d.ts +24 -20
  45. package/lib/dialogs/reason-dialog/reason-dialog.component.d.ts +15 -12
  46. package/lib/dialogs/save-snackbar/save-snackbar.component.d.ts +8 -5
  47. package/lib/ng-configcat-publicapi-ui.module.d.ts +44 -6
  48. package/lib/selects/config-select/config-select.component.d.ts +17 -14
  49. package/lib/selects/environment-select/environment-select.component.d.ts +17 -14
  50. package/lib/selects/product-select/product-select.component.d.ts +14 -11
  51. package/lib/selects/setting-select/setting-select.component.d.ts +17 -14
  52. package/lib/setting-item/setting-item.component.d.ts +37 -31
  53. package/lib/setting-list/setting/rollout-percentage-items/rollout-percentage-items.component.d.ts +27 -22
  54. package/lib/setting-list/setting/rollout-rules/rollout-rules.component.d.ts +60 -46
  55. package/lib/setting-list/setting/setting.component.d.ts +43 -37
  56. package/lib/setting-list/setting/value/value.component.d.ts +19 -16
  57. package/lib/setting-list/setting-list.component.d.ts +50 -42
  58. package/ng-configcat-publicapi-ui.d.ts +5 -18
  59. package/package.json +26 -21
  60. package/public-api.d.ts +8 -8
  61. package/bundles/ng-configcat-publicapi-ui.umd.js +0 -1826
  62. package/bundles/ng-configcat-publicapi-ui.umd.js.map +0 -1
  63. package/esm2015/lib/_models/settingValuesModel.js +0 -2
  64. package/esm2015/lib/_services/form-helper.js +0 -21
  65. package/esm2015/lib/_services/public-api.service.js +0 -71
  66. package/esm2015/lib/_services/setting-list-form-helper.js +0 -128
  67. package/esm2015/lib/authorization/authorization.component.js +0 -49
  68. package/esm2015/lib/base/base.component.js +0 -40
  69. package/esm2015/lib/configuration.js +0 -10
  70. package/esm2015/lib/dialogs/concurrent-dialog/concurrent-dialog.component.js +0 -26
  71. package/esm2015/lib/dialogs/expand-dialog/expand-dialog.component.js +0 -70
  72. package/esm2015/lib/dialogs/reason-dialog/reason-dialog.component.js +0 -35
  73. package/esm2015/lib/dialogs/save-snackbar/save-snackbar.component.js +0 -15
  74. package/esm2015/lib/ng-configcat-publicapi-ui.module.js +0 -100
  75. package/esm2015/lib/selects/config-select/config-select.component.js +0 -48
  76. package/esm2015/lib/selects/environment-select/environment-select.component.js +0 -40
  77. package/esm2015/lib/selects/product-select/product-select.component.js +0 -34
  78. package/esm2015/lib/selects/setting-select/setting-select.component.js +0 -40
  79. package/esm2015/lib/setting-item/setting-item.component.js +0 -106
  80. package/esm2015/lib/setting-list/setting/rollout-percentage-items/rollout-percentage-items.component.js +0 -69
  81. package/esm2015/lib/setting-list/setting/rollout-rules/rollout-rules.component.js +0 -260
  82. package/esm2015/lib/setting-list/setting/setting.component.js +0 -112
  83. package/esm2015/lib/setting-list/setting/value/value.component.js +0 -31
  84. package/esm2015/lib/setting-list/setting-list.component.js +0 -179
  85. package/esm2015/ng-configcat-publicapi-ui.js +0 -19
  86. package/fesm2015/ng-configcat-publicapi-ui.js +0 -1415
  87. package/fesm2015/ng-configcat-publicapi-ui.js.map +0 -1
  88. 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
- export declare class ExpandDialogComponent implements OnInit, OnDestroy {
6
- dialogRef: MatDialogRef<ExpandDialogComponent>;
7
- private formBuilder;
8
- data: any;
9
- formControlSubscription: Subscription;
10
- formGroupSubscription: Subscription;
11
- formGroup: FormGroup;
12
- constructor(dialogRef: MatDialogRef<ExpandDialogComponent>, formBuilder: FormBuilder, data: any);
13
- ngOnInit(): void;
14
- values(): FormArray;
15
- buildFormGroup(): void;
16
- add(): void;
17
- remove(index: any): void;
18
- ngOnDestroy(): void;
19
- close(): void;
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
- export declare class ReasonDialogComponent implements OnInit {
5
- dialogRef: MatDialogRef<ReasonDialogComponent>;
6
- private formBuilder;
7
- formGroup: FormGroup;
8
- constructor(dialogRef: MatDialogRef<ReasonDialogComponent>, formBuilder: FormBuilder);
9
- ngOnInit(): void;
10
- handleSaveButton(): void;
11
- cancel(): void;
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
- export declare class SaveSnackbarComponent implements OnInit {
3
- constructor();
4
- ngOnInit(): void;
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
- export declare class NgConfigCatPublicApiUIModule {
4
- static forRoot(configurationFactory: () => Configuration): ModuleWithProviders<NgConfigCatPublicApiUIModule>;
5
- constructor();
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
- export declare class ConfigSelectComponent extends BaseComponent implements OnInit, OnChanges {
7
- valueFormControl: FormControl;
8
- productId: string;
9
- configs: ConfigModel[];
10
- constructor(publicApiService: PublicApiService);
11
- ngOnInit(): void;
12
- ngOnChanges(): void;
13
- reloadConfigs(): void;
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
- export declare class EnvironmentSelectComponent extends BaseComponent implements OnInit, OnChanges {
7
- valueFormControl: FormControl;
8
- productId: string;
9
- environments: EnvironmentModel[];
10
- constructor(publicApiService: PublicApiService);
11
- ngOnInit(): void;
12
- ngOnChanges(): void;
13
- reloadEnvironments(): void;
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
- export declare class ProductSelectComponent extends BaseComponent implements OnInit {
7
- valueFormControl: FormControl;
8
- products: ProductModel[];
9
- constructor(publicApiService: PublicApiService);
10
- ngOnInit(): void;
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
- export declare class SettingSelectComponent extends BaseComponent implements OnInit, OnChanges {
7
- valueFormControl: FormControl;
8
- configId: string;
9
- settings: SettingModel[];
10
- constructor(publicApiService: PublicApiService);
11
- ngOnInit(): void;
12
- ngOnChanges(): void;
13
- reloadSettings(): void;
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
- export declare class SettingItemComponent extends BaseComponent implements OnInit {
8
- productId: string;
9
- environmentId: string;
10
- configId: string;
11
- settingId: number;
12
- canEditSetting: boolean;
13
- canDeleteSetting: boolean;
14
- deleteSettingText: string;
15
- showEnvironmentName: boolean;
16
- editSettingRequested: EventEmitter<any>;
17
- deleteSettingRequested: EventEmitter<any>;
18
- loadSucceeded: EventEmitter<any>;
19
- loadFailed: EventEmitter<any>;
20
- saveSucceeded: EventEmitter<any>;
21
- saveFailed: EventEmitter<any>;
22
- formValuesChanged: EventEmitter<any>;
23
- settingValue: SettingValueModel;
24
- constructor(publicApiService: PublicApiService);
25
- ngOnInit(): void;
26
- loadSettingValues: () => Observable<SettingValuesModel>;
27
- handleSave: (model: UpdateSettingValuesModel) => Observable<SettingValuesModel>;
28
- onEditSettingRequested(setting: any): void;
29
- onDeleteSettingRequested(setting: any): void;
30
- onFormValuesChanged(): void;
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
+ }
@@ -1,22 +1,27 @@
1
- import { FormGroup, FormArray, FormControl } from '@angular/forms';
2
- import { SettingType } from 'ng-configcat-publicapi';
3
- export declare class RolloutPercentageItemsComponent {
4
- formGroup: FormGroup;
5
- readOnly: boolean;
6
- SettingType: {
7
- Boolean: SettingType;
8
- String: SettingType;
9
- Int: SettingType;
10
- Double: SettingType;
11
- };
12
- setting(): any;
13
- rolloutRules(): FormArray;
14
- rolloutPercentageItems(): FormArray;
15
- rolloutPercentageItemsSum(): FormControl;
16
- value(rolloutPercentageItem: FormGroup): FormControl;
17
- constructor();
18
- percentageChanged(index: any): void;
19
- updateSum(): void;
20
- removeRolloutPercentageItem(index: any): void;
21
- removeAll(): void;
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 { CdkDragDrop } from '@angular/cdk/drag-drop';
3
- import { MatDialog } from '@angular/material/dialog';
4
- import { SettingType, RolloutRuleComparator } from 'ng-configcat-publicapi';
5
- export declare class RolloutRulesComponent {
6
- private dialog;
7
- formGroup: FormGroup;
8
- readOnly: boolean;
9
- SettingType: {
10
- Boolean: SettingType;
11
- String: SettingType;
12
- Int: SettingType;
13
- Double: SettingType;
14
- };
15
- defaultComparisonAttributes: string[];
16
- rolloutRuleComparators: {
17
- value: RolloutRuleComparator;
18
- label: string;
19
- }[];
20
- constructor(dialog: MatDialog);
21
- onlyFirstTooltip(): boolean;
22
- setting(): any;
23
- rolloutRules(): FormArray;
24
- comparisonAttributes(): any;
25
- removeRule(index: any): void;
26
- onDrop(event: CdkDragDrop<string[]>): void;
27
- attributeChanged(event: any, comparisonAttribute: FormControl): void;
28
- 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";
29
- getComparisonValueType(rolloutRule: any): "text" | "number";
30
- getInfoClass(rolloutRule: any): "warn" | "info";
31
- getInfoTooltip(rolloutRule: any): "Learn more about comparators" | "Consider using sensitive text comparators. Click to learn more." | "Click to learn more about comparators";
32
- comparatorChanged(rolloutRule: any): void;
33
- isListType(rolloutRule: any): boolean;
34
- validateSemVer(c: FormControl): {
35
- validateSemVer: {
36
- valid: boolean;
37
- };
38
- };
39
- validateSemVerList(c: FormControl): {
40
- validateSemVerList: {
41
- valid: boolean;
42
- };
43
- };
44
- popOut(rolloutRule: any): void;
45
- trackByIndex(index: number): any;
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
- export declare class SettingComponent implements OnInit {
6
- private formHelper;
7
- private cdRef;
8
- formGroup: FormGroup;
9
- readOnly: boolean;
10
- canEditSetting: boolean;
11
- canDeleteSetting: boolean;
12
- deleteSettingText: string;
13
- showEnvironmentName: boolean;
14
- editSettingRequested: EventEmitter<any>;
15
- deleteSettingRequested: EventEmitter<any>;
16
- rulesBeingRendered: boolean;
17
- SettingType: {
18
- Boolean: SettingType;
19
- String: SettingType;
20
- Int: SettingType;
21
- Double: SettingType;
22
- };
23
- constructor(formHelper: SettingListFormHelper, cdRef: ChangeDetectorRef);
24
- ngOnInit(): void;
25
- environment(): any;
26
- setting(): any;
27
- integrationLinks(): FormArray;
28
- rolloutRules(): FormArray;
29
- rolloutPercentageItems(): FormArray;
30
- value(): FormControl;
31
- addRolloutRule(): void;
32
- removeRolloutRules(): void;
33
- addRolloutPercentageItem(): void;
34
- removeRolloutPercentageItems(): void;
35
- editSetting(): void;
36
- deleteSetting(): void;
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
- export declare class ValueComponent {
5
- private dialog;
6
- valueFormControl: FormControl;
7
- setting: SettingModel;
8
- SettingType: {
9
- Boolean: SettingType;
10
- String: SettingType;
11
- Int: SettingType;
12
- Double: SettingType;
13
- };
14
- constructor(dialog: MatDialog);
15
- popOut(): void;
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
+ }