@bryntum/calendar-vue-3 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 +53 -0
- package/lib/chunks/6e5LeSJU.js +348 -0
- package/lib/chunks/6e5LeSJU.js.map +1 -0
- package/lib/chunks/Au1iuOl5.js +231 -0
- package/lib/chunks/Au1iuOl5.js.map +1 -0
- package/lib/chunks/AuFgCdLX.js +265 -0
- package/lib/chunks/AuFgCdLX.js.map +1 -0
- package/lib/chunks/B4_IqbDS.js +313 -0
- package/lib/chunks/B4_IqbDS.js.map +1 -0
- package/lib/chunks/B7YXa-I1.js +315 -0
- package/lib/chunks/B7YXa-I1.js.map +1 -0
- package/lib/chunks/B8gugSPH.js +303 -0
- package/lib/chunks/B8gugSPH.js.map +1 -0
- package/lib/chunks/B9IN35xb.js +722 -0
- package/lib/chunks/B9IN35xb.js.map +1 -0
- package/lib/chunks/BCQU3pVW.js +332 -0
- package/lib/chunks/BCQU3pVW.js.map +1 -0
- package/lib/chunks/BCapNDrC.js +1138 -0
- package/lib/chunks/BCapNDrC.js.map +1 -0
- package/lib/chunks/BGB1Jol1.js +420 -0
- package/lib/chunks/BGB1Jol1.js.map +1 -0
- package/lib/chunks/BI1N0MIj.js +233 -0
- package/lib/chunks/BI1N0MIj.js.map +1 -0
- package/lib/chunks/BNOuYpbo.js +324 -0
- package/lib/chunks/BNOuYpbo.js.map +1 -0
- package/lib/chunks/BO4n9DQP.js +308 -0
- package/lib/chunks/BO4n9DQP.js.map +1 -0
- package/lib/chunks/BOcV1Utm.js +311 -0
- package/lib/chunks/BOcV1Utm.js.map +1 -0
- package/lib/chunks/BPTCZ6IE.js +385 -0
- package/lib/chunks/BPTCZ6IE.js.map +1 -0
- package/lib/chunks/BPonWkID.js +283 -0
- package/lib/chunks/BPonWkID.js.map +1 -0
- package/lib/chunks/BUN4Rk5-.js +287 -0
- package/lib/chunks/BUN4Rk5-.js.map +1 -0
- package/lib/chunks/BXimBVRa.js +515 -0
- package/lib/chunks/BXimBVRa.js.map +1 -0
- package/lib/chunks/Baux7HCy.js +157 -0
- package/lib/chunks/Baux7HCy.js.map +1 -0
- package/lib/chunks/BhoSqDZl.js +382 -0
- package/lib/chunks/BhoSqDZl.js.map +1 -0
- package/lib/chunks/BmShyJT9.js +283 -0
- package/lib/chunks/BmShyJT9.js.map +1 -0
- package/lib/chunks/Bpz21Q9F.js +279 -0
- package/lib/chunks/Bpz21Q9F.js.map +1 -0
- package/lib/chunks/Br_UPlga.js +322 -0
- package/lib/chunks/Br_UPlga.js.map +1 -0
- package/lib/chunks/BtTswK-2.js +380 -0
- package/lib/chunks/BtTswK-2.js.map +1 -0
- package/lib/chunks/BuuryInq.js +284 -0
- package/lib/chunks/BuuryInq.js.map +1 -0
- package/lib/chunks/BwlMnX42.js +273 -0
- package/lib/chunks/BwlMnX42.js.map +1 -0
- package/lib/chunks/BxJmG96S.js +673 -0
- package/lib/chunks/BxJmG96S.js.map +1 -0
- package/lib/chunks/BzUFQEuh.js +865 -0
- package/lib/chunks/BzUFQEuh.js.map +1 -0
- package/lib/chunks/C04gcDe3.js +90 -0
- package/lib/chunks/C04gcDe3.js.map +1 -0
- package/lib/chunks/C0MrmpSO.js +304 -0
- package/lib/chunks/C0MrmpSO.js.map +1 -0
- package/lib/chunks/C3SXPZJJ.js +332 -0
- package/lib/chunks/C3SXPZJJ.js.map +1 -0
- package/lib/chunks/CIQAmaY-.js +311 -0
- package/lib/chunks/CIQAmaY-.js.map +1 -0
- package/lib/chunks/CMw4TMDz.js +285 -0
- package/lib/chunks/CMw4TMDz.js.map +1 -0
- package/lib/chunks/COlyo1Wo.js +340 -0
- package/lib/chunks/COlyo1Wo.js.map +1 -0
- package/lib/chunks/COpeCHCq.js +331 -0
- package/lib/chunks/COpeCHCq.js.map +1 -0
- package/lib/chunks/CS4HSz2w.js +289 -0
- package/lib/chunks/CS4HSz2w.js.map +1 -0
- package/lib/chunks/C_mtEjpv.js +382 -0
- package/lib/chunks/C_mtEjpv.js.map +1 -0
- package/lib/chunks/ChCStTku.js +480 -0
- package/lib/chunks/ChCStTku.js.map +1 -0
- package/lib/chunks/CkcPGhiH.js +332 -0
- package/lib/chunks/CkcPGhiH.js.map +1 -0
- package/lib/chunks/Cl4Odf2t.js +316 -0
- package/lib/chunks/Cl4Odf2t.js.map +1 -0
- package/lib/chunks/ClGqwKHp.js +422 -0
- package/lib/chunks/ClGqwKHp.js.map +1 -0
- package/lib/chunks/CnJKO_p1.js +408 -0
- package/lib/chunks/CnJKO_p1.js.map +1 -0
- package/lib/chunks/CocHPfxT.js +305 -0
- package/lib/chunks/CocHPfxT.js.map +1 -0
- package/lib/chunks/Cpsh5wb1.js +326 -0
- package/lib/chunks/Cpsh5wb1.js.map +1 -0
- package/lib/chunks/CrReHJfD.js +641 -0
- package/lib/chunks/CrReHJfD.js.map +1 -0
- package/lib/chunks/Cz07volV.js +293 -0
- package/lib/chunks/Cz07volV.js.map +1 -0
- package/lib/chunks/D2pGT64x.js +318 -0
- package/lib/chunks/D2pGT64x.js.map +1 -0
- package/lib/chunks/D65UKHfq.js +301 -0
- package/lib/chunks/D65UKHfq.js.map +1 -0
- package/lib/chunks/DAPG7Ryp.js +506 -0
- package/lib/chunks/DAPG7Ryp.js.map +1 -0
- package/lib/chunks/DRBud7Vf.js +329 -0
- package/lib/chunks/DRBud7Vf.js.map +1 -0
- package/lib/chunks/DRk05Cde.js +28 -0
- package/lib/chunks/DRk05Cde.js.map +1 -0
- package/lib/chunks/DSQuUUDN.js +642 -0
- package/lib/chunks/DSQuUUDN.js.map +1 -0
- package/lib/chunks/DUc7x35-.js +285 -0
- package/lib/chunks/DUc7x35-.js.map +1 -0
- package/lib/chunks/DWa9zkiz.js +317 -0
- package/lib/chunks/DWa9zkiz.js.map +1 -0
- package/lib/chunks/DXlCOnqx.js +312 -0
- package/lib/chunks/DXlCOnqx.js.map +1 -0
- package/lib/chunks/DYF0breI.js +334 -0
- package/lib/chunks/DYF0breI.js.map +1 -0
- package/lib/chunks/DaG1s_Iy.js +299 -0
- package/lib/chunks/DaG1s_Iy.js.map +1 -0
- package/lib/chunks/Dcppz32C.js +311 -0
- package/lib/chunks/Dcppz32C.js.map +1 -0
- package/lib/chunks/Dehw9x4O.js +289 -0
- package/lib/chunks/Dehw9x4O.js.map +1 -0
- package/lib/chunks/DfqTiRbh.js +328 -0
- package/lib/chunks/DfqTiRbh.js.map +1 -0
- package/lib/chunks/DlS1ldri.js +326 -0
- package/lib/chunks/DlS1ldri.js.map +1 -0
- package/lib/chunks/Dn19CjWt.js +235 -0
- package/lib/chunks/Dn19CjWt.js.map +1 -0
- package/lib/chunks/DnHfXxVT.js +301 -0
- package/lib/chunks/DnHfXxVT.js.map +1 -0
- package/lib/chunks/DngkKfCU.js +302 -0
- package/lib/chunks/DngkKfCU.js.map +1 -0
- package/lib/chunks/DpOsHkDw.js +241 -0
- package/lib/chunks/DpOsHkDw.js.map +1 -0
- package/lib/chunks/Dr5r7W-p.js +348 -0
- package/lib/chunks/Dr5r7W-p.js.map +1 -0
- package/lib/chunks/Dw-ylqNh.js +311 -0
- package/lib/chunks/Dw-ylqNh.js.map +1 -0
- package/lib/chunks/Dxf58SvP.js +334 -0
- package/lib/chunks/Dxf58SvP.js.map +1 -0
- package/lib/chunks/H4veMHX5.js +1140 -0
- package/lib/chunks/H4veMHX5.js.map +1 -0
- package/lib/chunks/HdbtMGp9.js +285 -0
- package/lib/chunks/HdbtMGp9.js.map +1 -0
- package/lib/chunks/IO_Vc2Ew.js +446 -0
- package/lib/chunks/IO_Vc2Ew.js.map +1 -0
- package/lib/chunks/Jjh0qb7k.js +702 -0
- package/lib/chunks/Jjh0qb7k.js.map +1 -0
- package/lib/chunks/Ma6QaT97.js +515 -0
- package/lib/chunks/Ma6QaT97.js.map +1 -0
- package/lib/chunks/Ot6TFUU0.js +380 -0
- package/lib/chunks/Ot6TFUU0.js.map +1 -0
- package/lib/chunks/YwcGSX-M.js +289 -0
- package/lib/chunks/YwcGSX-M.js.map +1 -0
- package/lib/chunks/bCzZXC7O.js +277 -0
- package/lib/chunks/bCzZXC7O.js.map +1 -0
- package/lib/chunks/dR8Qrbh-.js +402 -0
- package/lib/chunks/dR8Qrbh-.js.map +1 -0
- package/lib/chunks/fKCtMbe3.js +281 -0
- package/lib/chunks/fKCtMbe3.js.map +1 -0
- package/lib/chunks/hHtgT0eU.js +520 -0
- package/lib/chunks/hHtgT0eU.js.map +1 -0
- package/lib/chunks/hfgcSOCj.js +305 -0
- package/lib/chunks/hfgcSOCj.js.map +1 -0
- package/lib/chunks/jvLNe3VS.js +639 -0
- package/lib/chunks/jvLNe3VS.js.map +1 -0
- package/lib/chunks/kRnC6m7g.js +461 -0
- package/lib/chunks/kRnC6m7g.js.map +1 -0
- package/lib/chunks/lsEyA_FU.js +313 -0
- package/lib/chunks/lsEyA_FU.js.map +1 -0
- package/lib/chunks/nuMBkhIE.js +527 -0
- package/lib/chunks/nuMBkhIE.js.map +1 -0
- package/lib/chunks/q6v1OTTI.js +344 -0
- package/lib/chunks/q6v1OTTI.js.map +1 -0
- package/lib/components/BryntumAIFilterField.js +5 -0
- package/lib/components/BryntumAIFilterField.js.map +1 -0
- package/lib/components/BryntumAgendaView.js +5 -0
- package/lib/components/BryntumAgendaView.js.map +1 -0
- package/lib/components/BryntumButton.js +5 -0
- package/lib/components/BryntumButton.js.map +1 -0
- package/lib/components/BryntumButtonGroup.js +5 -0
- package/lib/components/BryntumButtonGroup.js.map +1 -0
- package/lib/components/BryntumCalendar.js +5 -0
- package/lib/components/BryntumCalendar.js.map +1 -0
- package/lib/components/BryntumCalendarDatePicker.js +5 -0
- package/lib/components/BryntumCalendarDatePicker.js.map +1 -0
- package/lib/components/BryntumCalendarProjectModel.js +5 -0
- package/lib/components/BryntumCalendarProjectModel.js.map +1 -0
- package/lib/components/BryntumChatPanel.js +5 -0
- package/lib/components/BryntumChatPanel.js.map +1 -0
- package/lib/components/BryntumCheckbox.js +5 -0
- package/lib/components/BryntumCheckbox.js.map +1 -0
- package/lib/components/BryntumCheckboxGroup.js +5 -0
- package/lib/components/BryntumCheckboxGroup.js.map +1 -0
- package/lib/components/BryntumChecklistFilterCombo.js +5 -0
- package/lib/components/BryntumChecklistFilterCombo.js.map +1 -0
- package/lib/components/BryntumChipView.js +5 -0
- package/lib/components/BryntumChipView.js.map +1 -0
- package/lib/components/BryntumCodeEditor.js +5 -0
- package/lib/components/BryntumCodeEditor.js.map +1 -0
- package/lib/components/BryntumColorField.js +5 -0
- package/lib/components/BryntumColorField.js.map +1 -0
- package/lib/components/BryntumCombo.js +5 -0
- package/lib/components/BryntumCombo.js.map +1 -0
- package/lib/components/BryntumContainer.js +5 -0
- package/lib/components/BryntumContainer.js.map +1 -0
- package/lib/components/BryntumDateField.js +5 -0
- package/lib/components/BryntumDateField.js.map +1 -0
- package/lib/components/BryntumDatePicker.js +5 -0
- package/lib/components/BryntumDatePicker.js.map +1 -0
- package/lib/components/BryntumDateRangeField.js +5 -0
- package/lib/components/BryntumDateRangeField.js.map +1 -0
- package/lib/components/BryntumDateTimeField.js +5 -0
- package/lib/components/BryntumDateTimeField.js.map +1 -0
- package/lib/components/BryntumDayAgendaView.js +5 -0
- package/lib/components/BryntumDayAgendaView.js.map +1 -0
- package/lib/components/BryntumDayResourceView.js +5 -0
- package/lib/components/BryntumDayResourceView.js.map +1 -0
- package/lib/components/BryntumDayView.js +5 -0
- package/lib/components/BryntumDayView.js.map +1 -0
- package/lib/components/BryntumDemoCodeEditor.js +5 -0
- package/lib/components/BryntumDemoCodeEditor.js.map +1 -0
- package/lib/components/BryntumDemoHeader.js +5 -0
- package/lib/components/BryntumDemoHeader.js.map +1 -0
- package/lib/components/BryntumDisplayField.js +5 -0
- package/lib/components/BryntumDisplayField.js.map +1 -0
- package/lib/components/BryntumDurationField.js +5 -0
- package/lib/components/BryntumDurationField.js.map +1 -0
- package/lib/components/BryntumEditor.js +5 -0
- package/lib/components/BryntumEditor.js.map +1 -0
- package/lib/components/BryntumEventColorField.js +5 -0
- package/lib/components/BryntumEventColorField.js.map +1 -0
- package/lib/components/BryntumEventList.js +5 -0
- package/lib/components/BryntumEventList.js.map +1 -0
- package/lib/components/BryntumFieldFilterPicker.js +5 -0
- package/lib/components/BryntumFieldFilterPicker.js.map +1 -0
- package/lib/components/BryntumFieldFilterPickerGroup.js +5 -0
- package/lib/components/BryntumFieldFilterPickerGroup.js.map +1 -0
- package/lib/components/BryntumFieldSet.js +5 -0
- package/lib/components/BryntumFieldSet.js.map +1 -0
- package/lib/components/BryntumFileField.js +5 -0
- package/lib/components/BryntumFileField.js.map +1 -0
- package/lib/components/BryntumFilePicker.js +5 -0
- package/lib/components/BryntumFilePicker.js.map +1 -0
- package/lib/components/BryntumFilterField.js +5 -0
- package/lib/components/BryntumFilterField.js.map +1 -0
- package/lib/components/BryntumFullscreenButton.js +5 -0
- package/lib/components/BryntumFullscreenButton.js.map +1 -0
- package/lib/components/BryntumGrid.js +5 -0
- package/lib/components/BryntumGrid.js.map +1 -0
- package/lib/components/BryntumGridBase.js +5 -0
- package/lib/components/BryntumGridBase.js.map +1 -0
- package/lib/components/BryntumGridChartDesigner.js +5 -0
- package/lib/components/BryntumGridChartDesigner.js.map +1 -0
- package/lib/components/BryntumGridFieldFilterPicker.js +5 -0
- package/lib/components/BryntumGridFieldFilterPicker.js.map +1 -0
- package/lib/components/BryntumGridFieldFilterPickerGroup.js +5 -0
- package/lib/components/BryntumGridFieldFilterPickerGroup.js.map +1 -0
- package/lib/components/BryntumGroupBar.js +5 -0
- package/lib/components/BryntumGroupBar.js.map +1 -0
- package/lib/components/BryntumHint.js +5 -0
- package/lib/components/BryntumHint.js.map +1 -0
- package/lib/components/BryntumLabel.js +5 -0
- package/lib/components/BryntumLabel.js.map +1 -0
- package/lib/components/BryntumList.js +5 -0
- package/lib/components/BryntumList.js.map +1 -0
- package/lib/components/BryntumMenu.js +5 -0
- package/lib/components/BryntumMenu.js.map +1 -0
- package/lib/components/BryntumModeSelector.js +5 -0
- package/lib/components/BryntumModeSelector.js.map +1 -0
- package/lib/components/BryntumMonthAgendaView.js +5 -0
- package/lib/components/BryntumMonthAgendaView.js.map +1 -0
- package/lib/components/BryntumMonthGrid.js +5 -0
- package/lib/components/BryntumMonthGrid.js.map +1 -0
- package/lib/components/BryntumMonthPicker.js +5 -0
- package/lib/components/BryntumMonthPicker.js.map +1 -0
- package/lib/components/BryntumMonthView.js +5 -0
- package/lib/components/BryntumMonthView.js.map +1 -0
- package/lib/components/BryntumNumberField.js +5 -0
- package/lib/components/BryntumNumberField.js.map +1 -0
- package/lib/components/BryntumPagingToolbar.js +5 -0
- package/lib/components/BryntumPagingToolbar.js.map +1 -0
- package/lib/components/BryntumPanel.js +5 -0
- package/lib/components/BryntumPanel.js.map +1 -0
- package/lib/components/BryntumPasswordField.js +5 -0
- package/lib/components/BryntumPasswordField.js.map +1 -0
- package/lib/components/BryntumProjectCombo.js +5 -0
- package/lib/components/BryntumProjectCombo.js.map +1 -0
- package/lib/components/BryntumRadio.js +5 -0
- package/lib/components/BryntumRadio.js.map +1 -0
- package/lib/components/BryntumRadioGroup.js +5 -0
- package/lib/components/BryntumRadioGroup.js.map +1 -0
- package/lib/components/BryntumRangeMenu.js +5 -0
- package/lib/components/BryntumRangeMenu.js.map +1 -0
- package/lib/components/BryntumResourceCombo.js +5 -0
- package/lib/components/BryntumResourceCombo.js.map +1 -0
- package/lib/components/BryntumResourceFilter.js +5 -0
- package/lib/components/BryntumResourceFilter.js.map +1 -0
- package/lib/components/BryntumResourceView.js +5 -0
- package/lib/components/BryntumResourceView.js.map +1 -0
- package/lib/components/BryntumScheduler.js +5 -0
- package/lib/components/BryntumScheduler.js.map +1 -0
- package/lib/components/BryntumSchedulerBase.js +5 -0
- package/lib/components/BryntumSchedulerBase.js.map +1 -0
- package/lib/components/BryntumSchedulerDatePicker.js +5 -0
- package/lib/components/BryntumSchedulerDatePicker.js.map +1 -0
- package/lib/components/BryntumSlideToggle.js +5 -0
- package/lib/components/BryntumSlideToggle.js.map +1 -0
- package/lib/components/BryntumSlider.js +5 -0
- package/lib/components/BryntumSlider.js.map +1 -0
- package/lib/components/BryntumSplitter.js +5 -0
- package/lib/components/BryntumSplitter.js.map +1 -0
- package/lib/components/BryntumTabPanel.js +5 -0
- package/lib/components/BryntumTabPanel.js.map +1 -0
- package/lib/components/BryntumTextAreaField.js +5 -0
- package/lib/components/BryntumTextAreaField.js.map +1 -0
- package/lib/components/BryntumTextAreaPickerField.js +5 -0
- package/lib/components/BryntumTextAreaPickerField.js.map +1 -0
- package/lib/components/BryntumTextField.js +5 -0
- package/lib/components/BryntumTextField.js.map +1 -0
- package/lib/components/BryntumTimeField.js +5 -0
- package/lib/components/BryntumTimeField.js.map +1 -0
- package/lib/components/BryntumTimePicker.js +5 -0
- package/lib/components/BryntumTimePicker.js.map +1 -0
- package/lib/components/BryntumTimelineHistogram.js +5 -0
- package/lib/components/BryntumTimelineHistogram.js.map +1 -0
- package/lib/components/BryntumToolbar.js +5 -0
- package/lib/components/BryntumToolbar.js.map +1 -0
- package/lib/components/BryntumTreeCombo.js +5 -0
- package/lib/components/BryntumTreeCombo.js.map +1 -0
- package/lib/components/BryntumTreeGrid.js +5 -0
- package/lib/components/BryntumTreeGrid.js.map +1 -0
- package/lib/components/BryntumUndoRedo.js +5 -0
- package/lib/components/BryntumUndoRedo.js.map +1 -0
- package/lib/components/BryntumViewPresetCombo.js +5 -0
- package/lib/components/BryntumViewPresetCombo.js.map +1 -0
- package/lib/components/BryntumWeekView.js +5 -0
- package/lib/components/BryntumWeekView.js.map +1 -0
- package/lib/components/BryntumWidget.js +5 -0
- package/lib/components/BryntumWidget.js.map +1 -0
- package/lib/components/BryntumYearPicker.js +5 -0
- package/lib/components/BryntumYearPicker.js.map +1 -0
- package/lib/components/BryntumYearView.js +5 -0
- package/lib/components/BryntumYearView.js.map +1 -0
- package/lib/helper/WrapperHelper.js +291 -0
- package/lib/helper/WrapperHelper.js.map +1 -0
- package/lib/index.d.ts +5 -0
- package/lib/index.js +174 -0
- package/lib/index.js.map +1 -0
- package/license.pdf +0 -0
- package/licenses.md +310 -0
- package/package.json +27 -0
- package/src/components/BryntumAIFilterField.vue +1063 -0
- package/src/components/BryntumAIFilterFieldProps.ts +646 -0
- package/src/components/BryntumAgendaView.vue +3328 -0
- package/src/components/BryntumAgendaViewProps.ts +1448 -0
- package/src/components/BryntumButton.vue +952 -0
- package/src/components/BryntumButtonGroup.vue +967 -0
- package/src/components/BryntumButtonGroupProps.ts +575 -0
- package/src/components/BryntumButtonProps.ts +556 -0
- package/src/components/BryntumCalendar.vue +3027 -0
- package/src/components/BryntumCalendarDatePicker.vue +1540 -0
- package/src/components/BryntumCalendarDatePickerProps.ts +1002 -0
- package/src/components/BryntumCalendarProjectModel.vue +439 -0
- package/src/components/BryntumCalendarProjectModelProps.ts +279 -0
- package/src/components/BryntumCalendarProps.ts +1137 -0
- package/src/components/BryntumChatPanel.vue +1159 -0
- package/src/components/BryntumChatPanelProps.ts +707 -0
- package/src/components/BryntumCheckbox.vue +1071 -0
- package/src/components/BryntumCheckboxGroup.vue +1193 -0
- package/src/components/BryntumCheckboxGroupProps.ts +739 -0
- package/src/components/BryntumCheckboxProps.ts +631 -0
- package/src/components/BryntumChecklistFilterCombo.vue +1309 -0
- package/src/components/BryntumChecklistFilterComboProps.ts +846 -0
- package/src/components/BryntumChipView.vue +979 -0
- package/src/components/BryntumChipViewProps.ts +583 -0
- package/src/components/BryntumCodeEditor.vue +1136 -0
- package/src/components/BryntumCodeEditorProps.ts +708 -0
- package/src/components/BryntumColorField.vue +1060 -0
- package/src/components/BryntumColorFieldProps.ts +642 -0
- package/src/components/BryntumCombo.vue +1298 -0
- package/src/components/BryntumComboProps.ts +838 -0
- package/src/components/BryntumContainer.vue +917 -0
- package/src/components/BryntumContainerProps.ts +563 -0
- package/src/components/BryntumDateField.vue +1120 -0
- package/src/components/BryntumDateFieldProps.ts +693 -0
- package/src/components/BryntumDatePicker.vue +1427 -0
- package/src/components/BryntumDatePickerProps.ts +898 -0
- package/src/components/BryntumDateRangeField.vue +1122 -0
- package/src/components/BryntumDateRangeFieldProps.ts +694 -0
- package/src/components/BryntumDateTimeField.vue +1007 -0
- package/src/components/BryntumDateTimeFieldProps.ts +600 -0
- package/src/components/BryntumDayAgendaView.vue +1979 -0
- package/src/components/BryntumDayAgendaViewProps.ts +1270 -0
- package/src/components/BryntumDayResourceView.vue +2044 -0
- package/src/components/BryntumDayResourceViewProps.ts +1334 -0
- package/src/components/BryntumDayView.vue +1999 -0
- package/src/components/BryntumDayViewProps.ts +1295 -0
- package/src/components/BryntumDemoCodeEditor.vue +1152 -0
- package/src/components/BryntumDemoCodeEditorProps.ts +721 -0
- package/src/components/BryntumDemoHeader.vue +131 -0
- package/src/components/BryntumDisplayField.vue +1044 -0
- package/src/components/BryntumDisplayFieldProps.ts +632 -0
- package/src/components/BryntumDurationField.vue +1103 -0
- package/src/components/BryntumDurationFieldProps.ts +683 -0
- package/src/components/BryntumEditor.vue +1093 -0
- package/src/components/BryntumEditorProps.ts +622 -0
- package/src/components/BryntumEventColorField.vue +1060 -0
- package/src/components/BryntumEventColorFieldProps.ts +642 -0
- package/src/components/BryntumEventList.vue +3255 -0
- package/src/components/BryntumEventListProps.ts +1403 -0
- package/src/components/BryntumFieldFilterPicker.vue +1002 -0
- package/src/components/BryntumFieldFilterPickerGroup.vue +1038 -0
- package/src/components/BryntumFieldFilterPickerGroupProps.ts +646 -0
- package/src/components/BryntumFieldFilterPickerProps.ts +624 -0
- package/src/components/BryntumFieldSet.vue +1129 -0
- package/src/components/BryntumFieldSetProps.ts +703 -0
- package/src/components/BryntumFileField.vue +1047 -0
- package/src/components/BryntumFileFieldProps.ts +634 -0
- package/src/components/BryntumFilePicker.vue +948 -0
- package/src/components/BryntumFilePickerProps.ts +575 -0
- package/src/components/BryntumFilterField.vue +1088 -0
- package/src/components/BryntumFilterFieldProps.ts +668 -0
- package/src/components/BryntumFullscreenButton.vue +38 -0
- package/src/components/BryntumGrid.vue +2759 -0
- package/src/components/BryntumGridBase.vue +2756 -0
- package/src/components/BryntumGridBaseProps.ts +1027 -0
- package/src/components/BryntumGridChartDesigner.vue +778 -0
- package/src/components/BryntumGridChartDesignerProps.ts +466 -0
- package/src/components/BryntumGridFieldFilterPicker.vue +1015 -0
- package/src/components/BryntumGridFieldFilterPickerGroup.vue +1032 -0
- package/src/components/BryntumGridFieldFilterPickerGroupProps.ts +641 -0
- package/src/components/BryntumGridFieldFilterPickerProps.ts +636 -0
- package/src/components/BryntumGridProps.ts +1028 -0
- package/src/components/BryntumGroupBar.vue +979 -0
- package/src/components/BryntumGroupBarProps.ts +583 -0
- package/src/components/BryntumHint.vue +1199 -0
- package/src/components/BryntumHintProps.ts +753 -0
- package/src/components/BryntumLabel.vue +770 -0
- package/src/components/BryntumLabelProps.ts +459 -0
- package/src/components/BryntumList.vue +956 -0
- package/src/components/BryntumListProps.ts +563 -0
- package/src/components/BryntumMenu.vue +1223 -0
- package/src/components/BryntumMenuProps.ts +749 -0
- package/src/components/BryntumModeSelector.vue +945 -0
- package/src/components/BryntumModeSelectorProps.ts +586 -0
- package/src/components/BryntumMonthAgendaView.vue +1775 -0
- package/src/components/BryntumMonthAgendaViewProps.ts +1162 -0
- package/src/components/BryntumMonthGrid.vue +1767 -0
- package/src/components/BryntumMonthGridProps.ts +1028 -0
- package/src/components/BryntumMonthPicker.vue +1133 -0
- package/src/components/BryntumMonthPickerProps.ts +688 -0
- package/src/components/BryntumMonthView.vue +1939 -0
- package/src/components/BryntumMonthViewProps.ts +1189 -0
- package/src/components/BryntumNumberField.vue +1090 -0
- package/src/components/BryntumNumberFieldProps.ts +671 -0
- package/src/components/BryntumPagingToolbar.vue +989 -0
- package/src/components/BryntumPagingToolbarProps.ts +592 -0
- package/src/components/BryntumPanel.vue +1106 -0
- package/src/components/BryntumPanelProps.ts +684 -0
- package/src/components/BryntumPasswordField.vue +1034 -0
- package/src/components/BryntumPasswordFieldProps.ts +623 -0
- package/src/components/BryntumProjectCombo.vue +1300 -0
- package/src/components/BryntumProjectComboProps.ts +839 -0
- package/src/components/BryntumRadio.vue +1071 -0
- package/src/components/BryntumRadioGroup.vue +1159 -0
- package/src/components/BryntumRadioGroupProps.ts +729 -0
- package/src/components/BryntumRadioProps.ts +631 -0
- package/src/components/BryntumRangeMenu.vue +1223 -0
- package/src/components/BryntumRangeMenuProps.ts +749 -0
- package/src/components/BryntumResourceCombo.vue +1303 -0
- package/src/components/BryntumResourceComboProps.ts +842 -0
- package/src/components/BryntumResourceFilter.vue +998 -0
- package/src/components/BryntumResourceFilterProps.ts +589 -0
- package/src/components/BryntumResourceView.vue +1556 -0
- package/src/components/BryntumResourceViewProps.ts +995 -0
- package/src/components/BryntumScheduler.vue +5828 -0
- package/src/components/BryntumSchedulerBase.vue +5826 -0
- package/src/components/BryntumSchedulerBaseProps.ts +2050 -0
- package/src/components/BryntumSchedulerDatePicker.vue +1451 -0
- package/src/components/BryntumSchedulerDatePickerProps.ts +919 -0
- package/src/components/BryntumSchedulerProps.ts +2051 -0
- package/src/components/BryntumSlideToggle.vue +1071 -0
- package/src/components/BryntumSlideToggleProps.ts +631 -0
- package/src/components/BryntumSlider.vue +871 -0
- package/src/components/BryntumSliderProps.ts +523 -0
- package/src/components/BryntumSplitter.vue +813 -0
- package/src/components/BryntumSplitterProps.ts +468 -0
- package/src/components/BryntumTabPanel.vue +1164 -0
- package/src/components/BryntumTabPanelProps.ts +710 -0
- package/src/components/BryntumTextAreaField.vue +1046 -0
- package/src/components/BryntumTextAreaFieldProps.ts +633 -0
- package/src/components/BryntumTextAreaPickerField.vue +1067 -0
- package/src/components/BryntumTextAreaPickerFieldProps.ts +648 -0
- package/src/components/BryntumTextField.vue +1052 -0
- package/src/components/BryntumTextFieldProps.ts +637 -0
- package/src/components/BryntumTimeField.vue +1101 -0
- package/src/components/BryntumTimeFieldProps.ts +677 -0
- package/src/components/BryntumTimePicker.vue +952 -0
- package/src/components/BryntumTimePickerProps.ts +583 -0
- package/src/components/BryntumTimelineHistogram.vue +3893 -0
- package/src/components/BryntumTimelineHistogramProps.ts +1560 -0
- package/src/components/BryntumToolbar.vue +982 -0
- package/src/components/BryntumToolbarProps.ts +586 -0
- package/src/components/BryntumTreeCombo.vue +1298 -0
- package/src/components/BryntumTreeComboProps.ts +838 -0
- package/src/components/BryntumTreeGrid.vue +2758 -0
- package/src/components/BryntumTreeGridProps.ts +1028 -0
- package/src/components/BryntumUndoRedo.vue +941 -0
- package/src/components/BryntumUndoRedoProps.ts +583 -0
- package/src/components/BryntumViewPresetCombo.vue +979 -0
- package/src/components/BryntumViewPresetComboProps.ts +575 -0
- package/src/components/BryntumWeekView.vue +1999 -0
- package/src/components/BryntumWeekViewProps.ts +1295 -0
- package/src/components/BryntumWidget.vue +765 -0
- package/src/components/BryntumWidgetProps.ts +455 -0
- package/src/components/BryntumYearPicker.vue +1144 -0
- package/src/components/BryntumYearPickerProps.ts +705 -0
- package/src/components/BryntumYearView.vue +1701 -0
- package/src/components/BryntumYearViewProps.ts +1061 -0
- package/src/helper/WrapperHelper.ts +573 -0
- package/src/index.ts +173 -0
- package/src/vite-env.d.ts +1 -0
|
@@ -0,0 +1,573 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vue 3 widget helper
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import { type ComponentInternalInstance, nextTick } from 'vue';
|
|
6
|
+
import { type VueConfig, Widget } from '@bryntum/calendar';
|
|
7
|
+
|
|
8
|
+
declare global {
|
|
9
|
+
interface Window {
|
|
10
|
+
bryntum: {
|
|
11
|
+
isTestEnv?: boolean;
|
|
12
|
+
vue?: {
|
|
13
|
+
isVueConfig?: (config: any) => boolean;
|
|
14
|
+
handleVueContent?: (widget: Widget, html: VueConfig) => void;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
interface RenderElement extends HTMLElement {
|
|
21
|
+
vueKey: string;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export type Data = Record<string, unknown>;
|
|
25
|
+
|
|
26
|
+
type SuppressNew<T> = { [K in keyof T]: T[ K ] }
|
|
27
|
+
|
|
28
|
+
type AnyConstructor<
|
|
29
|
+
Instance extends object = object,
|
|
30
|
+
Static extends object = object
|
|
31
|
+
> = (new (...input: any[]) => Instance) & SuppressNew<Static>
|
|
32
|
+
|
|
33
|
+
type AnyWidget = AnyConstructor<any, any>;
|
|
34
|
+
|
|
35
|
+
type RenderData = {
|
|
36
|
+
record: any,
|
|
37
|
+
row: any,
|
|
38
|
+
column: any,
|
|
39
|
+
cellElement: RenderElement
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
type VueTeleportConfig = {
|
|
43
|
+
vue: boolean,
|
|
44
|
+
is: string,
|
|
45
|
+
bind?: object
|
|
46
|
+
on?: object
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export type WidgetData<T extends AnyWidget> = {
|
|
50
|
+
instanceClass: T,
|
|
51
|
+
instanceName: string
|
|
52
|
+
isView?: boolean,
|
|
53
|
+
dataStores?: object,
|
|
54
|
+
projectStores?: boolean,
|
|
55
|
+
configNames: string[]
|
|
56
|
+
propertyConfigNames: string[]
|
|
57
|
+
propertyNames: string[]
|
|
58
|
+
eventNames: string[]
|
|
59
|
+
featureNames?: string[]
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export type WidgetConfig<T extends AnyWidget> = {
|
|
63
|
+
me?: ComponentInternalInstance;
|
|
64
|
+
widgetData: WidgetData<T>,
|
|
65
|
+
emit: (...args: any[]) => any
|
|
66
|
+
element: HTMLDivElement;
|
|
67
|
+
processCellContent?: Function;
|
|
68
|
+
processEventContent?: Function;
|
|
69
|
+
processWidgetContent?: Function;
|
|
70
|
+
hasFrameworkRenderer?: Function;
|
|
71
|
+
toRaw?: Function
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export type BryntumConfig = Record<string, any> & {
|
|
75
|
+
vueComponent?: Object,
|
|
76
|
+
listeners: Record<string, Function>,
|
|
77
|
+
features: {},
|
|
78
|
+
processCellContent: Function,
|
|
79
|
+
processEventContent: Function,
|
|
80
|
+
processWidgetContent: Function;
|
|
81
|
+
hasFrameworkRenderer: Function
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
export class WrapperHelper {
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Development warning. Showed when environment is set to 'development'
|
|
88
|
+
* @param {String} clsName vue component instance
|
|
89
|
+
* @param {String} msg console message
|
|
90
|
+
*/
|
|
91
|
+
static devWarning(clsName: string, msg: string) {
|
|
92
|
+
// @ts-ignore
|
|
93
|
+
if (window.bryntum?.isTestEnv || process.env.NODE_ENV === 'development') {
|
|
94
|
+
console.warn(`Bryntum${clsName}Component development warning!\n${msg}\n` +
|
|
95
|
+
'Please check Vue integration guide: https://bryntum.com/products/grid/docs/guide/Grid/integration/vue/guide'
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
static devWarningContainer(clsName: string, containerParam: string) {
|
|
101
|
+
WrapperHelper.devWarning(clsName,
|
|
102
|
+
`Using "${containerParam}" parameter for configuration is not recommended.\n` +
|
|
103
|
+
'Widget is placed automatically inside it\'s container element.\n' +
|
|
104
|
+
`Solution: remove "${containerParam}" parameter from configuration.`
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
static devWarningConfigProp(clsName: string, prop: string) {
|
|
109
|
+
WrapperHelper.devWarning(clsName,
|
|
110
|
+
`Using "${prop}" parameter for configuration is not recommended.\n` +
|
|
111
|
+
`Solution: Use separate parameter for each "${prop}" value to enable reactive updates of the API instance`
|
|
112
|
+
);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
static devWarningUpdateProp(clsName: string, prop: string) {
|
|
116
|
+
WrapperHelper.devWarning(clsName,
|
|
117
|
+
`"${prop}" is a static config option for component constructor only. No runtime changes are supported!`
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
static camelize(str: string) {
|
|
122
|
+
return str.replace(/-./g, s => (s[1] || '').toUpperCase());
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
static capitalize(str: string) {
|
|
126
|
+
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Returns `true` if the provided configuration object is valid for Vue processing.
|
|
131
|
+
* @param {*} config
|
|
132
|
+
* @returns {Boolean}
|
|
133
|
+
*/
|
|
134
|
+
static isVueConfig(config: any): boolean {
|
|
135
|
+
return Boolean(config?.vue);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Creates bryntum component config from vue component
|
|
140
|
+
* @param {Object} context
|
|
141
|
+
* @param {Object} context.me vue component instance
|
|
142
|
+
* @param {Object} context.widgetData reference to data
|
|
143
|
+
* @param {Function} context.emit reference to emit
|
|
144
|
+
* @param {Object} context.element HTML element
|
|
145
|
+
* @param {Function} context.processCellContent cell renderer method
|
|
146
|
+
* @param {Function} context.processEventContent event renderer method
|
|
147
|
+
* @param {Function} context.processWidgetContent widget renderer method
|
|
148
|
+
* @param {Function} context.hasFrameworkRenderer checks presence of vue renderer
|
|
149
|
+
* @param {Function} context.toRaw Vue fn to unwrap reactive object
|
|
150
|
+
* @returns {Object} config object
|
|
151
|
+
*/
|
|
152
|
+
static createConfig<T extends AnyWidget>({
|
|
153
|
+
me,
|
|
154
|
+
widgetData,
|
|
155
|
+
emit,
|
|
156
|
+
element,
|
|
157
|
+
processCellContent,
|
|
158
|
+
processEventContent,
|
|
159
|
+
processWidgetContent,
|
|
160
|
+
hasFrameworkRenderer,
|
|
161
|
+
toRaw
|
|
162
|
+
}: WidgetConfig<T>) {
|
|
163
|
+
|
|
164
|
+
const
|
|
165
|
+
props: Record<string, any> = {},
|
|
166
|
+
vProps = me!.vnode!.props! || {};
|
|
167
|
+
|
|
168
|
+
for (const key of Object.keys(vProps)) {
|
|
169
|
+
// Convert possible kebab keys to camelCase
|
|
170
|
+
props[this.camelize(key)] = vProps[key];
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
const
|
|
174
|
+
{
|
|
175
|
+
instanceClass,
|
|
176
|
+
instanceName
|
|
177
|
+
} = widgetData,
|
|
178
|
+
isValidProp = (propName: string) => props[propName] !== undefined,
|
|
179
|
+
configNames = (widgetData.configNames || []).filter(isValidProp),
|
|
180
|
+
propertyConfigNames = (widgetData.propertyConfigNames || []).filter(isValidProp),
|
|
181
|
+
propertyNames = (widgetData.propertyNames || []).filter(isValidProp),
|
|
182
|
+
featureNames = (widgetData.featureNames || []).filter(isValidProp),
|
|
183
|
+
// Disable event listeners for onProps, which are duplicating functions with preventable result support
|
|
184
|
+
eventNames = widgetData.eventNames.filter(eventName => !isValidProp(eventName) && !props[`on${this.capitalize(eventName)}`]),
|
|
185
|
+
bryntumConfig = {
|
|
186
|
+
vueComponent : me,
|
|
187
|
+
listeners : {},
|
|
188
|
+
features : {},
|
|
189
|
+
processCellContent,
|
|
190
|
+
processEventContent,
|
|
191
|
+
processWidgetContent,
|
|
192
|
+
hasFrameworkRenderer
|
|
193
|
+
} as BryntumConfig;
|
|
194
|
+
|
|
195
|
+
// Setup events listeners
|
|
196
|
+
eventNames.forEach(eventName => bryntumConfig.listeners[eventName] = (params: any) => emit(eventName, params));
|
|
197
|
+
|
|
198
|
+
// Setup configs
|
|
199
|
+
[
|
|
200
|
+
...configNames,
|
|
201
|
+
...propertyConfigNames,
|
|
202
|
+
...featureNames
|
|
203
|
+
].forEach(propName => {
|
|
204
|
+
WrapperHelper.applyPropValue(bryntumConfig, propName, props[propName], true, toRaw);
|
|
205
|
+
if (['features', 'config'].includes(propName)) {
|
|
206
|
+
WrapperHelper.devWarningConfigProp(instanceClass.$name, propName);
|
|
207
|
+
}
|
|
208
|
+
});
|
|
209
|
+
|
|
210
|
+
// Add vue wrapper class name
|
|
211
|
+
bryntumConfig.cls = (bryntumConfig.cls || '') + ` b-vue-${instanceClass.$name.toLowerCase()}-container`;
|
|
212
|
+
|
|
213
|
+
// Prepare watch arrays
|
|
214
|
+
widgetData.configNames = configNames;
|
|
215
|
+
widgetData.propertyNames = [
|
|
216
|
+
...configNames,
|
|
217
|
+
...propertyNames,
|
|
218
|
+
...propertyConfigNames,
|
|
219
|
+
...featureNames
|
|
220
|
+
];
|
|
221
|
+
|
|
222
|
+
// Cleanup unused instance arrays
|
|
223
|
+
widgetData.eventNames = [];
|
|
224
|
+
widgetData.propertyConfigNames = [];
|
|
225
|
+
widgetData.featureNames = [];
|
|
226
|
+
|
|
227
|
+
// If component has no container specified in config then use adopt to Wrapper's element
|
|
228
|
+
const
|
|
229
|
+
containerParam = [
|
|
230
|
+
'adopt',
|
|
231
|
+
'appendTo',
|
|
232
|
+
'insertAfter',
|
|
233
|
+
'insertBefore'
|
|
234
|
+
].find((prop: string) => bryntumConfig[prop]);
|
|
235
|
+
|
|
236
|
+
if (!containerParam) {
|
|
237
|
+
if (instanceName === 'Button') {
|
|
238
|
+
// Button should always be <a> or <button> inside owner element
|
|
239
|
+
bryntumConfig.appendTo = element;
|
|
240
|
+
}
|
|
241
|
+
else {
|
|
242
|
+
bryntumConfig.adopt = element;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
else {
|
|
246
|
+
WrapperHelper.devWarningContainer(instanceClass.$name, containerParam);
|
|
247
|
+
}
|
|
248
|
+
return bryntumConfig;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Setup store events relay
|
|
253
|
+
* @param {Object} data reference to data
|
|
254
|
+
* @param {Object} instance bryntum widget instance
|
|
255
|
+
*/
|
|
256
|
+
static relayStores(data: any, instance: any) {
|
|
257
|
+
const { dataStores, projectStores } = data;
|
|
258
|
+
|
|
259
|
+
if (dataStores) {
|
|
260
|
+
Object.keys(dataStores).forEach(storeName => {
|
|
261
|
+
const store = projectStores ? instance.project[storeName] : instance[storeName];
|
|
262
|
+
if (store) {
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
if (store.syncDataOnLoad == null && !store.readUrl && !store.lazyLoad && (!store.crudManager || !store.crudManager.loadUrl)) {
|
|
266
|
+
store.syncDataOnLoad = true;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
// Makes relaying store events configurable but off by default
|
|
272
|
+
if (instance && instance.relayStoreEvents) {
|
|
273
|
+
store.relayAll(instance, dataStores[storeName]);
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
});
|
|
277
|
+
delete data.dataStores;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* Creates bryntum Widget from vue component
|
|
283
|
+
* @param {Object} config
|
|
284
|
+
* @param {Object} config.me vue component instance
|
|
285
|
+
* @param {Object} config.widgetData reference to data
|
|
286
|
+
* @param {Function} config.emit reference to emit
|
|
287
|
+
* @param {Object} config.element HTML element
|
|
288
|
+
* @param {Function} config.processCellContent cell renderer method
|
|
289
|
+
* @param {Function} config.hasFrameworkRenderer check the presence of vue renderer
|
|
290
|
+
* @param {Function} config.toRaw Vue fn to unwrap reactive object
|
|
291
|
+
* @returns {Object} widget object
|
|
292
|
+
*/
|
|
293
|
+
static createWidget<T extends AnyWidget>(config: WidgetConfig<T>): InstanceType<T> {
|
|
294
|
+
const
|
|
295
|
+
{ instanceClass } = config.widgetData,
|
|
296
|
+
cfg = WrapperHelper.createConfig(config);
|
|
297
|
+
return (instanceClass.$name === 'Widget' ? Widget.create(cfg) : new instanceClass(cfg)) as InstanceType<T>;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* Applies property value to Bryntum config or instance.
|
|
302
|
+
* @param {Object} configOrInstance target object
|
|
303
|
+
* @param {String} prop property name
|
|
304
|
+
* @param {Object} value value
|
|
305
|
+
* @param {Boolean} [isConfig] config setting mode
|
|
306
|
+
* @param {Function} [toRaw] Vue fn to unwrap reactive object
|
|
307
|
+
*/
|
|
308
|
+
static applyPropValue(configOrInstance: any, prop: string, value: any, isConfig = true, toRaw?: Function) {
|
|
309
|
+
|
|
310
|
+
if (prop === 'project') {
|
|
311
|
+
// Allow use ProjectModel component as project
|
|
312
|
+
if (value && typeof value === 'object') {
|
|
313
|
+
configOrInstance[prop] = value.instance ? value.instance.value || value.instance : value;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
else if (prop === 'features' && typeof value === 'object') {
|
|
317
|
+
Object.keys(value).forEach(key => WrapperHelper.applyPropValue(configOrInstance, `${key}Feature`, value[key], isConfig, toRaw));
|
|
318
|
+
}
|
|
319
|
+
else if (prop === 'config' && typeof value === 'object') {
|
|
320
|
+
Object.keys(value).forEach(key => WrapperHelper.applyPropValue(configOrInstance, key, value[key], isConfig, toRaw));
|
|
321
|
+
}
|
|
322
|
+
else if (prop === 'columns' && !isConfig) {
|
|
323
|
+
configOrInstance['columns'].data = value;
|
|
324
|
+
}
|
|
325
|
+
else if (prop.endsWith('Feature')) {
|
|
326
|
+
const
|
|
327
|
+
features = configOrInstance['features'],
|
|
328
|
+
featureName = prop.replace('Feature', '');
|
|
329
|
+
if (isConfig) {
|
|
330
|
+
features[featureName] = value;
|
|
331
|
+
}
|
|
332
|
+
else {
|
|
333
|
+
const feature = features[featureName];
|
|
334
|
+
if (feature) {
|
|
335
|
+
feature.setConfig(value);
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
else {
|
|
340
|
+
configOrInstance[prop] = toRaw ? toRaw(value) : value;
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* Creates watches for vue component properties
|
|
346
|
+
* @param {Object} me vue component instance
|
|
347
|
+
* @param {Object} instance bryntum widget instance
|
|
348
|
+
* @param {Object} props reference to props
|
|
349
|
+
* @param {Object} data reference to data
|
|
350
|
+
* @param {Function} watcher watch method reference (Accepts: prop and newValue)
|
|
351
|
+
*/
|
|
352
|
+
static watchProps<T extends AnyWidget>(
|
|
353
|
+
instance: InstanceType<T>,
|
|
354
|
+
data: WidgetData<T>,
|
|
355
|
+
watcher: (prop: string, callback: (value: any) => void) => void) {
|
|
356
|
+
const
|
|
357
|
+
{
|
|
358
|
+
configNames,
|
|
359
|
+
propertyNames,
|
|
360
|
+
instanceClass
|
|
361
|
+
} = data;
|
|
362
|
+
|
|
363
|
+
propertyNames.forEach(prop => watcher(prop, newValue => {
|
|
364
|
+
const value = Array.isArray(newValue) ? newValue.slice() : newValue;
|
|
365
|
+
WrapperHelper.applyPropValue(instance, prop, value, false);
|
|
366
|
+
|
|
367
|
+
// Check if property is a config and notify
|
|
368
|
+
if (configNames.includes(prop)) {
|
|
369
|
+
WrapperHelper.devWarningUpdateProp(instanceClass.$name, prop);
|
|
370
|
+
}
|
|
371
|
+
}));
|
|
372
|
+
|
|
373
|
+
// Cleanup unused instance arrays
|
|
374
|
+
data.configNames = [];
|
|
375
|
+
data.propertyNames = [];
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* Called from Widget.js to add the Vue component to teleports
|
|
380
|
+
* @param {Object} context
|
|
381
|
+
* @param {Widget} context.widget Widget which content is rendered by the Vue component
|
|
382
|
+
* @param {Object} context.html Object containing the Vue component properties and event listeners
|
|
383
|
+
*/
|
|
384
|
+
static processWidgetContent({ widget, html }: { widget: Widget; html: VueTeleportConfig }) {
|
|
385
|
+
const
|
|
386
|
+
{ is, bind = {}, vue, on = {} } = html,
|
|
387
|
+
// @ts-ignore
|
|
388
|
+
{ vueComponent } = this,
|
|
389
|
+
{ teleports : { value : teleports } } = vueComponent.provides,
|
|
390
|
+
{ contentElement : to, id } = widget;
|
|
391
|
+
|
|
392
|
+
if (vue) {
|
|
393
|
+
const key = `key-${id}`;
|
|
394
|
+
|
|
395
|
+
// delete the teleport with the same key if any
|
|
396
|
+
if (teleports.has(key)) {
|
|
397
|
+
teleports.delete(key);
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
nextTick(() => {
|
|
401
|
+
teleports.set(key, { bind, on, key, is, to });
|
|
402
|
+
});
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* Handles the content provided by a Vue component for the widget.
|
|
408
|
+
* @param {Widget} widget Owner widget
|
|
409
|
+
* @param {String} html The HTML content to be processed
|
|
410
|
+
*/
|
|
411
|
+
static handleVueContent(widget: Widget, html: VueConfig): void {
|
|
412
|
+
// Called when a Vue component is to provide the widget content
|
|
413
|
+
const
|
|
414
|
+
hasTeleports = (element: any) => Boolean(element.vueComponent?.provides?.teleports),
|
|
415
|
+
parentView = widget.closest(hasTeleports) as any,
|
|
416
|
+
// Find a view (grid, scheduler, etc.) which has `teleports` defined. It also has `processWidgetContent`
|
|
417
|
+
view = parentView?.vueComponent ? parentView : Widget.query(hasTeleports);
|
|
418
|
+
|
|
419
|
+
view?.processWidgetContent?.({ widget, html });
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
/**
|
|
423
|
+
* Event renderer method
|
|
424
|
+
* @param {Object} context
|
|
425
|
+
* @param {*} context.jsx
|
|
426
|
+
* @param {DomConfig} context.domConfig
|
|
427
|
+
* @param {HTMLElement} context.targetElement
|
|
428
|
+
* @param {Boolean} context.isRelease
|
|
429
|
+
* @returns {Boolean}
|
|
430
|
+
*/
|
|
431
|
+
static processEventContent({
|
|
432
|
+
// Core passes it as jsx for React wrappers.
|
|
433
|
+
// Let's rename it to a more appropriate name.
|
|
434
|
+
jsx : rendererConfig,
|
|
435
|
+
domConfig,
|
|
436
|
+
targetElement,
|
|
437
|
+
isRelease
|
|
438
|
+
}: {
|
|
439
|
+
jsx: { [key: string]: any },
|
|
440
|
+
domConfig: any;
|
|
441
|
+
isRelease: boolean;
|
|
442
|
+
targetElement: HTMLElement & { vueKey: string }
|
|
443
|
+
scrolling: boolean
|
|
444
|
+
}) {
|
|
445
|
+
|
|
446
|
+
let wrap: any = targetElement,
|
|
447
|
+
returnValue = false;
|
|
448
|
+
|
|
449
|
+
// @ts-ignore
|
|
450
|
+
const domConfigData = this.isVertical ? domConfig?.elementData?.renderData : domConfig?.elementData;
|
|
451
|
+
|
|
452
|
+
if (WrapperHelper.isVueConfig(rendererConfig) && rendererConfig?.is) {
|
|
453
|
+
if (domConfig?.dataset?.isMilestone) {
|
|
454
|
+
wrap = targetElement.parentElement!.parentElement!.parentElement!;
|
|
455
|
+
}
|
|
456
|
+
else {
|
|
457
|
+
wrap = targetElement.parentElement!.parentElement!;
|
|
458
|
+
}
|
|
459
|
+
const
|
|
460
|
+
// Vertical nests renderData, while horizontal does not
|
|
461
|
+
// @ts-ignore
|
|
462
|
+
wrapData = this.isVertical ? wrap.elementData.renderData : wrap.elementData,
|
|
463
|
+
{ assignmentRecord } = isRelease ? domConfigData : wrapData,
|
|
464
|
+
{ eventRecord } = wrapData,
|
|
465
|
+
{ vueComponent } = this as any,
|
|
466
|
+
{ teleports : { value : teleports } } = vueComponent.provides,
|
|
467
|
+
|
|
468
|
+
// Recurring events are handled a bit differently so get the flag
|
|
469
|
+
isRecurring = eventRecord.isRecurring || eventRecord.isOccurrence,
|
|
470
|
+
key = `assignment-${assignmentRecord?.id}${isRecurring ? '-' + eventRecord.id : ''}`;
|
|
471
|
+
|
|
472
|
+
if (wrap.vueKey) {
|
|
473
|
+
teleports.delete(wrap.vueKey);
|
|
474
|
+
}
|
|
475
|
+
const
|
|
476
|
+
bind = { ...rendererConfig },
|
|
477
|
+
{ is, on = {} } = bind;
|
|
478
|
+
|
|
479
|
+
delete bind.is;
|
|
480
|
+
delete bind.on;
|
|
481
|
+
|
|
482
|
+
nextTick(() => {
|
|
483
|
+
teleports.set(key, {
|
|
484
|
+
bind,
|
|
485
|
+
key,
|
|
486
|
+
is,
|
|
487
|
+
on,
|
|
488
|
+
to : targetElement,
|
|
489
|
+
generation : assignmentRecord.generation
|
|
490
|
+
});
|
|
491
|
+
|
|
492
|
+
});
|
|
493
|
+
|
|
494
|
+
wrap.vueKey = key;
|
|
495
|
+
returnValue = true;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
return returnValue;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* Cell renderer method
|
|
503
|
+
* @param {Object} context
|
|
504
|
+
* @param {RenderData} context.rendererData
|
|
505
|
+
* @param {*} context.rendererHtml
|
|
506
|
+
* @returns {Boolean}
|
|
507
|
+
*/
|
|
508
|
+
static processCellContent({ rendererData, rendererHtml }: { rendererData: RenderData, rendererHtml: any }) {
|
|
509
|
+
const { record, column, cellElement, row } = rendererData;
|
|
510
|
+
|
|
511
|
+
// Only run for cells with vue renderers
|
|
512
|
+
if (WrapperHelper.isVueConfig(column.data) && column.data?.renderer) {
|
|
513
|
+
const
|
|
514
|
+
// `this` is a caller component
|
|
515
|
+
{ vueComponent } = this as any,
|
|
516
|
+
// `teleports` is javascript Map object
|
|
517
|
+
{ teleports : { value : teleports } } = vueComponent.provides,
|
|
518
|
+
key = `${column.id}-${record.id}`,
|
|
519
|
+
renderElement = column.tree
|
|
520
|
+
? cellElement.querySelector('.b-tree-cell-value')
|
|
521
|
+
: cellElement;
|
|
522
|
+
|
|
523
|
+
// If the cell already has a teleport, release it
|
|
524
|
+
if (cellElement.vueKey) {
|
|
525
|
+
teleports.delete(cellElement.vueKey);
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
const
|
|
529
|
+
bind = { ...rendererHtml },
|
|
530
|
+
{ is, on = {} } = bind;
|
|
531
|
+
|
|
532
|
+
delete bind.is;
|
|
533
|
+
delete bind.on;
|
|
534
|
+
|
|
535
|
+
// Create new teleport
|
|
536
|
+
nextTick(() => {
|
|
537
|
+
// Only teleport if the row is still used for the same record. Since this happens async, we might have
|
|
538
|
+
// scrolled over the entire block of rows since the render
|
|
539
|
+
if (row.id === record.id) {
|
|
540
|
+
teleports.set(key, {
|
|
541
|
+
bind,
|
|
542
|
+
key,
|
|
543
|
+
is,
|
|
544
|
+
on,
|
|
545
|
+
to : renderElement,
|
|
546
|
+
generation : record.generation
|
|
547
|
+
});
|
|
548
|
+
}
|
|
549
|
+
});
|
|
550
|
+
|
|
551
|
+
// Link cell to the teleport, to be able to release it above
|
|
552
|
+
cellElement.vueKey = key;
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
/**
|
|
557
|
+
*
|
|
558
|
+
* @param {Object} context
|
|
559
|
+
* @param {*} context.cellContent Content to be rendered in cell (set by renderer)
|
|
560
|
+
* @param {*} context.column Column being rendered
|
|
561
|
+
* @returns {Boolean} `true` if there is a Vue Renderer in this cell, `false` otherwise
|
|
562
|
+
*/
|
|
563
|
+
static hasFrameworkRenderer({ cellContent, column }: { cellContent: any, column: any }) {
|
|
564
|
+
return cellContent && typeof cellContent === 'object' && WrapperHelper.isVueConfig(column?.data);
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
// Expose wrapper methods on window.bryntum
|
|
569
|
+
window.bryntum = window.bryntum || {};
|
|
570
|
+
window.bryntum.vue = {
|
|
571
|
+
isVueConfig : WrapperHelper.isVueConfig,
|
|
572
|
+
handleVueContent : WrapperHelper.handleVueContent
|
|
573
|
+
};
|