@bryntum/scheduler-react-thin 7.1.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.
Files changed (56) hide show
  1. package/README.md +52 -0
  2. package/lib/BryntumEventColorField.d.ts +232 -0
  3. package/lib/BryntumEventColorField.js +169 -0
  4. package/lib/BryntumEventColorField.js.map +1 -0
  5. package/lib/BryntumProjectCombo.d.ts +268 -0
  6. package/lib/BryntumProjectCombo.js +203 -0
  7. package/lib/BryntumProjectCombo.js.map +1 -0
  8. package/lib/BryntumResourceCombo.d.ts +268 -0
  9. package/lib/BryntumResourceCombo.js +203 -0
  10. package/lib/BryntumResourceCombo.js.map +1 -0
  11. package/lib/BryntumResourceFilter.d.ts +215 -0
  12. package/lib/BryntumResourceFilter.js +154 -0
  13. package/lib/BryntumResourceFilter.js.map +1 -0
  14. package/lib/BryntumScheduler.d.ts +2039 -0
  15. package/lib/BryntumScheduler.js +642 -0
  16. package/lib/BryntumScheduler.js.map +1 -0
  17. package/lib/BryntumSchedulerBase.d.ts +2038 -0
  18. package/lib/BryntumSchedulerBase.js +641 -0
  19. package/lib/BryntumSchedulerBase.js.map +1 -0
  20. package/lib/BryntumSchedulerDatePicker.d.ts +314 -0
  21. package/lib/BryntumSchedulerDatePicker.js +216 -0
  22. package/lib/BryntumSchedulerDatePicker.js.map +1 -0
  23. package/lib/BryntumSchedulerProjectModel.d.ts +91 -0
  24. package/lib/BryntumSchedulerProjectModel.js +98 -0
  25. package/lib/BryntumSchedulerProjectModel.js.map +1 -0
  26. package/lib/BryntumTimelineHistogram.d.ts +1185 -0
  27. package/lib/BryntumTimelineHistogram.js +448 -0
  28. package/lib/BryntumTimelineHistogram.js.map +1 -0
  29. package/lib/BryntumUndoRedo.d.ts +190 -0
  30. package/lib/BryntumUndoRedo.js +152 -0
  31. package/lib/BryntumUndoRedo.js.map +1 -0
  32. package/lib/BryntumViewPresetCombo.d.ts +216 -0
  33. package/lib/BryntumViewPresetCombo.js +158 -0
  34. package/lib/BryntumViewPresetCombo.js.map +1 -0
  35. package/lib/WrapperHelper.d.ts +26 -0
  36. package/lib/WrapperHelper.js +569 -0
  37. package/lib/WrapperHelper.js.map +1 -0
  38. package/lib/index.d.ts +11 -0
  39. package/lib/index.js +12 -0
  40. package/lib/index.js.map +1 -0
  41. package/license.pdf +0 -0
  42. package/licenses.md +310 -0
  43. package/package.json +25 -0
  44. package/src/BryntumEventColorField.tsx +996 -0
  45. package/src/BryntumProjectCombo.tsx +1233 -0
  46. package/src/BryntumResourceCombo.tsx +1236 -0
  47. package/src/BryntumResourceFilter.tsx +931 -0
  48. package/src/BryntumScheduler.tsx +5184 -0
  49. package/src/BryntumSchedulerBase.tsx +5182 -0
  50. package/src/BryntumSchedulerDatePicker.tsx +1365 -0
  51. package/src/BryntumSchedulerProjectModel.tsx +424 -0
  52. package/src/BryntumTimelineHistogram.tsx +3427 -0
  53. package/src/BryntumUndoRedo.tsx +886 -0
  54. package/src/BryntumViewPresetCombo.tsx +915 -0
  55. package/src/WrapperHelper.tsx +1125 -0
  56. package/src/index.ts +15 -0
