ng-configcat-publicapi-ui 3.0.0 → 3.0.2

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.
Files changed (32) hide show
  1. package/esm2020/lib/_directives/input-display-normalizer.directive.mjs +3 -3
  2. package/esm2020/lib/_services/public-api.service.mjs +3 -3
  3. package/esm2020/lib/_services/setting-list-form-helper.mjs +3 -3
  4. package/esm2020/lib/authorization/authorization.component.mjs +3 -3
  5. package/esm2020/lib/base/base.component.mjs +3 -3
  6. package/esm2020/lib/configuration.mjs +3 -3
  7. package/esm2020/lib/dialogs/delete-setting-dialog/delete-setting-dialog.component.mjs +3 -3
  8. package/esm2020/lib/dialogs/expand-dialog/expand-dialog.component.mjs +3 -3
  9. package/esm2020/lib/dialogs/reason-dialog/reason-dialog.component.mjs +3 -3
  10. package/esm2020/lib/dialogs/save-snackbar/save-snackbar.component.mjs +3 -3
  11. package/esm2020/lib/ng-configcat-publicapi-ui.module.mjs +9 -7
  12. package/esm2020/lib/selects/config-select/config-select.component.mjs +4 -4
  13. package/esm2020/lib/selects/environment-select/environment-select.component.mjs +3 -3
  14. package/esm2020/lib/selects/product-select/product-select.component.mjs +3 -3
  15. package/esm2020/lib/selects/setting-select/setting-select.component.mjs +3 -3
  16. package/esm2020/lib/setting-item/setting-item.component.mjs +8 -6
  17. package/esm2020/lib/setting-list/setting/rollout-percentage-items/rollout-percentage-items.component.mjs +3 -3
  18. package/esm2020/lib/setting-list/setting/rollout-rules/rollout-rules.component.mjs +3 -3
  19. package/esm2020/lib/setting-list/setting/setting.component.mjs +3 -3
  20. package/esm2020/lib/setting-list/setting/value/value.component.mjs +3 -3
  21. package/esm2020/lib/setting-list/setting-list.component.mjs +8 -7
  22. package/esm2020/public-api.mjs +2 -1
  23. package/fesm2015/ng-configcat-publicapi-ui.mjs +78 -73
  24. package/fesm2015/ng-configcat-publicapi-ui.mjs.map +1 -1
  25. package/fesm2020/ng-configcat-publicapi-ui.mjs +78 -73
  26. package/fesm2020/ng-configcat-publicapi-ui.mjs.map +1 -1
  27. package/lib/ng-configcat-publicapi-ui.module.d.ts +1 -1
  28. package/lib/setting-item/setting-item.component.d.ts +1 -0
  29. package/lib/setting-list/setting-list.component.d.ts +4 -4
  30. package/package.json +4 -4
  31. package/public-api.d.ts +1 -0
  32. package/public-api.scss +125 -0
@@ -40,6 +40,6 @@ export declare class NgConfigCatPublicApiUIModule {
40
40
  static forRoot(configurationFactory: () => Configuration): ModuleWithProviders<NgConfigCatPublicApiUIModule>;
41
41
  constructor();
42
42
  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]>;
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
44
  static ɵinj: i0.ɵɵInjectorDeclaration<NgConfigCatPublicApiUIModule>;
45
45
  }
@@ -25,6 +25,7 @@ export declare class SettingItemComponent extends BaseComponent implements OnIni
25
25
  constructor(publicApiService: PublicApiService);
26
26
  ngOnInit(): void;
27
27
  loadSettingValues: () => Observable<SettingValuesModel>;
28
+ itemLoadSucceeded(): void;
28
29
  loadSegments: () => Observable<SegmentListModel[]>;
29
30
  handleSave: (model: UpdateSettingValuesModel) => Observable<SettingValuesModel>;
30
31
  onDeleteSettingRequested(setting: any): void;
@@ -1,4 +1,4 @@
1
- import { OnInit, EventEmitter, OnDestroy, OnChanges } from '@angular/core';
1
+ import { EventEmitter, OnDestroy, OnChanges } from '@angular/core';
2
2
  import { SettingValuesModel, UpdateSettingValuesModel } from '../_models';
