@bryntum/grid-angular-thin 7.2.4 → 7.3.1
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 +5 -5
- package/bundles/bryntum-grid-angular-thin.umd.js +773 -230
- package/bundles/bryntum-grid-angular-thin.umd.js.map +1 -1
- package/esm2015/lib/bryntum-a-i-filter-field.component.js +66 -14
- package/esm2015/lib/bryntum-checklist-filter-combo.component.js +66 -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 +66 -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 +750 -207
- package/fesm2015/bryntum-grid-angular-thin.js.map +1 -1
- package/lib/bryntum-a-i-filter-field.component.d.ts +97 -133
- package/lib/bryntum-checklist-filter-combo.component.d.ts +116 -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 +117 -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 +159 -142
- package/src/lib/bryntum-checklist-filter-combo.component.ts +179 -176
- package/src/lib/bryntum-grid-base.component.ts +300 -344
- package/src/lib/bryntum-grid-chart-designer.component.ts +127 -113
- package/src/lib/bryntum-grid-field-filter-picker-group.component.ts +154 -154
- package/src/lib/bryntum-grid-field-filter-picker.component.ts +153 -154
- package/src/lib/bryntum-grid.component.ts +300 -344
- package/src/lib/bryntum-group-bar.component.ts +134 -124
- package/src/lib/bryntum-theme-combo.component.ts +127 -0
- package/src/lib/bryntum-tree-combo.component.ts +179 -177
- package/src/lib/bryntum-tree-grid.component.ts +300 -344
- 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
|
/**
|
|
@@ -109,11 +102,19 @@ export type BryntumTreeComboProps = {
|
|
|
109
102
|
* Set to `true` to centre the Widget in browser viewport space.
|
|
110
103
|
*/
|
|
111
104
|
centered ? : boolean
|
|
105
|
+
/**
|
|
106
|
+
* A function (or the name of a function in the ownership hierarchy) called during field validation
|
|
107
|
+
* to perform custom validity checks. The function is called as part of the [isValid](https://bryntum.com/products/grid/docs/api/Core/widget/Field#property-isValid)
|
|
108
|
+
* evaluation, after the built-in [required](https://bryntum.com/products/grid/docs/api/Core/widget/Field#config-required) check.
|
|
109
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-checkValidity)
|
|
110
|
+
* @param {Core.widget.Field} field The field being validated
|
|
111
|
+
* @returns {void}
|
|
112
|
+
*/
|
|
113
|
+
checkValidity ? : ((field: Field) => void)|string
|
|
112
114
|
/**
|
|
113
115
|
* A config object to configure the [ChipView](https://bryntum.com/products/grid/docs/api/Core/widget/ChipView) to display the
|
|
114
116
|
* 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)
|
|
117
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-chipView)
|
|
117
118
|
*/
|
|
118
119
|
chipView ? : ChipViewConfig
|
|
119
120
|
/**
|
|
@@ -138,15 +139,13 @@ export type BryntumTreeComboProps = {
|
|
|
138
139
|
* Custom CSS classes to add to element.
|
|
139
140
|
* May be specified as a space separated string, or as an object in which property names
|
|
140
141
|
* 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)
|
|
142
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-cls)
|
|
143
143
|
*/
|
|
144
144
|
cls ? : string|object
|
|
145
145
|
/**
|
|
146
146
|
* Applies the specified color to the widget, by setting the `--b-primary` CSS variable in the widgets
|
|
147
147
|
* `style` block.
|
|
148
|
-
* ...
|
|
149
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-color)
|
|
148
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-color)
|
|
150
149
|
*/
|
|
151
150
|
color ? : Color
|
|
152
151
|
/**
|
|
@@ -163,15 +162,13 @@ export type BryntumTreeComboProps = {
|
|
|
163
162
|
* The configuration for additional items associated to this field. This is typically used to add contextual
|
|
164
163
|
* fields related to a [checkbox](https://bryntum.com/products/grid/docs/api/Core/widget/Checkbox) or [radio button](#Core/widget/Radio). See
|
|
165
164
|
* these classes for examples of nested fields.
|
|
166
|
-
* ...
|
|
167
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-container)
|
|
165
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-container)
|
|
168
166
|
*/
|
|
169
|
-
container ? : Record<string, GridContainerItemConfig>|GridContainerItemConfig[]|FieldContainerConfig
|
|
167
|
+
container ? : Record<string, GridContainerItemConfig>|GridContainerItemConfig[]|FieldContainerConfig
|
|
170
168
|
/**
|
|
171
169
|
* The config controls how the value of nested items are handled when a parent container gets or sets its
|
|
172
170
|
* [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)
|
|
171
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-containValues)
|
|
175
172
|
* @param {Core.widget.Field} field Field instance
|
|
176
173
|
* @returns {boolean}
|
|
177
174
|
*/
|
|
@@ -180,16 +177,14 @@ export type BryntumTreeComboProps = {
|
|
|
180
177
|
* Custom CSS classes to add to the [contentElement](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#property-contentElement).
|
|
181
178
|
* May be specified as a space separated string, or as an object in which property names
|
|
182
179
|
* 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)
|
|
180
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-contentElementCls)
|
|
185
181
|
*/
|
|
186
182
|
contentElementCls ? : string|object
|
|
187
183
|
/**
|
|
188
184
|
* If configured as `true`, this means that when an unmatched string is typed into the
|
|
189
185
|
* 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
186
|
* 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)
|
|
187
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-createOnUnmatched)
|
|
193
188
|
* @param {string} name Record name
|
|
194
189
|
* @param {Core.widget.Combo} combo Combo instance
|
|
195
190
|
* @returns {Core.data.Model} New record
|
|
@@ -210,16 +205,15 @@ export type BryntumTreeComboProps = {
|
|
|
210
205
|
*/
|
|
211
206
|
defaultBindProperty ? : string
|
|
212
207
|
/**
|
|
213
|
-
* Check for CSS compatibility issues
|
|
214
|
-
*
|
|
215
|
-
* [
|
|
208
|
+
* Check for CSS compatibility and inclusion related issues and try to auto fix them. Performs the following
|
|
209
|
+
* checks:
|
|
210
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-detectCSSCompatibilityIssues)
|
|
216
211
|
*/
|
|
217
212
|
detectCSSCompatibilityIssues ? : boolean
|
|
218
213
|
/**
|
|
219
214
|
* 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
215
|
* 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)
|
|
216
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-disabled)
|
|
223
217
|
*/
|
|
224
218
|
disabled ? : boolean|'inert'
|
|
225
219
|
/**
|
|
@@ -232,26 +226,23 @@ export type BryntumTreeComboProps = {
|
|
|
232
226
|
* @param {Core.widget.Combo} combo A reference to this Combo
|
|
233
227
|
* @returns {string,void}
|
|
234
228
|
*/
|
|
235
|
-
displayValueRenderer ? : (record: Model
|
|
229
|
+
displayValueRenderer ? : (record: Model, combo: Combo) => string|void
|
|
236
230
|
/**
|
|
237
231
|
* 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
232
|
* [strips collection](https://bryntum.com/products/grid/docs/api/Core/widget/Panel#config-strips). Typical values for this config are `'top'`,
|
|
239
233
|
* `'bottom'`, `'left'`, or `'right'`, which cause the widget to be placed on that side of the panel's
|
|
240
234
|
* body. Such widgets are called "edge strips".
|
|
241
|
-
* ...
|
|
242
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-dock)
|
|
235
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-dock)
|
|
243
236
|
*/
|
|
244
237
|
dock ? : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object
|
|
245
238
|
/**
|
|
246
239
|
* *Only valid if this Widget is [floating](https://bryntum.com/products/grid/docs/api/Core/widget/Widget#config-floating).*
|
|
247
240
|
* Set to `true` to be able to drag a widget freely on the page. Or set to an object with a ´handleSelector´
|
|
248
241
|
* property which controls when a drag should start.
|
|
249
|
-
* ...
|
|
250
|
-
*
|
|
242
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-draggable)
|
|
243
|
+
* @property {string} handleSelector CSS selector used to determine if drag can be started from a mouse-downed element inside the widget
|
|
251
244
|
*/
|
|
252
|
-
draggable ? : boolean|
|
|
253
|
-
handleSelector?: string
|
|
254
|
-
}
|
|
245
|
+
draggable ? : boolean|object
|
|
255
246
|
/**
|
|
256
247
|
* User can edit text in text field (otherwise only pick from attached picker)
|
|
257
248
|
*/
|
|
@@ -259,21 +250,18 @@ export type BryntumTreeComboProps = {
|
|
|
259
250
|
/**
|
|
260
251
|
* An object specifying attributes to assign to the root element of this widget.
|
|
261
252
|
* 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)
|
|
253
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-elementAttributes)
|
|
264
254
|
*/
|
|
265
255
|
elementAttributes ? : Record<string, string|null>
|
|
266
256
|
/**
|
|
267
257
|
* 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)
|
|
258
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-emptyText)
|
|
270
259
|
*/
|
|
271
260
|
emptyText ? : string
|
|
272
261
|
/**
|
|
273
262
|
* 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
263
|
* any filters to the server upon load.
|
|
275
|
-
* ...
|
|
276
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-encodeFilterParams)
|
|
264
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-encodeFilterParams)
|
|
277
265
|
* @param {object[]} filters filters
|
|
278
266
|
* @returns {object[]} array of values
|
|
279
267
|
*/
|
|
@@ -287,8 +275,7 @@ export type BryntumTreeComboProps = {
|
|
|
287
275
|
/**
|
|
288
276
|
* The name of an operator type as implemented in [operator](https://bryntum.com/products/grid/docs/api/Core/util/CollectionFilter#config-operator)
|
|
289
277
|
* 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)
|
|
278
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-filterOperator)
|
|
292
279
|
*/
|
|
293
280
|
filterOperator ? : CollectionCompareOperator
|
|
294
281
|
/**
|
|
@@ -329,8 +316,7 @@ export type BryntumTreeComboProps = {
|
|
|
329
316
|
hidden ? : boolean
|
|
330
317
|
/**
|
|
331
318
|
* *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)
|
|
319
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-hideAnimation)
|
|
334
320
|
*/
|
|
335
321
|
hideAnimation ? : boolean|object
|
|
336
322
|
/**
|
|
@@ -351,8 +337,7 @@ export type BryntumTreeComboProps = {
|
|
|
351
337
|
/**
|
|
352
338
|
* An optional string to display inside the input field as an overlay. This can be useful for displaying
|
|
353
339
|
* a field's units.
|
|
354
|
-
* ...
|
|
355
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-hint)
|
|
340
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-hint)
|
|
356
341
|
* @param {object} data A data object
|
|
357
342
|
* @param {Core.widget.Field} data.source A reference to the field instance
|
|
358
343
|
* @param {any} data.value The current value of the field
|
|
@@ -363,8 +348,7 @@ export type BryntumTreeComboProps = {
|
|
|
363
348
|
* 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
349
|
* Since this can allow malicious content to be executed, be sure not to include user-entered data or to
|
|
365
350
|
* 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)
|
|
351
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-hintHtml)
|
|
368
352
|
* @param {object} data A data object
|
|
369
353
|
* @param {Core.widget.Field} data.source A reference to the field instance
|
|
370
354
|
* @param {any} data.value The current value of the field
|
|
@@ -377,23 +361,20 @@ export type BryntumTreeComboProps = {
|
|
|
377
361
|
id ? : string
|
|
378
362
|
/**
|
|
379
363
|
* 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)
|
|
364
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-ignoreParentReadOnly)
|
|
382
365
|
*/
|
|
383
366
|
ignoreParentReadOnly ? : boolean
|
|
384
367
|
/**
|
|
385
368
|
* Set this config to `true` to always display items horizontally along with this field. This assigns an
|
|
386
369
|
* [hbox](https://bryntum.com/products/grid/docs/api/Core/widget/layout/Box) as the [layout](#Core/widget/Container#config-layout) to the
|
|
387
370
|
* [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)
|
|
371
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-inline)
|
|
390
372
|
*/
|
|
391
373
|
inline ? : boolean
|
|
392
374
|
/**
|
|
393
375
|
* Configure this as `true` to render the dropdown list as a permanently visible list
|
|
394
376
|
* 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)
|
|
377
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-inlinePicker)
|
|
397
378
|
*/
|
|
398
379
|
inlinePicker ? : boolean
|
|
399
380
|
/**
|
|
@@ -431,30 +412,26 @@ export type BryntumTreeComboProps = {
|
|
|
431
412
|
insertFirst ? : HTMLElement|string
|
|
432
413
|
/**
|
|
433
414
|
* 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)
|
|
415
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-items)
|
|
436
416
|
*/
|
|
437
417
|
items ? : object[]|string[]|object
|
|
438
418
|
/**
|
|
439
419
|
* An object whose keys are the [key](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key) name
|
|
440
420
|
* and optional modifier prefixes: `'Ctrl+'`, `'Alt+'`, `'Meta+'`, and `'Shift+'` (case-insensitive). The values
|
|
441
421
|
* 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)
|
|
422
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-keyMap)
|
|
444
423
|
*/
|
|
445
424
|
keyMap ? : Record<string, KeyMapConfig>
|
|
446
425
|
/**
|
|
447
426
|
* The delay in milliseconds to wait after the last keystroke before triggering a change event.
|
|
448
427
|
* Set to 0 to not trigger change events from keystrokes (listen for input event instead to have
|
|
449
428
|
* 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)
|
|
429
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-keyStrokeChangeDelay)
|
|
452
430
|
*/
|
|
453
431
|
keyStrokeChangeDelay ? : number
|
|
454
432
|
/**
|
|
455
433
|
* 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)
|
|
434
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-keyStrokeFilterDelay)
|
|
458
435
|
*/
|
|
459
436
|
keyStrokeFilterDelay ? : number
|
|
460
437
|
/**
|
|
@@ -467,15 +444,15 @@ export type BryntumTreeComboProps = {
|
|
|
467
444
|
labelCls ? : string|object
|
|
468
445
|
/**
|
|
469
446
|
* 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)
|
|
447
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-labelPosition)
|
|
472
448
|
*/
|
|
473
449
|
labelPosition ? : 'before'|'above'|null
|
|
474
450
|
/**
|
|
475
451
|
* The labels to add either before or after the input field.
|
|
476
452
|
* Each label may have the following properties:
|
|
477
|
-
* ...
|
|
478
|
-
*
|
|
453
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-labels)
|
|
454
|
+
* @property {string} html Label text
|
|
455
|
+
* @property {'start','end'} align Which end of the file the label should go
|
|
479
456
|
*/
|
|
480
457
|
labels ? : object[]
|
|
481
458
|
/**
|
|
@@ -488,24 +465,21 @@ export type BryntumTreeComboProps = {
|
|
|
488
465
|
listCls ? : string
|
|
489
466
|
/**
|
|
490
467
|
* The listener set for this object.
|
|
491
|
-
* ...
|
|
492
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-listeners)
|
|
468
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-listeners)
|
|
493
469
|
*/
|
|
494
470
|
listeners ? : TreeComboListeners
|
|
495
471
|
/**
|
|
496
472
|
* 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)
|
|
473
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-listItemTpl)
|
|
499
474
|
* @param {Core.data.Model} record The record representing the item being rendered
|
|
500
475
|
* @returns {string,void}
|
|
501
476
|
*/
|
|
502
|
-
listItemTpl ? : (record: Model
|
|
477
|
+
listItemTpl ? : (record: Model) => string|void
|
|
503
478
|
/**
|
|
504
479
|
* A class translations of which are used for translating this entity.
|
|
505
480
|
* This is often used when translations of an item are defined on its container class.
|
|
506
481
|
* For example:
|
|
507
|
-
* ...
|
|
508
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-localeClass)
|
|
482
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-localeClass)
|
|
509
483
|
*/
|
|
510
484
|
localeClass ? : typeof Base
|
|
511
485
|
/**
|
|
@@ -517,8 +491,7 @@ export type BryntumTreeComboProps = {
|
|
|
517
491
|
* In case there is a need to localize not typical value (not a String value or a field with re-defined setter/getter),
|
|
518
492
|
* you could use 'localeKey' meta configuration.
|
|
519
493
|
* Example:
|
|
520
|
-
* ...
|
|
521
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-localizableProperties)
|
|
494
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-localizableProperties)
|
|
522
495
|
*/
|
|
523
496
|
localizableProperties ? : string[]
|
|
524
497
|
/**
|
|
@@ -544,8 +517,7 @@ export type BryntumTreeComboProps = {
|
|
|
544
517
|
maxHeight ? : string|number
|
|
545
518
|
/**
|
|
546
519
|
* *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)
|
|
520
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-maximizeOnMobile)
|
|
549
521
|
*/
|
|
550
522
|
maximizeOnMobile ? : number|string
|
|
551
523
|
/**
|
|
@@ -559,8 +531,7 @@ export type BryntumTreeComboProps = {
|
|
|
559
531
|
maxWidth ? : string|number
|
|
560
532
|
/**
|
|
561
533
|
* 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)
|
|
534
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-minChars)
|
|
564
535
|
*/
|
|
565
536
|
minChars ? : number
|
|
566
537
|
/**
|
|
@@ -581,16 +552,13 @@ export type BryntumTreeComboProps = {
|
|
|
581
552
|
* When this is configured as `true` a [ResizeObserver](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver)
|
|
582
553
|
* is used to monitor this element for size changes caused by either style manipulation, or by CSS
|
|
583
554
|
* layout.
|
|
584
|
-
* ...
|
|
585
|
-
*
|
|
555
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-monitorResize)
|
|
556
|
+
* @property {boolean} immediate Set to `true` to receive resize notifications immediately.
|
|
586
557
|
*/
|
|
587
|
-
monitorResize ? : boolean|
|
|
588
|
-
immediate?: boolean
|
|
589
|
-
}
|
|
558
|
+
monitorResize ? : boolean|object
|
|
590
559
|
/**
|
|
591
560
|
* 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)
|
|
561
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-multiSelect)
|
|
594
562
|
*/
|
|
595
563
|
multiSelect ? : boolean
|
|
596
564
|
/**
|
|
@@ -603,8 +571,7 @@ export type BryntumTreeComboProps = {
|
|
|
603
571
|
* Name of the field which is used as a key to get/set values from/to the field.
|
|
604
572
|
* 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
573
|
* [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)
|
|
574
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-name)
|
|
608
575
|
*/
|
|
609
576
|
name ? : string
|
|
610
577
|
/**
|
|
@@ -615,10 +582,9 @@ export type BryntumTreeComboProps = {
|
|
|
615
582
|
/**
|
|
616
583
|
* Configuration object for the [picker](https://bryntum.com/products/grid/docs/api/Core/widget/List) on initialization. Returns the
|
|
617
584
|
* [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)
|
|
585
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-picker)
|
|
620
586
|
*/
|
|
621
|
-
picker ? : ListConfig
|
|
587
|
+
picker ? : ListConfig
|
|
622
588
|
/**
|
|
623
589
|
* The name of the element property to which the picker should size and align itself.
|
|
624
590
|
*/
|
|
@@ -635,8 +601,7 @@ export type BryntumTreeComboProps = {
|
|
|
635
601
|
* 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
602
|
* not participate in the standard layout of that widget, and must be positioned relatively to that
|
|
637
603
|
* 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)
|
|
604
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-positioned)
|
|
640
605
|
*/
|
|
641
606
|
positioned ? : boolean
|
|
642
607
|
/**
|
|
@@ -648,22 +613,19 @@ export type BryntumTreeComboProps = {
|
|
|
648
613
|
* Optionally a [Filter](https://bryntum.com/products/grid/docs/api/Core/util/CollectionFilter) config object which the combo should use for
|
|
649
614
|
* filtering using the typed value.
|
|
650
615
|
* 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)
|
|
616
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-primaryFilter)
|
|
653
617
|
*/
|
|
654
618
|
primaryFilter ? : CollectionFilterConfig
|
|
655
619
|
/**
|
|
656
620
|
* Makes the field unmodifiable by user action. The input area is not editable, and triggers
|
|
657
621
|
* are unresponsive.
|
|
658
|
-
* ...
|
|
659
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-readOnly)
|
|
622
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-readOnly)
|
|
660
623
|
*/
|
|
661
624
|
readOnly ? : boolean
|
|
662
625
|
relayStoreEvents ? : boolean
|
|
663
626
|
/**
|
|
664
627
|
* 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)
|
|
628
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-rendition)
|
|
667
629
|
*/
|
|
668
630
|
rendition ? : 'outlined'|'filled'|string
|
|
669
631
|
/**
|
|
@@ -682,23 +644,26 @@ export type BryntumTreeComboProps = {
|
|
|
682
644
|
* Configure as `true` to have the component display a translucent ripple when its
|
|
683
645
|
* [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
646
|
* current theme supports ripples</em>. Out of the box, only the Material theme supports ripples.
|
|
685
|
-
* ...
|
|
686
|
-
* [
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
647
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-ripple)
|
|
648
|
+
* @property {string} [delegate] A CSS selector to filter which child elements trigger ripples. By default, the ripple is clipped to the triggering element.
|
|
649
|
+
* @property {string} [color] A CSS color name or specification.
|
|
650
|
+
* @property {number} [radius] The ending radius of the ripple. Note that it will be clipped by the target element by default.
|
|
651
|
+
* @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.
|
|
652
|
+
*/
|
|
653
|
+
ripple ? : boolean|object
|
|
654
|
+
/**
|
|
655
|
+
* The ARIA role to apply to this widget's element. By default, this is set to `'presentation'` to avoid
|
|
656
|
+
* accidentally applying a role which may interfere with screen readers.
|
|
657
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-role)
|
|
658
|
+
*/
|
|
659
|
+
role ? : string
|
|
694
660
|
/**
|
|
695
661
|
* 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
662
|
*/
|
|
697
663
|
rootElement ? : ShadowRoot|HTMLElement
|
|
698
664
|
/**
|
|
699
665
|
* 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)
|
|
666
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-rtl)
|
|
702
667
|
*/
|
|
703
668
|
rtl ? : boolean
|
|
704
669
|
/**
|
|
@@ -708,8 +673,7 @@ export type BryntumTreeComboProps = {
|
|
|
708
673
|
scrollAction ? : 'hide'|'realign'|null
|
|
709
674
|
/**
|
|
710
675
|
* *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)
|
|
676
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-showAnimation)
|
|
713
677
|
*/
|
|
714
678
|
showAnimation ? : boolean|object
|
|
715
679
|
/**
|
|
@@ -742,8 +706,7 @@ export type BryntumTreeComboProps = {
|
|
|
742
706
|
* 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
707
|
* [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
708
|
* this widget:
|
|
745
|
-
* ...
|
|
746
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-tab)
|
|
709
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-tab)
|
|
747
710
|
*/
|
|
748
711
|
tab ? : boolean|TabConfig
|
|
749
712
|
/**
|
|
@@ -751,14 +714,12 @@ export type BryntumTreeComboProps = {
|
|
|
751
714
|
* is equivalent to natural tab order, but is unnecessary for fields since they are naturally tabbable
|
|
752
715
|
* (i.e., accessible via the TAB key). Setting to `-1` disables tabbability but allows for focus to be set
|
|
753
716
|
* to the element programmatically.
|
|
754
|
-
* ...
|
|
755
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-tabIndex)
|
|
717
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-tabIndex)
|
|
756
718
|
*/
|
|
757
719
|
tabIndex ? : number
|
|
758
720
|
/**
|
|
759
721
|
* 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)
|
|
722
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-textAlign)
|
|
762
723
|
*/
|
|
763
724
|
textAlign ? : 'left'|'center'|'right'|'start'|'end'
|
|
764
725
|
/**
|
|
@@ -767,30 +728,26 @@ export type BryntumTreeComboProps = {
|
|
|
767
728
|
title ? : string
|
|
768
729
|
/**
|
|
769
730
|
* 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)
|
|
731
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-tooltip)
|
|
772
732
|
*/
|
|
773
733
|
tooltip ? : string|TooltipConfig|null
|
|
774
734
|
/**
|
|
775
735
|
* 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)
|
|
736
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-triggerAction)
|
|
778
737
|
*/
|
|
779
738
|
triggerAction ? : 'all'|'last'|null
|
|
780
739
|
/**
|
|
781
740
|
* The triggers to add either before or after the input field. Each property name is the reference by which
|
|
782
741
|
* 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)
|
|
742
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-triggers)
|
|
785
743
|
*/
|
|
786
|
-
triggers ? : Record<string, FieldTriggerConfig
|
|
744
|
+
triggers ? : Record<string, FieldTriggerConfig>
|
|
787
745
|
type ? : 'treecombo'
|
|
788
746
|
/**
|
|
789
747
|
* Custom CSS class name suffixes to apply to the elements rendered by this widget. This may be specified
|
|
790
748
|
* as a space separated string, an array of strings, or as an object in which property names with truthy
|
|
791
749
|
* values are used as the class names.
|
|
792
|
-
* ...
|
|
793
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-ui)
|
|
750
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-ui)
|
|
794
751
|
*/
|
|
795
752
|
ui ? : string|object
|
|
796
753
|
/**
|
|
@@ -810,8 +767,7 @@ export type BryntumTreeComboProps = {
|
|
|
810
767
|
/**
|
|
811
768
|
* Field used for item value when populating from store. Setting this to `null` will
|
|
812
769
|
* 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)
|
|
770
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-valueField)
|
|
815
771
|
*/
|
|
816
772
|
valueField ? : string|null
|
|
817
773
|
/**
|
|
@@ -827,14 +783,12 @@ export type BryntumTreeComboProps = {
|
|
|
827
783
|
width ? : string|number
|
|
828
784
|
/**
|
|
829
785
|
* The x position for the widget.
|
|
830
|
-
* ...
|
|
831
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-x)
|
|
786
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-x)
|
|
832
787
|
*/
|
|
833
788
|
x ? : number
|
|
834
789
|
/**
|
|
835
790
|
* The y position for the widget.
|
|
836
|
-
* ...
|
|
837
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-y)
|
|
791
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#config-y)
|
|
838
792
|
*/
|
|
839
793
|
y ? : number
|
|
840
794
|
|
|
@@ -895,6 +849,7 @@ export class BryntumTreeComboComponent implements OnInit, OnDestroy {
|
|
|
895
849
|
'caseSensitive',
|
|
896
850
|
'catchEventHandlerExceptions',
|
|
897
851
|
'centered',
|
|
852
|
+
'checkValidity',
|
|
898
853
|
'chipView',
|
|
899
854
|
'clearable',
|
|
900
855
|
'clearTextOnPickerHide',
|
|
@@ -992,6 +947,7 @@ export class BryntumTreeComboComponent implements OnInit, OnDestroy {
|
|
|
992
947
|
'required',
|
|
993
948
|
'revertOnEscape',
|
|
994
949
|
'ripple',
|
|
950
|
+
'role',
|
|
995
951
|
'rootElement',
|
|
996
952
|
'rtl',
|
|
997
953
|
'scrollAction',
|
|
@@ -1034,6 +990,7 @@ export class BryntumTreeComboComponent implements OnInit, OnDestroy {
|
|
|
1034
990
|
'cacheLastResult',
|
|
1035
991
|
'caseSensitive',
|
|
1036
992
|
'centered',
|
|
993
|
+
'checkValidity',
|
|
1037
994
|
'chipView',
|
|
1038
995
|
'clearable',
|
|
1039
996
|
'clearTextOnPickerHide',
|
|
@@ -1104,6 +1061,7 @@ export class BryntumTreeComboComponent implements OnInit, OnDestroy {
|
|
|
1104
1061
|
'relayStoreEvents',
|
|
1105
1062
|
'revertOnEscape',
|
|
1106
1063
|
'ripple',
|
|
1064
|
+
'role',
|
|
1107
1065
|
'rootElement',
|
|
1108
1066
|
'scrollAction',
|
|
1109
1067
|
'showAnimation',
|
|
@@ -1125,7 +1083,6 @@ export class BryntumTreeComboComponent implements OnInit, OnDestroy {
|
|
|
1125
1083
|
|
|
1126
1084
|
private static bryntumProps: string[] = BryntumTreeComboComponent.bryntumFeatureNames.concat([
|
|
1127
1085
|
'alignSelf',
|
|
1128
|
-
'anchorSize',
|
|
1129
1086
|
'appendTo',
|
|
1130
1087
|
'badge',
|
|
1131
1088
|
'callOnFunctions',
|
|
@@ -1139,7 +1096,6 @@ export class BryntumTreeComboComponent implements OnInit, OnDestroy {
|
|
|
1139
1096
|
'extraData',
|
|
1140
1097
|
'filterOperator',
|
|
1141
1098
|
'flex',
|
|
1142
|
-
'focusVisible',
|
|
1143
1099
|
'formula',
|
|
1144
1100
|
'height',
|
|
1145
1101
|
'hidden',
|
|
@@ -1205,6 +1161,7 @@ export class BryntumTreeComboComponent implements OnInit, OnDestroy {
|
|
|
1205
1161
|
@Input() cacheLastResult ! : number|string|Duration|DurationConfig;
|
|
1206
1162
|
@Input() caseSensitive ! : boolean;
|
|
1207
1163
|
@Input() centered ! : boolean;
|
|
1164
|
+
@Input() checkValidity ! : ((field: Field) => void)|string;
|
|
1208
1165
|
@Input() chipView ! : ChipViewConfig;
|
|
1209
1166
|
@Input() clearable ! : boolean|FieldTriggerConfig;
|
|
1210
1167
|
@Input() clearTextOnPickerHide ! : boolean;
|
|
@@ -1213,7 +1170,7 @@ export class BryntumTreeComboComponent implements OnInit, OnDestroy {
|
|
|
1213
1170
|
@Input() color ! : Color;
|
|
1214
1171
|
@Input() config ! : object;
|
|
1215
1172
|
@Input() constrainTo ! : HTMLElement|Widget|Rectangle;
|
|
1216
|
-
@Input() container ! : Record<string, GridContainerItemConfig>|GridContainerItemConfig[]|FieldContainerConfig
|
|
1173
|
+
@Input() container ! : Record<string, GridContainerItemConfig>|GridContainerItemConfig[]|FieldContainerConfig;
|
|
1217
1174
|
@Input() containValues ! : boolean|string|((field: Field) => boolean);
|
|
1218
1175
|
@Input() contentElementCls ! : string|object;
|
|
1219
1176
|
@Input() createOnUnmatched ! : ((name: string, combo: Combo) => Model)|string|boolean;
|
|
@@ -1221,11 +1178,9 @@ export class BryntumTreeComboComponent implements OnInit, OnDestroy {
|
|
|
1221
1178
|
@Input() defaultBindProperty ! : string;
|
|
1222
1179
|
@Input() detectCSSCompatibilityIssues ! : boolean;
|
|
1223
1180
|
@Input() displayField ! : string;
|
|
1224
|
-
@Input() displayValueRenderer ! : (record: Model
|
|
1181
|
+
@Input() displayValueRenderer ! : (record: Model, combo: Combo) => string|void;
|
|
1225
1182
|
@Input() dock ! : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object;
|
|
1226
|
-
@Input() draggable ! : boolean|
|
|
1227
|
-
handleSelector?: string
|
|
1228
|
-
};
|
|
1183
|
+
@Input() draggable ! : boolean|object;
|
|
1229
1184
|
@Input() elementAttributes ! : Record<string, string|null>;
|
|
1230
1185
|
@Input() emptyText ! : string;
|
|
1231
1186
|
@Input() encodeFilterParams ! : (filters: object[]) => object[];
|
|
@@ -1256,7 +1211,7 @@ export class BryntumTreeComboComponent implements OnInit, OnDestroy {
|
|
|
1256
1211
|
@Input() labelWidth ! : string|number;
|
|
1257
1212
|
@Input() listCls ! : string;
|
|
1258
1213
|
@Input() listeners ! : TreeComboListeners;
|
|
1259
|
-
@Input() listItemTpl ! : (record: Model
|
|
1214
|
+
@Input() listItemTpl ! : (record: Model) => string|void;
|
|
1260
1215
|
@Input() localeClass ! : typeof Base;
|
|
1261
1216
|
@Input() localizable ! : boolean;
|
|
1262
1217
|
@Input() localizableProperties ! : string[];
|
|
@@ -1265,9 +1220,7 @@ export class BryntumTreeComboComponent implements OnInit, OnDestroy {
|
|
|
1265
1220
|
@Input() maxLength ! : number;
|
|
1266
1221
|
@Input() minChars ! : number;
|
|
1267
1222
|
@Input() minLength ! : number;
|
|
1268
|
-
@Input() monitorResize ! : boolean|
|
|
1269
|
-
immediate?: boolean
|
|
1270
|
-
};
|
|
1223
|
+
@Input() monitorResize ! : boolean|object;
|
|
1271
1224
|
@Input() multiValueSeparator ! : string;
|
|
1272
1225
|
@Input() name ! : string;
|
|
1273
1226
|
@Input() overlayAnchor ! : boolean;
|
|
@@ -1278,12 +1231,8 @@ export class BryntumTreeComboComponent implements OnInit, OnDestroy {
|
|
|
1278
1231
|
@Input() primaryFilter ! : CollectionFilterConfig;
|
|
1279
1232
|
@Input() relayStoreEvents ! : boolean;
|
|
1280
1233
|
@Input() revertOnEscape ! : boolean;
|
|
1281
|
-
@Input() ripple ! : boolean|
|
|
1282
|
-
|
|
1283
|
-
color?: string
|
|
1284
|
-
radius?: number
|
|
1285
|
-
clip?: string
|
|
1286
|
-
};
|
|
1234
|
+
@Input() ripple ! : boolean|object;
|
|
1235
|
+
@Input() role ! : string;
|
|
1287
1236
|
@Input() rootElement ! : ShadowRoot|HTMLElement;
|
|
1288
1237
|
@Input() scrollAction ! : 'hide'|'realign'|null;
|
|
1289
1238
|
@Input() showAnimation ! : boolean|object;
|
|
@@ -1347,14 +1296,12 @@ export class BryntumTreeComboComponent implements OnInit, OnDestroy {
|
|
|
1347
1296
|
@Input() y ! : number;
|
|
1348
1297
|
|
|
1349
1298
|
// Properties only
|
|
1350
|
-
@Input()
|
|
1351
|
-
@Input()
|
|
1352
|
-
@Input()
|
|
1353
|
-
@Input()
|
|
1354
|
-
@Input()
|
|
1355
|
-
@Input()
|
|
1356
|
-
@Input() parent ! : Widget;
|
|
1357
|
-
@Input() scrollable ! : Scroller;
|
|
1299
|
+
@Input() content ! : string;
|
|
1300
|
+
@Input() formula ! : string;
|
|
1301
|
+
@Input() html ! : string|((widget: Widget) => void)|DomConfig|DomConfig[]|VueConfig|ReactJSX;
|
|
1302
|
+
@Input() input ! : HTMLElement;
|
|
1303
|
+
@Input() parent ! : Widget;
|
|
1304
|
+
@Input() scrollable ! : Scroller;
|
|
1358
1305
|
|
|
1359
1306
|
// Events emitters
|
|
1360
1307
|
/**
|
|
@@ -1378,7 +1325,7 @@ export class BryntumTreeComboComponent implements OnInit, OnDestroy {
|
|
|
1378
1325
|
* @param {object} event Event object
|
|
1379
1326
|
* @param {Core.widget.Widget} event.source The widget being hidden.
|
|
1380
1327
|
*/
|
|
1381
|
-
@Output() onBeforeHide: any = new EventEmitter<((event: { source: Widget }) =>
|
|
1328
|
+
@Output() onBeforeHide: any = new EventEmitter<((event: { source: Widget }) => boolean|void)|string>();
|
|
1382
1329
|
/**
|
|
1383
1330
|
* Triggered before a widget is shown. Return `false` to prevent the action.
|
|
1384
1331
|
* @param {object} event Event object
|
|
@@ -1387,8 +1334,7 @@ export class BryntumTreeComboComponent implements OnInit, OnDestroy {
|
|
|
1387
1334
|
@Output() onBeforeShow: any = new EventEmitter<((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string>();
|
|
1388
1335
|
/**
|
|
1389
1336
|
* 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)
|
|
1337
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#event-catchAll)
|
|
1392
1338
|
* @param {object} event Event object
|
|
1393
1339
|
* @param {{[key: string]: any, type: string}} event.event The Object that contains event details
|
|
1394
1340
|
* @param {string} event.event.type The type of the event which is caught by the listener
|
|
@@ -1408,8 +1354,7 @@ export class BryntumTreeComboComponent implements OnInit, OnDestroy {
|
|
|
1408
1354
|
@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
1355
|
/**
|
|
1410
1356
|
* 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)
|
|
1357
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#event-clear)
|
|
1413
1358
|
* @param {object} event Event object
|
|
1414
1359
|
* @param {Core.widget.Field,any} event.source This Field
|
|
1415
1360
|
*/
|
|
@@ -1468,8 +1413,7 @@ export class BryntumTreeComboComponent implements OnInit, OnDestroy {
|
|
|
1468
1413
|
/**
|
|
1469
1414
|
* Triggered when a widget which had been in a non-visible state for any reason
|
|
1470
1415
|
* achieves visibility.
|
|
1471
|
-
* ...
|
|
1472
|
-
* [View online docs...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#event-paint)
|
|
1416
|
+
* [More...](https://bryntum.com/products/grid/docs/api/Grid/widget/TreeCombo#event-paint)
|
|
1473
1417
|
* @param {object} event Event object
|
|
1474
1418
|
* @param {Core.widget.Widget} event.source The widget being painted.
|
|
1475
1419
|
* @param {boolean} event.firstPaint `true` if this is the first paint.
|
|
@@ -1581,11 +1525,69 @@ export class BryntumTreeComboComponent implements OnInit, OnDestroy {
|
|
|
1581
1525
|
WrapperHelper.devWarningContainer(instanceName, containerParam);
|
|
1582
1526
|
}
|
|
1583
1527
|
|
|
1528
|
+
// In shadow DOM (e.g. Angular ViewEncapsulation.ShadowDom), theme CSS from document.head
|
|
1529
|
+
// does not cascade into the shadow root. Inject a matching <link> so Bryntum's CSS check
|
|
1530
|
+
// finds the theme. The @font-face rules from component styles are also extracted to
|
|
1531
|
+
// document scope so document.fonts detects them (shadow-root @font-face is not reliably
|
|
1532
|
+
// included in document.fonts across all browsers).
|
|
1533
|
+
const shadowRoot = elementRef.nativeElement.getRootNode();
|
|
1534
|
+
if (shadowRoot instanceof ShadowRoot) {
|
|
1535
|
+
initThemeInShadowRoots();
|
|
1536
|
+
BryntumTreeComboComponent.ensureFontsInDocument(shadowRoot);
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1584
1539
|
// @ts-ignore
|
|
1585
1540
|
me.instance = instanceName === 'Widget' ? Widget.create(bryntumConfig) : new instanceClass(bryntumConfig);
|
|
1586
1541
|
|
|
1587
1542
|
}
|
|
1588
1543
|
|
|
1544
|
+
/**
|
|
1545
|
+
* Extracts all @font-face declarations from a shadow root's stylesheets and adds them to
|
|
1546
|
+
* document.head as a single <style> element. This is needed because @font-face rules inside
|
|
1547
|
+
* a shadow root are not reliably included in document.fonts across all browsers, causing
|
|
1548
|
+
* Bryntum's CSS compatibility check to incorrectly report missing fonts.
|
|
1549
|
+
* Safe to call multiple times — the extraction runs only once per page.
|
|
1550
|
+
*/
|
|
1551
|
+
private static ensureFontsInDocument(shadowRoot: ShadowRoot): void {
|
|
1552
|
+
if (document.querySelector('#b-shadow-root-fonts')) {
|
|
1553
|
+
return;
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1556
|
+
const fontFaceRules: string[] = [];
|
|
1557
|
+
|
|
1558
|
+
const extractFromSheet = (sheet: CSSStyleSheet): void => {
|
|
1559
|
+
try {
|
|
1560
|
+
const rules = sheet.cssRules;
|
|
1561
|
+
for (let i = 0; i < rules.length; i++) {
|
|
1562
|
+
if (rules[i].type === CSSRule.FONT_FACE_RULE) {
|
|
1563
|
+
fontFaceRules.push(rules[i].cssText);
|
|
1564
|
+
}
|
|
1565
|
+
}
|
|
1566
|
+
}
|
|
1567
|
+
catch (_e) {
|
|
1568
|
+
// Cross-origin access may throw; silently skip
|
|
1569
|
+
}
|
|
1570
|
+
};
|
|
1571
|
+
|
|
1572
|
+
// adoptedStyleSheets (Angular 14+ / modern browsers)
|
|
1573
|
+
const adoptedSheets: CSSStyleSheet[] = (shadowRoot as any).adoptedStyleSheets ?? [];
|
|
1574
|
+
adoptedSheets.forEach(sheet => extractFromSheet(sheet));
|
|
1575
|
+
|
|
1576
|
+
// <style> elements (older Angular or fallback)
|
|
1577
|
+
shadowRoot.querySelectorAll('style').forEach(el => {
|
|
1578
|
+
if (el.sheet) {
|
|
1579
|
+
extractFromSheet(el.sheet);
|
|
1580
|
+
}
|
|
1581
|
+
});
|
|
1582
|
+
|
|
1583
|
+
if (fontFaceRules.length > 0) {
|
|
1584
|
+
const style = document.createElement('style');
|
|
1585
|
+
style.id = 'b-shadow-root-fonts';
|
|
1586
|
+
style.textContent = fontFaceRules.join('\n');
|
|
1587
|
+
document.head.appendChild(style);
|
|
1588
|
+
}
|
|
1589
|
+
}
|
|
1590
|
+
|
|
1589
1591
|
/**
|
|
1590
1592
|
* Watch for changes
|
|
1591
1593
|
* @param changes
|