ng-configcat-publicapi-ui 2.3.2 → 2.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/bundles/ng-configcat-publicapi-ui.umd.js +1029 -870
  2. package/bundles/ng-configcat-publicapi-ui.umd.js.map +1 -1
  3. package/esm2015/lib/_services/form-helper.js +3 -3
  4. package/esm2015/lib/_services/public-api.service.js +9 -11
  5. package/esm2015/lib/_services/setting-list-form-helper.js +25 -18
  6. package/esm2015/lib/authorization/authorization.component.js +23 -18
  7. package/esm2015/lib/base/base.component.js +18 -16
  8. package/esm2015/lib/configuration.js +7 -4
  9. package/esm2015/lib/dialogs/concurrent-dialog/concurrent-dialog.component.js +15 -12
  10. package/esm2015/lib/dialogs/expand-dialog/expand-dialog.component.js +31 -20
  11. package/esm2015/lib/dialogs/reason-dialog/reason-dialog.component.js +19 -14
  12. package/esm2015/lib/dialogs/save-snackbar/save-snackbar.component.js +12 -9
  13. package/esm2015/lib/ng-configcat-publicapi-ui.module.js +116 -57
  14. package/esm2015/lib/selects/config-select/config-select.component.js +36 -23
  15. package/esm2015/lib/selects/environment-select/environment-select.component.js +23 -16
  16. package/esm2015/lib/selects/product-select/product-select.component.js +21 -15
  17. package/esm2015/lib/selects/setting-select/setting-select.component.js +23 -16
  18. package/esm2015/lib/setting-item/setting-item.component.js +46 -31
  19. package/esm2015/lib/setting-list/setting/rollout-percentage-items/rollout-percentage-items.component.js +32 -14
  20. package/esm2015/lib/setting-list/setting/rollout-rules/rollout-rules.component.js +53 -26
  21. package/esm2015/lib/setting-list/setting/setting.component.js +45 -26
  22. package/esm2015/lib/setting-list/setting/value/value.component.js +24 -16
  23. package/esm2015/lib/setting-list/setting-list.component.js +43 -27
  24. package/esm2015/ng-configcat-publicapi-ui.js +1 -15
  25. package/fesm2015/ng-configcat-publicapi-ui.js +986 -828
  26. package/fesm2015/ng-configcat-publicapi-ui.js.map +1 -1
  27. package/lib/_services/form-helper.d.ts +1 -1
  28. package/lib/_services/public-api.service.d.ts +10 -7
  29. package/lib/_services/setting-list-form-helper.d.ts +5 -2
  30. package/lib/authorization/authorization.component.d.ts +4 -1
  31. package/lib/base/base.component.d.ts +6 -3
  32. package/lib/configuration.d.ts +3 -0
  33. package/lib/dialogs/concurrent-dialog/concurrent-dialog.component.d.ts +3 -0
  34. package/lib/dialogs/expand-dialog/expand-dialog.component.d.ts +7 -3
  35. package/lib/dialogs/reason-dialog/reason-dialog.component.d.ts +3 -0
  36. package/lib/dialogs/save-snackbar/save-snackbar.component.d.ts +3 -0
  37. package/lib/ng-configcat-publicapi-ui.module.d.ts +38 -0
  38. package/lib/selects/config-select/config-select.component.d.ts +3 -0
  39. package/lib/selects/environment-select/environment-select.component.d.ts +3 -0
  40. package/lib/selects/product-select/product-select.component.d.ts +3 -0
  41. package/lib/selects/setting-select/setting-select.component.d.ts +3 -0
  42. package/lib/setting-item/setting-item.component.d.ts +3 -0
  43. package/lib/setting-list/setting/rollout-percentage-items/rollout-percentage-items.component.d.ts +7 -2
  44. package/lib/setting-list/setting/rollout-rules/rollout-rules.component.d.ts +10 -4
  45. package/lib/setting-list/setting/setting.component.d.ts +3 -0
  46. package/lib/setting-list/setting/value/value.component.d.ts +3 -0
  47. package/lib/setting-list/setting-list.component.d.ts +5 -1
  48. package/ng-configcat-publicapi-ui.d.ts +1 -14
  49. package/package.json +8 -10
  50. package/ng-configcat-publicapi-ui.metadata.json +0 -1