3
3
  import { UntypedFormArray, UntypedFormGroup } from '@angular/forms';
4
4
  import { Observable, Subscription } from 'rxjs';
@@ -7,7 +7,7 @@ import { MatDialog } from '@angular/material/dialog';
7
7
  import { SettingListFormHelper } from '../_services/setting-list-form-helper';
8
8
  import { SegmentListModel, SettingModel } from 'ng-configcat-publicapi';
9
9
  import * as i0 from "@angular/core";
10
- export declare class SettingListComponent implements OnInit, OnChanges, OnDestroy {
10
+ export declare class SettingListComponent implements OnChanges, OnDestroy {
11
11
  private formHelper;
12
12
  private snackBar;
13
13
  private dialog;
@@ -21,6 +21,7 @@ export declare class SettingListComponent implements OnInit, OnChanges, OnDestro
21
21
  loadSegments: () => Observable<SegmentListModel[]>;
22
22
  deleteSettingText: string;
23
23
  showEnvironmentName: boolean;
24
+ loadSucceeded: EventEmitter<any>;
24
25
  deleteSettingRequested: EventEmitter<any>;
25
26
  formValuesChanged: EventEmitter<any>;
26
27
  formValuesChangedSubscription: Subscription | null;
@@ -33,7 +34,6 @@ export declare class SettingListComponent implements OnInit, OnChanges, OnDestro
33
34
  showFeedBackMessage: boolean;
34
35
  readOnly: boolean;
35
36
  constructor(formHelper: SettingListFormHelper, snackBar: MatSnackBar, dialog: MatDialog);
36
- ngOnInit(): void;
37
37
  ngOnChanges(): void;
38
38
  ngOnDestroy(): void;
39
39
  reloadSettingValues(): void;
@@ -49,5 +49,5 @@ export declare class SettingListComponent implements OnInit, OnChanges, OnDestro
49
49
  setting: SettingModel;
50
50
  }): void;
51
51
  static ɵfac: i0.ɵɵFactoryDeclaration<SettingListComponent, never>;
52
- static ɵcmp: i0.ɵɵComponentDeclaration<SettingListComponent, "configcat-setting-list", never, { "productId": "productId"; "environmentId": "environmentId"; "configId": "configId"; "dashboardBasePath": "dashboardBasePath"; "canDeleteSetting": "canDeleteSetting"; "onSave": "onSave"; "loadSettingValues": "loadSettingValues"; "loadSegments": "loadSegments"; "deleteSettingText": "deleteSettingText"; "showEnvironmentName": "showEnvironmentName"; }, { "deleteSettingRequested": "deleteSettingRequested"; "formValuesChanged": "formValuesChanged"; }, never, never, false, never>;
52
+ static ɵcmp: i0.ɵɵComponentDeclaration<SettingListComponent, "configcat-setting-list", never, { "productId": "productId"; "environmentId": "environmentId"; "configId": "configId"; "dashboardBasePath": "dashboardBasePath"; "canDeleteSetting": "canDeleteSetting"; "onSave": "onSave"; "loadSettingValues": "loadSettingValues"; "loadSegments": "loadSegments"; "deleteSettingText": "deleteSettingText"; "showEnvironmentName": "showEnvironmentName"; }, { "loadSucceeded": "loadSucceeded"; "deleteSettingRequested": "deleteSettingRequested"; "formValuesChanged": "formValuesChanged"; }, never, never, false, never>;
53
53
  }
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "ng-configcat-publicapi-ui",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "peerDependencies": {
5
- "@angular/common": "^15.1.4",
6
- "@angular/core": "^15.1.4",
7
- "ng-configcat-publicapi": "^3.0.0",
5
+ "@angular/common": "^15.2.5",
6
+ "@angular/core": "^15.2.5",
7
+ "ng-configcat-publicapi": "^3.0.1",
8
8
  "semver": "^7.3.5"
9
9
  },
