ng-configcat-publicapi-ui 3.0.8 → 4.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/esm2022/lib/_directives/input-display-normalizer.directive.mjs +38 -0
- package/esm2022/lib/_models/flag-state.mjs +2 -0
- package/esm2022/lib/_models/setting-value-formgroup.mjs +2 -0
- package/esm2022/lib/_models/user-comparator.mjs +100 -0
- package/esm2022/lib/_services/app-data-adapter.mjs +18 -0
- package/esm2022/lib/_services/comparison-value-list-helper.mjs +72 -0
- package/esm2022/lib/_services/date-helper.mjs +56 -0
- package/esm2022/lib/_services/form-generator.mjs +359 -0
- package/esm2022/lib/_services/form-helper.mjs +107 -0
- package/esm2022/lib/_services/messaging.service.mjs +26 -0
- package/esm2022/lib/_services/public-api.service.mjs +77 -0
- package/esm2022/lib/_services/setting-list-form-helper.mjs +171 -0
- package/esm2022/lib/_services/tracking.directive.mjs +16 -0
- package/esm2022/lib/ace-editor/ace-editor.component.mjs +137 -0
- package/esm2022/lib/authorization/authorization.component.mjs +62 -0
- package/{esm2020 → esm2022}/lib/base/base-select.component.mjs +4 -4
- package/esm2022/lib/base/base.component.mjs +48 -0
- package/esm2022/lib/bootstrap.mjs +10 -0
- package/{esm2020 → esm2022}/lib/configuration.mjs +4 -4
- package/esm2022/lib/dialogs/confirmation-dialog/confirmation-dialog.mjs +28 -0
- package/{esm2020 → esm2022}/lib/dialogs/delete-setting-dialog/delete-setting-dialog.component.mjs +6 -6
- package/esm2022/lib/dialogs/expand-dialog/expand-dialog.component.mjs +80 -0
- package/esm2022/lib/dialogs/info-dialog/info-dialog.mjs +29 -0
- package/esm2022/lib/dialogs/reason-dialog/reason-dialog.component.mjs +36 -0
- package/{esm2020 → esm2022}/lib/dialogs/save-snackbar/save-snackbar.component.mjs +5 -5
- package/esm2022/lib/ng-configcat-publicapi-ui.module.mjs +285 -0
- package/esm2022/lib/selects/config-select/config-select.component.mjs +60 -0
- package/esm2022/lib/selects/environment-select/environment-select.component.mjs +47 -0
- package/esm2022/lib/selects/product-select/product-select.component.mjs +40 -0
- package/esm2022/lib/selects/setting-select/setting-select.component.mjs +47 -0
- package/esm2022/lib/setting-item/setting-item.component.mjs +118 -0
- package/esm2022/lib/setting-list/setting/rollout-percentage-items/rollout-percentage-items.component.mjs +81 -0
- package/esm2022/lib/setting-list/setting/rollout-rules/rollout-rules.component.mjs +293 -0
- package/{esm2020 → esm2022}/lib/setting-list/setting/setting.component.mjs +5 -5
- package/esm2022/lib/setting-list/setting/value/value.component.mjs +37 -0
- package/esm2022/lib/setting-list/setting-list.component.mjs +194 -0
- package/esm2022/lib/v2/feature-flag/date-time-picker/date-time-picker.component.mjs +123 -0
- package/esm2022/lib/v2/feature-flag/dependees-dialog/dependees-dialog.component.mjs +30 -0
- package/esm2022/lib/v2/feature-flag/evaluation-formula/evaluation-formula.component.mjs +220 -0
- package/esm2022/lib/v2/feature-flag/evaluation-formula/feature-flag-value/feature-flag-value.component.mjs +61 -0
- package/esm2022/lib/v2/feature-flag/evaluation-formula/popout-text-editor-dialog/popout-text-editor-dialog.component.mjs +72 -0
- package/esm2022/lib/v2/feature-flag/evaluation-formula/targeting-rule/conditions/condition-chip/condition-chip.component.mjs +25 -0
- package/esm2022/lib/v2/feature-flag/evaluation-formula/targeting-rule/conditions/conditions.component.mjs +105 -0
- package/esm2022/lib/v2/feature-flag/evaluation-formula/targeting-rule/conditions/prerequisite-flag-condition/prerequisite-flag-condition.component.mjs +75 -0
- package/esm2022/lib/v2/feature-flag/evaluation-formula/targeting-rule/conditions/segment-condition/segment-condition.component.mjs +48 -0
- package/esm2022/lib/v2/feature-flag/evaluation-formula/targeting-rule/conditions/user-condition/comparator-dialog/comparator-dialog.component.mjs +113 -0
- package/esm2022/lib/v2/feature-flag/evaluation-formula/targeting-rule/conditions/user-condition/popout-list-editor-dialog/popout-list-editor-dialog.component.mjs +251 -0
- package/esm2022/lib/v2/feature-flag/evaluation-formula/targeting-rule/conditions/user-condition/user-condition.component.mjs +444 -0
- package/esm2022/lib/v2/feature-flag/evaluation-formula/targeting-rule/percentage-options/percentage-options.component.mjs +84 -0
- package/esm2022/lib/v2/feature-flag/evaluation-formula/targeting-rule/targeting-rule.component.mjs +129 -0
- package/esm2022/lib/v2/feature-flag/feature-flag.component.mjs +190 -0
- package/esm2022/lib/v2/feature-flag/percentage-evaluation-attribute-dialog/percentage-evaluation-attribute-dialog.component.mjs +65 -0
- package/esm2022/lib/v2/feature-flag-item.component.mjs +319 -0
- package/{esm2020 → esm2022}/public-api.mjs +2 -1
- package/fesm2022/ng-configcat-publicapi-ui.mjs +4790 -0
- package/fesm2022/ng-configcat-publicapi-ui.mjs.map +1 -0
- package/lib/_models/flag-state.d.ts +20 -0
- package/lib/_models/setting-value-formgroup.d.ts +69 -0
- package/lib/_models/user-comparator.d.ts +84 -0
- package/lib/_services/app-data-adapter.d.ts +7 -0
- package/lib/_services/comparison-value-list-helper.d.ts +17 -0
- package/lib/_services/date-helper.d.ts +6 -0
- package/lib/_services/form-generator.d.ts +59 -0
- package/lib/_services/form-helper.d.ts +4 -1
- package/lib/_services/messaging.service.d.ts +12 -0
- package/lib/_services/public-api.service.d.ts +2 -1
- package/lib/_services/setting-list-form-helper.d.ts +1 -1
- package/lib/_services/tracking.directive.d.ts +6 -0
- package/lib/ace-editor/ace-editor.component.d.ts +32 -0
- package/lib/authorization/authorization.component.d.ts +2 -2
- package/lib/base/base-select.component.d.ts +1 -1
- package/lib/base/base.component.d.ts +2 -1
- package/lib/bootstrap.d.ts +12 -0
- package/lib/dialogs/confirmation-dialog/confirmation-dialog.d.ts +19 -0
- package/lib/dialogs/info-dialog/info-dialog.d.ts +17 -0
- package/lib/ng-configcat-publicapi-ui.module.d.ts +47 -19
- package/lib/selects/config-select/config-select.component.d.ts +1 -1
- package/lib/selects/environment-select/environment-select.component.d.ts +1 -1
- package/lib/selects/product-select/product-select.component.d.ts +1 -1
- package/lib/selects/setting-select/setting-select.component.d.ts +1 -1
- package/lib/setting-item/setting-item.component.d.ts +4 -2
- package/lib/setting-list/setting/rollout-percentage-items/rollout-percentage-items.component.d.ts +1 -1
- package/lib/setting-list/setting/rollout-rules/rollout-rules.component.d.ts +4 -4
- package/lib/setting-list/setting/setting.component.d.ts +1 -1
- package/lib/setting-list/setting/value/value.component.d.ts +1 -1
- package/lib/setting-list/setting-list.component.d.ts +1 -1
- package/lib/v2/feature-flag/date-time-picker/date-time-picker.component.d.ts +25 -0
- package/lib/v2/feature-flag/dependees-dialog/dependees-dialog.component.d.ts +27 -0
- package/lib/v2/feature-flag/evaluation-formula/evaluation-formula.component.d.ts +41 -0
- package/lib/v2/feature-flag/evaluation-formula/feature-flag-value/feature-flag-value.component.d.ts +18 -0
- package/lib/v2/feature-flag/evaluation-formula/popout-text-editor-dialog/popout-text-editor-dialog.component.d.ts +30 -0
- package/lib/v2/feature-flag/evaluation-formula/targeting-rule/conditions/condition-chip/condition-chip.component.d.ts +10 -0
- package/lib/v2/feature-flag/evaluation-formula/targeting-rule/conditions/conditions.component.d.ts +27 -0
- package/lib/v2/feature-flag/evaluation-formula/targeting-rule/conditions/prerequisite-flag-condition/prerequisite-flag-condition.component.d.ts +36 -0
- package/lib/v2/feature-flag/evaluation-formula/targeting-rule/conditions/segment-condition/segment-condition.component.d.ts +21 -0
- package/lib/v2/feature-flag/evaluation-formula/targeting-rule/conditions/user-condition/comparator-dialog/comparator-dialog.component.d.ts +79 -0
- package/lib/v2/feature-flag/evaluation-formula/targeting-rule/conditions/user-condition/popout-list-editor-dialog/popout-list-editor-dialog.component.d.ts +63 -0
- package/lib/v2/feature-flag/evaluation-formula/targeting-rule/conditions/user-condition/user-condition.component.d.ts +94 -0
- package/lib/v2/feature-flag/evaluation-formula/targeting-rule/percentage-options/percentage-options.component.d.ts +31 -0
- package/lib/v2/feature-flag/evaluation-formula/targeting-rule/targeting-rule.component.d.ts +33 -0
- package/lib/v2/feature-flag/feature-flag.component.d.ts +49 -0
- package/lib/v2/feature-flag/percentage-evaluation-attribute-dialog/percentage-evaluation-attribute-dialog.component.d.ts +28 -0
- package/lib/v2/feature-flag-item.component.d.ts +66 -0
- package/package.json +12 -16
- package/public-api.d.ts +1 -0
- package/public-api.scss +205 -3
- package/esm2020/lib/_directives/input-display-normalizer.directive.mjs +0 -38
- package/esm2020/lib/_services/form-helper.mjs +0 -104
- package/esm2020/lib/_services/public-api.service.mjs +0 -71
- package/esm2020/lib/_services/setting-list-form-helper.mjs +0 -171
- package/esm2020/lib/authorization/authorization.component.mjs +0 -62
- package/esm2020/lib/base/base.component.mjs +0 -45
- package/esm2020/lib/dialogs/expand-dialog/expand-dialog.component.mjs +0 -80
- package/esm2020/lib/dialogs/reason-dialog/reason-dialog.component.mjs +0 -36
- package/esm2020/lib/ng-configcat-publicapi-ui.module.mjs +0 -179
- package/esm2020/lib/selects/config-select/config-select.component.mjs +0 -60
- package/esm2020/lib/selects/environment-select/environment-select.component.mjs +0 -47
- package/esm2020/lib/selects/product-select/product-select.component.mjs +0 -40
- package/esm2020/lib/selects/setting-select/setting-select.component.mjs +0 -47
- package/esm2020/lib/setting-item/setting-item.component.mjs +0 -116
- package/esm2020/lib/setting-list/setting/rollout-percentage-items/rollout-percentage-items.component.mjs +0 -81
- package/esm2020/lib/setting-list/setting/rollout-rules/rollout-rules.component.mjs +0 -293
- package/esm2020/lib/setting-list/setting/value/value.component.mjs +0 -37
- package/esm2020/lib/setting-list/setting-list.component.mjs +0 -194
- package/fesm2015/ng-configcat-publicapi-ui.mjs +0 -1786
- package/fesm2015/ng-configcat-publicapi-ui.mjs.map +0 -1
- package/fesm2020/ng-configcat-publicapi-ui.mjs +0 -1763
- package/fesm2020/ng-configcat-publicapi-ui.mjs.map +0 -1
- /package/{esm2020 → esm2022}/lib/_directives/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/_models/deleteSettingModel.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/_models/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/_models/settingValuesModel.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/_models/updateSettingValuesModel.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/_services/index.mjs +0 -0
- /package/{esm2020 → esm2022}/lib/_services/platform-helper.mjs +0 -0
- /package/{esm2020 → esm2022}/ng-configcat-publicapi-ui.mjs +0 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { SettingFormulaModel } from "ng-configcat-publicapi";
|
|
2
|
+
import { IDependeeSetting, IPrerequisiteSetting } from "./setting-value-formgroup";
|
|
3
|
+
export interface IFlagState {
|
|
4
|
+
addButtonRenderState: IAddButtonsRenderState;
|
|
5
|
+
settingValue: SettingFormulaModel;
|
|
6
|
+
dependeeSettings: IDependeeSetting[];
|
|
7
|
+
prerequisiteSettings: IPrerequisiteSetting[];
|
|
8
|
+
panelExpanded: boolean;
|
|
9
|
+
readOnly: boolean;
|
|
10
|
+
}
|
|
11
|
+
export interface IAddButtonsRenderState {
|
|
12
|
+
renderTopAddButtons: boolean;
|
|
13
|
+
hasPercentageOnlyRule: boolean;
|
|
14
|
+
addRuleButtonTracker: IAddRuleButtonTracker[];
|
|
15
|
+
}
|
|
16
|
+
export interface IAddRuleButtonTracker {
|
|
17
|
+
showAddRuleButtons: boolean;
|
|
18
|
+
showOrChip: boolean;
|
|
19
|
+
renderSeparationArea: boolean;
|
|
20
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { FormArray, FormControl, FormGroup } from "@angular/forms";
|
|
2
|
+
import { UserComparator, SegmentComparator, SettingType, PrerequisiteComparator } from "ng-configcat-publicapi";
|
|
3
|
+
export interface ComparisonValueListForm {
|
|
4
|
+
value: FormControl<string>;
|
|
5
|
+
hint?: FormControl<string>;
|
|
6
|
+
index: FormControl<number>;
|
|
7
|
+
}
|
|
8
|
+
export interface ComparisonValueForm {
|
|
9
|
+
stringValue?: FormControl<string>;
|
|
10
|
+
doubleValue?: FormControl<number>;
|
|
11
|
+
listValue?: FormArray<FormGroup<ComparisonValueListForm>>;
|
|
12
|
+
}
|
|
13
|
+
export interface ValueForm {
|
|
14
|
+
boolValue?: FormControl<boolean>;
|
|
15
|
+
stringValue?: FormControl<string>;
|
|
16
|
+
intValue?: FormControl<number>;
|
|
17
|
+
doubleValue?: FormControl<number>;
|
|
18
|
+
}
|
|
19
|
+
export interface UserConditionForm {
|
|
20
|
+
comparisonAttribute: FormControl<string>;
|
|
21
|
+
comparator: FormControl<UserComparator>;
|
|
22
|
+
comparisonValue: FormGroup<ComparisonValueForm>;
|
|
23
|
+
}
|
|
24
|
+
export interface SegmentConditionForm {
|
|
25
|
+
segmentId: FormControl<string>;
|
|
26
|
+
comparator: FormControl<SegmentComparator>;
|
|
27
|
+
}
|
|
28
|
+
export interface PrerequisiteFlagConditionForm {
|
|
29
|
+
prerequisiteSettingId: FormControl<number>;
|
|
30
|
+
comparator: FormControl<PrerequisiteComparator>;
|
|
31
|
+
prerequisiteComparisonValue: FormGroup<ValueForm>;
|
|
32
|
+
}
|
|
33
|
+
export interface ConditionForm {
|
|
34
|
+
userCondition?: FormGroup<UserConditionForm>;
|
|
35
|
+
segmentCondition?: FormGroup<SegmentConditionForm>;
|
|
36
|
+
prerequisiteFlagCondition?: FormGroup<PrerequisiteFlagConditionForm>;
|
|
37
|
+
}
|
|
38
|
+
export interface PercentageOptionForm {
|
|
39
|
+
percentage: FormControl<number>;
|
|
40
|
+
value: FormGroup<ValueForm>;
|
|
41
|
+
}
|
|
42
|
+
export interface TargetingRuleForm {
|
|
43
|
+
conditions: FormArray<FormGroup<ConditionForm>>;
|
|
44
|
+
percentageOptions?: FormArray<FormGroup<PercentageOptionForm>>;
|
|
45
|
+
value?: FormGroup<ValueForm>;
|
|
46
|
+
}
|
|
47
|
+
export interface UpdateSettingValueForm {
|
|
48
|
+
defaultValue: FormGroup<ValueForm>;
|
|
49
|
+
percentageEvaluationAttribute: FormControl<string>;
|
|
50
|
+
targetingRules: FormArray<FormGroup<TargetingRuleForm>>;
|
|
51
|
+
}
|
|
52
|
+
export interface ChangeSetForm {
|
|
53
|
+
updateSettingValues: FormArray<FormGroup<UpdateSettingValueForm>>;
|
|
54
|
+
}
|
|
55
|
+
export interface IPrerequisiteSetting {
|
|
56
|
+
settingId: number;
|
|
57
|
+
key: string;
|
|
58
|
+
name: string;
|
|
59
|
+
settingType: SettingType;
|
|
60
|
+
}
|
|
61
|
+
export interface IDependeeSetting {
|
|
62
|
+
settingId: number;
|
|
63
|
+
key: string;
|
|
64
|
+
name: string;
|
|
65
|
+
}
|
|
66
|
+
export interface IPrerequisiteChanged {
|
|
67
|
+
settingId: number;
|
|
68
|
+
prerequisiteIds: number[];
|
|
69
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
export declare enum UserComparator {
|
|
2
|
+
SensitiveIsOneOf = "sensitiveIsOneOf",
|
|
3
|
+
SensitiveIsNotOneOf = "sensitiveIsNotOneOf",
|
|
4
|
+
SensitiveTextStartsWithAnyOf = "sensitiveTextStartsWithAnyOf",
|
|
5
|
+
SensitiveTextEndsWithAnyOf = "sensitiveTextEndsWithAnyOf",
|
|
6
|
+
SensitiveTextNotStartsWithAnyOf = "sensitiveTextNotStartsWithAnyOf",
|
|
7
|
+
SensitiveTextNotEndsWithAnyOf = "sensitiveTextNotEndsWithAnyOf",
|
|
8
|
+
SensitiveArrayContainsAnyOf = "sensitiveArrayContainsAnyOf",
|
|
9
|
+
SensitiveArrayDoesNotContainAnyOf = "sensitiveArrayDoesNotContainAnyOf",
|
|
10
|
+
IsOneOf = "isOneOf",
|
|
11
|
+
IsNotOneOf = "isNotOneOf",
|
|
12
|
+
TextStartsWithAnyOf = "textStartsWithAnyOf",
|
|
13
|
+
TextEndsWithAnyOf = "textEndsWithAnyOf",
|
|
14
|
+
TextNotStartsWithAnyOf = "textNotStartsWithAnyOf",
|
|
15
|
+
TextNotEndsWithAnyOf = "textNotEndsWithAnyOf",
|
|
16
|
+
ArrayContainsAnyOf = "arrayContainsAnyOf",
|
|
17
|
+
ArrayDoesNotContainAnyOf = "arrayDoesNotContainAnyOf",
|
|
18
|
+
ContainsAnyOf = "containsAnyOf",
|
|
19
|
+
DoesNotContainAnyOf = "doesNotContainAnyOf",
|
|
20
|
+
SensitiveTextEquals = "sensitiveTextEquals",
|
|
21
|
+
SensitiveTextDoesNotEqual = "sensitiveTextDoesNotEqual",
|
|
22
|
+
TextEquals = "textEquals",
|
|
23
|
+
TextDoesNotEqual = "textDoesNotEqual",
|
|
24
|
+
NumberEquals = "numberEquals",
|
|
25
|
+
NumberDoesNotEqual = "numberDoesNotEqual",
|
|
26
|
+
NumberLess = "numberLess",
|
|
27
|
+
NumberLessOrEquals = "numberLessOrEquals",
|
|
28
|
+
NumberGreater = "numberGreater",
|
|
29
|
+
NumberGreaterOrEquals = "numberGreaterOrEquals",
|
|
30
|
+
SemVerIsOneOf = "semVerIsOneOf",
|
|
31
|
+
SemVerIsNotOneOf = "semVerIsNotOneOf",
|
|
32
|
+
SemVerLess = "semVerLess",
|
|
33
|
+
SemVerLessOrEquals = "semVerLessOrEquals",
|
|
34
|
+
SemVerGreater = "semVerGreater",
|
|
35
|
+
SemVerGreaterOrEquals = "semVerGreaterOrEquals",
|
|
36
|
+
DateTimeBefore = "dateTimeBefore",
|
|
37
|
+
DateTimeAfter = "dateTimeAfter"
|
|
38
|
+
}
|
|
39
|
+
export declare enum UserComparatorText {
|
|
40
|
+
SensitiveIsOneOf = "IS ONE OF (hashed)",
|
|
41
|
+
SensitiveIsNotOneOf = "IS NOT ONE OF (hashed)",
|
|
42
|
+
SensitiveTextStartsWithAnyOf = "STARTS WITH ANY OF (hashed)",
|
|
43
|
+
SensitiveTextEndsWithAnyOf = "ENDS WITH ANY OF (hashed)",
|
|
44
|
+
SensitiveTextNotStartsWithAnyOf = "NOT STARTS WITH ANY OF (hashed)",
|
|
45
|
+
SensitiveTextNotEndsWithAnyOf = "NOT ENDS WITH ANY OF (hashed)",
|
|
46
|
+
SensitiveArrayContainsAnyOf = "ARRAY CONTAINS ANY OF (hashed)",
|
|
47
|
+
SensitiveArrayDoesNotContainAnyOf = "ARRAY NOT CONTAINS ANY OF (hashed)",
|
|
48
|
+
IsOneOf = "IS ONE OF (cleartext)",
|
|
49
|
+
IsNotOneOf = "IS NOT ONE OF (cleartext)",
|
|
50
|
+
TextStartsWithAnyOf = "STARTS WITH ANY OF (cleartext)",
|
|
51
|
+
TextEndsWithAnyOf = "ENDS WITH ANY OF (cleartext)",
|
|
52
|
+
TextNotStartsWithAnyOf = "NOT STARTS WITH ANY OF (cleartext)",
|
|
53
|
+
TextNotEndsWithAnyOf = "NOT ENDS WITH ANY OF (cleartext)",
|
|
54
|
+
ArrayContainsAnyOf = "ARRAY CONTAINS ANY OF (cleartext)",
|
|
55
|
+
ArrayDoesNotContainAnyOf = "ARRAY NOT CONTAINS ANY OF (cleartext)",
|
|
56
|
+
ContainsAnyOf = "CONTAINS ANY OF (cleartext)",
|
|
57
|
+
DoesNotContainAnyOf = "NOT CONTAINS ANY OF (cleartext)",
|
|
58
|
+
SensitiveTextEquals = "EQUALS (hashed)",
|
|
59
|
+
SensitiveTextDoesNotEqual = "NOT EQUALS (hashed)",
|
|
60
|
+
TextEquals = "EQUALS (cleartext)",
|
|
61
|
+
TextDoesNotEqual = "NOT EQUALS (cleartext)",
|
|
62
|
+
NumberEquals = "= (number)",
|
|
63
|
+
NumberDoesNotEqual = "!= (number)",
|
|
64
|
+
NumberLess = "< (number)",
|
|
65
|
+
NumberLessOrEquals = "<= (number)",
|
|
66
|
+
NumberGreater = "> (number)",
|
|
67
|
+
NumberGreaterOrEquals = ">= (number)",
|
|
68
|
+
SemVerIsOneOf = "IS ONE OF (semver)",
|
|
69
|
+
SemVerIsNotOneOf = "IS NOT ONE OF (semver)",
|
|
70
|
+
SemVerLess = "< (semver)",
|
|
71
|
+
SemVerLessOrEquals = "<= (semver)",
|
|
72
|
+
SemVerGreater = "> (semver)",
|
|
73
|
+
SemVerGreaterOrEquals = ">= (semver)",
|
|
74
|
+
DateTimeBefore = "BEFORE (UTC datetime)",
|
|
75
|
+
DateTimeAfter = "AFTER (UTC datetime)"
|
|
76
|
+
}
|
|
77
|
+
export declare enum UserComparatorType {
|
|
78
|
+
StringList = 0,
|
|
79
|
+
String = 1,
|
|
80
|
+
Number = 2,
|
|
81
|
+
SemverList = 3,
|
|
82
|
+
Semver = 4,
|
|
83
|
+
DateTime = 5
|
|
84
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { NativeDateAdapter } from "@angular/material/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class AppDateAdapter extends NativeDateAdapter {
|
|
4
|
+
format(date: Date): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppDateAdapter, never>;
|
|
6
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AppDateAdapter>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IComparisonValueListModel } from "../bootstrap";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface ComparisonValueListParseResult {
|
|
4
|
+
error?: string;
|
|
5
|
+
comparisonValueList: IComparisonValueListModel[];
|
|
6
|
+
}
|
|
7
|
+
export declare class ComparisonValueListHelper {
|
|
8
|
+
formatValuesAndHintAsJson(comparisonValueList: IComparisonValueListModel[]): string;
|
|
9
|
+
formatValuesAndHintAsCsv(comparisonValueList: IComparisonValueListModel[]): string;
|
|
10
|
+
formatValuesAsCsv(comparisonValueList: IComparisonValueListModel[]): string;
|
|
11
|
+
formatCsvStringValue(value: string): string;
|
|
12
|
+
parseValuesAndHintsFromJson(value: string): ComparisonValueListParseResult;
|
|
13
|
+
parseValuesAndHintsFromCsv(value: string): ComparisonValueListParseResult;
|
|
14
|
+
parseValuesFromCsv(value: string): ComparisonValueListParseResult;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ComparisonValueListHelper, never>;
|
|
16
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ComparisonValueListHelper>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare class DateHelper {
|
|
2
|
+
static addDays(date: Date, value: number): void;
|
|
3
|
+
static daysBetweenDates: (from: Date, to: Date) => number;
|
|
4
|
+
static formatDate(date: Date, formatString: string): string;
|
|
5
|
+
static offsetDate(date: Date, offsetMins: number): Date;
|
|
6
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { FormArray, FormControl, FormGroup, ValidatorFn } from "@angular/forms";
|
|
2
|
+
import { UserComparator, UserComparatorType, SettingType, IComparisonValueModel, IComparisonValueListModel, IFeatureFlagLimitations, ComparisonValueForm, ComparisonValueListForm, ConditionForm, PrerequisiteFlagConditionForm, IPrerequisiteSetting, PercentageOptionForm, SegmentConditionForm, TargetingRuleForm, UpdateSettingValueForm, UserConditionForm, ValueForm, IConditionModel, IPrerequisiteFlagConditionModel, ISegmentConditionModel, IUserConditionModel, IValueModel, ITargetingRuleModel, IPercentageOptionModel, ISettingValueModel } from "../bootstrap";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FormGenerator {
|
|
5
|
+
generateSettingValuesFormGroup(model: ISettingValueModel, readOnly: boolean, settings: IPrerequisiteSetting[], featureFlagLimitations: IFeatureFlagLimitations): FormGroup<UpdateSettingValueForm>;
|
|
6
|
+
generatePercentageEvaluationAttributeFormControl(percentageEvaluationAttribute: string, readOnly: boolean): FormControl<string>;
|
|
7
|
+
generateTargetingRuleFormGroup(model: ITargetingRuleModel, settingType: SettingType, readOnly: boolean, settings: IPrerequisiteSetting[], featureFlagLimitations: IFeatureFlagLimitations): FormGroup<TargetingRuleForm>;
|
|
8
|
+
generateTargetingRuleWithEmptyPercentageOptions(settingType: SettingType, readOnly: boolean, settings: IPrerequisiteSetting[], featureFlagLimitations: IFeatureFlagLimitations): FormGroup<TargetingRuleForm>;
|
|
9
|
+
getEmptyPercentageOptions(settingType: SettingType): IPercentageOptionModel[];
|
|
10
|
+
generatePercentageOptionFormGroup(model: IPercentageOptionModel, settingType: SettingType, readOnly: boolean, featureFlagLimitations: IFeatureFlagLimitations): FormGroup<PercentageOptionForm>;
|
|
11
|
+
generateConditionFormGroup(model: IConditionModel, readOnly: boolean, settings: IPrerequisiteSetting[], featureFlagLimitations: IFeatureFlagLimitations): FormGroup<ConditionForm>;
|
|
12
|
+
generateUserConditionFormGroup(value: IUserConditionModel, readOnly: boolean, featureFlagLimitations: IFeatureFlagLimitations): FormGroup<UserConditionForm>;
|
|
13
|
+
generateSegmentConditionFormGroup(value: ISegmentConditionModel, readOnly: boolean): FormGroup<SegmentConditionForm>;
|
|
14
|
+
generatePrerequisiteFlagConditionFormGroup(value: IPrerequisiteFlagConditionModel, readOnly: boolean, settings: IPrerequisiteSetting[], featureFlagLimitations: IFeatureFlagLimitations): FormGroup<PrerequisiteFlagConditionForm>;
|
|
15
|
+
generateEmptyPrerequisiteFlagConditionFormGroup(featureFlagLimitations: IFeatureFlagLimitations): FormGroup<PrerequisiteFlagConditionForm>;
|
|
16
|
+
getNextIndex(formArray: FormArray<FormGroup<ComparisonValueListForm>>): number;
|
|
17
|
+
generateComparisonValueListFormGroup(listValue: IComparisonValueListModel, readOnly: boolean, validators: ValidatorFn[], index: number): FormGroup<ComparisonValueListForm>;
|
|
18
|
+
generateComparisonValueFormGroup(value: IComparisonValueModel, comparator: UserComparator, readOnly: boolean, featureFlagLimitations: IFeatureFlagLimitations): FormGroup<ComparisonValueForm>;
|
|
19
|
+
generateComparisonValueListValueArray(listValue: IComparisonValueListModel[], readOnly: boolean, featureFlagLimitations: IFeatureFlagLimitations, itemValidators: ValidatorFn[]): FormArray<FormGroup<ComparisonValueListForm>>;
|
|
20
|
+
getComparisonValueStringValidators(featureFlagLimitations: IFeatureFlagLimitations): ValidatorFn[];
|
|
21
|
+
getComparisonValueStringListItemValidators(featureFlagLimitations: IFeatureFlagLimitations): ValidatorFn[];
|
|
22
|
+
getComparisonValueSemverValidators(featureFlagLimitations: IFeatureFlagLimitations): (ValidatorFn | ((c: FormControl<string>) => {
|
|
23
|
+
validateSemVer: {
|
|
24
|
+
valid: boolean;
|
|
25
|
+
};
|
|
26
|
+
}))[];
|
|
27
|
+
getComparisonValueSemverListItemValidators(featureFlagLimitations: IFeatureFlagLimitations): (ValidatorFn | ((c: FormControl<string>) => {
|
|
28
|
+
validateSemVer: {
|
|
29
|
+
valid: boolean;
|
|
30
|
+
};
|
|
31
|
+
}))[];
|
|
32
|
+
generateDefaultValue(settingType: SettingType): IValueModel;
|
|
33
|
+
generateDefaultValueFormGroup(settingType: SettingType, readOnly: boolean, featureFlagLimitations: IFeatureFlagLimitations): FormGroup<ValueForm>;
|
|
34
|
+
generateValueFormGroup(value: IValueModel, settingType: SettingType, readOnly: boolean, featureFlagLimitations: IFeatureFlagLimitations): FormGroup<ValueForm>;
|
|
35
|
+
getComparisonValueType(comparator: UserComparator): UserComparatorType;
|
|
36
|
+
getValidatorsForSettingType(settingType: SettingType, featureFlagLimitations: IFeatureFlagLimitations): ValidatorFn[];
|
|
37
|
+
validateNumberNan(c: FormControl<number>): {
|
|
38
|
+
validateNumberNan: {
|
|
39
|
+
valid: boolean;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
validateSemVer(c: FormControl<string>): {
|
|
43
|
+
validateSemVer: {
|
|
44
|
+
valid: boolean;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
validateEmptyString(c: FormControl<string>): {
|
|
48
|
+
required: boolean;
|
|
49
|
+
};
|
|
50
|
+
validatePercentageSum(c: FormArray<FormGroup<PercentageOptionForm>>): {
|
|
51
|
+
validatePercentageSum: {
|
|
52
|
+
valid: boolean;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
isPercentageOnlyTargetingRule(formGroup: FormGroup<TargetingRuleForm>): boolean;
|
|
56
|
+
addComparisonValueListValueItems(userComparator: UserComparator, listValueFormArray: FormArray<FormGroup<ComparisonValueListForm>>, comparisonValueList: IComparisonValueListModel[], featureFlagLimitations: IFeatureFlagLimitations): void;
|
|
57
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormGenerator, never>;
|
|
58
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FormGenerator>;
|
|
59
|
+
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { AbstractControl, FormGroup } from '@angular/forms';
|
|
2
|
+
export declare const percentageRegex = "^[0-9]*$";
|
|
3
|
+
export declare const wholeNumberRegex = "^[-+]?[0-9]\\d*$";
|
|
4
|
+
export declare const timeRegex: RegExp;
|
|
2
5
|
export declare class FormHelper {
|
|
3
|
-
static getErrorMessage(control: AbstractControl, hint?: string): string
|
|
6
|
+
static getErrorMessage(control: AbstractControl, hint?: string): string;
|
|
4
7
|
static handleErrors(formGroup: FormGroup, error: any): void;
|
|
5
8
|
/**
|
|
6
9
|
* Converts a value representing a number to a `number` value.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class MessagingService {
|
|
4
|
+
private snackBar;
|
|
5
|
+
constructor(snackBar: MatSnackBar);
|
|
6
|
+
showErrorSnack(message?: string, action?: string, durationMs?: number): void;
|
|
7
|
+
showSuccessSnack(message?: string, action?: any, durationMs?: number): void;
|
|
8
|
+
showWarningSnack(message?: string, action?: string, durationMs?: number): void;
|
|
9
|
+
dismissCurrentSnack(): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MessagingService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MessagingService>;
|
|
12
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { ProductsService, EnvironmentsService, ConfigsService, FeatureFlagsSettingsService, FeatureFlagSettingValuesService, MeService, IntegrationLinksService, SegmentsService } from 'ng-configcat-publicapi';
|
|
2
|
+
import { ProductsService, EnvironmentsService, ConfigsService, FeatureFlagsSettingsService, FeatureFlagSettingValuesService, MeService, IntegrationLinksService, SegmentsService, FeatureFlagSettingValuesV2Service } from 'ng-configcat-publicapi';
|
|
3
3
|
import { Configuration } from '../configuration';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class PublicApiService {
|
|
@@ -11,6 +11,7 @@ export declare class PublicApiService {
|
|
|
11
11
|
createConfigsService(basicAuthUsername?: string | null, basicAuthPassword?: string | null, basePath?: string | null): ConfigsService;
|
|
12
12
|
createEnvironmentsService(basicAuthUsername?: string | null, basicAuthPassword?: string | null, basePath?: string | null): EnvironmentsService;
|
|
13
13
|
createSettingsService(basicAuthUsername?: string | null, basicAuthPassword?: string | null, basePath?: string | null): FeatureFlagsSettingsService;
|
|
14
|
+
createSettingValuesV2Service(basicAuthUsername?: string | null, basicAuthPassword?: string | null, basePath?: string | null): FeatureFlagSettingValuesV2Service;
|
|
14
15
|
createSettingValuesService(basicAuthUsername?: string | null, basicAuthPassword?: string | null, basePath?: string | null): FeatureFlagSettingValuesService;
|
|
15
16
|
createIntegrationLinksService(basicAuthUsername?: string | null, basicAuthPassword?: string | null, basePath?: string | null): IntegrationLinksService;
|
|
16
17
|
createSegmentsService(basicAuthUsername?: string | null, basicAuthPassword?: string | null, basePath?: string | null): SegmentsService;
|
|
@@ -12,7 +12,7 @@ export declare class SettingListFormHelper {
|
|
|
12
12
|
private getValidatorsForSettingType;
|
|
13
13
|
private getAllRolloutRules;
|
|
14
14
|
private getComparisonAttributes;
|
|
15
|
-
getComparisonValueType(comparator: RolloutRuleComparator): "
|
|
15
|
+
getComparisonValueType(comparator: RolloutRuleComparator): "number" | "text";
|
|
16
16
|
normalizeComparisonValue(comparator: RolloutRuleComparator | undefined, comparisonValue: any): any;
|
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<SettingListFormHelper, never>;
|
|
18
18
|
static ɵprov: i0.ɵɵInjectableDeclaration<SettingListFormHelper>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class TrackingDirective {
|
|
3
|
+
track: string[];
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TrackingDirective, never>;
|
|
5
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TrackingDirective, "[track]", never, { "track": { "alias": "track"; "required": false; }; }, {}, never, never, false, never>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { AfterViewInit, EventEmitter, OnDestroy, OnInit } from "@angular/core";
|
|
2
|
+
import "ace-builds/src-noconflict/mode-json";
|
|
3
|
+
import "ace-builds/src-noconflict/theme-tomorrow";
|
|
4
|
+
import { ControlValueAccessor } from "@angular/forms";
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class AceEditorComponent implements ControlValueAccessor, OnInit, AfterViewInit, OnDestroy {
|
|
7
|
+
private aceEditor;
|
|
8
|
+
private onChangeDisabled;
|
|
9
|
+
private onChangeModel;
|
|
10
|
+
private _value;
|
|
11
|
+
private editor;
|
|
12
|
+
set value(value: string);
|
|
13
|
+
readOnly: boolean;
|
|
14
|
+
valueChange: EventEmitter<any>;
|
|
15
|
+
onChange: EventEmitter<string>;
|
|
16
|
+
ngOnInit(): void;
|
|
17
|
+
ngAfterViewInit(): void;
|
|
18
|
+
ngOnDestroy(): void;
|
|
19
|
+
private init;
|
|
20
|
+
private writeJsonValue;
|
|
21
|
+
private formatValue;
|
|
22
|
+
private produceDefaultValue;
|
|
23
|
+
private produceOutput;
|
|
24
|
+
private destroy;
|
|
25
|
+
private parseJsonOrNull;
|
|
26
|
+
private transformBoundValue;
|
|
27
|
+
writeValue(value: any): void;
|
|
28
|
+
registerOnChange(fn: any): void;
|
|
29
|
+
registerOnTouched(): void;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AceEditorComponent, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AceEditorComponent, "app-ace-editor", never, { "value": { "alias": "value"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; }, { "valueChange": "valueChange"; "onChange": "onChange"; }, never, never, false, never>;
|
|
32
|
+
}
|
|
@@ -7,7 +7,7 @@ export declare class AuthorizationComponent implements OnInit {
|
|
|
7
7
|
private formBuilder;
|
|
8
8
|
private publicApiService;
|
|
9
9
|
formGroup: UntypedFormGroup;
|
|
10
|
-
basePath:
|
|
10
|
+
basePath: any;
|
|
11
11
|
integrationName: string;
|
|
12
12
|
authorized: EventEmitter<any>;
|
|
13
13
|
error: EventEmitter<any>;
|
|
@@ -17,5 +17,5 @@ export declare class AuthorizationComponent implements OnInit {
|
|
|
17
17
|
onSubmit(): void;
|
|
18
18
|
getPublicApiUrl(): string;
|
|
19
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<AuthorizationComponent, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AuthorizationComponent, "configcat-authorization", never, { "basePath": "basePath"; "integrationName": "integrationName"; }, { "authorized": "authorized"; "error": "error"; }, never, never, false, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AuthorizationComponent, "configcat-authorization", never, { "basePath": { "alias": "basePath"; "required": false; }; "integrationName": { "alias": "integrationName"; "required": false; }; }, { "authorized": "authorized"; "error": "error"; }, never, never, false, never>;
|
|
21
21
|
}
|
|
@@ -6,5 +6,5 @@ export declare class BaseSelectComponent extends BaseComponent {
|
|
|
6
6
|
dropdownOpened: EventEmitter<boolean>;
|
|
7
7
|
protected openChanged(event: any): void;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseSelectComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BaseSelectComponent, "base-select", never, { "customDropdown": "customDropdown"; }, { "dropdownOpened": "dropdownOpened"; }, never, never, false, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaseSelectComponent, "base-select", never, { "customDropdown": { "alias": "customDropdown"; "required": false; }; }, { "dropdownOpened": "dropdownOpened"; }, never, never, false, never>;
|
|
10
10
|
}
|
|
@@ -11,7 +11,8 @@ export declare class BaseComponent {
|
|
|
11
11
|
protected createEnvironmentsService(): import("ng-configcat-publicapi").EnvironmentsService;
|
|
12
12
|
protected createSettingsService(): import("ng-configcat-publicapi").FeatureFlagsSettingsService;
|
|
13
13
|
protected createSettingValuesService(): import("ng-configcat-publicapi").FeatureFlagSettingValuesService;
|
|
14
|
+
protected createSettingValuesV2Service(): import("ng-configcat-publicapi").FeatureFlagSettingValuesV2Service;
|
|
14
15
|
protected createSegmentsService(): import("ng-configcat-publicapi").SegmentsService;
|
|
15
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BaseComponent, "base", never, { "basePath": "basePath"; "basicAuthUsername": "basicAuthUsername"; "basicAuthPassword": "basicAuthPassword"; }, {}, never, never, false, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaseComponent, "base", never, { "basePath": { "alias": "basePath"; "required": false; }; "basicAuthUsername": { "alias": "basicAuthUsername"; "required": false; }; "basicAuthPassword": { "alias": "basicAuthPassword"; "required": false; }; }, {}, never, never, false, never>;
|
|
17
18
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { UserComparator, SegmentComparator, SegmentListModel as ISegment, SettingType, FeatureFlagLimitations as IFeatureFlagLimitations, ComparisonValueListModel as IComparisonValueListModel, ComparisonValueModel as IComparisonValueModel, PrerequisiteComparator, ValueModel as IValueModel, ConditionModel as IConditionModel, PrerequisiteFlagConditionModel as IPrerequisiteFlagConditionModel, SegmentConditionModel as ISegmentConditionModel, UserConditionModel as IUserConditionModel, TargetingRuleModel as ITargetingRuleModel, PercentageOptionModel as IPercentageOptionModel, SettingFormulaModel as ISettingValueModel } from 'ng-configcat-publicapi';
|
|
2
|
+
export { UserComparatorText, UserComparatorType } from './_models/user-comparator';
|
|
3
|
+
export { UpdateSettingValueForm, TargetingRuleForm, ConditionForm, PercentageOptionForm, ComparisonValueForm, ComparisonValueListForm, SegmentConditionForm, PrerequisiteFlagConditionForm, UserConditionForm, ValueForm, IPrerequisiteSetting, IDependeeSetting } from './_models/setting-value-formgroup';
|
|
4
|
+
export { FormGenerator } from './_services/form-generator';
|
|
5
|
+
export { IPrerequisiteChanged } from './_models/setting-value-formgroup';
|
|
6
|
+
export { IFlagState } from './_models/flag-state';
|
|
7
|
+
export { FormHelper } from './_services/form-helper';
|
|
8
|
+
export { AppDateAdapter } from './_services/app-data-adapter';
|
|
9
|
+
export { ConfirmationDialogComponent } from './dialogs/confirmation-dialog/confirmation-dialog';
|
|
10
|
+
export { InfoDialogComponent } from './dialogs/info-dialog/info-dialog';
|
|
11
|
+
export { ComparisonValueListHelper, ComparisonValueListParseResult } from './_services/comparison-value-list-helper';
|
|
12
|
+
export { MessagingService } from './_services/messaging.service';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ConfirmationDialogComponent {
|
|
4
|
+
dialogRef: MatDialogRef<ConfirmationDialogComponent>;
|
|
5
|
+
data: DialogData;
|
|
6
|
+
constructor(dialogRef: MatDialogRef<ConfirmationDialogComponent>, data: DialogData);
|
|
7
|
+
yes(): void;
|
|
8
|
+
cancel(): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationDialogComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmationDialogComponent, "app-confirmation-dialog", never, {}, {}, never, never, false, never>;
|
|
11
|
+
}
|
|
12
|
+
export interface DialogData {
|
|
13
|
+
title: string;
|
|
14
|
+
body: string;
|
|
15
|
+
yesButtonLabel: string;
|
|
16
|
+
noButtonLabel: string;
|
|
17
|
+
buttonColor: string;
|
|
18
|
+
hideNoButton?: boolean;
|
|
19
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface InfoDialogData {
|
|
4
|
+
title: string;
|
|
5
|
+
body: string;
|
|
6
|
+
secondaryButtonLabel: string;
|
|
7
|
+
secondaryButtonAction: () => void;
|
|
8
|
+
}
|
|
9
|
+
export declare class InfoDialogComponent {
|
|
10
|
+
dialogRef: MatDialogRef<InfoDialogComponent>;
|
|
11
|
+
data: InfoDialogData;
|
|
12
|
+
constructor(dialogRef: MatDialogRef<InfoDialogComponent>, data: InfoDialogData);
|
|
13
|
+
ok(): void;
|
|
14
|
+
secondaryButtonAction(): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InfoDialogComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InfoDialogComponent, "app-info-dialog", never, {}, {}, never, never, false, never>;
|
|
17
|
+
}
|
|
@@ -19,28 +19,56 @@ import * as i15 from "./dialogs/save-snackbar/save-snackbar.component";
|
|
|
19
19
|
import * as i16 from "./dialogs/expand-dialog/expand-dialog.component";
|
|
20
20
|
import * as i17 from "./dialogs/delete-setting-dialog/delete-setting-dialog.component";
|
|
21
21
|
import * as i18 from "./_directives/input-display-normalizer.directive";
|
|
22
|
-
import * as i19 from "
|
|
23
|
-
import * as i20 from "
|
|
24
|
-
import * as i21 from "
|
|
25
|
-
import * as i22 from "
|
|
26
|
-
import * as i23 from "
|
|
27
|
-
import * as i24 from "
|
|
28
|
-
import * as i25 from "
|
|
29
|
-
import * as i26 from "
|
|
30
|
-
import * as i27 from "
|
|
31
|
-
import * as i28 from "
|
|
32
|
-
import * as i29 from "
|
|
33
|
-
import * as i30 from "
|
|
34
|
-
import * as i31 from "
|
|
35
|
-
import * as i32 from "
|
|
36
|
-
import * as i33 from "
|
|
37
|
-
import * as i34 from "
|
|
38
|
-
import * as i35 from "
|
|
39
|
-
import * as i36 from "
|
|
22
|
+
import * as i19 from "./v2/feature-flag/feature-flag.component";
|
|
23
|
+
import * as i20 from "./v2/feature-flag/evaluation-formula/evaluation-formula.component";
|
|
24
|
+
import * as i21 from "./v2/feature-flag/evaluation-formula/feature-flag-value/feature-flag-value.component";
|
|
25
|
+
import * as i22 from "./v2/feature-flag/evaluation-formula/targeting-rule/targeting-rule.component";
|
|
26
|
+
import * as i23 from "./v2/feature-flag/evaluation-formula/targeting-rule/percentage-options/percentage-options.component";
|
|
27
|
+
import * as i24 from "./v2/feature-flag/evaluation-formula/targeting-rule/conditions/conditions.component";
|
|
28
|
+
import * as i25 from "./v2/feature-flag/evaluation-formula/targeting-rule/conditions/user-condition/user-condition.component";
|
|
29
|
+
import * as i26 from "./v2/feature-flag/evaluation-formula/targeting-rule/conditions/segment-condition/segment-condition.component";
|
|
30
|
+
import * as i27 from "./v2/feature-flag/evaluation-formula/targeting-rule/conditions/prerequisite-flag-condition/prerequisite-flag-condition.component";
|
|
31
|
+
import * as i28 from "./v2/feature-flag/evaluation-formula/targeting-rule/conditions/user-condition/popout-list-editor-dialog/popout-list-editor-dialog.component";
|
|
32
|
+
import * as i29 from "./v2/feature-flag/evaluation-formula/popout-text-editor-dialog/popout-text-editor-dialog.component";
|
|
33
|
+
import * as i30 from "./v2/feature-flag/percentage-evaluation-attribute-dialog/percentage-evaluation-attribute-dialog.component";
|
|
34
|
+
import * as i31 from "./v2/feature-flag/evaluation-formula/targeting-rule/conditions/condition-chip/condition-chip.component";
|
|
35
|
+
import * as i32 from "./v2/feature-flag/evaluation-formula/targeting-rule/conditions/user-condition/comparator-dialog/comparator-dialog.component";
|
|
36
|
+
import * as i33 from "./dialogs/confirmation-dialog/confirmation-dialog";
|
|
37
|
+
import * as i34 from "./dialogs/info-dialog/info-dialog";
|
|
38
|
+
import * as i35 from "./_services/tracking.directive";
|
|
39
|
+
import * as i36 from "./ace-editor/ace-editor.component";
|
|
40
|
+
import * as i37 from "./v2/feature-flag-item.component";
|
|
41
|
+
import * as i38 from "./v2/feature-flag/date-time-picker/date-time-picker.component";
|
|
42
|
+
import * as i39 from "./v2/feature-flag/dependees-dialog/dependees-dialog.component";
|
|
43
|
+
import * as i40 from "@angular/common";
|
|
44
|
+
import * as i41 from "@angular/forms";
|
|
45
|
+
import * as i42 from "@angular/platform-browser/animations";
|
|
46
|
+
import * as i43 from "@angular/material/form-field";
|
|
47
|
+
import * as i44 from "@angular/material/core";
|
|
48
|
+
import * as i45 from "@angular/material/select";
|
|
49
|
+
import * as i46 from "@angular/material/button";
|
|
50
|
+
import * as i47 from "@angular/material/input";
|
|
51
|
+
import * as i48 from "@angular/material/icon";
|
|
52
|
+
import * as i49 from "@angular/material/tooltip";
|
|
53
|
+
import * as i50 from "@angular/material/chips";
|
|
54
|
+
import * as i51 from "@angular/material/autocomplete";
|
|
55
|
+
import * as i52 from "@angular/cdk/drag-drop";
|
|
56
|
+
import * as i53 from "@angular/router";
|
|
57
|
+
import * as i54 from "@angular/material/snack-bar";
|
|
58
|
+
import * as i55 from "@angular/material/dialog";
|
|
59
|
+
import * as i56 from "@angular/material/menu";
|
|
60
|
+
import * as i57 from "ng-configcat-publicapi";
|
|
61
|
+
import * as i58 from "@angular/material/button-toggle";
|
|
62
|
+
import * as i59 from "@angular/material/datepicker";
|
|
63
|
+
import * as i60 from "@angular/material/divider";
|
|
64
|
+
import * as i61 from "@angular/cdk/clipboard";
|
|
65
|
+
import * as i62 from "@angular/material/paginator";
|
|
66
|
+
import * as i63 from "@angular/material/table";
|
|
67
|
+
import * as i64 from "@angular/material/radio";
|
|
40
68
|
export declare class NgConfigCatPublicApiUIModule {
|
|
41
69
|
static forRoot(configurationFactory: () => Configuration): ModuleWithProviders<NgConfigCatPublicApiUIModule>;
|
|
42
70
|
constructor();
|
|
43
71
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgConfigCatPublicApiUIModule, never>;
|
|
44
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgConfigCatPublicApiUIModule, [typeof i1.BaseComponent, typeof i2.BaseSelectComponent, typeof i3.ProductSelectComponent, typeof i4.ConfigSelectComponent, typeof i5.EnvironmentSelectComponent, typeof i6.SettingSelectComponent, typeof i7.SettingItemComponent, typeof i8.AuthorizationComponent, typeof i9.SettingListComponent, typeof i10.SettingComponent, typeof i11.RolloutPercentageItemsComponent, typeof i12.RolloutRulesComponent, typeof i13.ValueComponent, typeof i14.ReasonDialogComponent, typeof i15.SaveSnackbarComponent, typeof i16.ExpandDialogComponent, typeof i17.DeleteSettingDialogComponent, typeof i18.InputDisplayNormalizerDirective], [typeof
|
|
72
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgConfigCatPublicApiUIModule, [typeof i1.BaseComponent, typeof i2.BaseSelectComponent, typeof i3.ProductSelectComponent, typeof i4.ConfigSelectComponent, typeof i5.EnvironmentSelectComponent, typeof i6.SettingSelectComponent, typeof i7.SettingItemComponent, typeof i8.AuthorizationComponent, typeof i9.SettingListComponent, typeof i10.SettingComponent, typeof i11.RolloutPercentageItemsComponent, typeof i12.RolloutRulesComponent, typeof i13.ValueComponent, typeof i14.ReasonDialogComponent, typeof i15.SaveSnackbarComponent, typeof i16.ExpandDialogComponent, typeof i17.DeleteSettingDialogComponent, typeof i18.InputDisplayNormalizerDirective, typeof i19.FeatureFlagComponent, typeof i20.EvaluationFormulaComponent, typeof i21.FeatureFlagValueComponent, typeof i22.TargetingRuleComponent, typeof i23.PercentageOptionsComponent, typeof i24.ConditionsComponent, typeof i25.UserConditionComponent, typeof i26.SegmentConditionComponent, typeof i27.PrerequisiteFlagConditionComponent, typeof i28.PopoutListEditorDialogComponent, typeof i29.PopoutTextEditorDialogComponent, typeof i30.PercentageEvaluationAttributeDialogComponent, typeof i31.ConditionChipComponent, typeof i32.ComparatorDialogComponent, typeof i33.ConfirmationDialogComponent, typeof i34.InfoDialogComponent, typeof i35.TrackingDirective, typeof i36.AceEditorComponent, typeof i37.FeatureFlagItemComponent, typeof i38.DateTimePickerComponent, typeof i39.DependeesDialogComponent], [typeof i40.CommonModule, typeof i41.FormsModule, typeof i41.ReactiveFormsModule, typeof i42.BrowserAnimationsModule, typeof i43.MatFormFieldModule, typeof i44.MatOptionModule, typeof i45.MatSelectModule, typeof i46.MatButtonModule, typeof i47.MatInputModule, typeof i48.MatIconModule, typeof i49.MatTooltipModule, typeof i50.MatChipsModule, typeof i51.MatAutocompleteModule, typeof i52.DragDropModule, typeof i53.RouterModule, typeof i54.MatSnackBarModule, typeof i55.MatDialogModule, typeof i56.MatMenuModule, typeof i57.ApiModule, typeof i58.MatButtonToggleModule, typeof i59.MatDatepickerModule, typeof i44.MatNativeDateModule, typeof i60.MatDividerModule, typeof i61.ClipboardModule, typeof i62.MatPaginatorModule, typeof i63.MatTableModule, typeof i64.MatRadioModule], [typeof i8.AuthorizationComponent, typeof i3.ProductSelectComponent, typeof i4.ConfigSelectComponent, typeof i5.EnvironmentSelectComponent, typeof i6.SettingSelectComponent, typeof i7.SettingItemComponent, typeof i18.InputDisplayNormalizerDirective, typeof i17.DeleteSettingDialogComponent, typeof i37.FeatureFlagItemComponent]>;
|
|
45
73
|
static ɵinj: i0.ɵɵInjectorDeclaration<NgConfigCatPublicApiUIModule>;
|
|
46
74
|
}
|
|
@@ -13,5 +13,5 @@ export declare class ConfigSelectComponent extends BaseSelectComponent implement
|
|
|
13
13
|
ngOnChanges(): void;
|
|
14
14
|
reloadConfigs(): void;
|
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<ConfigSelectComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ConfigSelectComponent, "configcat-config-select", never, { "valueFormControl": "valueFormControl"; "productId": "productId"; }, {}, never, never, false, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConfigSelectComponent, "configcat-config-select", never, { "valueFormControl": { "alias": "valueFormControl"; "required": false; }; "productId": { "alias": "productId"; "required": false; }; }, {}, never, never, false, never>;
|
|
17
17
|
}
|
|
@@ -13,5 +13,5 @@ export declare class EnvironmentSelectComponent extends BaseSelectComponent impl
|
|
|
13
13
|
ngOnChanges(): void;
|
|
14
14
|
reloadEnvironments(): void;
|
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<EnvironmentSelectComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EnvironmentSelectComponent, "configcat-environment-select", never, { "valueFormControl": "valueFormControl"; "productId": "productId"; }, {}, never, never, false, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EnvironmentSelectComponent, "configcat-environment-select", never, { "valueFormControl": { "alias": "valueFormControl"; "required": false; }; "productId": { "alias": "productId"; "required": false; }; }, {}, never, never, false, never>;
|
|
17
17
|
}
|
|
@@ -10,5 +10,5 @@ export declare class ProductSelectComponent extends BaseSelectComponent implemen
|
|
|
10
10
|
constructor(publicApiService: PublicApiService);
|
|
11
11
|
ngOnInit(): void;
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductSelectComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ProductSelectComponent, "configcat-product-select", never, { "valueFormControl": "valueFormControl"; }, {}, never, never, false, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductSelectComponent, "configcat-product-select", never, { "valueFormControl": { "alias": "valueFormControl"; "required": false; }; }, {}, never, never, false, never>;
|
|
14
14
|
}
|
|
@@ -13,5 +13,5 @@ export declare class SettingSelectComponent extends BaseSelectComponent implemen
|
|
|
13
13
|
ngOnChanges(): void;
|
|
14
14
|
reloadSettings(): void;
|
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<SettingSelectComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SettingSelectComponent, "configcat-setting-select", never, { "valueFormControl": "valueFormControl"; "configId": "configId"; }, {}, never, never, false, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SettingSelectComponent, "configcat-setting-select", never, { "valueFormControl": { "alias": "valueFormControl"; "required": false; }; "configId": { "alias": "configId"; "required": false; }; }, {}, never, never, false, never>;
|
|
17
17
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnInit, EventEmitter } from '@angular/core';
|
|
2
2
|
import { BaseComponent } from '../base/base.component';
|
|
3
|
-
import { SegmentListModel, SettingValueModel } from 'ng-configcat-publicapi';
|
|
3
|
+
import { EvaluationVersion, SegmentListModel, SettingFormulaModel, SettingValueModel } from 'ng-configcat-publicapi';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import { PublicApiService } from '../_services';
|
|
6
6
|
import { SettingValuesModel, UpdateSettingValuesModel } from '../_models';
|
|
@@ -9,6 +9,7 @@ export declare class SettingItemComponent extends BaseComponent implements OnIni
|
|
|
9
9
|
productId: string;
|
|
10
10
|
environmentId: string;
|
|
11
11
|
configId: string;
|
|
12
|
+
evaluationVersion: EvaluationVersion;
|
|
12
13
|
settingId: number;
|
|
13
14
|
canDeleteSetting: boolean;
|
|
14
15
|
deleteSettingText: string;
|
|
@@ -22,6 +23,7 @@ export declare class SettingItemComponent extends BaseComponent implements OnIni
|
|
|
22
23
|
settingValue: SettingValueModel;
|
|
23
24
|
segments: SegmentListModel[];
|
|
24
25
|
dashboardBasePath: string;
|
|
26
|
+
settingFormulaModel: SettingFormulaModel;
|
|
25
27
|
constructor(publicApiService: PublicApiService);
|
|
26
28
|
ngOnInit(): void;
|
|
27
29
|
loadSettingValues: () => Observable<SettingValuesModel>;
|
|
@@ -31,5 +33,5 @@ export declare class SettingItemComponent extends BaseComponent implements OnIni
|
|
|
31
33
|
onDeleteSettingRequested(setting: any): void;
|
|
32
34
|
onFormValuesChanged(): void;
|
|
33
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<SettingItemComponent, never>;
|
|
34
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SettingItemComponent, "configcat-setting-item", never, { "productId": "productId"; "environmentId": "environmentId"; "configId": "configId"; "settingId": "settingId"; "canDeleteSetting": "canDeleteSetting"; "deleteSettingText": "deleteSettingText"; "showEnvironmentName": "showEnvironmentName"; }, { "deleteSettingRequested": "deleteSettingRequested"; "loadSucceeded": "loadSucceeded"; "loadFailed": "loadFailed"; "saveSucceeded": "saveSucceeded"; "saveFailed": "saveFailed"; "formValuesChanged": "formValuesChanged"; }, never, never, false, never>;
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SettingItemComponent, "configcat-setting-item", never, { "productId": { "alias": "productId"; "required": false; }; "environmentId": { "alias": "environmentId"; "required": false; }; "configId": { "alias": "configId"; "required": false; }; "evaluationVersion": { "alias": "evaluationVersion"; "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"; "formValuesChanged": "formValuesChanged"; }, never, never, false, never>;
|
|
35
37
|
}
|