@bryntum/grid-angular-thin 7.2.4 → 7.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/README.md +4 -4
- package/bundles/bryntum-grid-angular-thin.umd.js +761 -230
- package/bundles/bryntum-grid-angular-thin.umd.js.map +1 -1
- package/esm2015/lib/bryntum-a-i-filter-field.component.js +62 -14
- package/esm2015/lib/bryntum-checklist-filter-combo.component.js +62 -14
- package/esm2015/lib/bryntum-grid-base.component.js +78 -35
- package/esm2015/lib/bryntum-grid-chart-designer.component.js +61 -12
- package/esm2015/lib/bryntum-grid-field-filter-picker-group.component.js +65 -21
- package/esm2015/lib/bryntum-grid-field-filter-picker.component.js +65 -21
- package/esm2015/lib/bryntum-grid.component.js +78 -35
- package/esm2015/lib/bryntum-group-bar.component.js +61 -12
- package/esm2015/lib/bryntum-tree-combo.component.js +62 -14
- package/esm2015/lib/bryntum-tree-grid.component.js +78 -35
- package/esm2015/lib/grid.module.js +5 -4
- package/esm2015/lib/shadowdom.helper.js +82 -0
- package/fesm2015/bryntum-grid-angular-thin.js +738 -207
- package/fesm2015/bryntum-grid-angular-thin.js.map +1 -1
- package/lib/bryntum-a-i-filter-field.component.d.ts +87 -133
- package/lib/bryntum-checklist-filter-combo.component.d.ts +106 -166
- package/lib/bryntum-grid-base.component.d.ts +238 -303
- package/lib/bryntum-grid-chart-designer.component.d.ts +71 -108
- package/lib/bryntum-grid-field-filter-picker-group.component.d.ts +93 -143
- package/lib/bryntum-grid-field-filter-picker.component.d.ts +94 -145
- package/lib/bryntum-grid.component.d.ts +238 -303
- package/lib/bryntum-group-bar.component.d.ts +77 -118
- package/lib/bryntum-tree-combo.component.d.ts +107 -168
- package/lib/bryntum-tree-grid.component.d.ts +238 -303
- package/lib/grid.module.d.ts +2 -1
- package/lib/shadowdom.helper.d.ts +3 -0
- package/package.json +1 -1
- package/src/lib/bryntum-a-i-filter-field.component.ts +146 -141
- package/src/lib/bryntum-checklist-filter-combo.component.ts +166 -175
- package/src/lib/bryntum-grid-base.component.ts +275 -319
- package/src/lib/bryntum-grid-chart-designer.component.ts +126 -112
- package/src/lib/bryntum-grid-field-filter-picker-group.component.ts +152 -152
- package/src/lib/bryntum-grid-field-filter-picker.component.ts +152 -153
- package/src/lib/bryntum-grid.component.ts +275 -319
- package/src/lib/bryntum-group-bar.component.ts +132 -122
- package/src/lib/bryntum-theme-combo.component.ts +128 -0
- package/src/lib/bryntum-tree-combo.component.ts +166 -176
- package/src/lib/bryntum-tree-grid.component.ts +275 -319
- package/src/lib/grid.module.ts +2 -1
- package/src/lib/shadowdom.helper.ts +91 -0
|
@@ -7,24 +7,23 @@ import { Component, ElementRef, EventEmitter, Output, Input, SimpleChange, Simpl
|
|
|
7
7
|
|
|
8
8
|
import WrapperHelper from './wrapper.helper';
|
|
9
9
|
|
|
10
|
-
import { AlignSpec, Base, ChipViewConfig, CollectionCompareOperator, CollectionFilterConfig, Color, Combo,
|
|
10
|
+
import { AlignSpec, Base, ChipViewConfig, CollectionCompareOperator, CollectionFilterConfig, Color, Combo, DomConfig, Duration, DurationConfig, Field, FieldContainerConfig, FieldTriggerConfig, KeyMapConfig, List, ListConfig, MaskConfig, Model, ReactJSX, Rectangle, Scroller, Store, StoreConfig, TabConfig, TooltipConfig, VueConfig, Widget } from '@bryntum/core-thin';
|
|
11
11
|
import { GridContainerItemConfig, TreeCombo, TreeComboListeners } from '@bryntum/grid-thin';
|
|
12
12
|
|
|
13
|
-
import { StringHelper } from '@bryntum/core-thin';
|
|
13
|
+
import { DomHelper, StringHelper } from '@bryntum/core-thin';
|
|
14
|
+
import { initThemeInShadowRoots } from './shadowdom.helper';
|
|
14
15
|
|
|
15
16
|
export type BryntumTreeComboProps = {
|
|
16
17
|
// Configs
|
|
17
18
|
/**
|
|
18
19
|
* Element (or element id) to adopt as this Widget's encapsulating element. The widget's
|
|
19
20
|
* content will be placed inside this element.
|
|
20
|
-
* ...
|
|
21
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-adopt)
|
|
21
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-adopt)
|
|
22
22
|
*/
|
|
23
23
|
adopt ? : HTMLElement|string
|
|
24
24
|
/**
|
|
25
25
|
* *Only valid if this Widget is [floating](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-floating).*
|
|
26
|
-
* ...
|
|
27
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-align)
|
|
26
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-align)
|
|
28
27
|
*/
|
|
29
28
|
align ? : AlignSpec|string
|
|
30
29
|
/**
|
|
@@ -46,15 +45,13 @@ export type BryntumTreeComboProps = {
|
|
|
46
45
|
/**
|
|
47
46
|
* A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject
|
|
48
47
|
* into an element which will be linked using the `aria-describedby` attribute.
|
|
49
|
-
* ...
|
|
50
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-ariaDescription)
|
|
48
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-ariaDescription)
|
|
51
49
|
*/
|
|
52
50
|
ariaDescription ? : string
|
|
53
51
|
/**
|
|
54
52
|
* A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject as
|
|
55
53
|
* the `aria-label` attribute.
|
|
56
|
-
* ...
|
|
57
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-ariaLabel)
|
|
54
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-ariaLabel)
|
|
58
55
|
*/
|
|
59
56
|
ariaLabel ? : string
|
|
60
57
|
/**
|
|
@@ -77,20 +74,17 @@ export type BryntumTreeComboProps = {
|
|
|
77
74
|
/**
|
|
78
75
|
* An object where property names with a truthy value indicate which events should bubble up the ownership
|
|
79
76
|
* hierarchy when triggered.
|
|
80
|
-
* ...
|
|
81
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-bubbleEvents)
|
|
77
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-bubbleEvents)
|
|
82
78
|
*/
|
|
83
79
|
bubbleEvents ? : object
|
|
84
80
|
/**
|
|
85
81
|
* Enable caching of the last retrieved result until the timeout is reached.
|
|
86
|
-
* ...
|
|
87
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-cacheLastResult)
|
|
82
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-cacheLastResult)
|
|
88
83
|
*/
|
|
89
84
|
cacheLastResult ? : number|string|Duration|DurationConfig
|
|
90
85
|
/**
|
|
91
86
|
* Set to `false` to not call onXXX method names (e.g. `onShow`, `onClick`), as an easy way to listen for events.
|
|
92
|
-
* ...
|
|
93
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-callOnFunctions)
|
|
87
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-callOnFunctions)
|
|
94
88
|
*/
|
|
95
89
|
callOnFunctions ? : boolean
|
|
96
90
|
/**
|
|
@@ -100,8 +94,7 @@ export type BryntumTreeComboProps = {
|
|
|
100
94
|
/**
|
|
101
95
|
* By default, if an event handler throws an exception, the error propagates up the stack and the
|
|
102
96
|
* application state is undefined. Code which follows the event handler will *not* be executed.
|
|
103
|
-
* ...
|
|
104
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-catchEventHandlerExceptions)
|
|
97
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-catchEventHandlerExceptions)
|
|
105
98
|
*/
|
|
106
99
|
catchEventHandlerExceptions ? : boolean
|
|
107
100
|
/**
|
|
@@ -112,8 +105,7 @@ export type BryntumTreeComboProps = {
|
|
|
112
105
|
/**
|
|
113
106
|
* A config object to configure the [ChipView](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView) to display the
|
|
114
107
|
* selected value set when [multiSelect](https://bryntum.com/products/grid/docs/api/Core/widget/Combo#config-multiSelect) is `true`.
|
|
115
|
-
* ...
|
|
116
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-chipView)
|
|
108
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-chipView)
|
|
117
109
|
*/
|
|
118
110
|
chipView ? : ChipViewConfig
|
|
119
111
|
/**
|
|
@@ -138,15 +130,13 @@ export type BryntumTreeComboProps = {
|
|
|
138
130
|
* Custom CSS classes to add to element.
|
|
139
131
|
* May be specified as a space separated string, or as an object in which property names
|
|
140
132
|
* with truthy values are used as the class names:
|
|
141
|
-
* ...
|
|
142
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-cls)
|
|
133
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-cls)
|
|
143
134
|
*/
|
|
144
135
|
cls ? : string|object
|
|
145
136
|
/**
|
|
146
137
|
* Applies the specified color to the widget, by setting the `--b-primary` CSS variable in the widgets
|
|
147
138
|
* `style` block.
|
|
148
|
-
* ...
|
|
149
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-color)
|
|
139
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-color)
|
|
150
140
|
*/
|
|
151
141
|
color ? : Color
|
|
152
142
|
/**
|
|
@@ -163,15 +153,13 @@ export type BryntumTreeComboProps = {
|
|
|
163
153
|
* The configuration for additional items associated to this field. This is typically used to add contextual
|
|
164
154
|
* fields related to a [checkbox](https://bryntum.com/products/grid/docs/api/Core/widget/Checkbox) or [radio button](#Core/widget/Radio). See
|
|
165
155
|
* these classes for examples of nested fields.
|
|
166
|
-
* ...
|
|
167
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-container)
|
|
156
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-container)
|
|
168
157
|
*/
|
|
169
|
-
container ? : Record<string, GridContainerItemConfig>|GridContainerItemConfig[]|FieldContainerConfig
|
|
158
|
+
container ? : Record<string, GridContainerItemConfig>|GridContainerItemConfig[]|FieldContainerConfig
|
|
170
159
|
/**
|
|
171
160
|
* The config controls how the value of nested items are handled when a parent container gets or sets its
|
|
172
161
|
* [values](https://bryntum.com/products/grid/docs/api/Core/widget/Container#property-values).
|
|
173
|
-
* ...
|
|
174
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-containValues)
|
|
162
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-containValues)
|
|
175
163
|
* @param {Core.widget.Field} field Field instance
|
|
176
164
|
* @returns {boolean}
|
|
177
165
|
*/
|
|
@@ -180,16 +168,14 @@ export type BryntumTreeComboProps = {
|
|
|
180
168
|
* Custom CSS classes to add to the [contentElement](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#property-contentElement).
|
|
181
169
|
* May be specified as a space separated string, or as an object in which property names
|
|
182
170
|
* with truthy values are used as the class names:
|
|
183
|
-
* ...
|
|
184
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-contentElementCls)
|
|
171
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-contentElementCls)
|
|
185
172
|
*/
|
|
186
173
|
contentElementCls ? : string|object
|
|
187
174
|
/**
|
|
188
175
|
* If configured as `true`, this means that when an unmatched string is typed into the
|
|
189
176
|
* combo's input field, and <kbd>Enter</kbd>, or the [multiValueSeparator](https://bryntum.com/products/grid/docs/api/Core/widget/Combo#config-multiValueSeparator) is typed,
|
|
190
177
|
* a new record will be created using the typed string as the [displayField](https://bryntum.com/products/grid/docs/api/Core/widget/Combo#config-displayField).
|
|
191
|
-
* ...
|
|
192
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-createOnUnmatched)
|
|
178
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-createOnUnmatched)
|
|
193
179
|
* @param {string} name Record name
|
|
194
180
|
* @param {Core.widget.Combo} combo Combo instance
|
|
195
181
|
* @returns {Core.data.Model} New record
|
|
@@ -210,16 +196,15 @@ export type BryntumTreeComboProps = {
|
|
|
210
196
|
*/
|
|
211
197
|
defaultBindProperty ? : string
|
|
212
198
|
/**
|
|
213
|
-
* Check for CSS compatibility issues
|
|
214
|
-
*
|
|
215
|
-
* [
|
|
199
|
+
* Check for CSS compatibility and inclusion related issues and try to auto fix them. Performs the following
|
|
200
|
+
* checks:
|
|
201
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-detectCSSCompatibilityIssues)
|
|
216
202
|
*/
|
|
217
203
|
detectCSSCompatibilityIssues ? : boolean
|
|
218
204
|
/**
|
|
219
205
|
* Disable or enable the widget. It is similar to [readOnly](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-readOnly) except a disabled widget
|
|
220
206
|
* cannot be focused, uses a different rendition (usually greyish) and does not allow selecting its value.
|
|
221
|
-
* ...
|
|
222
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-disabled)
|
|
207
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-disabled)
|
|
223
208
|
*/
|
|
224
209
|
disabled ? : boolean|'inert'
|
|
225
210
|
/**
|
|
@@ -232,26 +217,23 @@ export type BryntumTreeComboProps = {
|
|
|
232
217
|
* @param {Core.widget.Combo} combo A reference to this Combo
|
|
233
218
|
* @returns {string,void}
|
|
234
219
|
*/
|
|
235
|
-
displayValueRenderer ? : (record: Model
|
|
220
|
+
displayValueRenderer ? : (record: Model, combo: Combo) => string|void
|
|
236
221
|
/**
|
|
237
222
|
* Controls the placement of this widget when it is added to a [panel's ](https://bryntum.com/products/grid/docs/api/Core/widget/Panel)
|
|
238
223
|
* [strips collection](https://bryntum.com/products/grid/docs/api/Core/widget/Panel#config-strips). Typical values for this config are `'top'`,
|
|
239
224
|
* `'bottom'`, `'left'`, or `'right'`, which cause the widget to be placed on that side of the panel's
|
|
240
225
|
* body. Such widgets are called "edge strips".
|
|
241
|
-
* ...
|
|
242
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-dock)
|
|
226
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-dock)
|
|
243
227
|
*/
|
|
244
228
|
dock ? : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object
|
|
245
229
|
/**
|
|
246
230
|
* *Only valid if this Widget is [floating](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-floating).*
|
|
247
231
|
* Set to `true` to be able to drag a widget freely on the page. Or set to an object with a ´handleSelector´
|
|
248
232
|
* property which controls when a drag should start.
|
|
249
|
-
* ...
|
|
250
|
-
*
|
|
233
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-draggable)
|
|
234
|
+
* @property {string} handleSelector CSS selector used to determine if drag can be started from a mouse-downed element inside the widget
|
|
251
235
|
*/
|
|
252
|
-
draggable ? : boolean|
|
|
253
|
-
handleSelector?: string
|
|
254
|
-
}
|
|
236
|
+
draggable ? : boolean|object
|
|
255
237
|
/**
|
|
256
238
|
* User can edit text in text field (otherwise only pick from attached picker)
|
|
257
239
|
*/
|
|
@@ -259,21 +241,18 @@ export type BryntumTreeComboProps = {
|
|
|
259
241
|
/**
|
|
260
242
|
* An object specifying attributes to assign to the root element of this widget.
|
|
261
243
|
* Set `null` value to attribute to remove it.
|
|
262
|
-
* ...
|
|
263
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-elementAttributes)
|
|
244
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-elementAttributes)
|
|
264
245
|
*/
|
|
265
246
|
elementAttributes ? : Record<string, string|null>
|
|
266
247
|
/**
|
|
267
248
|
* Text to display in the drop down when there are no items in the underlying store.
|
|
268
|
-
* ...
|
|
269
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-emptyText)
|
|
249
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-emptyText)
|
|
270
250
|
*/
|
|
271
251
|
emptyText ? : string
|
|
272
252
|
/**
|
|
273
253
|
* A function which creates an array of values for the [filterParamName](https://bryntum.com/products/grid/docs/api/Core/widget/Combo#config-filterParamName) to pass
|
|
274
254
|
* any filters to the server upon load.
|
|
275
|
-
* ...
|
|
276
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-encodeFilterParams)
|
|
255
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-encodeFilterParams)
|
|
277
256
|
* @param {object[]} filters filters
|
|
278
257
|
* @returns {object[]} array of values
|
|
279
258
|
*/
|
|
@@ -287,8 +266,7 @@ export type BryntumTreeComboProps = {
|
|
|
287
266
|
/**
|
|
288
267
|
* The name of an operator type as implemented in [operator](https://bryntum.com/products/grid/docs/api/Core/util/CollectionFilter#config-operator)
|
|
289
268
|
* to use when filtering the dropdown list based upon the typed value.
|
|
290
|
-
* ...
|
|
291
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-filterOperator)
|
|
269
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-filterOperator)
|
|
292
270
|
*/
|
|
293
271
|
filterOperator ? : CollectionCompareOperator
|
|
294
272
|
/**
|
|
@@ -329,8 +307,7 @@ export type BryntumTreeComboProps = {
|
|
|
329
307
|
hidden ? : boolean
|
|
330
308
|
/**
|
|
331
309
|
* *Only valid if this Widget is [floating](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-floating).*
|
|
332
|
-
* ...
|
|
333
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-hideAnimation)
|
|
310
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-hideAnimation)
|
|
334
311
|
*/
|
|
335
312
|
hideAnimation ? : boolean|object
|
|
336
313
|
/**
|
|
@@ -351,8 +328,7 @@ export type BryntumTreeComboProps = {
|
|
|
351
328
|
/**
|
|
352
329
|
* An optional string to display inside the input field as an overlay. This can be useful for displaying
|
|
353
330
|
* a field's units.
|
|
354
|
-
* ...
|
|
355
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-hint)
|
|
331
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-hint)
|
|
356
332
|
* @param {object} data A data object
|
|
357
333
|
* @param {Core.widget.Field} data.source A reference to the field instance
|
|
358
334
|
* @param {any} data.value The current value of the field
|
|
@@ -363,8 +339,7 @@ export type BryntumTreeComboProps = {
|
|
|
363
339
|
* This config is similar to [hint](https://bryntum.com/products/grid/docs/api/Core/widget/Field#config-hint) except that this config is used to display HTML content.
|
|
364
340
|
* Since this can allow malicious content to be executed, be sure not to include user-entered data or to
|
|
365
341
|
* encode such data (see [encodeHtml](https://bryntum.com/products/grid/docs/api/Core/helper/StringHelper#function-encodeHtml-static)).
|
|
366
|
-
* ...
|
|
367
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-hintHtml)
|
|
342
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-hintHtml)
|
|
368
343
|
* @param {object} data A data object
|
|
369
344
|
* @param {Core.widget.Field} data.source A reference to the field instance
|
|
370
345
|
* @param {any} data.value The current value of the field
|
|
@@ -377,23 +352,20 @@ export type BryntumTreeComboProps = {
|
|
|
377
352
|
id ? : string
|
|
378
353
|
/**
|
|
379
354
|
* Determines if the widgets read-only state should be controlled by its parent.
|
|
380
|
-
* ...
|
|
381
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-ignoreParentReadOnly)
|
|
355
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-ignoreParentReadOnly)
|
|
382
356
|
*/
|
|
383
357
|
ignoreParentReadOnly ? : boolean
|
|
384
358
|
/**
|
|
385
359
|
* Set this config to `true` to always display items horizontally along with this field. This assigns an
|
|
386
360
|
* [hbox](https://bryntum.com/products/grid/docs/api/Core/widget/layout/Box) as the [layout](#Core/widget/Container#config-layout) to the
|
|
387
361
|
* [container](https://bryntum.com/products/grid/docs/api/Core/widget/Field#config-container).
|
|
388
|
-
* ...
|
|
389
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-inline)
|
|
362
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-inline)
|
|
390
363
|
*/
|
|
391
364
|
inline ? : boolean
|
|
392
365
|
/**
|
|
393
366
|
* Configure this as `true` to render the dropdown list as a permanently visible list
|
|
394
367
|
* in the document flow immediately below the input area instead of as a popup.
|
|
395
|
-
* ...
|
|
396
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-inlinePicker)
|
|
368
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-inlinePicker)
|
|
397
369
|
*/
|
|
398
370
|
inlinePicker ? : boolean
|
|
399
371
|
/**
|
|
@@ -431,30 +403,26 @@ export type BryntumTreeComboProps = {
|
|
|
431
403
|
insertFirst ? : HTMLElement|string
|
|
432
404
|
/**
|
|
433
405
|
* Rows to display in the dropdown (list items).
|
|
434
|
-
* ...
|
|
435
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-items)
|
|
406
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-items)
|
|
436
407
|
*/
|
|
437
408
|
items ? : object[]|string[]|object
|
|
438
409
|
/**
|
|
439
410
|
* An object whose keys are the [key](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key) name
|
|
440
411
|
* and optional modifier prefixes: `'Ctrl+'`, `'Alt+'`, `'Meta+'`, and `'Shift+'` (case-insensitive). The values
|
|
441
412
|
* are the name of the instance method to call when the keystroke is received.
|
|
442
|
-
* ...
|
|
443
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-keyMap)
|
|
413
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-keyMap)
|
|
444
414
|
*/
|
|
445
415
|
keyMap ? : Record<string, KeyMapConfig>
|
|
446
416
|
/**
|
|
447
417
|
* The delay in milliseconds to wait after the last keystroke before triggering a change event.
|
|
448
418
|
* Set to 0 to not trigger change events from keystrokes (listen for input event instead to have
|
|
449
419
|
* immediate feedback, change will still be triggered on blur).
|
|
450
|
-
* ...
|
|
451
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-keyStrokeChangeDelay)
|
|
420
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-keyStrokeChangeDelay)
|
|
452
421
|
*/
|
|
453
422
|
keyStrokeChangeDelay ? : number
|
|
454
423
|
/**
|
|
455
424
|
* The delay in milliseconds to wait after the last keystroke before filtering the list.
|
|
456
|
-
* ...
|
|
457
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-keyStrokeFilterDelay)
|
|
425
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-keyStrokeFilterDelay)
|
|
458
426
|
*/
|
|
459
427
|
keyStrokeFilterDelay ? : number
|
|
460
428
|
/**
|
|
@@ -467,15 +435,15 @@ export type BryntumTreeComboProps = {
|
|
|
467
435
|
labelCls ? : string|object
|
|
468
436
|
/**
|
|
469
437
|
* Label position, either 'before' the field or 'above' the field
|
|
470
|
-
* ...
|
|
471
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-labelPosition)
|
|
438
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-labelPosition)
|
|
472
439
|
*/
|
|
473
440
|
labelPosition ? : 'before'|'above'|null
|
|
474
441
|
/**
|
|
475
442
|
* The labels to add either before or after the input field.
|
|
476
443
|
* Each label may have the following properties:
|
|
477
|
-
* ...
|
|
478
|
-
*
|
|
444
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-labels)
|
|
445
|
+
* @property {string} html Label text
|
|
446
|
+
* @property {'start','end'} align Which end of the file the label should go
|
|
479
447
|
*/
|
|
480
448
|
labels ? : object[]
|
|
481
449
|
/**
|
|
@@ -488,24 +456,21 @@ export type BryntumTreeComboProps = {
|
|
|
488
456
|
listCls ? : string
|
|
489
457
|
/**
|
|
490
458
|
* The listener set for this object.
|
|
491
|
-
* ...
|
|
492
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-listeners)
|
|
459
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-listeners)
|
|
493
460
|
*/
|
|
494
461
|
listeners ? : TreeComboListeners
|
|
495
462
|
/**
|
|
496
463
|
* Template string used to render the list items in the dropdown list
|
|
497
|
-
* ...
|
|
498
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-listItemTpl)
|
|
464
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-listItemTpl)
|
|
499
465
|
* @param {Core.data.Model} record The record representing the item being rendered
|
|
500
466
|
* @returns {string,void}
|
|
501
467
|
*/
|
|
502
|
-
listItemTpl ? : (record: Model
|
|
468
|
+
listItemTpl ? : (record: Model) => string|void
|
|
503
469
|
/**
|
|
504
470
|
* A class translations of which are used for translating this entity.
|
|
505
471
|
* This is often used when translations of an item are defined on its container class.
|
|
506
472
|
* For example:
|
|
507
|
-
* ...
|
|
508
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-localeClass)
|
|
473
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-localeClass)
|
|
509
474
|
*/
|
|
510
475
|
localeClass ? : typeof Base
|
|
511
476
|
/**
|
|
@@ -517,8 +482,7 @@ export type BryntumTreeComboProps = {
|
|
|
517
482
|
* In case there is a need to localize not typical value (not a String value or a field with re-defined setter/getter),
|
|
518
483
|
* you could use 'localeKey' meta configuration.
|
|
519
484
|
* Example:
|
|
520
|
-
* ...
|
|
521
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-localizableProperties)
|
|
485
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-localizableProperties)
|
|
522
486
|
*/
|
|
523
487
|
localizableProperties ? : string[]
|
|
524
488
|
/**
|
|
@@ -544,8 +508,7 @@ export type BryntumTreeComboProps = {
|
|
|
544
508
|
maxHeight ? : string|number
|
|
545
509
|
/**
|
|
546
510
|
* *Only valid if this Widget is [floating](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-floating).*
|
|
547
|
-
* ...
|
|
548
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-maximizeOnMobile)
|
|
511
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-maximizeOnMobile)
|
|
549
512
|
*/
|
|
550
513
|
maximizeOnMobile ? : number|string
|
|
551
514
|
/**
|
|
@@ -559,8 +522,7 @@ export type BryntumTreeComboProps = {
|
|
|
559
522
|
maxWidth ? : string|number
|
|
560
523
|
/**
|
|
561
524
|
* The minimum string length to trigger the filtering, only relevant when [editable](https://bryntum.com/products/grid/docs/api/Core/widget/Combo#config-editable) is `true`.
|
|
562
|
-
* ...
|
|
563
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-minChars)
|
|
525
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-minChars)
|
|
564
526
|
*/
|
|
565
527
|
minChars ? : number
|
|
566
528
|
/**
|
|
@@ -581,16 +543,13 @@ export type BryntumTreeComboProps = {
|
|
|
581
543
|
* When this is configured as `true` a [ResizeObserver](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver)
|
|
582
544
|
* is used to monitor this element for size changes caused by either style manipulation, or by CSS
|
|
583
545
|
* layout.
|
|
584
|
-
* ...
|
|
585
|
-
*
|
|
546
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-monitorResize)
|
|
547
|
+
* @property {boolean} immediate Set to `true` to receive resize notifications immediately.
|
|
586
548
|
*/
|
|
587
|
-
monitorResize ? : boolean|
|
|
588
|
-
immediate?: boolean
|
|
589
|
-
}
|
|
549
|
+
monitorResize ? : boolean|object
|
|
590
550
|
/**
|
|
591
551
|
* Set to `true` to allow selection of multiple values from the dropdown list.
|
|
592
|
-
* ...
|
|
593
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-multiSelect)
|
|
552
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-multiSelect)
|
|
594
553
|
*/
|
|
595
554
|
multiSelect ? : boolean
|
|
596
555
|
/**
|
|
@@ -603,8 +562,7 @@ export type BryntumTreeComboProps = {
|
|
|
603
562
|
* Name of the field which is used as a key to get/set values from/to the field.
|
|
604
563
|
* Used prior to [ref](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-ref) and [id](#Core/widget/Widget#config-id) in
|
|
605
564
|
* [Container.values](https://bryntum.com/products/grid/docs/api/Core/widget/Container#property-values).
|
|
606
|
-
* ...
|
|
607
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-name)
|
|
565
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-name)
|
|
608
566
|
*/
|
|
609
567
|
name ? : string
|
|
610
568
|
/**
|
|
@@ -615,10 +573,9 @@ export type BryntumTreeComboProps = {
|
|
|
615
573
|
/**
|
|
616
574
|
* Configuration object for the [picker](https://bryntum.com/products/grid/docs/api/Core/widget/List) on initialization. Returns the
|
|
617
575
|
* [picker](https://bryntum.com/products/grid/docs/api/Core/widget/List) instance at runtime.
|
|
618
|
-
* ...
|
|
619
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-picker)
|
|
576
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-picker)
|
|
620
577
|
*/
|
|
621
|
-
picker ? : ListConfig
|
|
578
|
+
picker ? : ListConfig
|
|
622
579
|
/**
|
|
623
580
|
* The name of the element property to which the picker should size and align itself.
|
|
624
581
|
*/
|
|
@@ -635,8 +592,7 @@ export type BryntumTreeComboProps = {
|
|
|
635
592
|
* Set to `true` when a widget is rendered into another widget's [contentElement](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#property-contentElement), but must
|
|
636
593
|
* not participate in the standard layout of that widget, and must be positioned relatively to that
|
|
637
594
|
* widget's [contentElement](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#property-contentElement).
|
|
638
|
-
* ...
|
|
639
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-positioned)
|
|
595
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-positioned)
|
|
640
596
|
*/
|
|
641
597
|
positioned ? : boolean
|
|
642
598
|
/**
|
|
@@ -648,22 +604,19 @@ export type BryntumTreeComboProps = {
|
|
|
648
604
|
* Optionally a [Filter](https://bryntum.com/products/grid/docs/api/Core/util/CollectionFilter) config object which the combo should use for
|
|
649
605
|
* filtering using the typed value.
|
|
650
606
|
* This may use a `filterBy` property to test its `value` against any field in the passed record.
|
|
651
|
-
* ...
|
|
652
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-primaryFilter)
|
|
607
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-primaryFilter)
|
|
653
608
|
*/
|
|
654
609
|
primaryFilter ? : CollectionFilterConfig
|
|
655
610
|
/**
|
|
656
611
|
* Makes the field unmodifiable by user action. The input area is not editable, and triggers
|
|
657
612
|
* are unresponsive.
|
|
658
|
-
* ...
|
|
659
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-readOnly)
|
|
613
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-readOnly)
|
|
660
614
|
*/
|
|
661
615
|
readOnly ? : boolean
|
|
662
616
|
relayStoreEvents ? : boolean
|
|
663
617
|
/**
|
|
664
618
|
* Predefined style to use for the field. Possible values are:
|
|
665
|
-
* ...
|
|
666
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-rendition)
|
|
619
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-rendition)
|
|
667
620
|
*/
|
|
668
621
|
rendition ? : 'outlined'|'filled'|string
|
|
669
622
|
/**
|
|
@@ -682,23 +635,26 @@ export type BryntumTreeComboProps = {
|
|
|
682
635
|
* Configure as `true` to have the component display a translucent ripple when its
|
|
683
636
|
* [focusElement](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#property-focusElement), or [element](#Core/widget/Widget#property-element) is tapped <em>if the
|
|
684
637
|
* current theme supports ripples</em>. Out of the box, only the Material theme supports ripples.
|
|
685
|
-
* ...
|
|
686
|
-
* [
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
638
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-ripple)
|
|
639
|
+
* @property {string} [delegate] A CSS selector to filter which child elements trigger ripples. By default, the ripple is clipped to the triggering element.
|
|
640
|
+
* @property {string} [color] A CSS color name or specification.
|
|
641
|
+
* @property {number} [radius] The ending radius of the ripple. Note that it will be clipped by the target element by default.
|
|
642
|
+
* @property {string} [clip] A string which describes how to clip the ripple if it is not to be clipped to the default element. Either the property of the widget to use as the clipping element, or a selector to allow clipping to the closest matching ancestor to the target element.
|
|
643
|
+
*/
|
|
644
|
+
ripple ? : boolean|object
|
|
645
|
+
/**
|
|
646
|
+
* The ARIA role to apply to this widget's element. By default, this is set to `'presentation'` to avoid
|
|
647
|
+
* accidentally applying a role which may interfere with screen readers.
|
|
648
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-role)
|
|
649
|
+
*/
|
|
650
|
+
role ? : string
|
|
694
651
|
/**
|
|
695
652
|
* If you are rendering this widget to a shadow root inside a web component, set this config to the shadowRoot. If not inside a web component, set it to `document.body`
|
|
696
653
|
*/
|
|
697
654
|
rootElement ? : ShadowRoot|HTMLElement
|
|
698
655
|
/**
|
|
699
656
|
* This may be configured as `true` to make the widget's element use the `direction:rtl` style.
|
|
700
|
-
* ...
|
|
701
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-rtl)
|
|
657
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-rtl)
|
|
702
658
|
*/
|
|
703
659
|
rtl ? : boolean
|
|
704
660
|
/**
|
|
@@ -708,8 +664,7 @@ export type BryntumTreeComboProps = {
|
|
|
708
664
|
scrollAction ? : 'hide'|'realign'|null
|
|
709
665
|
/**
|
|
710
666
|
* *Only valid if this Widget is [floating](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-floating).*
|
|
711
|
-
* ...
|
|
712
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-showAnimation)
|
|
667
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-showAnimation)
|
|
713
668
|
*/
|
|
714
669
|
showAnimation ? : boolean|object
|
|
715
670
|
/**
|
|
@@ -742,8 +697,7 @@ export type BryntumTreeComboProps = {
|
|
|
742
697
|
* A configuration for the [tab](https://bryntum.com/products/grid/docs/api/Core/widget/Tab) created for this widget when it is placed in a
|
|
743
698
|
* [TabPanel](https://bryntum.com/products/grid/docs/api/Core/widget/TabPanel). For example, this config can be used to control the icon of the `tab` for
|
|
744
699
|
* this widget:
|
|
745
|
-
* ...
|
|
746
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-tab)
|
|
700
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-tab)
|
|
747
701
|
*/
|
|
748
702
|
tab ? : boolean|TabConfig
|
|
749
703
|
/**
|
|
@@ -751,14 +705,12 @@ export type BryntumTreeComboProps = {
|
|
|
751
705
|
* is equivalent to natural tab order, but is unnecessary for fields since they are naturally tabbable
|
|
752
706
|
* (i.e., accessible via the TAB key). Setting to `-1` disables tabbability but allows for focus to be set
|
|
753
707
|
* to the element programmatically.
|
|
754
|
-
* ...
|
|
755
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-tabIndex)
|
|
708
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-tabIndex)
|
|
756
709
|
*/
|
|
757
710
|
tabIndex ? : number
|
|
758
711
|
/**
|
|
759
712
|
* Text alignment: 'left', 'center' or 'right'. Also accepts direction neutral 'start' and 'end'.
|
|
760
|
-
* ...
|
|
761
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-textAlign)
|
|
713
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-textAlign)
|
|
762
714
|
*/
|
|
763
715
|
textAlign ? : 'left'|'center'|'right'|'start'|'end'
|
|
764
716
|
/**
|
|
@@ -767,30 +719,26 @@ export type BryntumTreeComboProps = {
|
|
|
767
719
|
title ? : string
|
|
768
720
|
/**
|
|
769
721
|
* Tooltip for the widget, either as a string or as a Tooltip config object.
|
|
770
|
-
* ...
|
|
771
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-tooltip)
|
|
722
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-tooltip)
|
|
772
723
|
*/
|
|
773
724
|
tooltip ? : string|TooltipConfig|null
|
|
774
725
|
/**
|
|
775
726
|
* How to query the store upon click of the expand trigger. Specify one of these values:
|
|
776
|
-
* ...
|
|
777
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-triggerAction)
|
|
727
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-triggerAction)
|
|
778
728
|
*/
|
|
779
729
|
triggerAction ? : 'all'|'last'|null
|
|
780
730
|
/**
|
|
781
731
|
* The triggers to add either before or after the input field. Each property name is the reference by which
|
|
782
732
|
* an instantiated Trigger Widget may be retrieved from the live `triggers` property.
|
|
783
|
-
* ...
|
|
784
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-triggers)
|
|
733
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-triggers)
|
|
785
734
|
*/
|
|
786
|
-
triggers ? : Record<string, FieldTriggerConfig
|
|
735
|
+
triggers ? : Record<string, FieldTriggerConfig>
|
|
787
736
|
type ? : 'treecombo'
|
|
788
737
|
/**
|
|
789
738
|
* Custom CSS class name suffixes to apply to the elements rendered by this widget. This may be specified
|
|
790
739
|
* as a space separated string, an array of strings, or as an object in which property names with truthy
|
|
791
740
|
* values are used as the class names.
|
|
792
|
-
* ...
|
|
793
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-ui)
|
|
741
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-ui)
|
|
794
742
|
*/
|
|
795
743
|
ui ? : string|object
|
|
796
744
|
/**
|
|
@@ -810,8 +758,7 @@ export type BryntumTreeComboProps = {
|
|
|
810
758
|
/**
|
|
811
759
|
* Field used for item value when populating from store. Setting this to `null` will
|
|
812
760
|
* yield the selected record as the Combo's [value](https://bryntum.com/products/grid/docs/api/Core/widget/Combo#property-value).
|
|
813
|
-
* ...
|
|
814
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-valueField)
|
|
761
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-valueField)
|
|
815
762
|
*/
|
|
816
763
|
valueField ? : string|null
|
|
817
764
|
/**
|
|
@@ -827,14 +774,12 @@ export type BryntumTreeComboProps = {
|
|
|
827
774
|
width ? : string|number
|
|
828
775
|
/**
|
|
829
776
|
* The x position for the widget.
|
|
830
|
-
* ...
|
|
831
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-x)
|
|
777
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-x)
|
|
832
778
|
*/
|
|
833
779
|
x ? : number
|
|
834
780
|
/**
|
|
835
781
|
* The y position for the widget.
|
|
836
|
-
* ...
|
|
837
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-y)
|
|
782
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-y)
|
|
838
783
|
*/
|
|
839
784
|
y ? : number
|
|
840
785
|
|
|
@@ -992,6 +937,7 @@ export class BryntumTreeComboComponent implements OnInit, OnDestroy {
|
|
|
992
937
|
'required',
|
|
993
938
|
'revertOnEscape',
|
|
994
939
|
'ripple',
|
|
940
|
+
'role',
|
|
995
941
|
'rootElement',
|
|
996
942
|
'rtl',
|
|
997
943
|
'scrollAction',
|
|
@@ -1104,6 +1050,7 @@ export class BryntumTreeComboComponent implements OnInit, OnDestroy {
|
|
|
1104
1050
|
'relayStoreEvents',
|
|
1105
1051
|
'revertOnEscape',
|
|
1106
1052
|
'ripple',
|
|
1053
|
+
'role',
|
|
1107
1054
|
'rootElement',
|
|
1108
1055
|
'scrollAction',
|
|
1109
1056
|
'showAnimation',
|
|
@@ -1125,7 +1072,6 @@ export class BryntumTreeComboComponent implements OnInit, OnDestroy {
|
|
|
1125
1072
|
|
|
1126
1073
|
private static bryntumProps: string[] = BryntumTreeComboComponent.bryntumFeatureNames.concat([
|
|
1127
1074
|
'alignSelf',
|
|
1128
|
-
'anchorSize',
|
|
1129
1075
|
'appendTo',
|
|
1130
1076
|
'badge',
|
|
1131
1077
|
'callOnFunctions',
|
|
@@ -1139,7 +1085,6 @@ export class BryntumTreeComboComponent implements OnInit, OnDestroy {
|
|
|
1139
1085
|
'extraData',
|
|
1140
1086
|
'filterOperator',
|
|
1141
1087
|
'flex',
|
|
1142
|
-
'focusVisible',
|
|
1143
1088
|
'formula',
|
|
1144
1089
|
'height',
|
|
1145
1090
|
'hidden',
|
|
@@ -1213,7 +1158,7 @@ export class BryntumTreeComboComponent implements OnInit, OnDestroy {
|
|
|
1213
1158
|
@Input() color ! : Color;
|
|
1214
1159
|
@Input() config ! : object;
|
|
1215
1160
|
@Input() constrainTo ! : HTMLElement|Widget|Rectangle;
|
|
1216
|
-
@Input() container ! : Record<string, GridContainerItemConfig>|GridContainerItemConfig[]|FieldContainerConfig
|
|
1161
|
+
@Input() container ! : Record<string, GridContainerItemConfig>|GridContainerItemConfig[]|FieldContainerConfig;
|
|
1217
1162
|
@Input() containValues ! : boolean|string|((field: Field) => boolean);
|
|
1218
1163
|
@Input() contentElementCls ! : string|object;
|
|
1219
1164
|
@Input() createOnUnmatched ! : ((name: string, combo: Combo) => Model)|string|boolean;
|
|
@@ -1221,11 +1166,9 @@ export class BryntumTreeComboComponent implements OnInit, OnDestroy {
|
|
|
1221
1166
|
@Input() defaultBindProperty ! : string;
|
|
1222
1167
|
@Input() detectCSSCompatibilityIssues ! : boolean;
|
|
1223
1168
|
@Input() displayField ! : string;
|
|
1224
|
-
@Input() displayValueRenderer ! : (record: Model
|
|
1169
|
+
@Input() displayValueRenderer ! : (record: Model, combo: Combo) => string|void;
|
|
1225
1170
|
@Input() dock ! : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object;
|
|
1226
|
-
@Input() draggable ! : boolean|
|
|
1227
|
-
handleSelector?: string
|
|
1228
|
-
};
|
|
1171
|
+
@Input() draggable ! : boolean|object;
|
|
1229
1172
|
@Input() elementAttributes ! : Record<string, string|null>;
|
|
1230
1173
|
@Input() emptyText ! : string;
|
|
1231
1174
|
@Input() encodeFilterParams ! : (filters: object[]) => object[];
|
|
@@ -1256,7 +1199,7 @@ export class BryntumTreeComboComponent implements OnInit, OnDestroy {
|
|
|
1256
1199
|
@Input() labelWidth ! : string|number;
|
|
1257
1200
|
@Input() listCls ! : string;
|
|
1258
1201
|
@Input() listeners ! : TreeComboListeners;
|
|
1259
|
-
@Input() listItemTpl ! : (record: Model
|
|
1202
|
+
@Input() listItemTpl ! : (record: Model) => string|void;
|
|
1260
1203
|
@Input() localeClass ! : typeof Base;
|
|
1261
1204
|
@Input() localizable ! : boolean;
|
|
1262
1205
|
@Input() localizableProperties ! : string[];
|
|
@@ -1265,9 +1208,7 @@ export class BryntumTreeComboComponent implements OnInit, OnDestroy {
|
|
|
1265
1208
|
@Input() maxLength ! : number;
|
|
1266
1209
|
@Input() minChars ! : number;
|
|
1267
1210
|
@Input() minLength ! : number;
|
|
1268
|
-
@Input() monitorResize ! : boolean|
|
|
1269
|
-
immediate?: boolean
|
|
1270
|
-
};
|
|
1211
|
+
@Input() monitorResize ! : boolean|object;
|
|
1271
1212
|
@Input() multiValueSeparator ! : string;
|
|
1272
1213
|
@Input() name ! : string;
|
|
1273
1214
|
@Input() overlayAnchor ! : boolean;
|
|
@@ -1278,12 +1219,8 @@ export class BryntumTreeComboComponent implements OnInit, OnDestroy {
|
|
|
1278
1219
|
@Input() primaryFilter ! : CollectionFilterConfig;
|
|
1279
1220
|
@Input() relayStoreEvents ! : boolean;
|
|
1280
1221
|
@Input() revertOnEscape ! : boolean;
|
|
1281
|
-
@Input() ripple ! : boolean|
|
|
1282
|
-
|
|
1283
|
-
color?: string
|
|
1284
|
-
radius?: number
|
|
1285
|
-
clip?: string
|
|
1286
|
-
};
|
|
1222
|
+
@Input() ripple ! : boolean|object;
|
|
1223
|
+
@Input() role ! : string;
|
|
1287
1224
|
@Input() rootElement ! : ShadowRoot|HTMLElement;
|
|
1288
1225
|
@Input() scrollAction ! : 'hide'|'realign'|null;
|
|
1289
1226
|
@Input() showAnimation ! : boolean|object;
|
|
@@ -1347,14 +1284,12 @@ export class BryntumTreeComboComponent implements OnInit, OnDestroy {
|
|
|
1347
1284
|
@Input() y ! : number;
|
|
1348
1285
|
|
|
1349
1286
|
// Properties only
|
|
1350
|
-
@Input()
|
|
1351
|
-
@Input()
|
|
1352
|
-
@Input()
|
|
1353
|
-
@Input()
|
|
1354
|
-
@Input()
|
|
1355
|
-
@Input()
|
|
1356
|
-
@Input() parent ! : Widget;
|
|
1357
|
-
@Input() scrollable ! : Scroller;
|
|
1287
|
+
@Input() content ! : string;
|
|
1288
|
+
@Input() formula ! : string;
|
|
1289
|
+
@Input() html ! : string|((widget: Widget) => void)|DomConfig|DomConfig[]|VueConfig|ReactJSX;
|
|
1290
|
+
@Input() input ! : HTMLElement;
|
|
1291
|
+
@Input() parent ! : Widget;
|
|
1292
|
+
@Input() scrollable ! : Scroller;
|
|
1358
1293
|
|
|
1359
1294
|
// Events emitters
|
|
1360
1295
|
/**
|
|
@@ -1387,8 +1322,7 @@ export class BryntumTreeComboComponent implements OnInit, OnDestroy {
|
|
|
1387
1322
|
@Output() onBeforeShow: any = new EventEmitter<((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string>();
|
|
1388
1323
|
/**
|
|
1389
1324
|
* Fires when any other event is fired from the object.
|
|
1390
|
-
* ...
|
|
1391
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#event-catchAll)
|
|
1325
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#event-catchAll)
|
|
1392
1326
|
* @param {object} event Event object
|
|
1393
1327
|
* @param {{[key: string]: any, type: string}} event.event The Object that contains event details
|
|
1394
1328
|
* @param {string} event.event.type The type of the event which is caught by the listener
|
|
@@ -1408,8 +1342,7 @@ export class BryntumTreeComboComponent implements OnInit, OnDestroy {
|
|
|
1408
1342
|
@Output() onChange: any = new EventEmitter<((event: { source: Field|any, value: string|number|boolean|any, oldValue: string|number|boolean|any, valid: boolean, event: Event, userAction: boolean, checked: boolean }) => void)|string>();
|
|
1409
1343
|
/**
|
|
1410
1344
|
* Fired when this field is [cleared](https://bryntum.com/products/grid/docs/api/Core/widget/Field#function-clear).
|
|
1411
|
-
* ...
|
|
1412
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#event-clear)
|
|
1345
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#event-clear)
|
|
1413
1346
|
* @param {object} event Event object
|
|
1414
1347
|
* @param {Core.widget.Field,any} event.source This Field
|
|
1415
1348
|
*/
|
|
@@ -1468,8 +1401,7 @@ export class BryntumTreeComboComponent implements OnInit, OnDestroy {
|
|
|
1468
1401
|
/**
|
|
1469
1402
|
* Triggered when a widget which had been in a non-visible state for any reason
|
|
1470
1403
|
* achieves visibility.
|
|
1471
|
-
* ...
|
|
1472
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#event-paint)
|
|
1404
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#event-paint)
|
|
1473
1405
|
* @param {object} event Event object
|
|
1474
1406
|
* @param {Core.widget.Widget} event.source The widget being painted.
|
|
1475
1407
|
* @param {boolean} event.firstPaint `true` if this is the first paint.
|
|
@@ -1581,11 +1513,69 @@ export class BryntumTreeComboComponent implements OnInit, OnDestroy {
|
|
|
1581
1513
|
WrapperHelper.devWarningContainer(instanceName, containerParam);
|
|
1582
1514
|
}
|
|
1583
1515
|
|
|
1516
|
+
// In shadow DOM (e.g. Angular ViewEncapsulation.ShadowDom), theme CSS from document.head
|
|
1517
|
+
// does not cascade into the shadow root. Inject a matching <link> so Bryntum's CSS check
|
|
1518
|
+
// finds the theme. The @font-face rules from component styles are also extracted to
|
|
1519
|
+
// document scope so document.fonts detects them (shadow-root @font-face is not reliably
|
|
1520
|
+
// included in document.fonts across all browsers).
|
|
1521
|
+
const shadowRoot = elementRef.nativeElement.getRootNode();
|
|
1522
|
+
if (shadowRoot instanceof ShadowRoot) {
|
|
1523
|
+
initThemeInShadowRoots();
|
|
1524
|
+
BryntumTreeComboComponent.ensureFontsInDocument(shadowRoot);
|
|
1525
|
+
}
|
|
1526
|
+
|
|
1584
1527
|
// @ts-ignore
|
|
1585
1528
|
me.instance = instanceName === 'Widget' ? Widget.create(bryntumConfig) : new instanceClass(bryntumConfig);
|
|
1586
1529
|
|
|
1587
1530
|
}
|
|
1588
1531
|
|
|
1532
|
+
/**
|
|
1533
|
+
* Extracts all @font-face declarations from a shadow root's stylesheets and adds them to
|
|
1534
|
+
* document.head as a single <style> element. This is needed because @font-face rules inside
|
|
1535
|
+
* a shadow root are not reliably included in document.fonts across all browsers, causing
|
|
1536
|
+
* Bryntum's CSS compatibility check to incorrectly report missing fonts.
|
|
1537
|
+
* Safe to call multiple times — the extraction runs only once per page.
|
|
1538
|
+
*/
|
|
1539
|
+
private static ensureFontsInDocument(shadowRoot: ShadowRoot): void {
|
|
1540
|
+
if (document.querySelector('#b-shadow-root-fonts')) {
|
|
1541
|
+
return;
|
|
1542
|
+
}
|
|
1543
|
+
|
|
1544
|
+
const fontFaceRules: string[] = [];
|
|
1545
|
+
|
|
1546
|
+
const extractFromSheet = (sheet: CSSStyleSheet): void => {
|
|
1547
|
+
try {
|
|
1548
|
+
const rules = sheet.cssRules;
|
|
1549
|
+
for (let i = 0; i < rules.length; i++) {
|
|
1550
|
+
if (rules[i].type === CSSRule.FONT_FACE_RULE) {
|
|
1551
|
+
fontFaceRules.push(rules[i].cssText);
|
|
1552
|
+
}
|
|
1553
|
+
}
|
|
1554
|
+
}
|
|
1555
|
+
catch (_e) {
|
|
1556
|
+
// Cross-origin access may throw; silently skip
|
|
1557
|
+
}
|
|
1558
|
+
};
|
|
1559
|
+
|
|
1560
|
+
// adoptedStyleSheets (Angular 14+ / modern browsers)
|
|
1561
|
+
const adoptedSheets: CSSStyleSheet[] = (shadowRoot as any).adoptedStyleSheets ?? [];
|
|
1562
|
+
adoptedSheets.forEach(sheet => extractFromSheet(sheet));
|
|
1563
|
+
|
|
1564
|
+
// <style> elements (older Angular or fallback)
|
|
1565
|
+
shadowRoot.querySelectorAll('style').forEach(el => {
|
|
1566
|
+
if (el.sheet) {
|
|
1567
|
+
extractFromSheet(el.sheet);
|
|
1568
|
+
}
|
|
1569
|
+
});
|
|
1570
|
+
|
|
1571
|
+
if (fontFaceRules.length > 0) {
|
|
1572
|
+
const style = document.createElement('style');
|
|
1573
|
+
style.id = 'b-shadow-root-fonts';
|
|
1574
|
+
style.textContent = fontFaceRules.join('\n');
|
|
1575
|
+
document.head.appendChild(style);
|
|
1576
|
+
}
|
|
1577
|
+
}
|
|
1578
|
+
|
|
1589
1579
|
/**
|
|
1590
1580
|
* Watch for changes
|
|
1591
1581
|
* @param changes
|