10
10
  "dependencies": {
package/public-api.d.ts CHANGED
@@ -7,3 +7,4 @@ export * from './lib/selects/product-select/product-select.component';
7
7
  export * from './lib/selects/config-select/config-select.component';
8
8
  export * from './lib/selects/environment-select/environment-select.component';
9
9
  export * from './lib/selects/setting-select/setting-select.component';
10
+ export * from './lib/dialogs/delete-setting-dialog/delete-setting-dialog.component';
@@ -0,0 +1,125 @@
1
+ @use '@angular/material' as mat;
2
+ @import '@angular/material/theming';
3
+
4
+ @include mat.core();
5
+
6
+ $configcat-primary: mat.define-palette(mat.$indigo-palette, 400);
7
+ $configcat-accent: mat.define-palette(mat.$pink-palette, A200, A100, A400);
8
+ $configcat-warn: mat.define-palette(mat.$red-palette);
9
+
10
+ $configcat-theme: mat.define-light-theme((color: (primary: $configcat-primary,
11
+ accent: $configcat-accent,
12
+ warn: $configcat-warn,
13
+ ),
14
+ density: -1));
15
+
16
+ @include mat.all-component-themes($configcat-theme);
17
+
18
+ $configcat-typography: mat.define-typography-config($font-family: 'Montserrat, Roboto, "Helvetica Neue", sans-serif',
19
+ $body-1: mat.define-typography-level(14px, 24px, 400));
20
+ @include mat.all-component-typographies($configcat-typography);
21
+
22
+ @include mat.button-density(0);
23
+ @include mat.icon-button-density(-2);
24
+ @include mat.form-field-density(-2);
25
+ @include mat.checkbox-density(-3);
26
+
27
+ html {
28
+
29
+ body {
30
+ margin: 0;
31
+ font-family: Montserrat, Roboto, "Helvetica Neue", sans-serif;
32
+ font-size: 14px;
33
+ background-color: #fff;
34
+
35
+ a {
36
+ color: #007bff;
37
+ text-decoration: none;
38
+ }
39
+
40
+ button {
41
+ white-space: nowrap;
42
+ letter-spacing: normal;
43
+
44
+ &:not(.mat-button-toggle-button) {
45
+ text-transform: uppercase;
46
+ }
47
+ }
48
+
49
+ .mat-mdc-tooltip {
50
+ font-size: 14px !important;
51
+ white-space: pre-line;
52
+ }
53
+
54
+ .mat-mdc-dialog-container {
55
+ .mat-mdc-dialog-actions {
56
+ padding-left: 24px !important;
57
+ padding-bottom: 18px !important;
58
+ }
59
+
60
+ .mdc-dialog__content {
61
+ color: black !important;
62
+ }
63
+ }
64
+
65
+ .mat-mdc-form-field {
66
+
67
+ .mat-mdc-form-field-hint-wrapper,
68
+ .mat-mdc-form-field-error-wrapper {
69
+ padding: 0 8px;
70
+
71
+ .mat-mdc-form-field-hint,
72
+ .mat-mdc-form-field-error {
73
+ font-size: 10px;
74
+ letter-spacing: normal;
75
+ line-height: 10px;
76
+ }
77
+ }
78
+ }
79
+ }
80
+ }
81
+
82
+ .green-snackbar {
83
+ .mdc-snackbar__surface {
84
+ background-color: #4caf50 !important;
85
+ color: white;
86
+ }
87
+
88
+ button {
89
+ color: white;
90
+
91
+ span {
92
+ text-transform: none;
93
+ }
94
+ }
95
+ }
96
+
97
+ .red-snackbar {
98
+ .mdc-snackbar__surface {
99
+ background-color: #A32B2D !important;
100
+ color: white;
101
+ }
102
+
103
+ button {
104
+ color: white;
105
+
106
+ span {
107
+ text-transform: none;
108
+ }
109
+ }
110
+ }
111
+
112
+ .yellow-snackbar {
113
+ .mdc-snackbar__surface {
114
+ background-color: #f7941c !important;
115
+ color: black;
116
+ }
117
+
118
+ button {
119
+ color: black;
120
+
121
+ span {
122
+ text-transform: none;
123
+ }
124
+ }
125
+ }