@koobiq/components 18.10.0 → 18.12.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.
Files changed (162) hide show
  1. package/autocomplete/autocomplete-trigger.directive.d.ts +0 -1
  2. package/autocomplete/autocomplete.scss +2 -10
  3. package/button/button-tokens.scss +1 -1
  4. package/code-block/_code-block-theme.scss +35 -54
  5. package/code-block/code-block-highlight.d.ts +44 -0
  6. package/code-block/code-block-tokens.scss +7 -11
  7. package/code-block/code-block.d.ts +187 -0
  8. package/code-block/code-block.module.d.ts +2 -8
  9. package/code-block/code-block.scss +103 -127
  10. package/code-block/public-api.d.ts +3 -2
  11. package/code-block/types.d.ts +27 -0
  12. package/core/common-behaviors/error-state.d.ts +3 -3
  13. package/core/error/error-state-matcher.d.ts +3 -0
  14. package/core/locales/index.d.ts +1 -0
  15. package/core/locales/types.d.ts +11 -0
  16. package/core/pop-up/constants.d.ts +9 -0
  17. package/core/select/constants.d.ts +16 -4
  18. package/core/styles/theming/_scrollbar-theme.scss +2 -1
  19. package/esm2022/autocomplete/autocomplete-trigger.directive.mjs +7 -8
  20. package/esm2022/autocomplete/autocomplete.component.mjs +2 -2
  21. package/esm2022/button/button.component.mjs +2 -2
  22. package/esm2022/code-block/code-block-highlight.mjs +416 -0
  23. package/esm2022/code-block/code-block.mjs +395 -0
  24. package/esm2022/code-block/code-block.module.mjs +9 -30
  25. package/esm2022/code-block/public-api.mjs +4 -3
  26. package/esm2022/code-block/types.mjs +2 -0
  27. package/esm2022/core/common-behaviors/error-state.mjs +1 -1
  28. package/esm2022/core/error/error-state-matcher.mjs +15 -2
  29. package/esm2022/core/locales/en-US.mjs +1 -1
  30. package/esm2022/core/locales/es-LA.mjs +1 -1
  31. package/esm2022/core/locales/fa-IR.mjs +1 -1
  32. package/esm2022/core/locales/index.mjs +2 -1
  33. package/esm2022/core/locales/pt-BR.mjs +1 -1
  34. package/esm2022/core/locales/ru-RU.mjs +1 -1
  35. package/esm2022/core/locales/types.mjs +2 -0
  36. package/esm2022/core/locales/zh-CN.mjs +1 -1
  37. package/esm2022/core/pop-up/constants.mjs +6 -1
  38. package/esm2022/core/select/constants.mjs +17 -5
  39. package/esm2022/core/version.mjs +2 -2
  40. package/esm2022/datepicker/calendar-header.component.mjs +1 -1
  41. package/esm2022/file-upload/file-upload.mjs +40 -2
  42. package/esm2022/file-upload/multiple-file-upload.component.mjs +43 -47
  43. package/esm2022/file-upload/single-file-upload.component.mjs +41 -45
  44. package/esm2022/form-field/form-field.mjs +6 -6
  45. package/esm2022/form-field/hint.mjs +2 -2
  46. package/esm2022/form-field/password-hint.mjs +2 -2
  47. package/esm2022/loader-overlay/loader-overlay.component.mjs +6 -4
  48. package/esm2022/modal/modal.component.mjs +5 -3
  49. package/esm2022/modal/modal.service.mjs +6 -3
  50. package/esm2022/modal/modal.type.mjs +1 -1
  51. package/esm2022/modal/public-api.mjs +5 -5
  52. package/esm2022/scrollbar/scrollbar.directive.mjs +6 -3
  53. package/esm2022/select/select.component.mjs +22 -12
  54. package/esm2022/sidepanel/sidepanel-config.mjs +1 -1
  55. package/esm2022/sidepanel/sidepanel-container.component.mjs +6 -3
  56. package/esm2022/timezone/timezone-select.component.mjs +3 -1
  57. package/esm2022/toast/toast-container.component.mjs +3 -3
  58. package/esm2022/toast/toast.component.mjs +18 -9
  59. package/esm2022/toast/toast.module.mjs +14 -50
  60. package/esm2022/toast/toast.service.mjs +5 -2
  61. package/esm2022/tooltip/tooltip.component.mjs +5 -2
  62. package/esm2022/tree-select/tree-select.component.mjs +15 -40
  63. package/fesm2022/koobiq-components-autocomplete.mjs +9 -10
  64. package/fesm2022/koobiq-components-autocomplete.mjs.map +1 -1
  65. package/fesm2022/koobiq-components-button.mjs +2 -2
  66. package/fesm2022/koobiq-components-button.mjs.map +1 -1
  67. package/fesm2022/koobiq-components-code-block.mjs +378 -341
  68. package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
  69. package/fesm2022/koobiq-components-core.mjs +36 -7
  70. package/fesm2022/koobiq-components-core.mjs.map +1 -1
  71. package/fesm2022/koobiq-components-datepicker.mjs +1 -1
  72. package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
  73. package/fesm2022/koobiq-components-file-upload.mjs +107 -76
  74. package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
  75. package/fesm2022/koobiq-components-form-field.mjs +9 -9
  76. package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
  77. package/fesm2022/koobiq-components-loader-overlay.mjs +5 -3
  78. package/fesm2022/koobiq-components-loader-overlay.mjs.map +1 -1
  79. package/fesm2022/koobiq-components-modal.mjs +10 -5
  80. package/fesm2022/koobiq-components-modal.mjs.map +1 -1
  81. package/fesm2022/koobiq-components-scrollbar.mjs +5 -2
  82. package/fesm2022/koobiq-components-scrollbar.mjs.map +1 -1
  83. package/fesm2022/koobiq-components-select.mjs +21 -11
  84. package/fesm2022/koobiq-components-select.mjs.map +1 -1
  85. package/fesm2022/koobiq-components-sidepanel.mjs +5 -2
  86. package/fesm2022/koobiq-components-sidepanel.mjs.map +1 -1
  87. package/fesm2022/koobiq-components-timezone.mjs +2 -0
  88. package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
  89. package/fesm2022/koobiq-components-toast.mjs +138 -161
  90. package/fesm2022/koobiq-components-toast.mjs.map +1 -1
  91. package/fesm2022/koobiq-components-tooltip.mjs +4 -1
  92. package/fesm2022/koobiq-components-tooltip.mjs.map +1 -1
  93. package/fesm2022/koobiq-components-tree-select.mjs +14 -39
  94. package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
  95. package/file-upload/_file-upload-theme.scss +16 -2
  96. package/file-upload/file-upload.d.ts +29 -2
  97. package/file-upload/multiple-file-upload.component.d.ts +18 -18
  98. package/file-upload/single-file-upload.component.d.ts +17 -16
  99. package/form-field/_hint-theme.scss +1 -1
  100. package/form-field/form-field.d.ts +1 -1
  101. package/form-field/form-field.scss +0 -1
  102. package/loader-overlay/loader-overlay.component.d.ts +1 -0
  103. package/modal/modal.component.d.ts +4 -0
  104. package/modal/modal.service.d.ts +4 -0
  105. package/modal/modal.type.d.ts +6 -1
  106. package/modal/public-api.d.ts +4 -4
  107. package/package.json +4 -4
  108. package/prebuilt-themes/dark-theme.css +1 -1
  109. package/prebuilt-themes/light-theme.css +1 -1
  110. package/prebuilt-themes/theme.css +1 -1
  111. package/schematics/ng-add/index.js +3 -4
  112. package/scrollbar/scrollbar.directive.d.ts +2 -1
  113. package/select/select.component.d.ts +15 -3
  114. package/sidepanel/sidepanel-config.d.ts +2 -0
  115. package/sidepanel/sidepanel-container.component.d.ts +1 -0
  116. package/timezone/timezone-select.component.d.ts +3 -1
  117. package/toast/toast-container.component.d.ts +1 -1
  118. package/toast/toast.component.d.ts +2 -2
  119. package/toast/toast.module.d.ts +1 -7
  120. package/toast/toast.service.d.ts +1 -1
  121. package/tooltip/tooltip.component.d.ts +2 -1
  122. package/tree-select/_tree-select-theme.scss +4 -0
  123. package/tree-select/tree-select.component.d.ts +1 -12
  124. package/accordion/README.md +0 -0
  125. package/alert/README.md +0 -0
  126. package/autocomplete/README.md +0 -0
  127. package/badge/README.md +0 -0
  128. package/button/README.md +0 -0
  129. package/button-toggle/README.md +0 -0
  130. package/checkbox/README.md +0 -1
  131. package/code-block/README.md +0 -36
  132. package/code-block/actionbar.component.d.ts +0 -32
  133. package/code-block/actionbar.component.scss +0 -43
  134. package/code-block/code-block-content.d.ts +0 -28
  135. package/code-block/code-block.component.d.ts +0 -98
  136. package/code-block/code-block.types.d.ts +0 -36
  137. package/datepicker/README.md +0 -0
  138. package/divider/README.md +0 -0
  139. package/dl/README.md +0 -0
  140. package/empty-state/README.md +0 -0
  141. package/esm2022/code-block/actionbar.component.mjs +0 -90
  142. package/esm2022/code-block/code-block-content.mjs +0 -393
  143. package/esm2022/code-block/code-block.component.mjs +0 -283
  144. package/esm2022/code-block/code-block.types.mjs +0 -5
  145. package/file-upload/README.md +0 -0
  146. package/form-field/README.md +0 -0
  147. package/icon/README.md +0 -0
  148. package/link/README.md +0 -0
  149. package/list/README.md +0 -0
  150. package/loader-overlay/README.md +0 -0
  151. package/modal/README.md +0 -35
  152. package/navbar/README.md +0 -42
  153. package/popover/README.md +0 -36
  154. package/progress-bar/README.md +0 -0
  155. package/progress-spinner/README.md +0 -0
  156. package/risk-level/README.md +0 -0
  157. package/table/README.md +0 -0
  158. package/tags/README.md +0 -0
  159. package/textarea/README.md +0 -0
  160. package/timepicker/README.md +0 -0
  161. package/timezone/README.md +0 -0
  162. package/tree-select/README.md +0 -0
