django-advanced-report-builder 1.2.9__py3-none-any.whl
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.
- advanced_report_builder/.DS_Store +0 -0
- advanced_report_builder/.ruff_cache/.gitignore +2 -0
- advanced_report_builder/.ruff_cache/0.11.9/16555798982502606642 +0 -0
- advanced_report_builder/.ruff_cache/CACHEDIR.TAG +1 -0
- advanced_report_builder/__init__.py +0 -0
- advanced_report_builder/admin.py +264 -0
- advanced_report_builder/apps.py +7 -0
- advanced_report_builder/column_types.py +26 -0
- advanced_report_builder/columns.py +296 -0
- advanced_report_builder/customise.py +2 -0
- advanced_report_builder/data_merge/__init__.py +0 -0
- advanced_report_builder/data_merge/utils.py +112 -0
- advanced_report_builder/data_merge/widget.py +30 -0
- advanced_report_builder/duplicate.py +171 -0
- advanced_report_builder/exceptions.py +9 -0
- advanced_report_builder/field_types.py +466 -0
- advanced_report_builder/field_utils.py +401 -0
- advanced_report_builder/filter_query.py +862 -0
- advanced_report_builder/form_utils.py +12 -0
- advanced_report_builder/generate_series.py +14 -0
- advanced_report_builder/globals.py +276 -0
- advanced_report_builder/includes.py +72 -0
- advanced_report_builder/migrations/0001_initial.py +246 -0
- advanced_report_builder/migrations/0002_auto_20220209_1657.py +23 -0
- advanced_report_builder/migrations/0003_auto_20220215_1219.py +42 -0
- advanced_report_builder/migrations/0004_customreport.py +27 -0
- advanced_report_builder/migrations/0005_auto_20220303_0958.py +84 -0
- advanced_report_builder/migrations/0006_auto_20220310_1147.py +32 -0
- advanced_report_builder/migrations/0007_auto_20220322_1939.py +23 -0
- advanced_report_builder/migrations/0008_auto_20220404_1144.py +28 -0
- advanced_report_builder/migrations/0009_auto_20230428_1554.py +53 -0
- advanced_report_builder/migrations/0010_auto_20230428_2033.py +23 -0
- advanced_report_builder/migrations/0011_auto_20230620_1449.py +23 -0
- advanced_report_builder/migrations/0012_auto_20230718_1642.py +24 -0
- advanced_report_builder/migrations/0013_reportqueryorder.py +30 -0
- advanced_report_builder/migrations/0014_auto_20240706_2207.py +24 -0
- advanced_report_builder/migrations/0015_report_user_created_report_user_updated.py +26 -0
- advanced_report_builder/migrations/0016_calendarreport_dashboardreport_options_and_more.py +74 -0
- advanced_report_builder/migrations/0017_alter_barchartreport_options_and_more.py +57 -0
- advanced_report_builder/migrations/0018_reportquery_target_target_period_type.py +24 -0
- advanced_report_builder/migrations/0019_multicellstyle_and_more.py +107 -0
- advanced_report_builder/migrations/0020_alter_multicellstyle_font_size.py +18 -0
- advanced_report_builder/migrations/0021_multivalueheldquery_and_more.py +36 -0
- advanced_report_builder/migrations/0022_dashboardreport_show_options_report_template_style_and_more.py +44 -0
- advanced_report_builder/migrations/0023_rename_colour_target_default_colour_and_more.py +41 -0
- advanced_report_builder/migrations/0024_alter_target_period_type.py +18 -0
- advanced_report_builder/migrations/__init__.py +0 -0
- advanced_report_builder/models.py +954 -0
- advanced_report_builder/report_builder.py +28 -0
- advanced_report_builder/signals.py +3 -0
- advanced_report_builder/static/.DS_Store +0 -0
- advanced_report_builder/static/advanced_report_builder/.DS_Store +0 -0
- advanced_report_builder/static/advanced_report_builder/chart-js/js/chart.esm.js +10553 -0
- advanced_report_builder/static/advanced_report_builder/chart-js/js/chart.js +13190 -0
- advanced_report_builder/static/advanced_report_builder/chart-js/js/chart.min.js +13 -0
- advanced_report_builder/static/advanced_report_builder/chart-js/js/chartjs-adapter-moment.min.js +8 -0
- advanced_report_builder/static/advanced_report_builder/chart-js/js/chartjs-plugin-datalabels.min.js +7 -0
- advanced_report_builder/static/advanced_report_builder/chart-js/js/chunks/helpers.segment.js +2499 -0
- advanced_report_builder/static/advanced_report_builder/chart-js/js/helpers.esm.js +7 -0
- advanced_report_builder/static/advanced_report_builder/d3/js/d3.js +20196 -0
- advanced_report_builder/static/advanced_report_builder/d3/js/d3.min.js +2 -0
- advanced_report_builder/static/advanced_report_builder/d3-funnel/js/d3-funnel.js +6087 -0
- advanced_report_builder/static/advanced_report_builder/d3-funnel/js/d3-funnel.min.js +2 -0
- advanced_report_builder/static/advanced_report_builder/dashboard/js/dashboard.js +19 -0
- advanced_report_builder/static/advanced_report_builder/dot/js/.gitignore +31 -0
- advanced_report_builder/static/advanced_report_builder/dot/js/.travis.yml +9 -0
- advanced_report_builder/static/advanced_report_builder/dot/js/LICENSE-DOT.txt +24 -0
- advanced_report_builder/static/advanced_report_builder/dot/js/README.md +90 -0
- advanced_report_builder/static/advanced_report_builder/dot/js/bin/dot-packer +52 -0
- advanced_report_builder/static/advanced_report_builder/dot/js/bower.json +21 -0
- advanced_report_builder/static/advanced_report_builder/dot/js/doT.js +141 -0
- advanced_report_builder/static/advanced_report_builder/dot/js/doT.min.js +8 -0
- advanced_report_builder/static/advanced_report_builder/dot/js/doU.js +56 -0
- advanced_report_builder/static/advanced_report_builder/dot/js/index.js +143 -0
- advanced_report_builder/static/advanced_report_builder/dot/js/package.json +46 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/.DS_Store +0 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/LICENSE.txt +20 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/README.md +10 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/LICENSE.txt +20 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/README.md +8 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/af.js +30 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/ar-dz.js +31 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/ar-kw.js +31 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/ar-ly.js +31 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/ar-ma.js +31 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/ar-sa.js +31 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/ar-tn.js +31 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/ar.js +31 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/bg.js +31 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/bs.js +32 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/ca.js +30 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/cs.js +32 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/da.js +30 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/de.js +33 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/el.js +30 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/en-au.js +17 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/en-gb.js +17 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/en-nz.js +17 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/es-us.js +30 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/es.js +30 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/et.js +32 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/eu.js +30 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/fa.js +33 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/fi.js +30 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/fr-ca.js +27 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/fr-ch.js +31 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/fr.js +31 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/gl.js +30 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/he.js +27 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/hi.js +32 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/hr.js +32 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/hu.js +30 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/id.js +30 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/is.js +30 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/it.js +32 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/ja.js +28 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/ka.js +32 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/kk.js +32 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/ko.js +26 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/lb.js +30 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/lt.js +30 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/lv.js +32 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/mk.js +28 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/ms.js +32 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/nb.js +30 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/nl.js +30 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/nn.js +30 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/pl.js +30 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/pt-br.js +28 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/pt.js +30 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/ro.js +32 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/ru.js +32 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/sk.js +32 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/sl.js +30 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/sq.js +32 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/sr-cyrl.js +32 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/sr.js +32 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/sv.js +30 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/th.js +25 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/tr.js +30 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/uk.js +32 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/vi.js +32 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/zh-cn.js +33 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales/zh-tw.js +26 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales-all.js +1348 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/locales-all.min.js +1 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/main.css +1052 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/main.d.ts +2730 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/main.esm.js +8558 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/main.js +8717 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/main.min.css +1 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/main.min.js +6 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/core/package.json +30 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/daygrid/LICENSE.txt +20 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/daygrid/README.md +8 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/daygrid/main.css +78 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/daygrid/main.d.ts +310 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/daygrid/main.esm.js +1627 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/daygrid/main.js +1641 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/daygrid/main.min.css +1 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/daygrid/main.min.js +6 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/daygrid/package.json +33 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/fullcalendar-yearview/LICENSE +21 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/fullcalendar-yearview/css/main.css +85 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/fullcalendar-yearview/js/main.js +2018 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/google-calendar/LICENSE.txt +20 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/google-calendar/README.md +8 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/google-calendar/main.d.ts +20 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/google-calendar/main.esm.js +162 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/google-calendar/main.js +170 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/google-calendar/main.min.js +6 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/google-calendar/package.json +33 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/interaction/LICENSE.txt +20 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/interaction/README.md +8 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/interaction/main.d.ts +323 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/interaction/main.esm.js +2132 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/interaction/main.js +2143 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/interaction/main.min.js +6 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/interaction/package.json +33 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/list/LICENSE.txt +20 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/list/README.md +8 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/list/main.css +118 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/list/main.d.ts +33 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/list/main.esm.js +335 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/list/main.js +343 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/list/main.min.css +1 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/list/main.min.js +6 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/list/package.json +33 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/luxon/LICENSE.txt +20 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/luxon/README.md +8 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/luxon/main.d.ts +14 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/luxon/main.esm.js +162 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/luxon/main.js +170 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/luxon/main.min.js +6 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/luxon/package.json +34 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/moment/LICENSE.txt +20 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/moment/README.md +8 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/moment/main.d.ts +14 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/moment/main.esm.js +102 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/moment/main.js +110 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/moment/main.min.js +6 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/moment/package.json +34 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/moment-timezone/LICENSE.txt +20 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/moment-timezone/README.md +8 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/moment-timezone/main.d.ts +11 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/moment-timezone/main.esm.js +58 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/moment-timezone/main.js +64 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/moment-timezone/main.min.js +6 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/moment-timezone/package.json +35 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/rrule/LICENSE.txt +20 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/rrule/README.md +8 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/rrule/main.d.ts +9 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/rrule/main.esm.js +121 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/rrule/main.js +128 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/rrule/main.min.js +6 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/rrule/package.json +34 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/timegrid/LICENSE.txt +20 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/timegrid/README.md +8 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/timegrid/main.css +309 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/timegrid/main.d.ts +220 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/timegrid/main.esm.js +1345 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/timegrid/main.js +1357 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/timegrid/main.min.css +1 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/timegrid/main.min.js +6 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/packages/timegrid/package.json +36 -0
- advanced_report_builder/static/advanced_report_builder/fullcalendar/vendor/rrule.js +3782 -0
- advanced_report_builder/static/advanced_report_builder/jquery_extendext/js/jQuery.extendext.js +132 -0
- advanced_report_builder/static/advanced_report_builder/jquery_extendext/js/jQuery.extendext.min.js +9 -0
- advanced_report_builder/static/advanced_report_builder/moment/locales.js +9769 -0
- advanced_report_builder/static/advanced_report_builder/moment/locales.min.js +1 -0
- advanced_report_builder/static/advanced_report_builder/moment/moment-with-locales.js +14289 -0
- advanced_report_builder/static/advanced_report_builder/moment/moment-with-locales.min.js +1 -0
- advanced_report_builder/static/advanced_report_builder/moment/moment.min.js +1 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/.DS_Store +0 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/css/.DS_Store +0 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/css/query-builder.dark.css +173 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/css/query-builder.dark.min.css +6 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/css/query-builder.default.css +173 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/css/query-builder.default.min.css +6 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/i18n/query-builder.ar.js +80 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/i18n/query-builder.az.js +79 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/i18n/query-builder.bg.js +79 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/i18n/query-builder.cs.js +79 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/i18n/query-builder.da.js +56 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/i18n/query-builder.de.js +76 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/i18n/query-builder.el.js +80 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/i18n/query-builder.en.js +83 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/i18n/query-builder.es.js +81 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/i18n/query-builder.fa-IR.js +79 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/i18n/query-builder.fr.js +83 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/i18n/query-builder.he.js +81 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/i18n/query-builder.it.js +79 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/i18n/query-builder.nl.js +76 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/i18n/query-builder.no.js +54 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/i18n/query-builder.pl.js +80 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/i18n/query-builder.pt-BR.js +80 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/i18n/query-builder.pt-PT.js +75 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/i18n/query-builder.ro.js +54 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/i18n/query-builder.ru.js +77 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/i18n/query-builder.sq.js +78 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/i18n/query-builder.tr.js +82 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/i18n/query-builder.ua.js +79 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/i18n/query-builder.zh-CN.js +80 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/js/.DS_Store +0 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/js/plugins/.DS_Store +0 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/js/plugins/currency/plugin.js +30 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/js/query-builder.js +6200 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/js/query-builder.min.js +7 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/js/query-builder.standalone.js +6477 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/js/query-builder.standalone.min.js +7 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/scss/.DS_Store +0 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/scss/dark.scss +19 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/scss/default.scss +186 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/scss/plugins/_bt-checkbox.scss +12 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/scss/plugins/_bt-tooltip-errors.scss +9 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/scss/plugins/_filter-description.scss +21 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/scss/plugins/_invert.scss +5 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/scss/plugins/_sortable.scss +28 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/scss/plugins/bt-tooltip-errors.scss +9 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/scss/plugins/filter-description.scss +21 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/scss/plugins/invert.scss +5 -0
- advanced_report_builder/static/advanced_report_builder/query_builder/scss/plugins/sortable.scss +27 -0
- advanced_report_builder/template_types.py +34 -0
- advanced_report_builder/templates/advanced_report_builder/calendar/description_modal.html +12 -0
- advanced_report_builder/templates/advanced_report_builder/calendar/middle.html +33 -0
- advanced_report_builder/templates/advanced_report_builder/calendar/modal.html +10 -0
- advanced_report_builder/templates/advanced_report_builder/calendar/report.html +80 -0
- advanced_report_builder/templates/advanced_report_builder/charts/bar/middle.html +122 -0
- advanced_report_builder/templates/advanced_report_builder/charts/funnel/middle.html +46 -0
- advanced_report_builder/templates/advanced_report_builder/charts/funnel/report.html +34 -0
- advanced_report_builder/templates/advanced_report_builder/charts/line/middle.html +119 -0
- advanced_report_builder/templates/advanced_report_builder/charts/modal.html +12 -0
- advanced_report_builder/templates/advanced_report_builder/charts/modal_field.html +13 -0
- advanced_report_builder/templates/advanced_report_builder/charts/pie/middle.html +58 -0
- advanced_report_builder/templates/advanced_report_builder/charts/report.html +33 -0
- advanced_report_builder/templates/advanced_report_builder/data_merge/data_merge.html +144 -0
- advanced_report_builder/templates/advanced_report_builder/datatables/fields/modal.html +13 -0
- advanced_report_builder/templates/advanced_report_builder/datatables/fields/single_query_builder.html +87 -0
- advanced_report_builder/templates/advanced_report_builder/datatables/modal.html +13 -0
- advanced_report_builder/templates/advanced_report_builder/datatables/onclick_menu.html +14 -0
- advanced_report_builder/templates/advanced_report_builder/datatables/report.html +37 -0
- advanced_report_builder/templates/advanced_report_builder/datatables/select_pivot.html +199 -0
- advanced_report_builder/templates/advanced_report_builder/error.html +21 -0
- advanced_report_builder/templates/advanced_report_builder/extra_query_modal.html +13 -0
- advanced_report_builder/templates/advanced_report_builder/kanban/description_modal.html +12 -0
- advanced_report_builder/templates/advanced_report_builder/kanban/middle.html +63 -0
- advanced_report_builder/templates/advanced_report_builder/kanban/modal.html +10 -0
- advanced_report_builder/templates/advanced_report_builder/kanban/report.html +71 -0
- advanced_report_builder/templates/advanced_report_builder/multi_values/held_modal.html +14 -0
- advanced_report_builder/templates/advanced_report_builder/multi_values/middle.html +61 -0
- advanced_report_builder/templates/advanced_report_builder/multi_values/modal.html +15 -0
- advanced_report_builder/templates/advanced_report_builder/multi_values/report.html +19 -0
- advanced_report_builder/templates/advanced_report_builder/query_builder.html +88 -0
- advanced_report_builder/templates/advanced_report_builder/query_modal.html +12 -0
- advanced_report_builder/templates/advanced_report_builder/select_column.html +230 -0
- advanced_report_builder/templates/advanced_report_builder/single_values/gauge_middle.html +143 -0
- advanced_report_builder/templates/advanced_report_builder/single_values/middle.html +63 -0
- advanced_report_builder/templates/advanced_report_builder/single_values/modal.html +13 -0
- advanced_report_builder/templates/advanced_report_builder/single_values/report.html +56 -0
- advanced_report_builder/toggle.py +9 -0
- advanced_report_builder/urls.py +237 -0
- advanced_report_builder/utils.py +171 -0
- advanced_report_builder/variable_date.py +670 -0
- advanced_report_builder/view_types.py +27 -0
- advanced_report_builder/views/.DS_Store +0 -0
- advanced_report_builder/views/__init__.py +0 -0
- advanced_report_builder/views/bar_charts.py +746 -0
- advanced_report_builder/views/calendar.py +745 -0
- advanced_report_builder/views/charts_base.py +625 -0
- advanced_report_builder/views/custom.py +147 -0
- advanced_report_builder/views/dashboard.py +357 -0
- advanced_report_builder/views/datatables/__init__.py +0 -0
- advanced_report_builder/views/datatables/datatables.py +151 -0
- advanced_report_builder/views/datatables/modal.py +1151 -0
- advanced_report_builder/views/datatables/utils.py +701 -0
- advanced_report_builder/views/error_pod.py +50 -0
- advanced_report_builder/views/funnel_charts.py +289 -0
- advanced_report_builder/views/helpers.py +22 -0
- advanced_report_builder/views/kanban.py +868 -0
- advanced_report_builder/views/line_charts.py +415 -0
- advanced_report_builder/views/modals_base.py +213 -0
- advanced_report_builder/views/multi_value.py +1160 -0
- advanced_report_builder/views/pie_charts.py +290 -0
- advanced_report_builder/views/query_modal/__init__.py +0 -0
- advanced_report_builder/views/query_modal/mixin.py +161 -0
- advanced_report_builder/views/query_modal/modal.py +274 -0
- advanced_report_builder/views/report.py +241 -0
- advanced_report_builder/views/report_utils_mixin.py +312 -0
- advanced_report_builder/views/reports.py +154 -0
- advanced_report_builder/views/single_values.py +792 -0
- advanced_report_builder/views/targets/__init__.py +0 -0
- advanced_report_builder/views/targets/utils.py +251 -0
- advanced_report_builder/views/targets/views.py +139 -0
- advanced_report_builder/views/value_base.py +198 -0
- advanced_report_builder/widgets.py +5 -0
- django_advanced_report_builder-1.2.9.dist-info/METADATA +35 -0
- django_advanced_report_builder-1.2.9.dist-info/RECORD +360 -0
- django_advanced_report_builder-1.2.9.dist-info/WHEEL +5 -0
- django_advanced_report_builder-1.2.9.dist-info/licenses/LICENSE +21 -0
- django_advanced_report_builder-1.2.9.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,2730 @@
|
|
|
1
|
+
// Generated by dts-bundle v0.7.3-fork.1
|
|
2
|
+
// Dependencies for this module:
|
|
3
|
+
// ../../../../../@fullcalendar/core
|
|
4
|
+
|
|
5
|
+
declare module '@fullcalendar/core' {
|
|
6
|
+
export const version = "<%= version %>";
|
|
7
|
+
export { OptionsInput } from '@fullcalendar/core/types/input-types';
|
|
8
|
+
export { EventInput, EventDef, EventDefHash, EventInstance, EventInstanceHash, parseEventDef, createEventInstance, EventTuple } from '@fullcalendar/core/structs/event';
|
|
9
|
+
export { BusinessHoursInput, parseBusinessHours } from '@fullcalendar/core/structs/business-hours';
|
|
10
|
+
export { applyAll, debounce, padStart, isInt, capitaliseFirstLetter, parseFieldSpecs, compareByFieldSpecs, compareByFieldSpec, flexibleCompare, computeVisibleDayRange, refineProps, matchCellWidths, uncompensateScroll, compensateScroll, subtractInnerElHeight, isMultiDayRange, distributeHeight, undistributeHeight, preventSelection, allowSelection, preventContextMenu, allowContextMenu, compareNumbers, enableCursor, disableCursor, diffDates } from '@fullcalendar/core/util/misc';
|
|
11
|
+
export { htmlEscape, cssToStr } from '@fullcalendar/core/util/html';
|
|
12
|
+
export { removeExact, isArraysEqual } from '@fullcalendar/core/util/array';
|
|
13
|
+
export { memoize, memoizeOutput } from '@fullcalendar/core/util/memoize';
|
|
14
|
+
export { memoizeRendering, MemoizedRendering } from '@fullcalendar/core/component/memoized-rendering';
|
|
15
|
+
export { intersectRects, Rect, pointInsideRect, constrainPoint, getRectCenter, diffPoints, Point, translateRect } from '@fullcalendar/core/util/geom';
|
|
16
|
+
export { mapHash, filterHash, isPropsEqual } from '@fullcalendar/core/util/object';
|
|
17
|
+
export { findElements, findChildren, htmlToElement, createElement, insertAfterElement, prependToElement, removeElement, appendToElement, applyStyle, applyStyleProp, elementMatches, elementClosest, forceClassName } from '@fullcalendar/core/util/dom-manip';
|
|
18
|
+
export { EventStore, filterEventStoreDefs, createEmptyEventStore, mergeEventStores, getRelevantEvents, eventTupleToStore } from '@fullcalendar/core/structs/event-store';
|
|
19
|
+
export { EventUiHash, EventUi, processScopedUiProps, combineEventUis } from '@fullcalendar/core/component/event-ui';
|
|
20
|
+
export { default as Splitter, SplittableProps } from '@fullcalendar/core/component/event-splitting';
|
|
21
|
+
export { buildGotoAnchorHtml, getAllDayHtml, getDayClasses } from '@fullcalendar/core/component/date-rendering';
|
|
22
|
+
export { preventDefault, listenBySelector, whenTransitionDone } from '@fullcalendar/core/util/dom-event';
|
|
23
|
+
export { computeInnerRect, computeEdges, computeHeightAndMargins, getClippingParents, computeClippingRect, computeRect } from '@fullcalendar/core/util/dom-geom';
|
|
24
|
+
export { unpromisify } from '@fullcalendar/core/util/promise';
|
|
25
|
+
export { default as EmitterMixin, EmitterInterface } from '@fullcalendar/core/common/EmitterMixin';
|
|
26
|
+
export { DateRange, rangeContainsMarker, intersectRanges, rangesEqual, rangesIntersect, rangeContainsRange } from '@fullcalendar/core/datelib/date-range';
|
|
27
|
+
export { default as Mixin } from '@fullcalendar/core/common/Mixin';
|
|
28
|
+
export { default as PositionCache } from '@fullcalendar/core/common/PositionCache';
|
|
29
|
+
export { default as ScrollComponent, ScrollbarWidths } from '@fullcalendar/core/common/ScrollComponent';
|
|
30
|
+
export { ScrollController, ElementScrollController, WindowScrollController } from '@fullcalendar/core/common/scroll-controller';
|
|
31
|
+
export { default as Theme } from '@fullcalendar/core/theme/Theme';
|
|
32
|
+
export { default as Component, ComponentContext } from '@fullcalendar/core/component/Component';
|
|
33
|
+
export { default as DateComponent, Seg, EventSegUiInteractionState } from '@fullcalendar/core/component/DateComponent';
|
|
34
|
+
export { default as Calendar, DatePointTransform, DateSpanTransform, DateSelectionApi } from '@fullcalendar/core/Calendar';
|
|
35
|
+
export { default as View, ViewProps } from '@fullcalendar/core/View';
|
|
36
|
+
export { default as FgEventRenderer, buildSegCompareObj } from '@fullcalendar/core/component/renderers/FgEventRenderer';
|
|
37
|
+
export { default as FillRenderer } from '@fullcalendar/core/component/renderers/FillRenderer';
|
|
38
|
+
export { default as DateProfileGenerator, DateProfile } from '@fullcalendar/core/DateProfileGenerator';
|
|
39
|
+
export { ViewDef } from '@fullcalendar/core/structs/view-def';
|
|
40
|
+
export { ViewSpec } from '@fullcalendar/core/structs/view-spec';
|
|
41
|
+
export { DateSpan, DateSpanApi, DatePointApi, isDateSpansEqual } from '@fullcalendar/core/structs/date-span';
|
|
42
|
+
export { DateMarker, addDays, startOfDay, addMs, addWeeks, diffWeeks, diffWholeWeeks, diffWholeDays, diffDayAndTime, diffDays, isValidDate } from '@fullcalendar/core/datelib/marker';
|
|
43
|
+
export { Duration, createDuration, isSingleDay, multiplyDuration, addDurations, asRoughMinutes, asRoughSeconds, asRoughMs, wholeDivideDurations, greatestDurationDenominator } from '@fullcalendar/core/datelib/duration';
|
|
44
|
+
export { DateEnv, DateMarkerMeta } from '@fullcalendar/core/datelib/env';
|
|
45
|
+
export { DateFormatter, createFormatter, VerboseFormattingArg, formatIsoTimeString } from '@fullcalendar/core/datelib/formatting';
|
|
46
|
+
export { NamedTimeZoneImpl } from '@fullcalendar/core/datelib/timezone';
|
|
47
|
+
export { parse as parseMarker } from '@fullcalendar/core/datelib/parsing';
|
|
48
|
+
export { EventSourceDef, EventSource, EventSourceHash } from '@fullcalendar/core/structs/event-source';
|
|
49
|
+
export { Interaction, InteractionSettings, interactionSettingsToStore, interactionSettingsStore, InteractionSettingsStore } from '@fullcalendar/core/interactions/interaction';
|
|
50
|
+
export { PointerDragEvent } from '@fullcalendar/core/interactions/pointer';
|
|
51
|
+
export { Hit } from '@fullcalendar/core/interactions/hit';
|
|
52
|
+
export { dateSelectionJoinTransformer } from '@fullcalendar/core/interactions/date-selecting';
|
|
53
|
+
export { eventDragMutationMassager, EventDropTransformers } from '@fullcalendar/core/interactions/event-dragging';
|
|
54
|
+
export { EventResizeJoinTransforms } from '@fullcalendar/core/interactions/event-resizing';
|
|
55
|
+
export { default as ElementDragging } from '@fullcalendar/core/interactions/ElementDragging';
|
|
56
|
+
export { formatDate, formatRange } from '@fullcalendar/core/formatting-api';
|
|
57
|
+
export { globalDefaults, config } from '@fullcalendar/core/options';
|
|
58
|
+
export { RecurringType, ParsedRecurring } from '@fullcalendar/core/structs/recurring-event';
|
|
59
|
+
export { DragMetaInput, DragMeta, parseDragMeta } from '@fullcalendar/core/structs/drag-meta';
|
|
60
|
+
export { createPlugin, PluginDef, PluginDefInput, ViewPropsTransformer, ViewContainerModifier } from '@fullcalendar/core/plugin-system';
|
|
61
|
+
export { reducerFunc, Action, CalendarState } from '@fullcalendar/core/reducers/types';
|
|
62
|
+
export { CalendarComponentProps } from '@fullcalendar/core/CalendarComponent';
|
|
63
|
+
export { default as DayHeader } from '@fullcalendar/core/common/DayHeader';
|
|
64
|
+
export { computeFallbackHeaderFormat, renderDateCell } from '@fullcalendar/core/common/table-utils';
|
|
65
|
+
export { default as DaySeries } from '@fullcalendar/core/common/DaySeries';
|
|
66
|
+
export { EventInteractionState } from '@fullcalendar/core/interactions/event-interaction-state';
|
|
67
|
+
export { EventRenderRange, sliceEventStore, hasBgRendering, getElSeg } from '@fullcalendar/core/component/event-rendering';
|
|
68
|
+
export { default as DayTable, DayTableSeg, DayTableCell } from '@fullcalendar/core/common/DayTable';
|
|
69
|
+
export { default as Slicer, SlicedProps } from '@fullcalendar/core/common/slicing-utils';
|
|
70
|
+
export { EventMutation, applyMutationToEventStore } from '@fullcalendar/core/structs/event-mutation';
|
|
71
|
+
export { Constraint, ConstraintInput, AllowFunc, isPropsValid, isInteractionValid } from '@fullcalendar/core/validation';
|
|
72
|
+
export { default as EventApi } from '@fullcalendar/core/api/EventApi';
|
|
73
|
+
export { default as requestJson } from '@fullcalendar/core/util/requestJson';
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
declare module '@fullcalendar/core/types/input-types' {
|
|
77
|
+
import View from '@fullcalendar/core/View';
|
|
78
|
+
import { EventSourceInput, EventInputTransformer } from '@fullcalendar/core/structs/event-source';
|
|
79
|
+
import { Duration, DurationInput } from '@fullcalendar/core/datelib/duration';
|
|
80
|
+
import { DateInput } from '@fullcalendar/core/datelib/env';
|
|
81
|
+
import { FormatterInput } from '@fullcalendar/core/datelib/formatting';
|
|
82
|
+
import { DateRangeInput } from '@fullcalendar/core/datelib/date-range';
|
|
83
|
+
import { BusinessHoursInput } from '@fullcalendar/core/structs/business-hours';
|
|
84
|
+
import EventApi from '@fullcalendar/core/api/EventApi';
|
|
85
|
+
import { AllowFunc, ConstraintInput, OverlapFunc } from '@fullcalendar/core/validation';
|
|
86
|
+
import { PluginDef } from '@fullcalendar/core/plugin-system';
|
|
87
|
+
import { LocaleSingularArg, RawLocale } from '@fullcalendar/core/datelib/locale';
|
|
88
|
+
export interface ToolbarInput {
|
|
89
|
+
left?: string;
|
|
90
|
+
center?: string;
|
|
91
|
+
right?: string;
|
|
92
|
+
}
|
|
93
|
+
export interface CustomButtonInput {
|
|
94
|
+
text: string;
|
|
95
|
+
icon?: string;
|
|
96
|
+
themeIcon?: string;
|
|
97
|
+
bootstrapFontAwesome?: string;
|
|
98
|
+
click(element: HTMLElement): void;
|
|
99
|
+
}
|
|
100
|
+
export interface ButtonIconsInput {
|
|
101
|
+
prev?: string;
|
|
102
|
+
next?: string;
|
|
103
|
+
prevYear?: string;
|
|
104
|
+
nextYear?: string;
|
|
105
|
+
}
|
|
106
|
+
export interface ButtonTextCompoundInput {
|
|
107
|
+
prev?: string;
|
|
108
|
+
next?: string;
|
|
109
|
+
prevYear?: string;
|
|
110
|
+
nextYear?: string;
|
|
111
|
+
today?: string;
|
|
112
|
+
month?: string;
|
|
113
|
+
week?: string;
|
|
114
|
+
day?: string;
|
|
115
|
+
[viewId: string]: string | undefined;
|
|
116
|
+
}
|
|
117
|
+
export interface EventSegment {
|
|
118
|
+
event: EventApi;
|
|
119
|
+
start: Date;
|
|
120
|
+
end: Date;
|
|
121
|
+
isStart: boolean;
|
|
122
|
+
isEnd: boolean;
|
|
123
|
+
}
|
|
124
|
+
export interface CellInfo {
|
|
125
|
+
date: Date;
|
|
126
|
+
dayEl: HTMLElement;
|
|
127
|
+
moreEl: HTMLElement;
|
|
128
|
+
segs: EventSegment[];
|
|
129
|
+
hiddenSegs: EventSegment[];
|
|
130
|
+
}
|
|
131
|
+
export interface DropInfo {
|
|
132
|
+
start: Date;
|
|
133
|
+
end: Date;
|
|
134
|
+
}
|
|
135
|
+
export type EventHandlerName = '_init' | 'selectAllow' | 'eventAllow' | 'eventDataTransform' | 'datesRender' | 'datesDestroy' | 'dayRender' | 'windowResize' | 'dateClick' | 'eventClick' | 'eventMouseEnter' | 'eventMouseLeave' | 'select' | 'unselect' | 'loading' | 'eventRender' | 'eventPositioned' | '_eventsPositioned' | 'eventDestroy' | 'eventDragStart' | 'eventDragStop' | 'eventDrop' | '_destroyed' | 'drop' | 'eventResizeStart' | 'eventResizeStop' | 'eventResize' | 'eventReceive' | 'eventLeave' | 'viewSkeletonRender' | 'viewSkeletonDestroy' | '_noEventDrop' | '_noEventResize' | 'eventLimitClick' | 'resourceRender';
|
|
136
|
+
export type EventHandlerArgs<T extends EventHandlerName> = Parameters<Extract<OptionsInput[T], (...args: any[]) => any>>;
|
|
137
|
+
export type EventHandlerArg<T extends EventHandlerName> = EventHandlerArgs<T>[0];
|
|
138
|
+
export interface OptionsInputBase {
|
|
139
|
+
header?: boolean | ToolbarInput;
|
|
140
|
+
footer?: boolean | ToolbarInput;
|
|
141
|
+
customButtons?: {
|
|
142
|
+
[name: string]: CustomButtonInput;
|
|
143
|
+
};
|
|
144
|
+
buttonIcons?: boolean | ButtonIconsInput;
|
|
145
|
+
themeSystem?: 'standard' | string;
|
|
146
|
+
bootstrapFontAwesome?: boolean | ButtonIconsInput;
|
|
147
|
+
firstDay?: number;
|
|
148
|
+
dir?: 'ltr' | 'rtl' | 'auto';
|
|
149
|
+
weekends?: boolean;
|
|
150
|
+
hiddenDays?: number[];
|
|
151
|
+
fixedWeekCount?: boolean;
|
|
152
|
+
weekNumbers?: boolean;
|
|
153
|
+
weekNumbersWithinDays?: boolean;
|
|
154
|
+
weekNumberCalculation?: 'local' | 'ISO' | ((m: Date) => number);
|
|
155
|
+
businessHours?: BusinessHoursInput;
|
|
156
|
+
showNonCurrentDates?: boolean;
|
|
157
|
+
height?: number | 'auto' | 'parent' | (() => number);
|
|
158
|
+
contentHeight?: number | 'auto' | (() => number);
|
|
159
|
+
aspectRatio?: number;
|
|
160
|
+
handleWindowResize?: boolean;
|
|
161
|
+
windowResizeDelay?: number;
|
|
162
|
+
eventLimit?: boolean | number;
|
|
163
|
+
eventLimitClick?: 'popover' | 'week' | 'day' | 'timeGridWeek' | 'timeGridDay' | string | ((arg: {
|
|
164
|
+
date: Date;
|
|
165
|
+
allDay: boolean;
|
|
166
|
+
dayEl: HTMLElement;
|
|
167
|
+
moreEl: HTMLElement;
|
|
168
|
+
segs: any[];
|
|
169
|
+
hiddenSegs: any[];
|
|
170
|
+
jsEvent: MouseEvent;
|
|
171
|
+
view: View;
|
|
172
|
+
}) => void);
|
|
173
|
+
timeZone?: string | boolean;
|
|
174
|
+
now?: DateInput | (() => DateInput);
|
|
175
|
+
defaultView?: string;
|
|
176
|
+
allDaySlot?: boolean;
|
|
177
|
+
allDayText?: string;
|
|
178
|
+
slotDuration?: DurationInput;
|
|
179
|
+
slotLabelFormat?: FormatterInput;
|
|
180
|
+
slotLabelInterval?: DurationInput;
|
|
181
|
+
snapDuration?: DurationInput;
|
|
182
|
+
scrollTime?: DurationInput;
|
|
183
|
+
minTime?: DurationInput;
|
|
184
|
+
maxTime?: DurationInput;
|
|
185
|
+
slotEventOverlap?: boolean;
|
|
186
|
+
listDayFormat?: FormatterInput | boolean;
|
|
187
|
+
listDayAltFormat?: FormatterInput | boolean;
|
|
188
|
+
noEventsMessage?: string;
|
|
189
|
+
defaultDate?: DateInput;
|
|
190
|
+
nowIndicator?: boolean;
|
|
191
|
+
visibleRange?: ((currentDate: Date) => DateRangeInput) | DateRangeInput;
|
|
192
|
+
validRange?: DateRangeInput;
|
|
193
|
+
dateIncrement?: DurationInput;
|
|
194
|
+
dateAlignment?: string;
|
|
195
|
+
duration?: DurationInput;
|
|
196
|
+
dayCount?: number;
|
|
197
|
+
locales?: RawLocale[];
|
|
198
|
+
locale?: LocaleSingularArg;
|
|
199
|
+
eventTimeFormat?: FormatterInput;
|
|
200
|
+
columnHeader?: boolean;
|
|
201
|
+
columnHeaderFormat?: FormatterInput;
|
|
202
|
+
columnHeaderText?: string | ((date: DateInput) => string);
|
|
203
|
+
columnHeaderHtml?: string | ((date: DateInput) => string);
|
|
204
|
+
titleFormat?: FormatterInput;
|
|
205
|
+
weekLabel?: string;
|
|
206
|
+
displayEventTime?: boolean;
|
|
207
|
+
displayEventEnd?: boolean;
|
|
208
|
+
eventLimitText?: string | ((eventCnt: number) => string);
|
|
209
|
+
dayPopoverFormat?: FormatterInput;
|
|
210
|
+
navLinks?: boolean;
|
|
211
|
+
navLinkDayClick?: string | ((date: Date, jsEvent: Event) => void);
|
|
212
|
+
navLinkWeekClick?: string | ((weekStart: any, jsEvent: Event) => void);
|
|
213
|
+
selectable?: boolean;
|
|
214
|
+
selectMirror?: boolean;
|
|
215
|
+
unselectAuto?: boolean;
|
|
216
|
+
unselectCancel?: string;
|
|
217
|
+
defaultAllDayEventDuration?: DurationInput;
|
|
218
|
+
defaultTimedEventDuration?: DurationInput;
|
|
219
|
+
cmdFormatter?: string;
|
|
220
|
+
defaultRangeSeparator?: string;
|
|
221
|
+
selectConstraint?: ConstraintInput;
|
|
222
|
+
selectOverlap?: boolean | OverlapFunc;
|
|
223
|
+
selectAllow?: AllowFunc;
|
|
224
|
+
editable?: boolean;
|
|
225
|
+
eventStartEditable?: boolean;
|
|
226
|
+
eventDurationEditable?: boolean;
|
|
227
|
+
eventConstraint?: ConstraintInput;
|
|
228
|
+
eventOverlap?: boolean | OverlapFunc;
|
|
229
|
+
eventAllow?: AllowFunc;
|
|
230
|
+
eventClassName?: string[] | string;
|
|
231
|
+
eventClassNames?: string[] | string;
|
|
232
|
+
eventBackgroundColor?: string;
|
|
233
|
+
eventBorderColor?: string;
|
|
234
|
+
eventTextColor?: string;
|
|
235
|
+
eventColor?: string;
|
|
236
|
+
events?: EventSourceInput;
|
|
237
|
+
eventSources?: EventSourceInput[];
|
|
238
|
+
allDayDefault?: boolean;
|
|
239
|
+
startParam?: string;
|
|
240
|
+
endParam?: string;
|
|
241
|
+
lazyFetching?: boolean;
|
|
242
|
+
nextDayThreshold?: DurationInput;
|
|
243
|
+
eventOrder?: string | Array<((a: EventApi, b: EventApi) => number) | (string | ((a: EventApi, b: EventApi) => number))>;
|
|
244
|
+
rerenderDelay?: number | null;
|
|
245
|
+
dragRevertDuration?: number;
|
|
246
|
+
dragScroll?: boolean;
|
|
247
|
+
longPressDelay?: number;
|
|
248
|
+
eventLongPressDelay?: number;
|
|
249
|
+
droppable?: boolean;
|
|
250
|
+
dropAccept?: string | ((draggable: any) => boolean);
|
|
251
|
+
eventDataTransform?: EventInputTransformer;
|
|
252
|
+
allDayMaintainDuration?: boolean;
|
|
253
|
+
eventResizableFromStart?: boolean;
|
|
254
|
+
timeGridEventMinHeight?: number;
|
|
255
|
+
allDayHtml?: string;
|
|
256
|
+
eventDragMinDistance?: number;
|
|
257
|
+
eventSourceFailure?: any;
|
|
258
|
+
eventSourceSuccess?: any;
|
|
259
|
+
forceEventDuration?: boolean;
|
|
260
|
+
progressiveEventRendering?: boolean;
|
|
261
|
+
selectLongPressDelay?: number;
|
|
262
|
+
selectMinDistance?: number;
|
|
263
|
+
timeZoneParam?: string;
|
|
264
|
+
titleRangeSeparator?: string;
|
|
265
|
+
datesRender?(arg: {
|
|
266
|
+
view: View;
|
|
267
|
+
el: HTMLElement;
|
|
268
|
+
}): void;
|
|
269
|
+
datesDestroy?(arg: {
|
|
270
|
+
view: View;
|
|
271
|
+
el: HTMLElement;
|
|
272
|
+
}): void;
|
|
273
|
+
dayRender?(arg: {
|
|
274
|
+
view: View;
|
|
275
|
+
date: Date;
|
|
276
|
+
allDay?: boolean;
|
|
277
|
+
el: HTMLElement;
|
|
278
|
+
}): void;
|
|
279
|
+
windowResize?(view: View): void;
|
|
280
|
+
dateClick?(arg: {
|
|
281
|
+
date: Date;
|
|
282
|
+
dateStr: string;
|
|
283
|
+
allDay: boolean;
|
|
284
|
+
resource?: any;
|
|
285
|
+
dayEl: HTMLElement;
|
|
286
|
+
jsEvent: MouseEvent;
|
|
287
|
+
view: View;
|
|
288
|
+
}): void;
|
|
289
|
+
eventClick?(arg: {
|
|
290
|
+
el: HTMLElement;
|
|
291
|
+
event: EventApi;
|
|
292
|
+
jsEvent: MouseEvent;
|
|
293
|
+
view: View;
|
|
294
|
+
}): boolean | void;
|
|
295
|
+
eventMouseEnter?(arg: {
|
|
296
|
+
el: HTMLElement;
|
|
297
|
+
event: EventApi;
|
|
298
|
+
jsEvent: MouseEvent;
|
|
299
|
+
view: View;
|
|
300
|
+
}): void;
|
|
301
|
+
eventMouseLeave?(arg: {
|
|
302
|
+
el: HTMLElement;
|
|
303
|
+
event: EventApi;
|
|
304
|
+
jsEvent: MouseEvent;
|
|
305
|
+
view: View;
|
|
306
|
+
}): void;
|
|
307
|
+
select?(arg: {
|
|
308
|
+
start: Date;
|
|
309
|
+
end: Date;
|
|
310
|
+
startStr: string;
|
|
311
|
+
endStr: string;
|
|
312
|
+
allDay: boolean;
|
|
313
|
+
resource?: any;
|
|
314
|
+
jsEvent: MouseEvent;
|
|
315
|
+
view: View;
|
|
316
|
+
}): void;
|
|
317
|
+
unselect?(arg: {
|
|
318
|
+
view: View;
|
|
319
|
+
jsEvent: Event;
|
|
320
|
+
}): void;
|
|
321
|
+
loading?(isLoading: boolean): void;
|
|
322
|
+
eventRender?(arg: {
|
|
323
|
+
isMirror: boolean;
|
|
324
|
+
isStart: boolean;
|
|
325
|
+
isEnd: boolean;
|
|
326
|
+
event: EventApi;
|
|
327
|
+
el: HTMLElement;
|
|
328
|
+
view: View;
|
|
329
|
+
}): void;
|
|
330
|
+
eventPositioned?(arg: {
|
|
331
|
+
isMirror: boolean;
|
|
332
|
+
isStart: boolean;
|
|
333
|
+
isEnd: boolean;
|
|
334
|
+
event: EventApi;
|
|
335
|
+
el: HTMLElement;
|
|
336
|
+
view: View;
|
|
337
|
+
}): void;
|
|
338
|
+
_eventsPositioned?(arg: {
|
|
339
|
+
view: View;
|
|
340
|
+
}): void;
|
|
341
|
+
eventDestroy?(arg: {
|
|
342
|
+
isMirror: boolean;
|
|
343
|
+
event: EventApi;
|
|
344
|
+
el: HTMLElement;
|
|
345
|
+
view: View;
|
|
346
|
+
}): void;
|
|
347
|
+
eventDragStart?(arg: {
|
|
348
|
+
event: EventApi;
|
|
349
|
+
el: HTMLElement;
|
|
350
|
+
jsEvent: MouseEvent;
|
|
351
|
+
view: View;
|
|
352
|
+
}): void;
|
|
353
|
+
eventDragStop?(arg: {
|
|
354
|
+
event: EventApi;
|
|
355
|
+
el: HTMLElement;
|
|
356
|
+
jsEvent: MouseEvent;
|
|
357
|
+
view: View;
|
|
358
|
+
}): void;
|
|
359
|
+
eventDrop?(arg: {
|
|
360
|
+
el: HTMLElement;
|
|
361
|
+
event: EventApi;
|
|
362
|
+
oldEvent: EventApi;
|
|
363
|
+
delta: Duration;
|
|
364
|
+
revert: () => void;
|
|
365
|
+
jsEvent: Event;
|
|
366
|
+
view: View;
|
|
367
|
+
}): void;
|
|
368
|
+
eventResizeStart?(arg: {
|
|
369
|
+
el: HTMLElement;
|
|
370
|
+
event: EventApi;
|
|
371
|
+
jsEvent: MouseEvent;
|
|
372
|
+
view: View;
|
|
373
|
+
}): void;
|
|
374
|
+
eventResizeStop?(arg: {
|
|
375
|
+
el: HTMLElement;
|
|
376
|
+
event: EventApi;
|
|
377
|
+
jsEvent: MouseEvent;
|
|
378
|
+
view: View;
|
|
379
|
+
}): void;
|
|
380
|
+
eventResize?(arg: {
|
|
381
|
+
el: HTMLElement;
|
|
382
|
+
startDelta: Duration;
|
|
383
|
+
endDelta: Duration;
|
|
384
|
+
prevEvent: EventApi;
|
|
385
|
+
event: EventApi;
|
|
386
|
+
revert: () => void;
|
|
387
|
+
jsEvent: Event;
|
|
388
|
+
view: View;
|
|
389
|
+
}): void;
|
|
390
|
+
drop?(arg: {
|
|
391
|
+
date: Date;
|
|
392
|
+
dateStr: string;
|
|
393
|
+
allDay: boolean;
|
|
394
|
+
draggedEl: HTMLElement;
|
|
395
|
+
jsEvent: MouseEvent;
|
|
396
|
+
view: View;
|
|
397
|
+
}): void;
|
|
398
|
+
eventReceive?(arg: {
|
|
399
|
+
event: EventApi;
|
|
400
|
+
draggedEl: HTMLElement;
|
|
401
|
+
view: View;
|
|
402
|
+
}): void;
|
|
403
|
+
eventLeave?(arg: {
|
|
404
|
+
draggedEl: HTMLElement;
|
|
405
|
+
event: EventApi;
|
|
406
|
+
view: View;
|
|
407
|
+
}): void;
|
|
408
|
+
viewSkeletonRender?(arg: {
|
|
409
|
+
el: HTMLElement;
|
|
410
|
+
view: View;
|
|
411
|
+
}): void;
|
|
412
|
+
viewSkeletonDestroy?(arg: {
|
|
413
|
+
el: HTMLElement;
|
|
414
|
+
view: View;
|
|
415
|
+
}): void;
|
|
416
|
+
_destroyed?(): void;
|
|
417
|
+
_init?(): void;
|
|
418
|
+
_noEventDrop?(): void;
|
|
419
|
+
_noEventResize?(): void;
|
|
420
|
+
resourceRender?(arg: {
|
|
421
|
+
resource: any;
|
|
422
|
+
el: HTMLElement;
|
|
423
|
+
view: View;
|
|
424
|
+
}): void;
|
|
425
|
+
}
|
|
426
|
+
export interface ViewOptionsInput extends OptionsInputBase {
|
|
427
|
+
type?: string;
|
|
428
|
+
buttonText?: string;
|
|
429
|
+
}
|
|
430
|
+
export interface OptionsInput extends OptionsInputBase {
|
|
431
|
+
buttonText?: ButtonTextCompoundInput;
|
|
432
|
+
views?: {
|
|
433
|
+
[viewId: string]: ViewOptionsInput;
|
|
434
|
+
};
|
|
435
|
+
plugins?: (PluginDef | string)[];
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
declare module '@fullcalendar/core/structs/event' {
|
|
440
|
+
import { DateInput } from '@fullcalendar/core/datelib/env';
|
|
441
|
+
import Calendar from '@fullcalendar/core/Calendar';
|
|
442
|
+
import { DateRange } from '@fullcalendar/core/datelib/date-range';
|
|
443
|
+
import { Duration } from '@fullcalendar/core/datelib/duration';
|
|
444
|
+
import { UnscopedEventUiInput, EventUi } from '@fullcalendar/core/component/event-ui';
|
|
445
|
+
export type EventRenderingChoice = '' | 'background' | 'inverse-background' | 'none';
|
|
446
|
+
export interface EventNonDateInput extends UnscopedEventUiInput {
|
|
447
|
+
id?: string | number;
|
|
448
|
+
groupId?: string | number;
|
|
449
|
+
title?: string;
|
|
450
|
+
url?: string;
|
|
451
|
+
rendering?: EventRenderingChoice;
|
|
452
|
+
extendedProps?: object;
|
|
453
|
+
[extendedProp: string]: any;
|
|
454
|
+
}
|
|
455
|
+
export interface EventDateInput {
|
|
456
|
+
start?: DateInput;
|
|
457
|
+
end?: DateInput;
|
|
458
|
+
date?: DateInput;
|
|
459
|
+
allDay?: boolean;
|
|
460
|
+
}
|
|
461
|
+
export type EventInput = EventNonDateInput & EventDateInput;
|
|
462
|
+
export interface EventDef {
|
|
463
|
+
defId: string;
|
|
464
|
+
sourceId: string;
|
|
465
|
+
publicId: string;
|
|
466
|
+
groupId: string;
|
|
467
|
+
allDay: boolean;
|
|
468
|
+
hasEnd: boolean;
|
|
469
|
+
recurringDef: {
|
|
470
|
+
typeId: number;
|
|
471
|
+
typeData: any;
|
|
472
|
+
duration: Duration | null;
|
|
473
|
+
} | null;
|
|
474
|
+
title: string;
|
|
475
|
+
url: string;
|
|
476
|
+
rendering: EventRenderingChoice;
|
|
477
|
+
ui: EventUi;
|
|
478
|
+
extendedProps: any;
|
|
479
|
+
}
|
|
480
|
+
export interface EventInstance {
|
|
481
|
+
instanceId: string;
|
|
482
|
+
defId: string;
|
|
483
|
+
range: DateRange;
|
|
484
|
+
forcedStartTzo: number | null;
|
|
485
|
+
forcedEndTzo: number | null;
|
|
486
|
+
}
|
|
487
|
+
export interface EventTuple {
|
|
488
|
+
def: EventDef;
|
|
489
|
+
instance: EventInstance | null;
|
|
490
|
+
}
|
|
491
|
+
export type EventInstanceHash = {
|
|
492
|
+
[instanceId: string]: EventInstance;
|
|
493
|
+
};
|
|
494
|
+
export type EventDefHash = {
|
|
495
|
+
[defId: string]: EventDef;
|
|
496
|
+
};
|
|
497
|
+
export const NON_DATE_PROPS: {
|
|
498
|
+
id: StringConstructor;
|
|
499
|
+
groupId: StringConstructor;
|
|
500
|
+
title: StringConstructor;
|
|
501
|
+
url: StringConstructor;
|
|
502
|
+
rendering: StringConstructor;
|
|
503
|
+
extendedProps: any;
|
|
504
|
+
};
|
|
505
|
+
export const DATE_PROPS: {
|
|
506
|
+
start: any;
|
|
507
|
+
date: any;
|
|
508
|
+
end: any;
|
|
509
|
+
allDay: any;
|
|
510
|
+
};
|
|
511
|
+
export function parseEvent(raw: EventInput, sourceId: string, calendar: Calendar, allowOpenRange?: boolean): EventTuple | null;
|
|
512
|
+
export function parseEventDef(raw: EventNonDateInput, sourceId: string, allDay: boolean, hasEnd: boolean, calendar: Calendar): EventDef;
|
|
513
|
+
export type eventDefParserFunc = (def: EventDef, props: any, leftovers: any) => void;
|
|
514
|
+
export function createEventInstance(defId: string, range: DateRange, forcedStartTzo?: number, forcedEndTzo?: number): EventInstance;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
declare module '@fullcalendar/core/structs/business-hours' {
|
|
518
|
+
import Calendar from '@fullcalendar/core/Calendar';
|
|
519
|
+
import { EventInput } from '@fullcalendar/core/structs/event';
|
|
520
|
+
import { EventStore } from '@fullcalendar/core/structs/event-store';
|
|
521
|
+
export type BusinessHoursInput = boolean | EventInput | EventInput[];
|
|
522
|
+
export function parseBusinessHours(input: BusinessHoursInput, calendar: Calendar): EventStore;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
declare module '@fullcalendar/core/util/misc' {
|
|
526
|
+
import { DateMarker } from '@fullcalendar/core/datelib/marker';
|
|
527
|
+
import { Duration } from '@fullcalendar/core/datelib/duration';
|
|
528
|
+
import { DateEnv } from '@fullcalendar/core/datelib/env';
|
|
529
|
+
import { DateRange, OpenDateRange } from '@fullcalendar/core/datelib/date-range';
|
|
530
|
+
export function compensateScroll(rowEl: HTMLElement, scrollbarWidths: any): void;
|
|
531
|
+
export function uncompensateScroll(rowEl: HTMLElement): void;
|
|
532
|
+
export function disableCursor(): void;
|
|
533
|
+
export function enableCursor(): void;
|
|
534
|
+
export function distributeHeight(els: HTMLElement[], availableHeight: any, shouldRedistribute: any): void;
|
|
535
|
+
export function undistributeHeight(els: HTMLElement[]): void;
|
|
536
|
+
export function matchCellWidths(els: HTMLElement[]): number;
|
|
537
|
+
export function subtractInnerElHeight(outerEl: HTMLElement, innerEl: HTMLElement): number;
|
|
538
|
+
export function preventSelection(el: HTMLElement): void;
|
|
539
|
+
export function allowSelection(el: HTMLElement): void;
|
|
540
|
+
export function preventContextMenu(el: HTMLElement): void;
|
|
541
|
+
export function allowContextMenu(el: HTMLElement): void;
|
|
542
|
+
export function parseFieldSpecs(input: any): any[];
|
|
543
|
+
export function compareByFieldSpecs(obj0: any, obj1: any, fieldSpecs: any): any;
|
|
544
|
+
export function compareByFieldSpec(obj0: any, obj1: any, fieldSpec: any): any;
|
|
545
|
+
export function flexibleCompare(a: any, b: any): number;
|
|
546
|
+
export function capitaliseFirstLetter(str: any): any;
|
|
547
|
+
export function padStart(val: any, len: any): string;
|
|
548
|
+
export function compareNumbers(a: any, b: any): number;
|
|
549
|
+
export function isInt(n: any): boolean;
|
|
550
|
+
export function applyAll(functions: any, thisObj: any, args: any): any;
|
|
551
|
+
export function firstDefined(...args: any[]): any;
|
|
552
|
+
export function debounce(func: any, wait: any): () => any;
|
|
553
|
+
export type GenericHash = {
|
|
554
|
+
[key: string]: any;
|
|
555
|
+
};
|
|
556
|
+
export function refineProps(rawProps: GenericHash, processors: GenericHash, defaults?: GenericHash, leftoverProps?: GenericHash): GenericHash;
|
|
557
|
+
export function computeAlignedDayRange(timedRange: DateRange): DateRange;
|
|
558
|
+
export function computeVisibleDayRange(timedRange: OpenDateRange, nextDayThreshold?: Duration): OpenDateRange;
|
|
559
|
+
export function isMultiDayRange(range: DateRange): boolean;
|
|
560
|
+
export function diffDates(date0: DateMarker, date1: DateMarker, dateEnv: DateEnv, largeUnit?: string): Duration;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
declare module '@fullcalendar/core/util/html' {
|
|
564
|
+
export function htmlEscape(s: any): string;
|
|
565
|
+
export function cssToStr(cssProps: any): string;
|
|
566
|
+
export function attrsToStr(attrs: any): string;
|
|
567
|
+
export type ClassNameInput = string | string[];
|
|
568
|
+
export function parseClassName(raw: ClassNameInput): string[];
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
declare module '@fullcalendar/core/util/array' {
|
|
572
|
+
export function removeMatching(array: any, testFunc: any): number;
|
|
573
|
+
export function removeExact(array: any, exactVal: any): number;
|
|
574
|
+
export function isArraysEqual(a0: any, a1: any): boolean;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
declare module '@fullcalendar/core/util/memoize' {
|
|
578
|
+
export function memoize<T>(workerFunc: T): T;
|
|
579
|
+
export function memoizeOutput<T>(workerFunc: T, equalityFunc: (output0: any, output1: any) => boolean): T;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
declare module '@fullcalendar/core/component/memoized-rendering' {
|
|
583
|
+
export interface MemoizedRendering<ArgsType extends any[]> {
|
|
584
|
+
(...args: ArgsType): void;
|
|
585
|
+
unrender: () => void;
|
|
586
|
+
dependents: MemoizedRendering<any>[];
|
|
587
|
+
}
|
|
588
|
+
export function memoizeRendering<ArgsType extends any[]>(renderFunc: (...args: ArgsType) => void, unrenderFunc?: (...args: ArgsType) => void, dependencies?: MemoizedRendering<any>[]): MemoizedRendering<ArgsType>;
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
declare module '@fullcalendar/core/util/geom' {
|
|
592
|
+
export interface Point {
|
|
593
|
+
left: number;
|
|
594
|
+
top: number;
|
|
595
|
+
}
|
|
596
|
+
export interface Rect {
|
|
597
|
+
left: number;
|
|
598
|
+
right: number;
|
|
599
|
+
top: number;
|
|
600
|
+
bottom: number;
|
|
601
|
+
}
|
|
602
|
+
export function pointInsideRect(point: Point, rect: Rect): boolean;
|
|
603
|
+
export function intersectRects(rect1: Rect, rect2: Rect): Rect | false;
|
|
604
|
+
export function translateRect(rect: Rect, deltaX: number, deltaY: number): Rect;
|
|
605
|
+
export function constrainPoint(point: Point, rect: Rect): Point;
|
|
606
|
+
export function getRectCenter(rect: Rect): Point;
|
|
607
|
+
export function diffPoints(point1: Point, point2: Point): Point;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
declare module '@fullcalendar/core/util/object' {
|
|
611
|
+
export function mergeProps(propObjs: any, complexProps?: any): any;
|
|
612
|
+
export function filterHash(hash: any, func: any): {};
|
|
613
|
+
export function mapHash<InputItem, OutputItem>(hash: {
|
|
614
|
+
[key: string]: InputItem;
|
|
615
|
+
}, func: (input: InputItem, key: string) => OutputItem): {
|
|
616
|
+
[key: string]: OutputItem;
|
|
617
|
+
};
|
|
618
|
+
export function arrayToHash(a: any): {
|
|
619
|
+
[key: string]: true;
|
|
620
|
+
};
|
|
621
|
+
export function hashValuesToArray(obj: any): any[];
|
|
622
|
+
export function isPropsEqual(obj0: any, obj1: any): boolean;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
declare module '@fullcalendar/core/util/dom-manip' {
|
|
626
|
+
export function createElement(tagName: string, attrs: object | null, content?: ElementContent): HTMLElement;
|
|
627
|
+
export function htmlToElement(html: string): HTMLElement;
|
|
628
|
+
export function htmlToElements(html: string): HTMLElement[];
|
|
629
|
+
export type ElementContent = string | Node | Node[] | NodeList;
|
|
630
|
+
export function appendToElement(el: HTMLElement, content: ElementContent): void;
|
|
631
|
+
export function prependToElement(parent: HTMLElement, content: ElementContent): void;
|
|
632
|
+
export function insertAfterElement(refEl: HTMLElement, content: ElementContent): void;
|
|
633
|
+
export function removeElement(el: HTMLElement): void;
|
|
634
|
+
export function elementClosest(el: HTMLElement, selector: string): HTMLElement;
|
|
635
|
+
export function elementMatches(el: HTMLElement, selector: string): HTMLElement;
|
|
636
|
+
export function findElements(container: HTMLElement[] | HTMLElement | NodeListOf<HTMLElement>, selector: string): HTMLElement[];
|
|
637
|
+
export function findChildren(parent: HTMLElement[] | HTMLElement, selector?: string): HTMLElement[];
|
|
638
|
+
export function forceClassName(el: HTMLElement, className: string, bool: any): void;
|
|
639
|
+
export function applyStyle(el: HTMLElement, props: object): void;
|
|
640
|
+
export function applyStyleProp(el: HTMLElement, name: string, val: any): void;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
declare module '@fullcalendar/core/structs/event-store' {
|
|
644
|
+
import { EventInput, EventDef, EventDefHash, EventInstanceHash, EventTuple } from '@fullcalendar/core/structs/event';
|
|
645
|
+
import { EventSource } from '@fullcalendar/core/structs/event-source';
|
|
646
|
+
import Calendar from '@fullcalendar/core/Calendar';
|
|
647
|
+
import { DateRange } from '@fullcalendar/core/datelib/date-range';
|
|
648
|
+
export interface EventStore {
|
|
649
|
+
defs: EventDefHash;
|
|
650
|
+
instances: EventInstanceHash;
|
|
651
|
+
}
|
|
652
|
+
export function parseEvents(rawEvents: EventInput[], sourceId: string, calendar: Calendar, allowOpenRange?: boolean): EventStore;
|
|
653
|
+
export function eventTupleToStore(tuple: EventTuple, eventStore?: EventStore): EventStore;
|
|
654
|
+
export function expandRecurring(eventStore: EventStore, framingRange: DateRange, calendar: Calendar): EventStore;
|
|
655
|
+
export function getRelevantEvents(eventStore: EventStore, instanceId: string): EventStore;
|
|
656
|
+
export function transformRawEvents(rawEvents: any, eventSource: EventSource, calendar: Calendar): any;
|
|
657
|
+
export function createEmptyEventStore(): EventStore;
|
|
658
|
+
export function mergeEventStores(store0: EventStore, store1: EventStore): EventStore;
|
|
659
|
+
export function filterEventStoreDefs(eventStore: EventStore, filterFunc: (eventDef: EventDef) => boolean): EventStore;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
declare module '@fullcalendar/core/component/event-ui' {
|
|
663
|
+
import { Constraint, AllowFunc, ConstraintInput } from '@fullcalendar/core/validation';
|
|
664
|
+
import { parseClassName } from '@fullcalendar/core/util/html';
|
|
665
|
+
import Calendar from '@fullcalendar/core/Calendar';
|
|
666
|
+
export interface UnscopedEventUiInput {
|
|
667
|
+
editable?: boolean;
|
|
668
|
+
startEditable?: boolean;
|
|
669
|
+
durationEditable?: boolean;
|
|
670
|
+
constraint?: ConstraintInput;
|
|
671
|
+
overlap?: boolean;
|
|
672
|
+
allow?: AllowFunc;
|
|
673
|
+
className?: string[] | string;
|
|
674
|
+
classNames?: string[] | string;
|
|
675
|
+
backgroundColor?: string;
|
|
676
|
+
borderColor?: string;
|
|
677
|
+
textColor?: string;
|
|
678
|
+
color?: string;
|
|
679
|
+
}
|
|
680
|
+
export interface EventUi {
|
|
681
|
+
startEditable: boolean | null;
|
|
682
|
+
durationEditable: boolean | null;
|
|
683
|
+
constraints: Constraint[];
|
|
684
|
+
overlap: boolean | null;
|
|
685
|
+
allows: AllowFunc[];
|
|
686
|
+
backgroundColor: string;
|
|
687
|
+
borderColor: string;
|
|
688
|
+
textColor: string;
|
|
689
|
+
classNames: string[];
|
|
690
|
+
}
|
|
691
|
+
export type EventUiHash = {
|
|
692
|
+
[defId: string]: EventUi;
|
|
693
|
+
};
|
|
694
|
+
export const UNSCOPED_EVENT_UI_PROPS: {
|
|
695
|
+
editable: BooleanConstructor;
|
|
696
|
+
startEditable: BooleanConstructor;
|
|
697
|
+
durationEditable: BooleanConstructor;
|
|
698
|
+
constraint: any;
|
|
699
|
+
overlap: any;
|
|
700
|
+
allow: any;
|
|
701
|
+
className: typeof parseClassName;
|
|
702
|
+
classNames: typeof parseClassName;
|
|
703
|
+
color: StringConstructor;
|
|
704
|
+
backgroundColor: StringConstructor;
|
|
705
|
+
borderColor: StringConstructor;
|
|
706
|
+
textColor: StringConstructor;
|
|
707
|
+
};
|
|
708
|
+
export function processUnscopedUiProps(rawProps: UnscopedEventUiInput, calendar: Calendar, leftovers?: any): EventUi;
|
|
709
|
+
export function processScopedUiProps(prefix: string, rawScoped: any, calendar: Calendar, leftovers?: any): EventUi;
|
|
710
|
+
export function combineEventUis(uis: EventUi[]): EventUi;
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
declare module '@fullcalendar/core/component/event-splitting' {
|
|
714
|
+
import { EventStore } from '@fullcalendar/core/structs/event-store';
|
|
715
|
+
import { EventDef } from '@fullcalendar/core/structs/event';
|
|
716
|
+
import { EventInteractionState } from '@fullcalendar/core/interactions/event-interaction-state';
|
|
717
|
+
import { EventUiHash, EventUi } from '@fullcalendar/core/component/event-ui';
|
|
718
|
+
import { DateSpan } from '@fullcalendar/core/structs/date-span';
|
|
719
|
+
export interface SplittableProps {
|
|
720
|
+
businessHours: EventStore | null;
|
|
721
|
+
dateSelection: DateSpan | null;
|
|
722
|
+
eventStore: EventStore;
|
|
723
|
+
eventUiBases: EventUiHash;
|
|
724
|
+
eventSelection: string;
|
|
725
|
+
eventDrag: EventInteractionState | null;
|
|
726
|
+
eventResize: EventInteractionState | null;
|
|
727
|
+
}
|
|
728
|
+
export { Splitter as default, Splitter };
|
|
729
|
+
abstract class Splitter<PropsType extends SplittableProps = SplittableProps> {
|
|
730
|
+
abstract getKeyInfo(props: PropsType): {
|
|
731
|
+
[key: string]: {
|
|
732
|
+
ui?: EventUi;
|
|
733
|
+
businessHours?: EventStore;
|
|
734
|
+
};
|
|
735
|
+
};
|
|
736
|
+
abstract getKeysForDateSpan(dateSpan: DateSpan): string[];
|
|
737
|
+
abstract getKeysForEventDef(eventDef: EventDef): string[];
|
|
738
|
+
splitProps(props: PropsType): {
|
|
739
|
+
[key: string]: SplittableProps;
|
|
740
|
+
};
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
declare module '@fullcalendar/core/component/date-rendering' {
|
|
745
|
+
import { DateMarker } from '@fullcalendar/core/datelib/marker';
|
|
746
|
+
import Component, { ComponentContext } from '@fullcalendar/core/component/Component';
|
|
747
|
+
import { DateProfile } from '@fullcalendar/core/DateProfileGenerator';
|
|
748
|
+
export function buildGotoAnchorHtml(component: Component<any>, gotoOptions: any, attrs: any, innerHtml?: any): string;
|
|
749
|
+
export function getAllDayHtml(component: Component<any>): any;
|
|
750
|
+
export function getDayClasses(date: DateMarker, dateProfile: DateProfile, context: ComponentContext, noThemeHighlight?: any): any[];
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
declare module '@fullcalendar/core/util/dom-event' {
|
|
754
|
+
export function preventDefault(ev: any): void;
|
|
755
|
+
export function listenBySelector(container: HTMLElement, eventType: string, selector: string, handler: (ev: Event, matchedTarget: HTMLElement) => void): () => void;
|
|
756
|
+
export function listenToHoverBySelector(container: HTMLElement, selector: string, onMouseEnter: (ev: Event, matchedTarget: HTMLElement) => void, onMouseLeave: (ev: Event, matchedTarget: HTMLElement) => void): () => void;
|
|
757
|
+
export function whenTransitionDone(el: HTMLElement, callback: (ev: Event) => void): void;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
declare module '@fullcalendar/core/util/dom-geom' {
|
|
761
|
+
import { Rect } from '@fullcalendar/core/util/geom';
|
|
762
|
+
export interface EdgeInfo {
|
|
763
|
+
borderLeft: number;
|
|
764
|
+
borderRight: number;
|
|
765
|
+
borderTop: number;
|
|
766
|
+
borderBottom: number;
|
|
767
|
+
scrollbarLeft: number;
|
|
768
|
+
scrollbarRight: number;
|
|
769
|
+
scrollbarBottom: number;
|
|
770
|
+
paddingLeft?: number;
|
|
771
|
+
paddingRight?: number;
|
|
772
|
+
paddingTop?: number;
|
|
773
|
+
paddingBottom?: number;
|
|
774
|
+
}
|
|
775
|
+
export function computeEdges(el: any, getPadding?: boolean): EdgeInfo;
|
|
776
|
+
export function computeInnerRect(el: any, goWithinPadding?: boolean): {
|
|
777
|
+
left: number;
|
|
778
|
+
right: number;
|
|
779
|
+
top: number;
|
|
780
|
+
bottom: number;
|
|
781
|
+
};
|
|
782
|
+
export function computeRect(el: any): Rect;
|
|
783
|
+
export function computeHeightAndMargins(el: HTMLElement): number;
|
|
784
|
+
export function computeVMargins(el: HTMLElement): number;
|
|
785
|
+
export function getClippingParents(el: HTMLElement): HTMLElement[];
|
|
786
|
+
export function computeClippingRect(el: HTMLElement): Rect;
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
declare module '@fullcalendar/core/util/promise' {
|
|
790
|
+
export function unpromisify(func: any, success: any, failure?: any): void;
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
declare module '@fullcalendar/core/common/EmitterMixin' {
|
|
794
|
+
import Mixin from '@fullcalendar/core/common/Mixin';
|
|
795
|
+
export interface EmitterInterface {
|
|
796
|
+
on(types: any, handler: any): any;
|
|
797
|
+
one(types: any, handler: any): any;
|
|
798
|
+
off(types: any, handler: any): any;
|
|
799
|
+
trigger(type: any, ...args: any[]): any;
|
|
800
|
+
triggerWith(type: any, context: any, args: any): any;
|
|
801
|
+
hasHandlers(type: any): any;
|
|
802
|
+
}
|
|
803
|
+
export { EmitterMixin as default, EmitterMixin };
|
|
804
|
+
class EmitterMixin extends Mixin implements EmitterInterface {
|
|
805
|
+
_handlers: any;
|
|
806
|
+
_oneHandlers: any;
|
|
807
|
+
on(type: any, handler: any): this;
|
|
808
|
+
one(type: any, handler: any): this;
|
|
809
|
+
off(type: any, handler?: any): this;
|
|
810
|
+
trigger(type: any, ...args: any[]): this;
|
|
811
|
+
triggerWith(type: any, context: any, args: any): this;
|
|
812
|
+
hasHandlers(type: any): any;
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
declare module '@fullcalendar/core/datelib/date-range' {
|
|
817
|
+
import { DateMarker } from '@fullcalendar/core/datelib/marker';
|
|
818
|
+
import { DateEnv, DateInput } from '@fullcalendar/core/datelib/env';
|
|
819
|
+
export interface DateRangeInput {
|
|
820
|
+
start?: DateInput;
|
|
821
|
+
end?: DateInput;
|
|
822
|
+
}
|
|
823
|
+
export interface OpenDateRange {
|
|
824
|
+
start: DateMarker | null;
|
|
825
|
+
end: DateMarker | null;
|
|
826
|
+
}
|
|
827
|
+
export interface DateRange {
|
|
828
|
+
start: DateMarker;
|
|
829
|
+
end: DateMarker;
|
|
830
|
+
}
|
|
831
|
+
export function parseRange(input: DateRangeInput, dateEnv: DateEnv): OpenDateRange;
|
|
832
|
+
export function invertRanges(ranges: DateRange[], constraintRange: DateRange): DateRange[];
|
|
833
|
+
export function intersectRanges(range0: OpenDateRange, range1: OpenDateRange): OpenDateRange;
|
|
834
|
+
export function rangesEqual(range0: OpenDateRange, range1: OpenDateRange): boolean;
|
|
835
|
+
export function rangesIntersect(range0: OpenDateRange, range1: OpenDateRange): boolean;
|
|
836
|
+
export function rangeContainsRange(outerRange: OpenDateRange, innerRange: OpenDateRange): boolean;
|
|
837
|
+
export function rangeContainsMarker(range: OpenDateRange, date: DateMarker | number): boolean;
|
|
838
|
+
export function constrainMarkerToRange(date: DateMarker, range: DateRange): DateMarker;
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
declare module '@fullcalendar/core/common/Mixin' {
|
|
842
|
+
export { Mixin as default, Mixin };
|
|
843
|
+
class Mixin {
|
|
844
|
+
static mixInto(destClass: any): void;
|
|
845
|
+
static mixIntoObj(destObj: any): void;
|
|
846
|
+
static mixOver(destClass: any): void;
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
|
|
850
|
+
declare module '@fullcalendar/core/common/PositionCache' {
|
|
851
|
+
export { PositionCache as default, PositionCache };
|
|
852
|
+
class PositionCache {
|
|
853
|
+
originClientRect: ClientRect;
|
|
854
|
+
els: HTMLElement[];
|
|
855
|
+
originEl: HTMLElement;
|
|
856
|
+
isHorizontal: boolean;
|
|
857
|
+
isVertical: boolean;
|
|
858
|
+
lefts: any;
|
|
859
|
+
rights: any;
|
|
860
|
+
tops: any;
|
|
861
|
+
bottoms: any;
|
|
862
|
+
constructor(originEl: HTMLElement, els: HTMLElement[], isHorizontal: boolean, isVertical: boolean);
|
|
863
|
+
build(): void;
|
|
864
|
+
buildElHorizontals(originClientLeft: number): void;
|
|
865
|
+
buildElVerticals(originClientTop: number): void;
|
|
866
|
+
leftToIndex(leftPosition: number): any;
|
|
867
|
+
topToIndex(topPosition: number): any;
|
|
868
|
+
getWidth(leftIndex: number): number;
|
|
869
|
+
getHeight(topIndex: number): number;
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
declare module '@fullcalendar/core/common/ScrollComponent' {
|
|
874
|
+
import { ElementScrollController } from '@fullcalendar/core/common/scroll-controller';
|
|
875
|
+
export interface ScrollbarWidths {
|
|
876
|
+
left: number;
|
|
877
|
+
right: number;
|
|
878
|
+
bottom: number;
|
|
879
|
+
}
|
|
880
|
+
export { ScrollComponent as default, ScrollComponent };
|
|
881
|
+
class ScrollComponent extends ElementScrollController {
|
|
882
|
+
overflowX: string;
|
|
883
|
+
overflowY: string;
|
|
884
|
+
constructor(overflowX: string, overflowY: string);
|
|
885
|
+
clear(): void;
|
|
886
|
+
destroy(): void;
|
|
887
|
+
applyOverflow(): void;
|
|
888
|
+
lockOverflow(scrollbarWidths: ScrollbarWidths): void;
|
|
889
|
+
setHeight(height: number | string): void;
|
|
890
|
+
getScrollbarWidths(): ScrollbarWidths;
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
declare module '@fullcalendar/core/common/scroll-controller' {
|
|
895
|
+
export abstract class ScrollController {
|
|
896
|
+
abstract getScrollTop(): number;
|
|
897
|
+
abstract getScrollLeft(): number;
|
|
898
|
+
abstract setScrollTop(top: number): void;
|
|
899
|
+
abstract setScrollLeft(left: number): void;
|
|
900
|
+
abstract getClientWidth(): number;
|
|
901
|
+
abstract getClientHeight(): number;
|
|
902
|
+
abstract getScrollWidth(): number;
|
|
903
|
+
abstract getScrollHeight(): number;
|
|
904
|
+
getMaxScrollTop(): number;
|
|
905
|
+
getMaxScrollLeft(): number;
|
|
906
|
+
canScrollVertically(): boolean;
|
|
907
|
+
canScrollHorizontally(): boolean;
|
|
908
|
+
canScrollUp(): boolean;
|
|
909
|
+
canScrollDown(): boolean;
|
|
910
|
+
canScrollLeft(): boolean;
|
|
911
|
+
canScrollRight(): boolean;
|
|
912
|
+
}
|
|
913
|
+
export class ElementScrollController extends ScrollController {
|
|
914
|
+
el: HTMLElement;
|
|
915
|
+
constructor(el: HTMLElement);
|
|
916
|
+
getScrollTop(): number;
|
|
917
|
+
getScrollLeft(): number;
|
|
918
|
+
setScrollTop(top: number): void;
|
|
919
|
+
setScrollLeft(left: number): void;
|
|
920
|
+
getScrollWidth(): number;
|
|
921
|
+
getScrollHeight(): number;
|
|
922
|
+
getClientHeight(): number;
|
|
923
|
+
getClientWidth(): number;
|
|
924
|
+
}
|
|
925
|
+
export class WindowScrollController extends ScrollController {
|
|
926
|
+
getScrollTop(): number;
|
|
927
|
+
getScrollLeft(): number;
|
|
928
|
+
setScrollTop(n: number): void;
|
|
929
|
+
setScrollLeft(n: number): void;
|
|
930
|
+
getScrollWidth(): number;
|
|
931
|
+
getScrollHeight(): number;
|
|
932
|
+
getClientHeight(): number;
|
|
933
|
+
getClientWidth(): number;
|
|
934
|
+
}
|
|
935
|
+
}
|
|
936
|
+
|
|
937
|
+
declare module '@fullcalendar/core/theme/Theme' {
|
|
938
|
+
export { Theme as default, Theme };
|
|
939
|
+
class Theme {
|
|
940
|
+
calendarOptions: any;
|
|
941
|
+
classes: any;
|
|
942
|
+
iconClasses: any;
|
|
943
|
+
baseIconClass: string;
|
|
944
|
+
iconOverrideOption: any;
|
|
945
|
+
iconOverrideCustomButtonOption: any;
|
|
946
|
+
iconOverridePrefix: string;
|
|
947
|
+
constructor(calendarOptions: any);
|
|
948
|
+
processIconOverride(): void;
|
|
949
|
+
setIconOverride(iconOverrideHash: any): void;
|
|
950
|
+
applyIconOverridePrefix(className: any): any;
|
|
951
|
+
getClass(key: any): any;
|
|
952
|
+
getIconClass(buttonName: any): string;
|
|
953
|
+
getCustomButtonIconClass(customButtonProps: any): string;
|
|
954
|
+
}
|
|
955
|
+
export type ThemeClass = {
|
|
956
|
+
new (calendarOptions: any): Theme;
|
|
957
|
+
};
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
declare module '@fullcalendar/core/component/Component' {
|
|
961
|
+
import Calendar from '@fullcalendar/core/Calendar';
|
|
962
|
+
import View from '@fullcalendar/core/View';
|
|
963
|
+
import Theme from '@fullcalendar/core/theme/Theme';
|
|
964
|
+
import { DateEnv } from '@fullcalendar/core/datelib/env';
|
|
965
|
+
export interface ComponentContext {
|
|
966
|
+
options: any;
|
|
967
|
+
dateEnv: DateEnv;
|
|
968
|
+
theme: Theme;
|
|
969
|
+
calendar: Calendar;
|
|
970
|
+
view: View;
|
|
971
|
+
}
|
|
972
|
+
export type EqualityFuncHash = {
|
|
973
|
+
[propName: string]: (obj0: any, obj1: any) => boolean;
|
|
974
|
+
};
|
|
975
|
+
export { Component as default, Component };
|
|
976
|
+
class Component<PropsType> {
|
|
977
|
+
equalityFuncs: EqualityFuncHash;
|
|
978
|
+
uid: string;
|
|
979
|
+
props: PropsType | null;
|
|
980
|
+
context: ComponentContext;
|
|
981
|
+
dateEnv: DateEnv;
|
|
982
|
+
theme: Theme;
|
|
983
|
+
view: View;
|
|
984
|
+
calendar: Calendar;
|
|
985
|
+
isRtl: boolean;
|
|
986
|
+
constructor(context: ComponentContext, isView?: boolean);
|
|
987
|
+
static addEqualityFuncs(newFuncs: EqualityFuncHash): void;
|
|
988
|
+
opt(name: any): any;
|
|
989
|
+
receiveProps(props: PropsType): void;
|
|
990
|
+
protected render(props: PropsType): void;
|
|
991
|
+
destroy(): void;
|
|
992
|
+
}
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
declare module '@fullcalendar/core/component/DateComponent' {
|
|
996
|
+
import Component, { ComponentContext } from '@fullcalendar/core/component/Component';
|
|
997
|
+
import { EventRenderRange } from '@fullcalendar/core/component/event-rendering';
|
|
998
|
+
import { DateSpan } from '@fullcalendar/core/structs/date-span';
|
|
999
|
+
import { EventInstanceHash } from '@fullcalendar/core/structs/event';
|
|
1000
|
+
import { Hit } from '@fullcalendar/core/interactions/hit';
|
|
1001
|
+
import FgEventRenderer from '@fullcalendar/core/component/renderers/FgEventRenderer';
|
|
1002
|
+
import FillRenderer from '@fullcalendar/core/component/renderers/FillRenderer';
|
|
1003
|
+
import { EventInteractionState } from '@fullcalendar/core/interactions/event-interaction-state';
|
|
1004
|
+
import { EventHandlerName, EventHandlerArgs } from '@fullcalendar/core/types/input-types';
|
|
1005
|
+
export type DateComponentHash = {
|
|
1006
|
+
[uid: string]: DateComponent<any>;
|
|
1007
|
+
};
|
|
1008
|
+
export interface Seg {
|
|
1009
|
+
component?: DateComponent<any>;
|
|
1010
|
+
isStart: boolean;
|
|
1011
|
+
isEnd: boolean;
|
|
1012
|
+
eventRange?: EventRenderRange;
|
|
1013
|
+
el?: HTMLElement;
|
|
1014
|
+
[otherProp: string]: any;
|
|
1015
|
+
}
|
|
1016
|
+
export interface EventSegUiInteractionState {
|
|
1017
|
+
affectedInstances: EventInstanceHash;
|
|
1018
|
+
segs: Seg[];
|
|
1019
|
+
isEvent: boolean;
|
|
1020
|
+
sourceSeg: any;
|
|
1021
|
+
}
|
|
1022
|
+
export { DateComponent as default, DateComponent };
|
|
1023
|
+
class DateComponent<PropsType> extends Component<PropsType> {
|
|
1024
|
+
fgSegSelector: string;
|
|
1025
|
+
bgSegSelector: string;
|
|
1026
|
+
largeUnit: any;
|
|
1027
|
+
eventRenderer: FgEventRenderer;
|
|
1028
|
+
mirrorRenderer: FgEventRenderer;
|
|
1029
|
+
fillRenderer: FillRenderer;
|
|
1030
|
+
el: HTMLElement;
|
|
1031
|
+
constructor(context: ComponentContext, el: HTMLElement, isView?: boolean);
|
|
1032
|
+
destroy(): void;
|
|
1033
|
+
buildPositionCaches(): void;
|
|
1034
|
+
queryHit(positionLeft: number, positionTop: number, elWidth: number, elHeight: number): Hit | null;
|
|
1035
|
+
isInteractionValid(interaction: EventInteractionState): boolean;
|
|
1036
|
+
isDateSelectionValid(selection: DateSpan): boolean;
|
|
1037
|
+
publiclyTrigger<T extends EventHandlerName>(name: T, args?: EventHandlerArgs<T>): any;
|
|
1038
|
+
publiclyTriggerAfterSizing<T extends EventHandlerName>(name: T, args: EventHandlerArgs<T>): void;
|
|
1039
|
+
hasPublicHandlers<T extends EventHandlerName>(name: T): boolean;
|
|
1040
|
+
triggerRenderedSegs(segs: Seg[], isMirrors: boolean): void;
|
|
1041
|
+
triggerWillRemoveSegs(segs: Seg[], isMirrors: boolean): void;
|
|
1042
|
+
isValidSegDownEl(el: HTMLElement): boolean;
|
|
1043
|
+
isValidDateDownEl(el: HTMLElement): boolean;
|
|
1044
|
+
isPopover(): boolean;
|
|
1045
|
+
isInPopover(el: HTMLElement): boolean;
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
declare module '@fullcalendar/core/Calendar' {
|
|
1050
|
+
import { EmitterInterface } from '@fullcalendar/core/common/EmitterMixin';
|
|
1051
|
+
import OptionsManager from '@fullcalendar/core/OptionsManager';
|
|
1052
|
+
import View from '@fullcalendar/core/View';
|
|
1053
|
+
import Theme from '@fullcalendar/core/theme/Theme';
|
|
1054
|
+
import { OptionsInput, EventHandlerName, EventHandlerArgs } from '@fullcalendar/core/types/input-types';
|
|
1055
|
+
import { RawLocaleMap } from '@fullcalendar/core/datelib/locale';
|
|
1056
|
+
import { DateEnv, DateInput } from '@fullcalendar/core/datelib/env';
|
|
1057
|
+
import { DateMarker } from '@fullcalendar/core/datelib/marker';
|
|
1058
|
+
import { Duration, DurationInput } from '@fullcalendar/core/datelib/duration';
|
|
1059
|
+
import { DateSpan, DateSpanApi, DatePointApi } from '@fullcalendar/core/structs/date-span';
|
|
1060
|
+
import { DateRangeInput } from '@fullcalendar/core/datelib/date-range';
|
|
1061
|
+
import DateProfileGenerator from '@fullcalendar/core/DateProfileGenerator';
|
|
1062
|
+
import { EventSourceInput } from '@fullcalendar/core/structs/event-source';
|
|
1063
|
+
import { EventInput } from '@fullcalendar/core/structs/event';
|
|
1064
|
+
import { CalendarState, Action } from '@fullcalendar/core/reducers/types';
|
|
1065
|
+
import EventSourceApi from '@fullcalendar/core/api/EventSourceApi';
|
|
1066
|
+
import EventApi from '@fullcalendar/core/api/EventApi';
|
|
1067
|
+
import { EventStore } from '@fullcalendar/core/structs/event-store';
|
|
1068
|
+
import { EventUiHash, EventUi } from '@fullcalendar/core/component/event-ui';
|
|
1069
|
+
import { ViewSpecHash, ViewSpec } from '@fullcalendar/core/structs/view-spec';
|
|
1070
|
+
import { PluginSystem } from '@fullcalendar/core/plugin-system';
|
|
1071
|
+
import CalendarComponent from '@fullcalendar/core/CalendarComponent';
|
|
1072
|
+
import DateComponent from '@fullcalendar/core/component/DateComponent';
|
|
1073
|
+
import { PointerDragEvent } from '@fullcalendar/core/interactions/pointer';
|
|
1074
|
+
import { InteractionSettingsInput, Interaction } from '@fullcalendar/core/interactions/interaction';
|
|
1075
|
+
export interface DateClickApi extends DatePointApi {
|
|
1076
|
+
dayEl: HTMLElement;
|
|
1077
|
+
jsEvent: UIEvent;
|
|
1078
|
+
view: View;
|
|
1079
|
+
}
|
|
1080
|
+
export interface DateSelectionApi extends DateSpanApi {
|
|
1081
|
+
jsEvent: UIEvent;
|
|
1082
|
+
view: View;
|
|
1083
|
+
}
|
|
1084
|
+
export type DatePointTransform = (dateSpan: DateSpan, calendar: Calendar) => any;
|
|
1085
|
+
export type DateSpanTransform = (dateSpan: DateSpan, calendar: Calendar) => any;
|
|
1086
|
+
export type CalendarInteraction = {
|
|
1087
|
+
destroy(): any;
|
|
1088
|
+
};
|
|
1089
|
+
export type CalendarInteractionClass = {
|
|
1090
|
+
new (calendar: Calendar): CalendarInteraction;
|
|
1091
|
+
};
|
|
1092
|
+
export type OptionChangeHandler = (propValue: any, calendar: Calendar, deepEqual: any) => void;
|
|
1093
|
+
export type OptionChangeHandlerMap = {
|
|
1094
|
+
[propName: string]: OptionChangeHandler;
|
|
1095
|
+
};
|
|
1096
|
+
export { Calendar as default, Calendar };
|
|
1097
|
+
class Calendar {
|
|
1098
|
+
static on: EmitterInterface['on'];
|
|
1099
|
+
static off: EmitterInterface['off'];
|
|
1100
|
+
static trigger: EmitterInterface['trigger'];
|
|
1101
|
+
on: EmitterInterface['on'];
|
|
1102
|
+
one: EmitterInterface['one'];
|
|
1103
|
+
off: EmitterInterface['off'];
|
|
1104
|
+
trigger: EmitterInterface['trigger'];
|
|
1105
|
+
triggerWith: EmitterInterface['triggerWith'];
|
|
1106
|
+
hasHandlers: EmitterInterface['hasHandlers'];
|
|
1107
|
+
eventUiBases: EventUiHash;
|
|
1108
|
+
selectionConfig: EventUi;
|
|
1109
|
+
optionsManager: OptionsManager;
|
|
1110
|
+
viewSpecs: ViewSpecHash;
|
|
1111
|
+
dateProfileGenerators: {
|
|
1112
|
+
[viewName: string]: DateProfileGenerator;
|
|
1113
|
+
};
|
|
1114
|
+
theme: Theme;
|
|
1115
|
+
dateEnv: DateEnv;
|
|
1116
|
+
availableRawLocales: RawLocaleMap;
|
|
1117
|
+
pluginSystem: PluginSystem;
|
|
1118
|
+
defaultAllDayEventDuration: Duration;
|
|
1119
|
+
defaultTimedEventDuration: Duration;
|
|
1120
|
+
calendarInteractions: CalendarInteraction[];
|
|
1121
|
+
interactionsStore: {
|
|
1122
|
+
[componentUid: string]: Interaction[];
|
|
1123
|
+
};
|
|
1124
|
+
removeNavLinkListener: any;
|
|
1125
|
+
windowResizeProxy: any;
|
|
1126
|
+
isHandlingWindowResize: boolean;
|
|
1127
|
+
state: CalendarState;
|
|
1128
|
+
actionQueue: any[];
|
|
1129
|
+
isReducing: boolean;
|
|
1130
|
+
needsRerender: boolean;
|
|
1131
|
+
needsFullRerender: boolean;
|
|
1132
|
+
isRendering: boolean;
|
|
1133
|
+
renderingPauseDepth: number;
|
|
1134
|
+
renderableEventStore: EventStore;
|
|
1135
|
+
buildDelayedRerender: typeof buildDelayedRerender;
|
|
1136
|
+
delayedRerender: any;
|
|
1137
|
+
afterSizingTriggers: any;
|
|
1138
|
+
isViewUpdated: boolean;
|
|
1139
|
+
isDatesUpdated: boolean;
|
|
1140
|
+
isEventsUpdated: boolean;
|
|
1141
|
+
el: HTMLElement;
|
|
1142
|
+
component: CalendarComponent;
|
|
1143
|
+
constructor(el: HTMLElement, overrides?: OptionsInput);
|
|
1144
|
+
addPluginInputs(pluginInputs: any): void;
|
|
1145
|
+
readonly view: View;
|
|
1146
|
+
render(): void;
|
|
1147
|
+
destroy(): void;
|
|
1148
|
+
bindHandlers(): void;
|
|
1149
|
+
unbindHandlers(): void;
|
|
1150
|
+
hydrate(): void;
|
|
1151
|
+
buildInitialState(): CalendarState;
|
|
1152
|
+
reduce(state: CalendarState, action: Action, calendar: Calendar): CalendarState;
|
|
1153
|
+
requestRerender(needsFull?: boolean): void;
|
|
1154
|
+
tryRerender(): void;
|
|
1155
|
+
batchRendering(func: any): void;
|
|
1156
|
+
executeRender(): void;
|
|
1157
|
+
renderComponent(needsFull: any): void;
|
|
1158
|
+
setOption(name: string, val: any): void;
|
|
1159
|
+
getOption(name: string): any;
|
|
1160
|
+
opt(name: string): any;
|
|
1161
|
+
viewOpt(name: string): any;
|
|
1162
|
+
viewOpts(): any;
|
|
1163
|
+
mutateOptions(updates: any, removals: string[], isDynamic?: boolean, deepEqual?: any): void;
|
|
1164
|
+
handleOptions(options: any): void;
|
|
1165
|
+
getAvailableLocaleCodes(): string[];
|
|
1166
|
+
_buildSelectionConfig(rawOpts: any): EventUi;
|
|
1167
|
+
_buildEventUiSingleBase(rawOpts: any): EventUi;
|
|
1168
|
+
hasPublicHandlers<T extends EventHandlerName>(name: T): boolean;
|
|
1169
|
+
publiclyTrigger<T extends EventHandlerName>(name: T, args?: EventHandlerArgs<T>): any;
|
|
1170
|
+
publiclyTriggerAfterSizing<T extends EventHandlerName>(name: T, args: EventHandlerArgs<T>): void;
|
|
1171
|
+
releaseAfterSizingTriggers(): void;
|
|
1172
|
+
isValidViewType(viewType: string): boolean;
|
|
1173
|
+
changeView(viewType: string, dateOrRange?: DateRangeInput | DateInput): void;
|
|
1174
|
+
zoomTo(dateMarker: DateMarker, viewType?: string): void;
|
|
1175
|
+
getUnitViewSpec(unit: string): ViewSpec | null;
|
|
1176
|
+
getInitialDate(): Date;
|
|
1177
|
+
prev(): void;
|
|
1178
|
+
next(): void;
|
|
1179
|
+
prevYear(): void;
|
|
1180
|
+
nextYear(): void;
|
|
1181
|
+
today(): void;
|
|
1182
|
+
gotoDate(zonedDateInput: any): void;
|
|
1183
|
+
incrementDate(deltaInput: any): void;
|
|
1184
|
+
getDate(): Date;
|
|
1185
|
+
formatDate(d: DateInput, formatter: any): string;
|
|
1186
|
+
formatRange(d0: DateInput, d1: DateInput, settings: any): any;
|
|
1187
|
+
formatIso(d: DateInput, omitTime?: boolean): string;
|
|
1188
|
+
windowResize(ev: Event): void;
|
|
1189
|
+
updateSize(): void;
|
|
1190
|
+
registerInteractiveComponent(component: DateComponent<any>, settingsInput: InteractionSettingsInput): void;
|
|
1191
|
+
unregisterInteractiveComponent(component: DateComponent<any>): void;
|
|
1192
|
+
select(dateOrObj: DateInput | any, endDate?: DateInput): void;
|
|
1193
|
+
unselect(pev?: PointerDragEvent): void;
|
|
1194
|
+
triggerDateSelect(selection: DateSpan, pev?: PointerDragEvent): void;
|
|
1195
|
+
triggerDateUnselect(pev?: PointerDragEvent): void;
|
|
1196
|
+
triggerDateClick(dateSpan: DateSpan, dayEl: HTMLElement, view: View, ev: UIEvent): void;
|
|
1197
|
+
buildDatePointApi(dateSpan: DateSpan): import("@fullcalendar/core/structs/date-span").DatePointApi;
|
|
1198
|
+
buildDateSpanApi(dateSpan: DateSpan): import("@fullcalendar/core/structs/date-span").DateSpanApi;
|
|
1199
|
+
getNow(): DateMarker;
|
|
1200
|
+
getDefaultEventEnd(allDay: boolean, marker: DateMarker): DateMarker;
|
|
1201
|
+
addEvent(eventInput: EventInput, sourceInput?: EventSourceApi | string | number): EventApi | null;
|
|
1202
|
+
getEventById(id: string): EventApi | null;
|
|
1203
|
+
getEvents(): EventApi[];
|
|
1204
|
+
removeAllEvents(): void;
|
|
1205
|
+
rerenderEvents(): void;
|
|
1206
|
+
getEventSources(): EventSourceApi[];
|
|
1207
|
+
getEventSourceById(id: string | number): EventSourceApi | null;
|
|
1208
|
+
addEventSource(sourceInput: EventSourceInput): EventSourceApi;
|
|
1209
|
+
removeAllEventSources(): void;
|
|
1210
|
+
refetchEvents(): void;
|
|
1211
|
+
scrollToTime(timeInput: DurationInput): void;
|
|
1212
|
+
}
|
|
1213
|
+
function buildDelayedRerender(this: Calendar, wait: any): any;
|
|
1214
|
+
export {};
|
|
1215
|
+
}
|
|
1216
|
+
|
|
1217
|
+
declare module '@fullcalendar/core/View' {
|
|
1218
|
+
import DateProfileGenerator, { DateProfile } from '@fullcalendar/core/DateProfileGenerator';
|
|
1219
|
+
import { DateMarker } from '@fullcalendar/core/datelib/marker';
|
|
1220
|
+
import { Duration } from '@fullcalendar/core/datelib/duration';
|
|
1221
|
+
import { EmitterInterface } from '@fullcalendar/core/common/EmitterMixin';
|
|
1222
|
+
import { ViewSpec } from '@fullcalendar/core/structs/view-spec';
|
|
1223
|
+
import { ComponentContext } from '@fullcalendar/core/component/Component';
|
|
1224
|
+
import DateComponent from '@fullcalendar/core/component/DateComponent';
|
|
1225
|
+
import { EventStore } from '@fullcalendar/core/structs/event-store';
|
|
1226
|
+
import { EventUiHash, EventUi } from '@fullcalendar/core/component/event-ui';
|
|
1227
|
+
import { EventRenderRange } from '@fullcalendar/core/component/event-rendering';
|
|
1228
|
+
import { DateSpan } from '@fullcalendar/core/structs/date-span';
|
|
1229
|
+
import { EventInteractionState } from '@fullcalendar/core/interactions/event-interaction-state';
|
|
1230
|
+
import { EventDef } from '@fullcalendar/core/structs/event';
|
|
1231
|
+
export interface ViewProps {
|
|
1232
|
+
dateProfile: DateProfile;
|
|
1233
|
+
businessHours: EventStore;
|
|
1234
|
+
eventStore: EventStore;
|
|
1235
|
+
eventUiBases: EventUiHash;
|
|
1236
|
+
dateSelection: DateSpan | null;
|
|
1237
|
+
eventSelection: string;
|
|
1238
|
+
eventDrag: EventInteractionState | null;
|
|
1239
|
+
eventResize: EventInteractionState | null;
|
|
1240
|
+
}
|
|
1241
|
+
export { View as default, View };
|
|
1242
|
+
abstract class View extends DateComponent<ViewProps> {
|
|
1243
|
+
usesMinMaxTime: boolean;
|
|
1244
|
+
dateProfileGeneratorClass: any;
|
|
1245
|
+
on: EmitterInterface['on'];
|
|
1246
|
+
one: EmitterInterface['one'];
|
|
1247
|
+
off: EmitterInterface['off'];
|
|
1248
|
+
trigger: EmitterInterface['trigger'];
|
|
1249
|
+
triggerWith: EmitterInterface['triggerWith'];
|
|
1250
|
+
hasHandlers: EmitterInterface['hasHandlers'];
|
|
1251
|
+
viewSpec: ViewSpec;
|
|
1252
|
+
dateProfileGenerator: DateProfileGenerator;
|
|
1253
|
+
type: string;
|
|
1254
|
+
title: string;
|
|
1255
|
+
queuedScroll: any;
|
|
1256
|
+
eventOrderSpecs: any;
|
|
1257
|
+
nextDayThreshold: Duration;
|
|
1258
|
+
isNowIndicatorRendered: boolean;
|
|
1259
|
+
initialNowDate: DateMarker;
|
|
1260
|
+
initialNowQueriedMs: number;
|
|
1261
|
+
nowIndicatorTimeoutID: any;
|
|
1262
|
+
nowIndicatorIntervalID: any;
|
|
1263
|
+
constructor(context: ComponentContext, viewSpec: ViewSpec, dateProfileGenerator: DateProfileGenerator, parentEl: HTMLElement);
|
|
1264
|
+
initialize(): void;
|
|
1265
|
+
readonly activeStart: Date;
|
|
1266
|
+
readonly activeEnd: Date;
|
|
1267
|
+
readonly currentStart: Date;
|
|
1268
|
+
readonly currentEnd: Date;
|
|
1269
|
+
render(props: ViewProps): void;
|
|
1270
|
+
destroy(): void;
|
|
1271
|
+
updateSize(isResize: boolean, viewHeight: number, isAuto: boolean): void;
|
|
1272
|
+
updateBaseSize(isResize: boolean, viewHeight: number, isAuto: boolean): void;
|
|
1273
|
+
renderDatesWrap(dateProfile: DateProfile): void;
|
|
1274
|
+
unrenderDatesWrap(): void;
|
|
1275
|
+
renderDates(dateProfile: DateProfile): void;
|
|
1276
|
+
unrenderDates(): void;
|
|
1277
|
+
renderBusinessHours(businessHours: EventStore): void;
|
|
1278
|
+
unrenderBusinessHours(): void;
|
|
1279
|
+
renderDateSelectionWrap(selection: DateSpan): void;
|
|
1280
|
+
unrenderDateSelectionWrap(selection: DateSpan): void;
|
|
1281
|
+
renderDateSelection(selection: DateSpan): void;
|
|
1282
|
+
unrenderDateSelection(selection: DateSpan): void;
|
|
1283
|
+
renderEvents(eventStore: EventStore): void;
|
|
1284
|
+
unrenderEvents(): void;
|
|
1285
|
+
sliceEvents(eventStore: EventStore, allDay: boolean): EventRenderRange[];
|
|
1286
|
+
computeEventDraggable(eventDef: EventDef, eventUi: EventUi): boolean;
|
|
1287
|
+
computeEventStartResizable(eventDef: EventDef, eventUi: EventUi): any;
|
|
1288
|
+
computeEventEndResizable(eventDef: EventDef, eventUi: EventUi): boolean;
|
|
1289
|
+
renderEventSelectionWrap(instanceId: string): void;
|
|
1290
|
+
unrenderEventSelectionWrap(instanceId: string): void;
|
|
1291
|
+
renderEventSelection(instanceId: string): void;
|
|
1292
|
+
unrenderEventSelection(instanceId: string): void;
|
|
1293
|
+
renderEventDragWrap(state: EventInteractionState): void;
|
|
1294
|
+
unrenderEventDragWrap(state: EventInteractionState): void;
|
|
1295
|
+
renderEventDrag(state: EventInteractionState): void;
|
|
1296
|
+
unrenderEventDrag(state: EventInteractionState): void;
|
|
1297
|
+
renderEventResizeWrap(state: EventInteractionState): void;
|
|
1298
|
+
unrenderEventResizeWrap(state: EventInteractionState): void;
|
|
1299
|
+
renderEventResize(state: EventInteractionState): void;
|
|
1300
|
+
unrenderEventResize(state: EventInteractionState): void;
|
|
1301
|
+
startNowIndicator(dateProfile: DateProfile): void;
|
|
1302
|
+
updateNowIndicator(): void;
|
|
1303
|
+
stopNowIndicator(): void;
|
|
1304
|
+
getNowIndicatorUnit(dateProfile: DateProfile): void;
|
|
1305
|
+
renderNowIndicator(date: any): void;
|
|
1306
|
+
unrenderNowIndicator(): void;
|
|
1307
|
+
addScroll(scroll: any): void;
|
|
1308
|
+
popScroll(isResize: boolean): void;
|
|
1309
|
+
applyQueuedScroll(isResize: boolean): void;
|
|
1310
|
+
queryScroll(): any;
|
|
1311
|
+
applyScroll(scroll: any, isResize: boolean): void;
|
|
1312
|
+
computeDateScroll(duration: Duration): {};
|
|
1313
|
+
queryDateScroll(): {};
|
|
1314
|
+
applyDateScroll(scroll: any): void;
|
|
1315
|
+
scrollToDuration(duration: Duration): void;
|
|
1316
|
+
}
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
declare module '@fullcalendar/core/component/renderers/FgEventRenderer' {
|
|
1320
|
+
import { DateMarker } from '@fullcalendar/core/datelib/marker';
|
|
1321
|
+
import { DateFormatter } from '@fullcalendar/core/datelib/formatting';
|
|
1322
|
+
import { EventUi } from '@fullcalendar/core/component/event-ui';
|
|
1323
|
+
import { EventRenderRange } from '@fullcalendar/core/component/event-rendering';
|
|
1324
|
+
import { Seg } from '@fullcalendar/core/component/DateComponent';
|
|
1325
|
+
import { ComponentContext } from '@fullcalendar/core/component/Component';
|
|
1326
|
+
export { FgEventRenderer as default, FgEventRenderer };
|
|
1327
|
+
abstract class FgEventRenderer {
|
|
1328
|
+
context: ComponentContext;
|
|
1329
|
+
eventTimeFormat: DateFormatter;
|
|
1330
|
+
displayEventTime: boolean;
|
|
1331
|
+
displayEventEnd: boolean;
|
|
1332
|
+
segs: Seg[];
|
|
1333
|
+
isSizeDirty: boolean;
|
|
1334
|
+
constructor(context: ComponentContext);
|
|
1335
|
+
renderSegs(segs: Seg[], mirrorInfo?: any): void;
|
|
1336
|
+
unrender(_segs: Seg[], mirrorInfo?: any): void;
|
|
1337
|
+
abstract renderSegHtml(seg: Seg, mirrorInfo: any): string;
|
|
1338
|
+
abstract attachSegs(segs: Seg[], mirrorInfo: any): any;
|
|
1339
|
+
abstract detachSegs(segs: Seg[]): any;
|
|
1340
|
+
rangeUpdated(): void;
|
|
1341
|
+
renderSegEls(segs: Seg[], mirrorInfo: any): Seg[];
|
|
1342
|
+
getSegClasses(seg: Seg, isDraggable: any, isResizable: any, mirrorInfo: any): string[];
|
|
1343
|
+
getTimeText(eventRange: EventRenderRange, formatter?: any, displayEnd?: any): any;
|
|
1344
|
+
_getTimeText(start: DateMarker, end: DateMarker, allDay: any, formatter?: any, displayEnd?: any, forcedStartTzo?: number, forcedEndTzo?: number): any;
|
|
1345
|
+
computeEventTimeFormat(): any;
|
|
1346
|
+
computeDisplayEventTime(): boolean;
|
|
1347
|
+
computeDisplayEventEnd(): boolean;
|
|
1348
|
+
getSkinCss(ui: EventUi): {
|
|
1349
|
+
'background-color': string;
|
|
1350
|
+
'border-color': string;
|
|
1351
|
+
color: string;
|
|
1352
|
+
};
|
|
1353
|
+
sortEventSegs(segs: any): Seg[];
|
|
1354
|
+
computeSizes(force: boolean): void;
|
|
1355
|
+
assignSizes(force: boolean): void;
|
|
1356
|
+
computeSegSizes(segs: Seg[]): void;
|
|
1357
|
+
assignSegSizes(segs: Seg[]): void;
|
|
1358
|
+
hideByHash(hash: any): void;
|
|
1359
|
+
showByHash(hash: any): void;
|
|
1360
|
+
selectByInstanceId(instanceId: string): void;
|
|
1361
|
+
unselectByInstanceId(instanceId: string): void;
|
|
1362
|
+
}
|
|
1363
|
+
export function buildSegCompareObj(seg: Seg): any;
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
declare module '@fullcalendar/core/component/renderers/FillRenderer' {
|
|
1367
|
+
import { Seg } from '@fullcalendar/core/component/DateComponent';
|
|
1368
|
+
import { ComponentContext } from '@fullcalendar/core/component/Component';
|
|
1369
|
+
export { FillRenderer as default, FillRenderer };
|
|
1370
|
+
abstract class FillRenderer {
|
|
1371
|
+
context: ComponentContext;
|
|
1372
|
+
fillSegTag: string;
|
|
1373
|
+
containerElsByType: any;
|
|
1374
|
+
segsByType: any;
|
|
1375
|
+
dirtySizeFlags: any;
|
|
1376
|
+
constructor(context: ComponentContext);
|
|
1377
|
+
getSegsByType(type: string): any;
|
|
1378
|
+
renderSegs(type: any, segs: Seg[]): void;
|
|
1379
|
+
unrender(type: any): void;
|
|
1380
|
+
renderSegEls(type: any, segs: Seg[]): Seg[];
|
|
1381
|
+
renderSegHtml(type: any, seg: Seg): string;
|
|
1382
|
+
abstract attachSegs(type: any, segs: Seg[]): HTMLElement[] | void;
|
|
1383
|
+
detachSegs(type: any, segs: Seg[]): void;
|
|
1384
|
+
computeSizes(force: boolean): void;
|
|
1385
|
+
assignSizes(force: boolean): void;
|
|
1386
|
+
computeSegSizes(segs: Seg[]): void;
|
|
1387
|
+
assignSegSizes(segs: Seg[]): void;
|
|
1388
|
+
}
|
|
1389
|
+
}
|
|
1390
|
+
|
|
1391
|
+
declare module '@fullcalendar/core/DateProfileGenerator' {
|
|
1392
|
+
import { DateMarker } from '@fullcalendar/core/datelib/marker';
|
|
1393
|
+
import { Duration } from '@fullcalendar/core/datelib/duration';
|
|
1394
|
+
import { DateRange, OpenDateRange } from '@fullcalendar/core/datelib/date-range';
|
|
1395
|
+
import { ViewSpec } from '@fullcalendar/core/structs/view-spec';
|
|
1396
|
+
import { DateEnv } from '@fullcalendar/core/datelib/env';
|
|
1397
|
+
import Calendar from '@fullcalendar/core/Calendar';
|
|
1398
|
+
export interface DateProfile {
|
|
1399
|
+
currentRange: DateRange;
|
|
1400
|
+
currentRangeUnit: string;
|
|
1401
|
+
isRangeAllDay: boolean;
|
|
1402
|
+
validRange: OpenDateRange;
|
|
1403
|
+
activeRange: DateRange;
|
|
1404
|
+
renderRange: DateRange;
|
|
1405
|
+
minTime: Duration;
|
|
1406
|
+
maxTime: Duration;
|
|
1407
|
+
isValid: boolean;
|
|
1408
|
+
dateIncrement: Duration;
|
|
1409
|
+
}
|
|
1410
|
+
export { DateProfileGenerator as default, DateProfileGenerator };
|
|
1411
|
+
class DateProfileGenerator {
|
|
1412
|
+
viewSpec: ViewSpec;
|
|
1413
|
+
options: any;
|
|
1414
|
+
dateEnv: DateEnv;
|
|
1415
|
+
calendar: Calendar;
|
|
1416
|
+
isHiddenDayHash: boolean[];
|
|
1417
|
+
constructor(viewSpec: ViewSpec, calendar: Calendar);
|
|
1418
|
+
buildPrev(currentDateProfile: DateProfile, currentDate: DateMarker): DateProfile;
|
|
1419
|
+
buildNext(currentDateProfile: DateProfile, currentDate: DateMarker): DateProfile;
|
|
1420
|
+
build(currentDate: DateMarker, direction?: any, forceToValid?: boolean): DateProfile;
|
|
1421
|
+
buildValidRange(): OpenDateRange;
|
|
1422
|
+
buildCurrentRangeInfo(date: DateMarker, direction: any): {
|
|
1423
|
+
duration: any;
|
|
1424
|
+
unit: any;
|
|
1425
|
+
range: any;
|
|
1426
|
+
};
|
|
1427
|
+
getFallbackDuration(): Duration;
|
|
1428
|
+
adjustActiveRange(range: DateRange, minTime: Duration, maxTime: Duration): {
|
|
1429
|
+
start: Date;
|
|
1430
|
+
end: Date;
|
|
1431
|
+
};
|
|
1432
|
+
buildRangeFromDuration(date: DateMarker, direction: any, duration: Duration, unit: any): any;
|
|
1433
|
+
buildRangeFromDayCount(date: DateMarker, direction: any, dayCount: any): {
|
|
1434
|
+
start: Date;
|
|
1435
|
+
end: Date;
|
|
1436
|
+
};
|
|
1437
|
+
buildCustomVisibleRange(date: DateMarker): OpenDateRange;
|
|
1438
|
+
buildRenderRange(currentRange: DateRange, currentRangeUnit: any, isRangeAllDay: any): DateRange;
|
|
1439
|
+
buildDateIncrement(fallback: any): Duration;
|
|
1440
|
+
getRangeOption(name: any, ...otherArgs: any[]): OpenDateRange;
|
|
1441
|
+
initHiddenDays(): void;
|
|
1442
|
+
trimHiddenDays(range: DateRange): DateRange | null;
|
|
1443
|
+
isHiddenDay(day: any): boolean;
|
|
1444
|
+
skipHiddenDays(date: DateMarker, inc?: number, isExclusive?: boolean): Date;
|
|
1445
|
+
}
|
|
1446
|
+
export function isDateProfilesEqual(p0: DateProfile, p1: DateProfile): boolean;
|
|
1447
|
+
}
|
|
1448
|
+
|
|
1449
|
+
declare module '@fullcalendar/core/structs/view-def' {
|
|
1450
|
+
import { ViewClass, ViewConfigHash } from '@fullcalendar/core/structs/view-config';
|
|
1451
|
+
export interface ViewDef {
|
|
1452
|
+
type: string;
|
|
1453
|
+
class: ViewClass;
|
|
1454
|
+
overrides: any;
|
|
1455
|
+
defaults: any;
|
|
1456
|
+
}
|
|
1457
|
+
export type ViewDefHash = {
|
|
1458
|
+
[viewType: string]: ViewDef;
|
|
1459
|
+
};
|
|
1460
|
+
export function compileViewDefs(defaultConfigs: ViewConfigHash, overrideConfigs: ViewConfigHash): ViewDefHash;
|
|
1461
|
+
}
|
|
1462
|
+
|
|
1463
|
+
declare module '@fullcalendar/core/structs/view-spec' {
|
|
1464
|
+
import { Duration } from '@fullcalendar/core/datelib/duration';
|
|
1465
|
+
import OptionsManager from '@fullcalendar/core/OptionsManager';
|
|
1466
|
+
import { ViewConfigInputHash, ViewClass } from '@fullcalendar/core/structs/view-config';
|
|
1467
|
+
export interface ViewSpec {
|
|
1468
|
+
type: string;
|
|
1469
|
+
class: ViewClass;
|
|
1470
|
+
duration: Duration;
|
|
1471
|
+
durationUnit: string;
|
|
1472
|
+
singleUnit: string;
|
|
1473
|
+
options: any;
|
|
1474
|
+
buttonTextOverride: string;
|
|
1475
|
+
buttonTextDefault: string;
|
|
1476
|
+
}
|
|
1477
|
+
export type ViewSpecHash = {
|
|
1478
|
+
[viewType: string]: ViewSpec;
|
|
1479
|
+
};
|
|
1480
|
+
export function buildViewSpecs(defaultInputs: ViewConfigInputHash, optionsManager: OptionsManager): ViewSpecHash;
|
|
1481
|
+
}
|
|
1482
|
+
|
|
1483
|
+
declare module '@fullcalendar/core/structs/date-span' {
|
|
1484
|
+
import { DateRange, OpenDateRange } from '@fullcalendar/core/datelib/date-range';
|
|
1485
|
+
import { DateInput, DateEnv } from '@fullcalendar/core/datelib/env';
|
|
1486
|
+
import { Duration } from '@fullcalendar/core/datelib/duration';
|
|
1487
|
+
import { EventRenderRange } from '@fullcalendar/core/component/event-rendering';
|
|
1488
|
+
import { EventUiHash } from '@fullcalendar/core/component/event-ui';
|
|
1489
|
+
import Calendar from '@fullcalendar/core/Calendar';
|
|
1490
|
+
export interface OpenDateSpanInput {
|
|
1491
|
+
start?: DateInput;
|
|
1492
|
+
end?: DateInput;
|
|
1493
|
+
allDay?: boolean;
|
|
1494
|
+
[otherProp: string]: any;
|
|
1495
|
+
}
|
|
1496
|
+
export interface DateSpanInput extends OpenDateSpanInput {
|
|
1497
|
+
start: DateInput;
|
|
1498
|
+
end: DateInput;
|
|
1499
|
+
}
|
|
1500
|
+
export interface OpenDateSpan {
|
|
1501
|
+
range: OpenDateRange;
|
|
1502
|
+
allDay: boolean;
|
|
1503
|
+
[otherProp: string]: any;
|
|
1504
|
+
}
|
|
1505
|
+
export interface DateSpan extends OpenDateSpan {
|
|
1506
|
+
range: DateRange;
|
|
1507
|
+
}
|
|
1508
|
+
export interface DateSpanApi {
|
|
1509
|
+
start: Date;
|
|
1510
|
+
end: Date;
|
|
1511
|
+
startStr: string;
|
|
1512
|
+
endStr: string;
|
|
1513
|
+
allDay: boolean;
|
|
1514
|
+
}
|
|
1515
|
+
export interface DatePointApi {
|
|
1516
|
+
date: Date;
|
|
1517
|
+
dateStr: string;
|
|
1518
|
+
allDay: boolean;
|
|
1519
|
+
}
|
|
1520
|
+
export function parseDateSpan(raw: DateSpanInput, dateEnv: DateEnv, defaultDuration?: Duration): DateSpan | null;
|
|
1521
|
+
export function parseOpenDateSpan(raw: OpenDateSpanInput, dateEnv: DateEnv): OpenDateSpan | null;
|
|
1522
|
+
export function isDateSpansEqual(span0: DateSpan, span1: DateSpan): boolean;
|
|
1523
|
+
export function buildDateSpanApi(span: DateSpan, dateEnv: DateEnv): DateSpanApi;
|
|
1524
|
+
export function buildDatePointApi(span: DateSpan, dateEnv: DateEnv): DatePointApi;
|
|
1525
|
+
export function fabricateEventRange(dateSpan: DateSpan, eventUiBases: EventUiHash, calendar: Calendar): EventRenderRange;
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
declare module '@fullcalendar/core/datelib/marker' {
|
|
1529
|
+
import { Duration } from '@fullcalendar/core/datelib/duration';
|
|
1530
|
+
export type DateMarker = Date;
|
|
1531
|
+
export const DAY_IDS: string[];
|
|
1532
|
+
export function addWeeks(m: DateMarker, n: number): Date;
|
|
1533
|
+
export function addDays(m: DateMarker, n: number): Date;
|
|
1534
|
+
export function addMs(m: DateMarker, n: number): Date;
|
|
1535
|
+
export function diffWeeks(m0: any, m1: any): number;
|
|
1536
|
+
export function diffDays(m0: any, m1: any): number;
|
|
1537
|
+
export function diffHours(m0: any, m1: any): number;
|
|
1538
|
+
export function diffMinutes(m0: any, m1: any): number;
|
|
1539
|
+
export function diffSeconds(m0: any, m1: any): number;
|
|
1540
|
+
export function diffDayAndTime(m0: DateMarker, m1: DateMarker): Duration;
|
|
1541
|
+
export function diffWholeWeeks(m0: DateMarker, m1: DateMarker): number;
|
|
1542
|
+
export function diffWholeDays(m0: DateMarker, m1: DateMarker): number;
|
|
1543
|
+
export function startOfDay(m: DateMarker): DateMarker;
|
|
1544
|
+
export function startOfHour(m: DateMarker): Date;
|
|
1545
|
+
export function startOfMinute(m: DateMarker): Date;
|
|
1546
|
+
export function startOfSecond(m: DateMarker): Date;
|
|
1547
|
+
export function weekOfYear(marker: any, dow: any, doy: any): number;
|
|
1548
|
+
export function dateToLocalArray(date: any): any[];
|
|
1549
|
+
export function arrayToLocalDate(a: any): Date;
|
|
1550
|
+
export function dateToUtcArray(date: any): any[];
|
|
1551
|
+
export function arrayToUtcDate(a: any): Date;
|
|
1552
|
+
export function isValidDate(m: DateMarker): boolean;
|
|
1553
|
+
export function timeAsMs(m: DateMarker): number;
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1556
|
+
declare module '@fullcalendar/core/datelib/duration' {
|
|
1557
|
+
export type DurationInput = DurationObjectInput | string | number;
|
|
1558
|
+
export interface DurationObjectInput {
|
|
1559
|
+
years?: number;
|
|
1560
|
+
year?: number;
|
|
1561
|
+
months?: number;
|
|
1562
|
+
month?: number;
|
|
1563
|
+
weeks?: number;
|
|
1564
|
+
week?: number;
|
|
1565
|
+
days?: number;
|
|
1566
|
+
day?: number;
|
|
1567
|
+
hours?: number;
|
|
1568
|
+
hour?: number;
|
|
1569
|
+
minutes?: number;
|
|
1570
|
+
minute?: number;
|
|
1571
|
+
seconds?: number;
|
|
1572
|
+
second?: number;
|
|
1573
|
+
milliseconds?: number;
|
|
1574
|
+
millisecond?: number;
|
|
1575
|
+
ms?: number;
|
|
1576
|
+
}
|
|
1577
|
+
export interface Duration {
|
|
1578
|
+
years: number;
|
|
1579
|
+
months: number;
|
|
1580
|
+
days: number;
|
|
1581
|
+
milliseconds: number;
|
|
1582
|
+
}
|
|
1583
|
+
export function createDuration(input: DurationInput, unit?: string): Duration | null;
|
|
1584
|
+
export function getWeeksFromInput(obj: DurationObjectInput): number;
|
|
1585
|
+
export function durationsEqual(d0: Duration, d1: Duration): boolean;
|
|
1586
|
+
export function isSingleDay(dur: Duration): boolean;
|
|
1587
|
+
export function addDurations(d0: Duration, d1: Duration): {
|
|
1588
|
+
years: number;
|
|
1589
|
+
months: number;
|
|
1590
|
+
days: number;
|
|
1591
|
+
milliseconds: number;
|
|
1592
|
+
};
|
|
1593
|
+
export function subtractDurations(d1: Duration, d0: Duration): Duration;
|
|
1594
|
+
export function multiplyDuration(d: Duration, n: number): {
|
|
1595
|
+
years: number;
|
|
1596
|
+
months: number;
|
|
1597
|
+
days: number;
|
|
1598
|
+
milliseconds: number;
|
|
1599
|
+
};
|
|
1600
|
+
export function asRoughYears(dur: Duration): number;
|
|
1601
|
+
export function asRoughMonths(dur: Duration): number;
|
|
1602
|
+
export function asRoughDays(dur: Duration): number;
|
|
1603
|
+
export function asRoughHours(dur: Duration): number;
|
|
1604
|
+
export function asRoughMinutes(dur: Duration): number;
|
|
1605
|
+
export function asRoughSeconds(dur: Duration): number;
|
|
1606
|
+
export function asRoughMs(dur: Duration): number;
|
|
1607
|
+
export function wholeDivideDurations(numerator: Duration, denominator: Duration): number;
|
|
1608
|
+
export function greatestDurationDenominator(dur: Duration, dontReturnWeeks?: boolean): {
|
|
1609
|
+
unit: string;
|
|
1610
|
+
value: number;
|
|
1611
|
+
};
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
declare module '@fullcalendar/core/datelib/env' {
|
|
1615
|
+
import { DateMarker } from '@fullcalendar/core/datelib/marker';
|
|
1616
|
+
import { CalendarSystem } from '@fullcalendar/core/datelib/calendar-system';
|
|
1617
|
+
import { Locale } from '@fullcalendar/core/datelib/locale';
|
|
1618
|
+
import { NamedTimeZoneImpl, NamedTimeZoneImplClass } from '@fullcalendar/core/datelib/timezone';
|
|
1619
|
+
import { Duration } from '@fullcalendar/core/datelib/duration';
|
|
1620
|
+
import { DateFormatter } from '@fullcalendar/core/datelib/formatting';
|
|
1621
|
+
import { CmdFormatterFunc } from '@fullcalendar/core/datelib/formatting-cmd';
|
|
1622
|
+
export interface DateEnvSettings {
|
|
1623
|
+
timeZone: string;
|
|
1624
|
+
namedTimeZoneImpl?: NamedTimeZoneImplClass;
|
|
1625
|
+
calendarSystem: string;
|
|
1626
|
+
locale: Locale;
|
|
1627
|
+
weekNumberCalculation?: any;
|
|
1628
|
+
firstDay?: any;
|
|
1629
|
+
weekLabel?: string;
|
|
1630
|
+
cmdFormatter?: CmdFormatterFunc;
|
|
1631
|
+
}
|
|
1632
|
+
export type DateInput = Date | string | number | number[];
|
|
1633
|
+
export interface DateMarkerMeta {
|
|
1634
|
+
marker: DateMarker;
|
|
1635
|
+
isTimeUnspecified: boolean;
|
|
1636
|
+
forcedTzo: number | null;
|
|
1637
|
+
}
|
|
1638
|
+
export class DateEnv {
|
|
1639
|
+
timeZone: string;
|
|
1640
|
+
namedTimeZoneImpl: NamedTimeZoneImpl;
|
|
1641
|
+
canComputeOffset: boolean;
|
|
1642
|
+
calendarSystem: CalendarSystem;
|
|
1643
|
+
locale: Locale;
|
|
1644
|
+
weekDow: number;
|
|
1645
|
+
weekDoy: number;
|
|
1646
|
+
weekNumberFunc: any;
|
|
1647
|
+
weekLabel: string;
|
|
1648
|
+
cmdFormatter?: CmdFormatterFunc;
|
|
1649
|
+
constructor(settings: DateEnvSettings);
|
|
1650
|
+
createMarker(input: DateInput): DateMarker;
|
|
1651
|
+
createNowMarker(): DateMarker;
|
|
1652
|
+
createMarkerMeta(input: DateInput): DateMarkerMeta;
|
|
1653
|
+
parse(s: string): {
|
|
1654
|
+
marker: Date;
|
|
1655
|
+
isTimeUnspecified: boolean;
|
|
1656
|
+
forcedTzo: any;
|
|
1657
|
+
};
|
|
1658
|
+
getYear(marker: DateMarker): number;
|
|
1659
|
+
getMonth(marker: DateMarker): number;
|
|
1660
|
+
add(marker: DateMarker, dur: Duration): DateMarker;
|
|
1661
|
+
subtract(marker: DateMarker, dur: Duration): DateMarker;
|
|
1662
|
+
addYears(marker: DateMarker, n: number): Date;
|
|
1663
|
+
addMonths(marker: DateMarker, n: number): Date;
|
|
1664
|
+
diffWholeYears(m0: DateMarker, m1: DateMarker): number;
|
|
1665
|
+
diffWholeMonths(m0: DateMarker, m1: DateMarker): number;
|
|
1666
|
+
greatestWholeUnit(m0: DateMarker, m1: DateMarker): {
|
|
1667
|
+
unit: string;
|
|
1668
|
+
value: number;
|
|
1669
|
+
};
|
|
1670
|
+
countDurationsBetween(m0: DateMarker, m1: DateMarker, d: Duration): number;
|
|
1671
|
+
startOf(m: DateMarker, unit: string): Date;
|
|
1672
|
+
startOfYear(m: DateMarker): DateMarker;
|
|
1673
|
+
startOfMonth(m: DateMarker): DateMarker;
|
|
1674
|
+
startOfWeek(m: DateMarker): DateMarker;
|
|
1675
|
+
computeWeekNumber(marker: DateMarker): number;
|
|
1676
|
+
format(marker: DateMarker, formatter: DateFormatter, dateOptions?: {
|
|
1677
|
+
forcedTzo?: number;
|
|
1678
|
+
}): any;
|
|
1679
|
+
formatRange(start: DateMarker, end: DateMarker, formatter: DateFormatter, dateOptions?: {
|
|
1680
|
+
forcedStartTzo?: number;
|
|
1681
|
+
forcedEndTzo?: number;
|
|
1682
|
+
isEndExclusive?: boolean;
|
|
1683
|
+
}): any;
|
|
1684
|
+
formatIso(marker: DateMarker, extraOptions?: any): string;
|
|
1685
|
+
timestampToMarker(ms: number): Date;
|
|
1686
|
+
offsetForMarker(m: DateMarker): number;
|
|
1687
|
+
toDate(m: DateMarker, forcedTzo?: number): Date;
|
|
1688
|
+
}
|
|
1689
|
+
}
|
|
1690
|
+
|
|
1691
|
+
declare module '@fullcalendar/core/datelib/formatting' {
|
|
1692
|
+
import { DateMarker } from '@fullcalendar/core/datelib/marker';
|
|
1693
|
+
import { CalendarSystem } from '@fullcalendar/core/datelib/calendar-system';
|
|
1694
|
+
import { Locale } from '@fullcalendar/core/datelib/locale';
|
|
1695
|
+
import { CmdFormatterFunc } from '@fullcalendar/core/datelib/formatting-cmd';
|
|
1696
|
+
import { FuncFormatterFunc } from '@fullcalendar/core/datelib/formatting-func';
|
|
1697
|
+
export interface ZonedMarker {
|
|
1698
|
+
marker: DateMarker;
|
|
1699
|
+
timeZoneOffset: number;
|
|
1700
|
+
}
|
|
1701
|
+
export interface ExpandedZonedMarker extends ZonedMarker {
|
|
1702
|
+
array: number[];
|
|
1703
|
+
year: number;
|
|
1704
|
+
month: number;
|
|
1705
|
+
day: number;
|
|
1706
|
+
hour: number;
|
|
1707
|
+
minute: number;
|
|
1708
|
+
second: number;
|
|
1709
|
+
millisecond: number;
|
|
1710
|
+
}
|
|
1711
|
+
export interface VerboseFormattingArg {
|
|
1712
|
+
date: ExpandedZonedMarker;
|
|
1713
|
+
start: ExpandedZonedMarker;
|
|
1714
|
+
end?: ExpandedZonedMarker;
|
|
1715
|
+
timeZone: string;
|
|
1716
|
+
localeCodes: string[];
|
|
1717
|
+
separator: string;
|
|
1718
|
+
}
|
|
1719
|
+
export interface DateFormattingContext {
|
|
1720
|
+
timeZone: string;
|
|
1721
|
+
locale: Locale;
|
|
1722
|
+
calendarSystem: CalendarSystem;
|
|
1723
|
+
computeWeekNumber: (d: DateMarker) => number;
|
|
1724
|
+
weekLabel: string;
|
|
1725
|
+
cmdFormatter?: CmdFormatterFunc;
|
|
1726
|
+
}
|
|
1727
|
+
export interface DateFormatter {
|
|
1728
|
+
format(date: ZonedMarker, context: DateFormattingContext): any;
|
|
1729
|
+
formatRange(start: ZonedMarker, end: ZonedMarker, context: DateFormattingContext): any;
|
|
1730
|
+
}
|
|
1731
|
+
export type FormatterInput = object | string | FuncFormatterFunc;
|
|
1732
|
+
export function createFormatter(input: FormatterInput, defaultSeparator?: string): DateFormatter;
|
|
1733
|
+
export function buildIsoString(marker: DateMarker, timeZoneOffset?: number, stripZeroTime?: boolean): string;
|
|
1734
|
+
export function formatIsoTimeString(marker: DateMarker): string;
|
|
1735
|
+
export function formatTimeZoneOffset(minutes: number, doIso?: boolean): string;
|
|
1736
|
+
export function createVerboseFormattingArg(start: ZonedMarker, end: ZonedMarker, context: DateFormattingContext, separator?: string): VerboseFormattingArg;
|
|
1737
|
+
}
|
|
1738
|
+
|
|
1739
|
+
declare module '@fullcalendar/core/datelib/timezone' {
|
|
1740
|
+
export abstract class NamedTimeZoneImpl {
|
|
1741
|
+
timeZoneName: string;
|
|
1742
|
+
constructor(timeZoneName: string);
|
|
1743
|
+
abstract offsetForArray(a: number[]): number;
|
|
1744
|
+
abstract timestampToArray(ms: number): number[];
|
|
1745
|
+
}
|
|
1746
|
+
export type NamedTimeZoneImplClass = {
|
|
1747
|
+
new (timeZoneName: string): NamedTimeZoneImpl;
|
|
1748
|
+
};
|
|
1749
|
+
}
|
|
1750
|
+
|
|
1751
|
+
declare module '@fullcalendar/core/datelib/parsing' {
|
|
1752
|
+
export function parse(str: any): {
|
|
1753
|
+
marker: Date;
|
|
1754
|
+
isTimeUnspecified: boolean;
|
|
1755
|
+
timeZoneOffset: any;
|
|
1756
|
+
};
|
|
1757
|
+
}
|
|
1758
|
+
|
|
1759
|
+
declare module '@fullcalendar/core/structs/event-source' {
|
|
1760
|
+
import { EventInput } from '@fullcalendar/core/structs/event';
|
|
1761
|
+
import Calendar from '@fullcalendar/core/Calendar';
|
|
1762
|
+
import { DateRange } from '@fullcalendar/core/datelib/date-range';
|
|
1763
|
+
import { EventSourceFunc } from '@fullcalendar/core/event-sources/func-event-source';
|
|
1764
|
+
import { EventUi } from '@fullcalendar/core/component/event-ui';
|
|
1765
|
+
import { ConstraintInput, AllowFunc } from '@fullcalendar/core/validation';
|
|
1766
|
+
export type EventSourceError = {
|
|
1767
|
+
message: string;
|
|
1768
|
+
response?: any;
|
|
1769
|
+
[otherProp: string]: any;
|
|
1770
|
+
};
|
|
1771
|
+
export type EventInputTransformer = (eventInput: EventInput) => EventInput | null;
|
|
1772
|
+
export type EventSourceSuccessResponseHandler = (rawData: any, response: any) => EventInput[] | void;
|
|
1773
|
+
export type EventSourceErrorResponseHandler = (error: EventSourceError) => void;
|
|
1774
|
+
export interface ExtendedEventSourceInput {
|
|
1775
|
+
id?: string | number;
|
|
1776
|
+
allDayDefault?: boolean;
|
|
1777
|
+
eventDataTransform?: EventInputTransformer;
|
|
1778
|
+
events?: EventInput[] | EventSourceFunc;
|
|
1779
|
+
url?: string;
|
|
1780
|
+
method?: string;
|
|
1781
|
+
extraParams?: object | (() => object);
|
|
1782
|
+
startParam?: string;
|
|
1783
|
+
endParam?: string;
|
|
1784
|
+
timeZoneParam?: string;
|
|
1785
|
+
success?: EventSourceSuccessResponseHandler;
|
|
1786
|
+
failure?: EventSourceErrorResponseHandler;
|
|
1787
|
+
editable?: boolean;
|
|
1788
|
+
startEditable?: boolean;
|
|
1789
|
+
durationEditable?: boolean;
|
|
1790
|
+
constraint?: ConstraintInput;
|
|
1791
|
+
overlap?: boolean;
|
|
1792
|
+
allow?: AllowFunc;
|
|
1793
|
+
className?: string[] | string;
|
|
1794
|
+
classNames?: string[] | string;
|
|
1795
|
+
backgroundColor?: string;
|
|
1796
|
+
borderColor?: string;
|
|
1797
|
+
textColor?: string;
|
|
1798
|
+
color?: string;
|
|
1799
|
+
[otherProp: string]: any;
|
|
1800
|
+
}
|
|
1801
|
+
export type EventSourceInput = ExtendedEventSourceInput | // object in extended form
|
|
1802
|
+
EventSourceFunc | // just a function
|
|
1803
|
+
string;
|
|
1804
|
+
export interface EventSource {
|
|
1805
|
+
_raw: any;
|
|
1806
|
+
sourceId: string;
|
|
1807
|
+
sourceDefId: number;
|
|
1808
|
+
meta: any;
|
|
1809
|
+
publicId: string;
|
|
1810
|
+
isFetching: boolean;
|
|
1811
|
+
latestFetchId: string;
|
|
1812
|
+
fetchRange: DateRange | null;
|
|
1813
|
+
allDayDefault: boolean | null;
|
|
1814
|
+
eventDataTransform: EventInputTransformer;
|
|
1815
|
+
ui: EventUi;
|
|
1816
|
+
success: EventSourceSuccessResponseHandler | null;
|
|
1817
|
+
failure: EventSourceErrorResponseHandler | null;
|
|
1818
|
+
extendedProps: any;
|
|
1819
|
+
}
|
|
1820
|
+
export type EventSourceHash = {
|
|
1821
|
+
[sourceId: string]: EventSource;
|
|
1822
|
+
};
|
|
1823
|
+
export type EventSourceFetcher = (arg: {
|
|
1824
|
+
eventSource: EventSource;
|
|
1825
|
+
calendar: Calendar;
|
|
1826
|
+
range: DateRange;
|
|
1827
|
+
}, success: (res: {
|
|
1828
|
+
rawEvents: EventInput[];
|
|
1829
|
+
xhr?: XMLHttpRequest;
|
|
1830
|
+
}) => void, failure: (error: EventSourceError) => void) => (void | PromiseLike<EventInput[]>);
|
|
1831
|
+
export interface EventSourceDef {
|
|
1832
|
+
ignoreRange?: boolean;
|
|
1833
|
+
parseMeta: (raw: EventSourceInput) => object | null;
|
|
1834
|
+
fetch: EventSourceFetcher;
|
|
1835
|
+
}
|
|
1836
|
+
export function doesSourceNeedRange(eventSource: EventSource, calendar: Calendar): boolean;
|
|
1837
|
+
export function parseEventSource(raw: EventSourceInput, calendar: Calendar): EventSource | null;
|
|
1838
|
+
}
|
|
1839
|
+
|
|
1840
|
+
declare module '@fullcalendar/core/interactions/interaction' {
|
|
1841
|
+
import DateComponent from '@fullcalendar/core/component/DateComponent';
|
|
1842
|
+
export abstract class Interaction {
|
|
1843
|
+
component: DateComponent<any>;
|
|
1844
|
+
constructor(settings: InteractionSettings);
|
|
1845
|
+
destroy(): void;
|
|
1846
|
+
}
|
|
1847
|
+
export type InteractionClass = {
|
|
1848
|
+
new (settings: InteractionSettings): Interaction;
|
|
1849
|
+
};
|
|
1850
|
+
export interface InteractionSettingsInput {
|
|
1851
|
+
el: HTMLElement;
|
|
1852
|
+
useEventCenter?: boolean;
|
|
1853
|
+
}
|
|
1854
|
+
export interface InteractionSettings {
|
|
1855
|
+
component: DateComponent<any>;
|
|
1856
|
+
el: HTMLElement;
|
|
1857
|
+
useEventCenter: boolean;
|
|
1858
|
+
}
|
|
1859
|
+
export type InteractionSettingsStore = {
|
|
1860
|
+
[componenUid: string]: InteractionSettings;
|
|
1861
|
+
};
|
|
1862
|
+
export function parseInteractionSettings(component: DateComponent<any>, input: InteractionSettingsInput): InteractionSettings;
|
|
1863
|
+
export function interactionSettingsToStore(settings: InteractionSettings): {
|
|
1864
|
+
[x: string]: InteractionSettings;
|
|
1865
|
+
};
|
|
1866
|
+
export let interactionSettingsStore: InteractionSettingsStore;
|
|
1867
|
+
}
|
|
1868
|
+
|
|
1869
|
+
declare module '@fullcalendar/core/interactions/pointer' {
|
|
1870
|
+
export interface PointerDragEvent {
|
|
1871
|
+
origEvent: UIEvent;
|
|
1872
|
+
isTouch: boolean;
|
|
1873
|
+
subjectEl: EventTarget;
|
|
1874
|
+
pageX: number;
|
|
1875
|
+
pageY: number;
|
|
1876
|
+
deltaX: number;
|
|
1877
|
+
deltaY: number;
|
|
1878
|
+
}
|
|
1879
|
+
}
|
|
1880
|
+
|
|
1881
|
+
declare module '@fullcalendar/core/interactions/hit' {
|
|
1882
|
+
import DateComponent from '@fullcalendar/core/component/DateComponent';
|
|
1883
|
+
import { DateSpan } from '@fullcalendar/core/structs/date-span';
|
|
1884
|
+
import { Rect } from '@fullcalendar/core/util/geom';
|
|
1885
|
+
export interface Hit {
|
|
1886
|
+
component: DateComponent<any>;
|
|
1887
|
+
dateSpan: DateSpan;
|
|
1888
|
+
dayEl: HTMLElement;
|
|
1889
|
+
rect: Rect;
|
|
1890
|
+
layer: number;
|
|
1891
|
+
}
|
|
1892
|
+
}
|
|
1893
|
+
|
|
1894
|
+
declare module '@fullcalendar/core/interactions/date-selecting' {
|
|
1895
|
+
import { Hit } from '@fullcalendar/core/interactions/hit';
|
|
1896
|
+
export type dateSelectionJoinTransformer = (hit0: Hit, hit1: Hit) => any;
|
|
1897
|
+
}
|
|
1898
|
+
|
|
1899
|
+
declare module '@fullcalendar/core/interactions/event-dragging' {
|
|
1900
|
+
import Calendar from '@fullcalendar/core/Calendar';
|
|
1901
|
+
import { EventMutation } from '@fullcalendar/core/structs/event-mutation';
|
|
1902
|
+
import { Hit } from '@fullcalendar/core/interactions/hit';
|
|
1903
|
+
import { EventDef } from '@fullcalendar/core/structs/event';
|
|
1904
|
+
import { EventUi } from '@fullcalendar/core/component/event-ui';
|
|
1905
|
+
import { View } from '@fullcalendar/core';
|
|
1906
|
+
export type eventDragMutationMassager = (mutation: EventMutation, hit0: Hit, hit1: Hit) => void;
|
|
1907
|
+
export type EventDropTransformers = (mutation: EventMutation, calendar: Calendar) => any;
|
|
1908
|
+
export type eventIsDraggableTransformer = (val: boolean, eventDef: EventDef, eventUi: EventUi, view: View) => boolean;
|
|
1909
|
+
}
|
|
1910
|
+
|
|
1911
|
+
declare module '@fullcalendar/core/interactions/event-resizing' {
|
|
1912
|
+
import { Hit } from '@fullcalendar/core/interactions/hit';
|
|
1913
|
+
export type EventResizeJoinTransforms = (hit0: Hit, hit1: Hit) => false | object;
|
|
1914
|
+
}
|
|
1915
|
+
|
|
1916
|
+
declare module '@fullcalendar/core/interactions/ElementDragging' {
|
|
1917
|
+
import EmitterMixin from '@fullcalendar/core/common/EmitterMixin';
|
|
1918
|
+
export { ElementDragging as default, ElementDragging };
|
|
1919
|
+
abstract class ElementDragging {
|
|
1920
|
+
emitter: EmitterMixin;
|
|
1921
|
+
constructor(el: HTMLElement);
|
|
1922
|
+
destroy(): void;
|
|
1923
|
+
abstract setIgnoreMove(bool: boolean): void;
|
|
1924
|
+
setMirrorIsVisible(bool: boolean): void;
|
|
1925
|
+
setMirrorNeedsRevert(bool: boolean): void;
|
|
1926
|
+
setAutoScrollEnabled(bool: boolean): void;
|
|
1927
|
+
}
|
|
1928
|
+
export type ElementDraggingClass = {
|
|
1929
|
+
new (el: HTMLElement): ElementDragging;
|
|
1930
|
+
};
|
|
1931
|
+
}
|
|
1932
|
+
|
|
1933
|
+
declare module '@fullcalendar/core/formatting-api' {
|
|
1934
|
+
import { DateInput } from '@fullcalendar/core/datelib/env';
|
|
1935
|
+
export function formatDate(dateInput: DateInput, settings?: {}): any;
|
|
1936
|
+
export function formatRange(startInput: DateInput, endInput: DateInput, settings: any): any;
|
|
1937
|
+
}
|
|
1938
|
+
|
|
1939
|
+
declare module '@fullcalendar/core/options' {
|
|
1940
|
+
import { PluginDef } from '@fullcalendar/core/plugin-system';
|
|
1941
|
+
export const config: any;
|
|
1942
|
+
export const globalDefaults: {
|
|
1943
|
+
defaultRangeSeparator: string;
|
|
1944
|
+
titleRangeSeparator: string;
|
|
1945
|
+
defaultTimedEventDuration: string;
|
|
1946
|
+
defaultAllDayEventDuration: {
|
|
1947
|
+
day: number;
|
|
1948
|
+
};
|
|
1949
|
+
forceEventDuration: boolean;
|
|
1950
|
+
nextDayThreshold: string;
|
|
1951
|
+
columnHeader: boolean;
|
|
1952
|
+
defaultView: string;
|
|
1953
|
+
aspectRatio: number;
|
|
1954
|
+
header: {
|
|
1955
|
+
left: string;
|
|
1956
|
+
center: string;
|
|
1957
|
+
right: string;
|
|
1958
|
+
};
|
|
1959
|
+
weekends: boolean;
|
|
1960
|
+
weekNumbers: boolean;
|
|
1961
|
+
weekNumberCalculation: string;
|
|
1962
|
+
editable: boolean;
|
|
1963
|
+
scrollTime: string;
|
|
1964
|
+
minTime: string;
|
|
1965
|
+
maxTime: string;
|
|
1966
|
+
showNonCurrentDates: boolean;
|
|
1967
|
+
lazyFetching: boolean;
|
|
1968
|
+
startParam: string;
|
|
1969
|
+
endParam: string;
|
|
1970
|
+
timeZoneParam: string;
|
|
1971
|
+
timeZone: string;
|
|
1972
|
+
locales: any[];
|
|
1973
|
+
locale: string;
|
|
1974
|
+
timeGridEventMinHeight: number;
|
|
1975
|
+
themeSystem: string;
|
|
1976
|
+
dragRevertDuration: number;
|
|
1977
|
+
dragScroll: boolean;
|
|
1978
|
+
allDayMaintainDuration: boolean;
|
|
1979
|
+
unselectAuto: boolean;
|
|
1980
|
+
dropAccept: string;
|
|
1981
|
+
eventOrder: string;
|
|
1982
|
+
eventLimit: boolean;
|
|
1983
|
+
eventLimitClick: string;
|
|
1984
|
+
dayPopoverFormat: {
|
|
1985
|
+
month: string;
|
|
1986
|
+
day: string;
|
|
1987
|
+
year: string;
|
|
1988
|
+
};
|
|
1989
|
+
handleWindowResize: boolean;
|
|
1990
|
+
windowResizeDelay: number;
|
|
1991
|
+
longPressDelay: number;
|
|
1992
|
+
eventDragMinDistance: number;
|
|
1993
|
+
};
|
|
1994
|
+
export const rtlDefaults: {
|
|
1995
|
+
header: {
|
|
1996
|
+
left: string;
|
|
1997
|
+
center: string;
|
|
1998
|
+
right: string;
|
|
1999
|
+
};
|
|
2000
|
+
buttonIcons: {
|
|
2001
|
+
prev: string;
|
|
2002
|
+
next: string;
|
|
2003
|
+
prevYear: string;
|
|
2004
|
+
nextYear: string;
|
|
2005
|
+
};
|
|
2006
|
+
};
|
|
2007
|
+
export function mergeOptions(optionObjs: any): any;
|
|
2008
|
+
export function refinePluginDefs(pluginInputs: any[]): PluginDef[];
|
|
2009
|
+
}
|
|
2010
|
+
|
|
2011
|
+
declare module '@fullcalendar/core/structs/recurring-event' {
|
|
2012
|
+
import { EventInput, EventDef } from '@fullcalendar/core/structs/event';
|
|
2013
|
+
import { DateRange } from '@fullcalendar/core/datelib/date-range';
|
|
2014
|
+
import { DateEnv } from '@fullcalendar/core/datelib/env';
|
|
2015
|
+
import { Duration } from '@fullcalendar/core/datelib/duration';
|
|
2016
|
+
import { DateMarker } from '@fullcalendar/core/datelib/marker';
|
|
2017
|
+
export interface ParsedRecurring {
|
|
2018
|
+
typeData: any;
|
|
2019
|
+
allDayGuess: boolean | null;
|
|
2020
|
+
duration: Duration | null;
|
|
2021
|
+
}
|
|
2022
|
+
export interface RecurringType {
|
|
2023
|
+
parse: (rawEvent: EventInput, leftoverProps: any, dateEnv: DateEnv) => ParsedRecurring | null;
|
|
2024
|
+
expand: (typeData: any, framingRange: DateRange, dateEnv: DateEnv) => DateMarker[];
|
|
2025
|
+
}
|
|
2026
|
+
export function parseRecurring(eventInput: EventInput, allDayDefault: boolean | null, dateEnv: DateEnv, recurringTypes: RecurringType[], leftovers: any): {
|
|
2027
|
+
allDay: any;
|
|
2028
|
+
duration: Duration;
|
|
2029
|
+
typeData: any;
|
|
2030
|
+
typeId: number;
|
|
2031
|
+
};
|
|
2032
|
+
export function expandRecurringRanges(eventDef: EventDef, duration: Duration, framingRange: DateRange, dateEnv: DateEnv, recurringTypes: RecurringType[]): DateMarker[];
|
|
2033
|
+
}
|
|
2034
|
+
|
|
2035
|
+
declare module '@fullcalendar/core/structs/drag-meta' {
|
|
2036
|
+
import { Duration, DurationInput } from '@fullcalendar/core/datelib/duration';
|
|
2037
|
+
import { EventNonDateInput } from '@fullcalendar/core/structs/event';
|
|
2038
|
+
export interface DragMetaInput extends EventNonDateInput {
|
|
2039
|
+
startTime?: DurationInput;
|
|
2040
|
+
duration?: DurationInput;
|
|
2041
|
+
create?: boolean;
|
|
2042
|
+
sourceId?: string;
|
|
2043
|
+
}
|
|
2044
|
+
export interface DragMeta {
|
|
2045
|
+
startTime: Duration | null;
|
|
2046
|
+
duration: Duration | null;
|
|
2047
|
+
create: boolean;
|
|
2048
|
+
sourceId: string;
|
|
2049
|
+
leftoverProps: object;
|
|
2050
|
+
}
|
|
2051
|
+
export function parseDragMeta(raw: DragMetaInput): DragMeta;
|
|
2052
|
+
}
|
|
2053
|
+
|
|
2054
|
+
declare module '@fullcalendar/core/plugin-system' {
|
|
2055
|
+
import { reducerFunc } from '@fullcalendar/core/reducers/types';
|
|
2056
|
+
import { eventDefParserFunc } from '@fullcalendar/core/structs/event';
|
|
2057
|
+
import { eventDefMutationApplier } from '@fullcalendar/core/structs/event-mutation';
|
|
2058
|
+
import Calendar, { DatePointTransform, DateSpanTransform, CalendarInteractionClass, OptionChangeHandlerMap } from '@fullcalendar/core/Calendar';
|
|
2059
|
+
import { ViewConfigInputHash } from '@fullcalendar/core/structs/view-config';
|
|
2060
|
+
import { ViewSpec } from '@fullcalendar/core/structs/view-spec';
|
|
2061
|
+
import View, { ViewProps } from '@fullcalendar/core/View';
|
|
2062
|
+
import { CalendarComponentProps } from '@fullcalendar/core/CalendarComponent';
|
|
2063
|
+
import { isPropsValidTester } from '@fullcalendar/core/validation';
|
|
2064
|
+
import { eventDragMutationMassager, eventIsDraggableTransformer, EventDropTransformers } from '@fullcalendar/core/interactions/event-dragging';
|
|
2065
|
+
import { dateSelectionJoinTransformer } from '@fullcalendar/core/interactions/date-selecting';
|
|
2066
|
+
import { EventResizeJoinTransforms } from '@fullcalendar/core/interactions/event-resizing';
|
|
2067
|
+
import { ExternalDefTransform } from '@fullcalendar/core/interactions/external-element-dragging';
|
|
2068
|
+
import { InteractionClass } from '@fullcalendar/core/interactions/interaction';
|
|
2069
|
+
import { ThemeClass } from '@fullcalendar/core/theme/Theme';
|
|
2070
|
+
import { EventSourceDef } from '@fullcalendar/core/structs/event-source';
|
|
2071
|
+
import { CmdFormatterFunc } from '@fullcalendar/core/datelib/formatting-cmd';
|
|
2072
|
+
import { RecurringType } from '@fullcalendar/core/structs/recurring-event';
|
|
2073
|
+
import { NamedTimeZoneImplClass } from '@fullcalendar/core/datelib/timezone';
|
|
2074
|
+
import { ElementDraggingClass } from '@fullcalendar/core/interactions/ElementDragging';
|
|
2075
|
+
export interface PluginDefInput {
|
|
2076
|
+
deps?: PluginDef[];
|
|
2077
|
+
reducers?: reducerFunc[];
|
|
2078
|
+
eventDefParsers?: eventDefParserFunc[];
|
|
2079
|
+
isDraggableTransformers?: eventIsDraggableTransformer[];
|
|
2080
|
+
eventDragMutationMassagers?: eventDragMutationMassager[];
|
|
2081
|
+
eventDefMutationAppliers?: eventDefMutationApplier[];
|
|
2082
|
+
dateSelectionTransformers?: dateSelectionJoinTransformer[];
|
|
2083
|
+
datePointTransforms?: DatePointTransform[];
|
|
2084
|
+
dateSpanTransforms?: DateSpanTransform[];
|
|
2085
|
+
views?: ViewConfigInputHash;
|
|
2086
|
+
viewPropsTransformers?: ViewPropsTransformerClass[];
|
|
2087
|
+
isPropsValid?: isPropsValidTester;
|
|
2088
|
+
externalDefTransforms?: ExternalDefTransform[];
|
|
2089
|
+
eventResizeJoinTransforms?: EventResizeJoinTransforms[];
|
|
2090
|
+
viewContainerModifiers?: ViewContainerModifier[];
|
|
2091
|
+
eventDropTransformers?: EventDropTransformers[];
|
|
2092
|
+
componentInteractions?: InteractionClass[];
|
|
2093
|
+
calendarInteractions?: CalendarInteractionClass[];
|
|
2094
|
+
themeClasses?: {
|
|
2095
|
+
[themeSystemName: string]: ThemeClass;
|
|
2096
|
+
};
|
|
2097
|
+
eventSourceDefs?: EventSourceDef[];
|
|
2098
|
+
cmdFormatter?: CmdFormatterFunc;
|
|
2099
|
+
recurringTypes?: RecurringType[];
|
|
2100
|
+
namedTimeZonedImpl?: NamedTimeZoneImplClass;
|
|
2101
|
+
defaultView?: string;
|
|
2102
|
+
elementDraggingImpl?: ElementDraggingClass;
|
|
2103
|
+
optionChangeHandlers?: OptionChangeHandlerMap;
|
|
2104
|
+
}
|
|
2105
|
+
export interface PluginHooks {
|
|
2106
|
+
reducers: reducerFunc[];
|
|
2107
|
+
eventDefParsers: eventDefParserFunc[];
|
|
2108
|
+
isDraggableTransformers: eventIsDraggableTransformer[];
|
|
2109
|
+
eventDragMutationMassagers: eventDragMutationMassager[];
|
|
2110
|
+
eventDefMutationAppliers: eventDefMutationApplier[];
|
|
2111
|
+
dateSelectionTransformers: dateSelectionJoinTransformer[];
|
|
2112
|
+
datePointTransforms: DatePointTransform[];
|
|
2113
|
+
dateSpanTransforms: DateSpanTransform[];
|
|
2114
|
+
views: ViewConfigInputHash;
|
|
2115
|
+
viewPropsTransformers: ViewPropsTransformerClass[];
|
|
2116
|
+
isPropsValid: isPropsValidTester | null;
|
|
2117
|
+
externalDefTransforms: ExternalDefTransform[];
|
|
2118
|
+
eventResizeJoinTransforms: EventResizeJoinTransforms[];
|
|
2119
|
+
viewContainerModifiers: ViewContainerModifier[];
|
|
2120
|
+
eventDropTransformers: EventDropTransformers[];
|
|
2121
|
+
componentInteractions: InteractionClass[];
|
|
2122
|
+
calendarInteractions: CalendarInteractionClass[];
|
|
2123
|
+
themeClasses: {
|
|
2124
|
+
[themeSystemName: string]: ThemeClass;
|
|
2125
|
+
};
|
|
2126
|
+
eventSourceDefs: EventSourceDef[];
|
|
2127
|
+
cmdFormatter?: CmdFormatterFunc;
|
|
2128
|
+
recurringTypes: RecurringType[];
|
|
2129
|
+
namedTimeZonedImpl?: NamedTimeZoneImplClass;
|
|
2130
|
+
defaultView: string;
|
|
2131
|
+
elementDraggingImpl?: ElementDraggingClass;
|
|
2132
|
+
optionChangeHandlers: OptionChangeHandlerMap;
|
|
2133
|
+
}
|
|
2134
|
+
export interface PluginDef extends PluginHooks {
|
|
2135
|
+
id: string;
|
|
2136
|
+
deps: PluginDef[];
|
|
2137
|
+
}
|
|
2138
|
+
export type ViewPropsTransformerClass = new () => ViewPropsTransformer;
|
|
2139
|
+
export interface ViewPropsTransformer {
|
|
2140
|
+
transform(viewProps: ViewProps, viewSpec: ViewSpec, calendarProps: CalendarComponentProps, view: View): any;
|
|
2141
|
+
}
|
|
2142
|
+
export type ViewContainerModifier = (contentEl: HTMLElement, calendar: Calendar) => void;
|
|
2143
|
+
export function createPlugin(input: PluginDefInput): PluginDef;
|
|
2144
|
+
export class PluginSystem {
|
|
2145
|
+
hooks: PluginHooks;
|
|
2146
|
+
addedHash: {
|
|
2147
|
+
[pluginId: string]: true;
|
|
2148
|
+
};
|
|
2149
|
+
constructor();
|
|
2150
|
+
add(plugin: PluginDef): void;
|
|
2151
|
+
}
|
|
2152
|
+
}
|
|
2153
|
+
|
|
2154
|
+
declare module '@fullcalendar/core/reducers/types' {
|
|
2155
|
+
import { EventInput, EventInstanceHash } from '@fullcalendar/core/structs/event';
|
|
2156
|
+
import { DateRange } from '@fullcalendar/core/datelib/date-range';
|
|
2157
|
+
import { EventStore } from '@fullcalendar/core/structs/event-store';
|
|
2158
|
+
import { EventMutation } from '@fullcalendar/core/structs/event-mutation';
|
|
2159
|
+
import { EventSource, EventSourceHash, EventSourceError } from '@fullcalendar/core/structs/event-source';
|
|
2160
|
+
import { DateProfile } from '@fullcalendar/core/DateProfileGenerator';
|
|
2161
|
+
import { EventInteractionState } from '@fullcalendar/core/interactions/event-interaction-state';
|
|
2162
|
+
import { DateSpan } from '@fullcalendar/core/structs/date-span';
|
|
2163
|
+
import { DateEnv } from '@fullcalendar/core/datelib/env';
|
|
2164
|
+
import Calendar from '@fullcalendar/core/Calendar';
|
|
2165
|
+
import { DateMarker } from '@fullcalendar/core/datelib/marker';
|
|
2166
|
+
export interface CalendarState {
|
|
2167
|
+
eventSources: EventSourceHash;
|
|
2168
|
+
eventSourceLoadingLevel: number;
|
|
2169
|
+
loadingLevel: number;
|
|
2170
|
+
viewType: string;
|
|
2171
|
+
currentDate: DateMarker;
|
|
2172
|
+
dateProfile: DateProfile | null;
|
|
2173
|
+
eventStore: EventStore;
|
|
2174
|
+
dateSelection: DateSpan | null;
|
|
2175
|
+
eventSelection: string;
|
|
2176
|
+
eventDrag: EventInteractionState | null;
|
|
2177
|
+
eventResize: EventInteractionState | null;
|
|
2178
|
+
}
|
|
2179
|
+
export type reducerFunc = (state: CalendarState, action: Action, calendar: Calendar) => CalendarState;
|
|
2180
|
+
export type Action = {
|
|
2181
|
+
type: 'INIT';
|
|
2182
|
+
} | // wont it create another rerender?
|
|
2183
|
+
{
|
|
2184
|
+
type: 'PREV';
|
|
2185
|
+
} | {
|
|
2186
|
+
type: 'NEXT';
|
|
2187
|
+
} | {
|
|
2188
|
+
type: 'SET_DATE';
|
|
2189
|
+
dateMarker: DateMarker;
|
|
2190
|
+
} | {
|
|
2191
|
+
type: 'SET_VIEW_TYPE';
|
|
2192
|
+
viewType: string;
|
|
2193
|
+
dateMarker?: DateMarker;
|
|
2194
|
+
} | {
|
|
2195
|
+
type: 'SELECT_DATES';
|
|
2196
|
+
selection: DateSpan;
|
|
2197
|
+
} | {
|
|
2198
|
+
type: 'UNSELECT_DATES';
|
|
2199
|
+
} | {
|
|
2200
|
+
type: 'SELECT_EVENT';
|
|
2201
|
+
eventInstanceId: string;
|
|
2202
|
+
} | {
|
|
2203
|
+
type: 'UNSELECT_EVENT';
|
|
2204
|
+
} | {
|
|
2205
|
+
type: 'SET_EVENT_DRAG';
|
|
2206
|
+
state: EventInteractionState;
|
|
2207
|
+
} | {
|
|
2208
|
+
type: 'UNSET_EVENT_DRAG';
|
|
2209
|
+
} | {
|
|
2210
|
+
type: 'SET_EVENT_RESIZE';
|
|
2211
|
+
state: EventInteractionState;
|
|
2212
|
+
} | {
|
|
2213
|
+
type: 'UNSET_EVENT_RESIZE';
|
|
2214
|
+
} | {
|
|
2215
|
+
type: 'ADD_EVENT_SOURCES';
|
|
2216
|
+
sources: EventSource[];
|
|
2217
|
+
} | {
|
|
2218
|
+
type: 'REMOVE_EVENT_SOURCE';
|
|
2219
|
+
sourceId: string;
|
|
2220
|
+
} | {
|
|
2221
|
+
type: 'REMOVE_ALL_EVENT_SOURCES';
|
|
2222
|
+
} | {
|
|
2223
|
+
type: 'FETCH_EVENT_SOURCES';
|
|
2224
|
+
sourceIds?: string[];
|
|
2225
|
+
} | // if no sourceIds, fetch all
|
|
2226
|
+
{
|
|
2227
|
+
type: 'CHANGE_TIMEZONE';
|
|
2228
|
+
oldDateEnv: DateEnv;
|
|
2229
|
+
} | {
|
|
2230
|
+
type: 'RECEIVE_EVENTS';
|
|
2231
|
+
sourceId: string;
|
|
2232
|
+
fetchId: string;
|
|
2233
|
+
fetchRange: DateRange | null;
|
|
2234
|
+
rawEvents: EventInput[];
|
|
2235
|
+
} | {
|
|
2236
|
+
type: 'RECEIVE_EVENT_ERROR';
|
|
2237
|
+
sourceId: string;
|
|
2238
|
+
fetchId: string;
|
|
2239
|
+
fetchRange: DateRange | null;
|
|
2240
|
+
error: EventSourceError;
|
|
2241
|
+
} | // need all these?
|
|
2242
|
+
{
|
|
2243
|
+
type: 'ADD_EVENTS';
|
|
2244
|
+
eventStore: EventStore;
|
|
2245
|
+
} | {
|
|
2246
|
+
type: 'MERGE_EVENTS';
|
|
2247
|
+
eventStore: EventStore;
|
|
2248
|
+
} | {
|
|
2249
|
+
type: 'MUTATE_EVENTS';
|
|
2250
|
+
instanceId: string;
|
|
2251
|
+
mutation: EventMutation;
|
|
2252
|
+
fromApi?: boolean;
|
|
2253
|
+
} | {
|
|
2254
|
+
type: 'REMOVE_EVENT_DEF';
|
|
2255
|
+
defId: string;
|
|
2256
|
+
} | {
|
|
2257
|
+
type: 'REMOVE_EVENT_INSTANCES';
|
|
2258
|
+
instances: EventInstanceHash;
|
|
2259
|
+
} | {
|
|
2260
|
+
type: 'REMOVE_ALL_EVENTS';
|
|
2261
|
+
} | {
|
|
2262
|
+
type: 'RESET_EVENTS';
|
|
2263
|
+
};
|
|
2264
|
+
}
|
|
2265
|
+
|
|
2266
|
+
declare module '@fullcalendar/core/CalendarComponent' {
|
|
2267
|
+
import Component, { ComponentContext } from '@fullcalendar/core/component/Component';
|
|
2268
|
+
import { ViewSpec } from '@fullcalendar/core/structs/view-spec';
|
|
2269
|
+
import View from '@fullcalendar/core/View';
|
|
2270
|
+
import Toolbar from '@fullcalendar/core/Toolbar';
|
|
2271
|
+
import DateProfileGenerator, { DateProfile } from '@fullcalendar/core/DateProfileGenerator';
|
|
2272
|
+
import { EventStore } from '@fullcalendar/core/structs/event-store';
|
|
2273
|
+
import { EventUiHash } from '@fullcalendar/core/component/event-ui';
|
|
2274
|
+
import { BusinessHoursInput } from '@fullcalendar/core/structs/business-hours';
|
|
2275
|
+
import { DateMarker } from '@fullcalendar/core/datelib/marker';
|
|
2276
|
+
import { CalendarState } from '@fullcalendar/core/reducers/types';
|
|
2277
|
+
export interface CalendarComponentProps extends CalendarState {
|
|
2278
|
+
viewSpec: ViewSpec;
|
|
2279
|
+
dateProfileGenerator: DateProfileGenerator;
|
|
2280
|
+
eventUiBases: EventUiHash;
|
|
2281
|
+
}
|
|
2282
|
+
export { CalendarComponent as default, CalendarComponent };
|
|
2283
|
+
class CalendarComponent extends Component<CalendarComponentProps> {
|
|
2284
|
+
view: View;
|
|
2285
|
+
header: Toolbar;
|
|
2286
|
+
footer: Toolbar;
|
|
2287
|
+
computeTitle: (dateProfile: any, viewOptions: any) => string;
|
|
2288
|
+
parseBusinessHours: (input: BusinessHoursInput) => EventStore;
|
|
2289
|
+
el: HTMLElement;
|
|
2290
|
+
contentEl: HTMLElement;
|
|
2291
|
+
isHeightAuto: boolean;
|
|
2292
|
+
viewHeight: number;
|
|
2293
|
+
constructor(context: ComponentContext, el: HTMLElement);
|
|
2294
|
+
destroy(): void;
|
|
2295
|
+
toggleElClassNames(bool: boolean): void;
|
|
2296
|
+
render(props: CalendarComponentProps): void;
|
|
2297
|
+
renderToolbars(viewSpec: ViewSpec, dateProfile: DateProfile, currentDate: DateMarker, dateProfileGenerator: DateProfileGenerator, title: string): void;
|
|
2298
|
+
renderView(props: CalendarComponentProps, title: string): void;
|
|
2299
|
+
updateSize(isResize?: boolean): void;
|
|
2300
|
+
computeHeightVars(): void;
|
|
2301
|
+
queryToolbarsHeight(): number;
|
|
2302
|
+
freezeHeight(): void;
|
|
2303
|
+
thawHeight(): void;
|
|
2304
|
+
}
|
|
2305
|
+
}
|
|
2306
|
+
|
|
2307
|
+
declare module '@fullcalendar/core/common/DayHeader' {
|
|
2308
|
+
import Component, { ComponentContext } from '@fullcalendar/core/component/Component';
|
|
2309
|
+
import { DateMarker } from '@fullcalendar/core/datelib/marker';
|
|
2310
|
+
import { DateProfile } from '@fullcalendar/core/DateProfileGenerator';
|
|
2311
|
+
export interface DayTableHeaderProps {
|
|
2312
|
+
dates: DateMarker[];
|
|
2313
|
+
dateProfile: DateProfile;
|
|
2314
|
+
datesRepDistinctDays: boolean;
|
|
2315
|
+
renderIntroHtml?: () => string;
|
|
2316
|
+
}
|
|
2317
|
+
export { DayHeader as default, DayHeader };
|
|
2318
|
+
class DayHeader extends Component<DayTableHeaderProps> {
|
|
2319
|
+
el: HTMLElement;
|
|
2320
|
+
thead: HTMLElement;
|
|
2321
|
+
constructor(context: ComponentContext, parentEl: HTMLElement);
|
|
2322
|
+
destroy(): void;
|
|
2323
|
+
render(props: DayTableHeaderProps): void;
|
|
2324
|
+
}
|
|
2325
|
+
}
|
|
2326
|
+
|
|
2327
|
+
declare module '@fullcalendar/core/common/table-utils' {
|
|
2328
|
+
import { DateMarker } from '@fullcalendar/core/datelib/marker';
|
|
2329
|
+
import { DateProfile } from '@fullcalendar/core/DateProfileGenerator';
|
|
2330
|
+
import { ComponentContext } from '@fullcalendar/core/component/Component';
|
|
2331
|
+
export function computeFallbackHeaderFormat(datesRepDistinctDays: boolean, dayCnt: number): {
|
|
2332
|
+
weekday: string;
|
|
2333
|
+
month?: undefined;
|
|
2334
|
+
day?: undefined;
|
|
2335
|
+
omitCommas?: undefined;
|
|
2336
|
+
} | {
|
|
2337
|
+
weekday: string;
|
|
2338
|
+
month: string;
|
|
2339
|
+
day: string;
|
|
2340
|
+
omitCommas: boolean;
|
|
2341
|
+
};
|
|
2342
|
+
export function renderDateCell(dateMarker: DateMarker, dateProfile: DateProfile, datesRepDistinctDays: any, colCnt: any, colHeadFormat: any, context: ComponentContext, colspan?: any, otherAttrs?: any): string;
|
|
2343
|
+
}
|
|
2344
|
+
|
|
2345
|
+
declare module '@fullcalendar/core/common/DaySeries' {
|
|
2346
|
+
import DateProfileGenerator from '@fullcalendar/core/DateProfileGenerator';
|
|
2347
|
+
import { DateMarker } from '@fullcalendar/core/datelib/marker';
|
|
2348
|
+
import { DateRange } from '@fullcalendar/core/datelib/date-range';
|
|
2349
|
+
export interface DaySeriesSeg {
|
|
2350
|
+
firstIndex: number;
|
|
2351
|
+
lastIndex: number;
|
|
2352
|
+
isStart: boolean;
|
|
2353
|
+
isEnd: boolean;
|
|
2354
|
+
}
|
|
2355
|
+
export { DaySeries as default, DaySeries };
|
|
2356
|
+
class DaySeries {
|
|
2357
|
+
cnt: number;
|
|
2358
|
+
dates: DateMarker[];
|
|
2359
|
+
indices: number[];
|
|
2360
|
+
constructor(range: DateRange, dateProfileGenerator: DateProfileGenerator);
|
|
2361
|
+
sliceRange(range: DateRange): DaySeriesSeg | null;
|
|
2362
|
+
}
|
|
2363
|
+
}
|
|
2364
|
+
|
|
2365
|
+
declare module '@fullcalendar/core/interactions/event-interaction-state' {
|
|
2366
|
+
import { EventStore } from '@fullcalendar/core/structs/event-store';
|
|
2367
|
+
import { Seg } from '@fullcalendar/core/component/DateComponent';
|
|
2368
|
+
export interface EventInteractionState {
|
|
2369
|
+
affectedEvents: EventStore;
|
|
2370
|
+
mutatedEvents: EventStore;
|
|
2371
|
+
isEvent: boolean;
|
|
2372
|
+
origSeg: Seg | null;
|
|
2373
|
+
}
|
|
2374
|
+
}
|
|
2375
|
+
|
|
2376
|
+
declare module '@fullcalendar/core/component/event-rendering' {
|
|
2377
|
+
import { EventDef, EventTuple, EventDefHash } from '@fullcalendar/core/structs/event';
|
|
2378
|
+
import { EventStore } from '@fullcalendar/core/structs/event-store';
|
|
2379
|
+
import { DateRange } from '@fullcalendar/core/datelib/date-range';
|
|
2380
|
+
import { Duration } from '@fullcalendar/core/datelib/duration';
|
|
2381
|
+
import { Seg } from '@fullcalendar/core/component/DateComponent';
|
|
2382
|
+
import View from '@fullcalendar/core/View';
|
|
2383
|
+
import { EventUi, EventUiHash } from '@fullcalendar/core/component/event-ui';
|
|
2384
|
+
export interface EventRenderRange extends EventTuple {
|
|
2385
|
+
ui: EventUi;
|
|
2386
|
+
range: DateRange;
|
|
2387
|
+
isStart: boolean;
|
|
2388
|
+
isEnd: boolean;
|
|
2389
|
+
}
|
|
2390
|
+
export function sliceEventStore(eventStore: EventStore, eventUiBases: EventUiHash, framingRange: DateRange, nextDayThreshold?: Duration): {
|
|
2391
|
+
bg: EventRenderRange[];
|
|
2392
|
+
fg: EventRenderRange[];
|
|
2393
|
+
};
|
|
2394
|
+
export function hasBgRendering(def: EventDef): boolean;
|
|
2395
|
+
export function filterSegsViaEls(view: View, segs: Seg[], isMirror: boolean): Seg[];
|
|
2396
|
+
export function getElSeg(el: HTMLElement): Seg | null;
|
|
2397
|
+
export function compileEventUis(eventDefs: EventDefHash, eventUiBases: EventUiHash): {
|
|
2398
|
+
[key: string]: EventUi;
|
|
2399
|
+
};
|
|
2400
|
+
export function compileEventUi(eventDef: EventDef, eventUiBases: EventUiHash): EventUi;
|
|
2401
|
+
}
|
|
2402
|
+
|
|
2403
|
+
declare module '@fullcalendar/core/common/DayTable' {
|
|
2404
|
+
import DaySeries from '@fullcalendar/core/common/DaySeries';
|
|
2405
|
+
import { DateRange } from '@fullcalendar/core/datelib/date-range';
|
|
2406
|
+
import { DateMarker } from '@fullcalendar/core/datelib/marker';
|
|
2407
|
+
import { Seg } from '@fullcalendar/core/component/DateComponent';
|
|
2408
|
+
export interface DayTableSeg extends Seg {
|
|
2409
|
+
row: number;
|
|
2410
|
+
firstCol: number;
|
|
2411
|
+
lastCol: number;
|
|
2412
|
+
}
|
|
2413
|
+
export interface DayTableCell {
|
|
2414
|
+
date: DateMarker;
|
|
2415
|
+
htmlAttrs?: string;
|
|
2416
|
+
}
|
|
2417
|
+
export { DayTable as default, DayTable };
|
|
2418
|
+
class DayTable {
|
|
2419
|
+
rowCnt: number;
|
|
2420
|
+
colCnt: number;
|
|
2421
|
+
cells: DayTableCell[][];
|
|
2422
|
+
headerDates: DateMarker[];
|
|
2423
|
+
constructor(daySeries: DaySeries, breakOnWeeks: boolean);
|
|
2424
|
+
sliceRange(range: DateRange): DayTableSeg[];
|
|
2425
|
+
}
|
|
2426
|
+
}
|
|
2427
|
+
|
|
2428
|
+
declare module '@fullcalendar/core/common/slicing-utils' {
|
|
2429
|
+
import { DateRange } from '@fullcalendar/core/datelib/date-range';
|
|
2430
|
+
import { EventStore } from '@fullcalendar/core/structs/event-store';
|
|
2431
|
+
import { EventUiHash } from '@fullcalendar/core/component/event-ui';
|
|
2432
|
+
import { DateProfile } from '@fullcalendar/core/DateProfileGenerator';
|
|
2433
|
+
import DateComponent, { Seg, EventSegUiInteractionState } from '@fullcalendar/core/component/DateComponent';
|
|
2434
|
+
import { DateSpan } from '@fullcalendar/core/structs/date-span';
|
|
2435
|
+
import { EventInteractionState } from '@fullcalendar/core/interactions/event-interaction-state';
|
|
2436
|
+
import { Duration } from '@fullcalendar/core/datelib/duration';
|
|
2437
|
+
import { DateMarker } from '@fullcalendar/core/datelib/marker';
|
|
2438
|
+
export interface SliceableProps {
|
|
2439
|
+
dateSelection: DateSpan;
|
|
2440
|
+
businessHours: EventStore;
|
|
2441
|
+
eventStore: EventStore;
|
|
2442
|
+
eventDrag: EventInteractionState | null;
|
|
2443
|
+
eventResize: EventInteractionState | null;
|
|
2444
|
+
eventSelection: string;
|
|
2445
|
+
eventUiBases: EventUiHash;
|
|
2446
|
+
}
|
|
2447
|
+
export interface SlicedProps<SegType extends Seg> {
|
|
2448
|
+
dateSelectionSegs: SegType[];
|
|
2449
|
+
businessHourSegs: SegType[];
|
|
2450
|
+
fgEventSegs: SegType[];
|
|
2451
|
+
bgEventSegs: SegType[];
|
|
2452
|
+
eventDrag: EventSegUiInteractionState | null;
|
|
2453
|
+
eventResize: EventSegUiInteractionState | null;
|
|
2454
|
+
eventSelection: string;
|
|
2455
|
+
}
|
|
2456
|
+
export { Slicer as default, Slicer };
|
|
2457
|
+
abstract class Slicer<SegType extends Seg, ExtraArgs extends any[] = []> {
|
|
2458
|
+
abstract sliceRange(dateRange: DateRange, ...extraArgs: ExtraArgs): SegType[];
|
|
2459
|
+
sliceProps(props: SliceableProps, dateProfile: DateProfile, nextDayThreshold: Duration | null, component: DateComponent<any>, // TODO: kill
|
|
2460
|
+
...extraArgs: ExtraArgs): SlicedProps<SegType>;
|
|
2461
|
+
sliceNowDate(// does not memoize
|
|
2462
|
+
date: DateMarker, component: DateComponent<any>, // TODO: kill
|
|
2463
|
+
...extraArgs: ExtraArgs): SegType[];
|
|
2464
|
+
}
|
|
2465
|
+
}
|
|
2466
|
+
|
|
2467
|
+
declare module '@fullcalendar/core/structs/event-mutation' {
|
|
2468
|
+
import { Duration } from '@fullcalendar/core/datelib/duration';
|
|
2469
|
+
import { EventStore } from '@fullcalendar/core/structs/event-store';
|
|
2470
|
+
import { EventDef } from '@fullcalendar/core/structs/event';
|
|
2471
|
+
import Calendar from '@fullcalendar/core/Calendar';
|
|
2472
|
+
import { EventUiHash } from '@fullcalendar/core/component/event-ui';
|
|
2473
|
+
export interface EventMutation {
|
|
2474
|
+
datesDelta?: Duration;
|
|
2475
|
+
startDelta?: Duration;
|
|
2476
|
+
endDelta?: Duration;
|
|
2477
|
+
standardProps?: any;
|
|
2478
|
+
extendedProps?: any;
|
|
2479
|
+
}
|
|
2480
|
+
export function applyMutationToEventStore(eventStore: EventStore, eventConfigBase: EventUiHash, mutation: EventMutation, calendar: Calendar): EventStore;
|
|
2481
|
+
export type eventDefMutationApplier = (eventDef: EventDef, mutation: EventMutation, calendar: Calendar) => void;
|
|
2482
|
+
}
|
|
2483
|
+
|
|
2484
|
+
declare module '@fullcalendar/core/validation' {
|
|
2485
|
+
import { EventStore } from '@fullcalendar/core/structs/event-store';
|
|
2486
|
+
import Calendar from '@fullcalendar/core/Calendar';
|
|
2487
|
+
import { DateSpan, DateSpanApi } from '@fullcalendar/core/structs/date-span';
|
|
2488
|
+
import EventApi from '@fullcalendar/core/api/EventApi';
|
|
2489
|
+
import { EventInput } from '@fullcalendar/core/structs/event';
|
|
2490
|
+
import { EventInteractionState } from '@fullcalendar/core/interactions/event-interaction-state';
|
|
2491
|
+
import { SplittableProps } from '@fullcalendar/core/component/event-splitting';
|
|
2492
|
+
export type ConstraintInput = 'businessHours' | string | EventInput | EventInput[];
|
|
2493
|
+
export type Constraint = 'businessHours' | string | EventStore | false;
|
|
2494
|
+
export type OverlapFunc = ((stillEvent: EventApi, movingEvent: EventApi | null) => boolean);
|
|
2495
|
+
export type AllowFunc = (span: DateSpanApi, movingEvent: EventApi | null) => boolean;
|
|
2496
|
+
export type isPropsValidTester = (props: SplittableProps, calendar: Calendar) => boolean;
|
|
2497
|
+
export function isInteractionValid(interaction: EventInteractionState, calendar: Calendar): boolean;
|
|
2498
|
+
export function isDateSelectionValid(dateSelection: DateSpan, calendar: Calendar): boolean;
|
|
2499
|
+
export function isPropsValid(state: SplittableProps, calendar: Calendar, dateSpanMeta?: {}, filterConfig?: any): boolean;
|
|
2500
|
+
export function normalizeConstraint(input: ConstraintInput, calendar: Calendar): Constraint | null;
|
|
2501
|
+
}
|
|
2502
|
+
|
|
2503
|
+
declare module '@fullcalendar/core/api/EventApi' {
|
|
2504
|
+
import Calendar from '@fullcalendar/core/Calendar';
|
|
2505
|
+
import { EventDef, EventInstance } from '@fullcalendar/core/structs/event';
|
|
2506
|
+
import { EventMutation } from '@fullcalendar/core/structs/event-mutation';
|
|
2507
|
+
import { DateInput } from '@fullcalendar/core/datelib/env';
|
|
2508
|
+
import { DurationInput } from '@fullcalendar/core/datelib/duration';
|
|
2509
|
+
import { FormatterInput } from '@fullcalendar/core/datelib/formatting';
|
|
2510
|
+
import EventSourceApi from '@fullcalendar/core/api/EventSourceApi';
|
|
2511
|
+
export { EventApi as default, EventApi };
|
|
2512
|
+
class EventApi {
|
|
2513
|
+
_calendar: Calendar;
|
|
2514
|
+
_def: EventDef;
|
|
2515
|
+
_instance: EventInstance | null;
|
|
2516
|
+
constructor(calendar: Calendar, def: EventDef, instance?: EventInstance);
|
|
2517
|
+
setProp(name: string, val: string): void;
|
|
2518
|
+
setExtendedProp(name: string, val: any): void;
|
|
2519
|
+
setStart(startInput: DateInput, options?: {
|
|
2520
|
+
granularity?: string;
|
|
2521
|
+
maintainDuration?: boolean;
|
|
2522
|
+
}): void;
|
|
2523
|
+
setEnd(endInput: DateInput | null, options?: {
|
|
2524
|
+
granularity?: string;
|
|
2525
|
+
}): void;
|
|
2526
|
+
setDates(startInput: DateInput, endInput: DateInput | null, options?: {
|
|
2527
|
+
allDay?: boolean;
|
|
2528
|
+
granularity?: string;
|
|
2529
|
+
}): void;
|
|
2530
|
+
moveStart(deltaInput: DurationInput): void;
|
|
2531
|
+
moveEnd(deltaInput: DurationInput): void;
|
|
2532
|
+
moveDates(deltaInput: DurationInput): void;
|
|
2533
|
+
setAllDay(allDay: boolean, options?: {
|
|
2534
|
+
maintainDuration?: boolean;
|
|
2535
|
+
}): void;
|
|
2536
|
+
formatRange(formatInput: FormatterInput): any;
|
|
2537
|
+
mutate(mutation: EventMutation): void;
|
|
2538
|
+
remove(): void;
|
|
2539
|
+
readonly source: EventSourceApi | null;
|
|
2540
|
+
readonly start: Date | null;
|
|
2541
|
+
readonly end: Date | null;
|
|
2542
|
+
readonly id: string;
|
|
2543
|
+
readonly groupId: string;
|
|
2544
|
+
readonly allDay: boolean;
|
|
2545
|
+
readonly title: string;
|
|
2546
|
+
readonly url: string;
|
|
2547
|
+
readonly rendering: string;
|
|
2548
|
+
readonly startEditable: boolean;
|
|
2549
|
+
readonly durationEditable: boolean;
|
|
2550
|
+
readonly constraint: any;
|
|
2551
|
+
readonly overlap: any;
|
|
2552
|
+
readonly allow: any;
|
|
2553
|
+
readonly backgroundColor: string;
|
|
2554
|
+
readonly borderColor: string;
|
|
2555
|
+
readonly textColor: string;
|
|
2556
|
+
readonly classNames: string[];
|
|
2557
|
+
readonly extendedProps: any;
|
|
2558
|
+
}
|
|
2559
|
+
}
|
|
2560
|
+
|
|
2561
|
+
declare module '@fullcalendar/core/util/requestJson' {
|
|
2562
|
+
export default function requestJson(method: string, url: string, params: object, successCallback: any, failureCallback: any): void;
|
|
2563
|
+
}
|
|
2564
|
+
|
|
2565
|
+
declare module '@fullcalendar/core/datelib/locale' {
|
|
2566
|
+
export type LocaleCodeArg = string | string[];
|
|
2567
|
+
export type LocaleSingularArg = LocaleCodeArg | RawLocale;
|
|
2568
|
+
export interface Locale {
|
|
2569
|
+
codeArg: LocaleCodeArg;
|
|
2570
|
+
codes: string[];
|
|
2571
|
+
week: {
|
|
2572
|
+
dow: number;
|
|
2573
|
+
doy: number;
|
|
2574
|
+
};
|
|
2575
|
+
simpleNumberFormat: Intl.NumberFormat;
|
|
2576
|
+
options: any;
|
|
2577
|
+
}
|
|
2578
|
+
export interface RawLocale {
|
|
2579
|
+
code: string;
|
|
2580
|
+
[otherProp: string]: any;
|
|
2581
|
+
}
|
|
2582
|
+
export type RawLocaleMap = {
|
|
2583
|
+
[code: string]: RawLocale;
|
|
2584
|
+
};
|
|
2585
|
+
export interface RawLocaleInfo {
|
|
2586
|
+
map: RawLocaleMap;
|
|
2587
|
+
defaultCode: string;
|
|
2588
|
+
}
|
|
2589
|
+
export function parseRawLocales(explicitRawLocales: RawLocale[]): RawLocaleInfo;
|
|
2590
|
+
export function buildLocale(inputSingular: LocaleSingularArg, available: RawLocaleMap): Locale;
|
|
2591
|
+
}
|
|
2592
|
+
|
|
2593
|
+
declare module '@fullcalendar/core/OptionsManager' {
|
|
2594
|
+
export { OptionsManager as default, OptionsManager };
|
|
2595
|
+
class OptionsManager {
|
|
2596
|
+
dirDefaults: any;
|
|
2597
|
+
localeDefaults: any;
|
|
2598
|
+
overrides: any;
|
|
2599
|
+
dynamicOverrides: any;
|
|
2600
|
+
computed: any;
|
|
2601
|
+
constructor(overrides: any);
|
|
2602
|
+
mutate(updates: any, removals: string[], isDynamic?: boolean): void;
|
|
2603
|
+
compute(): void;
|
|
2604
|
+
}
|
|
2605
|
+
}
|
|
2606
|
+
|
|
2607
|
+
declare module '@fullcalendar/core/api/EventSourceApi' {
|
|
2608
|
+
import Calendar from '@fullcalendar/core/Calendar';
|
|
2609
|
+
import { EventSource } from '@fullcalendar/core/structs/event-source';
|
|
2610
|
+
export { EventSourceApi as default, EventSourceApi };
|
|
2611
|
+
class EventSourceApi {
|
|
2612
|
+
calendar: Calendar;
|
|
2613
|
+
internalEventSource: EventSource;
|
|
2614
|
+
constructor(calendar: Calendar, internalEventSource: EventSource);
|
|
2615
|
+
remove(): void;
|
|
2616
|
+
refetch(): void;
|
|
2617
|
+
readonly id: string;
|
|
2618
|
+
readonly url: string;
|
|
2619
|
+
}
|
|
2620
|
+
}
|
|
2621
|
+
|
|
2622
|
+
declare module '@fullcalendar/core/structs/view-config' {
|
|
2623
|
+
import View from '@fullcalendar/core/View';
|
|
2624
|
+
import { ViewSpec } from '@fullcalendar/core/structs/view-spec';
|
|
2625
|
+
import { ComponentContext } from '@fullcalendar/core/component/Component';
|
|
2626
|
+
import DateProfileGenerator from '@fullcalendar/core/DateProfileGenerator';
|
|
2627
|
+
export type ViewClass = new (context: ComponentContext, viewSpec: ViewSpec, dateProfileGenerator: DateProfileGenerator, parentEl: HTMLElement) => View;
|
|
2628
|
+
export interface ViewConfigObjectInput {
|
|
2629
|
+
type?: string;
|
|
2630
|
+
class?: ViewClass;
|
|
2631
|
+
[optionName: string]: any;
|
|
2632
|
+
}
|
|
2633
|
+
export type ViewConfigInput = ViewClass | ViewConfigObjectInput;
|
|
2634
|
+
export type ViewConfigInputHash = {
|
|
2635
|
+
[viewType: string]: ViewConfigInput;
|
|
2636
|
+
};
|
|
2637
|
+
export interface ViewConfig {
|
|
2638
|
+
superType: string;
|
|
2639
|
+
class: ViewClass | null;
|
|
2640
|
+
options: any;
|
|
2641
|
+
}
|
|
2642
|
+
export type ViewConfigHash = {
|
|
2643
|
+
[viewType: string]: ViewConfig;
|
|
2644
|
+
};
|
|
2645
|
+
export function parseViewConfigs(inputs: ViewConfigInputHash): ViewConfigHash;
|
|
2646
|
+
}
|
|
2647
|
+
|
|
2648
|
+
declare module '@fullcalendar/core/datelib/calendar-system' {
|
|
2649
|
+
import { DateMarker } from '@fullcalendar/core/datelib/marker';
|
|
2650
|
+
export interface CalendarSystem {
|
|
2651
|
+
getMarkerYear(d: DateMarker): number;
|
|
2652
|
+
getMarkerMonth(d: DateMarker): number;
|
|
2653
|
+
getMarkerDay(d: DateMarker): number;
|
|
2654
|
+
arrayToMarker(arr: number[]): DateMarker;
|
|
2655
|
+
markerToArray(d: DateMarker): number[];
|
|
2656
|
+
}
|
|
2657
|
+
export function registerCalendarSystem(name: any, theClass: any): void;
|
|
2658
|
+
export function createCalendarSystem(name: any): any;
|
|
2659
|
+
}
|
|
2660
|
+
|
|
2661
|
+
declare module '@fullcalendar/core/datelib/formatting-cmd' {
|
|
2662
|
+
import { DateFormatter, DateFormattingContext, ZonedMarker, VerboseFormattingArg } from '@fullcalendar/core/datelib/formatting';
|
|
2663
|
+
export type CmdFormatterFunc = (cmd: string, arg: VerboseFormattingArg) => string;
|
|
2664
|
+
export class CmdFormatter implements DateFormatter {
|
|
2665
|
+
cmdStr: string;
|
|
2666
|
+
separator: string;
|
|
2667
|
+
constructor(cmdStr: string, separator?: string);
|
|
2668
|
+
format(date: ZonedMarker, context: DateFormattingContext): string;
|
|
2669
|
+
formatRange(start: ZonedMarker, end: ZonedMarker, context: DateFormattingContext): string;
|
|
2670
|
+
}
|
|
2671
|
+
}
|
|
2672
|
+
|
|
2673
|
+
declare module '@fullcalendar/core/datelib/formatting-func' {
|
|
2674
|
+
import { DateFormatter, DateFormattingContext, ZonedMarker, VerboseFormattingArg } from '@fullcalendar/core/datelib/formatting';
|
|
2675
|
+
export type FuncFormatterFunc = (arg: VerboseFormattingArg) => string;
|
|
2676
|
+
export class FuncFormatter implements DateFormatter {
|
|
2677
|
+
func: FuncFormatterFunc;
|
|
2678
|
+
constructor(func: FuncFormatterFunc);
|
|
2679
|
+
format(date: ZonedMarker, context: DateFormattingContext): string;
|
|
2680
|
+
formatRange(start: ZonedMarker, end: ZonedMarker, context: DateFormattingContext): string;
|
|
2681
|
+
}
|
|
2682
|
+
}
|
|
2683
|
+
|
|
2684
|
+
declare module '@fullcalendar/core/event-sources/func-event-source' {
|
|
2685
|
+
import { EventSourceError } from '@fullcalendar/core/structs/event-source';
|
|
2686
|
+
import { EventInput } from '@fullcalendar/core/structs/event';
|
|
2687
|
+
export type EventSourceFunc = (arg: {
|
|
2688
|
+
start: Date;
|
|
2689
|
+
end: Date;
|
|
2690
|
+
timeZone: string;
|
|
2691
|
+
}, successCallback: (events: EventInput[]) => void, failureCallback: (error: EventSourceError) => void) => (void | PromiseLike<EventInput[]>);
|
|
2692
|
+
const _default: import("@fullcalendar/core/plugin-system").PluginDef;
|
|
2693
|
+
export default _default;
|
|
2694
|
+
}
|
|
2695
|
+
|
|
2696
|
+
declare module '@fullcalendar/core/interactions/external-element-dragging' {
|
|
2697
|
+
import { DateSpan } from '@fullcalendar/core/structs/date-span';
|
|
2698
|
+
import { DragMeta } from '@fullcalendar/core/structs/drag-meta';
|
|
2699
|
+
export type ExternalDefTransform = (dateSpan: DateSpan, dragMeta: DragMeta) => any;
|
|
2700
|
+
}
|
|
2701
|
+
|
|
2702
|
+
declare module '@fullcalendar/core/Toolbar' {
|
|
2703
|
+
import Component, { ComponentContext } from '@fullcalendar/core/component/Component';
|
|
2704
|
+
export interface ToolbarRenderProps {
|
|
2705
|
+
layout: any;
|
|
2706
|
+
title: string;
|
|
2707
|
+
activeButton: string;
|
|
2708
|
+
isTodayEnabled: boolean;
|
|
2709
|
+
isPrevEnabled: boolean;
|
|
2710
|
+
isNextEnabled: boolean;
|
|
2711
|
+
}
|
|
2712
|
+
export { Toolbar as default, Toolbar };
|
|
2713
|
+
class Toolbar extends Component<ToolbarRenderProps> {
|
|
2714
|
+
el: HTMLElement;
|
|
2715
|
+
viewsWithButtons: any;
|
|
2716
|
+
constructor(context: ComponentContext, extraClassName: any);
|
|
2717
|
+
destroy(): void;
|
|
2718
|
+
render(props: ToolbarRenderProps): void;
|
|
2719
|
+
renderLayout(layout: any): void;
|
|
2720
|
+
unrenderLayout(): void;
|
|
2721
|
+
renderSection(position: any, buttonStr: any): HTMLElement;
|
|
2722
|
+
updateToday(isTodayEnabled: any): void;
|
|
2723
|
+
updatePrev(isPrevEnabled: any): void;
|
|
2724
|
+
updateNext(isNextEnabled: any): void;
|
|
2725
|
+
updateTitle(text: any): void;
|
|
2726
|
+
updateActiveButton(buttonName?: any): void;
|
|
2727
|
+
toggleButtonEnabled(buttonName: any, bool: any): void;
|
|
2728
|
+
}
|
|
2729
|
+
}
|
|
2730
|
+
|