ng-configcat-publicapi-ui 5.3.5 → 5.3.7
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { InjectionToken, Provider, OnInit, OnDestroy } from '@angular/core';
|
|
3
3
|
import * as ng_configcat_publicapi from 'ng-configcat-publicapi';
|
|
4
|
-
import { MeService, ProductsService, ConfigsService, EnvironmentsService, FeatureFlagsSettingsService, FeatureFlagSettingValuesV2Service, FeatureFlagSettingValuesService, IntegrationLinksService, SegmentsService, OrganizationsService, UserComparator,
|
|
4
|
+
import { MeService, ProductsService, ConfigsService, EnvironmentsService, FeatureFlagsSettingsService, FeatureFlagSettingValuesV2Service, FeatureFlagSettingValuesService, IntegrationLinksService, SegmentsService, OrganizationsService, UserComparator, SegmentComparator, PrerequisiteComparator, SettingType, PredefinedVariationModel, SettingFormulaModel, FeatureFlagLimitations, TargetingRuleModel, PercentageOptionModel, ConditionModel, UserConditionModel, SegmentConditionModel, PrerequisiteFlagConditionModel, ComparisonValueListModel, ComparisonValueModel, ValueModel, UpdateEvaluationFormulaModel, ConfigModel, EnvironmentModel, SettingValueModel, UpdateSettingValueModel, SettingDataModel, SegmentListModel, SettingModel, EvaluationVersion } from 'ng-configcat-publicapi';
|
|
5
5
|
import { HttpErrorResponse } from '@angular/common/http';
|
|
6
6
|
import * as _angular_forms from '@angular/forms';
|
|
7
7
|
import { FormGroup, FormControl, FormArray, ValidatorFn, AbstractControl } from '@angular/forms';
|
|
@@ -294,6 +294,7 @@ interface AuthorizationModel {
|
|
|
294
294
|
interface LinkFeatureFlagParameters {
|
|
295
295
|
environmentId: string;
|
|
296
296
|
settingId: number;
|
|
297
|
+
callback: () => void;
|
|
297
298
|
}
|
|
298
299
|
|
|
299
300
|
declare class BaseComponent {
|
|
@@ -369,10 +370,9 @@ declare class BaseSelectComponent extends BaseComponent {
|
|
|
369
370
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BaseSelectComponent, "app-base-select", never, { "customDropdown": { "alias": "customDropdown"; "required": false; "isSignal": true; }; }, { "dropdownOpened": "dropdownOpened"; }, never, never, true, never>;
|
|
370
371
|
}
|
|
371
372
|
|
|
372
|
-
declare class ProductSelectComponent extends BaseSelectComponent
|
|
373
|
+
declare class ProductSelectComponent extends BaseSelectComponent {
|
|
373
374
|
readonly valueFormControl: _angular_core.InputSignal<FormControl<any>>;
|
|
374
375
|
readonly preSelectedProductId: _angular_core.InputSignal<string | undefined>;
|
|
375
|
-
readonly products: _angular_core.WritableSignal<ProductModel[]>;
|
|
376
376
|
readonly filterText: _angular_core.WritableSignal<string>;
|
|
377
377
|
readonly filteredProducts: _angular_core.WritableSignal<{
|
|
378
378
|
hidden: boolean;
|
|
@@ -384,17 +384,16 @@ declare class ProductSelectComponent extends BaseSelectComponent implements OnIn
|
|
|
384
384
|
reasonRequired: boolean;
|
|
385
385
|
}[]>;
|
|
386
386
|
readonly hasFilteredProduct: _angular_core.Signal<boolean>;
|
|
387
|
-
|
|
387
|
+
readonly products: _angular_core.ResourceRef<ng_configcat_publicapi.ProductModel[] | undefined>;
|
|
388
388
|
clearFilter(): void;
|
|
389
389
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ProductSelectComponent, never>;
|
|
390
390
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ProductSelectComponent, "app-product-select", never, { "valueFormControl": { "alias": "valueFormControl"; "required": true; "isSignal": true; }; "preSelectedProductId": { "alias": "preSelectedProductId"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
391
391
|
}
|
|
392
392
|
|
|
393
|
-
declare class ConfigSelectComponent extends BaseSelectComponent
|
|
393
|
+
declare class ConfigSelectComponent extends BaseSelectComponent {
|
|
394
394
|
readonly valueFormControl: _angular_core.InputSignal<FormControl<string>>;
|
|
395
395
|
readonly productId: _angular_core.InputSignal<string>;
|
|
396
396
|
readonly preSelectedConfigId: _angular_core.InputSignal<string | undefined>;
|
|
397
|
-
readonly configs: _angular_core.WritableSignal<ConfigModel[]>;
|
|
398
397
|
readonly filterText: _angular_core.WritableSignal<string>;
|
|
399
398
|
readonly filteredConfigs: _angular_core.WritableSignal<{
|
|
400
399
|
hidden: boolean;
|
|
@@ -407,18 +406,15 @@ declare class ConfigSelectComponent extends BaseSelectComponent implements OnIni
|
|
|
407
406
|
evaluationVersion: ng_configcat_publicapi.EvaluationVersion;
|
|
408
407
|
}[]>;
|
|
409
408
|
readonly hasFilteredConfig: _angular_core.Signal<boolean>;
|
|
410
|
-
|
|
411
|
-
ngOnChanges(): void;
|
|
412
|
-
reloadConfigs(): void;
|
|
409
|
+
readonly configs: _angular_core.ResourceRef<ng_configcat_publicapi.ConfigModel[] | undefined>;
|
|
413
410
|
clearFilter(): void;
|
|
414
411
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ConfigSelectComponent, never>;
|
|
415
412
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ConfigSelectComponent, "app-config-select", never, { "valueFormControl": { "alias": "valueFormControl"; "required": true; "isSignal": true; }; "productId": { "alias": "productId"; "required": true; "isSignal": true; }; "preSelectedConfigId": { "alias": "preSelectedConfigId"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
416
413
|
}
|
|
417
414
|
|
|
418
|
-
declare class EnvironmentSelectComponent extends BaseSelectComponent
|
|
415
|
+
declare class EnvironmentSelectComponent extends BaseSelectComponent {
|
|
419
416
|
readonly valueFormControl: _angular_core.InputSignal<FormControl<any>>;
|
|
420
417
|
readonly productId: _angular_core.InputSignal<string>;
|
|
421
|
-
readonly environments: _angular_core.WritableSignal<EnvironmentModel[]>;
|
|
422
418
|
readonly filterText: _angular_core.WritableSignal<string>;
|
|
423
419
|
readonly filteredEnvironments: _angular_core.WritableSignal<{
|
|
424
420
|
hidden: boolean;
|
|
@@ -431,15 +427,13 @@ declare class EnvironmentSelectComponent extends BaseSelectComponent implements
|
|
|
431
427
|
reasonRequired: boolean;
|
|
432
428
|
}[]>;
|
|
433
429
|
readonly hasFilteredEnvironment: _angular_core.Signal<boolean>;
|
|
434
|
-
|
|
435
|
-
ngOnChanges(): void;
|
|
436
|
-
reloadEnvironments(): void;
|
|
430
|
+
readonly environments: _angular_core.ResourceRef<ng_configcat_publicapi.EnvironmentModel[] | undefined>;
|
|
437
431
|
clearFilter(): void;
|
|
438
432
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EnvironmentSelectComponent, never>;
|
|
439
433
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EnvironmentSelectComponent, "app-environment-select", never, { "valueFormControl": { "alias": "valueFormControl"; "required": true; "isSignal": true; }; "productId": { "alias": "productId"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
440
434
|
}
|
|
441
435
|
|
|
442
|
-
declare class SettingSelectComponent extends BaseSelectComponent
|
|
436
|
+
declare class SettingSelectComponent extends BaseSelectComponent {
|
|
443
437
|
readonly valueFormControl: _angular_core.InputSignal<FormControl<any>>;
|
|
444
438
|
readonly configId: _angular_core.InputSignal<string>;
|
|
445
439
|
SettingTypeEnum: {
|
|
@@ -448,7 +442,6 @@ declare class SettingSelectComponent extends BaseSelectComponent implements OnIn
|
|
|
448
442
|
Int: SettingType;
|
|
449
443
|
Double: SettingType;
|
|
450
444
|
};
|
|
451
|
-
readonly settings: _angular_core.WritableSignal<SettingModel[]>;
|
|
452
445
|
readonly filterText: _angular_core.WritableSignal<string>;
|
|
453
446
|
readonly filteredSettings: _angular_core.WritableSignal<{
|
|
454
447
|
hidden: boolean;
|
|
@@ -465,10 +458,8 @@ declare class SettingSelectComponent extends BaseSelectComponent implements OnIn
|
|
|
465
458
|
predefinedVariations: Array<ng_configcat_publicapi.PredefinedVariationModel>;
|
|
466
459
|
}[]>;
|
|
467
460
|
readonly hasFilteredSetting: _angular_core.Signal<boolean>;
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
selectedSettingTiggetText(): string;
|
|
471
|
-
reloadSettings(): void;
|
|
461
|
+
selectedSettingTriggerText(): string;
|
|
462
|
+
readonly settings: _angular_core.ResourceRef<ng_configcat_publicapi.SettingModel[] | undefined>;
|
|
472
463
|
clearFilter(): void;
|
|
473
464
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SettingSelectComponent, never>;
|
|
474
465
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SettingSelectComponent, "app-setting-select", never, { "valueFormControl": { "alias": "valueFormControl"; "required": true; "isSignal": true; }; "configId": { "alias": "configId"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
@@ -514,6 +505,7 @@ declare class FeatureFlagItemComponent extends BaseComponent implements OnInit,
|
|
|
514
505
|
segments: SegmentListModel[];
|
|
515
506
|
dashboardBasePath: string;
|
|
516
507
|
loading: boolean;
|
|
508
|
+
submitting: boolean;
|
|
517
509
|
formGroup: FormGroup<UpdateSettingValueForm>;
|
|
518
510
|
formValueChangesSubscription: Subscription | null;
|
|
519
511
|
settings: SettingModel[];
|
|
@@ -550,10 +542,12 @@ declare class FeatureFlagItemComponent extends BaseComponent implements OnInit,
|
|
|
550
542
|
canDeactivate(): boolean;
|
|
551
543
|
viewVariations(event: {
|
|
552
544
|
settingId: number;
|
|
545
|
+
settingName: string;
|
|
553
546
|
}): void;
|
|
554
547
|
openConcurentDeleteDialog(): void;
|
|
555
548
|
openVariationsDialog(event: {
|
|
556
549
|
settingId: number;
|
|
550
|
+
settingName: string;
|
|
557
551
|
}): void;
|
|
558
552
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FeatureFlagItemComponent, never>;
|
|
559
553
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FeatureFlagItemComponent, "app-feature-flag-item", never, { "productId": { "alias": "productId"; "required": true; "isSignal": true; }; "environmentId": { "alias": "environmentId"; "required": true; "isSignal": true; }; "configId": { "alias": "configId"; "required": true; "isSignal": true; }; "settingId": { "alias": "settingId"; "required": true; "isSignal": true; }; "canDeleteSetting": { "alias": "canDeleteSetting"; "required": false; "isSignal": true; }; "deleteSettingText": { "alias": "deleteSettingText"; "required": false; "isSignal": true; }; "showEnvironmentName": { "alias": "showEnvironmentName"; "required": false; "isSignal": true; }; }, { "deleteSettingRequested": "deleteSettingRequested"; "loadSucceeded": "loadSucceeded"; "loadFailed": "loadFailed"; "saveSucceeded": "saveSucceeded"; "saveFailed": "saveFailed"; "expandedStateChanged": "expandedStateChanged"; "formValuesChanged": "formValuesChanged"; }, never, never, true, never>;
|
|
@@ -581,9 +575,11 @@ declare class LinkFeatureFlagComponent implements OnInit, OnDestroy {
|
|
|
581
575
|
settingId: FormControl<number>;
|
|
582
576
|
}>;
|
|
583
577
|
subscription: Subscription | null;
|
|
578
|
+
readonly submitting: _angular_core.WritableSignal<boolean>;
|
|
584
579
|
ngOnInit(): void;
|
|
585
580
|
ngOnDestroy(): void;
|
|
586
581
|
add(): void;
|
|
582
|
+
linkingFinished(): void;
|
|
587
583
|
cancel(): void;
|
|
588
584
|
selectDropdownPanelChanged(useSelector: boolean): void;
|
|
589
585
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<LinkFeatureFlagComponent, never>;
|
|
@@ -669,25 +665,32 @@ declare class CreateFeatureFlagComponent extends BaseComponent implements OnInit
|
|
|
669
665
|
V1: EvaluationVersion;
|
|
670
666
|
V2: EvaluationVersion;
|
|
671
667
|
};
|
|
672
|
-
|
|
668
|
+
private readonly loadingProduct;
|
|
669
|
+
private readonly loadingEnviroments;
|
|
670
|
+
private readonly loadinOrganizationLimitations;
|
|
671
|
+
private readonly loadingConfigurations;
|
|
672
|
+
private readonly loading;
|
|
673
|
+
readonly loadingComputed: _angular_core.Signal<boolean>;
|
|
674
|
+
readonly submitting: _angular_core.WritableSignal<boolean>;
|
|
673
675
|
dataSource: MatTableDataSource<FormGroup<PredefinedVariationFormGroup>, _angular_material_paginator.MatPaginator>;
|
|
674
676
|
formGroup: FormGroup<IntegrationCreateSettingFormGroup>;
|
|
675
677
|
configEvaluationVersion: EvaluationVersion;
|
|
676
678
|
maxPredefinedVariations: number;
|
|
677
679
|
maxStringFlagValueLength: number;
|
|
678
680
|
selectedProductOrganiaztionId: string;
|
|
679
|
-
selectedProductEnviroment: EnvironmentModel[];
|
|
680
681
|
focusIndex: number;
|
|
681
682
|
settingTypeText: string;
|
|
682
683
|
displayedColumns: string[];
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
684
|
+
private selectedProductEnviroment;
|
|
685
|
+
private stringValidators;
|
|
686
|
+
private readonly intValidators;
|
|
687
|
+
private readonly doubleValidators;
|
|
686
688
|
ngOnInit(): void;
|
|
687
689
|
initialValueForAllFormControlFunction(settingType: SettingType): FormControl<string> | FormControl<number> | FormControl<boolean>;
|
|
688
690
|
settingTypeChanges(newSettingType: SettingType): void;
|
|
689
691
|
setDataSource(): void;
|
|
690
692
|
create(): void;
|
|
693
|
+
linkingFinished(): void;
|
|
691
694
|
cancel(): void;
|
|
692
695
|
selectDropdownPanelChanged(useSelector: boolean): void;
|
|
693
696
|
createEmptyVariationFormGroup(settingType: SettingType, boolValue?: boolean, stringValue?: string, intValue?: number, doubleValue?: number): FormGroup<{
|
|
@@ -730,6 +733,8 @@ declare class CreateConfigComponent extends BaseComponent implements OnInit {
|
|
|
730
733
|
readonly resizeRequested: _angular_core.OutputEmitterRef<void>;
|
|
731
734
|
readonly cancelInitiated: _angular_core.OutputEmitterRef<void>;
|
|
732
735
|
readonly selectDropdownPanelChangedReqested: _angular_core.OutputEmitterRef<boolean>;
|
|
736
|
+
readonly loading: _angular_core.WritableSignal<boolean>;
|
|
737
|
+
readonly submitting: _angular_core.WritableSignal<boolean>;
|
|
733
738
|
SettingTypeEnum: {
|
|
734
739
|
Boolean: SettingType;
|
|
735
740
|
String: SettingType;
|
|
@@ -741,7 +746,6 @@ declare class CreateConfigComponent extends BaseComponent implements OnInit {
|
|
|
741
746
|
V1: EvaluationVersion;
|
|
742
747
|
V2: EvaluationVersion;
|
|
743
748
|
};
|
|
744
|
-
loading: boolean;
|
|
745
749
|
formGroup: FormGroup<CreateConfigFormGroup>;
|
|
746
750
|
maxPredefinedVariations: number;
|
|
747
751
|
maxStringFlagValueLength: number;
|