ng-configcat-publicapi-ui 3.0.2 → 3.0.3

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.
@@ -0,0 +1,10 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { BaseComponent } from './base.component';
3
+ import * as i0 from "@angular/core";
4
+ export declare class BaseSelectComponent extends BaseComponent {
5
+ customDropdown: boolean;
6
+ dropdownOpened: EventEmitter<boolean>;
7
+ protected openChanged(event: any): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseSelectComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaseSelectComponent, "base-select", never, { "customDropdown": "customDropdown"; }, { "dropdownOpened": "dropdownOpened"; }, never, never, false, never>;
10
+ }
@@ -10,6 +10,7 @@ export declare class ExpandDialogComponent implements OnInit, OnDestroy {
10
10
  formControlSubscription: Subscription | null;
11
11
  formGroupSubscription: Subscription | null;
12
12
  formGroup: UntypedFormGroup;
13
+ readOnly: boolean;
13
14
  constructor(dialogRef: MatDialogRef<ExpandDialogComponent>, formBuilder: UntypedFormBuilder, data: any);
14
15
  ngOnInit(): void;
15
16
  values(): UntypedFormArray;
@@ -2,44 +2,45 @@ import { ModuleWithProviders } from '@angular/core';
2
2
  import { Configuration } from './configuration';
3
3
  import * as i0 from "@angular/core";
4
4
  import * as i1 from "./base/base.component";
5
- import * as i2 from "./selects/product-select/product-select.component";
6
- import * as i3 from "./selects/config-select/config-select.component";
7
- import * as i4 from "./selects/environment-select/environment-select.component";
8
- import * as i5 from "./selects/setting-select/setting-select.component";
9
- import * as i6 from "./setting-item/setting-item.component";
10
- import * as i7 from "./authorization/authorization.component";
11
- import * as i8 from "./setting-list/setting-list.component";
12
- import * as i9 from "./setting-list/setting/setting.component";
13
- import * as i10 from "./setting-list/setting/rollout-percentage-items/rollout-percentage-items.component";
14
- import * as i11 from "./setting-list/setting/rollout-rules/rollout-rules.component";
15
- import * as i12 from "./setting-list/setting/value/value.component";
16
- import * as i13 from "./dialogs/reason-dialog/reason-dialog.component";
17
- import * as i14 from "./dialogs/save-snackbar/save-snackbar.component";
18
- import * as i15 from "./dialogs/expand-dialog/expand-dialog.component";
19
- import * as i16 from "./dialogs/delete-setting-dialog/delete-setting-dialog.component";
20
- import * as i17 from "./_directives/input-display-normalizer.directive";
21
- import * as i18 from "@angular/common";
22
- import * as i19 from "@angular/forms";
23
- import * as i20 from "@angular/platform-browser/animations";
24
- import * as i21 from "@angular/material/form-field";
25
- import * as i22 from "@angular/material/core";
26
- import * as i23 from "@angular/material/select";
27
- import * as i24 from "@angular/material/button";
28
- import * as i25 from "@angular/material/input";
29
- import * as i26 from "@angular/material/icon";
30
- import * as i27 from "@angular/material/tooltip";
31
- import * as i28 from "@angular/material/chips";
32
- import * as i29 from "@angular/material/autocomplete";
33
- import * as i30 from "@angular/cdk/drag-drop";
34
- import * as i31 from "@angular/router";
35
- import * as i32 from "@angular/material/snack-bar";
36
- import * as i33 from "@angular/material/dialog";
37
- import * as i34 from "@angular/material/menu";
38
- import * as i35 from "ng-configcat-publicapi";
5
+ import * as i2 from "./base/base-select.component";
6
+ import * as i3 from "./selects/product-select/product-select.component";
7
+ import * as i4 from "./selects/config-select/config-select.component";
8
+ import * as i5 from "./selects/environment-select/environment-select.component";
9
+ import * as i6 from "./selects/setting-select/setting-select.component";
10
+ import * as i7 from "./setting-item/setting-item.component";
11
+ import * as i8 from "./authorization/authorization.component";
12
+ import * as i9 from "./setting-list/setting-list.component";
13
+ import * as i10 from "./setting-list/setting/setting.component";
14
+ import * as i11 from "./setting-list/setting/rollout-percentage-items/rollout-percentage-items.component";
15
+ import * as i12 from "./setting-list/setting/rollout-rules/rollout-rules.component";
16
+ import * as i13 from "./setting-list/setting/value/value.component";
17
+ import * as i14 from "./dialogs/reason-dialog/reason-dialog.component";
18
+ import * as i15 from "./dialogs/save-snackbar/save-snackbar.component";
19
+ import * as i16 from "./dialogs/expand-dialog/expand-dialog.component";
20
+ import * as i17 from "./dialogs/delete-setting-dialog/delete-setting-dialog.component";
21
+ import * as i18 from "./_directives/input-display-normalizer.directive";
22
+ import * as i19 from "@angular/common";
23
+ import * as i20 from "@angular/forms";
24
+ import * as i21 from "@angular/platform-browser/animations";
25
+ import * as i22 from "@angular/material/form-field";
26
+ import * as i23 from "@angular/material/core";
27
+ import * as i24 from "@angular/material/select";
28
+ import * as i25 from "@angular/material/button";
29
+ import * as i26 from "@angular/material/input";
30
+ import * as i27 from "@angular/material/icon";
31
+ import * as i28 from "@angular/material/tooltip";
32
+ import * as i29 from "@angular/material/chips";
33
+ import * as i30 from "@angular/material/autocomplete";
34
+ import * as i31 from "@angular/cdk/drag-drop";
35
+ import * as i32 from "@angular/router";
36
+ import * as i33 from "@angular/material/snack-bar";
37
+ import * as i34 from "@angular/material/dialog";
38
+ import * as i35 from "@angular/material/menu";
39
+ import * as i36 from "ng-configcat-publicapi";
39
40
  export declare class NgConfigCatPublicApiUIModule {
40
41
  static forRoot(configurationFactory: () => Configuration): ModuleWithProviders<NgConfigCatPublicApiUIModule>;
41
42
  constructor();
42
43
  static ɵfac: i0.ɵɵFactoryDeclaration<NgConfigCatPublicApiUIModule, never>;
43
- static ɵmod: i0.ɵɵNgModuleDeclaration<NgConfigCatPublicApiUIModule, [typeof i1.BaseComponent, typeof i2.ProductSelectComponent, typeof i3.ConfigSelectComponent, typeof i4.EnvironmentSelectComponent, typeof i5.SettingSelectComponent, typeof i6.SettingItemComponent, typeof i7.AuthorizationComponent, typeof i8.SettingListComponent, typeof i9.SettingComponent, typeof i10.RolloutPercentageItemsComponent, typeof i11.RolloutRulesComponent, typeof i12.ValueComponent, typeof i13.ReasonDialogComponent, typeof i14.SaveSnackbarComponent, typeof i15.ExpandDialogComponent, typeof i16.DeleteSettingDialogComponent, typeof i17.InputDisplayNormalizerDirective], [typeof i18.CommonModule, typeof i19.FormsModule, typeof i19.ReactiveFormsModule, typeof i20.BrowserAnimationsModule, typeof i21.MatFormFieldModule, typeof i22.MatOptionModule, typeof i23.MatSelectModule, typeof i24.MatButtonModule, typeof i25.MatInputModule, typeof i26.MatIconModule, typeof i27.MatTooltipModule, typeof i28.MatChipsModule, typeof i29.MatAutocompleteModule, typeof i30.DragDropModule, typeof i31.RouterModule, typeof i32.MatSnackBarModule, typeof i33.MatDialogModule, typeof i34.MatMenuModule, typeof i35.ApiModule], [typeof i7.AuthorizationComponent, typeof i2.ProductSelectComponent, typeof i3.ConfigSelectComponent, typeof i4.EnvironmentSelectComponent, typeof i5.SettingSelectComponent, typeof i6.SettingItemComponent, typeof i17.InputDisplayNormalizerDirective, typeof i16.DeleteSettingDialogComponent]>;
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 i19.CommonModule, typeof i20.FormsModule, typeof i20.ReactiveFormsModule, typeof i21.BrowserAnimationsModule, typeof i22.MatFormFieldModule, typeof i23.MatOptionModule, typeof i24.MatSelectModule, typeof i25.MatButtonModule, typeof i26.MatInputModule, typeof i27.MatIconModule, typeof i28.MatTooltipModule, typeof i29.MatChipsModule, typeof i30.MatAutocompleteModule, typeof i31.DragDropModule, typeof i32.RouterModule, typeof i33.MatSnackBarModule, typeof i34.MatDialogModule, typeof i35.MatMenuModule, typeof i36.ApiModule], [typeof i8.AuthorizationComponent, typeof i3.ProductSelectComponent, typeof i4.ConfigSelectComponent, typeof i5.EnvironmentSelectComponent, typeof i6.SettingSelectComponent, typeof i7.SettingItemComponent, typeof i18.InputDisplayNormalizerDirective, typeof i17.DeleteSettingDialogComponent]>;
44
45
  static ɵinj: i0.ɵɵInjectorDeclaration<NgConfigCatPublicApiUIModule>;
45
46
  }