@@ -1,15 +1,18 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { ProductsService, EnvironmentsService, ConfigsService, FeatureFlagsSettingsService, FeatureFlagSettingValuesService, MeService, IntegrationLinksService } from 'ng-configcat-publicapi';
3
3
  import { Configuration } from '../configuration';
4
+ import * as i0 from "@angular/core";
4
5
  export declare class PublicApiService {
5
6
  private httpClient;
6
7
  private configuration;
7
8
  constructor(httpClient: HttpClient, configuration: Configuration);
8
- createMeService(basicAuthUsername?: string, basicAuthPassword?: string, basePath?: string): MeService;
9
- createProductsService(basicAuthUsername?: string, basicAuthPassword?: string, basePath?: string): ProductsService;
10
- createConfigsService(basicAuthUsername?: string, basicAuthPassword?: string, basePath?: string): ConfigsService;
11
- createEnvironmentsService(basicAuthUsername?: string, basicAuthPassword?: string, basePath?: string): EnvironmentsService;
12
- createSettingsService(basicAuthUsername?: string, basicAuthPassword?: string, basePath?: string): FeatureFlagsSettingsService;
13
- createSettingValuesService(basicAuthUsername?: string, basicAuthPassword?: string, basePath?: string): FeatureFlagSettingValuesService;
14
- createIntegrationLinksService(basicAuthUsername?: string, basicAuthPassword?: string, basePath?: string): IntegrationLinksService;
9
+ createMeService(basicAuthUsername?: string | null, basicAuthPassword?: string | null, basePath?: string | null): MeService;
10
+ createProductsService(basicAuthUsername?: string | null, basicAuthPassword?: string | null, basePath?: string | null): ProductsService;
11
+ createConfigsService(basicAuthUsername?: string | null, basicAuthPassword?: string | null, basePath?: string | null): ConfigsService;
12
+ createEnvironmentsService(basicAuthUsername?: string | null, basicAuthPassword?: string | null, basePath?: string | null): EnvironmentsService;
13
+ createSettingsService(basicAuthUsername?: string | null, basicAuthPassword?: string | null, basePath?: string | null): FeatureFlagsSettingsService;
14
+ createSettingValuesService(basicAuthUsername?: string | null, basicAuthPassword?: string | null, basePath?: string | null): FeatureFlagSettingValuesService;
15
+ createIntegrationLinksService(basicAuthUsername?: string | null, basicAuthPassword?: string | null, basePath?: string | null): IntegrationLinksService;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<PublicApiService, [null, { optional: true; }]>;
17
+ static ɵprov: i0.ɵɵInjectableDeclaration<PublicApiService>;
15
18
  }
@@ -1,14 +1,17 @@
1
1
  import { SettingValuesModel } from '../_models/settingValuesModel';
2
2
  import { FormBuilder, FormGroup } from '@angular/forms';
3
3
  import { RolloutPercentageItemModel, RolloutRuleModel, SettingType, SettingValueModel } from 'ng-configcat-publicapi';
4
+ import * as i0 from "@angular/core";
4
5
  export declare class SettingListFormHelper {
5
6
  private formBuilder;
6
7
  constructor(formBuilder: FormBuilder);
7
8
  createSettingValuesFormGroup(settingValuesModel: SettingValuesModel): FormGroup;
8
9
  createSettingValueFormGroup(settingValueModel: SettingValueModel, readOnly: boolean): FormGroup;
9
- createRolloutPercentageItemFormGroup(p: RolloutPercentageItemModel, readOnly: boolean, settingType: SettingType): FormGroup;
10
- createRolloutRuleFormGroup(r: RolloutRuleModel, readOnly: boolean, settingType: SettingType): FormGroup;
10
+ createRolloutPercentageItemFormGroup(p: RolloutPercentageItemModel, readOnly: boolean, settingType: SettingType | undefined): FormGroup;
11
+ createRolloutRuleFormGroup(r: RolloutRuleModel, readOnly: boolean, settingType: SettingType | undefined): FormGroup;
11
12
  private getValidatorsForSettingType;
12
13
  private getAllRolloutRules;
13
14
  private getComparisonAttributes;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<SettingListFormHelper, never>;
16
+ static ɵprov: i0.ɵɵInjectableDeclaration<SettingListFormHelper>;
14
17
  }
