@bryntum/gantt-react 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.
- package/README.md +52 -0
- package/lib/BryntumAIFilterField.d.ts +231 -0
- package/lib/BryntumAIFilterField.js +168 -0
- package/lib/BryntumAIFilterField.js.map +1 -0
- package/lib/BryntumAssignmentField.d.ts +271 -0
- package/lib/BryntumAssignmentField.js +204 -0
- package/lib/BryntumAssignmentField.js.map +1 -0
- package/lib/BryntumAssignmentGrid.d.ts +834 -0
- package/lib/BryntumAssignmentGrid.js +283 -0
- package/lib/BryntumAssignmentGrid.js.map +1 -0
- package/lib/BryntumButton.d.ts +206 -0
- package/lib/BryntumButton.js +148 -0
- package/lib/BryntumButton.js.map +1 -0
- package/lib/BryntumButtonGroup.d.ts +201 -0
- package/lib/BryntumButtonGroup.js +154 -0
- package/lib/BryntumButtonGroup.js.map +1 -0
- package/lib/BryntumCalendarEditor.d.ts +259 -0
- package/lib/BryntumCalendarEditor.js +187 -0
- package/lib/BryntumCalendarEditor.js.map +1 -0
- package/lib/BryntumCalendarField.d.ts +268 -0
- package/lib/BryntumCalendarField.js +204 -0
- package/lib/BryntumCalendarField.js.map +1 -0
- package/lib/BryntumCalendarPicker.d.ts +266 -0
- package/lib/BryntumCalendarPicker.js +202 -0
- package/lib/BryntumCalendarPicker.js.map +1 -0
- package/lib/BryntumChatPanel.d.ts +246 -0
- package/lib/BryntumChatPanel.js +178 -0
- package/lib/BryntumChatPanel.js.map +1 -0
- package/lib/BryntumCheckbox.d.ts +239 -0
- package/lib/BryntumCheckbox.js +168 -0
- package/lib/BryntumCheckbox.js.map +1 -0
- package/lib/BryntumCheckboxGroup.d.ts +249 -0
- package/lib/BryntumCheckboxGroup.js +182 -0
- package/lib/BryntumCheckboxGroup.js.map +1 -0
- package/lib/BryntumChecklistFilterCombo.d.ts +268 -0
- package/lib/BryntumChecklistFilterCombo.js +205 -0
- package/lib/BryntumChecklistFilterCombo.js.map +1 -0
- package/lib/BryntumChipView.d.ts +208 -0
- package/lib/BryntumChipView.js +152 -0
- package/lib/BryntumChipView.js.map +1 -0
- package/lib/BryntumCodeEditor.d.ts +237 -0
- package/lib/BryntumCodeEditor.js +176 -0
- package/lib/BryntumCodeEditor.js.map +1 -0
- package/lib/BryntumColorField.d.ts +231 -0
- package/lib/BryntumColorField.js +169 -0
- package/lib/BryntumColorField.js.map +1 -0
- package/lib/BryntumCombo.d.ts +266 -0
- package/lib/BryntumCombo.js +202 -0
- package/lib/BryntumCombo.js.map +1 -0
- package/lib/BryntumConstraintTypePicker.d.ts +266 -0
- package/lib/BryntumConstraintTypePicker.js +202 -0
- package/lib/BryntumConstraintTypePicker.js.map +1 -0
- package/lib/BryntumContainer.d.ts +185 -0
- package/lib/BryntumContainer.js +148 -0
- package/lib/BryntumContainer.js.map +1 -0
- package/lib/BryntumCostAccrualField.d.ts +266 -0
- package/lib/BryntumCostAccrualField.js +202 -0
- package/lib/BryntumCostAccrualField.js.map +1 -0
- package/lib/BryntumDateField.d.ts +241 -0
- package/lib/BryntumDateField.js +178 -0
- package/lib/BryntumDateField.js.map +1 -0
- package/lib/BryntumDatePicker.d.ts +310 -0
- package/lib/BryntumDatePicker.js +213 -0
- package/lib/BryntumDatePicker.js.map +1 -0
- package/lib/BryntumDateRangeField.d.ts +242 -0
- package/lib/BryntumDateRangeField.js +179 -0
- package/lib/BryntumDateRangeField.js.map +1 -0
- package/lib/BryntumDateTimeField.d.ts +222 -0
- package/lib/BryntumDateTimeField.js +158 -0
- package/lib/BryntumDateTimeField.js.map +1 -0
- package/lib/BryntumDemoCodeEditor.d.ts +240 -0
- package/lib/BryntumDemoCodeEditor.js +179 -0
- package/lib/BryntumDemoCodeEditor.js.map +1 -0
- package/lib/BryntumDemoHeader.d.ts +30 -0
- package/lib/BryntumDemoHeader.js +84 -0
- package/lib/BryntumDemoHeader.js.map +1 -0
- package/lib/BryntumDependencyField.d.ts +273 -0
- package/lib/BryntumDependencyField.js +209 -0
- package/lib/BryntumDependencyField.js.map +1 -0
- package/lib/BryntumDependencyTypePicker.d.ts +266 -0
- package/lib/BryntumDependencyTypePicker.js +202 -0
- package/lib/BryntumDependencyTypePicker.js.map +1 -0
- package/lib/BryntumDisplayField.d.ts +227 -0
- package/lib/BryntumDisplayField.js +163 -0
- package/lib/BryntumDisplayField.js.map +1 -0
- package/lib/BryntumDurationField.d.ts +234 -0
- package/lib/BryntumDurationField.js +175 -0
- package/lib/BryntumDurationField.js.map +1 -0
- package/lib/BryntumEditor.d.ts +249 -0
- package/lib/BryntumEditor.js +167 -0
- package/lib/BryntumEditor.js.map +1 -0
- package/lib/BryntumEffortField.d.ts +234 -0
- package/lib/BryntumEffortField.js +175 -0
- package/lib/BryntumEffortField.js.map +1 -0
- package/lib/BryntumEndDateField.d.ts +243 -0
- package/lib/BryntumEndDateField.js +180 -0
- package/lib/BryntumEndDateField.js.map +1 -0
- package/lib/BryntumEventColorField.d.ts +231 -0
- package/lib/BryntumEventColorField.js +169 -0
- package/lib/BryntumEventColorField.js.map +1 -0
- package/lib/BryntumFieldFilterPicker.d.ts +202 -0
- package/lib/BryntumFieldFilterPicker.js +161 -0
- package/lib/BryntumFieldFilterPicker.js.map +1 -0
- package/lib/BryntumFieldFilterPickerGroup.d.ts +207 -0
- package/lib/BryntumFieldFilterPickerGroup.js +164 -0
- package/lib/BryntumFieldFilterPickerGroup.js.map +1 -0
- package/lib/BryntumFieldSet.d.ts +235 -0
- package/lib/BryntumFieldSet.js +174 -0
- package/lib/BryntumFieldSet.js.map +1 -0
- package/lib/BryntumFileField.d.ts +228 -0
- package/lib/BryntumFileField.js +164 -0
- package/lib/BryntumFileField.js.map +1 -0
- package/lib/BryntumFilePicker.d.ts +192 -0
- package/lib/BryntumFilePicker.js +153 -0
- package/lib/BryntumFilePicker.js.map +1 -0
- package/lib/BryntumFilterField.d.ts +234 -0
- package/lib/BryntumFilterField.js +171 -0
- package/lib/BryntumFilterField.js.map +1 -0
- package/lib/BryntumFullscreenButton.d.ts +8 -0
- package/lib/BryntumFullscreenButton.js +37 -0
- package/lib/BryntumFullscreenButton.js.map +1 -0
- package/lib/BryntumGantt.d.ts +1772 -0
- package/lib/BryntumGantt.js +601 -0
- package/lib/BryntumGantt.js.map +1 -0
- package/lib/BryntumGanttBase.d.ts +1771 -0
- package/lib/BryntumGanttBase.js +600 -0
- package/lib/BryntumGanttBase.js.map +1 -0
- package/lib/BryntumGanttProjectModel.d.ts +303 -0
- package/lib/BryntumGanttProjectModel.js +188 -0
- package/lib/BryntumGanttProjectModel.js.map +1 -0
- package/lib/BryntumGrid.d.ts +844 -0
- package/lib/BryntumGrid.js +335 -0
- package/lib/BryntumGrid.js.map +1 -0
- package/lib/BryntumGridBase.d.ts +842 -0
- package/lib/BryntumGridBase.js +333 -0
- package/lib/BryntumGridBase.js.map +1 -0
- package/lib/BryntumGridChartDesigner.d.ts +162 -0
- package/lib/BryntumGridChartDesigner.js +127 -0
- package/lib/BryntumGridChartDesigner.js.map +1 -0
- package/lib/BryntumGridFieldFilterPicker.d.ts +203 -0
- package/lib/BryntumGridFieldFilterPicker.js +162 -0
- package/lib/BryntumGridFieldFilterPicker.js.map +1 -0
- package/lib/BryntumGridFieldFilterPickerGroup.d.ts +206 -0
- package/lib/BryntumGridFieldFilterPickerGroup.js +163 -0
- package/lib/BryntumGridFieldFilterPickerGroup.js.map +1 -0
- package/lib/BryntumGroupBar.d.ts +208 -0
- package/lib/BryntumGroupBar.js +152 -0
- package/lib/BryntumGroupBar.js.map +1 -0
- package/lib/BryntumHint.d.ts +260 -0
- package/lib/BryntumHint.js +184 -0
- package/lib/BryntumHint.js.map +1 -0
- package/lib/BryntumLabel.d.ts +161 -0
- package/lib/BryntumLabel.js +126 -0
- package/lib/BryntumLabel.js.map +1 -0
- package/lib/BryntumList.d.ts +205 -0
- package/lib/BryntumList.js +149 -0
- package/lib/BryntumList.js.map +1 -0
- package/lib/BryntumMenu.d.ts +264 -0
- package/lib/BryntumMenu.js +187 -0
- package/lib/BryntumMenu.js.map +1 -0
- package/lib/BryntumModelCombo.d.ts +266 -0
- package/lib/BryntumModelCombo.js +202 -0
- package/lib/BryntumModelCombo.js.map +1 -0
- package/lib/BryntumMonthPicker.d.ts +240 -0
- package/lib/BryntumMonthPicker.js +173 -0
- package/lib/BryntumMonthPicker.js.map +1 -0
- package/lib/BryntumNumberField.d.ts +234 -0
- package/lib/BryntumNumberField.js +170 -0
- package/lib/BryntumNumberField.js.map +1 -0
- package/lib/BryntumPagingToolbar.d.ts +210 -0
- package/lib/BryntumPagingToolbar.js +156 -0
- package/lib/BryntumPagingToolbar.js.map +1 -0
- package/lib/BryntumPanel.d.ts +231 -0
- package/lib/BryntumPanel.js +170 -0
- package/lib/BryntumPanel.js.map +1 -0
- package/lib/BryntumPasswordField.d.ts +226 -0
- package/lib/BryntumPasswordField.js +162 -0
- package/lib/BryntumPasswordField.js.map +1 -0
- package/lib/BryntumProjectCombo.d.ts +267 -0
- package/lib/BryntumProjectCombo.js +203 -0
- package/lib/BryntumProjectCombo.js.map +1 -0
- package/lib/BryntumRadio.d.ts +239 -0
- package/lib/BryntumRadio.js +168 -0
- package/lib/BryntumRadio.js.map +1 -0
- package/lib/BryntumRadioGroup.d.ts +239 -0
- package/lib/BryntumRadioGroup.js +178 -0
- package/lib/BryntumRadioGroup.js.map +1 -0
- package/lib/BryntumRateTableField.d.ts +266 -0
- package/lib/BryntumRateTableField.js +202 -0
- package/lib/BryntumRateTableField.js.map +1 -0
- package/lib/BryntumResourceCombo.d.ts +267 -0
- package/lib/BryntumResourceCombo.js +203 -0
- package/lib/BryntumResourceCombo.js.map +1 -0
- package/lib/BryntumResourceEditor.d.ts +256 -0
- package/lib/BryntumResourceEditor.js +184 -0
- package/lib/BryntumResourceEditor.js.map +1 -0
- package/lib/BryntumResourceFilter.d.ts +214 -0
- package/lib/BryntumResourceFilter.js +154 -0
- package/lib/BryntumResourceFilter.js.map +1 -0
- package/lib/BryntumResourceGrid.d.ts +833 -0
- package/lib/BryntumResourceGrid.js +283 -0
- package/lib/BryntumResourceGrid.js.map +1 -0
- package/lib/BryntumResourceHistogram.d.ts +1263 -0
- package/lib/BryntumResourceHistogram.js +486 -0
- package/lib/BryntumResourceHistogram.js.map +1 -0
- package/lib/BryntumResourceTypeField.d.ts +266 -0
- package/lib/BryntumResourceTypeField.js +202 -0
- package/lib/BryntumResourceTypeField.js.map +1 -0
- package/lib/BryntumResourceUtilization.d.ts +1278 -0
- package/lib/BryntumResourceUtilization.js +489 -0
- package/lib/BryntumResourceUtilization.js.map +1 -0
- package/lib/BryntumScheduler.d.ts +2038 -0
- package/lib/BryntumScheduler.js +643 -0
- package/lib/BryntumScheduler.js.map +1 -0
- package/lib/BryntumSchedulerBase.d.ts +2037 -0
- package/lib/BryntumSchedulerBase.js +642 -0
- package/lib/BryntumSchedulerBase.js.map +1 -0
- package/lib/BryntumSchedulerDatePicker.d.ts +313 -0
- package/lib/BryntumSchedulerDatePicker.js +216 -0
- package/lib/BryntumSchedulerDatePicker.js.map +1 -0
- package/lib/BryntumSchedulerPro.d.ts +2269 -0
- package/lib/BryntumSchedulerPro.js +700 -0
- package/lib/BryntumSchedulerPro.js.map +1 -0
- package/lib/BryntumSchedulerProBase.d.ts +2268 -0
- package/lib/BryntumSchedulerProBase.js +699 -0
- package/lib/BryntumSchedulerProBase.js.map +1 -0
- package/lib/BryntumSchedulingDirectionPicker.d.ts +266 -0
- package/lib/BryntumSchedulingDirectionPicker.js +202 -0
- package/lib/BryntumSchedulingDirectionPicker.js.map +1 -0
- package/lib/BryntumSchedulingModePicker.d.ts +267 -0
- package/lib/BryntumSchedulingModePicker.js +203 -0
- package/lib/BryntumSchedulingModePicker.js.map +1 -0
- package/lib/BryntumSlideToggle.d.ts +239 -0
- package/lib/BryntumSlideToggle.js +168 -0
- package/lib/BryntumSlideToggle.js.map +1 -0
- package/lib/BryntumSlider.d.ts +184 -0
- package/lib/BryntumSlider.js +142 -0
- package/lib/BryntumSlider.js.map +1 -0
- package/lib/BryntumSplitter.d.ts +174 -0
- package/lib/BryntumSplitter.js +130 -0
- package/lib/BryntumSplitter.js.map +1 -0
- package/lib/BryntumStartDateField.d.ts +245 -0
- package/lib/BryntumStartDateField.js +182 -0
- package/lib/BryntumStartDateField.js.map +1 -0
- package/lib/BryntumTabPanel.d.ts +249 -0
- package/lib/BryntumTabPanel.js +178 -0
- package/lib/BryntumTabPanel.js.map +1 -0
- package/lib/BryntumTextAreaField.d.ts +228 -0
- package/lib/BryntumTextAreaField.js +164 -0
- package/lib/BryntumTextAreaField.js.map +1 -0
- package/lib/BryntumTextAreaPickerField.d.ts +232 -0
- package/lib/BryntumTextAreaPickerField.js +170 -0
- package/lib/BryntumTextAreaPickerField.js.map +1 -0
- package/lib/BryntumTextField.d.ts +229 -0
- package/lib/BryntumTextField.js +166 -0
- package/lib/BryntumTextField.js.map +1 -0
- package/lib/BryntumThemeCombo.d.ts +17 -0
- package/lib/BryntumThemeCombo.js +75 -0
- package/lib/BryntumThemeCombo.js.map +1 -0
- package/lib/BryntumTimeField.d.ts +238 -0
- package/lib/BryntumTimeField.js +175 -0
- package/lib/BryntumTimeField.js.map +1 -0
- package/lib/BryntumTimePicker.d.ts +192 -0
- package/lib/BryntumTimePicker.js +154 -0
- package/lib/BryntumTimePicker.js.map +1 -0
- package/lib/BryntumTimeline.d.ts +2019 -0
- package/lib/BryntumTimeline.js +553 -0
- package/lib/BryntumTimeline.js.map +1 -0
- package/lib/BryntumTimelineHistogram.d.ts +1183 -0
- package/lib/BryntumTimelineHistogram.js +448 -0
- package/lib/BryntumTimelineHistogram.js.map +1 -0
- package/lib/BryntumToolbar.d.ts +209 -0
- package/lib/BryntumToolbar.js +155 -0
- package/lib/BryntumToolbar.js.map +1 -0
- package/lib/BryntumTreeCombo.d.ts +266 -0
- package/lib/BryntumTreeCombo.js +202 -0
- package/lib/BryntumTreeCombo.js.map +1 -0
- package/lib/BryntumTreeGrid.d.ts +843 -0
- package/lib/BryntumTreeGrid.js +334 -0
- package/lib/BryntumTreeGrid.js.map +1 -0
- package/lib/BryntumUndoRedo.d.ts +189 -0
- package/lib/BryntumUndoRedo.js +152 -0
- package/lib/BryntumUndoRedo.js.map +1 -0
- package/lib/BryntumVersionGrid.d.ts +844 -0
- package/lib/BryntumVersionGrid.js +289 -0
- package/lib/BryntumVersionGrid.js.map +1 -0
- package/lib/BryntumViewPresetCombo.d.ts +215 -0
- package/lib/BryntumViewPresetCombo.js +158 -0
- package/lib/BryntumViewPresetCombo.js.map +1 -0
- package/lib/BryntumWidget.d.ts +160 -0
- package/lib/BryntumWidget.js +125 -0
- package/lib/BryntumWidget.js.map +1 -0
- package/lib/BryntumYearPicker.d.ts +240 -0
- package/lib/BryntumYearPicker.js +177 -0
- package/lib/BryntumYearPicker.js.map +1 -0
- package/lib/WrapperHelper.d.ts +26 -0
- package/lib/WrapperHelper.js +569 -0
- package/lib/WrapperHelper.js.map +1 -0
- package/lib/index.d.ts +98 -0
- package/lib/index.js +99 -0
- package/lib/index.js.map +1 -0
- package/license.pdf +0 -0
- package/licenses.md +310 -0
- package/package.json +25 -0
- package/src/BryntumAIFilterField.tsx +998 -0
- package/src/BryntumAssignmentField.tsx +1249 -0
- package/src/BryntumAssignmentGrid.tsx +2347 -0
- package/src/BryntumButton.tsx +887 -0
- package/src/BryntumButtonGroup.tsx +902 -0
- package/src/BryntumCalendarEditor.tsx +1151 -0
- package/src/BryntumCalendarField.tsx +1243 -0
- package/src/BryntumCalendarPicker.tsx +1230 -0
- package/src/BryntumChatPanel.tsx +1082 -0
- package/src/BryntumCheckbox.tsx +1000 -0
- package/src/BryntumCheckboxGroup.tsx +1116 -0
- package/src/BryntumChecklistFilterCombo.tsx +1241 -0
- package/src/BryntumChipView.tsx +914 -0
- package/src/BryntumCodeEditor.tsx +1065 -0
- package/src/BryntumColorField.tsx +995 -0
- package/src/BryntumCombo.tsx +1230 -0
- package/src/BryntumConstraintTypePicker.tsx +1230 -0
- package/src/BryntumContainer.tsx +861 -0
- package/src/BryntumCostAccrualField.tsx +1230 -0
- package/src/BryntumDateField.tsx +1055 -0
- package/src/BryntumDatePicker.tsx +1340 -0
- package/src/BryntumDateRangeField.tsx +1057 -0
- package/src/BryntumDateTimeField.tsx +942 -0
- package/src/BryntumDemoCodeEditor.tsx +1081 -0
- package/src/BryntumDemoHeader.tsx +160 -0
- package/src/BryntumDependencyField.tsx +1271 -0
- package/src/BryntumDependencyTypePicker.tsx +1230 -0
- package/src/BryntumDisplayField.tsx +979 -0
- package/src/BryntumDurationField.tsx +1038 -0
- package/src/BryntumEditor.tsx +1013 -0
- package/src/BryntumEffortField.tsx +1038 -0
- package/src/BryntumEndDateField.tsx +1065 -0
- package/src/BryntumEventColorField.tsx +995 -0
- package/src/BryntumFieldFilterPicker.tsx +943 -0
- package/src/BryntumFieldFilterPickerGroup.tsx +976 -0
- package/src/BryntumFieldSet.tsx +1058 -0
- package/src/BryntumFileField.tsx +982 -0
- package/src/BryntumFilePicker.tsx +888 -0
- package/src/BryntumFilterField.tsx +1023 -0
- package/src/BryntumFullscreenButton.tsx +45 -0
- package/src/BryntumGantt.tsx +4694 -0
- package/src/BryntumGanttBase.tsx +4692 -0
- package/src/BryntumGanttProjectModel.tsx +1144 -0
- package/src/BryntumGrid.tsx +2402 -0
- package/src/BryntumGridBase.tsx +2399 -0
- package/src/BryntumGridChartDesigner.tsx +728 -0
- package/src/BryntumGridFieldFilterPicker.tsx +956 -0
- package/src/BryntumGridFieldFilterPickerGroup.tsx +970 -0
- package/src/BryntumGroupBar.tsx +914 -0
- package/src/BryntumHint.tsx +1125 -0
- package/src/BryntumLabel.tsx +720 -0
- package/src/BryntumList.tsx +891 -0
- package/src/BryntumMenu.tsx +1143 -0
- package/src/BryntumModelCombo.tsx +1230 -0
- package/src/BryntumMonthPicker.tsx +1056 -0
- package/src/BryntumNumberField.tsx +1025 -0
- package/src/BryntumPagingToolbar.tsx +924 -0
- package/src/BryntumPanel.tsx +1035 -0
- package/src/BryntumPasswordField.tsx +969 -0
- package/src/BryntumProjectCombo.tsx +1232 -0
- package/src/BryntumRadio.tsx +1000 -0
- package/src/BryntumRadioGroup.tsx +1088 -0
- package/src/BryntumRateTableField.tsx +1230 -0
- package/src/BryntumResourceCombo.tsx +1235 -0
- package/src/BryntumResourceEditor.tsx +1130 -0
- package/src/BryntumResourceFilter.tsx +930 -0
- package/src/BryntumResourceGrid.tsx +2344 -0
- package/src/BryntumResourceHistogram.tsx +3684 -0
- package/src/BryntumResourceTypeField.tsx +1230 -0
- package/src/BryntumResourceUtilization.tsx +3699 -0
- package/src/BryntumScheduler.tsx +5183 -0
- package/src/BryntumSchedulerBase.tsx +5181 -0
- package/src/BryntumSchedulerDatePicker.tsx +1364 -0
- package/src/BryntumSchedulerPro.tsx +5711 -0
- package/src/BryntumSchedulerProBase.tsx +5709 -0
- package/src/BryntumSchedulingDirectionPicker.tsx +1230 -0
- package/src/BryntumSchedulingModePicker.tsx +1238 -0
- package/src/BryntumSlideToggle.tsx +1000 -0
- package/src/BryntumSlider.tsx +815 -0
- package/src/BryntumSplitter.tsx +754 -0
- package/src/BryntumStartDateField.tsx +1083 -0
- package/src/BryntumTabPanel.tsx +1087 -0
- package/src/BryntumTextAreaField.tsx +981 -0
- package/src/BryntumTextAreaPickerField.tsx +1002 -0
- package/src/BryntumTextField.tsx +987 -0
- package/src/BryntumThemeCombo.tsx +101 -0
- package/src/BryntumTimeField.tsx +1036 -0
- package/src/BryntumTimePicker.tsx +893 -0
- package/src/BryntumTimeline.tsx +5064 -0
- package/src/BryntumTimelineHistogram.tsx +3425 -0
- package/src/BryntumToolbar.tsx +917 -0
- package/src/BryntumTreeCombo.tsx +1230 -0
- package/src/BryntumTreeGrid.tsx +2401 -0
- package/src/BryntumUndoRedo.tsx +885 -0
- package/src/BryntumVersionGrid.tsx +2379 -0
- package/src/BryntumViewPresetCombo.tsx +914 -0
- package/src/BryntumWidget.tsx +715 -0
- package/src/BryntumYearPicker.tsx +1070 -0
- package/src/WrapperHelper.tsx +1125 -0
- package/src/index.ts +103 -0
|
@@ -0,0 +1,998 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* React wrapper for Bryntum AIFilterField
|
|
3
|
+
*/
|
|
4
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
5
|
+
import React, { RefObject } from 'react';
|
|
6
|
+
import { AIFilterField, AIFilterFieldListeners, AlignSpec, Base, ContainerItemConfig, DomConfig, Field, FieldContainer, FieldContainerConfig, FieldTriggerConfig, Grid, KeyMapConfig, MaskConfig, Model, Rectangle, Scroller, TabConfig, TooltipConfig, VueConfig, Widget } from '@bryntum/gantt';
|
|
7
|
+
|
|
8
|
+
import { createWidget, shouldComponentUpdate, processWidgetContent } from './WrapperHelper.js';
|
|
9
|
+
|
|
10
|
+
export type BryntumAIFilterFieldProps = {
|
|
11
|
+
// Configs
|
|
12
|
+
/**
|
|
13
|
+
* Element (or element id) to adopt as this Widget's encapsulating element. The widget's
|
|
14
|
+
* content will be placed inside this element.
|
|
15
|
+
* ...
|
|
16
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-adopt)
|
|
17
|
+
*/
|
|
18
|
+
adopt? : HTMLElement|string
|
|
19
|
+
/**
|
|
20
|
+
* *Only valid if this Widget is [floating](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-floating).*
|
|
21
|
+
* ...
|
|
22
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-align)
|
|
23
|
+
*/
|
|
24
|
+
align? : AlignSpec|string
|
|
25
|
+
/**
|
|
26
|
+
* When this widget is a child of a [Container](https://bryntum.com/products/gantt/docs/api/Core/widget/Container), it will by default be participating in a
|
|
27
|
+
* flexbox layout. This config allows you to set this widget's
|
|
28
|
+
* [align-self](https://developer.mozilla.org/en-US/docs/Web/CSS/align-self) style.
|
|
29
|
+
*/
|
|
30
|
+
alignSelf? : string
|
|
31
|
+
/**
|
|
32
|
+
* *Only valid if this Widget is [floating](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-floating) and being shown through [showBy](#Core/widget/Widget#function-showBy).*
|
|
33
|
+
* `true` to show a connector arrow pointing to the align target.
|
|
34
|
+
*/
|
|
35
|
+
anchor? : boolean
|
|
36
|
+
/**
|
|
37
|
+
* Element (or the id of an element) to append this widget's element to. Can be configured, or set once at
|
|
38
|
+
* runtime. To access the element of a rendered widget, see [element](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#property-element).
|
|
39
|
+
*/
|
|
40
|
+
appendTo? : HTMLElement|string
|
|
41
|
+
/**
|
|
42
|
+
* A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject
|
|
43
|
+
* into an element which will be linked using the `aria-describedby` attribute.
|
|
44
|
+
* ...
|
|
45
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-ariaDescription)
|
|
46
|
+
*/
|
|
47
|
+
ariaDescription? : string
|
|
48
|
+
/**
|
|
49
|
+
* A localizable string (May contain `'L{}'` tokens which resolve in the locale file) to inject as
|
|
50
|
+
* the `aria-label` attribute.
|
|
51
|
+
* ...
|
|
52
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-ariaLabel)
|
|
53
|
+
*/
|
|
54
|
+
ariaLabel? : string
|
|
55
|
+
/**
|
|
56
|
+
* Sets the native `autocomplete` property of the underlying input element. For more information, please refer to
|
|
57
|
+
* [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete)
|
|
58
|
+
*/
|
|
59
|
+
autoComplete? : string
|
|
60
|
+
/**
|
|
61
|
+
* Specify `true` to auto select field contents on focus
|
|
62
|
+
*/
|
|
63
|
+
autoSelect? : boolean
|
|
64
|
+
/**
|
|
65
|
+
* Initial text to show in badge.
|
|
66
|
+
*/
|
|
67
|
+
badge? : string
|
|
68
|
+
/**
|
|
69
|
+
* An object where property names with a truthy value indicate which events should bubble up the ownership
|
|
70
|
+
* hierarchy when triggered.
|
|
71
|
+
* ...
|
|
72
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-bubbleEvents)
|
|
73
|
+
*/
|
|
74
|
+
bubbleEvents? : object
|
|
75
|
+
/**
|
|
76
|
+
* Set to `false` to not call onXXX method names (e.g. `onShow`, `onClick`), as an easy way to listen for events.
|
|
77
|
+
* ...
|
|
78
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-callOnFunctions)
|
|
79
|
+
*/
|
|
80
|
+
callOnFunctions? : boolean
|
|
81
|
+
/**
|
|
82
|
+
* By default, if an event handler throws an exception, the error propagates up the stack and the
|
|
83
|
+
* application state is undefined. Code which follows the event handler will *not* be executed.
|
|
84
|
+
* ...
|
|
85
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-catchEventHandlerExceptions)
|
|
86
|
+
*/
|
|
87
|
+
catchEventHandlerExceptions? : boolean
|
|
88
|
+
/**
|
|
89
|
+
* *Only valid if this Widget is [floating](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-floating).*
|
|
90
|
+
* Set to `true` to centre the Widget in browser viewport space.
|
|
91
|
+
*/
|
|
92
|
+
centered? : boolean
|
|
93
|
+
/**
|
|
94
|
+
* Show a trigger to clear field, if this field is not [readOnly](https://bryntum.com/products/gantt/docs/api/Core/widget/Field#config-readOnly). The trigger is available
|
|
95
|
+
* in the [triggers](https://bryntum.com/products/gantt/docs/api/Core/widget/Field#property-triggers) object under the name `clear`. May also be an object which
|
|
96
|
+
* configures the `clear` [trigger](https://bryntum.com/products/gantt/docs/api/Core/widget/Field#property-triggers).
|
|
97
|
+
*/
|
|
98
|
+
clearable? : boolean|FieldTriggerConfig
|
|
99
|
+
/**
|
|
100
|
+
* The Grid instance this field is filtering. Defaults to the closest Grid instance found when the field is
|
|
101
|
+
* added to the DOM. If you are not adding the field to the Grid's DOM, you must set this property.
|
|
102
|
+
*/
|
|
103
|
+
client? : Grid
|
|
104
|
+
/**
|
|
105
|
+
* Custom CSS classes to add to element.
|
|
106
|
+
* May be specified as a space separated string, or as an object in which property names
|
|
107
|
+
* with truthy values are used as the class names:
|
|
108
|
+
* ...
|
|
109
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-cls)
|
|
110
|
+
*/
|
|
111
|
+
cls? : string|object
|
|
112
|
+
/**
|
|
113
|
+
* Applies the specified color to the widget, by setting the `--b-primary` CSS variable in the widgets
|
|
114
|
+
* `style` block.
|
|
115
|
+
* ...
|
|
116
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-color)
|
|
117
|
+
*/
|
|
118
|
+
color? : string
|
|
119
|
+
/**
|
|
120
|
+
* Programmatic control over which column to start in when used in a grid layout.
|
|
121
|
+
*/
|
|
122
|
+
column? : number
|
|
123
|
+
config? : object
|
|
124
|
+
/**
|
|
125
|
+
* *Only valid if this Widget is [floating](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-floating) or [positioned](#Core/widget/Widget#config-positioned).*
|
|
126
|
+
* Element, Widget or Rectangle to which this Widget is constrained.
|
|
127
|
+
*/
|
|
128
|
+
constrainTo? : HTMLElement|Widget|Rectangle
|
|
129
|
+
/**
|
|
130
|
+
* The configuration for additional items associated to this field. This is typically used to add contextual
|
|
131
|
+
* fields related to a [checkbox](https://bryntum.com/products/gantt/docs/api/Core/widget/Checkbox) or [radio button](#Core/widget/Radio). See
|
|
132
|
+
* these classes for examples of nested fields.
|
|
133
|
+
* ...
|
|
134
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-container)
|
|
135
|
+
*/
|
|
136
|
+
container? : Record<string, ContainerItemConfig>|ContainerItemConfig[]|FieldContainerConfig|FieldContainer
|
|
137
|
+
/**
|
|
138
|
+
* The config controls how the value of nested items are handled when a parent container gets or sets its
|
|
139
|
+
* [values](https://bryntum.com/products/gantt/docs/api/Core/widget/Container#property-values).
|
|
140
|
+
* ...
|
|
141
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-containValues)
|
|
142
|
+
* @param {Core.widget.Field} field Field instance
|
|
143
|
+
* @returns {boolean}
|
|
144
|
+
*/
|
|
145
|
+
containValues? : boolean|string|((field: Field) => boolean)
|
|
146
|
+
/**
|
|
147
|
+
* Custom CSS classes to add to the [contentElement](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#property-contentElement).
|
|
148
|
+
* May be specified as a space separated string, or as an object in which property names
|
|
149
|
+
* with truthy values are used as the class names:
|
|
150
|
+
* ...
|
|
151
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-contentElementCls)
|
|
152
|
+
*/
|
|
153
|
+
contentElementCls? : string|object
|
|
154
|
+
/**
|
|
155
|
+
* When this Widget configuration is used in the Grid's RowExpander feature's `widget` config, provide the
|
|
156
|
+
* field on the expanded record to use for populating this widget's store (if applicable)
|
|
157
|
+
*/
|
|
158
|
+
dataField? : string
|
|
159
|
+
/**
|
|
160
|
+
* Object to apply to elements dataset (each key will be used as a data-attribute on the element)
|
|
161
|
+
*/
|
|
162
|
+
dataset? : Record<string, string>
|
|
163
|
+
/**
|
|
164
|
+
* The name of the property to set when a single value is to be applied to this Widget. Such as when used
|
|
165
|
+
* in a grid WidgetColumn, this is the property to which the column's `field` is applied.
|
|
166
|
+
*/
|
|
167
|
+
defaultBindProperty? : string
|
|
168
|
+
/**
|
|
169
|
+
* Check for CSS compatibility issues when upgrading to v7. Performs the following checks:
|
|
170
|
+
* ...
|
|
171
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-detectCSSCompatibilityIssues)
|
|
172
|
+
*/
|
|
173
|
+
detectCSSCompatibilityIssues? : boolean
|
|
174
|
+
/**
|
|
175
|
+
* Disable or enable the widget. It is similar to [readOnly](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-readOnly) except a disabled widget
|
|
176
|
+
* cannot be focused, uses a different rendition (usually greyish) and does not allow selecting its value.
|
|
177
|
+
* ...
|
|
178
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-disabled)
|
|
179
|
+
*/
|
|
180
|
+
disabled? : boolean|'inert'
|
|
181
|
+
/**
|
|
182
|
+
* Controls the placement of this widget when it is added to a [panel's ](https://bryntum.com/products/gantt/docs/api/Core/widget/Panel)
|
|
183
|
+
* [strips collection](https://bryntum.com/products/gantt/docs/api/Core/widget/Panel#config-strips). Typical values for this config are `'top'`,
|
|
184
|
+
* `'bottom'`, `'left'`, or `'right'`, which cause the widget to be placed on that side of the panel's
|
|
185
|
+
* body. Such widgets are called "edge strips".
|
|
186
|
+
* ...
|
|
187
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-dock)
|
|
188
|
+
*/
|
|
189
|
+
dock? : 'top'|'bottom'|'left'|'right'|'start'|'end'|'header'|'pre-header'|object
|
|
190
|
+
/**
|
|
191
|
+
* *Only valid if this Widget is [floating](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-floating).*
|
|
192
|
+
* Set to `true` to be able to drag a widget freely on the page. Or set to an object with a ´handleSelector´
|
|
193
|
+
* property which controls when a drag should start.
|
|
194
|
+
* ...
|
|
195
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-draggable)
|
|
196
|
+
*/
|
|
197
|
+
draggable? : boolean|{
|
|
198
|
+
handleSelector?: string
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Set to `false` to prevent user from editing the field. For TextFields it is basically the same as setting
|
|
202
|
+
* [readOnly](https://bryntum.com/products/gantt/docs/api/Core/widget/Field#config-readOnly), but for PickerFields there is a distinction where it allows you to pick a value
|
|
203
|
+
* but not to type one in the field.
|
|
204
|
+
* ...
|
|
205
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-editable)
|
|
206
|
+
*/
|
|
207
|
+
editable? : boolean
|
|
208
|
+
/**
|
|
209
|
+
* An object specifying attributes to assign to the root element of this widget.
|
|
210
|
+
* Set `null` value to attribute to remove it.
|
|
211
|
+
* ...
|
|
212
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-elementAttributes)
|
|
213
|
+
*/
|
|
214
|
+
elementAttributes? : Record<string, string|null>
|
|
215
|
+
extraData? : any
|
|
216
|
+
/**
|
|
217
|
+
* When this widget is a child of a [Container](https://bryntum.com/products/gantt/docs/api/Core/widget/Container), it will by default be participating in a
|
|
218
|
+
* flexbox layout. This config allows you to set this widget's
|
|
219
|
+
* [flex](https://developer.mozilla.org/en-US/docs/Web/CSS/flex) style.
|
|
220
|
+
* This may be configured as a single number or a `<flex-grow> <flex-shrink> <flex-basis>` format string.
|
|
221
|
+
* numeric-only values are interpreted as the `flex-grow` value.
|
|
222
|
+
*/
|
|
223
|
+
flex? : number|string
|
|
224
|
+
/**
|
|
225
|
+
* Set to `true` to move the widget out of the document flow and position it
|
|
226
|
+
* absolutely in browser viewport space.
|
|
227
|
+
*/
|
|
228
|
+
floating? : boolean
|
|
229
|
+
/**
|
|
230
|
+
* Widget's height, used to set element `style.height`. Either specify a valid height string or a number,
|
|
231
|
+
* which will get 'px' appended. We recommend using CSS as the primary way to control height, but in some
|
|
232
|
+
* cases this config is convenient.
|
|
233
|
+
*/
|
|
234
|
+
height? : string|number
|
|
235
|
+
/**
|
|
236
|
+
* Configure with true to make widget initially hidden.
|
|
237
|
+
*/
|
|
238
|
+
hidden? : boolean
|
|
239
|
+
/**
|
|
240
|
+
* *Only valid if this Widget is [floating](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-floating).*
|
|
241
|
+
* ...
|
|
242
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-hideAnimation)
|
|
243
|
+
*/
|
|
244
|
+
hideAnimation? : boolean|object
|
|
245
|
+
/**
|
|
246
|
+
* Specify `true` to highlight field after external value changes
|
|
247
|
+
*/
|
|
248
|
+
highlightExternalChange? : boolean
|
|
249
|
+
/**
|
|
250
|
+
* An optional string to display inside the input field as an overlay. This can be useful for displaying
|
|
251
|
+
* a field's units.
|
|
252
|
+
* ...
|
|
253
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-hint)
|
|
254
|
+
* @param {object} data A data object
|
|
255
|
+
* @param {Core.widget.Field} data.source A reference to the field instance
|
|
256
|
+
* @param {any} data.value The current value of the field
|
|
257
|
+
* @returns {string}
|
|
258
|
+
*/
|
|
259
|
+
hint? : string|((data: { source: Field, value: any }) => string)
|
|
260
|
+
/**
|
|
261
|
+
* This config is similar to [hint](https://bryntum.com/products/gantt/docs/api/Core/widget/Field#config-hint) except that this config is used to display HTML content.
|
|
262
|
+
* Since this can allow malicious content to be executed, be sure not to include user-entered data or to
|
|
263
|
+
* encode such data (see [encodeHtml](https://bryntum.com/products/gantt/docs/api/Core/helper/StringHelper#function-encodeHtml-static)).
|
|
264
|
+
* ...
|
|
265
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-hintHtml)
|
|
266
|
+
* @param {object} data A data object
|
|
267
|
+
* @param {Core.widget.Field} data.source A reference to the field instance
|
|
268
|
+
* @param {any} data.value The current value of the field
|
|
269
|
+
* @returns {string}
|
|
270
|
+
*/
|
|
271
|
+
hintHtml? : string|((data: { source: Field, value: any }) => string)
|
|
272
|
+
/**
|
|
273
|
+
* Widget id, if not specified one will be generated. Also used for lookups through Widget.getById
|
|
274
|
+
*/
|
|
275
|
+
id? : string
|
|
276
|
+
/**
|
|
277
|
+
* Determines if the widgets read-only state should be controlled by its parent.
|
|
278
|
+
* ...
|
|
279
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-ignoreParentReadOnly)
|
|
280
|
+
*/
|
|
281
|
+
ignoreParentReadOnly? : boolean
|
|
282
|
+
/**
|
|
283
|
+
* Set this config to `true` to always display items horizontally along with this field. This assigns an
|
|
284
|
+
* [hbox](https://bryntum.com/products/gantt/docs/api/Core/widget/layout/Box) as the [layout](#Core/widget/Container#config-layout) to the
|
|
285
|
+
* [container](https://bryntum.com/products/gantt/docs/api/Core/widget/Field#config-container).
|
|
286
|
+
* ...
|
|
287
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-inline)
|
|
288
|
+
*/
|
|
289
|
+
inline? : boolean
|
|
290
|
+
/**
|
|
291
|
+
* Text alignment for the input field.
|
|
292
|
+
*/
|
|
293
|
+
inputAlign? : string
|
|
294
|
+
/**
|
|
295
|
+
* Sets custom attributes of the underlying input element. For more information, please refer to
|
|
296
|
+
* [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes)
|
|
297
|
+
*/
|
|
298
|
+
inputAttributes? : Record<string, string>
|
|
299
|
+
/**
|
|
300
|
+
* If you need to use something else than a default `input` element, as the input element, provide the tag
|
|
301
|
+
* name here. Please note that this is used for advanced usage only, for example when using WebComponents
|
|
302
|
+
* (custom elements), and that the configured element must fulfil the same contract as a regular input
|
|
303
|
+
* element.
|
|
304
|
+
*/
|
|
305
|
+
inputTag? : string
|
|
306
|
+
/**
|
|
307
|
+
* Sets the `type` attribute of the underlying input element (password, hidden, date, color, etc.).
|
|
308
|
+
*/
|
|
309
|
+
inputType? : string
|
|
310
|
+
/**
|
|
311
|
+
* The width to apply to the `.b-field-inner` element, which encompasses the `input` element and any
|
|
312
|
+
* triggers. If a number is specified, `px` will be used.
|
|
313
|
+
*/
|
|
314
|
+
inputWidth? : string|number
|
|
315
|
+
/**
|
|
316
|
+
* Element (or element id) to insert this widget before. If provided, [appendTo](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-appendTo) config is ignored.
|
|
317
|
+
*/
|
|
318
|
+
insertBefore? : HTMLElement|string
|
|
319
|
+
/**
|
|
320
|
+
* Element (or element id) to append this widget element to, as a first child. If provided, [appendTo](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-appendTo) config is ignored.
|
|
321
|
+
*/
|
|
322
|
+
insertFirst? : HTMLElement|string
|
|
323
|
+
/**
|
|
324
|
+
* An object whose keys are the [key](https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key) name
|
|
325
|
+
* and optional modifier prefixes: `'Ctrl+'`, `'Alt+'`, `'Meta+'`, and `'Shift+'` (case-insensitive). The values
|
|
326
|
+
* are the name of the instance method to call when the keystroke is received.
|
|
327
|
+
* ...
|
|
328
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-keyMap)
|
|
329
|
+
*/
|
|
330
|
+
keyMap? : Record<string, KeyMapConfig>
|
|
331
|
+
/**
|
|
332
|
+
* The delay in milliseconds to wait after the last keystroke before triggering a change event.
|
|
333
|
+
* Set to 0 to not trigger change events from keystrokes (listen for input event instead to have
|
|
334
|
+
* immediate feedback, change will still be triggered on blur).
|
|
335
|
+
* ...
|
|
336
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-keyStrokeChangeDelay)
|
|
337
|
+
*/
|
|
338
|
+
keyStrokeChangeDelay? : number
|
|
339
|
+
/**
|
|
340
|
+
* Label, prepended to field
|
|
341
|
+
*/
|
|
342
|
+
label? : string
|
|
343
|
+
/**
|
|
344
|
+
* CSS class name or class names to add to any configured [label](https://bryntum.com/products/gantt/docs/api/Core/widget/mixin/Labelable#config-label)
|
|
345
|
+
*/
|
|
346
|
+
labelCls? : string|object
|
|
347
|
+
/**
|
|
348
|
+
* Label position, either 'before' the field or 'above' the field
|
|
349
|
+
* ...
|
|
350
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-labelPosition)
|
|
351
|
+
*/
|
|
352
|
+
labelPosition? : 'before'|'above'|null
|
|
353
|
+
/**
|
|
354
|
+
* The labels to add either before or after the input field.
|
|
355
|
+
* Each label may have the following properties:
|
|
356
|
+
* ...
|
|
357
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-labels)
|
|
358
|
+
*/
|
|
359
|
+
labels? : object[]
|
|
360
|
+
/**
|
|
361
|
+
* The width to apply to the `<label>` element. If a number is specified, `px` will be used.
|
|
362
|
+
*/
|
|
363
|
+
labelWidth? : string|number
|
|
364
|
+
/**
|
|
365
|
+
* The listener set for this object.
|
|
366
|
+
* ...
|
|
367
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-listeners)
|
|
368
|
+
*/
|
|
369
|
+
listeners? : AIFilterFieldListeners
|
|
370
|
+
/**
|
|
371
|
+
* A class translations of which are used for translating this entity.
|
|
372
|
+
* This is often used when translations of an item are defined on its container class.
|
|
373
|
+
* For example:
|
|
374
|
+
* ...
|
|
375
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-localeClass)
|
|
376
|
+
*/
|
|
377
|
+
localeClass? : typeof Base
|
|
378
|
+
/**
|
|
379
|
+
* Set to `false` to disable localization of this object.
|
|
380
|
+
*/
|
|
381
|
+
localizable? : boolean
|
|
382
|
+
/**
|
|
383
|
+
* List of properties which values should be translated automatically upon a locale applying.
|
|
384
|
+
* In case there is a need to localize not typical value (not a String value or a field with re-defined setter/getter),
|
|
385
|
+
* you could use 'localeKey' meta configuration.
|
|
386
|
+
* Example:
|
|
387
|
+
* ...
|
|
388
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-localizableProperties)
|
|
389
|
+
*/
|
|
390
|
+
localizableProperties? : string[]
|
|
391
|
+
/**
|
|
392
|
+
* Widget's margin. This may be configured as a single number or a `TRBL` format string.
|
|
393
|
+
* numeric-only values are interpreted as pixels.
|
|
394
|
+
*/
|
|
395
|
+
margin? : number|string
|
|
396
|
+
/**
|
|
397
|
+
* This config object contains the defaults for the [Mask](https://bryntum.com/products/gantt/docs/api/Core/widget/Mask) created for the
|
|
398
|
+
* [masked](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-masked) config. Any properties specified in the `masked` config will override these
|
|
399
|
+
* values.
|
|
400
|
+
*/
|
|
401
|
+
maskDefaults? : MaskConfig
|
|
402
|
+
/**
|
|
403
|
+
* Set to `true` to apply the default mask to the widget. Alternatively, this can be the mask message or a
|
|
404
|
+
* [Mask](https://bryntum.com/products/gantt/docs/api/Core/widget/Mask) config object.
|
|
405
|
+
*/
|
|
406
|
+
masked? : boolean|string|MaskConfig
|
|
407
|
+
/**
|
|
408
|
+
* The element's maxHeight. Can be either a String or a Number (which will have 'px' appended). Note that
|
|
409
|
+
* like [height](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.
|
|
410
|
+
*/
|
|
411
|
+
maxHeight? : string|number
|
|
412
|
+
/**
|
|
413
|
+
* *Only valid if this Widget is [floating](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-floating).*
|
|
414
|
+
* ...
|
|
415
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-maximizeOnMobile)
|
|
416
|
+
*/
|
|
417
|
+
maximizeOnMobile? : number|string
|
|
418
|
+
/**
|
|
419
|
+
* The max number of characters for the input field
|
|
420
|
+
*/
|
|
421
|
+
maxLength? : number
|
|
422
|
+
/**
|
|
423
|
+
* The elements maxWidth. Can be either a String or a Number (which will have 'px' appended). Note that
|
|
424
|
+
* like [width](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.
|
|
425
|
+
*/
|
|
426
|
+
maxWidth? : string|number
|
|
427
|
+
/**
|
|
428
|
+
* The element's minHeight. Can be either a String or a Number (which will have 'px' appended). Note that
|
|
429
|
+
* like [height](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-height), *reading* the value will return the numeric value in pixels.
|
|
430
|
+
*/
|
|
431
|
+
minHeight? : string|number
|
|
432
|
+
/**
|
|
433
|
+
* The min number of characters for the input field
|
|
434
|
+
*/
|
|
435
|
+
minLength? : number
|
|
436
|
+
/**
|
|
437
|
+
* The elements minWidth. Can be either a String or a Number (which will have 'px' appended). Note that
|
|
438
|
+
* like [width](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-width), *reading* the value will return the numeric value in pixels.
|
|
439
|
+
*/
|
|
440
|
+
minWidth? : string|number
|
|
441
|
+
/**
|
|
442
|
+
* When this is configured as `true` a [ResizeObserver](https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver)
|
|
443
|
+
* is used to monitor this element for size changes caused by either style manipulation, or by CSS
|
|
444
|
+
* layout.
|
|
445
|
+
* ...
|
|
446
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-monitorResize)
|
|
447
|
+
*/
|
|
448
|
+
monitorResize? : boolean|{
|
|
449
|
+
immediate?: boolean
|
|
450
|
+
}
|
|
451
|
+
/**
|
|
452
|
+
* Name of the field which is used as a key to get/set values from/to the field.
|
|
453
|
+
* Used prior to [ref](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-ref) and [id](#Core/widget/Widget#config-id) in
|
|
454
|
+
* [Container.values](https://bryntum.com/products/gantt/docs/api/Core/widget/Container#property-values).
|
|
455
|
+
* ...
|
|
456
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-name)
|
|
457
|
+
*/
|
|
458
|
+
name? : string
|
|
459
|
+
/**
|
|
460
|
+
* The owning Widget of this Widget. If this Widget is directly contained (that is, it is one of the
|
|
461
|
+
* [items](https://bryntum.com/products/gantt/docs/api/Core/widget/Container#property-items) of a Container), this config will be ignored. In this case
|
|
462
|
+
* the owner is <strong>always</strong> the encapsulating Container.
|
|
463
|
+
* ...
|
|
464
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-owner)
|
|
465
|
+
*/
|
|
466
|
+
owner? : Widget|any
|
|
467
|
+
/**
|
|
468
|
+
* Text to display in empty field.
|
|
469
|
+
*/
|
|
470
|
+
placeholder? : string
|
|
471
|
+
/**
|
|
472
|
+
* Set to `true` when a widget is rendered into another widget's [contentElement](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#property-contentElement), but must
|
|
473
|
+
* not participate in the standard layout of that widget, and must be positioned relatively to that
|
|
474
|
+
* widget's [contentElement](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#property-contentElement).
|
|
475
|
+
* ...
|
|
476
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-positioned)
|
|
477
|
+
*/
|
|
478
|
+
positioned? : boolean
|
|
479
|
+
/**
|
|
480
|
+
* Prevent tooltip from being displayed on touch devices. Useful for example for buttons that display a
|
|
481
|
+
* menu on click etc, since the tooltip would be displayed at the same time.
|
|
482
|
+
*/
|
|
483
|
+
preventTooltipOnTouch? : boolean
|
|
484
|
+
/**
|
|
485
|
+
* The text to show in the load mask when the AI is processing the filter request
|
|
486
|
+
*/
|
|
487
|
+
progressText? : string
|
|
488
|
+
/**
|
|
489
|
+
* Makes the field unmodifiable by user action. The input area is not editable, and triggers
|
|
490
|
+
* are unresponsive.
|
|
491
|
+
* ...
|
|
492
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-readOnly)
|
|
493
|
+
*/
|
|
494
|
+
readOnly? : boolean
|
|
495
|
+
relayStoreEvents? : boolean
|
|
496
|
+
/**
|
|
497
|
+
* Predefined style to use for the field. Possible values are:
|
|
498
|
+
* ...
|
|
499
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-rendition)
|
|
500
|
+
*/
|
|
501
|
+
rendition? : 'outlined'|'filled'|string
|
|
502
|
+
/**
|
|
503
|
+
* Configure as `true` to indicate that a `null` field value is to be marked as invalid. This will
|
|
504
|
+
* optionally append a * to the field label if [showRequiredIndicator](https://bryntum.com/products/gantt/docs/api/Core/widget/Field#property-showRequiredIndicator) is set.
|
|
505
|
+
*/
|
|
506
|
+
required? : boolean
|
|
507
|
+
/**
|
|
508
|
+
* If this field is not [readOnly](https://bryntum.com/products/gantt/docs/api/Core/widget/Field#config-readOnly), then setting this option means that pressing
|
|
509
|
+
* the `ESCAPE` key after editing the field will revert the field to the value it had when
|
|
510
|
+
* the user focused the field. If the field is *not* changed from when focused, the [clearable](https://bryntum.com/products/gantt/docs/api/Core/widget/Field#config-clearable)
|
|
511
|
+
* behaviour will be activated.
|
|
512
|
+
*/
|
|
513
|
+
revertOnEscape? : boolean
|
|
514
|
+
/**
|
|
515
|
+
* Configure as `true` to have the component display a translucent ripple when its
|
|
516
|
+
* [focusElement](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#property-focusElement), or [element](#Core/widget/Widget#property-element) is tapped <em>if the
|
|
517
|
+
* current theme supports ripples</em>. Out of the box, only the Material theme supports ripples.
|
|
518
|
+
* ...
|
|
519
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-ripple)
|
|
520
|
+
*/
|
|
521
|
+
ripple? : boolean|{
|
|
522
|
+
delegate?: string
|
|
523
|
+
color?: string
|
|
524
|
+
radius?: number
|
|
525
|
+
clip?: string
|
|
526
|
+
}
|
|
527
|
+
/**
|
|
528
|
+
* 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`
|
|
529
|
+
*/
|
|
530
|
+
rootElement? : ShadowRoot|HTMLElement
|
|
531
|
+
/**
|
|
532
|
+
* This may be configured as `true` to make the widget's element use the `direction:rtl` style.
|
|
533
|
+
* ...
|
|
534
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-rtl)
|
|
535
|
+
*/
|
|
536
|
+
rtl? : boolean
|
|
537
|
+
/**
|
|
538
|
+
* Defines what to do if document is scrolled while Widget is visible (only relevant when floating is set to `true`).
|
|
539
|
+
* Valid values: ´null´: do nothing, ´hide´: hide the widget or ´realign´: realign to the target if possible.
|
|
540
|
+
*/
|
|
541
|
+
scrollAction? : 'hide'|'realign'|null
|
|
542
|
+
/**
|
|
543
|
+
* *Only valid if this Widget is [floating](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-floating).*
|
|
544
|
+
* ...
|
|
545
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-showAnimation)
|
|
546
|
+
*/
|
|
547
|
+
showAnimation? : boolean|object
|
|
548
|
+
/**
|
|
549
|
+
* `true` to automatically display a * after the label for this field when it is [required](https://bryntum.com/products/gantt/docs/api/Core/widget/Field#property-required).
|
|
550
|
+
*/
|
|
551
|
+
showRequiredIndicator? : string
|
|
552
|
+
/**
|
|
553
|
+
* Set to `false` to not show the tooltip when this widget is [disabled](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#property-disabled)
|
|
554
|
+
*/
|
|
555
|
+
showTooltipWhenDisabled? : boolean
|
|
556
|
+
/**
|
|
557
|
+
* Set to `true`, completely bypasses validation logic (could be userful if your field is not `editable`
|
|
558
|
+
* to the user).
|
|
559
|
+
*/
|
|
560
|
+
skipValidation? : boolean
|
|
561
|
+
/**
|
|
562
|
+
* Programmatic control over how many columns to span when used in a grid layout.
|
|
563
|
+
*/
|
|
564
|
+
span? : number
|
|
565
|
+
/**
|
|
566
|
+
* Sets the native `spellcheck` property of the underlying input element. For more information, please refer to
|
|
567
|
+
* [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/spellcheck)
|
|
568
|
+
*/
|
|
569
|
+
spellCheck? : boolean
|
|
570
|
+
/**
|
|
571
|
+
* A configuration for the [tab](https://bryntum.com/products/gantt/docs/api/Core/widget/Tab) created for this widget when it is placed in a
|
|
572
|
+
* [TabPanel](https://bryntum.com/products/gantt/docs/api/Core/widget/TabPanel). For example, this config can be used to control the icon of the `tab` for
|
|
573
|
+
* this widget:
|
|
574
|
+
* ...
|
|
575
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-tab)
|
|
576
|
+
*/
|
|
577
|
+
tab? : boolean|TabConfig
|
|
578
|
+
/**
|
|
579
|
+
* The tab index of the input field or fields, or `null` for natural tab order (recommended). Setting to `0`
|
|
580
|
+
* is equivalent to natural tab order, but is unnecessary for fields since they are naturally tabbable
|
|
581
|
+
* (i.e., accessible via the TAB key). Setting to `-1` disables tabbability but allows for focus to be set
|
|
582
|
+
* to the element programmatically.
|
|
583
|
+
* ...
|
|
584
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-tabIndex)
|
|
585
|
+
*/
|
|
586
|
+
tabIndex? : number
|
|
587
|
+
/**
|
|
588
|
+
* Text alignment: 'left', 'center' or 'right'. Also accepts direction neutral 'start' and 'end'.
|
|
589
|
+
* ...
|
|
590
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-textAlign)
|
|
591
|
+
*/
|
|
592
|
+
textAlign? : 'left'|'center'|'right'|'start'|'end'
|
|
593
|
+
/**
|
|
594
|
+
* A title to display for the widget. Only in effect when inside a container that uses it (such as TabPanel)
|
|
595
|
+
*/
|
|
596
|
+
title? : string
|
|
597
|
+
/**
|
|
598
|
+
* Tooltip for the widget, either as a string or as a Tooltip config object.
|
|
599
|
+
* ...
|
|
600
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-tooltip)
|
|
601
|
+
*/
|
|
602
|
+
tooltip? : string|TooltipConfig|null
|
|
603
|
+
/**
|
|
604
|
+
* The triggers to add either before or after the input field. Each property name is the reference by which
|
|
605
|
+
* an instantiated Trigger Widget may be retrieved from the live `triggers` property.
|
|
606
|
+
* ...
|
|
607
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-triggers)
|
|
608
|
+
*/
|
|
609
|
+
triggers? : Record<string, FieldTriggerConfig>|Record<string, Widget>
|
|
610
|
+
type? : 'aifilterfield'
|
|
611
|
+
/**
|
|
612
|
+
* Custom CSS class name suffixes to apply to the elements rendered by this widget. This may be specified
|
|
613
|
+
* as a space separated string, an array of strings, or as an object in which property names with truthy
|
|
614
|
+
* values are used as the class names.
|
|
615
|
+
* ...
|
|
616
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-ui)
|
|
617
|
+
*/
|
|
618
|
+
ui? : string|object
|
|
619
|
+
/**
|
|
620
|
+
* Set to `false` to not highlight a field as invalid while typing, to instead show it on ENTER key press
|
|
621
|
+
* or similar.
|
|
622
|
+
*/
|
|
623
|
+
validateOnInput? : boolean
|
|
624
|
+
/**
|
|
625
|
+
* Default value
|
|
626
|
+
*/
|
|
627
|
+
value? : string
|
|
628
|
+
/**
|
|
629
|
+
* A widgets weight determines its position among siblings when added to a [Container](https://bryntum.com/products/gantt/docs/api/Core/widget/Container).
|
|
630
|
+
* Higher weights go further down.
|
|
631
|
+
*/
|
|
632
|
+
weight? : number
|
|
633
|
+
/**
|
|
634
|
+
* Widget's width, used to set element `style.width`. Either specify a valid width string or a number, which
|
|
635
|
+
* will get 'px' appended. We recommend using CSS as the primary way to control width, but in some cases
|
|
636
|
+
* this config is convenient.
|
|
637
|
+
*/
|
|
638
|
+
width? : string|number
|
|
639
|
+
/**
|
|
640
|
+
* The x position for the widget.
|
|
641
|
+
* ...
|
|
642
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-x)
|
|
643
|
+
*/
|
|
644
|
+
x? : number
|
|
645
|
+
/**
|
|
646
|
+
* The y position for the widget.
|
|
647
|
+
* ...
|
|
648
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#config-y)
|
|
649
|
+
*/
|
|
650
|
+
y? : number
|
|
651
|
+
|
|
652
|
+
// Events
|
|
653
|
+
/**
|
|
654
|
+
* User performed default action (typed into this field).
|
|
655
|
+
* @param {object} event Event object
|
|
656
|
+
* @param {Core.widget.Field,any} event.source This Field
|
|
657
|
+
* @param {string,number,boolean,any} event.value This field's value
|
|
658
|
+
* @param {string,number,boolean,any} event.oldValue This field's previous value
|
|
659
|
+
* @param {boolean} event.valid True if this field is in a valid state
|
|
660
|
+
* @param {Event} event.event The triggering DOM event if any
|
|
661
|
+
* @param {Core.data.Model} event.record Selected record. Available for fields with records selection functionality
|
|
662
|
+
* @param {Core.data.Model[]} event.records Selected records as an array. Available for fields with records selection functionality
|
|
663
|
+
* @param {boolean} event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
|
|
664
|
+
* @param {boolean} event.checked
|
|
665
|
+
*/
|
|
666
|
+
onAction? : ((event: { source: Field|any, value: string|number|boolean|any, oldValue: string|number|boolean|any, valid: boolean, event: Event, record: Model, records: Model[], userAction: boolean, checked: boolean }) => void)|string
|
|
667
|
+
/**
|
|
668
|
+
* Fires before an object is destroyed.
|
|
669
|
+
* @param {object} event Event object
|
|
670
|
+
* @param {Core.Base} event.source The Object that is being destroyed.
|
|
671
|
+
*/
|
|
672
|
+
onBeforeDestroy? : ((event: { source: Base }) => void)|string
|
|
673
|
+
/**
|
|
674
|
+
* Triggered before a widget is hidden. Return `false` to prevent the action.
|
|
675
|
+
* @param {object} event Event object
|
|
676
|
+
* @param {Core.widget.Widget} event.source The widget being hidden.
|
|
677
|
+
*/
|
|
678
|
+
onBeforeHide? : ((event: { source: Widget }) => Promise<boolean>|boolean|void)|string
|
|
679
|
+
/**
|
|
680
|
+
* Triggered before a widget is shown. Return `false` to prevent the action.
|
|
681
|
+
* @param {object} event Event object
|
|
682
|
+
* @param {Core.widget.Widget,any} event.source The widget being shown
|
|
683
|
+
*/
|
|
684
|
+
onBeforeShow? : ((event: { source: Widget|any }) => Promise<boolean>|boolean|void)|string
|
|
685
|
+
/**
|
|
686
|
+
* Fires when any other event is fired from the object.
|
|
687
|
+
* ...
|
|
688
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#event-catchAll)
|
|
689
|
+
* @param {object} event Event object
|
|
690
|
+
* @param {{[key: string]: any, type: string}} event.event The Object that contains event details
|
|
691
|
+
* @param {string} event.event.type The type of the event which is caught by the listener
|
|
692
|
+
*/
|
|
693
|
+
onCatchAll? : ((event: {[key: string]: any, type: string}) => void)|string
|
|
694
|
+
/**
|
|
695
|
+
* Fired when this field's value changes.
|
|
696
|
+
* @param {object} event Event object
|
|
697
|
+
* @param {Core.widget.Field,any} event.source This Field
|
|
698
|
+
* @param {string,number,boolean,any} event.value This field's value
|
|
699
|
+
* @param {string,number,boolean,any} event.oldValue This field's previous value
|
|
700
|
+
* @param {boolean} event.valid True if this field is in a valid state
|
|
701
|
+
* @param {Event} event.event The triggering DOM event if any
|
|
702
|
+
* @param {boolean} event.userAction Triggered by user taking an action (`true`) or by setting a value (`false`)
|
|
703
|
+
* @param {boolean} event.checked
|
|
704
|
+
*/
|
|
705
|
+
onChange? : ((event: { source: Field|any, value: string|number|boolean|any, oldValue: string|number|boolean|any, valid: boolean, event: Event, userAction: boolean, checked: boolean }) => void)|string
|
|
706
|
+
/**
|
|
707
|
+
* Fired when this field is [cleared](https://bryntum.com/products/gantt/docs/api/Core/widget/Field#function-clear).
|
|
708
|
+
* ...
|
|
709
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#event-clear)
|
|
710
|
+
* @param {object} event Event object
|
|
711
|
+
* @param {Core.widget.Field,any} event.source This Field
|
|
712
|
+
*/
|
|
713
|
+
onClear? : ((event: { source: Field|any }) => void)|string
|
|
714
|
+
/**
|
|
715
|
+
* Fires when an object is destroyed.
|
|
716
|
+
* @param {object} event Event object
|
|
717
|
+
* @param {Core.Base} event.source The Object that is being destroyed.
|
|
718
|
+
*/
|
|
719
|
+
onDestroy? : ((event: { source: Base }) => void)|string
|
|
720
|
+
/**
|
|
721
|
+
* Triggered when a widget's [element](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#property-element) is available.
|
|
722
|
+
* @param {object} event Event object
|
|
723
|
+
* @param {HTMLElement} event.element The Widget's element.
|
|
724
|
+
*/
|
|
725
|
+
onElementCreated? : ((event: { element: HTMLElement }) => void)|string
|
|
726
|
+
/**
|
|
727
|
+
* Fired when focus enters this Widget.
|
|
728
|
+
* @param {object} event Event object
|
|
729
|
+
* @param {Core.widget.Widget} event.source This Widget
|
|
730
|
+
* @param {HTMLElement} event.fromElement The element which lost focus.
|
|
731
|
+
* @param {HTMLElement} event.toElement The element which gained focus.
|
|
732
|
+
* @param {Core.widget.Widget} event.fromWidget The widget which lost focus.
|
|
733
|
+
* @param {Core.widget.Widget} event.toWidget The widget which gained focus.
|
|
734
|
+
* @param {boolean} event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
735
|
+
*/
|
|
736
|
+
onFocusIn? : ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string
|
|
737
|
+
/**
|
|
738
|
+
* Fired when focus exits this Widget's ownership tree. This is different from a `blur` event.
|
|
739
|
+
* focus moving from within this Widget's ownership tree, even if there are floating widgets
|
|
740
|
+
* will not trigger this event. This is when focus exits this widget completely.
|
|
741
|
+
* @param {object} event Event object
|
|
742
|
+
* @param {Core.widget.Widget} event.source This Widget
|
|
743
|
+
* @param {HTMLElement} event.fromElement The element which lost focus.
|
|
744
|
+
* @param {HTMLElement} event.toElement The element which gained focus.
|
|
745
|
+
* @param {Core.widget.Widget} event.fromWidget The widget which lost focus.
|
|
746
|
+
* @param {Core.widget.Widget} event.toWidget The widget which gained focus.
|
|
747
|
+
* @param {boolean} event.backwards `true` if the `toElement` is before the `fromElement` in document order.
|
|
748
|
+
*/
|
|
749
|
+
onFocusOut? : ((event: { source: Widget, fromElement: HTMLElement, toElement: HTMLElement, fromWidget: Widget, toWidget: Widget, backwards: boolean }) => void)|string
|
|
750
|
+
/**
|
|
751
|
+
* Triggered after a widget was hidden
|
|
752
|
+
* @param {object} event Event object
|
|
753
|
+
* @param {Core.widget.Widget} event.source The widget
|
|
754
|
+
*/
|
|
755
|
+
onHide? : ((event: { source: Widget }) => void)|string
|
|
756
|
+
/**
|
|
757
|
+
* Fired when the user types into this field.
|
|
758
|
+
* @param {object} event Event object
|
|
759
|
+
* @param {Core.widget.Field,any} event.source This field
|
|
760
|
+
* @param {string,number,boolean,any} event.value This field's value
|
|
761
|
+
* @param {Event} event.event The triggering DOM event
|
|
762
|
+
*/
|
|
763
|
+
onInput? : ((event: { source: Field|any, value: string|number|boolean|any, event: Event }) => void)|string
|
|
764
|
+
/**
|
|
765
|
+
* Triggered when a widget which had been in a non-visible state for any reason
|
|
766
|
+
* achieves visibility.
|
|
767
|
+
* ...
|
|
768
|
+
* [View online docs...](https://bryntum.com/products/gantt/docs/api/Grid/widget/AIFilterField#event-paint)
|
|
769
|
+
* @param {object} event Event object
|
|
770
|
+
* @param {Core.widget.Widget} event.source The widget being painted.
|
|
771
|
+
* @param {boolean} event.firstPaint `true` if this is the first paint.
|
|
772
|
+
*/
|
|
773
|
+
onPaint? : ((event: { source: Widget, firstPaint: boolean }) => void)|string
|
|
774
|
+
/**
|
|
775
|
+
* Fired when a Widget's read only state is toggled
|
|
776
|
+
* @param {object} event Event object
|
|
777
|
+
* @param {boolean} event.readOnly Read only or not
|
|
778
|
+
*/
|
|
779
|
+
onReadOnly? : ((event: { readOnly: boolean }) => void)|string
|
|
780
|
+
/**
|
|
781
|
+
* This event is fired after a widget's elements have been synchronized due to a direct or indirect call
|
|
782
|
+
* to [recompose](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#function-recompose), if this results in some change to the widget's rendered DOM elements.
|
|
783
|
+
*/
|
|
784
|
+
onRecompose? : (() => void)|string
|
|
785
|
+
/**
|
|
786
|
+
* Fired when the encapsulating element of a Widget resizes *only when [monitorResize](https://bryntum.com/products/gantt/docs/api/Core/widget/Widget#config-monitorResize) is `true`*.
|
|
787
|
+
* @param {object} event Event object
|
|
788
|
+
* @param {Core.widget.Widget} event.source This Widget
|
|
789
|
+
* @param {number} event.width The new width
|
|
790
|
+
* @param {number} event.height The new height
|
|
791
|
+
* @param {number} event.oldWidth The old width
|
|
792
|
+
* @param {number} event.oldHeight The old height
|
|
793
|
+
*/
|
|
794
|
+
onResize? : ((event: { source: Widget, width: number, height: number, oldWidth: number, oldHeight: number }) => void)|string
|
|
795
|
+
/**
|
|
796
|
+
* Triggered after a widget is shown.
|
|
797
|
+
* @param {object} event Event object
|
|
798
|
+
* @param {Core.widget.Widget} event.source The widget
|
|
799
|
+
*/
|
|
800
|
+
onShow? : ((event: { source: Widget }) => void)|string
|
|
801
|
+
/**
|
|
802
|
+
* User clicked one of this field's [triggers](https://bryntum.com/products/gantt/docs/api/Core/widget/Field#property-triggers)
|
|
803
|
+
* @param {object} event Event object
|
|
804
|
+
* @param {Core.widget.Field,any} event.source This field
|
|
805
|
+
* @param {Core.widget.Widget} event.trigger The trigger activated by click or touch tap.
|
|
806
|
+
*/
|
|
807
|
+
onTrigger? : ((event: { source: Field|any, trigger: Widget }) => void)|string
|
|
808
|
+
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
export class BryntumAIFilterField extends React.Component<BryntumAIFilterFieldProps> {
|
|
812
|
+
|
|
813
|
+
static instanceClass = AIFilterField;
|
|
814
|
+
|
|
815
|
+
static instanceName = 'AIFilterField';
|
|
816
|
+
|
|
817
|
+
processWidgetContent = processWidgetContent;
|
|
818
|
+
|
|
819
|
+
static configNames = [
|
|
820
|
+
'adopt',
|
|
821
|
+
'align',
|
|
822
|
+
'anchor',
|
|
823
|
+
'ariaDescription',
|
|
824
|
+
'ariaLabel',
|
|
825
|
+
'autoComplete',
|
|
826
|
+
'autoSelect',
|
|
827
|
+
'bubbleEvents',
|
|
828
|
+
'centered',
|
|
829
|
+
'clearable',
|
|
830
|
+
'client',
|
|
831
|
+
'color',
|
|
832
|
+
'config',
|
|
833
|
+
'constrainTo',
|
|
834
|
+
'container',
|
|
835
|
+
'containValues',
|
|
836
|
+
'contentElementCls',
|
|
837
|
+
'dataField',
|
|
838
|
+
'defaultBindProperty',
|
|
839
|
+
'detectCSSCompatibilityIssues',
|
|
840
|
+
'dock',
|
|
841
|
+
'draggable',
|
|
842
|
+
'elementAttributes',
|
|
843
|
+
'floating',
|
|
844
|
+
'hideAnimation',
|
|
845
|
+
'highlightExternalChange',
|
|
846
|
+
'hint',
|
|
847
|
+
'hintHtml',
|
|
848
|
+
'ignoreParentReadOnly',
|
|
849
|
+
'inline',
|
|
850
|
+
'inputAlign',
|
|
851
|
+
'inputAttributes',
|
|
852
|
+
'inputTag',
|
|
853
|
+
'inputType',
|
|
854
|
+
'inputWidth',
|
|
855
|
+
'keyStrokeChangeDelay',
|
|
856
|
+
'labelCls',
|
|
857
|
+
'labelPosition',
|
|
858
|
+
'labels',
|
|
859
|
+
'labelWidth',
|
|
860
|
+
'listeners',
|
|
861
|
+
'localeClass',
|
|
862
|
+
'localizable',
|
|
863
|
+
'localizableProperties',
|
|
864
|
+
'maskDefaults',
|
|
865
|
+
'masked',
|
|
866
|
+
'maxLength',
|
|
867
|
+
'minLength',
|
|
868
|
+
'monitorResize',
|
|
869
|
+
'name',
|
|
870
|
+
'owner',
|
|
871
|
+
'positioned',
|
|
872
|
+
'preventTooltipOnTouch',
|
|
873
|
+
'progressText',
|
|
874
|
+
'relayStoreEvents',
|
|
875
|
+
'revertOnEscape',
|
|
876
|
+
'ripple',
|
|
877
|
+
'rootElement',
|
|
878
|
+
'scrollAction',
|
|
879
|
+
'showAnimation',
|
|
880
|
+
'showTooltipWhenDisabled',
|
|
881
|
+
'skipValidation',
|
|
882
|
+
'spellCheck',
|
|
883
|
+
'tab',
|
|
884
|
+
'tabIndex',
|
|
885
|
+
'textAlign',
|
|
886
|
+
'title',
|
|
887
|
+
'type',
|
|
888
|
+
'ui',
|
|
889
|
+
'validateOnInput',
|
|
890
|
+
'weight'
|
|
891
|
+
];
|
|
892
|
+
|
|
893
|
+
static propertyConfigNames = [
|
|
894
|
+
'alignSelf',
|
|
895
|
+
'appendTo',
|
|
896
|
+
'badge',
|
|
897
|
+
'callOnFunctions',
|
|
898
|
+
'catchEventHandlerExceptions',
|
|
899
|
+
'cls',
|
|
900
|
+
'column',
|
|
901
|
+
'dataset',
|
|
902
|
+
'disabled',
|
|
903
|
+
'editable',
|
|
904
|
+
'extraData',
|
|
905
|
+
'flex',
|
|
906
|
+
'height',
|
|
907
|
+
'hidden',
|
|
908
|
+
'id',
|
|
909
|
+
'insertBefore',
|
|
910
|
+
'insertFirst',
|
|
911
|
+
'keyMap',
|
|
912
|
+
'label',
|
|
913
|
+
'margin',
|
|
914
|
+
'maxHeight',
|
|
915
|
+
'maximizeOnMobile',
|
|
916
|
+
'maxWidth',
|
|
917
|
+
'minHeight',
|
|
918
|
+
'minWidth',
|
|
919
|
+
'onAction',
|
|
920
|
+
'onBeforeDestroy',
|
|
921
|
+
'onBeforeHide',
|
|
922
|
+
'onBeforeShow',
|
|
923
|
+
'onCatchAll',
|
|
924
|
+
'onChange',
|
|
925
|
+
'onClear',
|
|
926
|
+
'onDestroy',
|
|
927
|
+
'onElementCreated',
|
|
928
|
+
'onFocusIn',
|
|
929
|
+
'onFocusOut',
|
|
930
|
+
'onHide',
|
|
931
|
+
'onInput',
|
|
932
|
+
'onPaint',
|
|
933
|
+
'onReadOnly',
|
|
934
|
+
'onRecompose',
|
|
935
|
+
'onResize',
|
|
936
|
+
'onShow',
|
|
937
|
+
'onTrigger',
|
|
938
|
+
'placeholder',
|
|
939
|
+
'readOnly',
|
|
940
|
+
'rendition',
|
|
941
|
+
'required',
|
|
942
|
+
'rtl',
|
|
943
|
+
'showRequiredIndicator',
|
|
944
|
+
'span',
|
|
945
|
+
'tooltip',
|
|
946
|
+
'triggers',
|
|
947
|
+
'value',
|
|
948
|
+
'width',
|
|
949
|
+
'x',
|
|
950
|
+
'y'
|
|
951
|
+
];
|
|
952
|
+
|
|
953
|
+
static propertyNames = [
|
|
954
|
+
'anchorSize',
|
|
955
|
+
'content',
|
|
956
|
+
'focusVisible',
|
|
957
|
+
'formula',
|
|
958
|
+
'html',
|
|
959
|
+
'input',
|
|
960
|
+
'parent',
|
|
961
|
+
'scrollable'
|
|
962
|
+
];
|
|
963
|
+
|
|
964
|
+
// Component instance
|
|
965
|
+
instance!: AIFilterField;
|
|
966
|
+
|
|
967
|
+
// Component element
|
|
968
|
+
element! : HTMLElement;
|
|
969
|
+
|
|
970
|
+
componentDidMount(): void {
|
|
971
|
+
this.instance = createWidget(this);
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
componentWillUnmount(): void {
|
|
975
|
+
// @ts-ignore
|
|
976
|
+
this.instance?.destroy?.();
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
/**
|
|
980
|
+
* Component about to be updated, from changing a prop using state.
|
|
981
|
+
* React to it depending on what changed and prevent react from re-rendering our component.
|
|
982
|
+
* @param nextProps
|
|
983
|
+
* @param nextState
|
|
984
|
+
* @returns {boolean}
|
|
985
|
+
*/
|
|
986
|
+
shouldComponentUpdate(nextProps: Readonly<BryntumAIFilterFieldProps>, nextState: Readonly<{}>): boolean {
|
|
987
|
+
return shouldComponentUpdate(this, nextProps, nextState);
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
render(): React.ReactNode {
|
|
991
|
+
|
|
992
|
+
const className = `b-react-a-i-filter-field-container`;
|
|
993
|
+
return (
|
|
994
|
+
<div className={className} ref={(element) => (this.element = element!)}></div>
|
|
995
|
+
);
|
|
996
|
+
|
|
997
|
+
}
|
|
998
|
+
}
|