fomantic-ui 2.10.0-beta.8 → 2.10.0-beta.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +6 -23
- package/.github/workflows/ci.yml +9 -9
- package/.github/workflows/depsreview.yml +1 -1
- package/.github/workflows/nightly.yml +7 -5
- package/.github/workflows/release.yml +2 -2
- package/.stylelintrc.js +1 -15
- package/CHANGELOG.md +5289 -2325
- package/README.md +8 -4
- package/changelog-setup.js +32 -10
- package/changelog-template.hbs +256 -251
- package/dist/components/accordion.css +1 -1
- package/dist/components/accordion.js +62 -73
- package/dist/components/accordion.min.css +1 -1
- package/dist/components/accordion.min.js +3 -3
- package/dist/components/ad.css +1 -1
- package/dist/components/ad.min.css +1 -1
- package/dist/components/api.js +101 -161
- package/dist/components/api.min.js +3 -3
- package/dist/components/breadcrumb.css +1 -1
- package/dist/components/breadcrumb.min.css +1 -1
- package/dist/components/button.css +5 -6
- package/dist/components/button.min.css +2 -2
- package/dist/components/calendar.css +3 -3
- package/dist/components/calendar.js +283 -332
- package/dist/components/calendar.min.css +2 -2
- package/dist/components/calendar.min.js +3 -3
- package/dist/components/card.css +1 -1
- package/dist/components/card.min.css +1 -1
- package/dist/components/checkbox.css +1 -1
- package/dist/components/checkbox.js +58 -79
- package/dist/components/checkbox.min.css +1 -1
- package/dist/components/checkbox.min.js +3 -3
- package/dist/components/comment.css +1 -1
- package/dist/components/comment.min.css +1 -1
- package/dist/components/container.css +1 -1
- package/dist/components/container.min.css +1 -1
- package/dist/components/dimmer.css +2 -2
- package/dist/components/dimmer.js +39 -52
- package/dist/components/dimmer.min.css +2 -2
- package/dist/components/dimmer.min.js +3 -3
- package/dist/components/divider.css +1 -1
- package/dist/components/divider.min.css +1 -1
- package/dist/components/dropdown.css +21 -35
- package/dist/components/dropdown.js +435 -531
- package/dist/components/dropdown.min.css +2 -2
- package/dist/components/dropdown.min.js +3 -3
- package/dist/components/embed.css +1 -1
- package/dist/components/embed.js +55 -68
- package/dist/components/embed.min.css +1 -1
- package/dist/components/embed.min.js +3 -3
- package/dist/components/emoji.css +3809 -7617
- package/dist/components/emoji.min.css +2 -2
- package/dist/components/feed.css +1 -1
- package/dist/components/feed.min.css +1 -1
- package/dist/components/flag.css +1 -1
- package/dist/components/flag.min.css +1 -1
- package/dist/components/flyout.css +1 -1
- package/dist/components/flyout.js +149 -168
- package/dist/components/flyout.min.css +1 -1
- package/dist/components/flyout.min.js +3 -3
- package/dist/components/form.css +3 -5
- package/dist/components/form.js +249 -269
- package/dist/components/form.min.css +2 -2
- package/dist/components/form.min.js +3 -3
- package/dist/components/grid.css +2 -2
- package/dist/components/grid.min.css +2 -2
- package/dist/components/header.css +6 -6
- package/dist/components/header.min.css +2 -2
- package/dist/components/icon.css +10 -37
- package/dist/components/icon.min.css +2 -2
- package/dist/components/image.css +1 -1
- package/dist/components/image.min.css +1 -1
- package/dist/components/input.css +284 -12
- package/dist/components/input.min.css +2 -2
- package/dist/components/item.css +1 -1
- package/dist/components/item.min.css +1 -1
- package/dist/components/label.css +6 -14
- package/dist/components/label.min.css +2 -2
- package/dist/components/list.css +3 -3
- package/dist/components/list.min.css +2 -2
- package/dist/components/loader.css +53 -53
- package/dist/components/loader.min.css +2 -2
- package/dist/components/menu.css +45 -60
- package/dist/components/menu.min.css +2 -2
- package/dist/components/message.css +2 -2
- package/dist/components/message.min.css +2 -2
- package/dist/components/modal.css +5 -5
- package/dist/components/modal.js +161 -170
- package/dist/components/modal.min.css +2 -2
- package/dist/components/modal.min.js +3 -3
- package/dist/components/nag.css +1 -1
- package/dist/components/nag.js +74 -88
- package/dist/components/nag.min.css +1 -1
- package/dist/components/nag.min.js +3 -3
- package/dist/components/placeholder.css +2 -2
- package/dist/components/placeholder.min.css +2 -2
- package/dist/components/popup.css +19 -73
- package/dist/components/popup.js +105 -138
- package/dist/components/popup.min.css +2 -2
- package/dist/components/popup.min.js +3 -3
- package/dist/components/progress.css +4 -13
- package/dist/components/progress.js +75 -97
- package/dist/components/progress.min.css +2 -2
- package/dist/components/progress.min.js +3 -3
- package/dist/components/rail.css +1 -1
- package/dist/components/rail.min.css +1 -1
- package/dist/components/rating.css +1 -1
- package/dist/components/rating.js +49 -61
- package/dist/components/rating.min.css +1 -1
- package/dist/components/rating.min.js +3 -3
- package/dist/components/reset.css +48 -208
- package/dist/components/reset.min.css +2 -2
- package/dist/components/reveal.css +2 -5
- package/dist/components/reveal.min.css +2 -2
- package/dist/components/search.css +2 -3
- package/dist/components/search.js +178 -198
- package/dist/components/search.min.css +2 -2
- package/dist/components/search.min.js +3 -3
- package/dist/components/segment.css +6 -6
- package/dist/components/segment.min.css +2 -2
- package/dist/components/shape.css +1 -1
- package/dist/components/shape.js +59 -69
- package/dist/components/shape.min.css +1 -1
- package/dist/components/shape.min.js +3 -3
- package/dist/components/sidebar.css +1 -1
- package/dist/components/sidebar.js +81 -101
- package/dist/components/sidebar.min.css +1 -1
- package/dist/components/sidebar.min.js +3 -3
- package/dist/components/site.css +1 -1
- package/dist/components/site.js +37 -58
- package/dist/components/site.min.css +1 -1
- package/dist/components/site.min.js +3 -3
- package/dist/components/slider.css +1 -1
- package/dist/components/slider.js +169 -183
- package/dist/components/slider.min.css +1 -1
- package/dist/components/slider.min.js +3 -3
- package/dist/components/state.js +45 -59
- package/dist/components/state.min.js +3 -3
- package/dist/components/statistic.css +1 -1
- package/dist/components/statistic.min.css +1 -1
- package/dist/components/step.css +4 -4
- package/dist/components/step.min.css +2 -2
- package/dist/components/sticky.css +1 -1
- package/dist/components/sticky.js +95 -117
- package/dist/components/sticky.min.css +1 -1
- package/dist/components/sticky.min.js +3 -3
- package/dist/components/tab.css +1 -1
- package/dist/components/tab.js +83 -115
- package/dist/components/tab.min.css +1 -1
- package/dist/components/tab.min.js +3 -3
- package/dist/components/table.css +8 -8
- package/dist/components/table.min.css +2 -2
- package/dist/components/text.css +1 -1
- package/dist/components/text.min.css +1 -1
- package/dist/components/toast.css +1 -1
- package/dist/components/toast.js +64 -74
- package/dist/components/toast.min.css +1 -1
- package/dist/components/toast.min.js +3 -3
- package/dist/components/transition.css +1 -1
- package/dist/components/transition.js +61 -85
- package/dist/components/transition.min.css +1 -1
- package/dist/components/transition.min.js +3 -3
- package/dist/components/visibility.js +120 -140
- package/dist/components/visibility.min.js +3 -3
- package/dist/semantic.css +4480 -8222
- package/dist/semantic.js +2886 -3485
- package/dist/semantic.min.css +3 -3
- package/dist/semantic.min.js +3 -3
- package/examples/attached.html +1 -1
- package/examples/components/menu.html +1 -1
- package/package.json +8 -5
- package/scripts/nightly-version.js +4 -4
- package/src/definitions/behaviors/api.js +100 -160
- package/src/definitions/behaviors/form.js +248 -268
- package/src/definitions/behaviors/state.js +44 -58
- package/src/definitions/behaviors/visibility.js +119 -139
- package/src/definitions/collections/breadcrumb.less +0 -1
- package/src/definitions/collections/form.less +3 -9
- package/src/definitions/collections/grid.less +1 -2
- package/src/definitions/collections/menu.less +106 -117
- package/src/definitions/collections/message.less +1 -2
- package/src/definitions/collections/table.less +7 -8
- package/src/definitions/elements/button.less +4 -6
- package/src/definitions/elements/container.less +0 -1
- package/src/definitions/elements/divider.less +1 -2
- package/src/definitions/elements/emoji.less +1 -1
- package/src/definitions/elements/flag.less +1 -1
- package/src/definitions/elements/header.less +4 -5
- package/src/definitions/elements/icon.less +10 -37
- package/src/definitions/elements/image.less +0 -1
- package/src/definitions/elements/input.less +4 -7
- package/src/definitions/elements/label.less +5 -14
- package/src/definitions/elements/list.less +2 -3
- package/src/definitions/elements/loader.less +10 -11
- package/src/definitions/elements/placeholder.less +1 -2
- package/src/definitions/elements/rail.less +0 -1
- package/src/definitions/elements/reveal.less +1 -5
- package/src/definitions/elements/segment.less +5 -6
- package/src/definitions/elements/step.less +3 -4
- package/src/definitions/elements/text.less +0 -1
- package/src/definitions/globals/reset.less +0 -1
- package/src/definitions/globals/site.js +36 -57
- package/src/definitions/globals/site.less +0 -1
- package/src/definitions/modules/accordion.js +61 -72
- package/src/definitions/modules/accordion.less +0 -1
- package/src/definitions/modules/calendar.js +282 -331
- package/src/definitions/modules/calendar.less +2 -3
- package/src/definitions/modules/checkbox.js +57 -78
- package/src/definitions/modules/checkbox.less +0 -1
- package/src/definitions/modules/dimmer.js +38 -51
- package/src/definitions/modules/dimmer.less +1 -2
- package/src/definitions/modules/dropdown.js +434 -530
- package/src/definitions/modules/dropdown.less +27 -38
- package/src/definitions/modules/embed.js +54 -67
- package/src/definitions/modules/embed.less +0 -1
- package/src/definitions/modules/flyout.js +148 -167
- package/src/definitions/modules/flyout.less +0 -1
- package/src/definitions/modules/modal.js +160 -169
- package/src/definitions/modules/modal.less +3 -4
- package/src/definitions/modules/nag.js +73 -87
- package/src/definitions/modules/nag.less +0 -1
- package/src/definitions/modules/popup.js +104 -137
- package/src/definitions/modules/popup.less +18 -73
- package/src/definitions/modules/progress.js +74 -96
- package/src/definitions/modules/progress.less +3 -13
- package/src/definitions/modules/rating.js +48 -60
- package/src/definitions/modules/rating.less +0 -1
- package/src/definitions/modules/search.js +177 -197
- package/src/definitions/modules/search.less +2 -4
- package/src/definitions/modules/shape.js +58 -68
- package/src/definitions/modules/shape.less +0 -1
- package/src/definitions/modules/sidebar.js +80 -100
- package/src/definitions/modules/sidebar.less +0 -1
- package/src/definitions/modules/slider.js +168 -182
- package/src/definitions/modules/slider.less +0 -1
- package/src/definitions/modules/sticky.js +94 -116
- package/src/definitions/modules/sticky.less +0 -1
- package/src/definitions/modules/tab.js +82 -114
- package/src/definitions/modules/tab.less +0 -1
- package/src/definitions/modules/toast.js +63 -73
- package/src/definitions/modules/toast.less +0 -1
- package/src/definitions/modules/transition.js +60 -84
- package/src/definitions/modules/transition.less +1 -2
- package/src/definitions/views/ad.less +0 -1
- package/src/definitions/views/card.less +0 -1
- package/src/definitions/views/comment.less +0 -1
- package/src/definitions/views/feed.less +0 -1
- package/src/definitions/views/item.less +0 -1
- package/src/definitions/views/statistic.less +0 -1
- package/src/semantic.less +1 -1
- package/src/themes/amazon/elements/button.overrides +1 -1
- package/src/themes/amazon/elements/button.variables +5 -6
- package/src/themes/amazon/globals/site.variables +2 -3
- package/src/themes/bookish/elements/header.variables +2 -2
- package/src/themes/bootstrap3/elements/button.variables +4 -5
- package/src/themes/chubby/collections/menu.variables +1 -1
- package/src/themes/chubby/elements/button.overrides +4 -4
- package/src/themes/chubby/modules/accordion.overrides +1 -1
- package/src/themes/chubby/views/comment.overrides +2 -2
- package/src/themes/chubby/views/comment.variables +2 -2
- package/src/themes/classic/collections/table.variables +2 -2
- package/src/themes/classic/elements/button.variables +11 -11
- package/src/themes/classic/modules/progress.variables +2 -2
- package/src/themes/classic/views/card.variables +2 -2
- package/src/themes/default/collections/form.variables +2 -3
- package/src/themes/default/collections/menu.variables +28 -28
- package/src/themes/default/collections/message.variables +1 -1
- package/src/themes/default/collections/table.variables +4 -4
- package/src/themes/default/elements/button.variables +9 -10
- package/src/themes/default/elements/divider.variables +1 -1
- package/src/themes/default/elements/icon.variables +2 -2
- package/src/themes/default/elements/image.variables +1 -1
- package/src/themes/default/elements/input.variables +2 -2
- package/src/themes/default/elements/label.variables +4 -4
- package/src/themes/default/elements/list.variables +1 -1
- package/src/themes/default/elements/placeholder.variables +6 -6
- package/src/themes/default/elements/segment.variables +8 -8
- package/src/themes/default/globals/reset.overrides +45 -201
- package/src/themes/default/globals/site.variables +50 -50
- package/src/themes/default/globals/variation.variables +3 -2
- package/src/themes/default/modules/accordion.variables +0 -1
- package/src/themes/default/modules/checkbox.variables +1 -1
- package/src/themes/default/modules/dimmer.variables +12 -12
- package/src/themes/default/modules/dropdown.variables +17 -16
- package/src/themes/default/modules/embed.variables +2 -2
- package/src/themes/default/modules/flyout.variables +3 -3
- package/src/themes/default/modules/modal.variables +14 -14
- package/src/themes/default/modules/nag.variables +1 -1
- package/src/themes/default/modules/rating.variables +1 -1
- package/src/themes/default/modules/search.variables +1 -1
- package/src/themes/default/modules/shape.variables +1 -1
- package/src/themes/default/modules/sidebar.variables +2 -2
- package/src/themes/default/modules/toast.variables +4 -4
- package/src/themes/default/views/card.variables +6 -7
- package/src/themes/default/views/feed.variables +4 -4
- package/src/themes/default/views/item.variables +2 -3
- package/src/themes/flat/collections/form.variables +1 -1
- package/src/themes/flat/globals/site.variables +9 -9
- package/src/themes/github/collections/form.overrides +3 -3
- package/src/themes/github/collections/form.variables +3 -3
- package/src/themes/github/collections/menu.overrides +1 -1
- package/src/themes/github/collections/menu.variables +10 -10
- package/src/themes/github/collections/message.variables +6 -6
- package/src/themes/github/elements/button.variables +17 -17
- package/src/themes/github/elements/input.variables +3 -3
- package/src/themes/github/elements/segment.variables +2 -2
- package/src/themes/github/elements/step.overrides +4 -4
- package/src/themes/github/elements/step.variables +3 -3
- package/src/themes/github/globals/site.variables +2 -2
- package/src/themes/github/modules/dropdown.variables +1 -3
- package/src/themes/gmail/collections/message.variables +2 -2
- package/src/themes/material/collections/menu.variables +1 -1
- package/src/themes/material/elements/button.overrides +4 -4
- package/src/themes/material/elements/button.variables +5 -5
- package/src/themes/material/modules/dropdown.variables +1 -1
- package/src/themes/material/modules/modal.variables +1 -1
- package/src/themes/raised/elements/button.variables +1 -1
- package/src/themes/round/elements/button.variables +12 -12
- package/src/themes/striped/modules/progress.overrides +3 -3
- package/src/themes/timeline/views/feed.variables +2 -2
- package/src/themes/twitter/elements/button.overrides +1 -1
- package/src/themes/twitter/elements/button.variables +4 -5
- package/tasks/admin/components/create.js +12 -15
- package/tasks/admin/components/init.js +11 -12
- package/tasks/admin/components/update.js +19 -20
- package/tasks/admin/distributions/create.js +30 -51
- package/tasks/admin/distributions/init.js +11 -12
- package/tasks/admin/distributions/update.js +18 -19
- package/tasks/admin/register.js +7 -7
- package/tasks/build/assets.js +1 -1
- package/tasks/build/css.js +5 -5
- package/tasks/build/javascript.js +1 -1
- package/tasks/config/admin/github.js +1 -1
- package/tasks/config/admin/templates/css-package.js +1 -1
- package/tasks/config/admin/templates/less-package.js +1 -1
- package/tasks/config/project/config.js +10 -10
- package/tasks/config/project/install.js +12 -12
- package/tasks/config/project/release.js +6 -12
- package/tasks/config/tasks.js +15 -11
- package/tasks/config/user.js +1 -4
- package/tasks/docs/metadata.js +18 -20
- package/tasks/install.js +14 -12
- package/test/meteor/assets.js +4 -4
- package/test/meteor/fonts.js +10 -11
- package/test/modules/module.spec.js +18 -18
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* # Fomantic-UI 2.10.0-beta.
|
|
2
|
+
* # Fomantic-UI 2.10.0-beta.81+4f706c2 - Calendar
|
|
3
3
|
* https://github.com/fomantic/Fomantic-UI/
|
|
4
4
|
*
|
|
5
5
|
*
|
|
6
6
|
* Released under the MIT license
|
|
7
7
|
* https://opensource.org/licenses/MIT
|
|
8
8
|
*
|
|
9
|
-
*/.ui.calendar.popup{max-width:none;padding:0;border:none;-webkit-user-select:none;user-select:none}.ui.calendar.popup.inverted::before{background:#2b2b2b}.ui.calendar .calendar:focus,.ui.calendar.popup:focus{outline:0}.ui.calendar.popup .ui.grid{display:block;white-space:nowrap}.ui.calendar.popup .ui.grid>.column{width:auto}.ui.calendar .ui.table.minute,.ui.calendar .ui.table.month,.ui.calendar .ui.table.year{min-width:15em}.ui.calendar .ui.table.day{min-width:18em}.ui.calendar .ui.table.day.andweek{min-width:22em}.ui.calendar .ui.table.hour{min-width:20em}.ui.calendar .ui.table tr td,.ui.calendar .ui.table tr th{padding:.5em;white-space:nowrap}.ui.calendar .ui.table tr th{border-left:none}.ui.calendar .ui.table tr th i.icon{margin:0}.ui.calendar .ui.table tr:first-child th{position:relative;padding-left:0;padding-right:0}.ui.calendar .ui.table.day tr:first-child th{border:none}.ui.calendar .ui.table.day tr:nth-child(2) th{padding-top:.2em;padding-bottom:.3em}.ui.calendar .ui.table tr td{padding-left:.1em;padding-right:.1em}.ui.calendar .ui.table tr .link{cursor:pointer}.ui.calendar .ui.table tr .prev.link{width:14.28571429%;position:absolute;left:0}.ui.calendar .ui.table tr .next.link{width:14.28571429%;position:absolute;right:0}.ui.ui.calendar .ui.table tr .disabled{pointer-events:auto;cursor:default;color:rgba(40,40,40,.3)}.ui.calendar .ui.table tr .adjacent:not(.disabled
|
|
9
|
+
*/.ui.calendar.popup{max-width:none;padding:0;border:none;-webkit-user-select:none;user-select:none}.ui.calendar.popup.inverted::before{background:#2b2b2b}.ui.calendar .calendar:focus,.ui.calendar.popup:focus{outline:0}.ui.calendar.popup .ui.grid{display:block;white-space:nowrap}.ui.calendar.popup .ui.grid>.column{width:auto}.ui.calendar .ui.table.minute,.ui.calendar .ui.table.month,.ui.calendar .ui.table.year{min-width:15em}.ui.calendar .ui.table.day{min-width:18em}.ui.calendar .ui.table.day.andweek{min-width:22em}.ui.calendar .ui.table.hour{min-width:20em}.ui.calendar .ui.table tr td,.ui.calendar .ui.table tr th{padding:.5em;white-space:nowrap}.ui.calendar .ui.table tr th{border-left:none}.ui.calendar .ui.table tr th i.icon{margin:0}.ui.calendar .ui.table tr:first-child th{position:relative;padding-left:0;padding-right:0}.ui.calendar .ui.table.day tr:first-child th{border:none}.ui.calendar .ui.table.day tr:nth-child(2) th{padding-top:.2em;padding-bottom:.3em}.ui.calendar .ui.table tr td{padding-left:.1em;padding-right:.1em}.ui.calendar .ui.table tr .link{cursor:pointer}.ui.calendar .ui.table tr .prev.link{width:14.28571429%;position:absolute;left:0}.ui.calendar .ui.table tr .next.link{width:14.28571429%;position:absolute;right:0}.ui.ui.calendar .ui.table tr .disabled{pointer-events:auto;cursor:default;color:rgba(40,40,40,.3)}.ui.calendar .ui.table tr .adjacent:not(.disabled,.active){color:rgba(0,0,0,.6);background:rgba(0,0,0,.03)}.ui.calendar .ui.table tr td.today{font-weight:700}.ui.calendar .ui.table tr td.range{background:rgba(0,0,0,.05);color:rgba(0,0,0,.95);box-shadow:none}.ui.calendar:not(.disabled).popup.active .ui.table tbody tr td.focus,.ui.calendar:not(.disabled):focus .ui.table tbody tr td.focus{box-shadow:inset 0 0 0 1px #85b7d9}.ui.inverted.calendar .ui.table.inverted tr td.range{background:rgba(255,255,255,.08);color:#fff;box-shadow:none}.ui.inverted.calendar:not(.disabled) .calendar:focus .ui.table.inverted tbody tr td.focus,.ui.inverted.calendar:not(.disabled).popup.active .ui.table.inverted tbody tr td.focus{box-shadow:inset 0 0 0 1px #85b7d9}.ui.inverted.calendar .ui.ui.ui.inverted.table tr .disabled{color:rgba(225,225,225,.3)}.ui.inverted.calendar .ui.inverted.table tr .adjacent:not(.disabled,.active){color:rgba(255,255,255,.8);background:rgba(255,255,255,.02)}.ui.ui.ui.calendar.popup>.ui.ui.grid{margin:-1rem}.ui.ui.ui.calendar.popup>.ui.ui.grid>.column:not(:first-child){padding-left:0}.ui.ui.ui.calendar.popup>.ui.ui.grid>.column:not(:first-child)>.ui.table{border-top-left-radius:0;border-bottom-left-radius:0}.ui.ui.ui.calendar.popup>.ui.ui.grid>.column:not(:last-child){padding-right:0}.ui.ui.ui.calendar.popup>.ui.ui.grid>.column:not(:last-child)>.ui.table{border-top-right-radius:0;border-bottom-right-radius:0}.ui.mini.calendar,.ui.mini.calendar .ui.table tr td,.ui.mini.calendar .ui.table tr th{font-size:.78571429rem}.ui.mini.calendar .ui.table.minute,.ui.mini.calendar .ui.table.month,.ui.mini.calendar .ui.table.year{min-width:11.78571429em}.ui.mini.calendar .ui.table.day{min-width:14.14285714em}.ui.mini.calendar .ui.table.day.andweek{min-width:17.28571429em}.ui.mini.calendar .ui.table.hour{min-width:15.71428571em}.ui.tiny.calendar,.ui.tiny.calendar .ui.table tr td,.ui.tiny.calendar .ui.table tr th{font-size:.85714286rem}.ui.tiny.calendar .ui.table.minute,.ui.tiny.calendar .ui.table.month,.ui.tiny.calendar .ui.table.year{min-width:12.85714286em}.ui.tiny.calendar .ui.table.day{min-width:15.42857143em}.ui.tiny.calendar .ui.table.day.andweek{min-width:18.85714286em}.ui.tiny.calendar .ui.table.hour{min-width:17.14285714em}.ui.small.calendar,.ui.small.calendar .ui.table tr td,.ui.small.calendar .ui.table tr th{font-size:.92857143rem}.ui.small.calendar .ui.table.minute,.ui.small.calendar .ui.table.month,.ui.small.calendar .ui.table.year{min-width:13.92857143em}.ui.small.calendar .ui.table.day{min-width:16.71428571em}.ui.small.calendar .ui.table.day.andweek{min-width:20.42857143em}.ui.small.calendar .ui.table.hour{min-width:18.57142857em}.ui.large.calendar,.ui.large.calendar .ui.table tr td,.ui.large.calendar .ui.table tr th{font-size:1.14285714rem}.ui.large.calendar .ui.table.minute,.ui.large.calendar .ui.table.month,.ui.large.calendar .ui.table.year{min-width:17.14285714em}.ui.large.calendar .ui.table.day{min-width:20.57142857em}.ui.large.calendar .ui.table.day.andweek{min-width:25.14285714em}.ui.large.calendar .ui.table.hour{min-width:22.85714286em}.ui.big.calendar,.ui.big.calendar .ui.table tr td,.ui.big.calendar .ui.table tr th{font-size:1.28571429rem}.ui.big.calendar .ui.table.minute,.ui.big.calendar .ui.table.month,.ui.big.calendar .ui.table.year{min-width:19.28571429em}.ui.big.calendar .ui.table.day{min-width:23.14285714em}.ui.big.calendar .ui.table.day.andweek{min-width:28.28571429em}.ui.big.calendar .ui.table.hour{min-width:25.71428571em}.ui.huge.calendar,.ui.huge.calendar .ui.table tr td,.ui.huge.calendar .ui.table tr th{font-size:1.42857143rem}.ui.huge.calendar .ui.table.minute,.ui.huge.calendar .ui.table.month,.ui.huge.calendar .ui.table.year{min-width:21.42857143em}.ui.huge.calendar .ui.table.day{min-width:25.71428571em}.ui.huge.calendar .ui.table.day.andweek{min-width:31.42857143em}.ui.huge.calendar .ui.table.hour{min-width:28.57142857em}.ui.massive.calendar,.ui.massive.calendar .ui.table tr td,.ui.massive.calendar .ui.table tr th{font-size:1.71428571rem}.ui.massive.calendar .ui.table.minute,.ui.massive.calendar .ui.table.month,.ui.massive.calendar .ui.table.year{min-width:25.71428571em}.ui.massive.calendar .ui.table.day{min-width:30.85714286em}.ui.massive.calendar .ui.table.day.andweek{min-width:37.71428571em}.ui.massive.calendar .ui.table.hour{min-width:34.28571429em}.ui.disabled.calendar{opacity:.45}.ui.disabled.calendar .ui.table tr .link,.ui.disabled.calendar>.input{pointer-events:none}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* # Fomantic UI - 2.10.0-beta.
|
|
2
|
+
* # Fomantic UI - 2.10.0-beta.81+4f706c2
|
|
3
3
|
* https://github.com/fomantic/Fomantic-UI
|
|
4
4
|
* https://fomantic-ui.com/
|
|
5
5
|
*
|
|
6
|
-
* Copyright
|
|
6
|
+
* Copyright 2026 Contributors
|
|
7
7
|
* Released under the MIT license
|
|
8
8
|
* https://opensource.org/licenses/MIT
|
|
9
9
|
*
|
|
10
10
|
*/
|
|
11
|
-
!function(ee,x,T){"use strict";x=void 0!==x&&x.Math===Math?x:globalThis,ee.fn.calendar=function(m){let e=ee(this),g=ee(T),y=Date.now(),D=[],v=m,b="string"==typeof v,M=[].slice.call(arguments,1),C,w={5:{row:4,column:3},10:{row:3,column:2},15:{row:2,column:2},20:{row:3,column:1},30:{row:2,column:1}},X=["","one","two","three","four","five","six","seven","eight"];return e.each(function(){let K=ee.isPlainObject(m)?ee.extend(!0,{},ee.fn.calendar.settings,m):ee.extend({},ee.fn.calendar.settings),U=K.className,a=K.namespace,n=K.selector,$=K.formatter,J=K.parser,L=K.metadata,z=w[K.minTimeGap],l=K.error,e="."+a,t="module-"+a,r=ee(this),i=r.find(n.input),o=r.find(n.activator),d=this,u=r.data(t),_=u&&u.popupId?g.find("#"+u.popupId):r.find(n.popup),p,c=!1,Q=r.hasClass(U.inverted),s=!1,f=!1,h,Z;Z={initialize:function(){Z.debug("Initializing calendar for",d,r),p=Z.get.isTouch(),Z.setup.config(),Z.setup.popup(),Z.setup.inline(),Z.setup.input(),Z.setup.date(),Z.create.calendar(),Z.bind.events(),Z.observeChanges(),Z.instantiate()},instantiate:function(){Z.verbose("Storing instance of calendar"),u=Z,r.data(t,u)},destroy:function(){Z.verbose("Destroying previous calendar for",d),r.removeData([L.date,L.focusDate,L.startDate,L.endDate,L.minDate,L.maxDate,L.mode,L.monthOffset,t]),Z.unbind.events(),Z.disconnect.classObserver()},setup:{config:function(){null!==Z.get.minDate()&&Z.set.minDate(r.data(L.minDate)),null!==Z.get.maxDate()&&Z.set.maxDate(r.data(L.maxDate)),Z.setting("type",Z.get.type()),Z.setting("on",K.on||"click")},popup:function(){if(!K.inline&&(0!==o.length||0!==(o=r.children().first()).length))if(void 0===ee.fn.popup)Z.error(l.popup);else{if(0===_.length)if(K.context)Z.popupId=a+"_popup_"+(Math.random().toString(16)+"000000000").slice(2,10),_=ee("<div/>",{id:Z.popupId}).addClass(U.popup).appendTo(g.find(K.context));else{let e=o.parent();var t=0<e.closest(n.append).length?"appendTo":"prependTo";_=ee("<div/>").addClass(U.popup)[t](e)}_.addClass(U.calendar),Q&&_.addClass(U.inverted);let e=function(){return Z.refreshTooltips(),K.onVisible.apply(_,arguments)};0===i.length&&(_.attr("tabindex","0"),e=function(){return Z.refreshTooltips(),Z.focus(),K.onVisible.apply(_,arguments)});t=Z.setting("on"),t=ee.extend({},K.popupOptions,{popup:_,movePopup:!K.context,on:t,hoverable:"hover"===t,closable:"click"===t,onShow:function(){return Z.set.focusDate(Z.get.date()),Z.set.mode(Z.get.validatedMode(K.startMode)),K.onShow.apply(_,arguments)},onVisible:e,onHide:K.onHide,onHidden:function(){return Z.blur(),K.onHidden.apply(_,arguments)}});Z.popup(t)}},inline:function(){0<o.length&&!K.inline||(K.inline=!0,_=ee("<div/>").addClass(U.calendar).appendTo(r),0===i.length&&_.attr("tabindex","0"))},input:function(){K.touchReadonly&&0<i.length&&p&&i.prop("readonly",!0),Z.check.disabled()},date:function(){let e;K.initialDate?e=J.date(K.initialDate,K):void 0!==r.data(L.date)?e=J.date(r.data(L.date),K):0<i.length&&(e=J.date(i.val(),K)),Z.set.date(e,K.formatInput,!1),Z.set.mode(Z.get.mode(),!1)}},trigger:{change:function(){let t=i[0];if(t){let e=T.createEvent("HTMLEvents");Z.verbose("Triggering native change event"),e.initEvent("change",!0,!1),t.dispatchEvent(e)}}},create:{calendar:function(){let n,r,o,i,s,l,d;var u=Z.get.mode(),p=new Date,c=Z.get.date();let f=Z.get.focusDate(),e=Z.helper.dateInRange(f||c||J.date(K.initialDate,K)||p);f||(f=e,Z.set.focusDate(f,!1,!1));var h="year"===u,m="month"===u,g="day"===u,y="hour"===u,D="minute"===u,W="time"===K.type,t=Math.max(K.multiMonth,1),a=g?Z.get.monthOffset():0,v=e.getMinutes(),b=e.getHours(),M=e.getDate(),R=e.getMonth()+a,C=e.getFullYear(),w=g?K.showWeekNumbers?8:7:y?4:z.column;let x=g||y?6:z.row;var T=g?t:1;let Y=_;var O=Y.hasClass("left")?"right center":"left center";for(Y.empty(),1<T&&(d=ee("<div/>").addClass(U.grid).appendTo(Y)),i=0;i<T;i++){1<T&&(A=ee("<div/>").addClass(U.column).appendTo(d),Y=A);var k=R+i,A=(new Date(C,k,1).getDay()-K.firstDayOfWeek%7+7)%7,F=(!K.constantHeight&&g&&(F=new Date(C,k+1,0).getDate()+A,x=Math.ceil(F/7)),h?10:m?1:0),N=g?1:0,H=y||D?1:0,E=y||D?M:1,V=new Date(C-F,k-N,E-H,b),N=new Date(C+F,k+N,E+H,b),E=h?new Date(10*Math.ceil(C/10)-9,0,0):m?new Date(C,0,0):g?new Date(C,k,0):new Date(C,k,M,-1),H=h?new Date(10*Math.ceil(C/10)+1,0,1):m?new Date(C+1,0,1):g?new Date(C,k+1,1):new Date(C,k,M+1);let e=u,t=(g&&K.showWeekNumbers&&(e+=" andweek"),ee("<table/>").addClass(U.table).addClass(e).addClass(X[w]+" column").appendTo(Y)),a=(Q&&t.addClass(U.inverted),w);if(!W){var G=ee("<thead/>").appendTo(t),I=(s=ee("<tr/>").appendTo(G),l=ee("<th/>").attr("colspan",""+w).appendTo(s),h||m?new Date(C,0,1):g?new Date(C,k,1):new Date(C,k,M,b,v));let e=ee("<span/>").addClass(U.link).appendTo(l);e.text(Z.helper.dateFormat($[u+"Header"],I));I=m?K.disableYear?"day":"year":g?K.disableMonth?"year":"month":"day";if(e.data(L.mode,I),0===i){let e=ee("<span/>").addClass(U.prev).appendTo(l);e.data(L.focusDate,V),e.toggleClass(U.disabledCell,!Z.helper.isDateInRange(E,u)),ee("<i/>").addClass(U.prevIcon).appendTo(e)}if(i===T-1){let e=ee("<span/>").addClass(U.next).appendTo(l);e.data(L.focusDate,N),e.toggleClass(U.disabledCell,!Z.helper.isDateInRange(H,u)),ee("<i/>").addClass(U.nextIcon).appendTo(e)}if(g)for(s=ee("<tr/>").appendTo(G),K.showWeekNumbers&&((l=ee("<th/>").appendTo(s)).text(K.text.weekNo),l.addClass(U.weekCell),a--),n=0;n<a;n++)(l=ee("<th/>").appendTo(s)).text($.dayColumnHeader((n+K.firstDayOfWeek)%7,K))}var P=ee("<tbody/>").appendTo(t);for(n=h?10*Math.ceil(C/10)-9:g?1-A:0,r=0;r<x;r++)for(s=ee("<tr/>").appendTo(P),g&&K.showWeekNumbers&&((l=ee("<th/>").appendTo(s)).text(Z.get.weekOfYear(C,k,n+1-K.firstDayOfWeek)),l.addClass(U.weekCell)),o=0;o<a;o++,n++){let e=h?new Date(n,k,1,b,v):m?new Date(C,n,1,b,v):g?new Date(C,k,n,b,v):y?new Date(C,k,M,n):new Date(C,k,M,b,n*K.minTimeGap);var j=h?n:m?K.text.monthsShort[n]:g?e.getDate():Z.helper.dateFormat($.cellTime,e),j=((l=ee("<td/>").addClass(U.cell).appendTo(s)).text(j),l.data(L.date,e),g&&e.getMonth()!==(k+12)%12),S=!K.selectAdjacentDays&&j||!Z.helper.isDateInRange(e,u)||K.isDisabled(e,u)||Z.helper.isDisabled(e,u)||!Z.helper.isEnabled(e,u);let t;S?(null!==(q=Z.helper.findDayAsObject(e,u,K.disabledDates))&&q[L.message]&&(l.attr("data-tooltip",q[L.message]),l.attr("data-position",q[L.position]||O),(q[L.inverted]||Q&&void 0===q[L.inverted])&&l.attr("data-inverted",""),q[L.variation]&&l.attr("data-variation",q[L.variation])),"hour"===u&&null!==(q=Z.helper.findHourAsObject(e,u,K.disabledHours))&&q[L.message]&&(l.attr("data-tooltip",q[L.message]),l.attr("data-position",q[L.position]||O),(q[L.inverted]||Q&&void 0===q[L.inverted])&&l.attr("data-inverted",""),q[L.variation]&&l.attr("data-variation",q[L.variation]))):null!==(t=Z.helper.findDayAsObject(e,u,K.eventDates))&&(l.addClass(t[L.class]||K.eventClass),t[L.message]&&(l.attr("data-tooltip",t[L.message]),l.attr("data-position",t[L.position]||O),(t[L.inverted]||Q&&void 0===t[L.inverted])&&l.attr("data-inverted",""),t[L.variation]&&l.attr("data-variation",t[L.variation])));var q=Z.helper.dateEqual(e,c,u),B=Z.helper.dateEqual(e,p,u),j=(l.toggleClass(U.adjacentCell,j&&!t),l.toggleClass(U.disabledCell,S),l.toggleClass(U.activeCell,q&&!(j&&S)),y||D||l.toggleClass(U.todayCell,!j&&B),{mode:u,adjacent:j,disabled:S,active:q,today:B});$.cell(l,e,j),Z.helper.dateEqual(e,f,u)&&Z.set.focusDate(e,!1,!1)}if(K.today){I=ee("<tr/>").appendTo(P);let e=ee("<td/>").attr("colspan",""+w).addClass(U.today).appendTo(I);e.text($.today(K)),e.data(L.date,p)}Z.update.focus(!1,t),K.inline&&Z.refreshTooltips()}}},update:{focus:function(e,t){t=t||_;let i=Z.get.mode();var a=Z.get.date();let s=Z.get.focusDate(),l=Z.get.startDate(),d=Z.get.endDate(),u=(e?s:null)||a||(p?null:s);t.find("td").each(function(){let e=ee(this);var t,a,n,r,o=e.data(L.date);o&&(t=e.hasClass(U.disabledCell),a=e.hasClass(U.activeCell),n=e.hasClass(U.adjacentCell),r=Z.helper.dateEqual(o,s,i),o=!!u&&(!!l&&Z.helper.isDateInRange(o,i,l,u)||!!d&&Z.helper.isDateInRange(o,i,u,d)),e.toggleClass(U.focusCell,r&&(!p||c)&&(!n||K.selectAdjacentDays&&n)&&!t),Z.helper.isTodayButton(e)||e.toggleClass(U.rangeCell,o&&!a&&!t))})}},refresh:function(){Z.create.calendar()},refreshTooltips:function(){let n=ee(x).width();_.find("td[data-position]").each(function(){let e=ee(this);var t=x.getComputedStyle(e[0],"::after").width.replace(/[^\d.]/g,"");let a=e.attr("data-position");t=n-e.width()-(parseInt(t,10)||250)>e.offset().left?"right":"left";-1===a.indexOf(t)&&e.attr("data-position",a.replace(/(left|right)/,t))})},bind:{events:function(){Z.debug("Binding events"),_.on("mousedown"+e,Z.event.mousedown),_.on("touchstart"+e,Z.event.mousedown),_.on("mouseup"+e,Z.event.mouseup),_.on("touchend"+e,Z.event.mouseup),_.on("mouseover"+e,Z.event.mouseover),0<i.length?(i.on("input"+e,Z.event.inputChange),i.on("focus"+e,Z.event.inputFocus),i.on("blur"+e,Z.event.inputBlur),i.on("keydown"+e,Z.event.keydown)):_.on("keydown"+e,Z.event.keydown)}},unbind:{events:function(){Z.debug("Unbinding events"),_.off(e),0<i.length&&i.off(e)}},event:{mouseover:function(e){let t=ee(e.target);var a=t.data(L.date),e=1===e.buttons;a&&Z.set.focusDate(a,!1,!0,e)},mousedown:function(e){0<i.length&&e.preventDefault(),c=0<=e.type.indexOf("touch");let t=ee(e.target);e=t.data(L.date);e&&Z.set.focusDate(e,!1,!0,!0)},mouseup:function(t){Z.focus(),t.preventDefault(),t.stopPropagation(),c=!1;let a=ee(t.target);if(!a.hasClass("disabled")){let e=a.parent();var n,t=(a=e.data(L.date)||e.data(L.focusDate)||e.data(L.mode)?e:a).data(L.date),r=a.data(L.focusDate),o=a.data(L.mode);t&&!1!==K.onSelect.call(d,t,Z.get.mode())?(n=a.hasClass(U.today),Z.selectDate(t,n)):r?Z.set.focusDate(r):o&&Z.set.mode(o)}},keydown:function(e){var a=e.which;if(9===a&&Z.popup("hide"),Z.popup("is visible")){var n=Z.get.mode();switch(a){case 37:case 38:case 39:case 40:{var r="day"===n?7:"hour"===n?4:"minute"===n?z.column:3,r=37===a?-1:38===a?-r:39===a?1:r;r*="minute"===n?K.minTimeGap:1;let e=Z.get.focusDate()||Z.get.date()||new Date;var o=e.getFullYear()+("year"===n?r:0),i=e.getMonth()+("month"===n?r:0),s=e.getDate()+("day"===n?r:0),l=e.getHours()+("hour"===n?r:0),r=e.getMinutes()+("minute"===n?r:0);let t=new Date(o,i,s,l,r);"time"===K.type&&(t=Z.helper.mergeDateTime(e,t)),Z.helper.isDateInRange(t,n)&&Z.set.focusDate(t);break}case 13:o=Z.get.focusDate();o&&!K.isDisabled(o,n)&&!Z.helper.isDisabled(o,n)&&Z.helper.isEnabled(o,n)&&!1!==K.onSelect.call(d,o,Z.get.mode())&&Z.selectDate(o),e.preventDefault(),e.stopPropagation();break;case 27:Z.popup("hide"),e.stopPropagation()}}38!==a&&40!==a||(e.preventDefault(),Z.popup("show"))},inputChange:function(){var e=i.val(),e=J.date(e,K);Z.set.date(e,!1)},inputFocus:function(){_.addClass(U.active)},inputBlur:function(){var e;_.removeClass(U.active),K.formatInput&&(e=Z.get.date(),e=Z.helper.dateFormat($[K.type],e),i.val(e)),f&&(Z.trigger.change(),f=!1)},class:{mutation:function(e){e.forEach(function(e){"class"===e.attributeName&&Z.check.disabled()})}}},observeChanges:function(){"MutationObserver"in x&&(h=new MutationObserver(Z.event.class.mutation),Z.debug("Setting up mutation observer",h),Z.observe.class())},disconnect:{classObserver:function(){0<i.length&&h&&h.disconnect()}},observe:{class:function(){0<i.length&&h&&h.observe(r[0],{attributes:!0})}},is:{disabled:function(){return r.hasClass(U.disabled)}},check:{disabled:function(){i.attr("tabindex",Z.is.disabled()?-1:0)}},get:{weekOfYear:function(e,t,a){e=Date.UTC(e,t,a+3)/864e5,t=Math.floor(e/7),a=new Date(6048e5*t).getUTCFullYear();return t-Math.floor(Date.UTC(a,0,7)/6048e5)+1},formattedDate:function(e,t){return Z.helper.dateFormat(e||$[K.type],t||Z.get.date())},date:function(e){return Z.helper.dateObjectOrFormatted(e,r.data(L.date))},inputDate:function(){return i.val()},focusDate:function(e){return Z.helper.dateObjectOrFormatted(e,r.data(L.focusDate))},startDate:function(e){let t=Z.get.calendarModule(K.startCalendar);return t?t.get.date(e):Z.helper.dateObjectOrFormatted(e,r.data(L.startDate))},endDate:function(e){let t=Z.get.calendarModule(K.endCalendar);return t?t.get.date(e):Z.helper.dateObjectOrFormatted(e,r.data(L.endDate))},minDate:function(){return r.data(L.minDate)||null},maxDate:function(){return r.data(L.maxDate)||null},monthOffset:function(){return r.data(L.monthOffset)||K.monthOffset||0},mode:function(){var e=r.data(L.mode)||K.startMode;return Z.get.validatedMode(e)},validatedMode:function(e){var t=Z.get.validModes();return 0<=ee.inArray(e,t)?e:"time"===K.type?"hour":"month"===K.type?"month":"year"===K.type?"year":"day"},type:function(){return r.data(L.type)||K.type},validModes:function(){let e=[];return"time"!==K.type&&(K.disableYear&&"year"!==K.type||e.push("year"),(K.disableMonth||"year"===K.type)&&"month"!==K.type||e.push("month"),0<=K.type.indexOf("date")&&e.push("day")),0<=K.type.indexOf("time")&&(e.push("hour"),K.disableMinute||e.push("minute")),e},isTouch:function(){try{return T.createEvent("TouchEvent"),!0}catch(e){return!1}},calendarModule:function(e){return e?(e=e instanceof ee?e:g.find(e).first()).data(t):null}},set:{date:function(e,t,a){t=!1!==t,a=!1!==a,e=Z.helper.sanitiseDate(e),e=Z.helper.dateInRange(e);var n=Z.get.mode(),r=Z.helper.dateFormat($[K.type],e);if(a&&!1===K.onBeforeChange.call(d,e,r,n))return!1;if(Z.set.focusDate(e),K.isDisabled(e,n))return!1;var o=Z.get.endDate();o&&e&&o<e&&Z.set.endDate(),Z.set.dataKeyValue(L.date,e),t&&0<i.length&&i.val(r),a&&K.onChange.call(d,e,r,n)},startDate:function(e,t){e=Z.helper.sanitiseDate(e);let a=Z.get.calendarModule(K.startCalendar);a&&a.set.date(e),Z.set.dataKeyValue(L.startDate,e,t)},endDate:function(e,t){e=Z.helper.sanitiseDate(e);let a=Z.get.calendarModule(K.endCalendar);a&&a.set.date(e),Z.set.dataKeyValue(L.endDate,e,t)},focusDate:function(e,t,a,n){e=Z.helper.sanitiseDate(e),e=Z.helper.dateInRange(e);var r="day"===Z.get.mode();let o=Z.get.focusDate();r&&e&&o&&((r=12*(e.getFullYear()-o.getFullYear())+e.getMonth()-o.getMonth())&&(r=Z.get.monthOffset()-r,Z.set.monthOffset(r,!1)));r=Z.set.dataKeyValue(L.focusDate,e,!!e&&t);a=!1!==a&&r&&!1===t||s!=n,s=n,a&&Z.update.focus(n)},minDate:function(e){e=Z.helper.sanitiseDate(e),null!==K.maxDate&&K.maxDate<=e?Z.verbose("Unable to set minDate variable bigger that maxDate variable",e,K.maxDate):(Z.setting("minDate",e),Z.set.dataKeyValue(L.minDate,e))},maxDate:function(e){e=Z.helper.sanitiseDate(e),null!==K.minDate&&K.minDate>=e?Z.verbose("Unable to set maxDate variable lower that minDate variable",e,K.minDate):(Z.setting("maxDate",e),Z.set.dataKeyValue(L.maxDate,e))},monthOffset:function(e,t){var a=Math.max(K.multiMonth,1);e=Math.max(1-a,Math.min(0,e)),Z.set.dataKeyValue(L.monthOffset,e,t)},mode:function(e,t){Z.set.dataKeyValue(L.mode,e,t)},dataKeyValue:function(e,t,a){var n=r.data(e),n=n===t||n<=t&&t<=n;return t?r.data(e,t):r.removeData(e),(a=!1!==a&&!n)&&Z.refresh(),!n}},selectDate:function(e,t){Z.verbose("New date selection",e);var a=Z.get.mode();if(t||"minute"===a||K.disableMinute&&"hour"===a||"date"===K.type&&"day"===a||"month"===K.type&&"month"===a||"year"===K.type&&"year"===a){t=!1===Z.set.date(e);if(!t&&(f=!0,K.closable)){Z.popup("hide");let e=Z.get.calendarModule(K.endCalendar);e&&(e.refresh(),"focus"!==e.setting("on")&&e.popup("show"),e.focus())}}else{t="year"===a?K.disableMonth?"day":"month":"month"===a?"day":"day"===a?"hour":"minute";Z.set.mode(t),"hour"===a||"day"===a&&Z.get.date()?Z.set.date(e,!0,!1):Z.set.focusDate(e)}},changeDate:function(e){Z.set.date(e)},clear:function(){Z.set.date()},popup:function(){return o.popup.apply(o,arguments)},focus:function(){(0<i.length?i:_).trigger("focus")},blur:function(){(0<i.length?i:_).trigger("blur")},helper:{dateFormat:function(e,t){if(!(t instanceof Date))return"";if("function"==typeof e)return e.call(Z,t,K);var a=t.getDate(),n=t.getMonth(),r=t.getFullYear(),o=t.getDay(),i=t.getHours(),s=t.getMinutes(),t=t.getSeconds(),l=Z.get.weekOfYear(r,n,a+1-K.firstDayOfWeek),d=i%12||12;let u=(i<12?K.text.am:K.text.pm).toLowerCase(),p={D:a,DD:("0"+a).slice(-2),M:n+1,MM:("0"+(n+1)).slice(-2),MMM:K.text.monthsShort[n],MMMM:K.text.months[n],Y:r,YY:String(r).slice(2),YYYY:r,d:o,dd:K.text.dayNamesShort[o].slice(0,2),ddd:K.text.dayNamesShort[o],dddd:K.text.dayNames[o],h:d,hh:("0"+d).slice(-2),H:i,HH:("0"+i).slice(-2),m:s,mm:("0"+s).slice(-2),s:t,ss:("0"+t).slice(-2),a:u,A:u.toUpperCase(),S:["th","st","nd","rd"][3<a%10||a%100-a%10==10?0:a%10],w:l,ww:("0"+l).slice(-2)};return e.replace(K.regExp.token,function(e){return e in p?p[e]:e.slice(1,-1)})},dateObjectOrFormatted:function(e,t){return e=e||"",(t=Z.helper.sanitiseDate(t)||null)?""===e?t:Z.helper.dateFormat(e,t):null},isDisabled:function(n,r){return("day"===r||"month"===r||"year"===r||"hour"===r)&&("day"===r&&-1!==K.disabledDaysOfWeek.indexOf(n.getDay())||K.disabledDates.some(function(t){let a=!1;if((t="string"==typeof t?Z.helper.sanitiseDate(t):t)instanceof Date)a=Z.helper.dateEqual(n,t,r);else if(null!==t&&"object"==typeof t)if(t[L.year])"number"==typeof t[L.year]?a=n.getFullYear()===t[L.year]:Array.isArray(t[L.year])&&(a=-1<t[L.year].indexOf(n.getFullYear()));else if(t[L.month]){if("number"==typeof t[L.month])a=n.getMonth()===t[L.month];else if(Array.isArray(t[L.month]))a=-1<t[L.month].indexOf(n.getMonth());else if(t[L.month]instanceof Date){let e=Z.helper.sanitiseDate(t[L.month]);a=n.getMonth()===e.getMonth()&&n.getFullYear()===e.getFullYear()}}else t[L.date]&&"day"===r&&(t[L.date]instanceof Date?a=Z.helper.dateEqual(n,Z.helper.sanitiseDate(t[L.date]),r):Array.isArray(t[L.date])&&(a=t[L.date].some(function(e){return Z.helper.dateEqual(n,e,r)})));return a})||"hour"===r&&K.disabledHours.some(function(e){let t=!1;return(e="string"==typeof e?Z.helper.sanitiseDate(e):e)instanceof Date?t=Z.helper.dateEqual(n,e,r):"number"==typeof e?t=n.getHours()===e:null!==e&&"object"==typeof e&&(e[L.date]&&(e[L.date]instanceof Date?t=Z.helper.dateEqual(n,Z.helper.sanitiseDate(e[L.date])):Array.isArray(e[L.date])&&(t=e[L.date].some(function(e){return Z.helper.dateEqual(n,e,r)}))),e[L.days]&&("number"==typeof e[L.days]?t=n.getDay()===e[L.days]:Array.isArray(e[L.days])&&(t=-1<e[L.days].indexOf(n.getDay()))),e[L.hours]&&("number"==typeof e[L.hours]?t=t&&n.getHours()===e[L.hours]:Array.isArray(e[L.hours])&&(t=t&&-1<e[L.hours].indexOf(n.getHours())))),t}))},isEnabled:function(a,n){return"day"!==n||(0===K.enabledDates.length||K.enabledDates.some(function(e){let t=!1;return(e="string"==typeof e?Z.helper.sanitiseDate(e):e)instanceof Date?t=Z.helper.dateEqual(a,e,n):null!==e&&"object"==typeof e&&e[L.date]&&(t=Z.helper.dateEqual(a,Z.helper.sanitiseDate(e[L.date]),n)),t}))},findDayAsObject:function(a,n,r){if("day"===n||"month"===n||"year"===n){let t;for(let e=0;e<r.length;e++){if((t="string"==typeof(t=r[e])?Z.helper.sanitiseDate(t):t)instanceof Date&&Z.helper.dateEqual(a,t,n)){let e={};return e[L.date]=t,e}if(null!==t&&"object"==typeof t)if(t[L.year]){if("number"==typeof t[L.year]&&a.getFullYear()===t[L.year])return t;if(Array.isArray(t[L.year])&&-1<t[L.year].indexOf(a.getFullYear()))return t}else if(t[L.month]){if("number"==typeof t[L.month]&&a.getMonth()===t[L.month])return t;if(Array.isArray(t[L.month])){if(-1<t[L.month].indexOf(a.getMonth()))return t}else if(t[L.month]instanceof Date){let e=Z.helper.sanitiseDate(t[L.month]);if(a.getMonth()===e.getMonth()&&a.getFullYear()===e.getFullYear())return t}}else if(t[L.date]&&"day"===n){if(t[L.date]instanceof Date&&Z.helper.dateEqual(a,Z.helper.sanitiseDate(t[L.date]),n))return t;if(Array.isArray(t[L.date])&&t[L.date].some(function(e){return Z.helper.dateEqual(a,e,n)}))return t}}}return null},findHourAsObject:function(a,n,r){if("hour"===n){let t;var o=function(e,t){if(t[L.hours])return"number"==typeof t[L.hours]&&e.getHours()===t[L.hours]||Array.isArray(t[L.hours])&&-1<t[L.hours].indexOf(e.getHours())?t:void 0};for(let e=0;e<r.length;e++){if("number"==typeof(t=r[e])&&a.getHours()===t)return null;if(null!==t&&"object"==typeof t)if(t[L.days]&&o(a,t)){if("number"==typeof t[L.days]&&a.getDay()===t[L.days])return t;if(Array.isArray(t[L.days])&&-1<t[L.days].indexOf(a.getDay()))return t}else if(t[L.date]&&o(a,t)){if(t[L.date]instanceof Date&&Z.helper.dateEqual(a,Z.helper.sanitiseDate(t[L.date])))return t;if(Array.isArray(t[L.date])&&t[L.date].some(function(e){return Z.helper.dateEqual(a,e,n)}))return t}else if(o(a,t))return t}}return null},sanitiseDate:function(e){return!(e=e instanceof Date?e:J.date(""+e,K))||isNaN(e.getTime())?null:e},dateDiff:function(e,t,a){a=a||"day";var n="time"===K.type,r="year"===a,o=r||"month"===a,i="minute"===a,a=i||"hour"===a;return e=new Date(n?2e3:e.getFullYear(),n||r?0:e.getMonth(),n||o?1:e.getDate(),a?e.getHours():0,i?K.minTimeGap*Math.floor(e.getMinutes()/K.minTimeGap):0),(t=new Date(n?2e3:t.getFullYear(),n||r?0:t.getMonth(),n||o?1:t.getDate(),a?t.getHours():0,i?K.minTimeGap*Math.floor(t.getMinutes()/K.minTimeGap):0)).getTime()-e.getTime()},dateEqual:function(e,t,a){return!!e&&!!t&&0===Z.helper.dateDiff(e,t,a)},isDateInRange:function(e,t,a,n){var r;return a||n||(a=(r=Z.get.startDate())&&K.minDate?new Date(Math.max(r,K.minDate)):r||K.minDate,n=K.maxDate),a=a&&new Date(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),K.minTimeGap*Math.ceil(a.getMinutes()/K.minTimeGap)),!(!e||a&&0<Z.helper.dateDiff(e,a,t)||n&&0<Z.helper.dateDiff(n,e,t))},dateInRange:function(e,t,a){t||a||(t=(n=Z.get.startDate())&&K.minDate?new Date(Math.max(n,K.minDate)):n||K.minDate,a=K.maxDate),t=t&&new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),K.minTimeGap*Math.ceil(t.getMinutes()/K.minTimeGap));var n="time"===K.type;return e&&(t&&0<Z.helper.dateDiff(e,t,"minute")?n?Z.helper.mergeDateTime(e,t):t:a&&0<Z.helper.dateDiff(a,e,"minute")?n?Z.helper.mergeDateTime(e,a):a:e)},mergeDateTime:function(e,t){return e&&t?new Date(e.getFullYear(),e.getMonth(),e.getDate(),t.getHours(),t.getMinutes()):t},isTodayButton:function(e){return e.text()===K.text.today}},setting:function(e,t){if(Z.debug("Changing setting",e,t),ee.isPlainObject(e))ee.extend(!0,K,e);else{if(void 0===t)return K[e];ee.isPlainObject(K[e])?ee.extend(!0,K[e],t):K[e]=t}},internal:function(e,t){if(ee.isPlainObject(e))ee.extend(!0,Z,e);else{if(void 0===t)return Z[e];Z[e]=t}},debug:function(){!K.silent&&K.debug&&(K.performance?Z.performance.log(arguments):(Z.debug=Function.prototype.bind.call(console.info,console,K.name+":"),Z.debug.apply(console,arguments)))},verbose:function(){!K.silent&&K.verbose&&K.debug&&(K.performance?Z.performance.log(arguments):(Z.verbose=Function.prototype.bind.call(console.info,console,K.name+":"),Z.verbose.apply(console,arguments)))},error:function(){K.silent||(Z.error=Function.prototype.bind.call(console.error,console,K.name+":"),Z.error.apply(console,arguments))},performance:{log:function(e){var t,a;K.performance&&(a=(t=Date.now())-(y||t),y=t,D.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:d,"Execution Time":a})),clearTimeout(Z.performance.timer),Z.performance.timer=setTimeout(function(){Z.performance.display()},500)},display:function(){var e=K.name+":";let a=0;y=!1,clearTimeout(Z.performance.timer),ee.each(D,function(e,t){a+=t["Execution Time"]}),e+=" "+a+"ms",0<D.length&&(console.groupCollapsed(e),console.table?console.table(D):ee.each(D,function(e,t){console.log(t.Name+": "+t["Execution Time"]+"ms")}),console.groupEnd()),D=[]}},invoke:function(n,e,t){let r=u,o,i,a;var s;return e=e||M,t=t||d,"string"==typeof n&&void 0!==r&&(n=n.split(/[ .]/),o=n.length-1,ee.each(n,function(e,t){var a=e!==o?t+n[e+1].charAt(0).toUpperCase()+n[e+1].slice(1):n;if(ee.isPlainObject(r[a])&&e!==o)r=r[a];else{if(void 0!==r[a])return i=r[a],!1;{if(!ee.isPlainObject(r[t])||e===o)return void 0!==r[t]?i=r[t]:Z.error(l.method,n),!1;r=r[t]}}})),"function"==typeof(s=i)&&"number"!=typeof s.nodeType?a=i.apply(t,e):void 0!==i&&(a=i),Array.isArray(C)?C.push(a):void 0!==C?C=[C,a]:void 0!==a&&(C=a),i}},b?(void 0===u&&Z.initialize(),Z.invoke(v)):(void 0!==u&&u.invoke("destroy"),Z.initialize())}),void 0!==C?C:this},ee.fn.calendar.settings={name:"Calendar",namespace:"calendar",silent:!1,debug:!1,verbose:!1,performance:!0,context:!1,type:"datetime",firstDayOfWeek:0,constantHeight:!0,today:!1,closable:!0,monthFirst:!1,touchReadonly:!0,inline:!1,on:null,initialDate:null,startMode:!1,minDate:null,maxDate:null,disableYear:!1,disableMonth:!1,disableMinute:!1,formatInput:!0,startCalendar:null,endCalendar:null,multiMonth:1,monthOffset:0,minTimeGap:5,showWeekNumbers:!1,disabledHours:[],disabledDates:[],disabledDaysOfWeek:[],enabledDates:[],eventDates:[],centuryBreak:60,currentCentury:2e3,selectAdjacentDays:!1,popupOptions:{position:"bottom left",lastResort:"bottom left",prefer:"opposite",observeChanges:!1,hideOnScroll:!1},text:{days:["S","M","T","W","T","F","S"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",now:"Now",am:"AM",pm:"PM",weekNo:"Week"},formatter:{yearHeader:function(e,t){e=10*Math.ceil(e.getFullYear()/10);return e-9+" - "+(2+e)},monthHeader:"YYYY",dayHeader:"MMMM YYYY",hourHeader:"MMMM D, YYYY",minuteHeader:"MMMM D, YYYY",dayColumnHeader:function(e,t){return t.text.days[e]},datetime:"MMMM D, YYYY h:mm A",date:"MMMM D, YYYY",time:"h:mm A",cellTime:"h:mm A",month:"MMMM YYYY",year:"YYYY",today:function(e){return"date"===e.type?e.text.today:e.text.now},cell:function(e,t,a){}},parser:{date:function(e,t){if(e instanceof Date)return e;if(!e)return null;if(0===(e=String(e).trim().replace(/([./:-])\s+/g,"$1").replace(/\s+([./:-])/g,"$1").replace(/\s+/g," ")).length)return null;/^\d{4}(?:[./-]\d{1,2}){2}$/.test(e)&&(e=e.replace(/[./-]/g,"/")+" 00:00:00"),e=t.monthFirst||!/^\d{1,2}[./-]/.test(e)?e:e.replace(/[./-]/g,"/").replace(/(\d+)\/(\d+)/,"$2/$1");let a=new Date(e);var n=null!==e.match(/^\d+$/);if(!(null!==e.match(/^(?:\d{1,2}[./-]){2}\d{1,2}$/))&&!n&&!isNaN(a.getDate()))return a;e=e.toLowerCase();let r,o,i,s=-1,l=-1,d=-1,u=-1,p=-1,c;var f,h,n="time"===t.type,m=t.type.indexOf("time")<0,g=e.split(t.regExp.dateWords);let y=e.split(t.regExp.dateNumbers),D,v;if(!m)for(c=0<=ee.inArray(t.text.am.toLowerCase(),g)||!(0<=ee.inArray(t.text.pm.toLowerCase(),g))&&void 0,r=0;r<y.length;r++)if(0<=(D=y[r]).indexOf(":")){if(l<0||s<0)for(h=D.split(":"),i=0;i<Math.min(2,h.length);i++)o=parseInt(h[i],10),isNaN(o)&&(o=0),0===i?l=o%24:s=o%60;y.splice(r,1)}if(!n){for(r=0;r<g.length;r++)if(!((f=g[r]).length<=0)){for(o=0;o<t.text.months.length;o++)if((v=(v=t.text.months[o]).slice(0,f.length).toLowerCase())===f){u=o+1;break}if(0<=u)break}for(r=0;r<y.length;r++)if(o=parseInt(y[r],10),!isNaN(o)&&o>=t.centuryBreak&&r===y.length-1){o<=99&&(o+=t.currentCentury-100),p=o,y.splice(r,1);break}if(u<0)for(r=0;r<y.length;r++)if(i=1<r||t.monthFirst?r:1===r?0:1,o=parseInt(y[i],10),!isNaN(o)&&1<=o&&o<=12){u=o,y.splice(i,1);break}for(r=0;r<y.length;r++)if(o=parseInt(y[r],10),!isNaN(o)&&1<=o&&o<=31){d=o,y.splice(r,1);break}if(p<0)for(r=y.length-1;0<=r;r--)if(o=parseInt(y[r],10),!isNaN(o)){o<=99&&(o+=t.currentCentury),p=o,y.splice(r,1);break}}if(!m){if(l<0)for(r=0;r<y.length;r++)if(o=parseInt(y[r],10),!isNaN(o)&&0<=o&&o<=23){l=o,y.splice(r,1);break}if(s<0)for(r=0;r<y.length;r++)if(o=parseInt(y[r],10),!isNaN(o)&&0<=o&&o<=59){s=o,y.splice(r,1);break}}if(s<0&&l<0&&d<0&&u<0&&p<0)return null;s<0&&(s=0),l<0&&(l=0),d<0&&(d=1),u<0&&(u=1),p<0&&(p=(new Date).getFullYear()),void 0!==c&&(c?12===l&&(l=0):l<12&&(l+=12));let b=new Date(p,u-1,d,l,s);return b.getMonth()===u-1&&b.getFullYear()===p||(b=new Date(p,u,0,l,s)),isNaN(b.getTime())?null:b}},onBeforeChange:function(e,t,a){return!0},onChange:function(e,t,a){},onShow:function(){},onVisible:function(){},onHide:function(){},onHidden:function(){},onSelect:function(e,t){},isDisabled:function(e,t){return!1},selector:{popup:".ui.popup",input:"input",activator:"input",append:".inline.field,.inline.fields"},regExp:{dateWords:/[^A-Za-z\u00C0-\u024F]+/g,dateNumbers:/[^\d:]+/g,token:/d{1,4}|D{1,2}|M{1,4}|YY(?:YY)?|([Hhmsw])\1?|[ASYa]|"[^"]*"|'[^']*'/g},error:{popup:"UI Popup, a required component is not included in this page",method:"The method you called is not defined."},className:{calendar:"calendar",active:"active",popup:"ui popup",grid:"ui equal width grid",column:"column",table:"ui celled center aligned unstackable table",inverted:"inverted",prev:"prev link",next:"next link",prevIcon:"chevron left icon",nextIcon:"chevron right icon",link:"link",cell:"link",disabledCell:"disabled",weekCell:"disabled",adjacentCell:"adjacent",activeCell:"active",rangeCell:"range",focusCell:"focus",todayCell:"today",today:"today link",disabled:"disabled"},metadata:{date:"date",focusDate:"focusDate",startDate:"startDate",endDate:"endDate",minDate:"minDate",maxDate:"maxDate",mode:"mode",type:"type",monthOffset:"monthOffset",message:"message",class:"class",inverted:"inverted",variation:"variation",position:"position",month:"month",year:"year",hours:"hours",days:"days"},eventClass:"blue"}}(jQuery,window,document);
|
|
11
|
+
!function(ie,w,x){"use strict";w=void 0!==w&&w.Math===Math?w:globalThis,ie.fn.calendar=function(...e){const t=ie(this),h=ie(x);let g=Date.now(),D=[];const y=e[0],b="string"==typeof y,v=e.slice(1);let M;const C={5:{row:4,column:3},10:{row:3,column:2},15:{row:2,column:2},20:{row:3,column:1},30:{row:2,column:1}},re=["","one","two","three","four","five","six","seven","eight"];return t.each(function(){const _=ie.isPlainObject(y)?ie.extend(!0,{},ie.fn.calendar.settings,y):ie.extend({},ie.fn.calendar.settings),Q=_.className,n=_.namespace,o=_.selector,Z=_.formatter,X=_.parser,ee=_.metadata,te=C[_.minTimeGap],l=_.error,e="."+n,t="module-"+n,r=ie(this),i=r.find(o.input);let s=r.find(o.activator);const d=this;let u=r.data(t),ae=u&&u.popupId?h.find("#"+u.popupId):r.find(o.popup),c,p=!1;const ne=r.hasClass(Q.inverted);let f=!1,m=!1,a;const oe={initialize:function(){oe.debug("Initializing calendar for",d,r),c=oe.get.isTouch(),oe.setup.config(),oe.setup.popup(),oe.setup.inline(),oe.setup.input(),oe.setup.date(),oe.create.calendar(),oe.bind.events(),oe.observeChanges(),oe.instantiate()},instantiate:function(){oe.verbose("Storing instance of calendar"),u=oe,r.data(t,u)},destroy:function(){oe.verbose("Destroying previous calendar for",d),r.removeData([ee.date,ee.focusDate,ee.startDate,ee.endDate,ee.minDate,ee.maxDate,ee.mode,ee.monthOffset,t]),oe.unbind.events(),oe.disconnect.classObserver()},setup:{config:function(){null!==oe.get.minDate()&&oe.set.minDate(r.data(ee.minDate)),null!==oe.get.maxDate()&&oe.set.maxDate(r.data(ee.maxDate)),oe.setting("type",oe.get.type()),oe.setting("on",_.on||"click")},popup:function(){if(!_.inline&&(0!==s.length||0!==(s=r.children().first()).length))if(void 0===ie.fn.popup)oe.error(l.popup);else{if(0===ae.length)if(_.context)oe.popupId=n+"_popup_"+(Math.random().toString(16)+"000000000").slice(2,10),ae=ie("<div/>",{id:oe.popupId}).addClass(Q.popup).appendTo(h.find(_.context));else{const a=s.parent();var t=0<a.closest(o.append).length?"appendTo":"prependTo";ae=ie("<div/>").addClass(Q.popup)[t](a)}ae.addClass(Q.calendar),ne&&ae.addClass(Q.inverted);let e=function(...e){return oe.refreshTooltips(),_.onVisible.apply(ae,e)};0===i.length&&(ae.attr("tabindex","0"),e=function(...e){return oe.refreshTooltips(),oe.focus(),_.onVisible.apply(ae,e)});t=oe.setting("on"),t=ie.extend({},_.popupOptions,{popup:ae,movePopup:!_.context,on:t,hoverable:"hover"===t,closable:"click"===t,onShow:function(...e){return oe.set.focusDate(oe.get.date()),oe.set.mode(oe.get.validatedMode(_.startMode)),_.onShow.apply(ae,e)},onVisible:e,onHide:_.onHide,onHidden:function(...e){return oe.blur(),_.onHidden.apply(ae,e)}});oe.popup(t)}},inline:function(){0<s.length&&!_.inline||(_.inline=!0,ae=ie("<div/>").addClass(Q.calendar).appendTo(r),0===i.length&&ae.attr("tabindex","0"))},input:function(){_.touchReadonly&&0<i.length&&c&&i.prop("readonly",!0),oe.check.disabled()},date:function(){let e;_.initialDate?e=X.date(_.initialDate,_):void 0!==r.data(ee.date)?e=X.date(r.data(ee.date),_):0<i.length&&(e=X.date(i.val(),_)),oe.set.date(e,_.formatInput,!1),oe.set.mode(oe.get.mode(),!1)}},trigger:{change:function(){const e=i[0];var t;e&&(t=new Event("change",{bubbles:!0}),oe.verbose("Triggering native change event"),e.dispatchEvent(t))}},create:{calendar:function(){let a,n,o,r,i,s,q;var l=oe.get.mode(),d=new Date,W=oe.get.date();let u=oe.get.focusDate();const e=oe.helper.dateInRange(u||W||X.date(_.initialDate,_)||d);u||(u=e,oe.set.focusDate(u,!1,!1));var c="year"===l,p="month"===l,f="day"===l,m="hour"===l,h="minute"===l,R="time"===_.type,t=Math.max(_.multiMonth,1),V=f?oe.get.monthOffset():0,g=e.getMinutes(),D=e.getHours(),y=e.getDate(),G=e.getMonth()+V,b=e.getFullYear(),v=f?_.showWeekNumbers?8:7:m?4:te.column;let P=f||m?6:te.row;var M=f?t:1;let C=ae;var w=C.hasClass("left")?"right center":"left center";for(C.empty(),1<M&&(q=ie("<div/>").addClass(Q.grid).appendTo(C)),r=0;r<M;r++){1<M&&(T=ie("<div/>").addClass(Q.column).appendTo(q),C=T);var x=G+r,T=(new Date(b,x,1).getDay()-_.firstDayOfWeek%7+7)%7,Y=(!_.constantHeight&&f&&(Y=new Date(b,x+1,0).getDate()+T,P=Math.ceil(Y/7)),c?10:p?1:0),N=f?1:0,k=m||h?1:0,B=m||h?y:1,K=new Date(b-Y,x-N,B-k,D),N=new Date(b+Y,x+N,B+k,D),B=c?new Date(10*Math.ceil(b/10)-9,0,0):p?new Date(b,0,0):f?new Date(b,x,0):new Date(b,x,y,-1),k=c?new Date(10*Math.ceil(b/10)+1,0,1):p?new Date(b+1,0,1):f?new Date(b,x+1,1):new Date(b,x,y+1);let e=l;f&&_.showWeekNumbers&&(e+=" andweek");const E=ie("<table/>").addClass(Q.table).addClass(e).addClass(re[v]+" column").appendTo(C);ne&&E.addClass(Q.inverted);let t=v;if(!R){var U=ie("<thead/>").appendTo(E),O=(i=ie("<tr/>").appendTo(U),s=ie("<th/>").attr("colspan",""+v).appendTo(i),c||p?new Date(b,0,1):f?new Date(b,x,1):new Date(b,x,y,D,g));const z=ie("<span/>").addClass(Q.link).appendTo(s);z.text(oe.helper.dateFormat(Z[l+"Header"],O));O=p?_.disableYear?"day":"year":f?_.disableMonth?"year":"month":"day";if(z.data(ee.mode,O),0===r){const I=ie("<span/>").addClass(Q.prev).appendTo(s);I.data(ee.focusDate,K),I.toggleClass(Q.disabledCell,!oe.helper.isDateInRange(B,l)),ie("<i/>").addClass(Q.prevIcon).appendTo(I)}if(r===M-1){const j=ie("<span/>").addClass(Q.next).appendTo(s);j.data(ee.focusDate,N),j.toggleClass(Q.disabledCell,!oe.helper.isDateInRange(k,l)),ie("<i/>").addClass(Q.nextIcon).appendTo(j)}if(f)for(i=ie("<tr/>").appendTo(U),_.showWeekNumbers&&((s=ie("<th/>").appendTo(i)).text(_.text.weekNo),s.addClass(Q.weekCell),t--),a=0;a<t;a++)(s=ie("<th/>").appendTo(i)).text(Z.dayColumnHeader((a+_.firstDayOfWeek)%7,_))}var $=ie("<tbody/>").appendTo(E);for(a=c?10*Math.ceil(b/10)-9:f?1-T:0,n=0;n<P;n++)for(i=ie("<tr/>").appendTo($),f&&_.showWeekNumbers&&((s=ie("<th/>").appendTo(i)).text(oe.get.weekOfYear(b,x,a+1-_.firstDayOfWeek)),s.addClass(Q.weekCell)),o=0;o<t;o++,a++){const S=c?new Date(a,x,1,D,g):p?new Date(b,a,1,D,g):f?new Date(b,x,a,D,g):m?new Date(b,x,y,a):new Date(b,x,y,D,a*_.minTimeGap);var F=c?a:p?_.text.monthsShort[a]:f?S.getDate():oe.helper.dateFormat(Z.cellTime,S),F=((s=ie("<td/>").addClass(Q.cell).appendTo(i)).text(F),s.data(ee.date,S),f&&S.getMonth()!==(x+12)%12),A=!_.selectAdjacentDays&&F||!oe.helper.isDateInRange(S,l)||_.isDisabled(S,l)||oe.helper.isDisabled(S,l)||!oe.helper.isEnabled(S,l);let e;A?(null!==(H=oe.helper.findDayAsObject(S,l,_.disabledDates))&&H[ee.message]&&(s.attr("data-tooltip",H[ee.message]),s.attr("data-position",H[ee.position]||w),(H[ee.inverted]||ne&&void 0===H[ee.inverted])&&s.attr("data-inverted",""),H[ee.variation]&&s.attr("data-variation",H[ee.variation])),"hour"===l&&null!==(H=oe.helper.findHourAsObject(S,l,_.disabledHours))&&H[ee.message]&&(s.attr("data-tooltip",H[ee.message]),s.attr("data-position",H[ee.position]||w),(H[ee.inverted]||ne&&void 0===H[ee.inverted])&&s.attr("data-inverted",""),H[ee.variation]&&s.attr("data-variation",H[ee.variation]))):null!==(e=oe.helper.findDayAsObject(S,l,_.eventDates))&&(s.addClass(e[ee.class]||_.eventClass),e[ee.message]&&(s.attr("data-tooltip",e[ee.message]),s.attr("data-position",e[ee.position]||w),(e[ee.inverted]||ne&&void 0===e[ee.inverted])&&s.attr("data-inverted",""),e[ee.variation]&&s.attr("data-variation",e[ee.variation])));var H=oe.helper.dateEqual(S,W,l),J=oe.helper.dateEqual(S,d,l),F=(s.toggleClass(Q.adjacentCell,F&&!e),s.toggleClass(Q.disabledCell,A),s.toggleClass(Q.activeCell,H&&!(F&&A)),m||h||s.toggleClass(Q.todayCell,!F&&J),{mode:l,adjacent:F,disabled:A,active:H,today:J});Z.cell(s,S,F),oe.helper.dateEqual(S,u,l)&&oe.set.focusDate(S,!1,!1)}if(_.today){O=ie("<tr/>").appendTo($);const L=ie("<td/>").attr("colspan",""+v).addClass(Q.today).appendTo(O);L.text(Z.today(_)),L.data(ee.date,d)}oe.update.focus(!1,E),_.inline&&oe.refreshTooltips()}}},update:{focus:function(e,t=ae){const i=oe.get.mode();var a=oe.get.date();const s=oe.get.focusDate(),l=oe.get.startDate(),d=oe.get.endDate(),u=(e?s:null)||a||(c?null:s);t.find("td").each(function(){const e=ie(this);var t,a,n,o,r=e.data(ee.date);r&&(t=e.hasClass(Q.disabledCell),a=e.hasClass(Q.activeCell),n=e.hasClass(Q.adjacentCell),o=oe.helper.dateEqual(r,s,i),r=!!u&&(!!l&&oe.helper.isDateInRange(r,i,l,u)||!!d&&oe.helper.isDateInRange(r,i,u,d)),e.toggleClass(Q.focusCell,o&&(!c||p)&&(!n||_.selectAdjacentDays&&n)&&!t),oe.helper.isTodayButton(e)||e.toggleClass(Q.rangeCell,r&&!a&&!t))})}},refresh:function(){oe.create.calendar()},refreshTooltips:function(){const n=ie(w).width();ae.find("td[data-position]").each(function(){const e=ie(this);var t=w.getComputedStyle(e[0],"::after").width.replace(/[^\d.]/g,"");const a=e.attr("data-position");t=n-e.width()-(Number.parseInt(t,10)||250)>e.offset().left?"right":"left";a.includes(t)||e.attr("data-position",a.replace(/(left|right)/,t))})},bind:{events:function(){oe.debug("Binding events"),ae.on("mousedown"+e,oe.event.mousedown),ae.on("touchstart"+e,oe.event.mousedown),ae.on("mouseup"+e,oe.event.mouseup),ae.on("touchend"+e,oe.event.mouseup),ae.on("mouseover"+e,oe.event.mouseover),0<i.length?(i.on("input"+e,oe.event.inputChange),i.on("focus"+e,oe.event.inputFocus),i.on("blur"+e,oe.event.inputBlur),i.on("keydown"+e,oe.event.keydown)):ae.on("keydown"+e,oe.event.keydown)}},unbind:{events:function(){oe.debug("Unbinding events"),ae.off(e),0<i.length&&i.off(e)}},event:{mouseover:function(e){const t=ie(e.target);var a=t.data(ee.date),e=1===e.buttons;a&&oe.set.focusDate(a,!1,!0,e)},mousedown:function(e){0<i.length&&e.preventDefault(),p=e.type.includes("touch");const t=ie(e.target);e=t.data(ee.date);e&&oe.set.focusDate(e,!1,!0,!0)},mouseup:function(e){oe.focus(),e.preventDefault(),e.stopPropagation(),p=!1;let t=ie(e.target);if(!t.hasClass("disabled")){const r=t.parent();var a,e=(t=r.data(ee.date)||r.data(ee.focusDate)||r.data(ee.mode)?r:t).data(ee.date),n=t.data(ee.focusDate),o=t.data(ee.mode);e&&!1!==_.onSelect.call(d,e,oe.get.mode())?(a=t.hasClass(Q.today),oe.selectDate(e,a)):n?oe.set.focusDate(n):o&&oe.set.mode(o)}},keydown:function(e){var t=e.which;if(9===t&&oe.popup("hide"),oe.popup("is visible")){var a=oe.get.mode();switch(t){case 37:case 38:case 39:case 40:{var n="day"===a?7:"hour"===a?4:"minute"===a?te.column:3,n=37===t?-1:38===t?-n:39===t?1:n;n*="minute"===a?_.minTimeGap:1;const l=oe.get.focusDate()||oe.get.date()||new Date;var o=l.getFullYear()+("year"===a?n:0),r=l.getMonth()+("month"===a?n:0),i=l.getDate()+("day"===a?n:0),s=l.getHours()+("hour"===a?n:0),n=l.getMinutes()+("minute"===a?n:0);let e=new Date(o,r,i,s,n);"time"===_.type&&(e=oe.helper.mergeDateTime(l,e)),oe.helper.isDateInRange(e,a)&&oe.set.focusDate(e);break}case 13:o=oe.get.focusDate();o&&!_.isDisabled(o,a)&&!oe.helper.isDisabled(o,a)&&oe.helper.isEnabled(o,a)&&!1!==_.onSelect.call(d,o,oe.get.mode())&&oe.selectDate(o),e.preventDefault(),e.stopPropagation();break;case 27:oe.popup("hide"),e.stopPropagation()}}38!==t&&40!==t||(e.preventDefault(),oe.popup("show"))},inputChange:function(){var e=i.val(),e=X.date(e,_);oe.set.date(e,!1)},inputFocus:function(){ae.addClass(Q.active)},inputBlur:function(){var e;ae.removeClass(Q.active),_.formatInput&&(e=oe.get.date(),e=oe.helper.dateFormat(Z[_.type],e),i.val(e)),m&&(oe.trigger.change(),m=!1)},class:{mutation:function(e){for(const t of e)"class"===t.attributeName&&oe.check.disabled()}}},observeChanges:function(){a=new MutationObserver(oe.event.class.mutation),oe.debug("Setting up mutation observer",a),oe.observe.class()},disconnect:{classObserver:function(){0<i.length&&a&&a.disconnect()}},observe:{class:function(){0<i.length&&a&&a.observe(r[0],{attributes:!0})}},is:{disabled:function(){return r.hasClass(Q.disabled)}},check:{disabled:function(){i.attr("tabindex",oe.is.disabled()?-1:0)}},get:{weekOfYear:function(e,t,a){e=Date.UTC(e,t,a+3)/864e5,t=Math.floor(e/7),a=new Date(6048e5*t).getUTCFullYear();return t-Math.floor(Date.UTC(a,0,7)/6048e5)+1},formattedDate:function(e,t){return oe.helper.dateFormat(e||Z[_.type],t||oe.get.date())},date:function(e){return oe.helper.dateObjectOrFormatted(e,r.data(ee.date))},inputDate:function(){return i.val()},focusDate:function(e){return oe.helper.dateObjectOrFormatted(e,r.data(ee.focusDate))},startDate:function(e){const t=oe.get.calendarModule(_.startCalendar);return t?t.get.date(e):oe.helper.dateObjectOrFormatted(e,r.data(ee.startDate))},endDate:function(e){const t=oe.get.calendarModule(_.endCalendar);return t?t.get.date(e):oe.helper.dateObjectOrFormatted(e,r.data(ee.endDate))},minDate:function(){return r.data(ee.minDate)||null},maxDate:function(){return r.data(ee.maxDate)||null},monthOffset:function(){return r.data(ee.monthOffset)||_.monthOffset||0},mode:function(){var e=r.data(ee.mode)||_.startMode;return oe.get.validatedMode(e)},validatedMode:function(e){return oe.get.validModes().includes(e)?e:"time"===_.type?"hour":"month"===_.type?"month":"year"===_.type?"year":"day"},type:function(){return r.data(ee.type)||_.type},validModes:function(){const e=[];return"time"!==_.type&&(_.disableYear&&"year"!==_.type||e.push("year"),(_.disableMonth||"year"===_.type)&&"month"!==_.type||e.push("month"),_.type.includes("date")&&e.push("day")),_.type.includes("time")&&(e.push("hour"),_.disableMinute||e.push("minute")),e},isTouch:function(){try{return x.createEvent("TouchEvent"),!0}catch{return!1}},calendarModule:function(e){return e?(e=e instanceof ie?e:h.find(e).first()).data(t):null}},set:{date:function(e,t,a){t=!1!==t,a=!1!==a,e=oe.helper.sanitiseDate(e),e=oe.helper.dateInRange(e);var n=oe.get.mode(),o=oe.helper.dateFormat(Z[_.type],e);if(a&&!1===_.onBeforeChange.call(d,e,o,n))return!1;if(oe.set.focusDate(e),_.isDisabled(e,n))return!1;var r=oe.get.endDate();r&&e&&r<e&&oe.set.endDate(),oe.set.dataKeyValue(ee.date,e),t&&0<i.length&&i.val(o),a&&_.onChange.call(d,e,o,n)},startDate:function(e,t){e=oe.helper.sanitiseDate(e);const a=oe.get.calendarModule(_.startCalendar);a&&a.set.date(e),oe.set.dataKeyValue(ee.startDate,e,t)},endDate:function(e,t){e=oe.helper.sanitiseDate(e);const a=oe.get.calendarModule(_.endCalendar);a&&a.set.date(e),oe.set.dataKeyValue(ee.endDate,e,t)},focusDate:function(e,t,a,n){e=oe.helper.sanitiseDate(e),e=oe.helper.dateInRange(e);var o="day"===oe.get.mode();const r=oe.get.focusDate();o&&e&&r&&((o=12*(e.getFullYear()-r.getFullYear())+e.getMonth()-r.getMonth())&&(o=oe.get.monthOffset()-o,oe.set.monthOffset(o,!1)));o=oe.set.dataKeyValue(ee.focusDate,e,!!e&&t);a=!1!==a&&o&&!1===t||f!=n,f=n,a&&oe.update.focus(n)},minDate:function(e){e=oe.helper.sanitiseDate(e),null!==_.maxDate&&_.maxDate<=e?oe.verbose("Unable to set minDate variable bigger that maxDate variable",e,_.maxDate):(oe.setting("minDate",e),oe.set.dataKeyValue(ee.minDate,e))},maxDate:function(e){e=oe.helper.sanitiseDate(e),null!==_.minDate&&_.minDate>=e?oe.verbose("Unable to set maxDate variable lower that minDate variable",e,_.minDate):(oe.setting("maxDate",e),oe.set.dataKeyValue(ee.maxDate,e))},monthOffset:function(e,t){var a=Math.max(_.multiMonth,1);e=Math.max(1-a,Math.min(0,e)),oe.set.dataKeyValue(ee.monthOffset,e,t)},mode:function(e,t){oe.set.dataKeyValue(ee.mode,e,t)},dataKeyValue:function(e,t,a){var n=r.data(e),n=n===t||n<=t&&t<=n;return t?r.data(e,t):r.removeData(e),(a=!1!==a&&!n)&&oe.refresh(),!n}},selectDate:function(e,t){oe.verbose("New date selection",e);var a=oe.get.mode();if(t||"minute"===a||_.disableMinute&&"hour"===a||"date"===_.type&&"day"===a||"month"===_.type&&"month"===a||"year"===_.type&&"year"===a){t=!1===oe.set.date(e);if(!t&&(m=!0,_.closable)){oe.popup("hide");const n=oe.get.calendarModule(_.endCalendar);n&&(n.refresh(),"focus"!==n.setting("on")&&n.popup("show"),n.focus())}}else{t="year"===a?_.disableMonth?"day":"month":"month"===a?"day":"day"===a?"hour":"minute";oe.set.mode(t),"hour"===a||"day"===a&&oe.get.date()?oe.set.date(e,!0,!1):oe.set.focusDate(e)}},changeDate:function(e){oe.set.date(e)},clear:function(){oe.set.date()},popup:function(...e){return s.popup(...e)},focus:function(){(0<i.length?i:ae).trigger("focus")},blur:function(){(0<i.length?i:ae).trigger("blur")},helper:{dateFormat:function(e,t){if(!(t instanceof Date))return"";if("function"==typeof e)return e.call(oe,t,_);var a=t.getDate(),n=t.getMonth(),o=t.getFullYear(),r=t.getDay(),i=t.getHours(),s=t.getMinutes(),t=t.getSeconds(),l=oe.get.weekOfYear(o,n,a+1-_.firstDayOfWeek),d=i%12||12;const u=(i<12?_.text.am:_.text.pm).toLowerCase(),c={D:a,DD:("0"+a).slice(-2),M:n+1,MM:("0"+(n+1)).slice(-2),MMM:_.text.monthsShort[n],MMMM:_.text.months[n],Y:o,YY:String(o).slice(2),YYYY:o,d:r,dd:_.text.dayNamesShort[r].slice(0,2),ddd:_.text.dayNamesShort[r],dddd:_.text.dayNames[r],h:d,hh:("0"+d).slice(-2),H:i,HH:("0"+i).slice(-2),m:s,mm:("0"+s).slice(-2),s:t,ss:("0"+t).slice(-2),a:u,A:u.toUpperCase(),S:["th","st","nd","rd"][3<a%10||a%100-a%10==10?0:a%10],w:l,ww:("0"+l).slice(-2)};return e.replace(_.regExp.token,function(e){return e in c?c[e]:e.slice(1,-1)})},dateObjectOrFormatted:function(e="",t=null){return(t=oe.helper.sanitiseDate(t)||null)?""===e?t:oe.helper.dateFormat(e,t):null},isDisabled:function(n,o){return("day"===o||"month"===o||"year"===o||"hour"===o)&&("day"===o&&_.disabledDaysOfWeek.includes(n.getDay())||_.disabledDates.some(function(e){let t=!1;if((e="string"==typeof e?oe.helper.sanitiseDate(e):e)instanceof Date)t=oe.helper.dateEqual(n,e,o);else if(null!==e&&"object"==typeof e)if(e[ee.year])"number"==typeof e[ee.year]?t=n.getFullYear()===e[ee.year]:Array.isArray(e[ee.year])&&(t=e[ee.year].includes(n.getFullYear()));else if(e[ee.month]){if("number"==typeof e[ee.month])t=n.getMonth()===e[ee.month];else if(Array.isArray(e[ee.month]))t=e[ee.month].includes(n.getMonth());else if(e[ee.month]instanceof Date){const a=oe.helper.sanitiseDate(e[ee.month]);t=n.getMonth()===a.getMonth()&&n.getFullYear()===a.getFullYear()}}else e[ee.date]&&"day"===o&&(e[ee.date]instanceof Date?t=oe.helper.dateEqual(n,oe.helper.sanitiseDate(e[ee.date]),o):Array.isArray(e[ee.date])&&(t=e[ee.date].some(function(e){return oe.helper.dateEqual(n,e,o)})));return t})||"hour"===o&&_.disabledHours.some(function(e){let t=!1;return(e="string"==typeof e?oe.helper.sanitiseDate(e):e)instanceof Date?t=oe.helper.dateEqual(n,e,o):"number"==typeof e?t=n.getHours()===e:null!==e&&"object"==typeof e&&(e[ee.date]&&(e[ee.date]instanceof Date?t=oe.helper.dateEqual(n,oe.helper.sanitiseDate(e[ee.date])):Array.isArray(e[ee.date])&&(t=e[ee.date].some(function(e){return oe.helper.dateEqual(n,e,o)}))),e[ee.days]&&("number"==typeof e[ee.days]?t=n.getDay()===e[ee.days]:Array.isArray(e[ee.days])&&(t=e[ee.days].includes(n.getDay()))),e[ee.hours]&&("number"==typeof e[ee.hours]?t=t&&n.getHours()===e[ee.hours]:Array.isArray(e[ee.hours])&&(t=t&&e[ee.hours].includes(n.getHours())))),t}))},isEnabled:function(a,n){return"day"!==n||(0===_.enabledDates.length||_.enabledDates.some(function(e){let t=!1;return(e="string"==typeof e?oe.helper.sanitiseDate(e):e)instanceof Date?t=oe.helper.dateEqual(a,e,n):null!==e&&"object"==typeof e&&e[ee.date]&&(t=oe.helper.dateEqual(a,oe.helper.sanitiseDate(e[ee.date]),n)),t}))},findDayAsObject:function(t,a,e){if("day"===a||"month"===a||"year"===a)for(var n of e){if((n="string"==typeof n?oe.helper.sanitiseDate(n):n)instanceof Date&&oe.helper.dateEqual(t,n,a)){const o={};return o[ee.date]=n,o}if(null!==n&&"object"==typeof n)if(n[ee.year]){if("number"==typeof n[ee.year]&&t.getFullYear()===n[ee.year])return n;if(Array.isArray(n[ee.year])&&n[ee.year].includes(t.getFullYear()))return n}else if(n[ee.month]){if("number"==typeof n[ee.month]&&t.getMonth()===n[ee.month])return n;if(Array.isArray(n[ee.month])){if(n[ee.month].includes(t.getMonth()))return n}else if(n[ee.month]instanceof Date){const r=oe.helper.sanitiseDate(n[ee.month]);if(t.getMonth()===r.getMonth()&&t.getFullYear()===r.getFullYear())return n}}else if(n[ee.date]&&"day"===a){if(n[ee.date]instanceof Date&&oe.helper.dateEqual(t,oe.helper.sanitiseDate(n[ee.date]),a))return n;if(Array.isArray(n[ee.date])&&n[ee.date].some(function(e){return oe.helper.dateEqual(t,e,a)}))return n}}return null},findHourAsObject:function(t,a,e){if("hour"===a){var n=function(e,t){if(t[ee.hours])return"number"==typeof t[ee.hours]&&e.getHours()===t[ee.hours]||Array.isArray(t[ee.hours])&&t[ee.hours].includes(e.getHours())?t:void 0};for(const o of e){if("number"==typeof o&&t.getHours()===o)return null;if(null!==o&&"object"==typeof o)if(o[ee.days]&&n(t,o)){if("number"==typeof o[ee.days]&&t.getDay()===o[ee.days])return o;if(Array.isArray(o[ee.days])&&o[ee.days].includes(t.getDay()))return o}else if(o[ee.date]&&n(t,o)){if(o[ee.date]instanceof Date&&oe.helper.dateEqual(t,oe.helper.sanitiseDate(o[ee.date])))return o;if(Array.isArray(o[ee.date])&&o[ee.date].some(function(e){return oe.helper.dateEqual(t,e,a)}))return o}else if(n(t,o))return o}}return null},sanitiseDate:function(e){return!(e=e instanceof Date?e:X.date(""+e,_))||Number.isNaN(e.getTime())?null:e},dateDiff:function(e,t,a){a=a||"day";var n="time"===_.type,o="year"===a,r=o||"month"===a,i="minute"===a,a=i||"hour"===a;return e=new Date(n?2e3:e.getFullYear(),n||o?0:e.getMonth(),n||r?1:e.getDate(),a?e.getHours():0,i?_.minTimeGap*Math.floor(e.getMinutes()/_.minTimeGap):0),(t=new Date(n?2e3:t.getFullYear(),n||o?0:t.getMonth(),n||r?1:t.getDate(),a?t.getHours():0,i?_.minTimeGap*Math.floor(t.getMinutes()/_.minTimeGap):0)).getTime()-e.getTime()},dateEqual:function(e,t,a){return!!e&&!!t&&0===oe.helper.dateDiff(e,t,a)},isDateInRange:function(e,t,a,n){var o;return a||n||(a=(o=oe.get.startDate())&&_.minDate?new Date(Math.max(o,_.minDate)):o||_.minDate,n=_.maxDate),a=a&&new Date(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),_.minTimeGap*Math.ceil(a.getMinutes()/_.minTimeGap)),!(!e||a&&0<oe.helper.dateDiff(e,a,t)||n&&0<oe.helper.dateDiff(n,e,t))},dateInRange:function(e,t,a){t||a||(t=(n=oe.get.startDate())&&_.minDate?new Date(Math.max(n,_.minDate)):n||_.minDate,a=_.maxDate),t=t&&new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),_.minTimeGap*Math.ceil(t.getMinutes()/_.minTimeGap));var n="time"===_.type;return e&&(t&&0<oe.helper.dateDiff(e,t,"minute")?n?oe.helper.mergeDateTime(e,t):t:a&&0<oe.helper.dateDiff(a,e,"minute")?n?oe.helper.mergeDateTime(e,a):a:e)},mergeDateTime:function(e,t){return e&&t?new Date(e.getFullYear(),e.getMonth(),e.getDate(),t.getHours(),t.getMinutes()):t},isTodayButton:function(e){return e.text()===_.text.today}},setting:function(e,t){if(oe.debug("Changing setting",e,t),ie.isPlainObject(e))ie.extend(!0,_,e);else{if(void 0===t)return _[e];ie.isPlainObject(_[e])?ie.extend(!0,_[e],t):_[e]=t}},internal:function(e,t){if(ie.isPlainObject(e))ie.extend(!0,oe,e);else{if(void 0===t)return oe[e];oe[e]=t}},debug:function(...e){!_.silent&&_.debug&&(_.performance?oe.performance.log(e):(oe.debug=Function.prototype.bind.call(console.info,console,_.name+":"),oe.debug.apply(console,e)))},verbose:function(...e){!_.silent&&_.verbose&&_.debug&&(_.performance?oe.performance.log(e):(oe.verbose=Function.prototype.bind.call(console.info,console,_.name+":"),oe.verbose.apply(console,e)))},error:function(...e){_.silent||(oe.error=Function.prototype.bind.call(console.error,console,_.name+":"),oe.error.apply(console,e))},performance:{log:function(e){var t,a;_.performance&&(a=(t=Date.now())-(g||t),g=t,D.push({Name:e[0],Arguments:e.slice(1),Element:d,"Execution Time":a})),clearTimeout(oe.performance.timer),oe.performance.timer=setTimeout(function(){oe.performance.display()},500)},display:function(){var e=_.name+":";let a=0;g=!1,clearTimeout(oe.performance.timer),ie.each(D,function(e,t){a+=t["Execution Time"]}),e+=" "+a+"ms",0<D.length&&(console.groupCollapsed(e),console.table(D),console.groupEnd()),D=[]}},invoke:function(n,e=v,t=d){let o=u,r,i,a;var s;return"string"==typeof n&&void 0!==o&&(n=n.split(/[ .]/),r=n.length-1,ie.each(n,function(e,t){var a=e!==r?t+n[e+1].charAt(0).toUpperCase()+n[e+1].slice(1):n;if(ie.isPlainObject(o[a])&&e!==r)o=o[a];else{if(void 0!==o[a])return i=o[a],!1;{if(!ie.isPlainObject(o[t])||e===r)return void 0!==o[t]?i=o[t]:oe.error(l.method,n),!1;o=o[t]}}})),"function"==typeof(s=i)&&"number"!=typeof s.nodeType?a=i.apply(t,e):void 0!==i&&(a=i),Array.isArray(M)?M.push(a):void 0!==M?M=[M,a]:void 0!==a&&(M=a),i}};b?(void 0===u&&oe.initialize(),oe.invoke(y)):(void 0!==u&&u.invoke("destroy"),oe.initialize())}),void 0!==M?M:this},ie.fn.calendar.settings={name:"Calendar",namespace:"calendar",silent:!1,debug:!1,verbose:!1,performance:!0,context:!1,type:"datetime",firstDayOfWeek:0,constantHeight:!0,today:!1,closable:!0,monthFirst:!1,touchReadonly:!0,inline:!1,on:null,initialDate:null,startMode:!1,minDate:null,maxDate:null,disableYear:!1,disableMonth:!1,disableMinute:!1,formatInput:!0,startCalendar:null,endCalendar:null,multiMonth:1,monthOffset:0,minTimeGap:5,showWeekNumbers:!1,disabledHours:[],disabledDates:[],disabledDaysOfWeek:[],enabledDates:[],eventDates:[],centuryBreak:60,currentCentury:2e3,selectAdjacentDays:!1,popupOptions:{position:"bottom left",lastResort:"bottom left",prefer:"opposite",observeChanges:!1,hideOnScroll:!1},text:{days:["S","M","T","W","T","F","S"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",now:"Now",am:"AM",pm:"PM",weekNo:"Week"},formatter:{yearHeader:function(e,t){e=10*Math.ceil(e.getFullYear()/10);return e-9+" - "+(2+e)},monthHeader:"YYYY",dayHeader:"MMMM YYYY",hourHeader:"MMMM D, YYYY",minuteHeader:"MMMM D, YYYY",dayColumnHeader:function(e,t){return t.text.days[e]},datetime:"MMMM D, YYYY h:mm A",date:"MMMM D, YYYY",time:"h:mm A",cellTime:"h:mm A",month:"MMMM YYYY",year:"YYYY",today:function(e){return"date"===e.type?e.text.today:e.text.now},cell:function(e,t,a){}},parser:{date:function(e,t){if(e instanceof Date)return e;if(!e)return null;if(0===(e=String(e).trim().replace(/([./:-])\s+/g,"$1").replace(/\s+([./:-])/g,"$1").replace(/\s+/g," ")).length)return null;/^\d{4}(?:[./-]\d{1,2}){2}$/.test(e)&&(e=e.replace(/[./-]/g,"/")+" 00:00:00"),e=t.monthFirst||!/^\d{1,2}[./-]/.test(e)?e:e.replace(/[./-]/g,"/").replace(/(\d+)\/(\d+)/,"$2/$1");const a=new Date(e);var n=null!==e.match(/^\d+$/);if(!(null!==e.match(/^(?:\d{1,2}[./-]){2}\d{1,2}$/))&&!n&&!Number.isNaN(a.getDate()))return a;e=e.toLowerCase();let o,r,i,s=-1,l=-1,d=-1,u=-1,c=-1,p;var f,n="time"===t.type,m=!t.type.includes("time");const h=e.split(t.regExp.dateWords),g=e.split(t.regExp.dateNumbers);let D,y;if(!m)for(p=!!h.includes(t.text.am.toLowerCase())||!h.includes(t.text.pm.toLowerCase())&&void 0,o=0;o<g.length;o++)if((D=g[o]).includes(":")){if(l<0||s<0)for(f=D.split(":"),i=0;i<Math.min(2,f.length);i++)r=Number.parseInt(f[i],10),Number.isNaN(r)&&(r=0),0===i?l=r%24:s=r%60;g.splice(o,1)}if(!n){for(const v of h)if(0<v.length){for(r=0;r<t.text.months.length;r++)if((y=(y=t.text.months[r]).slice(0,v.length).toLowerCase())===v){u=r+1;break}if(0<=u)break}for(o=0;o<g.length;o++)if(r=Number.parseInt(g[o],10),!Number.isNaN(r)&&r>=t.centuryBreak&&o===g.length-1){r<=99&&(r+=t.currentCentury-100),c=r,g.splice(o,1);break}if(u<0)for(o=0;o<g.length;o++)if(i=1<o||t.monthFirst?o:1===o?0:1,r=Number.parseInt(g[i],10),!Number.isNaN(r)&&1<=r&&r<=12){u=r,g.splice(i,1);break}for(o=0;o<g.length;o++)if(r=Number.parseInt(g[o],10),!Number.isNaN(r)&&1<=r&&r<=31){d=r,g.splice(o,1);break}if(c<0)for(o=g.length-1;0<=o;o--)if(r=Number.parseInt(g[o],10),!Number.isNaN(r)){r<=99&&(r+=t.currentCentury),c=r,g.splice(o,1);break}}if(!m){if(l<0)for(o=0;o<g.length;o++)if(r=Number.parseInt(g[o],10),!Number.isNaN(r)&&0<=r&&r<=23){l=r,g.splice(o,1);break}if(s<0)for(o=0;o<g.length;o++)if(r=Number.parseInt(g[o],10),!Number.isNaN(r)&&0<=r&&r<=59){s=r,g.splice(o,1);break}}if(s<0&&l<0&&d<0&&u<0&&c<0)return null;s<0&&(s=0),l<0&&(l=0),d<0&&(d=1),u<0&&(u=1),c<0&&(c=(new Date).getFullYear()),void 0!==p&&(p?12===l&&(l=0):l<12&&(l+=12));let b=new Date(c,u-1,d,l,s);return b.getMonth()===u-1&&b.getFullYear()===c||(b=new Date(c,u,0,l,s)),Number.isNaN(b.getTime())?null:b}},onBeforeChange:function(e,t,a){return!0},onChange:function(e,t,a){},onShow:function(){},onVisible:function(){},onHide:function(){},onHidden:function(){},onSelect:function(e,t){},isDisabled:function(e,t){return!1},selector:{popup:".ui.popup",input:"input",activator:"input",append:".inline.field,.inline.fields"},regExp:{dateWords:/[^A-Za-z\u00C0-\u024F]+/g,dateNumbers:/[^\d:]+/g,token:/d{1,4}|D{1,2}|M{1,4}|YY(?:YY)?|([Hhmsw])\1?|[ASYa]|"[^"]*"|'[^']*'/g},error:{popup:"UI Popup, a required component is not included in this page",method:"The method you called is not defined."},className:{calendar:"calendar",active:"active",popup:"ui popup",grid:"ui equal width grid",column:"column",table:"ui celled center aligned unstackable table",inverted:"inverted",prev:"prev link",next:"next link",prevIcon:"chevron left icon",nextIcon:"chevron right icon",link:"link",cell:"link",disabledCell:"disabled",weekCell:"disabled",adjacentCell:"adjacent",activeCell:"active",rangeCell:"range",focusCell:"focus",todayCell:"today",today:"today link",disabled:"disabled"},metadata:{date:"date",focusDate:"focusDate",startDate:"startDate",endDate:"endDate",minDate:"minDate",maxDate:"maxDate",mode:"mode",type:"type",monthOffset:"monthOffset",message:"message",class:"class",inverted:"inverted",variation:"variation",position:"position",month:"month",year:"year",hours:"hours",days:"days"},eventClass:"blue"}}(jQuery,window,document);
|
package/dist/components/card.css
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* # Fomantic-UI 2.10.0-beta.
|
|
2
|
+
* # Fomantic-UI 2.10.0-beta.81+4f706c2 - Checkbox
|
|
3
3
|
* https://github.com/fomantic/Fomantic-UI/
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -19,27 +19,27 @@
|
|
|
19
19
|
? window
|
|
20
20
|
: globalThis;
|
|
21
21
|
|
|
22
|
-
$.fn.checkbox = function (
|
|
23
|
-
|
|
22
|
+
$.fn.checkbox = function (...args) {
|
|
23
|
+
const $allModules = $(this);
|
|
24
24
|
|
|
25
25
|
let time = Date.now();
|
|
26
26
|
let performance = [];
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
const parameters = args[0];
|
|
29
|
+
const methodInvoked = typeof parameters === 'string';
|
|
30
|
+
const queryArguments = args.slice(1);
|
|
31
31
|
let returnedValue;
|
|
32
32
|
|
|
33
33
|
$allModules.each(function () {
|
|
34
|
-
|
|
34
|
+
const settings = $.extend(true, {}, $.fn.checkbox.settings, parameters);
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
const className = settings.className;
|
|
37
|
+
const namespace = settings.namespace;
|
|
38
|
+
const selector = settings.selector;
|
|
39
|
+
const error = settings.error;
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
const eventNamespace = '.' + namespace;
|
|
42
|
+
const moduleNamespace = 'module-' + namespace;
|
|
43
43
|
|
|
44
44
|
let $module = $(this);
|
|
45
45
|
let $label = $(this).children(selector.label);
|
|
@@ -51,10 +51,9 @@
|
|
|
51
51
|
let instance = $module.data(moduleNamespace);
|
|
52
52
|
|
|
53
53
|
let observer;
|
|
54
|
-
|
|
55
|
-
let module;
|
|
54
|
+
const element = this;
|
|
56
55
|
|
|
57
|
-
module = {
|
|
56
|
+
const module = {
|
|
58
57
|
|
|
59
58
|
initialize: function () {
|
|
60
59
|
module.verbose('Initializing checkbox', settings);
|
|
@@ -129,21 +128,19 @@
|
|
|
129
128
|
},
|
|
130
129
|
|
|
131
130
|
observeChanges: function () {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
module.debug('Setting up mutation observer', observer);
|
|
142
|
-
}
|
|
131
|
+
observer = new MutationObserver(function (mutations) {
|
|
132
|
+
module.debug('DOM tree modified, updating selector cache');
|
|
133
|
+
module.refresh();
|
|
134
|
+
});
|
|
135
|
+
observer.observe(element, {
|
|
136
|
+
childList: true,
|
|
137
|
+
subtree: true,
|
|
138
|
+
});
|
|
139
|
+
module.debug('Setting up mutation observer', observer);
|
|
143
140
|
},
|
|
144
141
|
|
|
145
142
|
attachEvents: function (selector, event) {
|
|
146
|
-
|
|
143
|
+
const $element = $(selector);
|
|
147
144
|
event = isFunction(module[event])
|
|
148
145
|
? module[event]
|
|
149
146
|
: module.toggle;
|
|
@@ -156,13 +153,6 @@
|
|
|
156
153
|
}
|
|
157
154
|
},
|
|
158
155
|
|
|
159
|
-
preventDefaultOnInputTarget: function () {
|
|
160
|
-
if (event !== undefined && event !== null && $(event.target).is(selector.input)) {
|
|
161
|
-
module.verbose('Preventing default check action after manual check action');
|
|
162
|
-
event.preventDefault();
|
|
163
|
-
}
|
|
164
|
-
},
|
|
165
|
-
|
|
166
156
|
event: {
|
|
167
157
|
change: function (event) {
|
|
168
158
|
if (!module.should.ignoreCallbacks()) {
|
|
@@ -170,7 +160,7 @@
|
|
|
170
160
|
}
|
|
171
161
|
},
|
|
172
162
|
click: function (event) {
|
|
173
|
-
|
|
163
|
+
const $target = $(event.target);
|
|
174
164
|
if ($target.is(selector.input)) {
|
|
175
165
|
module.verbose('Using default check action on initialized checkbox');
|
|
176
166
|
|
|
@@ -186,8 +176,8 @@
|
|
|
186
176
|
event.preventDefault();
|
|
187
177
|
},
|
|
188
178
|
keydown: function (event) {
|
|
189
|
-
|
|
190
|
-
|
|
179
|
+
const key = event.which;
|
|
180
|
+
const keyCode = {
|
|
191
181
|
enter: 13,
|
|
192
182
|
space: 32,
|
|
193
183
|
escape: 27,
|
|
@@ -197,9 +187,9 @@
|
|
|
197
187
|
down: 40,
|
|
198
188
|
};
|
|
199
189
|
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
190
|
+
const r = module.get.radios().not(selector.disabled);
|
|
191
|
+
const rIndex = r.index($module);
|
|
192
|
+
const rLen = r.length;
|
|
203
193
|
let checkIndex = false;
|
|
204
194
|
|
|
205
195
|
if (key === keyCode.left || key === keyCode.up) {
|
|
@@ -209,15 +199,15 @@
|
|
|
209
199
|
}
|
|
210
200
|
|
|
211
201
|
if (!module.should.ignoreCallbacks() && checkIndex !== false) {
|
|
212
|
-
if (settings.beforeUnchecked.
|
|
202
|
+
if (settings.beforeUnchecked.call(input) === false) {
|
|
213
203
|
module.verbose('Option not allowed to be unchecked, cancelling key navigation');
|
|
214
204
|
|
|
215
205
|
return false;
|
|
216
206
|
}
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
if (disallowOption || settings.beforeChecked.
|
|
207
|
+
const nextOption = $(r[checkIndex]);
|
|
208
|
+
const nextInput = nextOption.children(selector.input);
|
|
209
|
+
const disallowOption = nextOption.hasClass(className.readOnly) || nextInput.prop('readonly');
|
|
210
|
+
if (disallowOption || settings.beforeChecked.call(nextInput[0]) === false) {
|
|
221
211
|
module.verbose('Next option should not allow check, cancelling key navigation');
|
|
222
212
|
|
|
223
213
|
return false;
|
|
@@ -265,7 +255,6 @@
|
|
|
265
255
|
settings.onChecked.call(input);
|
|
266
256
|
module.trigger.change();
|
|
267
257
|
}
|
|
268
|
-
module.preventDefaultOnInputTarget();
|
|
269
258
|
},
|
|
270
259
|
|
|
271
260
|
uncheck: function () {
|
|
@@ -278,7 +267,6 @@
|
|
|
278
267
|
settings.onUnchecked.call(input);
|
|
279
268
|
module.trigger.change();
|
|
280
269
|
}
|
|
281
|
-
module.preventDefaultOnInputTarget();
|
|
282
270
|
},
|
|
283
271
|
|
|
284
272
|
indeterminate: function () {
|
|
@@ -337,7 +325,7 @@
|
|
|
337
325
|
|
|
338
326
|
get: {
|
|
339
327
|
radios: function () {
|
|
340
|
-
|
|
328
|
+
const name = module.get.name();
|
|
341
329
|
|
|
342
330
|
return $('input[name="' + CSS.escape(name) + '"]').closest(selector.checkbox);
|
|
343
331
|
},
|
|
@@ -383,7 +371,7 @@
|
|
|
383
371
|
|
|
384
372
|
return false;
|
|
385
373
|
}
|
|
386
|
-
if (!module.should.ignoreCallbacks() && settings.beforeChecked.
|
|
374
|
+
if (!module.should.ignoreCallbacks() && settings.beforeChecked.call(input) === false) {
|
|
387
375
|
module.debug('Should not allow check, beforeChecked cancelled');
|
|
388
376
|
|
|
389
377
|
return false;
|
|
@@ -397,7 +385,7 @@
|
|
|
397
385
|
|
|
398
386
|
return false;
|
|
399
387
|
}
|
|
400
|
-
if (!module.should.ignoreCallbacks() && settings.beforeUnchecked.
|
|
388
|
+
if (!module.should.ignoreCallbacks() && settings.beforeUnchecked.call(input) === false) {
|
|
401
389
|
module.debug('Should not allow uncheck, beforeUnchecked cancelled');
|
|
402
390
|
|
|
403
391
|
return false;
|
|
@@ -411,7 +399,7 @@
|
|
|
411
399
|
|
|
412
400
|
return false;
|
|
413
401
|
}
|
|
414
|
-
if (!module.should.ignoreCallbacks() && settings.beforeIndeterminate.
|
|
402
|
+
if (!module.should.ignoreCallbacks() && settings.beforeIndeterminate.call(input) === false) {
|
|
415
403
|
module.debug('Should not allow indeterminate, beforeIndeterminate cancelled');
|
|
416
404
|
|
|
417
405
|
return false;
|
|
@@ -425,7 +413,7 @@
|
|
|
425
413
|
|
|
426
414
|
return false;
|
|
427
415
|
}
|
|
428
|
-
if (!module.should.ignoreCallbacks() && settings.beforeDeterminate.
|
|
416
|
+
if (!module.should.ignoreCallbacks() && settings.beforeDeterminate.call(input) === false) {
|
|
429
417
|
module.debug('Should not allow determinate, beforeDeterminate cancelled');
|
|
430
418
|
|
|
431
419
|
return false;
|
|
@@ -553,12 +541,11 @@
|
|
|
553
541
|
|
|
554
542
|
trigger: {
|
|
555
543
|
change: function () {
|
|
556
|
-
|
|
544
|
+
const inputElement = $input[0];
|
|
557
545
|
if (inputElement) {
|
|
558
|
-
|
|
546
|
+
const event = new Event('change', { bubbles: true });
|
|
559
547
|
module.verbose('Triggering native change event');
|
|
560
|
-
|
|
561
|
-
inputElement.dispatchEvent(events);
|
|
548
|
+
inputElement.dispatchEvent(event);
|
|
562
549
|
}
|
|
563
550
|
},
|
|
564
551
|
},
|
|
@@ -601,7 +588,7 @@
|
|
|
601
588
|
},
|
|
602
589
|
|
|
603
590
|
uncheckOthers: function () {
|
|
604
|
-
|
|
591
|
+
const $radios = module.get.otherRadios();
|
|
605
592
|
module.debug('Unchecking other radios', $radios);
|
|
606
593
|
$radios.removeClass(className.checked);
|
|
607
594
|
},
|
|
@@ -645,30 +632,30 @@
|
|
|
645
632
|
return module[name];
|
|
646
633
|
}
|
|
647
634
|
},
|
|
648
|
-
debug: function () {
|
|
635
|
+
debug: function (...args) {
|
|
649
636
|
if (!settings.silent && settings.debug) {
|
|
650
637
|
if (settings.performance) {
|
|
651
|
-
module.performance.log(
|
|
638
|
+
module.performance.log(args);
|
|
652
639
|
} else {
|
|
653
640
|
module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':');
|
|
654
|
-
module.debug.apply(console,
|
|
641
|
+
module.debug.apply(console, args);
|
|
655
642
|
}
|
|
656
643
|
}
|
|
657
644
|
},
|
|
658
|
-
verbose: function () {
|
|
645
|
+
verbose: function (...args) {
|
|
659
646
|
if (!settings.silent && settings.verbose && settings.debug) {
|
|
660
647
|
if (settings.performance) {
|
|
661
|
-
module.performance.log(
|
|
648
|
+
module.performance.log(args);
|
|
662
649
|
} else {
|
|
663
650
|
module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':');
|
|
664
|
-
module.verbose.apply(console,
|
|
651
|
+
module.verbose.apply(console, args);
|
|
665
652
|
}
|
|
666
653
|
}
|
|
667
654
|
},
|
|
668
|
-
error: function () {
|
|
655
|
+
error: function (...args) {
|
|
669
656
|
if (!settings.silent) {
|
|
670
657
|
module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
|
|
671
|
-
module.error.apply(console,
|
|
658
|
+
module.error.apply(console, args);
|
|
672
659
|
}
|
|
673
660
|
},
|
|
674
661
|
performance: {
|
|
@@ -683,7 +670,7 @@
|
|
|
683
670
|
time = currentTime;
|
|
684
671
|
performance.push({
|
|
685
672
|
Name: message[0],
|
|
686
|
-
Arguments:
|
|
673
|
+
Arguments: message.slice(1),
|
|
687
674
|
Element: element,
|
|
688
675
|
'Execution Time': executionTime,
|
|
689
676
|
});
|
|
@@ -704,30 +691,22 @@
|
|
|
704
691
|
title += ' ' + totalTime + 'ms';
|
|
705
692
|
if (performance.length > 0) {
|
|
706
693
|
console.groupCollapsed(title);
|
|
707
|
-
|
|
708
|
-
console.table(performance);
|
|
709
|
-
} else {
|
|
710
|
-
$.each(performance, function (index, data) {
|
|
711
|
-
console.log(data.Name + ': ' + data['Execution Time'] + 'ms');
|
|
712
|
-
});
|
|
713
|
-
}
|
|
694
|
+
console.table(performance);
|
|
714
695
|
console.groupEnd();
|
|
715
696
|
}
|
|
716
697
|
performance = [];
|
|
717
698
|
},
|
|
718
699
|
},
|
|
719
|
-
invoke: function (query, passedArguments, context) {
|
|
700
|
+
invoke: function (query, passedArguments = queryArguments, context = element) {
|
|
720
701
|
let object = instance;
|
|
721
702
|
let maxDepth;
|
|
722
703
|
let found;
|
|
723
704
|
let response;
|
|
724
|
-
passedArguments = passedArguments || queryArguments;
|
|
725
|
-
context = context || element;
|
|
726
705
|
if (typeof query === 'string' && object !== undefined) {
|
|
727
706
|
query = query.split(/[ .]/);
|
|
728
707
|
maxDepth = query.length - 1;
|
|
729
708
|
$.each(query, function (depth, value) {
|
|
730
|
-
|
|
709
|
+
const camelCaseValue = depth !== maxDepth
|
|
731
710
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
|
732
711
|
: query;
|
|
733
712
|
if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
|
|
@@ -770,7 +749,7 @@
|
|
|
770
749
|
if (instance === undefined) {
|
|
771
750
|
module.initialize();
|
|
772
751
|
}
|
|
773
|
-
module.invoke(
|
|
752
|
+
module.invoke(parameters);
|
|
774
753
|
} else {
|
|
775
754
|
if (instance !== undefined) {
|
|
776
755
|
instance.invoke('destroy');
|