@@ -0,0 +1,268 @@
1
+ import React from 'react';
2
+ import { AlignSpec, Base, ChipViewConfig, CollectionCompareOperator, CollectionFilterConfig, Combo, ComboModel, Duration, DurationConfig, Field, FieldContainer, FieldContainerConfig, FieldTriggerConfig, KeyMapConfig, List, ListConfig, MaskConfig, Model, Rectangle, Store, StoreConfig, TabConfig, TooltipConfig, Widget } from '@bryntum/core-thin';
3
+ import { SchedulerContainerItemConfig, ResourceCombo, ResourceComboListeners } from '@bryntum/scheduler-thin';
4
+ import { processWidgetContent } from './WrapperHelper.js';
5
+ export declare type BryntumResourceComboProps = {
6
+ adopt?: HTMLElement | string;
7
+ align?: AlignSpec | string;
8
+ alignSelf?: string;
9
+ anchor?: boolean;
10
+ appendTo?: HTMLElement | string;
11
+ ariaDescription?: string;
12
+ ariaLabel?: string;
13
+ autoComplete?: string;
14
+ autoExpand?: boolean;
15
+ autoSelect?: boolean;
16
+ badge?: string;
17
+ bubbleEvents?: object;
18
+ cacheLastResult?: number | string | Duration | DurationConfig;
19
+ callOnFunctions?: boolean;
20
+ caseSensitive?: boolean;
21
+ catchEventHandlerExceptions?: boolean;
22
+ centered?: boolean;
23
+ chipView?: ChipViewConfig;
24
+ clearable?: boolean | FieldTriggerConfig;
25
+ clearTextOnPickerHide?: boolean;
26
+ clearTextOnSelection?: boolean;
27
+ clearWhenInputEmpty?: boolean;
28
+ cls?: string | object;
29
+ color?: string;
30
+ column?: number;
31
+ config?: object;
32
+ constrainTo?: HTMLElement | Widget | Rectangle;
33
+ container?: Record<string, SchedulerContainerItemConfig> | SchedulerContainerItemConfig[] | FieldContainerConfig | FieldContainer;
34
+ containValues?: boolean | string | ((field: Field) => boolean);
35
+ contentElementCls?: string | object;
36
+ createOnUnmatched?: ((name: string, combo: Combo) => Model) | string | boolean;
37
+ dataField?: string;
38
+ dataset?: Record<string, string>;
39
+ defaultBindProperty?: string;
40
+ detectCSSCompatibilityIssues?: boolean;
41
+ disabled?: boolean | 'inert';
42
+ displayField?: string;
43
+ displayValueRenderer?: (record: Model | ComboModel, combo: Combo) => string | void;
44
+ dock?: 'top' | 'bottom' | 'left' | 'right' | 'start' | 'end' | 'header' | 'pre-header' | object;
45
+ draggable?: boolean | {
46
+ handleSelector?: string;
47
+ };
48
+ editable?: boolean;
49
+ elementAttributes?: Record<string, string | null>;
50
+ emptyText?: string;
51
+ encodeFilterParams?: (filters: object[]) => object[];
52
+ extraData?: any;
53
+ filterOnEnter?: boolean;
54
+ filterOperator?: CollectionCompareOperator;
55
+ filterParamName?: string;
56
+ filterSelected?: boolean;
57
+ flex?: number | string;
58
+ floating?: boolean;
59
+ height?: string | number;
60
+ hidden?: boolean;
61
+ hideAnimation?: boolean | object;
62
+ hidePickerOnSelect?: boolean;
63
+ hideTrigger?: boolean;
64
+ highlightExternalChange?: boolean;
65
+ hint?: string | ((data: {
66
+ source: Field;
67
+ value: any;
68
+ }) => string);
69
+ hintHtml?: string | ((data: {
70
+ source: Field;
71
+ value: any;
72
+ }) => string);
73
+ id?: string;
74
+ ignoreParentReadOnly?: boolean;
75
+ inline?: boolean;
76
+ inlinePicker?: boolean;
77
+ inputAlign?: string;
78
+ inputAttributes?: Record<string, string>;
79
+ inputTag?: string;
80
+ inputType?: string;
81
+ inputWidth?: string | number;
82
+ insertBefore?: HTMLElement | string;
83
+ insertFirst?: HTMLElement | string;
84
+ items?: object[] | string[] | object;
85
+ keyMap?: Record<string, KeyMapConfig>;
86
+ keyStrokeChangeDelay?: number;
87
+ keyStrokeFilterDelay?: number;
88
+ label?: string;
89
+ labelCls?: string | object;
90
+ labelPosition?: 'before' | 'above' | null;
91
+ labels?: object[];
92
+ labelWidth?: string | number;
93
+ listCls?: string;
94
+ listeners?: ResourceComboListeners;
95
+ listItemTpl?: (record: Model | ComboModel) => string | void;
96
+ localeClass?: typeof Base;
97
+ localizable?: boolean;
98
+ localizableProperties?: string[];
99
+ margin?: number | string;
100
+ maskDefaults?: MaskConfig;
101
+ masked?: boolean | string | MaskConfig;
102
+ maxHeight?: string | number;
103
+ maximizeOnMobile?: number | string;
104
+ maxLength?: number;
105
+ maxWidth?: string | number;
106
+ minChars?: number;
107
+ minHeight?: string | number;
108
+ minLength?: number;
109
+ minWidth?: string | number;
110
+ monitorResize?: boolean | {
111
+ immediate?: boolean;
112
+ };
113
+ multiSelect?: boolean;
114
+ multiValueSeparator?: string;
115
+ name?: string;
116
+ overlayAnchor?: boolean;
117
+ owner?: Widget | any;
118
+ picker?: ListConfig | List;
119
+ pickerAlignElement?: string;
120
+ pickerWidth?: number | string;
121
+ placeholder?: string;
122
+ positioned?: boolean;
123
+ preventTooltipOnTouch?: boolean;
124
+ primaryFilter?: CollectionFilterConfig;
125
+ readOnly?: boolean;
126
+ relayStoreEvents?: boolean;
127
+ rendition?: 'outlined' | 'filled' | string;
128
+ required?: boolean;
129
+ revertOnEscape?: boolean;
130
+ ripple?: boolean | {
131
+ delegate?: string;
132
+ color?: string;
133
+ radius?: number;
134
+ clip?: string;
135
+ };
136
+ rootElement?: ShadowRoot | HTMLElement;
137
+ rtl?: boolean;
138
+ scrollAction?: 'hide' | 'realign' | null;
139
+ showAnimation?: boolean | object;
140
+ showEventColor?: boolean;
141
+ showRequiredIndicator?: string;
142
+ showTooltipWhenDisabled?: boolean;
143
+ skipValidation?: boolean;
144
+ span?: number;
145
+ spellCheck?: boolean;
146
+ store?: Store | StoreConfig;
147
+ tab?: boolean | TabConfig;
148
+ tabIndex?: number;
149
+ textAlign?: 'left' | 'center' | 'right' | 'start' | 'end';
150
+ title?: string;
151
+ tooltip?: string | TooltipConfig | null;
152
+ triggerAction?: 'all' | 'last' | null;
153
+ triggers?: Record<string, FieldTriggerConfig> | Record<string, Widget>;
154
+ type?: 'resourcecombo';
155
+ ui?: string | object;
156
+ validateFilter?: boolean;
157
+ validateOnInput?: boolean;
158
+ value?: string | number | string[] | number[];
159
+ valueField?: string | null;
160
+ weight?: number;
161
+ width?: string | number;
162
+ x?: number;
163
+ y?: number;
164
+ onAction?: ((event: {
165
+ source: Combo;
166
+ value: any;
167
+ record: Model;
168
+ records: Model[];
169
+ userAction: boolean;
170
+ }) => void) | string;
171
+ onBeforeDestroy?: ((event: {
172
+ source: Base;
173
+ }) => void) | string;
174
+ onBeforeHide?: ((event: {
175
+ source: Widget;
176
+ }) => Promise<boolean> | boolean | void) | string;
177
+ onBeforeShow?: ((event: {
178
+ source: Widget | any;
179
+ }) => Promise<boolean> | boolean | void) | string;
180
+ onCatchAll?: ((event: {
181
+ [key: string]: any;
182
+ type: string;
183
+ }) => void) | string;
184
+ onChange?: ((event: {
185
+ source: Field | any;
186
+ value: string | number | boolean | any;
187
+ oldValue: string | number | boolean | any;
188
+ valid: boolean;
189
+ event: Event;
190
+ userAction: boolean;
191
+ checked: boolean;
192
+ }) => void) | string;
193
+ onClear?: ((event: {
194
+ source: Field | any;
195
+ }) => void) | string;
196
+ onDestroy?: ((event: {
197
+ source: Base;
198
+ }) => void) | string;
199
+ onElementCreated?: ((event: {
200
+ element: HTMLElement;
201
+ }) => void) | string;
202
+ onFocusIn?: ((event: {
203
+ source: Widget;
204
+ fromElement: HTMLElement;
205
+ toElement: HTMLElement;
206
+ fromWidget: Widget;
207
+ toWidget: Widget;
208
+ backwards: boolean;
209
+ }) => void) | string;
210
+ onFocusOut?: ((event: {
211
+ source: Widget;
212
+ fromElement: HTMLElement;
213
+ toElement: HTMLElement;
214
+ fromWidget: Widget;
215
+ toWidget: Widget;
216
+ backwards: boolean;
217
+ }) => void) | string;
218
+ onHide?: ((event: {
219
+ source: Widget;
220
+ }) => void) | string;
221
+ onInput?: ((event: {
222
+ source: Combo;
223
+ value: string;
224
+ event: Event;
225
+ }) => void) | string;
226
+ onPaint?: ((event: {
227
+ source: Widget;
228
+ firstPaint: boolean;
229
+ }) => void) | string;
230
+ onReadOnly?: ((event: {
231
+ readOnly: boolean;
232
+ }) => void) | string;
233
+ onRecompose?: (() => void) | string;
234
+ onResize?: ((event: {
235
+ source: Widget;
236
+ width: number;
237
+ height: number;
238
+ oldWidth: number;
239
+ oldHeight: number;
240
+ }) => void) | string;
241
+ onSelect?: ((event: {
242
+ source: Combo;
243
+ record: Model;
244
+ records: Model[];
245
+ userAction: boolean;
246
+ }) => void) | string;
247
+ onShow?: ((event: {
248
+ source: Widget;
249
+ }) => void) | string;
250
+ onTrigger?: ((event: {
251
+ source: Field | any;
252
+ trigger: Widget;
253
+ }) => void) | string;
254
+ };
255
+ export declare class BryntumResourceCombo extends React.Component<BryntumResourceComboProps> {
256
+ static instanceClass: typeof ResourceCombo;
257
+ static instanceName: string;
258
+ processWidgetContent: typeof processWidgetContent;
259
+ static configNames: string[];
260
+ static propertyConfigNames: string[];
261
+ static propertyNames: string[];
262
+ instance: ResourceCombo;
263
+ element: HTMLElement;
264
+ componentDidMount(): void;
265
+ componentWillUnmount(): void;
266
+ shouldComponentUpdate(nextProps: Readonly<BryntumResourceComboProps>, nextState: Readonly<{}>): boolean;
267
+ render(): React.ReactNode;
268
+ }
@@ -0,0 +1,203 @@
1
+ import React from 'react';
2
+ import { ResourceCombo } from '@bryntum/scheduler-thin';
3
+ import { createWidget, shouldComponentUpdate, processWidgetContent } from './WrapperHelper.js';
4
+ export class BryntumResourceCombo extends React.Component {
5
+ constructor() {
6
+ super(...arguments);
7
+ this.processWidgetContent = processWidgetContent;
8
+ }
9
+ componentDidMount() {
10
+ this.instance = createWidget(this);
11
+ }
12
+ componentWillUnmount() {
13
+ var _a, _b;
14
+ (_b = (_a = this.instance) === null || _a === void 0 ? void 0 : _a.destroy) === null || _b === void 0 ? void 0 : _b.call(_a);
15
+ }
16
+ shouldComponentUpdate(nextProps, nextState) {
17
+ return shouldComponentUpdate(this, nextProps, nextState);
18
+ }
19
+ render() {
20
+ const className = `b-react-resource-combo-container`;
21
+ return (React.createElement("div", { className: className, ref: (element) => (this.element = element) }));
22
+ }
23
+ }
24
+ BryntumResourceCombo.instanceClass = ResourceCombo;
25
+ BryntumResourceCombo.instanceName = 'ResourceCombo';
26
+ BryntumResourceCombo.configNames = [
27
+ 'adopt',
28
+ 'align',
29
+ 'anchor',
30
+ 'ariaDescription',
31
+ 'ariaLabel',
32
+ 'autoComplete',
33
+ 'autoExpand',
34
+ 'autoSelect',
35
+ 'bubbleEvents',
36
+ 'cacheLastResult',
37
+ 'caseSensitive',
38
+ 'centered',
39
+ 'chipView',
40
+ 'clearable',
41
+ 'clearTextOnPickerHide',
42
+ 'clearTextOnSelection',
43
+ 'clearWhenInputEmpty',
44
+ 'color',
45
+ 'config',
46
+ 'constrainTo',
47
+ 'container',
48
+ 'containValues',
49
+ 'contentElementCls',
50
+ 'createOnUnmatched',
51
+ 'dataField',
52
+ 'defaultBindProperty',
53
+ 'detectCSSCompatibilityIssues',
54
+ 'displayField',
55
+ 'displayValueRenderer',
56
+ 'dock',
57
+ 'draggable',
58
+ 'elementAttributes',
59
+ 'emptyText',
60
+ 'encodeFilterParams',
61
+ 'filterOnEnter',
62
+ 'filterParamName',
63
+ 'filterSelected',
64
+ 'floating',
65
+ 'hideAnimation',
66
+ 'hidePickerOnSelect',
67
+ 'hideTrigger',
68
+ 'highlightExternalChange',
69
+ 'hint',
70
+ 'hintHtml',
71
+ 'ignoreParentReadOnly',
72
+ 'inline',
73
+ 'inlinePicker',
74
+ 'inputAlign',
75
+ 'inputAttributes',
76
+ 'inputTag',
77
+ 'inputType',
78
+ 'inputWidth',
79
+ 'items',
80
+ 'keyStrokeChangeDelay',
81
+ 'keyStrokeFilterDelay',
82
+ 'labelCls',
83
+ 'labelPosition',
84
+ 'labels',
85
+ 'labelWidth',
86
+ 'listCls',
87
+ 'listeners',
88
+ 'listItemTpl',
89
+ 'localeClass',
90
+ 'localizable',
91
+ 'localizableProperties',
92
+ 'maskDefaults',
93
+ 'masked',
94
+ 'maxLength',
95
+ 'minChars',
96
+ 'minLength',
97
+ 'monitorResize',
98
+ 'multiValueSeparator',
99
+ 'name',
100
+ 'overlayAnchor',
101
+ 'owner',
102
+ 'pickerAlignElement',
103
+ 'pickerWidth',
104
+ 'positioned',
105
+ 'preventTooltipOnTouch',
106
+ 'primaryFilter',
107
+ 'relayStoreEvents',
108
+ 'revertOnEscape',
109
+ 'ripple',
110
+ 'rootElement',
111
+ 'scrollAction',
112
+ 'showAnimation',
113
+ 'showEventColor',
114
+ 'showTooltipWhenDisabled',
115
+ 'skipValidation',
116
+ 'spellCheck',
117
+ 'tab',
118
+ 'tabIndex',
119
+ 'textAlign',
120
+ 'title',
121
+ 'triggerAction',
122
+ 'type',
123
+ 'ui',
124
+ 'validateFilter',
125
+ 'validateOnInput',
126
+ 'valueField',
127
+ 'weight'
128
+ ];
129
+ BryntumResourceCombo.propertyConfigNames = [
130
+ 'alignSelf',
131
+ 'appendTo',
132
+ 'badge',
133
+ 'callOnFunctions',
134
+ 'catchEventHandlerExceptions',
135
+ 'cls',
136
+ 'column',
137
+ 'dataset',
138
+ 'disabled',
139
+ 'editable',
140
+ 'extraData',
141
+ 'filterOperator',
142
+ 'flex',
143
+ 'height',
144
+ 'hidden',
145
+ 'id',
146
+ 'insertBefore',
147
+ 'insertFirst',
148
+ 'keyMap',
149
+ 'label',
150
+ 'margin',
151
+ 'maxHeight',
152
+ 'maximizeOnMobile',
153
+ 'maxWidth',
154
+ 'minHeight',
155
+ 'minWidth',
156
+ 'multiSelect',
157
+ 'onAction',
158
+ 'onBeforeDestroy',
159
+ 'onBeforeHide',
160
+ 'onBeforeShow',
161
+ 'onCatchAll',
162
+ 'onChange',
163
+ 'onClear',
164
+ 'onDestroy',
165
+ 'onElementCreated',
166
+ 'onFocusIn',
167
+ 'onFocusOut',
168
+ 'onHide',
169
+ 'onInput',
170
+ 'onPaint',
171
+ 'onReadOnly',
172
+ 'onRecompose',
173
+ 'onResize',
174
+ 'onSelect',
175
+ 'onShow',
176
+ 'onTrigger',
177
+ 'picker',
178
+ 'placeholder',
179
+ 'readOnly',
180
+ 'rendition',
181
+ 'required',
182
+ 'rtl',
183
+ 'showRequiredIndicator',
184
+ 'span',
185
+ 'store',
186
+ 'tooltip',
187
+ 'triggers',
188
+ 'value',
189
+ 'width',
190
+ 'x',
191
+ 'y'
192
+ ];
193
+ BryntumResourceCombo.propertyNames = [
194
+ 'anchorSize',
195
+ 'content',
196
+ 'focusVisible',
197
+ 'formula',
198
+ 'html',
199
+ 'input',
200
+ 'parent',
201
+ 'scrollable'
202
+ ];
203
+ //# sourceMappingURL=BryntumResourceCombo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BryntumResourceCombo.js","sourceRoot":"","sources":["../src/BryntumResourceCombo.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAoB,MAAM,OAAO,CAAC;AAEzC,OAAO,EAAgC,aAAa,EAA0B,MAAM,yBAAyB,CAAC;AAE9G,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AA6+B/F,MAAM,OAAO,oBAAqB,SAAQ,KAAK,C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;IACR,WAAW;IACX,QAAQ;IACR,aAAa;IACb,UAAU;IACV,WAAW;IACX,UAAU;IACV,KAAK;IACL,uBAAuB;IACvB,MAAM;IACN,OAAO;IACP,SAAS;IACT,UAAU;IACV,OAAO;IACP,OAAO;IACP,GAAG;IACH,GAAG;CACN,CAAC;AAEK,kCAAa,GAAG;IACnB,YAAY;IACZ,SAAS;IACT,cAAc;IACd,SAAS;IACT,MAAM;IACN,OAAO;IACP,QAAQ;IACR,YAAY;CACf,CAAC"}
@@ -0,0 +1,215 @@
1
+ import React from 'react';
2
+ import { AlignSpec, Base, Collection, CollectionConfig, DomConfig, Field, KeyMapConfig, List, MaskConfig, Model, Rectangle, Scroller, ScrollerConfig, Store, StoreConfig, TabConfig, TooltipConfig, VueConfig, Widget } from '@bryntum/core-thin';
3
+ import { EventStore, ResourceFilter, ResourceFilterListeners, ResourceModel } from '@bryntum/scheduler-thin';
4
+ import { processWidgetContent } from './WrapperHelper.js';
5
+ export declare type BryntumResourceFilterProps = {
6
+ activateOnMouseover?: boolean;
7
+ adopt?: HTMLElement | string;
8
+ align?: AlignSpec | string;
9
+ alignSelf?: string;
10
+ allowGroupSelect?: boolean;
11
+ anchor?: boolean;
12
+ appendTo?: HTMLElement | string;
13
+ ariaDescription?: string;
14
+ ariaLabel?: string;
15
+ bubbleEvents?: object;
16
+ callOnFunctions?: boolean;
17
+ catchEventHandlerExceptions?: boolean;
18
+ centered?: boolean;
19
+ clearSelectionOnEmptySpaceClick?: boolean;
20
+ cls?: string | object;
21
+ collapsibleGroups?: boolean;
22
+ color?: string;
23
+ column?: number;
24
+ config?: object;
25
+ constrainTo?: HTMLElement | Widget | Rectangle;
26
+ content?: string;
27
+ contentElementCls?: string | object;
28
+ dataField?: string;
29
+ dataset?: Record<string, string>;
30
+ defaultBindProperty?: string;
31
+ detectCSSCompatibilityIssues?: boolean;
32
+ disabled?: boolean | 'inert';
33
+ displayField?: string;
34
+ dock?: 'top' | 'bottom' | 'left' | 'right' | 'start' | 'end' | 'header' | 'pre-header' | object;
35
+ draggable?: boolean | {
36
+ handleSelector?: string;
37
+ };
38
+ elementAttributes?: Record<string, string | null>;
39
+ emptyText?: string;
40
+ eventStore?: EventStore;
41
+ extraData?: any;
42
+ filterResources?: boolean;
43
+ flex?: number | string;
44
+ floating?: boolean;
45
+ getItemCls?: ((record: Model) => string) | string;
46
+ getItemStyle?: ((record: Model) => string) | string;
47
+ groupHeaderTpl?: (record: Model, groupName: string) => string;
48
+ height?: string | number;
49
+ hidden?: boolean;
50
+ hideAnimation?: boolean | object;
51
+ html?: string | ((widget: Widget) => string) | DomConfig | DomConfig[] | VueConfig;
52
+ htmlCls?: string | object;
53
+ id?: string;
54
+ ignoreParentReadOnly?: boolean;
55
+ insertBefore?: HTMLElement | string;
56
+ insertFirst?: HTMLElement | string;
57
+ isSelectable?: (() => boolean) | string;
58
+ items?: object[];
59
+ itemTpl?: ((record: Model) => string) | string;
60
+ keyMap?: Record<string, KeyMapConfig>;
61
+ listeners?: ResourceFilterListeners;
62
+ localeClass?: typeof Base;
63
+ localizable?: boolean;
64
+ localizableProperties?: string[];
65
+ margin?: number | string;
66
+ maskDefaults?: MaskConfig;
67
+ masked?: boolean | string | MaskConfig;
68
+ masterFilter?: ((resource: ResourceModel) => boolean) | string;
69
+ maxHeight?: string | number;
70
+ maximizeOnMobile?: number | string;
71
+ maxWidth?: string | number;
72
+ minHeight?: string | number;
73
+ minWidth?: string | number;
74
+ monitorResize?: boolean | {
75
+ immediate?: boolean;
76
+ };
77
+ multiSelect?: boolean;
78
+ owner?: Widget | any;
79
+ positioned?: boolean;
80
+ preventTooltipOnTouch?: boolean;
81
+ readOnly?: boolean;
82
+ relayStoreEvents?: boolean;
83
+ ripple?: boolean | {
84
+ delegate?: string;
85
+ color?: string;
86
+ radius?: number;
87
+ clip?: string;
88
+ };
89
+ rootElement?: ShadowRoot | HTMLElement;
90
+ rtl?: boolean;
91
+ scrollable?: boolean | ScrollerConfig | Scroller;
92
+ scrollAction?: 'hide' | 'realign' | null;
93
+ selectAllItem?: boolean | string;
94
+ selected?: object[] | number[] | string[] | Collection | CollectionConfig | CollectionConfig[];
95
+ showAnimation?: boolean | object;
96
+ showTooltipWhenDisabled?: boolean;
97
+ span?: number;
98
+ store?: object | object[] | StoreConfig | Store | StoreConfig[];
99
+ tab?: boolean | TabConfig;
100
+ tag?: string;
101
+ textAlign?: 'left' | 'center' | 'right' | 'start' | 'end';
102
+ title?: string;
103
+ toggleAllIfCtrlPressed?: boolean;
104
+ tooltip?: string | TooltipConfig | null;
105
+ tooltipTemplate?: (record: Model) => string;
106
+ type?: 'resourceFilter' | 'resourcefilter';
107
+ ui?: string | object;
108
+ useResourceColor?: boolean;
109
+ virtualize?: boolean | number;
110
+ weight?: number;
111
+ width?: string | number;
112
+ x?: number;
113
+ y?: number;
114
+ onBeforeDestroy?: ((event: {
115
+ source: Base;
116
+ }) => void) | string;
117
+ onBeforeHide?: ((event: {
118
+ source: Widget;
119
+ }) => Promise<boolean> | boolean | void) | string;
120
+ onBeforeItem?: ((event: {
121
+ source: List;
122
+ item: HTMLElement;
123
+ record: Model;
124
+ index: number;
125
+ event: Event;
126
+ }) => Promise<boolean> | boolean | void) | string;
127
+ onBeforeShow?: ((event: {
128
+ source: Widget | any;
129
+ }) => Promise<boolean> | boolean | void) | string;
130
+ onCatchAll?: ((event: {
131
+ [key: string]: any;
132
+ type: string;
133
+ }) => void) | string;
134
+ onChange?: ((event: {
135
+ value: string;
136
+ oldValue: string;
137
+ source: Field;
138
+ }) => void) | string;
139
+ onDestroy?: ((event: {
140
+ source: Base;
141
+ }) => void) | string;
142
+ onElementCreated?: ((event: {
143
+ element: HTMLElement;
144
+ }) => void) | string;
145
+ onFocusIn?: ((event: {
146
+ source: Widget;
147
+ fromElement: HTMLElement;
148
+ toElement: HTMLElement;
149
+ fromWidget: Widget;
150
+ toWidget: Widget;
151
+ backwards: boolean;
152
+ }) => void) | string;
153
+ onFocusOut?: ((event: {
154
+ source: Widget;
155
+ fromElement: HTMLElement;
156
+ toElement: HTMLElement;
157
+ fromWidget: Widget;
158
+ toWidget: Widget;
159
+ backwards: boolean;
160
+ }) => void) | string;
161
+ onHide?: ((event: {
162
+ source: Widget;
163
+ }) => void) | string;
164
+ onItem?: ((event: {
165
+ source: List;
166
+ item: HTMLElement;
167
+ record: Model;
168
+ index: number;
169
+ event: Event;
170
+ }) => void) | string;
171
+ onPaint?: ((event: {
172
+ source: Widget;
173
+ firstPaint: boolean;
174
+ }) => void) | string;
175
+ onReadOnly?: ((event: {
176
+ readOnly: boolean;
177
+ }) => void) | string;
178
+ onRecompose?: (() => void) | string;
179
+ onResize?: ((event: {
180
+ source: Widget;
181
+ width: number;
182
+ height: number;
183
+ oldWidth: number;
184
+ oldHeight: number;
185
+ }) => void) | string;
186
+ onSelectionChange?: ((event: {
187
+ source: List;
188
+ selected: Model[];
189
+ }) => void) | string;
190
+ onShow?: ((event: {
191
+ source: Widget;
192
+ }) => void) | string;
193
+ onToggleGroup?: ((event: {
194
+ groupRecord: Model;
195
+ collapse: boolean;
196
+ }) => void) | string;
197
+ onToggleNode?: ((event: {
198
+ record: Model;
199
+ collapse: boolean;
200
+ }) => void) | string;
201
+ };
202
+ export declare class BryntumResourceFilter extends React.Component<BryntumResourceFilterProps> {
203
+ static instanceClass: typeof ResourceFilter;
204
+ static instanceName: string;
205
+ processWidgetContent: typeof processWidgetContent;
206
+ static configNames: string[];
207
+ static propertyConfigNames: string[];
208
+ static propertyNames: string[];
209
+ instance: ResourceFilter;
210
+ element: HTMLElement;
211
+ componentDidMount(): void;
212
+ componentWillUnmount(): void;
213
+ shouldComponentUpdate(nextProps: Readonly<BryntumResourceFilterProps>, nextState: Readonly<{}>): boolean;
214
+ render(): React.ReactNode;
215
+ }