ng-configcat-publicapi-ui 5.2.0 → 5.3.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/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "ng-configcat-publicapi-ui",
3
- "version": "5.2.0",
3
+ "version": "5.3.0",
4
4
  "peerDependencies": {
5
- "@angular/cdk": "^20.2.14",
6
- "@angular/common": "^20.3.15",
7
- "@angular/core": "^20.3.15",
8
- "@angular/forms": "^20.3.15",
9
- "@angular/material": "^20.2.14",
10
- "@angular/router": "^20.3.15",
5
+ "@angular/cdk": "^21.0.6",
6
+ "@angular/common": "^21.0.8",
7
+ "@angular/core": "^21.0.8",
8
+ "@angular/forms": "^21.0.8",
9
+ "@angular/material": "^21.0.6",
10
+ "@angular/router": "^21.0.8",
11
11
  "@configcat/sdk": "^1.0.2",
12
- "ng-configcat-publicapi": "^5.2.2",
12
+ "ng-configcat-publicapi": "^5.3.0",
13
13
  "papaparse": "^5.5.3",
14
14
  "ace-builds": "^1.37.0"
15
15
  },
@@ -21,13 +21,13 @@
21
21
  "url": "git+https://github.com/configcat/ng-configcat-publicapi-ui.git"
22
22
  },
23
23
  "module": "fesm2022/ng-configcat-publicapi-ui.mjs",
24
- "typings": "index.d.ts",
24
+ "typings": "types/ng-configcat-publicapi-ui.d.ts",
25
25
  "exports": {
26
26
  "./package.json": {
27
27
  "default": "./package.json"
28
28
  },
29
29
  ".": {
30
- "types": "./index.d.ts",
30
+ "types": "./types/ng-configcat-publicapi-ui.d.ts",
31
31
  "default": "./fesm2022/ng-configcat-publicapi-ui.mjs"
32
32
  }
33
33
  },
@@ -386,7 +386,11 @@ html > body {
386
386
 
387
387
  // This scss differ from the app version becasue of the integrations iframes handle the fix max-width differently.
388
388
  .mat-mdc-select-panel {
389
- max-width: calc(100vw - 30px);
389
+ max-width: calc(90vw - 30px);
390
+ }
391
+
392
+ .mat-mdc-select-panel.custom-dropdown-below {
393
+ max-width: 98vw;
390
394
  }
391
395
  }
392
396
 
@@ -1,82 +1,58 @@
1
1
  /* The switch - the box around the slider */
2
2
  .switch {
3
- position: relative;
3
+ display: inline-flex;
4
+ align-items: center;
4
5
  width: 66px;
5
6
  height: 30px;
6
- margin-left: 4px;
7
- margin-top: 0;
8
- margin-bottom: 0;
9
- }
10
-
11
- /* Hide default HTML checkbox */
12
- .switch input {
13
- display: none;
14
- }
15
-
16
- /* The slider */
17
- .slider {
18
- position: absolute;
19
- cursor: pointer;
20
- top: 0;
21
- left: 0;
22
- right: 0;
23
- bottom: 0;
24
- background-color: var(--flag-bool-slider-off);
25
- -webkit-transition: 0.4s;
26
- transition: 0.4s;
27
- width: 66px;
28
- height: 30px;
29
- }
30
-
31
- .slider:before {
32
- position: absolute;
33
- content: "";
34
- height: 22px;
35
- width: 22px;
36
- left: 4px;
37
- bottom: 4px;
38
- background-color: var(--flag-bool-slider-remaining);
39
- -webkit-transition: 0.4s;
40
- transition: 0.4s;
41
- }
42
-
43
- input:checked + .slider {
44
- background-color: var(--flag-bool-slider-on);
45
- }
46
-
47
- input:focus + .slider {
48
- box-shadow: 0 0 1px var(--flag-bool-slider-on);
49
- }
50
-
51
- input:checked + .slider:before {
52
- -webkit-transform: translateX(36px);
53
- -ms-transform: translateX(36px);
54
- transform: translateX(36px);
55
- }
56
-
57
- /* Rounded sliders */
58
-
59
- .slider.round {
60
- border-radius: 34px;
61
- }
62
-
63
- .slider.round:before {
64
- border-radius: 50%;
65
- }
66
-
67
- .slider:after {
68
- content: "Off";
69
- color: var(--flag-bool-slider-remaining);
70
- display: block;
71
- position: absolute;
72
- transform: translate(-14%, -50%);
73
- top: 50%;
74
- left: 50%;
75
- font-size: 10px;
76
- font-family: Verdana, sans-serif;
77
- }
78
7
 
79
- input:checked + .slider:after {
80
- content: "On";
81
- transform: translate(-91%, -50%);
8
+ input {
9
+ display: none;
10
+
11
+ &:checked + .slider {
12
+ background-color: var(--flag-bool-slider-on);
13
+
14
+ &:before {
15
+ transform: translateX(36px);
16
+ }
17
+
18
+ &:after {
19
+ content: "On";
20
+ padding-left: 0;
21
+ padding-right: 12px;
22
+ }
23
+ }
24
+ }
25
+
26
+ .slider {
27
+ display: flex;
28
+ align-items: center;
29
+ justify-content: center;
30
+ cursor: pointer;
31
+ width: 66px;
32
+ height: 30px;
33
+ background-color: var(--flag-bool-slider-off);
34
+ transition: background-color 0.4s;
35
+ border-radius: 34px;
36
+ position: relative; /* Only needed for the ::before knob positioning */
37
+
38
+ &:before {
39
+ content: "";
40
+ position: absolute; /* Knob needs absolute for translateX animation */
41
+ left: 4px;
42
+ height: 22px;
43
+ width: 22px;
44
+ background-color: var(--flag-bool-slider-remaining);
45
+ transition: transform 0.4s;
46
+ border-radius: 50%;
47
+ }
48
+
49
+ &:after {
50
+ content: "Off";
51
+ color: var(--flag-bool-slider-remaining);
52
+ font-size: 10px;
53
+ font-family: Verdana, sans-serif;
54
+ padding-right: 0;
55
+ padding-left: 11px;
56
+ }
57
+ }
82
58
  }