ng-configcat-publicapi-ui 5.6.8 → 6.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.
|
@@ -84,7 +84,12 @@ class TooManyRequestInterceptor {
|
|
|
84
84
|
if (!(error instanceof HttpErrorResponse) || error.status !== 429) {
|
|
85
85
|
return throwError(() => error);
|
|
86
86
|
}
|
|
87
|
-
this.
|
|
87
|
+
if (!this.rateLimitDialogRef) {
|
|
88
|
+
this.rateLimitDialogRef = this.dialog.open(RateLimitDialogComponent, { width: "400px" });
|
|
89
|
+
this.rateLimitDialogRef.afterClosed().subscribe(() => {
|
|
90
|
+
this.rateLimitDialogRef = void 0;
|
|
91
|
+
});
|
|
92
|
+
}
|
|
88
93
|
return throwError(() => error);
|
|
89
94
|
}));
|
|
90
95
|
}
|
|
@@ -7576,10 +7581,9 @@ const DEFAULT_CUSTOMIZE_LINK_FEATURE_FLAG = {
|
|
|
7576
7581
|
addButtonLabel: "Add",
|
|
7577
7582
|
cancelButtonLabel: "Cancel",
|
|
7578
7583
|
};
|
|
7579
|
-
class LinkFeatureFlagComponent {
|
|
7584
|
+
class LinkFeatureFlagComponent extends BaseComponent {
|
|
7580
7585
|
constructor() {
|
|
7581
|
-
|
|
7582
|
-
...(ngDevMode ? [undefined, { debugName: "authorizationParameters" }] : /* istanbul ignore next */ []));
|
|
7586
|
+
super(...arguments);
|
|
7583
7587
|
this.customize = input(DEFAULT_CUSTOMIZE_LINK_FEATURE_FLAG, /* @ts-ignore */
|
|
7584
7588
|
...(ngDevMode ? [{ debugName: "customize" }] : /* istanbul ignore next */ []));
|
|
7585
7589
|
this.linkInitiated = output();
|
|
@@ -7644,8 +7648,8 @@ class LinkFeatureFlagComponent {
|
|
|
7644
7648
|
dropdownComponentFailed(error) {
|
|
7645
7649
|
this.componentError.emit(error);
|
|
7646
7650
|
}
|
|
7647
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: LinkFeatureFlagComponent, deps:
|
|
7648
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: LinkFeatureFlagComponent, isStandalone: true, selector: "app-link-feature-flag", inputs: {
|
|
7651
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: LinkFeatureFlagComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
7652
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.1", type: LinkFeatureFlagComponent, isStandalone: true, selector: "app-link-feature-flag", inputs: { customize: { classPropertyName: "customize", publicName: "customize", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { linkInitiated: "linkInitiated", resizeRequested: "resizeRequested", cancelInitiated: "cancelInitiated", selectDropdownPanelChangedReqested: "selectDropdownPanelChangedReqested", componentError: "componentError" }, usesInheritance: true, ngImport: i0, template: "<div class=\"container\">\n <form class=\"form\" [formGroup]=\"formGroup\" (ngSubmit)=\"add()\">\n <div>\n <app-product-select\n name=\"productId\"\n [basicAuthUsername]=\"basicAuthUsername()\"\n [basicAuthPassword]=\"basicAuthPassword()\"\n [valueFormControl]=\"formGroup.controls.productId\"\n [customDropdown]=\"true\"\n (componentError)=\"dropdownComponentFailed($event)\" />\n @if (formGroup.controls.productId.value) {\n <app-config-select\n [basicAuthUsername]=\"basicAuthUsername()\"\n [basicAuthPassword]=\"basicAuthPassword()\"\n [customDropdown]=\"true\"\n [productId]=\"formGroup.controls.productId.value\"\n [valueFormControl]=\"formGroup.controls.configId\"\n (dropdownOpened)=\"selectDropdownPanelChanged($event)\"\n (componentError)=\"dropdownComponentFailed($event)\" />\n }\n @if (formGroup.controls.productId.value) {\n <app-environment-select\n [basicAuthUsername]=\"basicAuthUsername()\"\n [basicAuthPassword]=\"basicAuthPassword()\"\n [productId]=\"formGroup.controls.productId.value\"\n [valueFormControl]=\"formGroup.controls.environmentId\"\n [customDropdown]=\"true\"\n (dropdownOpened)=\"selectDropdownPanelChanged($event)\"\n (componentError)=\"dropdownComponentFailed($event)\" />\n }\n @if (formGroup.controls.configId.value) {\n <app-setting-select\n [basicAuthUsername]=\"basicAuthUsername()\"\n [basicAuthPassword]=\"basicAuthPassword()\"\n [configId]=\"formGroup.controls.configId.value\"\n [valueFormControl]=\"formGroup.controls.settingId\"\n [customDropdown]=\"true\"\n (dropdownOpened)=\"selectDropdownPanelChanged($event)\"\n (componentError)=\"dropdownComponentFailed($event)\" />\n }\n </div>\n <div class=\"buttons\">\n <button mat-raised-button color=\"primary\" type=\"submit\" [disabled]=\"submitting() || !formGroup.valid\">\n {{ customize().addButtonLabel }}\n </button>\n @if (!customize().hideCancelButton) {\n <button mat-stroked-button type=\"button\" (click)=\"cancel()\">\n {{ customize().cancelButtonLabel }}\n </button>\n }\n </div>\n </form>\n</div>\n", styles: [".container{margin:8px 8px 16px}.container .form>*{width:100%}.container .form .error{color:var(--flag-validation-error);margin:0 5px 5px}.buttons{margin-bottom:16px}.buttons>*{margin-right:16px}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: RxReactiveFormsModule }, { kind: "directive", type: i2.RxwebFormDirective, selector: "[formGroup],[rxwebForm]", inputs: ["formGroup", "rxwebForm"] }, { kind: "component", type: MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: ProductSelectComponent, selector: "app-product-select", inputs: ["valueFormControl", "preSelectedProductId"], outputs: ["componentError"] }, { kind: "component", type: ConfigSelectComponent, selector: "app-config-select", inputs: ["valueFormControl", "productId", "preSelectedConfigId"], outputs: ["componentError"] }, { kind: "component", type: EnvironmentSelectComponent, selector: "app-environment-select", inputs: ["valueFormControl", "productId"], outputs: ["componentError"] }, { kind: "component", type: SettingSelectComponent, selector: "app-setting-select", inputs: ["valueFormControl", "configId"], outputs: ["componentError"] }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
|
|
7649
7653
|
}
|
|
7650
7654
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImport: i0, type: LinkFeatureFlagComponent, decorators: [{
|
|
7651
7655
|
type: Component,
|
|
@@ -7658,8 +7662,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.1", ngImpor
|
|
|
7658
7662
|
ConfigSelectComponent,
|
|
7659
7663
|
EnvironmentSelectComponent,
|
|
7660
7664
|
SettingSelectComponent,
|
|
7661
|
-
], template: "<div class=\"container\">\n <form class=\"form\" [formGroup]=\"formGroup\" (ngSubmit)=\"add()\">\n <div>\n <app-product-select\n name=\"productId\"\n [basicAuthUsername]=\"
|
|
7662
|
-
}], propDecorators: {
|
|
7665
|
+
], template: "<div class=\"container\">\n <form class=\"form\" [formGroup]=\"formGroup\" (ngSubmit)=\"add()\">\n <div>\n <app-product-select\n name=\"productId\"\n [basicAuthUsername]=\"basicAuthUsername()\"\n [basicAuthPassword]=\"basicAuthPassword()\"\n [valueFormControl]=\"formGroup.controls.productId\"\n [customDropdown]=\"true\"\n (componentError)=\"dropdownComponentFailed($event)\" />\n @if (formGroup.controls.productId.value) {\n <app-config-select\n [basicAuthUsername]=\"basicAuthUsername()\"\n [basicAuthPassword]=\"basicAuthPassword()\"\n [customDropdown]=\"true\"\n [productId]=\"formGroup.controls.productId.value\"\n [valueFormControl]=\"formGroup.controls.configId\"\n (dropdownOpened)=\"selectDropdownPanelChanged($event)\"\n (componentError)=\"dropdownComponentFailed($event)\" />\n }\n @if (formGroup.controls.productId.value) {\n <app-environment-select\n [basicAuthUsername]=\"basicAuthUsername()\"\n [basicAuthPassword]=\"basicAuthPassword()\"\n [productId]=\"formGroup.controls.productId.value\"\n [valueFormControl]=\"formGroup.controls.environmentId\"\n [customDropdown]=\"true\"\n (dropdownOpened)=\"selectDropdownPanelChanged($event)\"\n (componentError)=\"dropdownComponentFailed($event)\" />\n }\n @if (formGroup.controls.configId.value) {\n <app-setting-select\n [basicAuthUsername]=\"basicAuthUsername()\"\n [basicAuthPassword]=\"basicAuthPassword()\"\n [configId]=\"formGroup.controls.configId.value\"\n [valueFormControl]=\"formGroup.controls.settingId\"\n [customDropdown]=\"true\"\n (dropdownOpened)=\"selectDropdownPanelChanged($event)\"\n (componentError)=\"dropdownComponentFailed($event)\" />\n }\n </div>\n <div class=\"buttons\">\n <button mat-raised-button color=\"primary\" type=\"submit\" [disabled]=\"submitting() || !formGroup.valid\">\n {{ customize().addButtonLabel }}\n </button>\n @if (!customize().hideCancelButton) {\n <button mat-stroked-button type=\"button\" (click)=\"cancel()\">\n {{ customize().cancelButtonLabel }}\n </button>\n }\n </div>\n </form>\n</div>\n", styles: [".container{margin:8px 8px 16px}.container .form>*{width:100%}.container .form .error{color:var(--flag-validation-error);margin:0 5px 5px}.buttons{margin-bottom:16px}.buttons>*{margin-right:16px}\n"] }]
|
|
7666
|
+
}], propDecorators: { customize: [{ type: i0.Input, args: [{ isSignal: true, alias: "customize", required: false }] }], linkInitiated: [{ type: i0.Output, args: ["linkInitiated"] }], resizeRequested: [{ type: i0.Output, args: ["resizeRequested"] }], cancelInitiated: [{ type: i0.Output, args: ["cancelInitiated"] }], selectDropdownPanelChangedReqested: [{ type: i0.Output, args: ["selectDropdownPanelChangedReqested"] }], componentError: [{ type: i0.Output, args: ["componentError"] }] } });
|
|
7663
7667
|
|
|
7664
7668
|
const DEFAULT_CUSTOMIZE_CREATE_FEATURE_FLAG = {
|
|
7665
7669
|
hideCancelButton: true,
|
|
@@ -8080,7 +8084,8 @@ class CreateFeatureFlagComponent extends BaseComponent {
|
|
|
8080
8084
|
this.dialog.open(RerouteDialogComponent, {
|
|
8081
8085
|
data: {
|
|
8082
8086
|
title: "You have reached the limits of your plan",
|
|
8083
|
-
body:
|
|
8087
|
+
body: safeHtml `\
|
|
8088
|
+
Upgrade your plan or join our <a href="https://configcat.com/referrals" target="_blank" rel="noopener noreferrer">referral program</a> to increase your limits.`,
|
|
8084
8089
|
yesButtonLabel: "See plans",
|
|
8085
8090
|
yesButtonLink: this.getDashboardBasePath() + "/organization/plans",
|
|
8086
8091
|
noButtonLabel: "Close",
|
|
@@ -8332,7 +8337,8 @@ class CreateConfigComponent extends BaseComponent {
|
|
|
8332
8337
|
this.dialog.open(RerouteDialogComponent, {
|
|
8333
8338
|
data: {
|
|
8334
8339
|
title: "You have reached the limits of your plan",
|
|
8335
|
-
body:
|
|
8340
|
+
body: safeHtml `\
|
|
8341
|
+
Upgrade your plan or join our <a href="https://configcat.com/referrals" target="_blank" rel="noopener noreferrer">referral program</a> to increase your limits.`,
|
|
8336
8342
|
yesButtonLabel: "See plans",
|
|
8337
8343
|
yesButtonLink: this.getDashboardBasePath() + "/organization/plans",
|
|
8338
8344
|
noButtonLabel: "Close",
|