ng-configcat-publicapi-ui 4.2.2 → 5.0.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 +2 -2
- package/fesm2022/ng-configcat-publicapi-ui.mjs +4240 -3534
- package/fesm2022/ng-configcat-publicapi-ui.mjs.map +1 -1
- package/index.d.ts +476 -3
- package/package.json +11 -10
- package/src/css/button.scss +83 -0
- package/src/css/controls.scss +390 -0
- package/src/css/dialog.scss +63 -0
- package/src/css/icon.scss +7 -0
- package/src/css/slider.scss +82 -0
- package/src/css/snackbar.scss +16 -0
- package/src/css/table.scss +142 -0
- package/src/css/theme.scss +47 -0
- package/src/css/tooltip.scss +12 -0
- package/src/css/variables.scss +324 -0
- package/src/css/vars/auth.scss +24 -0
- package/src/css/vars/banner.scss +116 -0
- package/src/css/vars/box.scss +48 -0
- package/src/css/vars/config-overview.scss +27 -0
- package/src/css/vars/flag.scss +146 -0
- package/src/css/vars/header.scss +24 -0
- package/src/css/vars/icon.scss +33 -0
- package/src/css/vars/logo.scss +19 -0
- package/src/css/vars/notification.scss +38 -0
- package/src/css/vars/overview.scss +51 -0
- package/src/css/vars/prism.scss +44 -0
- package/src/css/vars/sidenav.scss +42 -0
- package/src/css/vars/theme.scss +78 -0
- package/src/public-api.scss +208 -0
- package/esm2022/lib/_directives/index.mjs +0 -2
- package/esm2022/lib/_directives/input-display-normalizer.directive.mjs +0 -38
- package/esm2022/lib/_models/deleteSettingModel.mjs +0 -2
- package/esm2022/lib/_models/flag-state.mjs +0 -2
- package/esm2022/lib/_models/index.mjs +0 -4
- package/esm2022/lib/_models/setting-value-formgroup.mjs +0 -2
- package/esm2022/lib/_models/settingValuesModel.mjs +0 -2
- package/esm2022/lib/_models/updateSettingValuesModel.mjs +0 -2
- package/esm2022/lib/_models/user-comparator.mjs +0 -100
- package/esm2022/lib/_services/app-data-adapter.mjs +0 -18
- package/esm2022/lib/_services/comparison-value-list-helper.mjs +0 -72
- package/esm2022/lib/_services/date-helper.mjs +0 -56
- package/esm2022/lib/_services/form-generator.mjs +0 -359
- package/esm2022/lib/_services/form-helper.mjs +0 -163
- package/esm2022/lib/_services/index.mjs +0 -3
- package/esm2022/lib/_services/messaging.service.mjs +0 -26
- package/esm2022/lib/_services/platform-helper.mjs +0 -7
- package/esm2022/lib/_services/public-api.service.mjs +0 -77
- package/esm2022/lib/_services/setting-list-form-helper.mjs +0 -171
- package/esm2022/lib/_services/tracking.directive.mjs +0 -16
- package/esm2022/lib/ace-editor/ace-editor.component.mjs +0 -137
- package/esm2022/lib/authorization/authorization.component.mjs +0 -62
- package/esm2022/lib/base/base-select.component.mjs +0 -27
- package/esm2022/lib/base/base.component.mjs +0 -48
- package/esm2022/lib/bootstrap.mjs +0 -11
- package/esm2022/lib/configuration.mjs +0 -14
- package/esm2022/lib/dialogs/confirmation-dialog/confirmation-dialog.mjs +0 -28
- package/esm2022/lib/dialogs/delete-setting-dialog/delete-setting-dialog.component.mjs +0 -27
- package/esm2022/lib/dialogs/expand-dialog/expand-dialog.component.mjs +0 -80
- package/esm2022/lib/dialogs/info-dialog/info-dialog.mjs +0 -29
- package/esm2022/lib/dialogs/reason-dialog/reason-dialog.component.mjs +0 -36
- package/esm2022/lib/dialogs/reroute-dialog/reroute-dialog.mjs +0 -28
- package/esm2022/lib/dialogs/save-snackbar/save-snackbar.component.mjs +0 -14
- package/esm2022/lib/ng-configcat-publicapi-ui.module.mjs +0 -288
- package/esm2022/lib/selects/config-select/config-select.component.mjs +0 -60
- package/esm2022/lib/selects/environment-select/environment-select.component.mjs +0 -47
- package/esm2022/lib/selects/product-select/product-select.component.mjs +0 -40
- package/esm2022/lib/selects/setting-select/setting-select.component.mjs +0 -47
- package/esm2022/lib/setting-item/setting-item.component.mjs +0 -118
- package/esm2022/lib/setting-list/setting/rollout-percentage-items/rollout-percentage-items.component.mjs +0 -81
- package/esm2022/lib/setting-list/setting/rollout-rules/rollout-rules.component.mjs +0 -293
- package/esm2022/lib/setting-list/setting/setting.component.mjs +0 -136
- package/esm2022/lib/setting-list/setting/value/value.component.mjs +0 -37
- package/esm2022/lib/setting-list/setting-list.component.mjs +0 -194
- package/esm2022/lib/v2/feature-flag/date-time-picker/date-time-picker.component.mjs +0 -123
- package/esm2022/lib/v2/feature-flag/dependees-dialog/dependees-dialog.component.mjs +0 -30
- package/esm2022/lib/v2/feature-flag/evaluation-formula/evaluation-formula.component.mjs +0 -220
- package/esm2022/lib/v2/feature-flag/evaluation-formula/feature-flag-value/feature-flag-value.component.mjs +0 -61
- package/esm2022/lib/v2/feature-flag/evaluation-formula/popout-text-editor-dialog/popout-text-editor-dialog.component.mjs +0 -72
- package/esm2022/lib/v2/feature-flag/evaluation-formula/targeting-rule/conditions/condition-chip/condition-chip.component.mjs +0 -25
- package/esm2022/lib/v2/feature-flag/evaluation-formula/targeting-rule/conditions/conditions.component.mjs +0 -105
- package/esm2022/lib/v2/feature-flag/evaluation-formula/targeting-rule/conditions/prerequisite-flag-condition/prerequisite-flag-condition.component.mjs +0 -75
- package/esm2022/lib/v2/feature-flag/evaluation-formula/targeting-rule/conditions/segment-condition/segment-condition.component.mjs +0 -48
- package/esm2022/lib/v2/feature-flag/evaluation-formula/targeting-rule/conditions/user-condition/comparator-dialog/comparator-dialog.component.mjs +0 -113
- package/esm2022/lib/v2/feature-flag/evaluation-formula/targeting-rule/conditions/user-condition/popout-list-editor-dialog/popout-list-editor-dialog.component.mjs +0 -251
- package/esm2022/lib/v2/feature-flag/evaluation-formula/targeting-rule/conditions/user-condition/user-condition.component.mjs +0 -444
- package/esm2022/lib/v2/feature-flag/evaluation-formula/targeting-rule/percentage-options/percentage-options.component.mjs +0 -84
- package/esm2022/lib/v2/feature-flag/evaluation-formula/targeting-rule/targeting-rule.component.mjs +0 -129
- package/esm2022/lib/v2/feature-flag/feature-flag.component.mjs +0 -190
- package/esm2022/lib/v2/feature-flag/percentage-evaluation-attribute-dialog/percentage-evaluation-attribute-dialog.component.mjs +0 -65
- package/esm2022/lib/v2/feature-flag-item.component.mjs +0 -330
- package/esm2022/ng-configcat-publicapi-ui.mjs +0 -5
- package/esm2022/public-api.mjs +0 -15
- package/lib/_directives/index.d.ts +0 -1
- package/lib/_directives/input-display-normalizer.directive.d.ts +0 -13
- package/lib/_models/deleteSettingModel.d.ts +0 -6
- package/lib/_models/flag-state.d.ts +0 -20
- package/lib/_models/index.d.ts +0 -3
- package/lib/_models/setting-value-formgroup.d.ts +0 -69
- package/lib/_models/settingValuesModel.d.ts +0 -11
- package/lib/_models/updateSettingValuesModel.d.ts +0 -7
- package/lib/_models/user-comparator.d.ts +0 -84
- package/lib/_services/app-data-adapter.d.ts +0 -7
- package/lib/_services/comparison-value-list-helper.d.ts +0 -17
- package/lib/_services/date-helper.d.ts +0 -6
- package/lib/_services/form-generator.d.ts +0 -59
- package/lib/_services/form-helper.d.ts +0 -21
- package/lib/_services/index.d.ts +0 -2
- package/lib/_services/messaging.service.d.ts +0 -12
- package/lib/_services/platform-helper.d.ts +0 -3
- package/lib/_services/public-api.service.d.ts +0 -21
- package/lib/_services/setting-list-form-helper.d.ts +0 -19
- package/lib/_services/tracking.directive.d.ts +0 -6
- package/lib/ace-editor/ace-editor.component.d.ts +0 -32
- package/lib/authorization/authorization.component.d.ts +0 -21
- package/lib/base/base-select.component.d.ts +0 -10
- package/lib/base/base.component.d.ts +0 -18
- package/lib/bootstrap.d.ts +0 -13
- package/lib/configuration.d.ts +0 -9
- package/lib/dialogs/confirmation-dialog/confirmation-dialog.d.ts +0 -19
- package/lib/dialogs/delete-setting-dialog/delete-setting-dialog.component.d.ts +0 -17
- package/lib/dialogs/expand-dialog/expand-dialog.component.d.ts +0 -25
- package/lib/dialogs/info-dialog/info-dialog.d.ts +0 -17
- package/lib/dialogs/reason-dialog/reason-dialog.component.d.ts +0 -15
- package/lib/dialogs/reroute-dialog/reroute-dialog.d.ts +0 -20
- package/lib/dialogs/save-snackbar/save-snackbar.component.d.ts +0 -8
- package/lib/ng-configcat-publicapi-ui.module.d.ts +0 -75
- package/lib/selects/config-select/config-select.component.d.ts +0 -17
- package/lib/selects/environment-select/environment-select.component.d.ts +0 -17
- package/lib/selects/product-select/product-select.component.d.ts +0 -14
- package/lib/selects/setting-select/setting-select.component.d.ts +0 -17
- package/lib/setting-item/setting-item.component.d.ts +0 -37
- package/lib/setting-list/setting/rollout-percentage-items/rollout-percentage-items.component.d.ts +0 -27
- package/lib/setting-list/setting/rollout-rules/rollout-rules.component.d.ts +0 -61
- package/lib/setting-list/setting/setting.component.d.ts +0 -43
- package/lib/setting-list/setting/value/value.component.d.ts +0 -20
- package/lib/setting-list/setting-list.component.d.ts +0 -53
- package/lib/v2/feature-flag/date-time-picker/date-time-picker.component.d.ts +0 -25
- package/lib/v2/feature-flag/dependees-dialog/dependees-dialog.component.d.ts +0 -27
- package/lib/v2/feature-flag/evaluation-formula/evaluation-formula.component.d.ts +0 -41
- package/lib/v2/feature-flag/evaluation-formula/feature-flag-value/feature-flag-value.component.d.ts +0 -18
- package/lib/v2/feature-flag/evaluation-formula/popout-text-editor-dialog/popout-text-editor-dialog.component.d.ts +0 -30
- package/lib/v2/feature-flag/evaluation-formula/targeting-rule/conditions/condition-chip/condition-chip.component.d.ts +0 -10
- package/lib/v2/feature-flag/evaluation-formula/targeting-rule/conditions/conditions.component.d.ts +0 -27
- package/lib/v2/feature-flag/evaluation-formula/targeting-rule/conditions/prerequisite-flag-condition/prerequisite-flag-condition.component.d.ts +0 -36
- package/lib/v2/feature-flag/evaluation-formula/targeting-rule/conditions/segment-condition/segment-condition.component.d.ts +0 -21
- package/lib/v2/feature-flag/evaluation-formula/targeting-rule/conditions/user-condition/comparator-dialog/comparator-dialog.component.d.ts +0 -79
- package/lib/v2/feature-flag/evaluation-formula/targeting-rule/conditions/user-condition/popout-list-editor-dialog/popout-list-editor-dialog.component.d.ts +0 -63
- package/lib/v2/feature-flag/evaluation-formula/targeting-rule/conditions/user-condition/user-condition.component.d.ts +0 -94
- package/lib/v2/feature-flag/evaluation-formula/targeting-rule/percentage-options/percentage-options.component.d.ts +0 -31
- package/lib/v2/feature-flag/evaluation-formula/targeting-rule/targeting-rule.component.d.ts +0 -33
- package/lib/v2/feature-flag/feature-flag.component.d.ts +0 -49
- package/lib/v2/feature-flag/percentage-evaluation-attribute-dialog/percentage-evaluation-attribute-dialog.component.d.ts +0 -28
- package/lib/v2/feature-flag-item.component.d.ts +0 -66
- package/public-api.d.ts +0 -11
- package/public-api.scss +0 -350
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, DestroyRef, OnInit } from '@angular/core';
|
|
2
|
-
import { FormGroup } from '@angular/forms';
|
|
3
|
-
import { MatDialogRef } from '@angular/material/dialog';
|
|
4
|
-
import { MatPaginator } from '@angular/material/paginator';
|
|
5
|
-
import { MatTableDataSource } from '@angular/material/table';
|
|
6
|
-
import { Subscription } from 'rxjs';
|
|
7
|
-
import { FormHelper, IFeatureFlagLimitations, ComparisonValueForm, ComparisonValueListForm, FormGenerator, UserComparator, ComparisonValueListHelper, ComparisonValueListParseResult, IComparisonValueListModel } from '../../../../../../../bootstrap';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
export type PopoutListEditorDialogData = {
|
|
10
|
-
comparisonValueList: IComparisonValueListModel[];
|
|
11
|
-
comparator: UserComparator;
|
|
12
|
-
featureFlagLimitations: IFeatureFlagLimitations;
|
|
13
|
-
readOnly: boolean;
|
|
14
|
-
};
|
|
15
|
-
declare enum VisualizationType {
|
|
16
|
-
Table = 0,
|
|
17
|
-
Json = 1,
|
|
18
|
-
Csv = 2,
|
|
19
|
-
Csl = 3
|
|
20
|
-
}
|
|
21
|
-
export declare class PopoutListEditorDialogComponent implements OnInit, AfterViewInit {
|
|
22
|
-
private formGenerator;
|
|
23
|
-
dialogRef: MatDialogRef<PopoutListEditorDialogComponent>;
|
|
24
|
-
private comparisonValueListHelper;
|
|
25
|
-
data: PopoutListEditorDialogData;
|
|
26
|
-
destroyRef: DestroyRef;
|
|
27
|
-
FormHelper: typeof FormHelper;
|
|
28
|
-
VisualizationType: typeof VisualizationType;
|
|
29
|
-
dataSource: MatTableDataSource<FormGroup<ComparisonValueListForm>, MatPaginator>;
|
|
30
|
-
plainText: string;
|
|
31
|
-
formGroup: FormGroup<ComparisonValueForm>;
|
|
32
|
-
filterValue: string;
|
|
33
|
-
valueChanged: boolean;
|
|
34
|
-
currentlyHasHints: boolean;
|
|
35
|
-
displayedColumns: string[];
|
|
36
|
-
visualizationType: VisualizationType;
|
|
37
|
-
comparisonValueListParseResult: ComparisonValueListParseResult;
|
|
38
|
-
valueChangeSubscription: Subscription;
|
|
39
|
-
focusIndex: number;
|
|
40
|
-
paginator: MatPaginator;
|
|
41
|
-
set setPaginator(paginator: MatPaginator);
|
|
42
|
-
constructor(formGenerator: FormGenerator, dialogRef: MatDialogRef<PopoutListEditorDialogComponent>, comparisonValueListHelper: ComparisonValueListHelper, data: PopoutListEditorDialogData);
|
|
43
|
-
ngOnInit(): void;
|
|
44
|
-
setFormGroup(comparisonValueList: IComparisonValueListModel[]): void;
|
|
45
|
-
checkHasHints(): void;
|
|
46
|
-
setDataSource(): void;
|
|
47
|
-
ngAfterViewInit(): void;
|
|
48
|
-
applyFilter(): void;
|
|
49
|
-
add(): void;
|
|
50
|
-
remove(row: FormGroup<ComparisonValueListForm>): void;
|
|
51
|
-
set(): void;
|
|
52
|
-
close(): void;
|
|
53
|
-
removeAll(): void;
|
|
54
|
-
getRawValue(): IComparisonValueListModel[];
|
|
55
|
-
focusInvalid(): void;
|
|
56
|
-
changeVisualizationType(visualizationType: VisualizationType): void;
|
|
57
|
-
textValueChanged(): void;
|
|
58
|
-
recalculate(): void;
|
|
59
|
-
loadFile(event: any): void;
|
|
60
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PopoutListEditorDialogComponent, never>;
|
|
61
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PopoutListEditorDialogComponent, "app-popout-list-editor-dialog", never, {}, {}, never, never, false, never>;
|
|
62
|
-
}
|
|
63
|
-
export {};
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
|
-
import { FormControl, FormGroup } from '@angular/forms';
|
|
3
|
-
import { MatChipInputEvent, MatChipEditedEvent, MatChipGrid } from '@angular/material/chips';
|
|
4
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
5
|
-
import { ErrorStateMatcher } from '@angular/material/core';
|
|
6
|
-
import { Clipboard } from '@angular/cdk/clipboard';
|
|
7
|
-
import { FormHelper, ComparisonValueListForm, UserConditionForm, FormGenerator, UserComparator, UserComparatorText, UserComparatorType, IComparisonValueListModel, IFeatureFlagLimitations, ComparisonValueListHelper, MessagingService } from '../../../../../../bootstrap';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class ListValueErrorStateMatcher implements ErrorStateMatcher {
|
|
10
|
-
private formGroup;
|
|
11
|
-
constructor(formGroup: FormGroup<UserConditionForm>);
|
|
12
|
-
isErrorState(): boolean;
|
|
13
|
-
}
|
|
14
|
-
declare enum ComparatorGroup {
|
|
15
|
-
ConfidentialText = "CONFIDENTIAL TEXT",
|
|
16
|
-
Text = "TEXT",
|
|
17
|
-
SemanticVersion = "SEMANTIC VERSION",
|
|
18
|
-
Number = "NUMBER",
|
|
19
|
-
DateTime = "DATETIME",
|
|
20
|
-
ConfidentialArray = "CONFIDENTIAL ARRAY",
|
|
21
|
-
Array = "ARRAY"
|
|
22
|
-
}
|
|
23
|
-
interface IComparatorValue {
|
|
24
|
-
value: UserComparator;
|
|
25
|
-
label: UserComparatorText;
|
|
26
|
-
group: ComparatorGroup;
|
|
27
|
-
index: number;
|
|
28
|
-
}
|
|
29
|
-
export declare class UserConditionComponent implements OnInit {
|
|
30
|
-
private formGenerator;
|
|
31
|
-
private dialog;
|
|
32
|
-
private comparisonValueListHelper;
|
|
33
|
-
private clipboard;
|
|
34
|
-
private messagingService;
|
|
35
|
-
private changeDetectorRef;
|
|
36
|
-
readonly separatorKeysCodes: readonly [13, 188];
|
|
37
|
-
FormHelper: typeof FormHelper;
|
|
38
|
-
targetingRuleIndex: number;
|
|
39
|
-
conditionIndex: number;
|
|
40
|
-
readOnly: boolean;
|
|
41
|
-
featureFlagLimitations: IFeatureFlagLimitations;
|
|
42
|
-
formGroup: FormGroup<UserConditionForm>;
|
|
43
|
-
matChipGrid: MatChipGrid;
|
|
44
|
-
set setMatChipGrid(matChipGrid: MatChipGrid);
|
|
45
|
-
defaultComparisonAttributes: string[];
|
|
46
|
-
dateValue: Date;
|
|
47
|
-
timeValue: string;
|
|
48
|
-
comparatorSuggestions: Map<any, any>;
|
|
49
|
-
selectedComparator: UserComparator;
|
|
50
|
-
comparatorSeparator: string;
|
|
51
|
-
keepOrder: (a: any, _: any) => any;
|
|
52
|
-
RolloutRuleComparatorV2Type: typeof UserComparatorType;
|
|
53
|
-
rolloutRuleComparatorType: UserComparatorType;
|
|
54
|
-
isClearTextComparatorSelected: boolean;
|
|
55
|
-
fakeFormControl: FormControl<string>;
|
|
56
|
-
errorStateMatcher: ListValueErrorStateMatcher;
|
|
57
|
-
constructor(formGenerator: FormGenerator, dialog: MatDialog, comparisonValueListHelper: ComparisonValueListHelper, clipboard: Clipboard, messagingService: MessagingService, changeDetectorRef: ChangeDetectorRef);
|
|
58
|
-
ngOnInit(): void;
|
|
59
|
-
attributeChanged(event: Event): void;
|
|
60
|
-
comparatorChanged(value: any): void;
|
|
61
|
-
compDialog(): void;
|
|
62
|
-
add(event: MatChipInputEvent): void;
|
|
63
|
-
remove(index: number): void;
|
|
64
|
-
edit(index: number, event: MatChipEditedEvent): void;
|
|
65
|
-
expandText(): void;
|
|
66
|
-
expandList(): void;
|
|
67
|
-
removeAll(): void;
|
|
68
|
-
copyValuesAsCsv(): void;
|
|
69
|
-
copyToClipboard(value: string): void;
|
|
70
|
-
getRawValue(): IComparisonValueListModel[];
|
|
71
|
-
isValueInvalid(listValueItemControl: FormGroup<ComparisonValueListForm>): boolean;
|
|
72
|
-
isHintInvalid(listValueItemControl: FormGroup<ComparisonValueListForm>): boolean;
|
|
73
|
-
isListValueItemInvalid(listValueItemControl: FormGroup<ComparisonValueListForm>): boolean;
|
|
74
|
-
getListValueItemTooltipMessage(listValueItemControl: FormGroup<ComparisonValueListForm>): any;
|
|
75
|
-
calcComparators(resetVal?: boolean): void;
|
|
76
|
-
buildComparatorSuggestions(ids: number[], resetVal: boolean): void;
|
|
77
|
-
dedupComps(comps: IComparatorValue[]): IComparatorValue[];
|
|
78
|
-
genSeparator(comps: IComparatorValue[]): string;
|
|
79
|
-
isNumberArr(val: any): boolean;
|
|
80
|
-
isNullCompVal(compVal: Partial<{
|
|
81
|
-
stringValue?: string;
|
|
82
|
-
doubleValue?: number;
|
|
83
|
-
listValue?: Partial<{
|
|
84
|
-
value: string;
|
|
85
|
-
hint?: string;
|
|
86
|
-
index: number;
|
|
87
|
-
}>[];
|
|
88
|
-
}>): boolean;
|
|
89
|
-
isClearTextComparator(comparator: UserComparator): boolean;
|
|
90
|
-
openCleartextInfoDialog(): void;
|
|
91
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UserConditionComponent, never>;
|
|
92
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UserConditionComponent, "app-user-condition", never, { "targetingRuleIndex": { "alias": "targetingRuleIndex"; "required": false; }; "conditionIndex": { "alias": "conditionIndex"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "featureFlagLimitations": { "alias": "featureFlagLimitations"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; }, {}, never, never, false, never>;
|
|
93
|
-
}
|
|
94
|
-
export {};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { FormArray, FormGroup } from '@angular/forms';
|
|
3
|
-
import { FormHelper, IFlagState, IFeatureFlagLimitations, PercentageOptionForm, FormGenerator, SettingType } from '../../../../../bootstrap';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class PercentageOptionsComponent {
|
|
6
|
-
private formGenerator;
|
|
7
|
-
formArray: FormArray<FormGroup<PercentageOptionForm>>;
|
|
8
|
-
flagState: IFlagState;
|
|
9
|
-
featureFlagLimitations: IFeatureFlagLimitations;
|
|
10
|
-
showPercentageEvaluationAttribute: boolean;
|
|
11
|
-
percentageEvaluationAttribute: string;
|
|
12
|
-
isPercentageOnlyTargetingRule: boolean;
|
|
13
|
-
lastPercentageOptionLeft: EventEmitter<any>;
|
|
14
|
-
subscriptionLimitReached: EventEmitter<any>;
|
|
15
|
-
changePercentageEvaluationAttributeRequested: EventEmitter<any>;
|
|
16
|
-
SettingType: {
|
|
17
|
-
Boolean: SettingType;
|
|
18
|
-
String: SettingType;
|
|
19
|
-
Int: SettingType;
|
|
20
|
-
Double: SettingType;
|
|
21
|
-
};
|
|
22
|
-
FormHelper: typeof FormHelper;
|
|
23
|
-
constructor(formGenerator: FormGenerator);
|
|
24
|
-
addOption(): void;
|
|
25
|
-
remove(index: number): void;
|
|
26
|
-
percentageChanged(index: number): void;
|
|
27
|
-
changePercentageEvaluationAttribute(): void;
|
|
28
|
-
getPercentageEvaluationAttribute(): string;
|
|
29
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PercentageOptionsComponent, never>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PercentageOptionsComponent, "app-percentage-options", never, { "formArray": { "alias": "formArray"; "required": false; }; "flagState": { "alias": "flagState"; "required": false; }; "featureFlagLimitations": { "alias": "featureFlagLimitations"; "required": false; }; "showPercentageEvaluationAttribute": { "alias": "showPercentageEvaluationAttribute"; "required": false; }; "percentageEvaluationAttribute": { "alias": "percentageEvaluationAttribute"; "required": false; }; "isPercentageOnlyTargetingRule": { "alias": "isPercentageOnlyTargetingRule"; "required": false; }; }, { "lastPercentageOptionLeft": "lastPercentageOptionLeft"; "subscriptionLimitReached": "subscriptionLimitReached"; "changePercentageEvaluationAttributeRequested": "changePercentageEvaluationAttributeRequested"; }, never, never, false, never>;
|
|
31
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { FormGroup } from '@angular/forms';
|
|
3
|
-
import { ISegment, TargetingRuleForm, FormGenerator, IFeatureFlagLimitations, IFlagState } from '../../../../bootstrap';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class TargetingRuleComponent {
|
|
6
|
-
private formGenerator;
|
|
7
|
-
formGroup: FormGroup<TargetingRuleForm>;
|
|
8
|
-
segments: ISegment[];
|
|
9
|
-
flagState: IFlagState;
|
|
10
|
-
targetingRuleIndex: number;
|
|
11
|
-
featureFlagLimitations: IFeatureFlagLimitations;
|
|
12
|
-
canManageSegments: boolean;
|
|
13
|
-
showPercentageEvaluationAttribute: boolean;
|
|
14
|
-
percentageEvaluationAttribute: string;
|
|
15
|
-
createSegmentRequested: EventEmitter<any>;
|
|
16
|
-
manageSegmentsRequested: EventEmitter<any>;
|
|
17
|
-
addSegmentConditionRequestedWithoutSegments: EventEmitter<any>;
|
|
18
|
-
removedAllRules: EventEmitter<any>;
|
|
19
|
-
subscriptionLimitReached: EventEmitter<any>;
|
|
20
|
-
changePercentageEvaluationAttributeRequested: EventEmitter<any>;
|
|
21
|
-
prerequisiteConditionChanged: EventEmitter<any>;
|
|
22
|
-
constructor(formGenerator: FormGenerator);
|
|
23
|
-
convertToPercentage(): void;
|
|
24
|
-
isPercentageOnly(): boolean;
|
|
25
|
-
showBadge(): boolean;
|
|
26
|
-
getChipText(): string;
|
|
27
|
-
getChipTooltip(): string;
|
|
28
|
-
lastPercentageOptionLeft(): void;
|
|
29
|
-
lastConditionDeleted(): void;
|
|
30
|
-
subscriptionLimitReachedCalled(): void;
|
|
31
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TargetingRuleComponent, never>;
|
|
32
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TargetingRuleComponent, "app-targeting-rule", never, { "formGroup": { "alias": "formGroup"; "required": false; }; "segments": { "alias": "segments"; "required": false; }; "flagState": { "alias": "flagState"; "required": false; }; "targetingRuleIndex": { "alias": "targetingRuleIndex"; "required": false; }; "featureFlagLimitations": { "alias": "featureFlagLimitations"; "required": false; }; "canManageSegments": { "alias": "canManageSegments"; "required": false; }; "showPercentageEvaluationAttribute": { "alias": "showPercentageEvaluationAttribute"; "required": false; }; "percentageEvaluationAttribute": { "alias": "percentageEvaluationAttribute"; "required": false; }; }, { "createSegmentRequested": "createSegmentRequested"; "manageSegmentsRequested": "manageSegmentsRequested"; "addSegmentConditionRequestedWithoutSegments": "addSegmentConditionRequestedWithoutSegments"; "removedAllRules": "removedAllRules"; "subscriptionLimitReached": "subscriptionLimitReached"; "changePercentageEvaluationAttributeRequested": "changePercentageEvaluationAttributeRequested"; "prerequisiteConditionChanged": "prerequisiteConditionChanged"; }, never, never, false, never>;
|
|
33
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { FormGroup } from '@angular/forms';
|
|
3
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
4
|
-
import { MessagingService, ISegment, IPrerequisiteChanged, IFeatureFlagLimitations, UpdateSettingValueForm, FormGenerator, IFlagState } from '../../bootstrap';
|
|
5
|
-
import { Router } from '@angular/router';
|
|
6
|
-
import { PublicApiService } from '../../_services';
|
|
7
|
-
import { Clipboard } from '@angular/cdk/clipboard';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
export interface IGlance {
|
|
10
|
-
ruleText: string;
|
|
11
|
-
percentageText: string;
|
|
12
|
-
class: string;
|
|
13
|
-
}
|
|
14
|
-
export declare class FeatureFlagComponent {
|
|
15
|
-
private dialog;
|
|
16
|
-
private messagingService;
|
|
17
|
-
private formGenerator;
|
|
18
|
-
private router;
|
|
19
|
-
private publicApiService;
|
|
20
|
-
private clipboard;
|
|
21
|
-
formGroup: FormGroup<UpdateSettingValueForm>;
|
|
22
|
-
flagState: IFlagState;
|
|
23
|
-
segments: ISegment[];
|
|
24
|
-
featureFlagLimitations: IFeatureFlagLimitations;
|
|
25
|
-
hasOtherEnvironment: boolean;
|
|
26
|
-
environmentName: string;
|
|
27
|
-
showEnvironmentName: boolean;
|
|
28
|
-
deleteSettingText: string;
|
|
29
|
-
canDeleteSetting: boolean;
|
|
30
|
-
addSegmentConditionRequestedWithoutSegments: EventEmitter<any>;
|
|
31
|
-
expandedChanged: EventEmitter<boolean>;
|
|
32
|
-
deleteSettingRequested: EventEmitter<any>;
|
|
33
|
-
subscriptionLimitReached: EventEmitter<any>;
|
|
34
|
-
prerequisiteConditionChanged: EventEmitter<IPrerequisiteChanged>;
|
|
35
|
-
recalcAddButtons: EventEmitter<any>;
|
|
36
|
-
constructor(dialog: MatDialog, messagingService: MessagingService, formGenerator: FormGenerator, router: Router, publicApiService: PublicApiService, clipboard: Clipboard);
|
|
37
|
-
setExpanded(expanded: boolean): void;
|
|
38
|
-
deleteSetting(): void;
|
|
39
|
-
keyCopied(): void;
|
|
40
|
-
subscriptionLimitReachedCalled(): void;
|
|
41
|
-
changePercentageEvaluationAttribute(): void;
|
|
42
|
-
getGlance(): IGlance;
|
|
43
|
-
getRuleText(): string;
|
|
44
|
-
copyDirectLink(): void;
|
|
45
|
-
getDashboardUrl(): string;
|
|
46
|
-
openDependeesDialog(): void;
|
|
47
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FeatureFlagComponent, never>;
|
|
48
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FeatureFlagComponent, "app-feature-flag", never, { "formGroup": { "alias": "formGroup"; "required": false; }; "flagState": { "alias": "flagState"; "required": false; }; "segments": { "alias": "segments"; "required": false; }; "featureFlagLimitations": { "alias": "featureFlagLimitations"; "required": false; }; "hasOtherEnvironment": { "alias": "hasOtherEnvironment"; "required": false; }; "environmentName": { "alias": "environmentName"; "required": false; }; "showEnvironmentName": { "alias": "showEnvironmentName"; "required": false; }; "deleteSettingText": { "alias": "deleteSettingText"; "required": false; }; "canDeleteSetting": { "alias": "canDeleteSetting"; "required": false; }; }, { "addSegmentConditionRequestedWithoutSegments": "addSegmentConditionRequestedWithoutSegments"; "expandedChanged": "expandedChanged"; "deleteSettingRequested": "deleteSettingRequested"; "subscriptionLimitReached": "subscriptionLimitReached"; "prerequisiteConditionChanged": "prerequisiteConditionChanged"; "recalcAddButtons": "recalcAddButtons"; }, never, never, false, never>;
|
|
49
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { FormControl } from '@angular/forms';
|
|
3
|
-
import { MatDialogRef } from '@angular/material/dialog';
|
|
4
|
-
import { FormHelper, FormGenerator } from '../../../bootstrap';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class PercentageEvaluationAttributeDialogComponent implements OnInit {
|
|
7
|
-
dialogRef: MatDialogRef<PercentageEvaluationAttributeDialogComponent>;
|
|
8
|
-
private formGenerator;
|
|
9
|
-
data: {
|
|
10
|
-
percentageEvaluationAttribute: string;
|
|
11
|
-
readOnly: boolean;
|
|
12
|
-
};
|
|
13
|
-
FormHelper: typeof FormHelper;
|
|
14
|
-
readOnly: boolean;
|
|
15
|
-
defaultComparisonAttributes: string[];
|
|
16
|
-
formControl: FormControl<string>;
|
|
17
|
-
constructor(dialogRef: MatDialogRef<PercentageEvaluationAttributeDialogComponent>, formGenerator: FormGenerator, data: {
|
|
18
|
-
percentageEvaluationAttribute: string;
|
|
19
|
-
readOnly: boolean;
|
|
20
|
-
});
|
|
21
|
-
ngOnInit(): void;
|
|
22
|
-
close(): void;
|
|
23
|
-
attributeChanged(event: Event): void;
|
|
24
|
-
isDefault(attribute: string): boolean;
|
|
25
|
-
set(): void;
|
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PercentageEvaluationAttributeDialogComponent, never>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PercentageEvaluationAttributeDialogComponent, "app-percentage-evaluation-attribute-dialog", never, {}, {}, never, never, false, never>;
|
|
28
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { OnInit, EventEmitter, OnDestroy } from '@angular/core';
|
|
2
|
-
import { BaseComponent } from '../base/base.component';
|
|
3
|
-
import { SegmentListModel, SettingDataModel, SettingFormulaModel, UpdateEvaluationFormulaModel } from 'ng-configcat-publicapi';
|
|
4
|
-
import { IFlagState } from '../_models/flag-state';
|
|
5
|
-
import { FormGroup } from '@angular/forms';
|
|
6
|
-
import { IPrerequisiteSetting, UpdateSettingValueForm } from '../_models/setting-value-formgroup';
|
|
7
|
-
import { PublicApiService } from '../_services';
|
|
8
|
-
import { Subscription } from 'rxjs';
|
|
9
|
-
import { FormGenerator } from '../_services/form-generator';
|
|
10
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
11
|
-
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
12
|
-
import * as i0 from "@angular/core";
|
|
13
|
-
export declare class FeatureFlagItemComponent extends BaseComponent implements OnInit, OnDestroy {
|
|
14
|
-
private formGenerator;
|
|
15
|
-
private dialog;
|
|
16
|
-
private snackBar;
|
|
17
|
-
productId: string;
|
|
18
|
-
environmentId: string;
|
|
19
|
-
configId: string;
|
|
20
|
-
settingId: number;
|
|
21
|
-
canDeleteSetting: boolean;
|
|
22
|
-
deleteSettingText: string;
|
|
23
|
-
showEnvironmentName: boolean;
|
|
24
|
-
deleteSettingRequested: EventEmitter<any>;
|
|
25
|
-
loadSucceeded: EventEmitter<any>;
|
|
26
|
-
loadFailed: EventEmitter<any>;
|
|
27
|
-
saveSucceeded: EventEmitter<any>;
|
|
28
|
-
saveFailed: EventEmitter<any>;
|
|
29
|
-
expandedStateChanged: EventEmitter<any>;
|
|
30
|
-
formValuesChanged: EventEmitter<any>;
|
|
31
|
-
segments: SegmentListModel[];
|
|
32
|
-
dashboardBasePath: string;
|
|
33
|
-
loading: boolean;
|
|
34
|
-
formGroup: FormGroup<UpdateSettingValueForm>;
|
|
35
|
-
formValueChangesSubscription: Subscription;
|
|
36
|
-
settings: SettingDataModel[];
|
|
37
|
-
flagState: IFlagState;
|
|
38
|
-
settingFormula: SettingFormulaModel;
|
|
39
|
-
prerequisiteSettings: IPrerequisiteSetting[];
|
|
40
|
-
showFeedBackMessage: boolean;
|
|
41
|
-
hasSettingValues: boolean;
|
|
42
|
-
hasOtherEnvironment: boolean;
|
|
43
|
-
constructor(formGenerator: FormGenerator, dialog: MatDialog, snackBar: MatSnackBar, publicApiService: PublicApiService);
|
|
44
|
-
ngOnInit(): void;
|
|
45
|
-
ngOnDestroy(): void;
|
|
46
|
-
reloadSettingValues(): void;
|
|
47
|
-
handleFetchedSettingValues(model: SettingFormulaModel): void;
|
|
48
|
-
unsubscribeFormValueChangesSubscription(): void;
|
|
49
|
-
private createFormGroupFromState;
|
|
50
|
-
getAvailablePrerequisiteSettings(settingId: number): IPrerequisiteSetting[];
|
|
51
|
-
revert(): void;
|
|
52
|
-
revertDirtyValuesFromState(): void;
|
|
53
|
-
submit(): void;
|
|
54
|
-
updateSettingValues(updateModel: UpdateEvaluationFormulaModel, reason?: string): void;
|
|
55
|
-
onDeleteSettingRequested(setting: any): void;
|
|
56
|
-
private deleteSettingInternal;
|
|
57
|
-
subscriptionLimitReachedCalled(): void;
|
|
58
|
-
addSegmentConditionRequestedWithoutSegments(): void;
|
|
59
|
-
trackByIndex(index: number): any;
|
|
60
|
-
recalcPrerequisites(): void;
|
|
61
|
-
recalcAddButtons(): void;
|
|
62
|
-
hasOnlyPercentageRule(group: FormGroup<UpdateSettingValueForm>): boolean;
|
|
63
|
-
expandedChanged(expandedState: boolean): void;
|
|
64
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FeatureFlagItemComponent, never>;
|
|
65
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FeatureFlagItemComponent, "configcat-feature-flag-item", never, { "productId": { "alias": "productId"; "required": false; }; "environmentId": { "alias": "environmentId"; "required": false; }; "configId": { "alias": "configId"; "required": false; }; "settingId": { "alias": "settingId"; "required": false; }; "canDeleteSetting": { "alias": "canDeleteSetting"; "required": false; }; "deleteSettingText": { "alias": "deleteSettingText"; "required": false; }; "showEnvironmentName": { "alias": "showEnvironmentName"; "required": false; }; }, { "deleteSettingRequested": "deleteSettingRequested"; "loadSucceeded": "loadSucceeded"; "loadFailed": "loadFailed"; "saveSucceeded": "saveSucceeded"; "saveFailed": "saveFailed"; "expandedStateChanged": "expandedStateChanged"; "formValuesChanged": "formValuesChanged"; }, never, never, false, never>;
|
|
66
|
-
}
|
package/public-api.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export * from './lib/ng-configcat-publicapi-ui.module';
|
|
2
|
-
export * from './lib/_directives';
|
|
3
|
-
export * from './lib/_services';
|
|
4
|
-
export * from './lib/setting-item/setting-item.component';
|
|
5
|
-
export * from './lib/authorization/authorization.component';
|
|
6
|
-
export * from './lib/selects/product-select/product-select.component';
|
|
7
|
-
export * from './lib/selects/config-select/config-select.component';
|
|
8
|
-
export * from './lib/selects/environment-select/environment-select.component';
|
|
9
|
-
export * from './lib/selects/setting-select/setting-select.component';
|
|
10
|
-
export * from './lib/dialogs/delete-setting-dialog/delete-setting-dialog.component';
|
|
11
|
-
export * from './lib/v2/feature-flag-item.component';
|