@@ -2,14 +2,17 @@ import { OnInit, EventEmitter } from '@angular/core';
2
2
  import { FormGroup, FormBuilder } from '@angular/forms';
3
3
  import { PublicApiService } from '../_services';
4
4
  import { FormHelper } from '../_services/form-helper';
5
+ import * as i0 from "@angular/core";
5
6
  export declare class AuthorizationComponent implements OnInit {
6
7
  private formBuilder;
7
8
  private publicApiService;
8
9
  formGroup: FormGroup;
9
- basePath: any;
10
+ basePath: null;
10
11
  authorized: EventEmitter<any>;
11
12
  FormHelper: typeof FormHelper;
12
13
  constructor(formBuilder: FormBuilder, publicApiService: PublicApiService);
13
14
  ngOnInit(): void;
14
15
  onSubmit(): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<AuthorizationComponent, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<AuthorizationComponent, "configcat-authorization", never, { "basePath": "basePath"; }, { "authorized": "authorized"; }, never, never>;
15
18
  }
@@ -1,13 +1,16 @@
1
1
  import { PublicApiService } from '../_services/public-api.service';
2
+ import * as i0 from "@angular/core";
2
3
  export declare class BaseComponent {
3
4
  private publicApiService;
4
- basePath: any;
5
- basicAuthUsername: any;
6
- basicAuthPassword: any;
5
+ basePath: string | null;
6
+ basicAuthUsername: string | null;
7
+ basicAuthPassword: string | null;
7
8
  constructor(publicApiService: PublicApiService);
8
9
  protected createProductsService(): import("ng-configcat-publicapi").ProductsService;
9
10
  protected createConfigsService(): import("ng-configcat-publicapi").ConfigsService;
10
11
  protected createEnvironmentsService(): import("ng-configcat-publicapi").EnvironmentsService;
11
12
  protected createSettingsService(): import("ng-configcat-publicapi").FeatureFlagsSettingsService;
12
13
  protected createSettingValuesService(): import("ng-configcat-publicapi").FeatureFlagSettingValuesService;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaseComponent, "base", never, { "basePath": "basePath"; "basicAuthUsername": "basicAuthUsername"; "basicAuthPassword": "basicAuthPassword"; }, {}, never, never>;
13
16
  }
@@ -1,5 +1,8 @@
1
+ import * as i0 from "@angular/core";
1
2
  export declare class Configuration {
2
3
  basicAuthUsername?: string;
3
4
  basicAuthPassword?: string;
4
5
  basePath: string;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<Configuration, never>;
7
+ static ɵprov: i0.ɵɵInjectableDeclaration<Configuration>;
5
8
  }
@@ -1,9 +1,12 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { MatDialogRef } from '@angular/material/dialog';
3
+ import * as i0 from "@angular/core";
3
4
  export declare class ConcurrentDialogComponent implements OnInit {
4
5
  dialogRef: MatDialogRef<ConcurrentDialogComponent>;
5
6
  constructor(dialogRef: MatDialogRef<ConcurrentDialogComponent>);
6
7
  ngOnInit(): void;
7
8
  save(): void;
8
9
  discard(): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<ConcurrentDialogComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<ConcurrentDialogComponent, "configcat-concurrent-dialog", never, {}, {}, never, never>;
9
12
  }
@@ -1,20 +1,24 @@
1
1
  import { OnInit, OnDestroy } from '@angular/core';
2
2
  import { MatDialogRef } from '@angular/material/dialog';
3
3
  import { Subscription } from 'rxjs';
