ng-configcat-publicapi-ui 5.3.11 → 5.3.13
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,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ng-configcat-publicapi-ui",
|
|
3
|
-
"version": "5.3.
|
|
3
|
+
"version": "5.3.13",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/cdk": "^21.2.
|
|
6
|
-
"@angular/common": "^21.2.
|
|
7
|
-
"@angular/core": "^21.2.
|
|
8
|
-
"@angular/forms": "^21.2.
|
|
9
|
-
"@angular/material": "^21.2.
|
|
10
|
-
"@angular/router": "^21.2.
|
|
5
|
+
"@angular/cdk": "^21.2.5",
|
|
6
|
+
"@angular/common": "^21.2.7",
|
|
7
|
+
"@angular/core": "^21.2.7",
|
|
8
|
+
"@angular/forms": "^21.2.7",
|
|
9
|
+
"@angular/material": "^21.2.5",
|
|
10
|
+
"@angular/router": "^21.2.7",
|
|
11
11
|
"@configcat/sdk": "^1.0.2",
|
|
12
|
-
"ng-configcat-publicapi": "^5.3.
|
|
12
|
+
"ng-configcat-publicapi": "^5.3.2",
|
|
13
13
|
"papaparse": "^5.5.3",
|
|
14
14
|
"ace-builds": "^1.37.0"
|
|
15
15
|
},
|
package/src/css/controls.scss
CHANGED
|
@@ -92,6 +92,12 @@ html > body {
|
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
+
.mat-mdc-form-field.no-suffix {
|
|
96
|
+
.mat-mdc-form-field-icon-suffix {
|
|
97
|
+
display: none;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
95
101
|
.mat-mdc-form-field.select-suffixed {
|
|
96
102
|
.mat-mdc-text-field-wrapper {
|
|
97
103
|
padding: 0 0 0 10px;
|
|
@@ -384,11 +390,6 @@ html > body {
|
|
|
384
390
|
.cdk-overlay-pane.select-overlay-panel {
|
|
385
391
|
min-width: fit-content;
|
|
386
392
|
|
|
387
|
-
// This scss differ from the app version becasue of the integrations iframes handle the fix max-width differently.
|
|
388
|
-
.mat-mdc-select-panel {
|
|
389
|
-
max-width: calc(90vw - 30px);
|
|
390
|
-
}
|
|
391
|
-
|
|
392
393
|
.mat-mdc-select-panel.custom-dropdown-below {
|
|
393
394
|
max-width: 98vw;
|
|
394
395
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
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, SegmentComparator, PrerequisiteComparator, SettingType, PredefinedVariationModel, SettingFormulaModel,
|
|
4
|
+
import { MeService, ProductsService, ConfigsService, EnvironmentsService, FeatureFlagsSettingsService, FeatureFlagSettingValuesV2Service, FeatureFlagSettingValuesService, IntegrationLinksService, SegmentsService, OrganizationsService, UserComparator, SegmentComparator, PrerequisiteComparator, SettingType, PredefinedVariationModel, SettingFormulaModel, ComparisonValueListModel, FeatureFlagLimitations, ComparisonValueModel, ConditionModel, ValueModel, PercentageOptionModel, PrerequisiteFlagConditionModel, SegmentConditionModel, TargetingRuleModel, UserConditionModel, 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';
|
|
@@ -201,38 +201,46 @@ interface IAddRuleButtonTracker {
|
|
|
201
201
|
renderSeparationArea: boolean;
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
204
|
+
interface ComparisonValueListParseResult {
|
|
205
|
+
error?: string;
|
|
206
|
+
comparisonValueList: ComparisonValueListModel[];
|
|
207
|
+
}
|
|
208
|
+
declare function formatValuesAndHintAsJson(comparisonValueList: ComparisonValueListModel[]): string;
|
|
209
|
+
declare function formatValuesAndHintAsCsv(comparisonValueList: ComparisonValueListModel[]): string;
|
|
210
|
+
declare function formatValuesAsCsv(comparisonValueList: ComparisonValueListModel[]): string;
|
|
211
|
+
declare function formatCsvStringValue(value: string): string;
|
|
212
|
+
declare function parseValuesAndHintsFromJson(value: string): ComparisonValueListParseResult;
|
|
213
|
+
declare function parseValuesAndHintsFromCsv(value: string): ComparisonValueListParseResult;
|
|
214
|
+
declare function parseValuesFromCsv(value: string): ComparisonValueListParseResult;
|
|
215
|
+
|
|
216
|
+
declare function generateSettingValuesFormGroup(model: SettingFormulaModel, readOnly: boolean, settings: IPrerequisiteSetting[], featureFlagLimitations: FeatureFlagLimitations): FormGroup<UpdateSettingValueForm>;
|
|
217
|
+
declare function generatePercentageEvaluationAttributeFormControl(percentageEvaluationAttribute: string | null, readOnly: boolean): FormControl<string | null>;
|
|
218
|
+
declare function generateTargetingRuleFormGroup(model: TargetingRuleModel, settingType: SettingType, predefinedVariations: PredefinedVariationModel[], readOnly: boolean, settings: IPrerequisiteSetting[], featureFlagLimitations: FeatureFlagLimitations): FormGroup<TargetingRuleForm>;
|
|
219
|
+
declare function generateTargetingRuleWithEmptyPercentageOptions(settingType: SettingType, predefinedVariations: PredefinedVariationModel[], readOnly: boolean, settings: IPrerequisiteSetting[], featureFlagLimitations: FeatureFlagLimitations): FormGroup<TargetingRuleForm>;
|
|
220
|
+
declare function getEmptyPercentageOptions(settingType: SettingType, predefinedVariations: PredefinedVariationModel[], featureFlagLimitations: FeatureFlagLimitations): PercentageOptionModel[];
|
|
221
|
+
declare function generatePercentageOptionFormGroup(model: PercentageOptionModel, settingType: SettingType, predefinedVariations: PredefinedVariationModel[], readOnly: boolean, featureFlagLimitations: FeatureFlagLimitations): FormGroup<PercentageOptionForm>;
|
|
222
|
+
declare function generateConditionFormGroup(model: ConditionModel, readOnly: boolean, settings: IPrerequisiteSetting[], featureFlagLimitations: FeatureFlagLimitations): FormGroup<ConditionForm>;
|
|
223
|
+
declare function generateUserConditionFormGroup(value: UserConditionModel, readOnly: boolean, featureFlagLimitations: FeatureFlagLimitations): FormGroup<UserConditionForm>;
|
|
224
|
+
declare function generateSegmentConditionFormGroup(value: SegmentConditionModel, readOnly: boolean): FormGroup<SegmentConditionForm>;
|
|
225
|
+
declare function generatePrerequisiteFlagConditionFormGroup(value: PrerequisiteFlagConditionModel, readOnly: boolean, settings: IPrerequisiteSetting[], featureFlagLimitations: FeatureFlagLimitations): FormGroup<PrerequisiteFlagConditionForm>;
|
|
226
|
+
declare function generateEmptySegmentConditionFormGroup(): FormGroup<SegmentConditionForm>;
|
|
227
|
+
declare function generateEmptyPrerequisiteFlagConditionFormGroup(featureFlagLimitations: FeatureFlagLimitations): FormGroup<PrerequisiteFlagConditionForm>;
|
|
228
|
+
declare function getNextIndex(formArray: FormArray<FormGroup<ComparisonValueListForm>>): number;
|
|
229
|
+
declare function generateComparisonValueListFormGroup(listValue: ComparisonValueListModel, readOnly: boolean, validators: ValidatorFn[], index: number): FormGroup<ComparisonValueListForm>;
|
|
230
|
+
declare function generateComparisonValueFormGroup(value: ComparisonValueModel, comparator: UserComparator, readOnly: boolean, featureFlagLimitations: FeatureFlagLimitations): FormGroup<ComparisonValueForm>;
|
|
231
|
+
declare function generateComparisonValueListValueArray(listValue: ComparisonValueListModel[], readOnly: boolean, featureFlagLimitations: FeatureFlagLimitations, itemValidators: ValidatorFn[]): FormArray<FormGroup<ComparisonValueListForm>>;
|
|
232
|
+
declare function getComparisonValueStringValidators(featureFlagLimitations: FeatureFlagLimitations): ValidatorFn[];
|
|
233
|
+
declare function getComparisonValueStringListItemValidators(featureFlagLimitations: FeatureFlagLimitations): ValidatorFn[];
|
|
234
|
+
declare function getComparisonValueSemverValidators(featureFlagLimitations: FeatureFlagLimitations): ValidatorFn[];
|
|
235
|
+
declare function getComparisonValueSemverListItemValidators(featureFlagLimitations: FeatureFlagLimitations): ValidatorFn[];
|
|
236
|
+
declare function generateDefaultValue(settingType: SettingType, predefinedVariations: PredefinedVariationModel[]): ValueModel;
|
|
237
|
+
declare function generatePrerequisiteDefaultValue(settingType: SettingType, predefinedVariations: PredefinedVariationModel[]): ValueModel;
|
|
238
|
+
declare function generateDefaultValueFormGroup(settingType: SettingType, predefinedVariations: PredefinedVariationModel[], readOnly: boolean, featureFlagLimitations: FeatureFlagLimitations): FormGroup<ValueForm>;
|
|
239
|
+
declare function generateValueFormGroup(value: ValueModel, settingType: SettingType, predefinedVariations: PredefinedVariationModel[], readOnly: boolean, featureFlagLimitations: FeatureFlagLimitations): FormGroup<ValueForm>;
|
|
240
|
+
declare function getComparisonValueType(comparator: UserComparator): UserComparatorType;
|
|
241
|
+
declare function getValidatorsForSettingType(settingType: SettingType, featureFlagLimitations: FeatureFlagLimitations): ValidatorFn[];
|
|
242
|
+
declare function isPercentageOnlyTargetingRule(formGroup: FormGroup<TargetingRuleForm>): boolean;
|
|
243
|
+
declare function addComparisonValueListValueItems(userComparator: UserComparator, listValueFormArray: FormArray<FormGroup<ComparisonValueListForm>>, comparisonValueList: ComparisonValueListModel[], featureFlagLimitations: FeatureFlagLimitations): void;
|
|
236
244
|
declare function validatePercentageSum(c: AbstractControl): {
|
|
237
245
|
validatePercentageSum: {
|
|
238
246
|
valid: boolean;
|
|
@@ -485,7 +493,6 @@ declare class DeleteSettingDialogComponent {
|
|
|
485
493
|
}
|
|
486
494
|
|
|
487
495
|
declare class FeatureFlagItemComponent extends BaseComponent implements OnInit, OnDestroy {
|
|
488
|
-
private readonly formGenerator;
|
|
489
496
|
private readonly dialog;
|
|
490
497
|
private readonly messagingService;
|
|
491
498
|
readonly productId: _angular_core.InputSignal<string>;
|
|
@@ -771,5 +778,5 @@ declare class LoaderComponent implements OnInit {
|
|
|
771
778
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<LoaderComponent, "app-loader", never, { "skipTimeOut": { "alias": "skipTimeOut"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
772
779
|
}
|
|
773
780
|
|
|
774
|
-
export { AuthorizationComponent, CONFIGCAT_PUBLICAPI_UI_CONFIGURATION, ConfigSelectComponent, CreateConfigComponent, CreateFeatureFlagComponent, DeleteSettingDialogComponent, EnvironmentSelectComponent, FeatureFlagItemComponent,
|
|
775
|
-
export type { AuthorizationModel, DeleteSettingDialogData, DeleteSettingDialogResult, DeleteSettingModel, LinkFeatureFlagParameters, PresetProduct, PresetProductAndConfig, SettingValuesModel, UpdateSettingValuesModel };
|
|
781
|
+
export { AuthorizationComponent, CONFIGCAT_PUBLICAPI_UI_CONFIGURATION, ConfigSelectComponent, CreateConfigComponent, CreateFeatureFlagComponent, DeleteSettingDialogComponent, EnvironmentSelectComponent, FeatureFlagItemComponent, FormHelper, InputDisplayNormalizerDirective, LinkFeatureFlagComponent, LoaderComponent, ProductSelectComponent, PublicApiService, SettingItemComponent, SettingSelectComponent, Theme, ThemeService, UserComparatorText, UserComparatorType, addComparisonValueListValueItems, defaultErrorMessageTypes, featureFlagKeyRegex, formatCsvStringValue, formatValuesAndHintAsCsv, formatValuesAndHintAsJson, formatValuesAsCsv, generateComparisonValueFormGroup, generateComparisonValueListFormGroup, generateComparisonValueListValueArray, generateConditionFormGroup, generateDefaultValue, generateDefaultValueFormGroup, generateEmptyPrerequisiteFlagConditionFormGroup, generateEmptySegmentConditionFormGroup, generatePercentageEvaluationAttributeFormControl, generatePercentageOptionFormGroup, generatePrerequisiteDefaultValue, generatePrerequisiteFlagConditionFormGroup, generateSegmentConditionFormGroup, generateSettingValuesFormGroup, generateTargetingRuleFormGroup, generateTargetingRuleWithEmptyPercentageOptions, generateUserConditionFormGroup, generateValueFormGroup, getComparisonValueSemverListItemValidators, getComparisonValueSemverValidators, getComparisonValueStringListItemValidators, getComparisonValueStringValidators, getComparisonValueType, getEmptyPercentageOptions, getNextIndex, getRawSettiongValue, getRawValue, getValidatorsForSettingType, isClearTextComparator, isPercentageOnlyTargetingRule, parseValuesAndHintsFromCsv, parseValuesAndHintsFromJson, parseValuesFromCsv, percentageRegex, provideConfigCatPublicApiUi, validatePercentageSum, wholeNumberRegex };
|
|
782
|
+
export type { AuthorizationModel, ComparisonValueListParseResult, DeleteSettingDialogData, DeleteSettingDialogResult, DeleteSettingModel, LinkFeatureFlagParameters, PresetProduct, PresetProductAndConfig, SettingValuesModel, UpdateSettingValuesModel };
|