@@ -1,71 +1,96 @@
1
- @use '../core/styles/common/tokens' as *;
2
-
3
- @use './code-block-theme' as *;
4
-
5
- $border-radius: var(--kbq-code-block-size-container-border-radius);
6
- $border-width: var(--kbq-code-block-size-container-border-width);
1
+ @use './code-block-theme' as theme;
7
2
 
8
3
  .kbq-code-block {
9
- display: block;
4
+ display: flex;
5
+ flex-direction: column;
10
6
  position: relative;
11
7
  overflow: hidden;
12
-
8
+ border-width: var(--kbq-code-block-size-container-border-width);
9
+ border-style: solid;
10
+ border-radius: var(--kbq-code-block-size-container-border-radius);
13
11
  box-sizing: border-box;
14
-
15
12
  hyphens: none;
16
13
  -ms-hyphens: none;
17
14
  -moz-hyphens: none;
18
15
  -webkit-hyphens: none;
19
16
 
20
- border-radius: $border-radius;
21
- border-width: 0;
17
+ .kbq-code-block__header {
18
+ display: flex;
19
+ align-items: center;
20
+ padding: var(--kbq-size-s) var(--kbq-size-m);
22
21
 
23
- .kbq-tab-header {
24
- // 4 buttons + margin
25
- $buttons-margin: calc(32 * 4) + 24px;
22
+ .kbq-code-block__header-tabs {
23
+ overflow: hidden;
24
+ flex-grow: 1;
25
+ }
26
+ }
26
27
 
27
- padding: calc(var(--kbq-code-block-size-header-padding-vertical) - $border-width)
28
- kbq-sum-series-css-variables([code-block-size-header-padding-right, $buttons-margin])
29
- var(--kbq-code-block-size-header-padding-vertical) var(--kbq-code-block-size-header-padding-left);
28
+ .kbq-code-block__actionbar {
29
+ display: flex;
30
+ justify-content: right;
31
+ align-items: center;
30
32
 
31
- border-width: $border-width $border-width 0 $border-width;
32
- border-style: solid;
33
- border-radius: $border-radius $border-radius 0 0;
34
- }
33
+ z-index: 1;
35
34
 
36
- &:has(.kbq-code-block__show-more) {
37
- .kbq-code-block__code {
38
- & > code {
39
- padding-bottom: var(--kbq-size-3xl) !important;
40
- overflow-x: scroll;
41
- }
35
+ .kbq-code-block__actionbar__button-stack {
36
+ display: flex;
37
+ gap: var(--kbq-code-block-size-actionbar-content-gap-horizontal);
42
38
  }
43
39
 
44
- &:has(.kbq-code-block__show-more_collapsed) {
40
+ .kbq-code-block__actionbar__fade-gradient {
41
+ align-self: stretch;
42
+ width: var(--kbq-code-block-size-actionbar-fade-gradient-width);
43
+ }
44
+ }
45
+
46
+ &:has(.kbq-code-block__view-all) {
47
+ .kbq-code-block__content {
45
48
  .kbq-code-block__code {
46
- & > code {
47
- overflow-x: hidden;
48
- }
49
+ padding-bottom: var(--kbq-size-3xl) !important;
49
50
  }
50
51
  }
51
52
  }
52
53
 
53
- .kbq-code-block__code {
54
- > code {
54
+ .kbq-code-block__content {
55
+ flex-grow: 1;
56
+ margin: 0;
57
+ flex-direction: column;
58
+ border-width: var(--kbq-code-block-size-container-border-width);
59
+ border-style: solid;
60
+ border-radius: var(--kbq-code-block-size-container-border-radius);
61
+
62
+ .kbq-code-block__code {
63
+ tab-size: var(--kbq-code-block-tab-size);
55
64
  padding: var(--kbq-code-block-size-with-header-content-padding-top)
56
65
  var(--kbq-code-block-size-with-header-content-padding-horizontal)
57
66
  var(--kbq-code-block-size-with-header-content-padding-bottom)
58
67
  var(--kbq-code-block-size-with-header-content-padding-horizontal);
59
68
 
60
- border-radius: $border-radius;
61
-
62
69
  &:focus-visible {
63
70
  outline: none;
64
71
  }
65
72
  }
66
73
 
74
+ .hljs {
75
+ display: block;
76
+ }
77
+
67
78
  .hljs-ln-numbers {
68
79
  padding-right: var(--kbq-code-block-size-with-header-content-content-gap-horizontal);
80
+ vertical-align: baseline;
81
+ text-align: right;
82
+ }
83
+
84
+ .hljs-ln {
85
+ border-collapse: unset;
86
+
87
+ .hljs {
88
+ padding: 0;
89
+ }
90
+ }
91
+
92
+ .hljs-ln-n:before {
93
+ white-space: nowrap;
69
94
  }
70
95
  }
71
96
 
@@ -73,40 +98,36 @@ $border-width: var(--kbq-code-block-size-container-border-width);
73
98
  display: none;
74
99
  }
75
100
 
76
- &.kbq-code-block_single-file {
77
- .kbq-tab-label {
78
- &:before {
79
- content: none;
80
- }
81
-
82
- &:hover {
83
- background: transparent !important;
84
- }
101
+ &.kbq-code-block_soft-wrap {
102
+ .kbq-code-block__code {
103
+ white-space: pre-wrap;
85
104
  }
86
105
  }
87
106
 
88
- &:not(.kbq-code-block_no-header) {
89
- .kbq-tab-body__wrapper {
90
- border-top-width: 0;
91
- // actionbar can be visible when positioned in the header
92
- overflow: visible;
107
+ &.kbq-code-block_view-all {
108
+ .kbq-code-block__content {
109
+ max-height: unset;
110
+ overflow: auto;
93
111
  }
94
112
  }
95
113
 
96
- &.kbq-code-block_no-header {
97
- .kbq-tab-header {
98
- display: none;
114
+ &.kbq-code-block_hide-tabs {
115
+ .kbq-code-block__header {
116
+ padding: 0;
99
117
  }
100
118
 
101
- .kbq-tab-body__wrapper {
102
- border-width: $border-width;
103
- border-radius: $border-radius;
119
+ .kbq-code-block__actionbar {
120
+ display: none;
121
+ position: absolute;
122
+ top: 0;
123
+ right: 0;
124
+ padding: var(--kbq-size-s) var(--kbq-size-m);
104
125
  }
105
126
 
106
- .kbq-code-block__code {
127
+ .kbq-code-block__content {
107
128
  position: relative;
108
129
 
109
- & > code {
130
+ .kbq-code-block__code {
110
131
  padding: var(--kbq-code-block-size-no-header-content-padding-vertical)
111
132
  var(--kbq-code-block-size-no-header-content-padding-horizontal);
112
133
  }
@@ -117,84 +138,39 @@ $border-width: var(--kbq-code-block-size-container-border-width);
117
138
  }
118
139
  }
119
140
 
120
- &:not(:has(.kbq-code-block__show-more)) {
121
- .kbq-code-block__code {
122
- overflow-y: auto;
123
- }
124
- }
125
-
126
- pre {
127
- margin: 0;
128
- }
129
-
130
- .kbq-tab-body__wrapper {
131
- flex-direction: column;
132
- border-width: $border-width;
133
- border-style: solid;
134
- border-radius: 0 0 $border-radius $border-radius;
135
- }
136
-
137
- .kbq-tab-body.kbq-tab-body__active {
138
- position: unset;
139
- }
140
- }
141
-
142
- .kbq-code-block__code {
143
- overflow-y: hidden;
144
-
145
- &.kbq-code-block__code_view-all {
146
- max-height: unset;
147
- overflow-y: auto;
148
- }
149
-
150
- &.kbq-code-block__code_soft-wrap {
151
- white-space: pre-wrap;
141
+ &.kbq-code-block_show-actionbar .kbq-code-block__actionbar {
142
+ display: flex;
152
143
  }
153
144
 
154
- .hljs-ln {
155
- border-collapse: unset;
156
-
157
- .hljs {
158
- padding: 0;
145
+ &:not(:has(.kbq-code-block__view-all)) {
146
+ .kbq-code-block__content {
147
+ overflow: auto;
159
148
  }
160
149
  }
161
150
 
162
- .hljs-ln-numbers {
163
- vertical-align: baseline;
164
- text-align: right;
165
- }
166
-
167
- .hljs-ln-n:before {
168
- white-space: nowrap;
169
- }
170
- }
171
-
172
- .kbq-code-block__show-more {
173
- display: flex;
174
- justify-content: center;
175
-
176
- width: 100%;
177
-
178
- position: absolute;
179
- bottom: 0;
180
- border-radius: $border-radius;
181
-
182
- &.kbq-code-block__show-more_collapsed {
183
- padding-top: var(--kbq-code-block-size-collapse-collapsed-padding-top);
184
-
185
- padding-bottom: var(--kbq-code-block-size-collapse-collapsed-padding-bottom);
186
- }
151
+ .kbq-code-block__view-all {
152
+ display: flex;
153
+ justify-content: center;
154
+ width: 100%;
155
+ position: absolute;
156
+ bottom: 0;
157
+ border-radius: var(--kbq-code-block-size-container-border-radius);
187
158
 
188
- &.kbq-code-block__show-more_expanded {
189
- padding-top: var(--kbq-code-block-size-collapse-expanded-padding-top);
159
+ .kbq-code-block__view-all__wrapper {
160
+ border-radius: var(--kbq-size-border-radius);
161
+ }
190
162
 
191
- margin-bottom: var(--kbq-code-block-size-collapse-expanded-padding-bottom);
192
- }
163
+ &.kbq-code-block__view-all_collapsed {
164
+ padding-top: var(--kbq-code-block-size-collapse-collapsed-padding-top);
165
+ padding-bottom: var(--kbq-code-block-size-collapse-collapsed-padding-bottom);
166
+ }
193
167
 
194
- .bg-wrapper {
195
- border-radius: var(--kbq-size-border-radius);
168
+ &.kbq-code-block__view-all_expanded {
169
+ padding-top: var(--kbq-code-block-size-collapse-expanded-padding-top);
170
+ margin-bottom: var(--kbq-code-block-size-collapse-expanded-padding-bottom);
171
+ }
196
172
  }
197
173
  }
198
174
 
199
- @include kbq-code-block-theme();
200
- @include kbq-code-block-typography();
175
+ @include theme.kbq-code-block-theme();
176
+ @include theme.kbq-code-block-typography();
@@ -1,3 +1,4 @@
1
- export * from './code-block.component';
1
+ export * from './code-block';
2
+ export * from './code-block-highlight';
2
3
  export * from './code-block.module';
3
- export * from './code-block.types';
4
+ export * from './types';
@@ -0,0 +1,27 @@
1
+ /** Code block file object. */
2
+ export type KbqCodeBlockFile = {
3
+ /**
4
+ * Code content.
5
+ */
6
+ content: string;
7
+ /**
8
+ * File name, which will be displayed in UI and when downloading.
9
+ * If not provided, will be set to `KBQ_CODE_BLOCK_FALLBACK_FILE_NAME`.
10
+ */
11
+ filename?: string;
12
+ /**
13
+ * File language, requires for correct syntax highlighting.
14
+ * If not provided or invalid, will be set to `KBQ_CODE_BLOCK_FALLBACK_FILE_LANGUAGE`.
15
+ *
16
+ * List of supported languages:
17
+ * @link https://highlightjs.readthedocs.io/en/stable/supported-languages.html
18
+ */
19
+ language?: string;
20
+ /**
21
+ * Link to the file, which will be opened in a new window.
22
+ * Adds `openExternalSystem` button.
23
+ */
24
+ link?: string;
25
+ };
26
+ /** @deprecated Will be removed in next major release, use `KbqCodeBlockFile` instead. */
27
+ export type KbqCodeFile = KbqCodeBlockFile;
@@ -15,10 +15,10 @@ export interface CanUpdateErrorState {
15
15
  export type CanUpdateErrorStateCtor = Constructor<CanUpdateErrorState>;
16
16
  /** @docs-private */
17
17
  export interface HasErrorState {
18
- parentFormGroup: FormGroupDirective;
19
- parentForm: NgForm;
18
+ parentFormGroup: FormGroupDirective | null;
19
+ parentForm: NgForm | null;
20
20
  defaultErrorStateMatcher: ErrorStateMatcher;
21
- ngControl: NgControl;
21
+ ngControl: NgControl | null;
22
22
  stateChanges: Subject<void>;
23
23
  }
24
24
  /**
@@ -1,5 +1,8 @@
1
+ import { Provider, Type } from '@angular/core';
1
2
  import { AbstractControl, FormGroupDirective, NgForm } from '@angular/forms';
2
3
  import * as i0 from "@angular/core";
4
+ /** Utility provider for `ErrorStateMatcher`. */
5
+ export declare const kbqErrorStateMatcherProvider: (errorStateMatcher: Type<ErrorStateMatcher> | ErrorStateMatcher) => Provider;
3
6
  /**
4
7
  * Error state matcher that matches when a control is invalid and form is submitted.
5
8
  * Requires use FormGroupDirective or NgForm.
@@ -7,3 +7,4 @@ export * from './zh-CN';
7
7
  export * from './formatters';
8
8
  export * from './locale-service';
9
9
  export * from './locale-service.module';
10
+ export * from './types';
@@ -0,0 +1,11 @@
1
+ /** Locale configuration for `KbqCodeBlockModule`. */
2
+ export type KbqCodeBlockLocaleConfiguration = {
3
+ softWrapOnTooltip: string;
4
+ softWrapOffTooltip: string;
5
+ downloadTooltip: string;
6
+ copiedTooltip: string;
7
+ copyTooltip: string;
8
+ viewAllText: string;
9
+ viewLessText: string;
10
+ openExternalSystemTooltip: string;
11
+ };
@@ -1,3 +1,12 @@
1
+ import { InjectionToken } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ export interface KbqParentPopup {
4
+ closedStream: Observable<boolean>;
5
+ }
6
+ /**
7
+ * InjectionToken for providing component with popup. Used in select and tree-select for tooltip.
8
+ */
9
+ export declare const KBQ_PARENT_POPUP: InjectionToken<KbqParentPopup>;
1
10
  export declare enum PopUpPlacements {
2
11
  Top = "top",
3
12
  TopLeft = "topLeft",
@@ -1,10 +1,22 @@
1
1
  import { Overlay, RepositionScrollStrategy, ScrollStrategy } from '@angular/cdk/overlay';
2
2
  import { InjectionToken } from '@angular/core';
3
- /** The max height of the select's overlay panel */
3
+ /**
4
+ * @TODO: should be removed within refactoring (#DS-3298)
5
+ * The max height of the select's overlay panel
6
+ * @deprecated
7
+ */
4
8
  export declare const SELECT_PANEL_MAX_HEIGHT = 224;
5
- /** The panel's padding on the x-axis */
6
- export declare const SELECT_PANEL_PADDING_X = 1;
7
- /** The panel's x axis padding if it is indented (e.g. there is an option group). */
9
+ /**
10
+ * @TODO: should be removed within refactoring (#DS-3298)
11
+ * The panel's padding on the x-axis
12
+ * @deprecated
13
+ */
14
+ export declare const SELECT_PANEL_PADDING_X = 0;
15
+ /**
16
+ * @TODO: should be removed within refactoring (#DS-3298)
17
+ * The panel's x-axis padding if it is indented (e.g. there is an option group).
18
+ * @deprecated
19
+ */
8
20
  export declare const SELECT_PANEL_INDENT_PADDING_X: number;
9
21
  /**
10
22
  * The select panel will only "fit" inside the viewport if it is positioned at
@@ -58,7 +58,8 @@
58
58
  scrollbar-color: var(--kbq-scrollbar-thumb-default-background) transparent;
59
59
  }
60
60
 
61
- // webkit
61
+ &::-webkit-scrollbar-track,
62
+ &::-webkit-scrollbar-corner,
62
63
  &::-webkit-scrollbar,
63
64
  ::-webkit-scrollbar {
64
65
  background-color: transparent;