4
- import { FormBuilder, FormGroup, FormArray } from '@angular/forms';
4
+ import { FormBuilder, FormGroup, FormArray, FormControl } from '@angular/forms';
5
+ import * as i0 from "@angular/core";
5
6
  export declare class ExpandDialogComponent implements OnInit, OnDestroy {
6
7
  dialogRef: MatDialogRef<ExpandDialogComponent>;
7
8
  private formBuilder;
8
9
  data: any;
9
- formControlSubscription: Subscription;
10
- formGroupSubscription: Subscription;
10
+ formControlSubscription: Subscription | null;
11
+ formGroupSubscription: Subscription | null;
11
12
  formGroup: FormGroup;
12
13
  constructor(dialogRef: MatDialogRef<ExpandDialogComponent>, formBuilder: FormBuilder, data: any);
13
14
  ngOnInit(): void;
14
15
  values(): FormArray;
16
+ getValueControls(): FormControl[];
15
17
  buildFormGroup(): void;
16
18
  add(): void;
17
19
  remove(index: any): void;
18
20
  ngOnDestroy(): void;
19
21
  close(): void;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<ExpandDialogComponent, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<ExpandDialogComponent, "configcat-expand-dialog", never, {}, {}, never, never>;
20
24
  }
@@ -1,6 +1,7 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { MatDialogRef } from '@angular/material/dialog';
3
3
  import { FormGroup, FormBuilder } from '@angular/forms';