@@ -1,10 +1,10 @@
1
1
  import { OnInit, OnChanges } from '@angular/core';
2
- import { BaseComponent } from '../../base/base.component';
3
2
  import { ConfigModel } from 'ng-configcat-publicapi';
4
3
  import { UntypedFormControl } from '@angular/forms';
5
4
  import { PublicApiService } from '../../_services';
5
+ import { BaseSelectComponent } from '../../base/base-select.component';
6
6
  import * as i0 from "@angular/core";
7
- export declare class ConfigSelectComponent extends BaseComponent implements OnInit, OnChanges {
7
+ export declare class ConfigSelectComponent extends BaseSelectComponent implements OnInit, OnChanges {
8
8
  valueFormControl: UntypedFormControl;
9
9
  productId: string;
10
10
  configs: ConfigModel[];
@@ -1,10 +1,10 @@
1
1
  import { OnInit, OnChanges } from '@angular/core';
2
- import { BaseComponent } from '../../base/base.component';
3
2
  import { EnvironmentModel } from 'ng-configcat-publicapi';
4
3
  import { UntypedFormControl } from '@angular/forms';
5
4
  import { PublicApiService } from '../../_services';
5
+ import { BaseSelectComponent } from '../../base/base-select.component';
6
6
  import * as i0 from "@angular/core";
7
- export declare class EnvironmentSelectComponent extends BaseComponent implements OnInit, OnChanges {
7
+ export declare class EnvironmentSelectComponent extends BaseSelectComponent implements OnInit, OnChanges {
8
8
  valueFormControl: UntypedFormControl;
9
9
  productId: string;
10
10
  environments: EnvironmentModel[];
@@ -1,10 +1,10 @@
1
1
  import { OnInit } from '@angular/core';
2
- import { BaseComponent } from '../../base/base.component';
3
2
  import { ProductModel } from 'ng-configcat-publicapi';
4
3
  import { UntypedFormControl } from '@angular/forms';
5
4
  import { PublicApiService } from '../../_services';
5
+ import { BaseSelectComponent } from '../../base/base-select.component';
6
6
  import * as i0 from "@angular/core";
7
- export declare class ProductSelectComponent extends BaseComponent implements OnInit {
7
+ export declare class ProductSelectComponent extends BaseSelectComponent implements OnInit {
8
8
  valueFormControl: UntypedFormControl;
9
9
  products: ProductModel[];
10
10
  constructor(publicApiService: PublicApiService);
@@ -1,10 +1,10 @@
1
1
  import { OnInit, OnChanges } from '@angular/core';
2
- import { BaseComponent } from '../../base/base.component';
3
2
  import { SettingModel } from 'ng-configcat-publicapi';
4
3
  import { UntypedFormControl } from '@angular/forms';
5
4
  import { PublicApiService } from '../../_services';
5
+ import { BaseSelectComponent } from '../../base/base-select.component';
6
6
  import * as i0 from "@angular/core";
7
- export declare class SettingSelectComponent extends BaseComponent implements OnInit, OnChanges {
7
+ export declare class SettingSelectComponent extends BaseSelectComponent implements OnInit, OnChanges {
8
8
  valueFormControl: UntypedFormControl;
9
9
  configId: string;
10
10
  settings: SettingModel[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ng-configcat-publicapi-ui",
3
- "version": "3.0.2",
3
+ "version": "3.0.3",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.2.5",
6
6
  "@angular/core": "^15.2.5",
package/public-api.scss CHANGED
@@ -16,6 +16,7 @@ $configcat-theme: mat.define-light-theme((color: (primary: $configcat-primary,
16
16
  @include mat.all-component-themes($configcat-theme);
17
17
 
18
18
  $configcat-typography: mat.define-typography-config($font-family: 'Montserrat, Roboto, "Helvetica Neue", sans-serif',
19
+ $subtitle-1: mat.define-typography-level(16px, 28px, 700),
19
20
  $body-1: mat.define-typography-level(14px, 24px, 400));
20
21
  @include mat.all-component-typographies($configcat-typography);
21
22
 
@@ -25,12 +26,15 @@ $configcat-typography: mat.define-typography-config($font-family: 'Montserrat, R
25
26
  @include mat.checkbox-density(-3);
26
27
 
27
28
  html {
29
+ overflow: visible;
30
+ overflow-y: visible;
28
31
 
29
32
  body {
30
33
  margin: 0;
31
34
  font-family: Montserrat, Roboto, "Helvetica Neue", sans-serif;
32
35
  font-size: 14px;
33
36
  background-color: #fff;
37
+ color: inherit;
34
38
 
35
39
  a {
36
40
  color: #007bff;
@@ -46,6 +50,10 @@ html {
46
50
  }
47
51
  }
48
52
 
53
+ code {
54
+ color: inherit;
55
+ }
56
+
49
57
  .mat-mdc-tooltip {
50
58
  font-size: 14px !important;
51
59
  white-space: pre-line;
@@ -76,50 +84,52 @@ html {
76
84
  }
77
85
  }
78
86
  }
87
+
88
+ .mat-mdc-select-panel.custom-dropdown-below {
89
+ position: absolute;
90
+ }
91
+
92
+ .mat-mdc-option .mdc-list-item__primary-text {
93
+ overflow: hidden;
94
+ text-overflow: ellipsis;
95
+ white-space: nowrap;
96
+ }
97
+
79
98
  }
80
99
  }
81
100
 
82
- .green-snackbar {
101
+ .mat-mdc-snack-bar-container.green-snackbar {
102
+
103
+ .mdc-snackbar__label,
104
+ .mat-mdc-button {
105
+ color: white !important;
106
+ }
107
+
83
108
  .mdc-snackbar__surface {
84
109
  background-color: #4caf50 !important;
85
- color: white;
86
110
  }
111
+ }
87
112
 
88
- button {
89
- color: white;
113
+ .mat-mdc-snack-bar-container.red-snackbar {
90
114
 
91
- span {
92
- text-transform: none;
93
- }
115
+ .mdc-snackbar__label,
116
+ .mat-mdc-button {
117
+ color: white !important;
94
118
  }
95
- }
96
119
 
97
- .red-snackbar {
98
120
  .mdc-snackbar__surface {
99
121
  background-color: #A32B2D !important;
100
- color: white;
101
122
  }
123
+ }
102
124
 
103
- button {
104
- color: white;
125
+ .mat-mdc-snack-bar-container.yellow-snackbar {
105
126
 
106
- span {
107
- text-transform: none;
108
- }
127
+ .mdc-snackbar__label,
128
+ .mat-mdc-button {
129
+ color: black !important;
109
130
  }
110
- }
111
131
 
112
- .yellow-snackbar {
113
132
  .mdc-snackbar__surface {
114
133
  background-color: #f7941c !important;
115
- color: black;
116
- }
117
-
118
- button {
119
- color: black;
120
-
121
- span {
122
- text-transform: none;
123
- }
124
134
  }
125
135
  }