@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.
- package/autocomplete/autocomplete-trigger.directive.d.ts +0 -1
- package/autocomplete/autocomplete.scss +2 -10
- package/button/button-tokens.scss +1 -1
- package/code-block/_code-block-theme.scss +35 -54
- package/code-block/code-block-highlight.d.ts +44 -0
- package/code-block/code-block-tokens.scss +7 -11
- package/code-block/code-block.d.ts +187 -0
- package/code-block/code-block.module.d.ts +2 -8
- package/code-block/code-block.scss +103 -127
- package/code-block/public-api.d.ts +3 -2
- package/code-block/types.d.ts +27 -0
- package/core/common-behaviors/error-state.d.ts +3 -3
- package/core/error/error-state-matcher.d.ts +3 -0
- package/core/locales/index.d.ts +1 -0
- package/core/locales/types.d.ts +11 -0
- package/core/pop-up/constants.d.ts +9 -0
- package/core/select/constants.d.ts +16 -4
- package/core/styles/theming/_scrollbar-theme.scss +2 -1
- package/esm2022/autocomplete/autocomplete-trigger.directive.mjs +7 -8
- package/esm2022/autocomplete/autocomplete.component.mjs +2 -2
- package/esm2022/button/button.component.mjs +2 -2
- package/esm2022/code-block/code-block-highlight.mjs +416 -0
- package/esm2022/code-block/code-block.mjs +395 -0
- package/esm2022/code-block/code-block.module.mjs +9 -30
- package/esm2022/code-block/public-api.mjs +4 -3
- package/esm2022/code-block/types.mjs +2 -0
- package/esm2022/core/common-behaviors/error-state.mjs +1 -1
- package/esm2022/core/error/error-state-matcher.mjs +15 -2
- package/esm2022/core/locales/en-US.mjs +1 -1
- package/esm2022/core/locales/es-LA.mjs +1 -1
- package/esm2022/core/locales/fa-IR.mjs +1 -1
- package/esm2022/core/locales/index.mjs +2 -1
- package/esm2022/core/locales/pt-BR.mjs +1 -1
- package/esm2022/core/locales/ru-RU.mjs +1 -1
- package/esm2022/core/locales/types.mjs +2 -0
- package/esm2022/core/locales/zh-CN.mjs +1 -1
- package/esm2022/core/pop-up/constants.mjs +6 -1
- package/esm2022/core/select/constants.mjs +17 -5
- package/esm2022/core/version.mjs +2 -2
- package/esm2022/datepicker/calendar-header.component.mjs +1 -1
- package/esm2022/file-upload/file-upload.mjs +40 -2
- package/esm2022/file-upload/multiple-file-upload.component.mjs +43 -47
- package/esm2022/file-upload/single-file-upload.component.mjs +41 -45
- package/esm2022/form-field/form-field.mjs +6 -6
- package/esm2022/form-field/hint.mjs +2 -2
- package/esm2022/form-field/password-hint.mjs +2 -2
- package/esm2022/loader-overlay/loader-overlay.component.mjs +6 -4
- package/esm2022/modal/modal.component.mjs +5 -3
- package/esm2022/modal/modal.service.mjs +6 -3
- package/esm2022/modal/modal.type.mjs +1 -1
- package/esm2022/modal/public-api.mjs +5 -5
- package/esm2022/scrollbar/scrollbar.directive.mjs +6 -3
- package/esm2022/select/select.component.mjs +22 -12
- package/esm2022/sidepanel/sidepanel-config.mjs +1 -1
- package/esm2022/sidepanel/sidepanel-container.component.mjs +6 -3
- package/esm2022/timezone/timezone-select.component.mjs +3 -1
- package/esm2022/toast/toast-container.component.mjs +3 -3
- package/esm2022/toast/toast.component.mjs +18 -9
- package/esm2022/toast/toast.module.mjs +14 -50
- package/esm2022/toast/toast.service.mjs +5 -2
- package/esm2022/tooltip/tooltip.component.mjs +5 -2
- package/esm2022/tree-select/tree-select.component.mjs +15 -40
- package/fesm2022/koobiq-components-autocomplete.mjs +9 -10
- package/fesm2022/koobiq-components-autocomplete.mjs.map +1 -1
- package/fesm2022/koobiq-components-button.mjs +2 -2
- package/fesm2022/koobiq-components-button.mjs.map +1 -1
- package/fesm2022/koobiq-components-code-block.mjs +378 -341
- package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
- package/fesm2022/koobiq-components-core.mjs +36 -7
- package/fesm2022/koobiq-components-core.mjs.map +1 -1
- package/fesm2022/koobiq-components-datepicker.mjs +1 -1
- package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
- package/fesm2022/koobiq-components-file-upload.mjs +107 -76
- package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
- package/fesm2022/koobiq-components-form-field.mjs +9 -9
- package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
- package/fesm2022/koobiq-components-loader-overlay.mjs +5 -3
- package/fesm2022/koobiq-components-loader-overlay.mjs.map +1 -1
- package/fesm2022/koobiq-components-modal.mjs +10 -5
- package/fesm2022/koobiq-components-modal.mjs.map +1 -1
- package/fesm2022/koobiq-components-scrollbar.mjs +5 -2
- package/fesm2022/koobiq-components-scrollbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-select.mjs +21 -11
- package/fesm2022/koobiq-components-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-sidepanel.mjs +5 -2
- package/fesm2022/koobiq-components-sidepanel.mjs.map +1 -1
- package/fesm2022/koobiq-components-timezone.mjs +2 -0
- package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
- package/fesm2022/koobiq-components-toast.mjs +138 -161
- package/fesm2022/koobiq-components-toast.mjs.map +1 -1
- package/fesm2022/koobiq-components-tooltip.mjs +4 -1
- package/fesm2022/koobiq-components-tooltip.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree-select.mjs +14 -39
- package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
- package/file-upload/_file-upload-theme.scss +16 -2
- package/file-upload/file-upload.d.ts +29 -2
- package/file-upload/multiple-file-upload.component.d.ts +18 -18
- package/file-upload/single-file-upload.component.d.ts +17 -16
- package/form-field/_hint-theme.scss +1 -1
- package/form-field/form-field.d.ts +1 -1
- package/form-field/form-field.scss +0 -1
- package/loader-overlay/loader-overlay.component.d.ts +1 -0
- package/modal/modal.component.d.ts +4 -0
- package/modal/modal.service.d.ts +4 -0
- package/modal/modal.type.d.ts +6 -1
- package/modal/public-api.d.ts +4 -4
- package/package.json +4 -4
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/light-theme.css +1 -1
- package/prebuilt-themes/theme.css +1 -1
- package/schematics/ng-add/index.js +3 -4
- package/scrollbar/scrollbar.directive.d.ts +2 -1
- package/select/select.component.d.ts +15 -3
- package/sidepanel/sidepanel-config.d.ts +2 -0
- package/sidepanel/sidepanel-container.component.d.ts +1 -0
- package/timezone/timezone-select.component.d.ts +3 -1
- package/toast/toast-container.component.d.ts +1 -1
- package/toast/toast.component.d.ts +2 -2
- package/toast/toast.module.d.ts +1 -7
- package/toast/toast.service.d.ts +1 -1
- package/tooltip/tooltip.component.d.ts +2 -1
- package/tree-select/_tree-select-theme.scss +4 -0
- package/tree-select/tree-select.component.d.ts +1 -12
- package/accordion/README.md +0 -0
- package/alert/README.md +0 -0
- package/autocomplete/README.md +0 -0
- package/badge/README.md +0 -0
- package/button/README.md +0 -0
- package/button-toggle/README.md +0 -0
- package/checkbox/README.md +0 -1
- package/code-block/README.md +0 -36
- package/code-block/actionbar.component.d.ts +0 -32
- package/code-block/actionbar.component.scss +0 -43
- package/code-block/code-block-content.d.ts +0 -28
- package/code-block/code-block.component.d.ts +0 -98
- package/code-block/code-block.types.d.ts +0 -36
- package/datepicker/README.md +0 -0
- package/divider/README.md +0 -0
- package/dl/README.md +0 -0
- package/empty-state/README.md +0 -0
- package/esm2022/code-block/actionbar.component.mjs +0 -90
- package/esm2022/code-block/code-block-content.mjs +0 -393
- package/esm2022/code-block/code-block.component.mjs +0 -283
- package/esm2022/code-block/code-block.types.mjs +0 -5
- package/file-upload/README.md +0 -0
- package/form-field/README.md +0 -0
- package/icon/README.md +0 -0
- package/link/README.md +0 -0
- package/list/README.md +0 -0
- package/loader-overlay/README.md +0 -0
- package/modal/README.md +0 -35
- package/navbar/README.md +0 -42
- package/popover/README.md +0 -36
- package/progress-bar/README.md +0 -0
- package/progress-spinner/README.md +0 -0
- package/risk-level/README.md +0 -0
- package/table/README.md +0 -0
- package/tags/README.md +0 -0
- package/textarea/README.md +0 -0
- package/timepicker/README.md +0 -0
- package/timezone/README.md +0 -0
- package/tree-select/README.md +0 -0
|
@@ -1,71 +1,96 @@
|
|
|
1
|
-
@use '
|
|
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:
|
|
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
|
-
|
|
21
|
-
|
|
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
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
.kbq-code-block__header-tabs {
|
|
23
|
+
overflow: hidden;
|
|
24
|
+
flex-grow: 1;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
26
27
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
.kbq-code-block__actionbar {
|
|
29
|
+
display: flex;
|
|
30
|
+
justify-content: right;
|
|
31
|
+
align-items: center;
|
|
30
32
|
|
|
31
|
-
|
|
32
|
-
border-style: solid;
|
|
33
|
-
border-radius: $border-radius $border-radius 0 0;
|
|
34
|
-
}
|
|
33
|
+
z-index: 1;
|
|
35
34
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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
|
-
|
|
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
|
-
|
|
47
|
-
overflow-x: hidden;
|
|
48
|
-
}
|
|
49
|
+
padding-bottom: var(--kbq-size-3xl) !important;
|
|
49
50
|
}
|
|
50
51
|
}
|
|
51
52
|
}
|
|
52
53
|
|
|
53
|
-
.kbq-code-
|
|
54
|
-
|
|
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-
|
|
77
|
-
.kbq-
|
|
78
|
-
|
|
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
|
-
|
|
89
|
-
.kbq-
|
|
90
|
-
|
|
91
|
-
|
|
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-
|
|
97
|
-
.kbq-
|
|
98
|
-
|
|
114
|
+
&.kbq-code-block_hide-tabs {
|
|
115
|
+
.kbq-code-block__header {
|
|
116
|
+
padding: 0;
|
|
99
117
|
}
|
|
100
118
|
|
|
101
|
-
.kbq-
|
|
102
|
-
|
|
103
|
-
|
|
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-
|
|
127
|
+
.kbq-code-block__content {
|
|
107
128
|
position: relative;
|
|
108
129
|
|
|
109
|
-
|
|
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
|
-
|
|
121
|
-
|
|
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
|
-
.
|
|
155
|
-
|
|
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
|
-
.
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
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
|
-
|
|
189
|
-
|
|
159
|
+
.kbq-code-block__view-all__wrapper {
|
|
160
|
+
border-radius: var(--kbq-size-border-radius);
|
|
161
|
+
}
|
|
190
162
|
|
|
191
|
-
|
|
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
|
-
|
|
195
|
-
|
|
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();
|
|
@@ -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.
|
package/core/locales/index.d.ts
CHANGED
|
@@ -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
|
-
/**
|
|
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
|
-
/**
|
|
6
|
-
|
|
7
|
-
|
|
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
|