@bryntum/schedulerpro-vue-3-thin 7.2.0 → 7.2.2
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 +7 -7
- package/lib/chunks/B12rdbvL.js.map +1 -1
- package/lib/chunks/BBN-5eeI.js.map +1 -1
- package/lib/chunks/{DghqseiN.js → BCexQ9jU.js} +4 -2
- package/lib/chunks/BCexQ9jU.js.map +1 -0
- package/lib/chunks/{OtE4hpSS.js → BIu6tRhF.js} +4 -2
- package/lib/chunks/BIu6tRhF.js.map +1 -0
- package/lib/chunks/BMF41dEG.js.map +1 -1
- package/lib/chunks/BrUxjEMx.js.map +1 -1
- package/lib/chunks/ByS5_-RM.js.map +1 -1
- package/lib/chunks/{B7sV8_zC.js → CAY3x-95.js} +4 -2
- package/lib/chunks/CAY3x-95.js.map +1 -0
- package/lib/chunks/CDbPwyl3.js.map +1 -1
- package/lib/chunks/{N6QbiUPO.js → ClkvTNYg.js} +4 -2
- package/lib/chunks/ClkvTNYg.js.map +1 -0
- package/lib/chunks/Ct_m9O9h.js.map +1 -1
- package/lib/chunks/D4JDuI0s.js.map +1 -1
- package/lib/chunks/DC4Xw3gK.js.map +1 -1
- package/lib/chunks/DRVdzy6g.js.map +1 -1
- package/lib/chunks/DgESZupU.js.map +1 -1
- package/lib/chunks/{sUi9pfNu.js → DkEI_jQ3.js} +102 -31
- package/lib/chunks/DkEI_jQ3.js.map +1 -0
- package/lib/chunks/{CoYhPB2e.js → DsAuU2wi.js} +7 -5
- package/lib/chunks/DsAuU2wi.js.map +1 -0
- package/lib/chunks/DvFm-5Hh.js.map +1 -1
- package/lib/chunks/{B2O8rS3_.js → DzkbsToy.js} +6 -4
- package/lib/chunks/DzkbsToy.js.map +1 -0
- package/lib/chunks/H_iWW1r0.js.map +1 -1
- package/lib/chunks/ggN9GDPJ.js.map +1 -1
- package/lib/chunks/qKNUUeE0.js.map +1 -1
- package/lib/components/BryntumResourceGrid.js +1 -1
- package/lib/components/BryntumResourceHistogram.js +1 -1
- package/lib/components/BryntumResourceUtilization.js +1 -1
- package/lib/components/BryntumSchedulerPro.js +1 -1
- package/lib/components/BryntumSchedulerProBase.js +1 -1
- package/lib/components/BryntumTimeline.js +1 -1
- package/lib/components/BryntumVersionGrid.js +1 -1
- package/lib/index.js +7 -7
- package/package.json +1 -1
- package/src/components/BryntumCalendarEditor.vue +1 -1
- package/src/components/BryntumCalendarEditorProps.ts +1 -1
- package/src/components/BryntumCalendarField.vue +2 -2
- package/src/components/BryntumCalendarFieldProps.ts +2 -2
- package/src/components/BryntumConstraintTypePicker.vue +2 -2
- package/src/components/BryntumConstraintTypePickerProps.ts +2 -2
- package/src/components/BryntumCostAccrualField.vue +2 -2
- package/src/components/BryntumCostAccrualFieldProps.ts +2 -2
- package/src/components/BryntumDependencyTypePicker.vue +2 -2
- package/src/components/BryntumDependencyTypePickerProps.ts +2 -2
- package/src/components/BryntumEffortField.vue +1 -1
- package/src/components/BryntumEffortFieldProps.ts +1 -1
- package/src/components/BryntumEndDateField.vue +1 -1
- package/src/components/BryntumEndDateFieldProps.ts +1 -1
- package/src/components/BryntumModelCombo.vue +2 -2
- package/src/components/BryntumModelComboProps.ts +2 -2
- package/src/components/BryntumRateTableField.vue +2 -2
- package/src/components/BryntumRateTableFieldProps.ts +2 -2
- package/src/components/BryntumResourceEditor.vue +1 -1
- package/src/components/BryntumResourceEditorProps.ts +1 -1
- package/src/components/BryntumResourceGrid.vue +98 -7
- package/src/components/BryntumResourceGridProps.ts +4 -4
- package/src/components/BryntumResourceHistogram.vue +22 -8
- package/src/components/BryntumResourceHistogramProps.ts +4 -4
- package/src/components/BryntumResourceTypeField.vue +2 -2
- package/src/components/BryntumResourceTypeFieldProps.ts +2 -2
- package/src/components/BryntumResourceUtilization.vue +23 -9
- package/src/components/BryntumResourceUtilizationProps.ts +5 -5
- package/src/components/BryntumSchedulerPro.vue +29 -14
- package/src/components/BryntumSchedulerProBase.vue +29 -14
- package/src/components/BryntumSchedulerProBaseProps.ts +8 -8
- package/src/components/BryntumSchedulerProProjectModel.vue +7 -7
- package/src/components/BryntumSchedulerProProjectModelProps.ts +1 -1
- package/src/components/BryntumSchedulerProProps.ts +8 -8
- package/src/components/BryntumSchedulingDirectionPicker.vue +2 -2
- package/src/components/BryntumSchedulingDirectionPickerProps.ts +2 -2
- package/src/components/BryntumSchedulingModePicker.vue +2 -2
- package/src/components/BryntumSchedulingModePickerProps.ts +2 -2
- package/src/components/BryntumStartDateField.vue +1 -1
- package/src/components/BryntumStartDateFieldProps.ts +1 -1
- package/src/components/BryntumTimeline.vue +29 -14
- package/src/components/BryntumTimelineProps.ts +8 -8
- package/src/components/BryntumVersionGrid.vue +20 -6
- package/src/components/BryntumVersionGridProps.ts +4 -4
- package/lib/chunks/B2O8rS3_.js.map +0 -1
- package/lib/chunks/B7sV8_zC.js.map +0 -1
- package/lib/chunks/CoYhPB2e.js.map +0 -1
- package/lib/chunks/DghqseiN.js.map +0 -1
- package/lib/chunks/N6QbiUPO.js.map +0 -1
- package/lib/chunks/OtE4hpSS.js.map +0 -1
- package/lib/chunks/sUi9pfNu.js.map +0 -1
|
@@ -190,7 +190,7 @@ defineProps<{
|
|
|
190
190
|
contentElementCls ? : string|object
|
|
191
191
|
/**
|
|
192
192
|
* If configured as `true`, this means that when an unmatched string is typed into the
|
|
193
|
-
* combo's input field, and
|
|
193
|
+
* combo's input field, and <kbd>Enter</kbd>, or the [multiValueSeparator](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Combo#config-multiValueSeparator) is typed,
|
|
194
194
|
* a new record will be created using the typed string as the [displayField](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Combo#config-displayField).
|
|
195
195
|
* ...
|
|
196
196
|
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/SchedulingDirectionPicker#config-createOnUnmatched)
|
|
@@ -685,7 +685,7 @@ defineProps<{
|
|
|
685
685
|
required ? : Boolean
|
|
686
686
|
/**
|
|
687
687
|
* If this field is not [readOnly](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Field#config-readOnly), then setting this option means that pressing
|
|
688
|
-
* the
|
|
688
|
+
* the <kbd>Escape</kbd> key after editing the field will revert the field to the value it had when
|
|
689
689
|
* the user focused the field. If the field is *not* changed from when focused, the [clearable](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Field#config-clearable)
|
|
690
690
|
* behaviour will be activated.
|
|
691
691
|
*/
|
|
@@ -175,7 +175,7 @@ export declare type BryntumSchedulingDirectionPickerProps = {
|
|
|
175
175
|
contentElementCls ? : string|object
|
|
176
176
|
/**
|
|
177
177
|
* If configured as `true`, this means that when an unmatched string is typed into the
|
|
178
|
-
* combo's input field, and
|
|
178
|
+
* combo's input field, and <kbd>Enter</kbd>, or the [multiValueSeparator](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Combo#config-multiValueSeparator) is typed,
|
|
179
179
|
* a new record will be created using the typed string as the [displayField](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Combo#config-displayField).
|
|
180
180
|
* ...
|
|
181
181
|
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/SchedulingDirectionPicker#config-createOnUnmatched)
|
|
@@ -670,7 +670,7 @@ export declare type BryntumSchedulingDirectionPickerProps = {
|
|
|
670
670
|
required ? : Boolean
|
|
671
671
|
/**
|
|
672
672
|
* If this field is not [readOnly](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Field#config-readOnly), then setting this option means that pressing
|
|
673
|
-
* the
|
|
673
|
+
* the <kbd>Escape</kbd> key after editing the field will revert the field to the value it had when
|
|
674
674
|
* the user focused the field. If the field is *not* changed from when focused, the [clearable](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Field#config-clearable)
|
|
675
675
|
* behaviour will be activated.
|
|
676
676
|
*/
|
|
@@ -197,7 +197,7 @@ defineProps<{
|
|
|
197
197
|
contentElementCls ? : string|object
|
|
198
198
|
/**
|
|
199
199
|
* If configured as `true`, this means that when an unmatched string is typed into the
|
|
200
|
-
* combo's input field, and
|
|
200
|
+
* combo's input field, and <kbd>Enter</kbd>, or the [multiValueSeparator](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Combo#config-multiValueSeparator) is typed,
|
|
201
201
|
* a new record will be created using the typed string as the [displayField](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Combo#config-displayField).
|
|
202
202
|
* ...
|
|
203
203
|
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/SchedulingModePicker#config-createOnUnmatched)
|
|
@@ -692,7 +692,7 @@ defineProps<{
|
|
|
692
692
|
required ? : Boolean
|
|
693
693
|
/**
|
|
694
694
|
* If this field is not [readOnly](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Field#config-readOnly), then setting this option means that pressing
|
|
695
|
-
* the
|
|
695
|
+
* the <kbd>Escape</kbd> key after editing the field will revert the field to the value it had when
|
|
696
696
|
* the user focused the field. If the field is *not* changed from when focused, the [clearable](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Field#config-clearable)
|
|
697
697
|
* behaviour will be activated.
|
|
698
698
|
*/
|
|
@@ -182,7 +182,7 @@ export declare type BryntumSchedulingModePickerProps = {
|
|
|
182
182
|
contentElementCls ? : string|object
|
|
183
183
|
/**
|
|
184
184
|
* If configured as `true`, this means that when an unmatched string is typed into the
|
|
185
|
-
* combo's input field, and
|
|
185
|
+
* combo's input field, and <kbd>Enter</kbd>, or the [multiValueSeparator](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Combo#config-multiValueSeparator) is typed,
|
|
186
186
|
* a new record will be created using the typed string as the [displayField](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Combo#config-displayField).
|
|
187
187
|
* ...
|
|
188
188
|
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/SchedulingModePicker#config-createOnUnmatched)
|
|
@@ -677,7 +677,7 @@ export declare type BryntumSchedulingModePickerProps = {
|
|
|
677
677
|
required ? : Boolean
|
|
678
678
|
/**
|
|
679
679
|
* If this field is not [readOnly](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Field#config-readOnly), then setting this option means that pressing
|
|
680
|
-
* the
|
|
680
|
+
* the <kbd>Escape</kbd> key after editing the field will revert the field to the value it had when
|
|
681
681
|
* the user focused the field. If the field is *not* changed from when focused, the [clearable](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Field#config-clearable)
|
|
682
682
|
* behaviour will be activated.
|
|
683
683
|
*/
|
|
@@ -571,7 +571,7 @@ defineProps<{
|
|
|
571
571
|
required ? : Boolean
|
|
572
572
|
/**
|
|
573
573
|
* If this field is not [readOnly](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Field#config-readOnly), then setting this option means that pressing
|
|
574
|
-
* the
|
|
574
|
+
* the <kbd>Escape</kbd> key after editing the field will revert the field to the value it had when
|
|
575
575
|
* the user focused the field. If the field is *not* changed from when focused, the [clearable](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Field#config-clearable)
|
|
576
576
|
* behaviour will be activated.
|
|
577
577
|
*/
|
|
@@ -556,7 +556,7 @@ export declare type BryntumStartDateFieldProps = {
|
|
|
556
556
|
required ? : Boolean
|
|
557
557
|
/**
|
|
558
558
|
* If this field is not [readOnly](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Field#config-readOnly), then setting this option means that pressing
|
|
559
|
-
* the
|
|
559
|
+
* the <kbd>Escape</kbd> key after editing the field will revert the field to the value it had when
|
|
560
560
|
* the user focused the field. If the field is *not* changed from when focused, the [clearable](https://bryntum.com/products/schedulerpro/docs/api/Core/widget/Field#config-clearable)
|
|
561
561
|
* behaviour will be activated.
|
|
562
562
|
*/
|
|
@@ -430,7 +430,7 @@ defineProps<{
|
|
|
430
430
|
*/
|
|
431
431
|
emptyText ? : string|EmptyTextDomConfig
|
|
432
432
|
/**
|
|
433
|
-
* Allow using
|
|
433
|
+
* Allow using <kbd>Delete</kbd> and <kbd>Backspace</kbd> to remove events/assignments
|
|
434
434
|
*/
|
|
435
435
|
enableDeleteKey ? : Boolean
|
|
436
436
|
/**
|
|
@@ -531,8 +531,8 @@ defineProps<{
|
|
|
531
531
|
* @param {'tonal','filled','bordered','traced','outlined','indented','line','dashed','minimal','rounded','calendar','interday','gantt',null} detail.renderData.eventStyle The `eventStyle` of the event. Use this to apply custom styles to the event DOM element
|
|
532
532
|
* @param {string} detail.renderData.eventColor The `eventColor` of the event. Use this to set a custom color for the rendered event
|
|
533
533
|
* @param {string} detail.renderData.ariaLabel A description of the event details used for screen readers
|
|
534
|
-
* @param {DomConfig[]} detail.renderData.children An array of DOM configs used as children to the `b-sch-event` element. Can be populated with additional DOM configs to have more control over contents.
|
|
535
|
-
* @returns {string,DomConfig,DomConfig[]} A simple string,
|
|
534
|
+
* @param {DomConfig[]} detail.renderData.children An array of DOM configs used as children to the `b-sch-event` element. Can be populated with additional DOM configs to have more control over contents. <h3>Using JSX (React)</h3> When using the Bryntum React wrapper, the event renderer can return JSX elements: ```javascript eventRenderer({ eventRecord, resourceRecord, renderData }) { return <MyEventComponent event={eventRecord} resource={resourceRecord} />; } ``` *Using JSX in the event renderer creates a React portal for each rendered event. For schedulers with many visible events or frequently re-rendered views, this may impact scrolling performance compared to returning plain strings or [DomConfig](https://bryntum.com/products/schedulerpro/docs/api/Core/helper/DomHelper#typedef-DomConfig) objects. Consider using JSX primarily for events that require complex interactive React components.*
|
|
535
|
+
* @returns {string,DomConfig,DomConfig[]} A simple string, a DomConfig (or array thereof), or a JSX element when using React
|
|
536
536
|
*/
|
|
537
537
|
eventRenderer ? : (detail: { eventRecord: SchedulerEventModel, resourceRecord: SchedulerResourceModel, assignmentRecord: SchedulerAssignmentModel, scheduler: Scheduler, renderData: { event: SchedulerEventModel, cls: DomClassList|string, wrapperCls: DomClassList|string, iconCls: DomClassList|string, left: number, width: number, height: number, style: string|Record<string, string>, wrapperStyle: string|Record<string, string>, eventStyle: 'tonal'|'filled'|'bordered'|'traced'|'outlined'|'indented'|'line'|'dashed'|'minimal'|'rounded'|'calendar'|'interday'|'gantt'|null, eventColor: string, ariaLabel: string, children: DomConfig[] } }) => string|DomConfig|DomConfig[]
|
|
538
538
|
/**
|
|
@@ -1608,7 +1608,7 @@ defineProps<{
|
|
|
1608
1608
|
cellEditFeature ? : object|Boolean|string|GridCellEdit|GridCellEditConfig
|
|
1609
1609
|
/**
|
|
1610
1610
|
* Right click to display context menu for cells. To invoke the cell menu in a keyboard-accessible manner, use the
|
|
1611
|
-
*
|
|
1611
|
+
* <kbd>Space</kbd> key when the cell is focused.
|
|
1612
1612
|
* ...
|
|
1613
1613
|
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/Grid/feature/CellMenu)
|
|
1614
1614
|
*/
|
|
@@ -1700,8 +1700,8 @@ defineProps<{
|
|
|
1700
1700
|
*/
|
|
1701
1701
|
dependencyMenuFeature ? : object|Boolean|string|DependencyMenu|DependencyMenuConfig
|
|
1702
1702
|
/**
|
|
1703
|
-
* Allow using <kbd>Ctrl</kbd>/<kbd>
|
|
1704
|
-
* <kbd>V</kbd> to copy/cut and paste events.
|
|
1703
|
+
* Allow using <kbd>Ctrl</kbd>/<kbd>Cmd</kbd>+<kbd>C</kbd>, <kbd>Ctrl</kbd>/<kbd>Cmd</kbd>+<kbd>X</kbd> and
|
|
1704
|
+
* <kbd>Ctrl</kbd>/<kbd>Cmd</kbd>+<kbd>V</kbd> to copy/cut and paste events.
|
|
1705
1705
|
* ...
|
|
1706
1706
|
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/Scheduler/feature/EventCopyPaste)
|
|
1707
1707
|
*/
|
|
@@ -1803,8 +1803,8 @@ defineProps<{
|
|
|
1803
1803
|
filterBarFeature ? : object|Boolean|string|FilterBar|FilterBarConfig
|
|
1804
1804
|
/**
|
|
1805
1805
|
* Enables rendering and handling of row groups. The actual grouping is done in the store, but triggered by
|
|
1806
|
-
* <kbd>
|
|
1807
|
-
* one anywhere on grid). Use <kbd>
|
|
1806
|
+
* <kbd>Shift</kbd> + clicking headers, or by using the context menu, or by using two finger tap (one on header,
|
|
1807
|
+
* one anywhere on grid). Use <kbd>Shift</kbd> + <kbd>Alt</kbd> + click, or the context menu, to remove a column
|
|
1808
1808
|
* grouper.
|
|
1809
1809
|
* ...
|
|
1810
1810
|
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/Grid/feature/Group)
|
|
@@ -2186,7 +2186,7 @@ const emit = defineEmits<{
|
|
|
2186
2186
|
*/
|
|
2187
2187
|
(e: 'assignmentSelectionChange', params: ((event: { source: Scheduler, action: 'select'|'deselect'|'update'|'clear', selected: SchedulerAssignmentModel[], deselected: SchedulerAssignmentModel[], selection: SchedulerAssignmentModel[] }) => void)|string): void
|
|
2188
2188
|
/**
|
|
2189
|
-
* Fires before an assignment is removed. Can be triggered by user pressing
|
|
2189
|
+
* Fires before an assignment is removed. Can be triggered by user pressing <kbd>Delete</kbd> or <kbd>Backspace</kbd> or
|
|
2190
2190
|
* by the event editor. Can for example be used to display a custom dialog to confirm deletion, in which
|
|
2191
2191
|
* case records should be "manually" removed after confirmation:
|
|
2192
2192
|
* ...
|
|
@@ -2268,7 +2268,7 @@ const emit = defineEmits<{
|
|
|
2268
2268
|
*/
|
|
2269
2269
|
(e: 'beforeCellEditStart', params: ((event: { source: Grid, editorContext: CellEditorContext }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
|
|
2270
2270
|
/**
|
|
2271
|
-
* Fires on the owning Grid before deleting a range of selected cell values by pressing
|
|
2271
|
+
* Fires on the owning Grid before deleting a range of selected cell values by pressing <kbd>Backspace</kbd> or <kbd>Delete</kbd>
|
|
2272
2272
|
* buttons while [autoEdit](https://bryntum.com/products/schedulerpro/docs/api/Grid/feature/CellEdit#config-autoEdit) is set to `true`. Return `false` to prevent editing.
|
|
2273
2273
|
* @param {string} e Event name
|
|
2274
2274
|
* @param {object} params Event parameters
|
|
@@ -2540,7 +2540,7 @@ const emit = defineEmits<{
|
|
|
2540
2540
|
*/
|
|
2541
2541
|
(e: 'beforeEventAdd', params: ((event: { source: Scheduler, eventRecord: SchedulerEventModel, resourceRecords: SchedulerResourceModel[], assignmentRecords: SchedulerAssignmentModel[] }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
|
|
2542
2542
|
/**
|
|
2543
|
-
* Fires before an event is removed. Can be triggered by user pressing
|
|
2543
|
+
* Fires before an event is removed. Can be triggered by user pressing <kbd>Delete</kbd> or <kbd>Backspace</kbd> or by the
|
|
2544
2544
|
* event editor. Return `false` to immediately veto the removal (or a `Promise` yielding `true` or `false`
|
|
2545
2545
|
* for async vetoing).
|
|
2546
2546
|
* ...
|
|
@@ -4448,12 +4448,13 @@ const emit = defineEmits<{
|
|
|
4448
4448
|
* @param {Scheduler.model.SchedulerEventModel[]} params.params.event.originalEventRecords The event records that were copied
|
|
4449
4449
|
* @param {Scheduler.model.SchedulerAssignmentModel[]} params.params.event.originalAssignmentRecords The assignment records that were copied
|
|
4450
4450
|
* @param {Date} params.params.event.date The paste date
|
|
4451
|
-
* @param {Scheduler.model.SchedulerResourceModel} params.params.event.resourceRecord The target resource record
|
|
4451
|
+
* @param {Scheduler.model.SchedulerResourceModel} params.params.event.resourceRecord The target resource record. When multiple resources are pasted to, this will be the top resource
|
|
4452
|
+
* @param {Scheduler.model.SchedulerResourceModel[]} params.params.event.resourceRecords All target resource records that the events would be pasted to
|
|
4452
4453
|
* @param {boolean} params.params.event.isCut `true` if this is a cut action
|
|
4453
4454
|
* @param {string} params.params.event.entityName 'event' to distinguish this event from other `pasteNotAllowed` events
|
|
4454
4455
|
* @param {'overlappingEvents','resourceReadOnly'} params.params.event.reason A string id to use for displaying an error message to the user.
|
|
4455
4456
|
*/
|
|
4456
|
-
(e: 'pasteNotAllowed', params: ((event: { source: Scheduler, eventRecords: SchedulerEventModel[], assignmentRecords: SchedulerAssignmentModel[], originalEventRecords: SchedulerEventModel[], originalAssignmentRecords: SchedulerAssignmentModel[], date: Date, resourceRecord: SchedulerResourceModel, isCut: boolean, entityName: string, reason: 'overlappingEvents'|'resourceReadOnly' }) => void)|string): void
|
|
4457
|
+
(e: 'pasteNotAllowed', params: ((event: { source: Scheduler, eventRecords: SchedulerEventModel[], assignmentRecords: SchedulerAssignmentModel[], originalEventRecords: SchedulerEventModel[], originalAssignmentRecords: SchedulerAssignmentModel[], date: Date, resourceRecord: SchedulerResourceModel, resourceRecords: SchedulerResourceModel[], isCut: boolean, entityName: string, reason: 'overlappingEvents'|'resourceReadOnly' }) => void)|string): void
|
|
4457
4458
|
/**
|
|
4458
4459
|
* Fires on the owning Grid when export has finished
|
|
4459
4460
|
* @param {string} e Event name
|
|
@@ -4464,7 +4465,7 @@ const emit = defineEmits<{
|
|
|
4464
4465
|
* @param {Response} params.params.event.response Optional response, if received
|
|
4465
4466
|
* @param {Error} params.params.event.error Optional error, if exception occurred
|
|
4466
4467
|
*/
|
|
4467
|
-
(e: 'pdfExport', params: ((event: { response?:
|
|
4468
|
+
(e: 'pdfExport', params: ((event: { response?: Response, error?: Error }) => void)|string): void
|
|
4468
4469
|
/**
|
|
4469
4470
|
* Fired after the [viewPreset](https://bryntum.com/products/schedulerpro/docs/api/Scheduler/view/mixin/TimelineViewPresets#config-viewPreset) has changed.
|
|
4470
4471
|
* @param {string} e Event name
|
|
@@ -5591,6 +5592,18 @@ const emit = defineEmits<{
|
|
|
5591
5592
|
* @param {Core.widget.Tool} params.params.event.tool The tool which is being clicked.
|
|
5592
5593
|
*/
|
|
5593
5594
|
(e: 'toolClick', params: ((event: { source: Tool, tool: Tool }) => void)|string): void
|
|
5595
|
+
/**
|
|
5596
|
+
* Fired on the owning Grid/Scheduler/Gantt after tree grouping levels change
|
|
5597
|
+
* @param {string} e Event name
|
|
5598
|
+
* @param {object} params Event parameters
|
|
5599
|
+
* @param {string} params.e Event name
|
|
5600
|
+
* @param {object} params.params Event parameters
|
|
5601
|
+
* @param {object} params.params.event Event object
|
|
5602
|
+
* @param {Grid.view.Grid} params.params.event.source The grid instance
|
|
5603
|
+
* @param {(string|Function)[]} params.params.event.groupers Array of field names or functions representing the current grouping levels
|
|
5604
|
+
* @param {(string|Function)[]} params.params.event.oldGroupers Array of field names or functions representing the previous grouping levels
|
|
5605
|
+
*/
|
|
5606
|
+
(e: 'treeGroup', params: ((event: { source: Grid, groupers: (string|Function)[], oldGroupers: (string|Function)[] }) => void)|string): void
|
|
5594
5607
|
/**
|
|
5595
5608
|
* Fires when row locking is disabled.
|
|
5596
5609
|
* @param {string} e Event name
|
|
@@ -6092,6 +6105,7 @@ const widgetData = {
|
|
|
6092
6105
|
'onToggleGroup',
|
|
6093
6106
|
'onToggleNode',
|
|
6094
6107
|
'onToolClick',
|
|
6108
|
+
'onTreeGroup',
|
|
6095
6109
|
'onUnlockRows',
|
|
6096
6110
|
'onUnsplit',
|
|
6097
6111
|
'onVisibleDateRangeChange',
|
|
@@ -6423,6 +6437,7 @@ const widgetData = {
|
|
|
6423
6437
|
'toggleGroup',
|
|
6424
6438
|
'toggleNode',
|
|
6425
6439
|
'toolClick',
|
|
6440
|
+
'treeGroup',
|
|
6426
6441
|
'unlockRows',
|
|
6427
6442
|
'unsplit',
|
|
6428
6443
|
'visibleDateRangeChange'
|
|
@@ -415,7 +415,7 @@ export declare type BryntumTimelineProps = {
|
|
|
415
415
|
*/
|
|
416
416
|
emptyText ? : string|EmptyTextDomConfig
|
|
417
417
|
/**
|
|
418
|
-
* Allow using
|
|
418
|
+
* Allow using <kbd>Delete</kbd> and <kbd>Backspace</kbd> to remove events/assignments
|
|
419
419
|
*/
|
|
420
420
|
enableDeleteKey ? : Boolean
|
|
421
421
|
/**
|
|
@@ -516,8 +516,8 @@ export declare type BryntumTimelineProps = {
|
|
|
516
516
|
* @param {'tonal','filled','bordered','traced','outlined','indented','line','dashed','minimal','rounded','calendar','interday','gantt',null} detail.renderData.eventStyle The `eventStyle` of the event. Use this to apply custom styles to the event DOM element
|
|
517
517
|
* @param {string} detail.renderData.eventColor The `eventColor` of the event. Use this to set a custom color for the rendered event
|
|
518
518
|
* @param {string} detail.renderData.ariaLabel A description of the event details used for screen readers
|
|
519
|
-
* @param {DomConfig[]} detail.renderData.children An array of DOM configs used as children to the `b-sch-event` element. Can be populated with additional DOM configs to have more control over contents.
|
|
520
|
-
* @returns {string,DomConfig,DomConfig[]} A simple string,
|
|
519
|
+
* @param {DomConfig[]} detail.renderData.children An array of DOM configs used as children to the `b-sch-event` element. Can be populated with additional DOM configs to have more control over contents. <h3>Using JSX (React)</h3> When using the Bryntum React wrapper, the event renderer can return JSX elements: ```javascript eventRenderer({ eventRecord, resourceRecord, renderData }) { return <MyEventComponent event={eventRecord} resource={resourceRecord} />; } ``` *Using JSX in the event renderer creates a React portal for each rendered event. For schedulers with many visible events or frequently re-rendered views, this may impact scrolling performance compared to returning plain strings or [DomConfig](https://bryntum.com/products/schedulerpro/docs/api/Core/helper/DomHelper#typedef-DomConfig) objects. Consider using JSX primarily for events that require complex interactive React components.*
|
|
520
|
+
* @returns {string,DomConfig,DomConfig[]} A simple string, a DomConfig (or array thereof), or a JSX element when using React
|
|
521
521
|
*/
|
|
522
522
|
eventRenderer ? : (detail: { eventRecord: SchedulerEventModel, resourceRecord: SchedulerResourceModel, assignmentRecord: SchedulerAssignmentModel, scheduler: Scheduler, renderData: { event: SchedulerEventModel, cls: DomClassList|string, wrapperCls: DomClassList|string, iconCls: DomClassList|string, left: number, width: number, height: number, style: string|Record<string, string>, wrapperStyle: string|Record<string, string>, eventStyle: 'tonal'|'filled'|'bordered'|'traced'|'outlined'|'indented'|'line'|'dashed'|'minimal'|'rounded'|'calendar'|'interday'|'gantt'|null, eventColor: string, ariaLabel: string, children: DomConfig[] } }) => string|DomConfig|DomConfig[]
|
|
523
523
|
/**
|
|
@@ -1593,7 +1593,7 @@ export declare type BryntumTimelineProps = {
|
|
|
1593
1593
|
cellEditFeature ? : object|Boolean|string|GridCellEdit|GridCellEditConfig
|
|
1594
1594
|
/**
|
|
1595
1595
|
* Right click to display context menu for cells. To invoke the cell menu in a keyboard-accessible manner, use the
|
|
1596
|
-
*
|
|
1596
|
+
* <kbd>Space</kbd> key when the cell is focused.
|
|
1597
1597
|
* ...
|
|
1598
1598
|
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/Grid/feature/CellMenu)
|
|
1599
1599
|
*/
|
|
@@ -1685,8 +1685,8 @@ export declare type BryntumTimelineProps = {
|
|
|
1685
1685
|
*/
|
|
1686
1686
|
dependencyMenuFeature ? : object|Boolean|string|DependencyMenu|DependencyMenuConfig
|
|
1687
1687
|
/**
|
|
1688
|
-
* Allow using <kbd>Ctrl</kbd>/<kbd>
|
|
1689
|
-
* <kbd>V</kbd> to copy/cut and paste events.
|
|
1688
|
+
* Allow using <kbd>Ctrl</kbd>/<kbd>Cmd</kbd>+<kbd>C</kbd>, <kbd>Ctrl</kbd>/<kbd>Cmd</kbd>+<kbd>X</kbd> and
|
|
1689
|
+
* <kbd>Ctrl</kbd>/<kbd>Cmd</kbd>+<kbd>V</kbd> to copy/cut and paste events.
|
|
1690
1690
|
* ...
|
|
1691
1691
|
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/Scheduler/feature/EventCopyPaste)
|
|
1692
1692
|
*/
|
|
@@ -1788,8 +1788,8 @@ export declare type BryntumTimelineProps = {
|
|
|
1788
1788
|
filterBarFeature ? : object|Boolean|string|FilterBar|FilterBarConfig
|
|
1789
1789
|
/**
|
|
1790
1790
|
* Enables rendering and handling of row groups. The actual grouping is done in the store, but triggered by
|
|
1791
|
-
* <kbd>
|
|
1792
|
-
* one anywhere on grid). Use <kbd>
|
|
1791
|
+
* <kbd>Shift</kbd> + clicking headers, or by using the context menu, or by using two finger tap (one on header,
|
|
1792
|
+
* one anywhere on grid). Use <kbd>Shift</kbd> + <kbd>Alt</kbd> + click, or the context menu, to remove a column
|
|
1793
1793
|
* grouper.
|
|
1794
1794
|
* ...
|
|
1795
1795
|
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/Grid/feature/Group)
|
|
@@ -582,7 +582,7 @@ defineProps<{
|
|
|
582
582
|
rootElement ? : ShadowRoot|HTMLElement
|
|
583
583
|
/**
|
|
584
584
|
* Row height in pixels. This allows the default height for rows to be controlled. Note that it may be
|
|
585
|
-
*
|
|
585
|
+
* overridden by specifying a [rowHeight](https://bryntum.com/products/schedulerpro/docs/api/Grid/data/GridRowModel#field-rowHeight) on a per record basis, or from
|
|
586
586
|
* a column [renderer](https://bryntum.com/products/schedulerpro/docs/api/Grid/column/Column#config-renderer).
|
|
587
587
|
* ...
|
|
588
588
|
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/VersionGrid#config-rowHeight)
|
|
@@ -822,7 +822,7 @@ defineProps<{
|
|
|
822
822
|
cellEditFeature ? : object|Boolean|string|GridCellEdit|GridCellEditConfig
|
|
823
823
|
/**
|
|
824
824
|
* Right click to display context menu for cells. To invoke the cell menu in a keyboard-accessible manner, use the
|
|
825
|
-
*
|
|
825
|
+
* <kbd>Space</kbd> key when the cell is focused.
|
|
826
826
|
* ...
|
|
827
827
|
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/Grid/feature/CellMenu)
|
|
828
828
|
*/
|
|
@@ -922,8 +922,8 @@ defineProps<{
|
|
|
922
922
|
filterBarFeature ? : object|Boolean|string|FilterBar|FilterBarConfig
|
|
923
923
|
/**
|
|
924
924
|
* Enables rendering and handling of row groups. The actual grouping is done in the store, but triggered by
|
|
925
|
-
* <kbd>
|
|
926
|
-
* one anywhere on grid). Use <kbd>
|
|
925
|
+
* <kbd>Shift</kbd> + clicking headers, or by using the context menu, or by using two finger tap (one on header,
|
|
926
|
+
* one anywhere on grid). Use <kbd>Shift</kbd> + <kbd>Alt</kbd> + click, or the context menu, to remove a column
|
|
927
927
|
* grouper.
|
|
928
928
|
* ...
|
|
929
929
|
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/Grid/feature/Group)
|
|
@@ -1118,7 +1118,7 @@ const emit = defineEmits<{
|
|
|
1118
1118
|
*/
|
|
1119
1119
|
(e: 'beforeCellEditStart', params: ((event: { source: Grid, editorContext: CellEditorContext }) => Promise<boolean>|boolean|void)|string): Promise<boolean>|boolean|void
|
|
1120
1120
|
/**
|
|
1121
|
-
* Fires on the owning Grid before deleting a range of selected cell values by pressing
|
|
1121
|
+
* Fires on the owning Grid before deleting a range of selected cell values by pressing <kbd>Backspace</kbd> or <kbd>Delete</kbd>
|
|
1122
1122
|
* buttons while [autoEdit](https://bryntum.com/products/schedulerpro/docs/api/Grid/feature/CellEdit#config-autoEdit) is set to `true`. Return `false` to prevent editing.
|
|
1123
1123
|
* @param {string} e Event name
|
|
1124
1124
|
* @param {object} params Event parameters
|
|
@@ -2236,7 +2236,7 @@ const emit = defineEmits<{
|
|
|
2236
2236
|
* @param {Response} params.params.event.response Optional response, if received
|
|
2237
2237
|
* @param {Error} params.params.event.error Optional error, if exception occurred
|
|
2238
2238
|
*/
|
|
2239
|
-
(e: 'pdfExport', params: ((event: { response?:
|
|
2239
|
+
(e: 'pdfExport', params: ((event: { response?: Response, error?: Error }) => void)|string): void
|
|
2240
2240
|
/**
|
|
2241
2241
|
* Fired when a Widget's read only state is toggled
|
|
2242
2242
|
* @param {string} e Event name
|
|
@@ -2561,6 +2561,18 @@ const emit = defineEmits<{
|
|
|
2561
2561
|
* @param {Core.widget.Tool} params.params.event.tool The tool which is being clicked.
|
|
2562
2562
|
*/
|
|
2563
2563
|
(e: 'toolClick', params: ((event: { source: Tool, tool: Tool }) => void)|string): void
|
|
2564
|
+
/**
|
|
2565
|
+
* Fired on the owning Grid/Scheduler/Gantt after tree grouping levels change
|
|
2566
|
+
* @param {string} e Event name
|
|
2567
|
+
* @param {object} params Event parameters
|
|
2568
|
+
* @param {string} params.e Event name
|
|
2569
|
+
* @param {object} params.params Event parameters
|
|
2570
|
+
* @param {object} params.params.event Event object
|
|
2571
|
+
* @param {Grid.view.Grid} params.params.event.source The grid instance
|
|
2572
|
+
* @param {(string|Function)[]} params.params.event.groupers Array of field names or functions representing the current grouping levels
|
|
2573
|
+
* @param {(string|Function)[]} params.params.event.oldGroupers Array of field names or functions representing the previous grouping levels
|
|
2574
|
+
*/
|
|
2575
|
+
(e: 'treeGroup', params: ((event: { source: Grid, groupers: (string|Function)[], oldGroupers: (string|Function)[] }) => void)|string): void
|
|
2564
2576
|
/**
|
|
2565
2577
|
* Fires when row locking is disabled.
|
|
2566
2578
|
* @param {string} e Event name
|
|
@@ -2812,6 +2824,7 @@ const widgetData = {
|
|
|
2812
2824
|
'onToggleGroup',
|
|
2813
2825
|
'onToggleNode',
|
|
2814
2826
|
'onToolClick',
|
|
2827
|
+
'onTreeGroup',
|
|
2815
2828
|
'onUnlockRows',
|
|
2816
2829
|
'onUnsplit',
|
|
2817
2830
|
'preserveScroll',
|
|
@@ -2967,6 +2980,7 @@ const widgetData = {
|
|
|
2967
2980
|
'toggleGroup',
|
|
2968
2981
|
'toggleNode',
|
|
2969
2982
|
'toolClick',
|
|
2983
|
+
'treeGroup',
|
|
2970
2984
|
'unlockRows',
|
|
2971
2985
|
'unsplit'
|
|
2972
2986
|
]
|
|
@@ -566,7 +566,7 @@ export declare type BryntumVersionGridProps = {
|
|
|
566
566
|
rootElement ? : ShadowRoot|HTMLElement
|
|
567
567
|
/**
|
|
568
568
|
* Row height in pixels. This allows the default height for rows to be controlled. Note that it may be
|
|
569
|
-
*
|
|
569
|
+
* overridden by specifying a [rowHeight](https://bryntum.com/products/schedulerpro/docs/api/Grid/data/GridRowModel#field-rowHeight) on a per record basis, or from
|
|
570
570
|
* a column [renderer](https://bryntum.com/products/schedulerpro/docs/api/Grid/column/Column#config-renderer).
|
|
571
571
|
* ...
|
|
572
572
|
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/SchedulerPro/widget/VersionGrid#config-rowHeight)
|
|
@@ -806,7 +806,7 @@ export declare type BryntumVersionGridProps = {
|
|
|
806
806
|
cellEditFeature ? : object|Boolean|string|GridCellEdit|GridCellEditConfig
|
|
807
807
|
/**
|
|
808
808
|
* Right click to display context menu for cells. To invoke the cell menu in a keyboard-accessible manner, use the
|
|
809
|
-
*
|
|
809
|
+
* <kbd>Space</kbd> key when the cell is focused.
|
|
810
810
|
* ...
|
|
811
811
|
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/Grid/feature/CellMenu)
|
|
812
812
|
*/
|
|
@@ -906,8 +906,8 @@ export declare type BryntumVersionGridProps = {
|
|
|
906
906
|
filterBarFeature ? : object|Boolean|string|FilterBar|FilterBarConfig
|
|
907
907
|
/**
|
|
908
908
|
* Enables rendering and handling of row groups. The actual grouping is done in the store, but triggered by
|
|
909
|
-
* <kbd>
|
|
910
|
-
* one anywhere on grid). Use <kbd>
|
|
909
|
+
* <kbd>Shift</kbd> + clicking headers, or by using the context menu, or by using two finger tap (one on header,
|
|
910
|
+
* one anywhere on grid). Use <kbd>Shift</kbd> + <kbd>Alt</kbd> + click, or the context menu, to remove a column
|
|
911
911
|
* grouper.
|
|
912
912
|
* ...
|
|
913
913
|
* [View online docs...](https://bryntum.com/products/schedulerpro/docs/api/Grid/feature/Group)
|