4
+ import * as i0 from "@angular/core";
4
5
  export declare class ReasonDialogComponent implements OnInit {
5
6
  dialogRef: MatDialogRef<ReasonDialogComponent>;
6
7
  private formBuilder;
@@ -9,4 +10,6 @@ export declare class ReasonDialogComponent implements OnInit {
9
10
  ngOnInit(): void;
10
11
  handleSaveButton(): void;
11
12
  cancel(): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<ReasonDialogComponent, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<ReasonDialogComponent, "configcat-reason-dialog", never, {}, {}, never, never>;
12
15
  }
@@ -1,5 +1,8 @@
1
1
  import { OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
2
3
  export declare class SaveSnackbarComponent implements OnInit {
3
4
  constructor();
4
5
  ngOnInit(): void;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<SaveSnackbarComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<SaveSnackbarComponent, "configcat-save-snackbar", never, {}, {}, never, never>;
5
8
  }
@@ -1,6 +1,44 @@
1
1
  import { ModuleWithProviders } from '@angular/core';
2
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";
3
38
  export declare class NgConfigCatPublicApiUIModule {
4
39
  static forRoot(configurationFactory: () => Configuration): ModuleWithProviders<NgConfigCatPublicApiUIModule>;
5
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>;
6
44
  }
@@ -3,6 +3,7 @@ import { BaseComponent } from '../../base/base.component';
3
3
  import { ConfigModel } from 'ng-configcat-publicapi';
4
4
  import { FormControl } from '@angular/forms';
5
5
  import { PublicApiService } from '../../_services';
6
+ import * as i0 from "@angular/core";
6
7
  export declare class ConfigSelectComponent extends BaseComponent implements OnInit, OnChanges {
7
8
  valueFormControl: FormControl;
8
9
  productId: string;
@@ -11,4 +12,6 @@ export declare class ConfigSelectComponent extends BaseComponent implements OnIn
11
12
  ngOnInit(): void;
12
13
  ngOnChanges(): void;
13
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>;
14
17
  }
@@ -3,6 +3,7 @@ import { BaseComponent } from '../../base/base.component';
3
3
  import { EnvironmentModel } from 'ng-configcat-publicapi';
4
4
  import { FormControl } from '@angular/forms';
5
5
  import { PublicApiService } from '../../_services';
6
+ import * as i0 from "@angular/core";
6
7
  export declare class EnvironmentSelectComponent extends BaseComponent implements OnInit, OnChanges {
7
8
  valueFormControl: FormControl;
8
9
  productId: string;
@@ -11,4 +12,6 @@ export declare class EnvironmentSelectComponent extends BaseComponent implements
11
12
  ngOnInit(): void;
12
13
  ngOnChanges(): void;
13
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>;
14
17
  }
@@ -3,9 +3,12 @@ import { BaseComponent } from '../../base/base.component';
3
3
  import { ProductModel } from 'ng-configcat-publicapi';
4
4
  import { FormControl } from '@angular/forms';
5
5
  import { PublicApiService } from '../../_services';
6
+ import * as i0 from "@angular/core";
6
7
  export declare class ProductSelectComponent extends BaseComponent implements OnInit {
7
8
  valueFormControl: FormControl;
8
9
  products: ProductModel[];
9
10
  constructor(publicApiService: PublicApiService);
10
11
  ngOnInit(): void;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProductSelectComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<ProductSelectComponent, "configcat-product-select", never, { "valueFormControl": "valueFormControl"; }, {}, never, never>;
11
14
  }
@@ -3,6 +3,7 @@ import { BaseComponent } from '../../base/base.component';
3
3
  import { SettingModel } from 'ng-configcat-publicapi';
4
4
  import { FormControl } from '@angular/forms';
5
5
  import { PublicApiService } from '../../_services';
6
+ import * as i0 from "@angular/core";
6
7
  export declare class SettingSelectComponent extends BaseComponent implements OnInit, OnChanges {
7
8
  valueFormControl: FormControl;
8
9
  configId: string;
@@ -11,4 +12,6 @@ export declare class SettingSelectComponent extends BaseComponent implements OnI
11
12
  ngOnInit(): void;
12
13
  ngOnChanges(): void;
13
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>;
14
17
  }
@@ -4,6 +4,7 @@ import { SettingValueModel } from 'ng-configcat-publicapi';
4
4
  import { Observable } from 'rxjs';
5
5
  import { PublicApiService } from '../_services';
6
6
  import { SettingValuesModel, UpdateSettingValuesModel } from '../_models';
7
+ import * as i0 from "@angular/core";
7
8
  export declare class SettingItemComponent extends BaseComponent implements OnInit {
8
9
  productId: string;
9
10
  environmentId: string;
@@ -28,4 +29,6 @@ export declare class SettingItemComponent extends BaseComponent implements OnIni
28
29
  onEditSettingRequested(setting: any): void;
29
30
  onDeleteSettingRequested(setting: any): void;
30
31
  onFormValuesChanged(): void;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<SettingItemComponent, never>;
33
+ 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>;
31
34
  }
@@ -1,5 +1,6 @@
1
1
  import { FormGroup, FormArray, FormControl } from '@angular/forms';
2
2
  import { SettingType } from 'ng-configcat-publicapi';
3
+ import * as i0 from "@angular/core";
3
4
  export declare class RolloutPercentageItemsComponent {
4
5
  formGroup: FormGroup;
5
6
  readOnly: boolean;
@@ -15,8 +16,12 @@ export declare class RolloutPercentageItemsComponent {
15
16
  rolloutPercentageItemsSum(): FormControl;
16
17
  value(rolloutPercentageItem: FormGroup): FormControl;
17
18
  constructor();
18
- percentageChanged(index: any): void;
19
+ percentageChanged(index: number): void;
19
20
  updateSum(): void;
20
- removeRolloutPercentageItem(index: any): void;
21
+ removeRolloutPercentageItem(index: number): void;
21
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>;
22
27
  }
@@ -1,7 +1,7 @@
1
1
  import { FormGroup, FormControl, FormArray } from '@angular/forms';
2
- import { CdkDragDrop } from '@angular/cdk/drag-drop';
3
2
  import { MatDialog } from '@angular/material/dialog';
4
3
  import { SettingType, RolloutRuleComparator } from 'ng-configcat-publicapi';
4
+ import * as i0 from "@angular/core";
5
5
  export declare class RolloutRulesComponent {
6
6
  private dialog;
7
7
  formGroup: FormGroup;
@@ -23,7 +23,7 @@ export declare class RolloutRulesComponent {
23
23
  rolloutRules(): FormArray;
24
24
  comparisonAttributes(): any;
25
25
  removeRule(index: any): void;
26
- onDrop(event: CdkDragDrop<string[]>): void;
26
+ onDrop(event: any): void;
27
27
  attributeChanged(event: any, comparisonAttribute: FormControl): void;
28
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
29
  getComparisonValueType(rolloutRule: any): "text" | "number";
@@ -35,12 +35,18 @@ export declare class RolloutRulesComponent {
35
35
  validateSemVer: {
36
36
  valid: boolean;
37
37
  };
38
- };
38
+ } | null;
39
39
  validateSemVerList(c: FormControl): {
40
40
  validateSemVerList: {
41
41
  valid: boolean;
42
42
  };
43
- };
43
+ } | null;
44
44
  popOut(rolloutRule: any): void;
45
45
  trackByIndex(index: number): any;
46
+ getRolloutRuleValueFormControl(rolloutRule: any): FormControl;
47
+ getRolloutRuleComparisonValueFormControl(rolloutRule: any): FormControl;
48
+ getRolloutRuleComparisonAttributeFormControl(rolloutRule: any): FormControl;
49
+ getRolloutRuleComparatorFormControl(rolloutRule: any): FormControl;
50
+ static ɵfac: i0.ɵɵFactoryDeclaration<RolloutRulesComponent, never>;
51
+ static ɵcmp: i0.ɵɵComponentDeclaration<RolloutRulesComponent, "configcat-rollout-rules", never, { "formGroup": "formGroup"; "readOnly": "readOnly"; }, {}, never, never>;
46
52
  }
@@ -2,6 +2,7 @@ import { OnInit, EventEmitter, ChangeDetectorRef } from '@angular/core';
2
2
  import { FormGroup, FormArray, FormControl } from '@angular/forms';
3
3
  import { SettingType } from 'ng-configcat-publicapi';
4
4
  import { SettingListFormHelper } from '../../_services/setting-list-form-helper';
5
+ import * as i0 from "@angular/core";
5
6
  export declare class SettingComponent implements OnInit {
6
7
  private formHelper;
7
8
  private cdRef;
@@ -34,4 +35,6 @@ export declare class SettingComponent implements OnInit {
34
35
  removeRolloutPercentageItems(): void;
35
36
  editSetting(): void;
36
37
  deleteSetting(): void;
38
+ static ɵfac: i0.ɵɵFactoryDeclaration<SettingComponent, never>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<SettingComponent, "setting", never, { "formGroup": "formGroup"; "readOnly": "readOnly"; "canEditSetting": "canEditSetting"; "canDeleteSetting": "canDeleteSetting"; "deleteSettingText": "deleteSettingText"; "showEnvironmentName": "showEnvironmentName"; }, { "editSettingRequested": "editSettingRequested"; "deleteSettingRequested": "deleteSettingRequested"; }, never, never>;
37
40
  }
@@ -1,6 +1,7 @@
1
1
  import { FormControl } from '@angular/forms';
2
2
  import { MatDialog } from '@angular/material/dialog';
3
3
  import { SettingModel, SettingType } from 'ng-configcat-publicapi';
4
+ import * as i0 from "@angular/core";
4
5
  export declare class ValueComponent {
5
6
  private dialog;
6
7
  valueFormControl: FormControl;
@@ -13,4 +14,6 @@ export declare class ValueComponent {
13
14
  };
14
15
  constructor(dialog: MatDialog);
15
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>;
16
19
  }
@@ -5,6 +5,7 @@ import { Observable, Subscription } from 'rxjs';
5
5
  import { MatSnackBar } from '@angular/material/snack-bar';
6
6
  import { MatDialog } from '@angular/material/dialog';
7
7
  import { SettingListFormHelper } from '../_services/setting-list-form-helper';
8
+ import * as i0 from "@angular/core";
8
9
  export declare class SettingListComponent implements OnInit, OnChanges, OnDestroy {
9
10
  private formHelper;
10
11
  private snackBar;
@@ -18,7 +19,7 @@ export declare class SettingListComponent implements OnInit, OnChanges, OnDestro
18
19
  editSettingRequested: EventEmitter<any>;
19
20
  deleteSettingRequested: EventEmitter<any>;
20
21
  formValuesChanged: EventEmitter<any>;
21
- formValuesChangedSubscription: Subscription;
22
+ formValuesChangedSubscription: Subscription | null;
22
23
  loading: boolean;
23
24
  settingValues: SettingValuesModel;
24
25
  formGroup: FormGroup;
@@ -33,10 +34,13 @@ export declare class SettingListComponent implements OnInit, OnChanges, OnDestro
33
34
  reloadSettingValues(): void;
34
35
  createFormGroup(): void;
35
36
  settingValuesFormArray(): FormArray;
37
+ getSettingValueFormGroups(): FormGroup[];
36
38
  submit(): void;
37
39
  updateSettingValues(updateSettingValuesModel: any): void;
38
40
  handleRevertYes(): void;
39
41
  handleRevertCancel(): void;
40
42
  onEditSettingRequested(setting: any): void;
41
43
  onDeleteSettingRequested(setting: any): void;
44
+ static ɵfac: i0.ɵɵFactoryDeclaration<SettingListComponent, never>;
45
+ static ɵcmp: i0.ɵɵComponentDeclaration<SettingListComponent, "configcat-setting-list", never, { "canEditSetting": "canEditSetting"; "canDeleteSetting": "canDeleteSetting"; "onSave": "onSave"; "loadSettingValues": "loadSettingValues"; "deleteSettingText": "deleteSettingText"; "showEnvironmentName": "showEnvironmentName"; }, { "editSettingRequested": "editSettingRequested"; "deleteSettingRequested": "deleteSettingRequested"; "formValuesChanged": "formValuesChanged"; }, never, never>;
42
46
  }
@@ -1,18 +1,5 @@
1
1
  /**
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
+ /// <amd-module name="ng-configcat-publicapi-ui" />
4
5
  export * from './public-api';
5
- export { PublicApiService as ɵd } from './lib/_services';
6
- export { PublicApiService as ɵb } from './lib/_services/public-api.service';
7
- export { SettingListFormHelper as ɵf } from './lib/_services/setting-list-form-helper';
8
- export { BaseComponent as ɵa } from './lib/base/base.component';
9
- export { Configuration as ɵc } from './lib/configuration';
10
- export { ConcurrentDialogComponent as ɵl } from './lib/dialogs/concurrent-dialog/concurrent-dialog.component';
11
- export { ExpandDialogComponent as ɵn } from './lib/dialogs/expand-dialog/expand-dialog.component';
12
- export { ReasonDialogComponent as ɵk } from './lib/dialogs/reason-dialog/reason-dialog.component';
13
- export { SaveSnackbarComponent as ɵm } from './lib/dialogs/save-snackbar/save-snackbar.component';
14
- export { SettingListComponent as ɵe } from './lib/setting-list/setting-list.component';
15
- export { RolloutPercentageItemsComponent as ɵh } from './lib/setting-list/setting/rollout-percentage-items/rollout-percentage-items.component';
16
- export { RolloutRulesComponent as ɵi } from './lib/setting-list/setting/rollout-rules/rollout-rules.component';
17
- export { SettingComponent as ɵg } from './lib/setting-list/setting/setting.component';
18
- export { ValueComponent as ɵj } from './lib/setting-list/setting/value/value.component';
package/package.json CHANGED
@@ -1,15 +1,14 @@
1
1
  {
2
2
  "name": "ng-configcat-publicapi-ui",
3
- "version": "2.3.2",
4
- "dependencies": {
5
- "ng-configcat-publicapi": "2.0.0",
6
- "tslib": "^2.0.0"
7
- },
3
+ "version": "2.3.3",
8
4
  "peerDependencies": {
9
- "@angular/common": "^12.1.1",
10
- "@angular/core": "^12.1.1",
11
- "@angular/cdk": "^12.1.1",
12
- "@angular/material": "^12.1.1"
5
+ "@angular/common": "^12.2.0",
6
+ "@angular/core": "^12.2.0",
7
+ "ng-configcat-publicapi": "^2.5.4",
8
+ "semver": "^7.3.5"
9
+ },
10
+ "dependencies": {
11
+ "tslib": "^2.3.0"
13
12
  },
14
13
  "main": "bundles/ng-configcat-publicapi-ui.umd.js",
15
14
  "module": "fesm2015/ng-configcat-publicapi-ui.js",
@@ -17,6 +16,5 @@
17
16
  "esm2015": "esm2015/ng-configcat-publicapi-ui.js",
18
17
  "fesm2015": "fesm2015/ng-configcat-publicapi-ui.js",
19
18
  "typings": "ng-configcat-publicapi-ui.d.ts",
20
- "metadata": "ng-configcat-publicapi-ui.metadata.json",
21
19
  "sideEffects": false
22
20
  }