card 1.98.0 → 1.98.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/db/migrate_core_cards/20190718140126_add_guides.rb +19 -0
- data/db/migrate_core_cards/data/cards/Xaccount_setting-Xright-Xstructure +9 -2
- data/db/migrate_core_cards/data/cards/anyone_signed_in-dashboard +0 -2
- data/db/seed/new/card_actions.yml +858 -842
- data/db/seed/new/card_acts.yml +2 -2
- data/db/seed/new/card_references.yml +965 -951
- data/db/seed/new/cards.yml +3351 -3310
- data/db/seed/new/schema_migrations_core_cards.yml +4 -0
- data/db/seed/test/fixtures/card_actions.yml +1861 -1845
- data/db/seed/test/fixtures/card_acts.yml +489 -489
- data/db/seed/test/fixtures/card_changes.yml +66 -66
- data/db/seed/test/fixtures/card_references.yml +922 -908
- data/db/seed/test/fixtures/cards.yml +3100 -3059
- data/db/seed/test/fixtures/schema_migrations_core_cards.yml +4 -0
- data/lib/card/act_manager.rb +15 -45
- data/lib/card/act_manager/event_delay.rb +48 -0
- data/lib/card/act_manager/stage_director.rb +2 -2
- data/lib/card/act_manager/stage_director/phases.rb +3 -6
- data/lib/card/auth/current.rb +5 -0
- data/lib/card/set/event/delayed_event.rb +2 -0
- data/mod/account/set/right/account.rb +10 -14
- data/mod/account/set/right/token.rb +1 -0
- data/mod/account/set/type/signup.rb +2 -4
- data/mod/account/spec/set/right/account_spec.rb +1 -2
- data/mod/account/spec/set/type/signup_spec.rb +2 -1
- data/mod/bootstrap/lib/stylesheets/style_bootstrap_cards.scss +1 -6
- data/mod/core/set/all/event_conditions.rb +16 -5
- data/mod/core/set/all/fetch_helper.rb +4 -1
- data/mod/core/set/all/name_events.rb +3 -2
- data/mod/core/set/all/references.rb +3 -3
- data/mod/core/set/all/rename.rb +3 -2
- data/mod/core/set/all/update_read_rules.rb +1 -19
- data/mod/core/spec/set/all/event_conditions_spec.rb +36 -38
- data/mod/core/spec/set/all/permissions_spec.rb +1 -1
- data/mod/date/set/all/calendar.rb +1 -1
- data/mod/date/vendor/moment/CHANGELOG.md +8 -0
- data/mod/date/vendor/moment/Moment.js.nuspec +5 -5
- data/mod/date/vendor/moment/component.json +1 -1
- data/mod/date/vendor/moment/locale/az.js +1 -1
- data/mod/date/vendor/moment/locale/be.js +1 -1
- data/mod/date/vendor/moment/locale/pa-in.js +1 -1
- data/mod/date/vendor/moment/meteor/package.js +1 -1
- data/mod/date/vendor/moment/min/locales.js +28 -28
- data/mod/date/vendor/moment/min/locales.min.js +1 -1
- data/mod/date/vendor/moment/min/moment-with-locales.js +33 -33
- data/mod/date/vendor/moment/min/moment-with-locales.min.js +1 -1
- data/mod/date/vendor/moment/min/moment.min.js +1 -1
- data/mod/date/vendor/moment/min/tests.js +48 -11
- data/mod/date/vendor/moment/moment.js +5 -5
- data/mod/date/vendor/moment/package.json +2 -2
- data/mod/date/vendor/moment/src/lib/create/from-string.js +1 -1
- data/mod/date/vendor/moment/src/lib/units/day-of-week.js +3 -3
- data/mod/date/vendor/moment/src/locale/az.js +1 -1
- data/mod/date/vendor/moment/src/locale/be.js +1 -1
- data/mod/date/vendor/moment/src/locale/pa-in.js +1 -1
- data/mod/date/vendor/moment/src/moment.js +2 -2
- data/mod/date/vendor/moment/src/test/locale/az.js +5 -5
- data/mod/date/vendor/moment/src/test/locale/be.js +3 -0
- data/mod/date/vendor/moment/src/test/locale/pa-in.js +3 -3
- data/mod/date/vendor/moment/src/test/moment/locale.js +33 -0
- data/mod/date/vendor/moment/src/test/moment/start_end_of.js +1 -1
- data/mod/date/vendor/moment/src/test/moment/weeks.js +2 -2
- data/mod/date/vendor/tempusdominus/Gruntfile.js +7 -49
- data/mod/date/vendor/tempusdominus/build/css/tempusdominus-bootstrap-4.css +3 -1
- data/mod/date/vendor/tempusdominus/build/css/tempusdominus-bootstrap-4.min.css +3 -1
- data/mod/date/vendor/tempusdominus/build/js/tempusdominus-bootstrap-4.js +128 -116
- data/mod/date/vendor/tempusdominus/build/js/tempusdominus-bootstrap-4.min.js +3 -3
- data/mod/date/vendor/tempusdominus/composer.json +3 -3
- data/mod/date/vendor/tempusdominus/docs/Changelog/index.html +20 -36
- data/mod/date/vendor/tempusdominus/docs/ContributorsGuide/index.html +20 -36
- data/mod/date/vendor/tempusdominus/docs/Events/index.html +20 -36
- data/mod/date/vendor/tempusdominus/docs/Extras/index.html +20 -36
- data/mod/date/vendor/tempusdominus/docs/FAQ/index.html +20 -36
- data/mod/date/vendor/tempusdominus/docs/Functions/index.html +20 -36
- data/mod/date/vendor/tempusdominus/docs/Installing/index.html +30 -50
- data/mod/date/vendor/tempusdominus/docs/Options/index.html +21 -37
- data/mod/date/vendor/tempusdominus/docs/Usage/index.html +20 -40
- data/mod/date/vendor/tempusdominus/docs/css/base.css +1682 -0
- data/mod/date/vendor/tempusdominus/docs/css/tempusdominus-bootstrap-4.css +3 -1
- data/mod/date/vendor/tempusdominus/docs/index.html +26 -41
- data/mod/date/vendor/tempusdominus/docs/js/tempusdominus-bootstrap-4.js +127 -115
- data/mod/date/vendor/tempusdominus/docs/search/search_index.json +11 -16
- data/mod/date/vendor/tempusdominus/docs/sitemap.xml +10 -10
- data/mod/date/vendor/tempusdominus/docs/theme/base.html +11 -12
- data/mod/date/vendor/tempusdominus/docs/theme/css/base.css +1682 -0
- data/mod/date/vendor/tempusdominus/docs/theme/css/tempusdominus-bootstrap-4.css +3 -1
- data/mod/date/vendor/tempusdominus/docs/theme/js/tempusdominus-bootstrap-4.js +127 -115
- data/mod/date/vendor/tempusdominus/docs/theme/toc.html +1 -0
- data/mod/date/vendor/tempusdominus/package-lock.json +4085 -8197
- data/mod/date/vendor/tempusdominus/package.json +17 -19
- data/mod/date/vendor/tempusdominus/src/docs/Installing.md +12 -18
- data/mod/date/vendor/tempusdominus/src/docs/Options.md +1 -1
- data/mod/date/vendor/tempusdominus/src/docs/Usage.md +0 -2
- data/mod/date/vendor/tempusdominus/src/docs/index.md +7 -5
- data/mod/date/vendor/tempusdominus/src/docs/theme/base.html +11 -12
- data/mod/date/vendor/tempusdominus/src/docs/theme/css/base.css +1682 -0
- data/mod/date/vendor/tempusdominus/src/docs/theme/css/tempusdominus-bootstrap-4.css +3 -1
- data/mod/date/vendor/tempusdominus/src/docs/theme/js/tempusdominus-bootstrap-4.js +127 -115
- data/mod/date/vendor/tempusdominus/src/docs/theme/toc.html +1 -0
- data/mod/date/vendor/tempusdominus/src/js/tempusdominus-bootstrap-4.js +32 -12
- data/mod/date/vendor/tempusdominus/src/sass/_tempusdominus-bootstrap-4.scss +4 -0
- data/mod/date/vendor/tempusdominus/src/sass/tempusdominus-bootstrap-4-build.scss +2 -2
- data/mod/edit/set/all/bridge.rb +4 -1
- data/mod/edit/set/all/bridge/tab_views.rb +4 -0
- data/mod/edit/set/all/bridge/tab_visibility.rb +4 -0
- data/mod/edit/set/all/edit_content.rb +9 -0
- data/mod/edit/set/all/edit_inline.rb +0 -4
- data/mod/edit/set/all/edit_type.rb +83 -12
- data/mod/edit/set/all/editing.rb +2 -2
- data/mod/edit/set/all/form.rb +1 -62
- data/mod/edit/set/all/form_buttons.rb +1 -1
- data/mod/edit/set/all/new.rb +52 -7
- data/mod/edit/spec/set/all/nest_editor_spec.rb +1 -1
- data/mod/follow/set/all/notify/base_views.rb +1 -3
- data/mod/machines/file/all_script_machine_output/file.js +72 -38108
- data/mod/machines/file/all_style_machine_output/file.css +3 -3
- data/mod/machines/file/script_html5shiv_printshiv_machine_output/file.js +1 -1
- data/mod/machines/lib/javascript/decko/decko.js.coffee +12 -3
- data/mod/machines/lib/javascript/decko/overlay.js.coffee +3 -0
- data/mod/machines/lib/javascript/decko/slotter.js.coffee +8 -0
- data/mod/machines/lib/stylesheets/style_cards.scss +15 -0
- data/mod/machines/spec/set/type/css_spec.rb +14 -14
- data/mod/machines/spec/shared_examples/machine_input.rb +6 -10
- data/mod/navbar/set/abstract/{roles_dropdown.rb → account_dropdown.rb} +8 -2
- data/mod/navbar/set/right/enabled_roles.rb +6 -8
- data/mod/navbar/set/self/account_links.rb +2 -2
- data/mod/navbar/spec/set/self/account_links_spec.rb +31 -0
- data/mod/pointer/set/abstract/02_pointer/html_views.rb +1 -1
- data/mod/rules/set/rule/editor.rb +1 -1
- data/mod/rules/set/type/set/setting_lists.rb +1 -1
- data/mod/search/set/self/search.rb +2 -0
- data/mod/settings/set/right/guide.rb +8 -0
- data/mod/settings/set/right/read.rb +1 -1
- data/mod/settings/set/self/guide.rb +3 -0
- data/mod/standard/set/all/rich_html/content.rb +0 -6
- data/mod/standard/set/all/rich_html/error.rb +3 -3
- data/mod/standard/set/all/rich_html/html_views/guide.rb +51 -0
- data/mod/standard/set/all/rich_html/html_views/help.rb +6 -0
- data/mod/standard/set/all/rich_html/overlay.rb +1 -1
- data/mod/standard/set/type/cardtype.rb +1 -1
- data/mod/tinymce_editor/lib/javascript/script_tinymce.js +2 -2
- data/mod/tinymce_editor/public/assets/tinymce/jquery.tinymce.min.js +1 -1
- data/mod/tinymce_editor/public/assets/tinymce/plugins/advlist/plugin.min.js +2 -2
- data/mod/tinymce_editor/public/assets/tinymce/plugins/anchor/plugin.min.js +2 -2
- data/mod/tinymce_editor/public/assets/tinymce/plugins/autolink/plugin.min.js +2 -2
- data/mod/tinymce_editor/public/assets/tinymce/plugins/autoresize/plugin.min.js +2 -2
- data/mod/tinymce_editor/public/assets/tinymce/plugins/autosave/plugin.min.js +2 -2
- data/mod/tinymce_editor/public/assets/tinymce/plugins/bbcode/plugin.min.js +2 -2
- data/mod/tinymce_editor/public/assets/tinymce/plugins/charmap/plugin.min.js +2 -2
- data/mod/tinymce_editor/public/assets/tinymce/plugins/code/plugin.min.js +2 -2
- data/mod/tinymce_editor/public/assets/tinymce/plugins/codesample/plugin.min.js +2 -2
- data/mod/tinymce_editor/public/assets/tinymce/plugins/colorpicker/plugin.min.js +2 -2
- data/mod/tinymce_editor/public/assets/tinymce/plugins/contextmenu/plugin.min.js +2 -2
- data/mod/tinymce_editor/public/assets/tinymce/plugins/directionality/plugin.min.js +2 -2
- data/mod/tinymce_editor/public/assets/tinymce/plugins/emoticons/js/emojis.js +8941 -8941
- data/mod/tinymce_editor/public/assets/tinymce/plugins/emoticons/plugin.min.js +2 -2
- data/mod/tinymce_editor/public/assets/tinymce/plugins/fullpage/plugin.min.js +2 -2
- data/mod/tinymce_editor/public/assets/tinymce/plugins/fullscreen/plugin.min.js +2 -2
- data/mod/tinymce_editor/public/assets/tinymce/plugins/help/plugin.min.js +2 -2
- data/mod/tinymce_editor/public/assets/tinymce/plugins/hr/plugin.min.js +2 -2
- data/mod/tinymce_editor/public/assets/tinymce/plugins/image/plugin.min.js +2 -2
- data/mod/tinymce_editor/public/assets/tinymce/plugins/imagetools/plugin.min.js +2 -2
- data/mod/tinymce_editor/public/assets/tinymce/plugins/importcss/plugin.min.js +2 -2
- data/mod/tinymce_editor/public/assets/tinymce/plugins/insertdatetime/plugin.min.js +2 -2
- data/mod/tinymce_editor/public/assets/tinymce/plugins/legacyoutput/plugin.min.js +2 -2
- data/mod/tinymce_editor/public/assets/tinymce/plugins/link/plugin.min.js +2 -2
- data/mod/tinymce_editor/public/assets/tinymce/plugins/lists/plugin.min.js +2 -2
- data/mod/tinymce_editor/public/assets/tinymce/plugins/media/plugin.min.js +2 -2
- data/mod/tinymce_editor/public/assets/tinymce/plugins/nonbreaking/plugin.min.js +2 -2
- data/mod/tinymce_editor/public/assets/tinymce/plugins/noneditable/plugin.min.js +2 -2
- data/mod/tinymce_editor/public/assets/tinymce/plugins/pagebreak/plugin.min.js +2 -2
- data/mod/tinymce_editor/public/assets/tinymce/plugins/paste/plugin.min.js +2 -2
- data/mod/tinymce_editor/public/assets/tinymce/plugins/preview/plugin.min.js +2 -2
- data/mod/tinymce_editor/public/assets/tinymce/plugins/print/plugin.min.js +2 -2
- data/mod/tinymce_editor/public/assets/tinymce/plugins/quickbars/plugin.min.js +2 -2
- data/mod/tinymce_editor/public/assets/tinymce/plugins/save/plugin.min.js +2 -2
- data/mod/tinymce_editor/public/assets/tinymce/plugins/searchreplace/plugin.min.js +2 -2
- data/mod/tinymce_editor/public/assets/tinymce/plugins/spellchecker/plugin.min.js +2 -2
- data/mod/tinymce_editor/public/assets/tinymce/plugins/tabfocus/plugin.min.js +2 -2
- data/mod/tinymce_editor/public/assets/tinymce/plugins/table/plugin.min.js +2 -2
- data/mod/tinymce_editor/public/assets/tinymce/plugins/template/plugin.min.js +2 -2
- data/mod/tinymce_editor/public/assets/tinymce/plugins/textcolor/plugin.min.js +2 -2
- data/mod/tinymce_editor/public/assets/tinymce/plugins/textpattern/plugin.min.js +2 -2
- data/mod/tinymce_editor/public/assets/tinymce/plugins/toc/plugin.min.js +2 -2
- data/mod/tinymce_editor/public/assets/tinymce/plugins/visualblocks/plugin.min.js +2 -2
- data/mod/tinymce_editor/public/assets/tinymce/plugins/visualchars/plugin.min.js +2 -2
- data/mod/tinymce_editor/public/assets/tinymce/plugins/wordcount/plugin.min.js +2 -2
- data/mod/tinymce_editor/public/assets/tinymce/skins/content/default/content.min.css +1 -1
- data/mod/tinymce_editor/public/assets/tinymce/skins/content/document/content.min.css +1 -1
- data/mod/tinymce_editor/public/assets/tinymce/skins/content/writer/content.min.css +1 -1
- data/mod/tinymce_editor/public/assets/tinymce/skins/ui/oxide-dark/content.inline.min.css +1 -1
- data/mod/tinymce_editor/public/assets/tinymce/skins/ui/oxide-dark/content.min.css +1 -1
- data/mod/tinymce_editor/public/assets/tinymce/skins/ui/oxide-dark/skin.min.css +1 -1
- data/mod/tinymce_editor/public/assets/tinymce/skins/ui/oxide/content.inline.min.css +1 -1
- data/mod/tinymce_editor/public/assets/tinymce/skins/ui/oxide/content.min.css +1 -1
- data/mod/tinymce_editor/public/assets/tinymce/skins/ui/oxide/content.mobile.min.css +7 -1
- data/mod/tinymce_editor/public/assets/tinymce/skins/ui/oxide/skin.min.css +1 -1
- data/mod/tinymce_editor/public/assets/tinymce/skins/ui/oxide/skin.mobile.min.css +7 -1
- data/mod/tinymce_editor/public/assets/tinymce/themes/mobile/theme.min.js +2 -2
- data/mod/tinymce_editor/public/assets/tinymce/themes/silver/theme.min.js +2 -2
- data/mod/tinymce_editor/public/assets/tinymce/tinymce.min.js +2 -2
- metadata +10 -47
- data/mod/date/vendor/tempusdominus/src/nuget/NuGet.exe +0 -0
- data/mod/date/vendor/tempusdominus/src/nuget/Tempus.Dominus.Bootstrap.4.nuspec +0 -29
- data/mod/tinymce_editor/public/assets/tinymce/plugins/codesample/css/prism.css +0 -138
- data/mod/tinymce_editor/public/assets/tinymce/plugins/emoticons/img/smiley-cool.gif +0 -0
- data/mod/tinymce_editor/public/assets/tinymce/plugins/emoticons/img/smiley-cry.gif +0 -0
- data/mod/tinymce_editor/public/assets/tinymce/plugins/emoticons/img/smiley-embarassed.gif +0 -0
- data/mod/tinymce_editor/public/assets/tinymce/plugins/emoticons/img/smiley-foot-in-mouth.gif +0 -0
- data/mod/tinymce_editor/public/assets/tinymce/plugins/emoticons/img/smiley-frown.gif +0 -0
- data/mod/tinymce_editor/public/assets/tinymce/plugins/emoticons/img/smiley-innocent.gif +0 -0
- data/mod/tinymce_editor/public/assets/tinymce/plugins/emoticons/img/smiley-kiss.gif +0 -0
- data/mod/tinymce_editor/public/assets/tinymce/plugins/emoticons/img/smiley-laughing.gif +0 -0
- data/mod/tinymce_editor/public/assets/tinymce/plugins/emoticons/img/smiley-money-mouth.gif +0 -0
- data/mod/tinymce_editor/public/assets/tinymce/plugins/emoticons/img/smiley-sealed.gif +0 -0
- data/mod/tinymce_editor/public/assets/tinymce/plugins/emoticons/img/smiley-smile.gif +0 -0
- data/mod/tinymce_editor/public/assets/tinymce/plugins/emoticons/img/smiley-surprised.gif +0 -0
- data/mod/tinymce_editor/public/assets/tinymce/plugins/emoticons/img/smiley-tongue-out.gif +0 -0
- data/mod/tinymce_editor/public/assets/tinymce/plugins/emoticons/img/smiley-undecided.gif +0 -0
- data/mod/tinymce_editor/public/assets/tinymce/plugins/emoticons/img/smiley-wink.gif +0 -0
- data/mod/tinymce_editor/public/assets/tinymce/plugins/emoticons/img/smiley-yell.gif +0 -0
- data/mod/tinymce_editor/public/assets/tinymce/plugins/help/img/logo.png +0 -0
- data/mod/tinymce_editor/public/assets/tinymce/plugins/visualblocks/css/visualblocks.css +0 -154
- data/mod/tinymce_editor/public/assets/tinymce/skins/lightgray/content.inline.min.css +0 -1
- data/mod/tinymce_editor/public/assets/tinymce/skins/lightgray/content.min.css +0 -1
- data/mod/tinymce_editor/public/assets/tinymce/skins/lightgray/content.mobile.min.css +0 -1
- data/mod/tinymce_editor/public/assets/tinymce/skins/lightgray/fonts/tinymce-mobile.woff +0 -0
- data/mod/tinymce_editor/public/assets/tinymce/skins/lightgray/fonts/tinymce-small.eot +0 -0
- data/mod/tinymce_editor/public/assets/tinymce/skins/lightgray/fonts/tinymce-small.svg +0 -63
- data/mod/tinymce_editor/public/assets/tinymce/skins/lightgray/fonts/tinymce-small.ttf +0 -0
- data/mod/tinymce_editor/public/assets/tinymce/skins/lightgray/fonts/tinymce-small.woff +0 -0
- data/mod/tinymce_editor/public/assets/tinymce/skins/lightgray/fonts/tinymce.eot +0 -0
- data/mod/tinymce_editor/public/assets/tinymce/skins/lightgray/fonts/tinymce.svg +0 -131
- data/mod/tinymce_editor/public/assets/tinymce/skins/lightgray/fonts/tinymce.ttf +0 -0
- data/mod/tinymce_editor/public/assets/tinymce/skins/lightgray/fonts/tinymce.woff +0 -0
- data/mod/tinymce_editor/public/assets/tinymce/skins/lightgray/img/anchor.gif +0 -0
- data/mod/tinymce_editor/public/assets/tinymce/skins/lightgray/img/loader.gif +0 -0
- data/mod/tinymce_editor/public/assets/tinymce/skins/lightgray/img/object.gif +0 -0
- data/mod/tinymce_editor/public/assets/tinymce/skins/lightgray/img/trans.gif +0 -0
- data/mod/tinymce_editor/public/assets/tinymce/skins/lightgray/skin.min.css +0 -1
- data/mod/tinymce_editor/public/assets/tinymce/skins/lightgray/skin.min.css.map +0 -0
- data/mod/tinymce_editor/public/assets/tinymce/skins/lightgray/skin.mobile.min.css +0 -2
- data/mod/tinymce_editor/public/assets/tinymce/themes/inlite/theme.min.js +0 -1
- data/mod/tinymce_editor/public/assets/tinymce/themes/modern/theme.min.js +0 -1
@@ -1,5 +1,5 @@
|
|
1
1
|
/*@preserve
|
2
|
-
* Tempus Dominus Bootstrap4 v5.
|
2
|
+
* Tempus Dominus Bootstrap4 v5.1.2 (https://tempusdominus.github.io/bootstrap-4/)
|
3
3
|
* Copyright 2016-2018 Jonathan Peterson
|
4
4
|
* Licensed under MIT (https://github.com/tempusdominus/bootstrap-3/blob/master/LICENSE)
|
5
5
|
*/
|
@@ -66,6 +66,8 @@
|
|
66
66
|
.bootstrap-datetimepicker-widget.dropdown-menu.float-right:after {
|
67
67
|
left: auto;
|
68
68
|
right: 7px; }
|
69
|
+
.bootstrap-datetimepicker-widget.dropdown-menu.wider {
|
70
|
+
width: 16rem; }
|
69
71
|
.bootstrap-datetimepicker-widget .list-unstyled {
|
70
72
|
margin: 0; }
|
71
73
|
.bootstrap-datetimepicker-widget a[data-action] {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*@preserve
|
2
|
-
* Tempus Dominus Bootstrap4 v5.
|
2
|
+
* Tempus Dominus Bootstrap4 v5.1.2 (https://tempusdominus.github.io/bootstrap-4/)
|
3
3
|
* Copyright 2016-2018 Jonathan Peterson
|
4
4
|
* Licensed under MIT (https://github.com/tempusdominus/bootstrap-3/blob/master/LICENSE)
|
5
5
|
*/
|
@@ -38,13 +38,11 @@ function _inherits(subClass, superClass) { if (typeof superClass !== "function"
|
|
38
38
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
39
39
|
|
40
40
|
// ReSharper disable once InconsistentNaming
|
41
|
-
var DateTimePicker = function (
|
41
|
+
var DateTimePicker = function ($, moment) {
|
42
42
|
// ReSharper disable InconsistentNaming
|
43
43
|
var NAME = 'datetimepicker',
|
44
|
-
VERSION = '5.0.0-alpha7',
|
45
44
|
DATA_KEY = '' + NAME,
|
46
45
|
EVENT_KEY = '.' + DATA_KEY,
|
47
|
-
EMIT_EVENT_KEY = DATA_KEY + '.',
|
48
46
|
DATA_API_KEY = '.data-api',
|
49
47
|
Selector = {
|
50
48
|
DATA_TOGGLE: '[data-toggle="' + DATA_KEY + '"]'
|
@@ -60,12 +58,63 @@ var DateTimePicker = function ($) {
|
|
60
58
|
FOCUS: 'focus' + EVENT_KEY,
|
61
59
|
CLICK_DATA_API: 'click' + EVENT_KEY + DATA_API_KEY,
|
62
60
|
//emitted
|
63
|
-
UPDATE:
|
64
|
-
ERROR:
|
65
|
-
HIDE:
|
66
|
-
SHOW:
|
61
|
+
UPDATE: 'update' + EVENT_KEY,
|
62
|
+
ERROR: 'error' + EVENT_KEY,
|
63
|
+
HIDE: 'hide' + EVENT_KEY,
|
64
|
+
SHOW: 'show' + EVENT_KEY
|
67
65
|
},
|
68
|
-
|
66
|
+
DatePickerModes = [{
|
67
|
+
CLASS_NAME: 'days',
|
68
|
+
NAV_FUNCTION: 'M',
|
69
|
+
NAV_STEP: 1
|
70
|
+
}, {
|
71
|
+
CLASS_NAME: 'months',
|
72
|
+
NAV_FUNCTION: 'y',
|
73
|
+
NAV_STEP: 1
|
74
|
+
}, {
|
75
|
+
CLASS_NAME: 'years',
|
76
|
+
NAV_FUNCTION: 'y',
|
77
|
+
NAV_STEP: 10
|
78
|
+
}, {
|
79
|
+
CLASS_NAME: 'decades',
|
80
|
+
NAV_FUNCTION: 'y',
|
81
|
+
NAV_STEP: 100
|
82
|
+
}],
|
83
|
+
KeyMap = {
|
84
|
+
'up': 38,
|
85
|
+
38: 'up',
|
86
|
+
'down': 40,
|
87
|
+
40: 'down',
|
88
|
+
'left': 37,
|
89
|
+
37: 'left',
|
90
|
+
'right': 39,
|
91
|
+
39: 'right',
|
92
|
+
'tab': 9,
|
93
|
+
9: 'tab',
|
94
|
+
'escape': 27,
|
95
|
+
27: 'escape',
|
96
|
+
'enter': 13,
|
97
|
+
13: 'enter',
|
98
|
+
'pageUp': 33,
|
99
|
+
33: 'pageUp',
|
100
|
+
'pageDown': 34,
|
101
|
+
34: 'pageDown',
|
102
|
+
'shift': 16,
|
103
|
+
16: 'shift',
|
104
|
+
'control': 17,
|
105
|
+
17: 'control',
|
106
|
+
'space': 32,
|
107
|
+
32: 'space',
|
108
|
+
't': 84,
|
109
|
+
84: 't',
|
110
|
+
'delete': 46,
|
111
|
+
46: 'delete'
|
112
|
+
},
|
113
|
+
ViewModes = ['times', 'days', 'months', 'years', 'decades'],
|
114
|
+
keyState = {},
|
115
|
+
keyPressHandled = {};
|
116
|
+
|
117
|
+
var Default = {
|
69
118
|
timeZone: '',
|
70
119
|
format: false,
|
71
120
|
dayViewHeaderFormat: 'MMMM YYYY',
|
@@ -75,7 +124,7 @@ var DateTimePicker = function ($) {
|
|
75
124
|
maxDate: false,
|
76
125
|
useCurrent: true,
|
77
126
|
collapse: true,
|
78
|
-
locale:
|
127
|
+
locale: moment.locale(),
|
79
128
|
defaultDate: false,
|
80
129
|
disabledDates: false,
|
81
130
|
enabledDates: false,
|
@@ -230,6 +279,9 @@ var DateTimePicker = function ($) {
|
|
230
279
|
return true;
|
231
280
|
},
|
232
281
|
enter: function enter() {
|
282
|
+
if (!this.widget) {
|
283
|
+
return false;
|
284
|
+
}
|
233
285
|
this.hide();
|
234
286
|
return true;
|
235
287
|
},
|
@@ -250,6 +302,9 @@ var DateTimePicker = function ($) {
|
|
250
302
|
return true;
|
251
303
|
},
|
252
304
|
t: function t() {
|
305
|
+
if (!this.widget) {
|
306
|
+
return false;
|
307
|
+
}
|
253
308
|
this.date(this.getMoment());
|
254
309
|
return true;
|
255
310
|
},
|
@@ -269,59 +324,8 @@ var DateTimePicker = function ($) {
|
|
269
324
|
viewDate: false,
|
270
325
|
allowMultidate: false,
|
271
326
|
multidateSeparator: ','
|
272
|
-
}
|
273
|
-
DatePickerModes = [{
|
274
|
-
CLASS_NAME: 'days',
|
275
|
-
NAV_FUNCTION: 'M',
|
276
|
-
NAV_STEP: 1
|
277
|
-
}, {
|
278
|
-
CLASS_NAME: 'months',
|
279
|
-
NAV_FUNCTION: 'y',
|
280
|
-
NAV_STEP: 1
|
281
|
-
}, {
|
282
|
-
CLASS_NAME: 'years',
|
283
|
-
NAV_FUNCTION: 'y',
|
284
|
-
NAV_STEP: 10
|
285
|
-
}, {
|
286
|
-
CLASS_NAME: 'decades',
|
287
|
-
NAV_FUNCTION: 'y',
|
288
|
-
NAV_STEP: 100
|
289
|
-
}],
|
290
|
-
KeyMap = {
|
291
|
-
'up': 38,
|
292
|
-
38: 'up',
|
293
|
-
'down': 40,
|
294
|
-
40: 'down',
|
295
|
-
'left': 37,
|
296
|
-
37: 'left',
|
297
|
-
'right': 39,
|
298
|
-
39: 'right',
|
299
|
-
'tab': 9,
|
300
|
-
9: 'tab',
|
301
|
-
'escape': 27,
|
302
|
-
27: 'escape',
|
303
|
-
'enter': 13,
|
304
|
-
13: 'enter',
|
305
|
-
'pageUp': 33,
|
306
|
-
33: 'pageUp',
|
307
|
-
'pageDown': 34,
|
308
|
-
34: 'pageDown',
|
309
|
-
'shift': 16,
|
310
|
-
16: 'shift',
|
311
|
-
'control': 17,
|
312
|
-
17: 'control',
|
313
|
-
'space': 32,
|
314
|
-
32: 'space',
|
315
|
-
't': 84,
|
316
|
-
84: 't',
|
317
|
-
'delete': 46,
|
318
|
-
46: 'delete'
|
319
|
-
},
|
320
|
-
ViewModes = ['times', 'days', 'months', 'years', 'decades'],
|
321
|
-
keyState = {},
|
322
|
-
keyPressHandled = {};
|
327
|
+
};
|
323
328
|
|
324
|
-
var MinViewModeNumber = 0;
|
325
329
|
// ReSharper restore InconsistentNaming
|
326
330
|
|
327
331
|
// ReSharper disable once DeclarationHides
|
@@ -346,6 +350,7 @@ var DateTimePicker = function ($) {
|
|
346
350
|
this.actualFormat = null;
|
347
351
|
this.parseFormats = null;
|
348
352
|
this.currentViewMode = null;
|
353
|
+
this.MinViewModeNumber = 0;
|
349
354
|
|
350
355
|
this._int();
|
351
356
|
}
|
@@ -380,9 +385,9 @@ var DateTimePicker = function ($) {
|
|
380
385
|
this._initFormatting();
|
381
386
|
|
382
387
|
if (this.input !== undefined && this.input.is('input') && this.input.val().trim().length !== 0) {
|
383
|
-
this._setValue(this._parseInputDate(this.input.val().trim()));
|
388
|
+
this._setValue(this._parseInputDate(this.input.val().trim()), 0);
|
384
389
|
} else if (this._options.defaultDate && this.input !== undefined && this.input.attr('placeholder') === undefined) {
|
385
|
-
this._setValue(this._options.defaultDate);
|
390
|
+
this._setValue(this._options.defaultDate, 0);
|
386
391
|
}
|
387
392
|
if (this._options.inline) {
|
388
393
|
this.show();
|
@@ -499,7 +504,7 @@ var DateTimePicker = function ($) {
|
|
499
504
|
};
|
500
505
|
|
501
506
|
DateTimePicker.prototype._hasTimeZone = function _hasTimeZone() {
|
502
|
-
return
|
507
|
+
return moment.tz !== undefined && this._options.timeZone !== undefined && this._options.timeZone !== null && this._options.timeZone !== '';
|
503
508
|
};
|
504
509
|
|
505
510
|
DateTimePicker.prototype._isEnabled = function _isEnabled(granularity) {
|
@@ -520,6 +525,9 @@ var DateTimePicker = function ($) {
|
|
520
525
|
return this.actualFormat.indexOf('m') !== -1;
|
521
526
|
case 's':
|
522
527
|
return this.actualFormat.indexOf('s') !== -1;
|
528
|
+
case 'a':
|
529
|
+
case 'A':
|
530
|
+
return this.actualFormat.toLowerCase().indexOf('a') !== -1;
|
523
531
|
default:
|
524
532
|
return false;
|
525
533
|
}
|
@@ -575,7 +583,7 @@ var DateTimePicker = function ($) {
|
|
575
583
|
return;
|
576
584
|
}
|
577
585
|
if (dir) {
|
578
|
-
this.currentViewMode = Math.max(MinViewModeNumber, Math.min(3, this.currentViewMode + dir));
|
586
|
+
this.currentViewMode = Math.max(this.MinViewModeNumber, Math.min(3, this.currentViewMode + dir));
|
579
587
|
}
|
580
588
|
this.widget.find('.datepicker > div').hide().filter('.datepicker-' + DatePickerModes[this.currentViewMode].CLASS_NAME).show();
|
581
589
|
};
|
@@ -638,7 +646,7 @@ var DateTimePicker = function ($) {
|
|
638
646
|
|
639
647
|
DateTimePicker.prototype._parseInputDate = function _parseInputDate(inputDate) {
|
640
648
|
if (this._options.parseInputDate === undefined) {
|
641
|
-
if (!
|
649
|
+
if (!moment.isMoment(inputDate)) {
|
642
650
|
inputDate = this.getMoment(inputDate);
|
643
651
|
}
|
644
652
|
} else {
|
@@ -690,7 +698,7 @@ var DateTimePicker = function ($) {
|
|
690
698
|
}
|
691
699
|
|
692
700
|
if (handler) {
|
693
|
-
if (handler.call(this
|
701
|
+
if (handler.call(this)) {
|
694
702
|
e.stopPropagation();
|
695
703
|
e.preventDefault();
|
696
704
|
}
|
@@ -751,16 +759,16 @@ var DateTimePicker = function ($) {
|
|
751
759
|
this.use24Hours = this.actualFormat.toLowerCase().indexOf('a') < 1 && this.actualFormat.replace(/\[.*?]/g, '').indexOf('h') < 1;
|
752
760
|
|
753
761
|
if (this._isEnabled('y')) {
|
754
|
-
MinViewModeNumber = 2;
|
762
|
+
this.MinViewModeNumber = 2;
|
755
763
|
}
|
756
764
|
if (this._isEnabled('M')) {
|
757
|
-
MinViewModeNumber = 1;
|
765
|
+
this.MinViewModeNumber = 1;
|
758
766
|
}
|
759
767
|
if (this._isEnabled('d')) {
|
760
|
-
MinViewModeNumber = 0;
|
768
|
+
this.MinViewModeNumber = 0;
|
761
769
|
}
|
762
770
|
|
763
|
-
this.currentViewMode = Math.max(MinViewModeNumber, this.currentViewMode);
|
771
|
+
this.currentViewMode = Math.max(this.MinViewModeNumber, this.currentViewMode);
|
764
772
|
|
765
773
|
if (!this.unset) {
|
766
774
|
this._setValue(this._dates[0], 0);
|
@@ -782,13 +790,13 @@ var DateTimePicker = function ($) {
|
|
782
790
|
var returnMoment = void 0;
|
783
791
|
|
784
792
|
if (d === undefined || d === null) {
|
785
|
-
returnMoment =
|
793
|
+
returnMoment = moment(); //TODO should this use format? and locale?
|
786
794
|
} else if (this._hasTimeZone()) {
|
787
795
|
// There is a string to parse and a default time zone
|
788
796
|
// parse with the tz function which takes a default time zone if it is not in the format string
|
789
|
-
returnMoment =
|
797
|
+
returnMoment = moment.tz(d, this.parseFormats, this._options.locale, this._options.useStrict, this._options.timeZone);
|
790
798
|
} else {
|
791
|
-
returnMoment =
|
799
|
+
returnMoment = moment(d, this.parseFormats, this._options.locale, this._options.useStrict);
|
792
800
|
}
|
793
801
|
|
794
802
|
if (this._hasTimeZone()) {
|
@@ -842,7 +850,7 @@ var DateTimePicker = function ($) {
|
|
842
850
|
}
|
843
851
|
}
|
844
852
|
|
845
|
-
if (newDate !== null && typeof newDate !== 'string' && !
|
853
|
+
if (newDate !== null && typeof newDate !== 'string' && !moment.isMoment(newDate) && !(newDate instanceof Date)) {
|
846
854
|
throw new TypeError('date() parameter must be one of [null, string, moment or Date]');
|
847
855
|
}
|
848
856
|
|
@@ -850,9 +858,6 @@ var DateTimePicker = function ($) {
|
|
850
858
|
};
|
851
859
|
|
852
860
|
DateTimePicker.prototype.format = function format(newFormat) {
|
853
|
-
///<summary>test su</summary>
|
854
|
-
///<param name="newFormat">info about para</param>
|
855
|
-
///<returns type="string|boolean">returns foo</returns>
|
856
861
|
if (arguments.length === 0) {
|
857
862
|
return this._options.format;
|
858
863
|
}
|
@@ -1093,10 +1098,12 @@ var DateTimePicker = function ($) {
|
|
1093
1098
|
return this._options.locale;
|
1094
1099
|
}
|
1095
1100
|
|
1096
|
-
if (!
|
1101
|
+
if (!moment.localeData(_locale)) {
|
1097
1102
|
throw new TypeError('locale() locale ' + _locale + ' is not loaded from moment locales!');
|
1098
1103
|
}
|
1099
1104
|
|
1105
|
+
this._options.locale = _locale;
|
1106
|
+
|
1100
1107
|
for (var i = 0; i < this._dates.length; i++) {
|
1101
1108
|
this._dates[i].locale(this._options.locale);
|
1102
1109
|
}
|
@@ -1228,7 +1235,7 @@ var DateTimePicker = function ($) {
|
|
1228
1235
|
}
|
1229
1236
|
|
1230
1237
|
this._options.viewMode = _viewMode;
|
1231
|
-
this.currentViewMode = Math.max(DateTimePicker.ViewModes.indexOf(_viewMode) - 1,
|
1238
|
+
this.currentViewMode = Math.max(DateTimePicker.ViewModes.indexOf(_viewMode) - 1, this.MinViewModeNumber);
|
1232
1239
|
|
1233
1240
|
this._showMode();
|
1234
1241
|
};
|
@@ -1465,7 +1472,7 @@ var DateTimePicker = function ($) {
|
|
1465
1472
|
return true;
|
1466
1473
|
}
|
1467
1474
|
|
1468
|
-
if (typeof newDate !== 'string' && !
|
1475
|
+
if (typeof newDate !== 'string' && !moment.isMoment(newDate) && !(newDate instanceof Date)) {
|
1469
1476
|
throw new TypeError('viewDate() parameter must be one of [string, moment or Date]');
|
1470
1477
|
}
|
1471
1478
|
|
@@ -1503,16 +1510,6 @@ var DateTimePicker = function ($) {
|
|
1503
1510
|
* @return {string}
|
1504
1511
|
*/
|
1505
1512
|
|
1506
|
-
}, {
|
1507
|
-
key: 'VERSION',
|
1508
|
-
get: function get() {
|
1509
|
-
return VERSION;
|
1510
|
-
}
|
1511
|
-
|
1512
|
-
/**
|
1513
|
-
* @return {string}
|
1514
|
-
*/
|
1515
|
-
|
1516
1513
|
}, {
|
1517
1514
|
key: 'DATA_KEY',
|
1518
1515
|
get: function get() {
|
@@ -1548,16 +1545,6 @@ var DateTimePicker = function ($) {
|
|
1548
1545
|
get: function get() {
|
1549
1546
|
return ViewModes;
|
1550
1547
|
}
|
1551
|
-
|
1552
|
-
/**
|
1553
|
-
* @return {number}
|
1554
|
-
*/
|
1555
|
-
|
1556
|
-
}, {
|
1557
|
-
key: 'MinViewModeNumber',
|
1558
|
-
get: function get() {
|
1559
|
-
return MinViewModeNumber;
|
1560
|
-
}
|
1561
1548
|
}, {
|
1562
1549
|
key: 'Event',
|
1563
1550
|
get: function get() {
|
@@ -1572,6 +1559,9 @@ var DateTimePicker = function ($) {
|
|
1572
1559
|
key: 'Default',
|
1573
1560
|
get: function get() {
|
1574
1561
|
return Default;
|
1562
|
+
},
|
1563
|
+
set: function set(value) {
|
1564
|
+
Default = value;
|
1575
1565
|
}
|
1576
1566
|
}, {
|
1577
1567
|
key: 'ClassName',
|
@@ -1584,7 +1574,7 @@ var DateTimePicker = function ($) {
|
|
1584
1574
|
}();
|
1585
1575
|
|
1586
1576
|
return DateTimePicker;
|
1587
|
-
}(jQuery);
|
1577
|
+
}(jQuery, moment);
|
1588
1578
|
|
1589
1579
|
//noinspection JSUnusedGlobalSymbols
|
1590
1580
|
/* global DateTimePicker */
|
@@ -1754,12 +1744,21 @@ var TempusDominusBootstrap4 = function ($) {
|
|
1754
1744
|
}).append($('<span>').addClass(this._options.icons.today))));
|
1755
1745
|
}
|
1756
1746
|
if (!this._options.sideBySide && this._hasDate() && this._hasTime()) {
|
1747
|
+
var title = void 0,
|
1748
|
+
icon = void 0;
|
1749
|
+
if (this._options.viewMode === 'times') {
|
1750
|
+
title = this._options.tooltips.selectDate;
|
1751
|
+
icon = this._options.icons.date;
|
1752
|
+
} else {
|
1753
|
+
title = this._options.tooltips.selectTime;
|
1754
|
+
icon = this._options.icons.time;
|
1755
|
+
}
|
1757
1756
|
row.push($('<td>').append($('<a>').attr({
|
1758
1757
|
href: '#',
|
1759
1758
|
tabindex: '-1',
|
1760
1759
|
'data-action': 'togglePicker',
|
1761
|
-
'title':
|
1762
|
-
}).append($('<span>').addClass(
|
1760
|
+
'title': title
|
1761
|
+
}).append($('<span>').addClass(icon))));
|
1763
1762
|
}
|
1764
1763
|
if (this._options.buttons.showClear) {
|
1765
1764
|
row.push($('<td>').append($('<a>').attr({
|
@@ -1814,13 +1813,13 @@ var TempusDominusBootstrap4 = function ($) {
|
|
1814
1813
|
content.append(toolbar);
|
1815
1814
|
}
|
1816
1815
|
if (this._hasDate()) {
|
1817
|
-
content.append($('<li>').addClass(this._options.collapse && this._hasTime() ? 'collapse' : '').addClass(this._options.collapse && this._hasTime() && this._options.viewMode === '
|
1816
|
+
content.append($('<li>').addClass(this._options.collapse && this._hasTime() ? 'collapse' : '').addClass(this._options.collapse && this._hasTime() && this._options.viewMode === 'times' ? '' : 'show').append(dateView));
|
1818
1817
|
}
|
1819
1818
|
if (this._options.toolbarPlacement === 'default') {
|
1820
1819
|
content.append(toolbar);
|
1821
1820
|
}
|
1822
1821
|
if (this._hasTime()) {
|
1823
|
-
content.append($('<li>').addClass(this._options.collapse && this._hasDate() ? 'collapse' : '').addClass(this._options.collapse && this._hasDate() && this._options.viewMode === '
|
1822
|
+
content.append($('<li>').addClass(this._options.collapse && this._hasDate() ? 'collapse' : '').addClass(this._options.collapse && this._hasDate() && this._options.viewMode === 'times' ? 'show' : '').append(timeView));
|
1824
1823
|
}
|
1825
1824
|
if (this._options.toolbarPlacement === 'bottom') {
|
1826
1825
|
content.append(toolbar);
|
@@ -1988,12 +1987,12 @@ var TempusDominusBootstrap4 = function ($) {
|
|
1988
1987
|
yearsViewHeader.eq(2).addClass('disabled');
|
1989
1988
|
}
|
1990
1989
|
|
1991
|
-
html += '<span data-action="selectYear" class="year old">' + (startYear.year() - 1) + '</span>';
|
1990
|
+
html += '<span data-action="selectYear" class="year old' + (!this._isValid(startYear, 'y') ? ' disabled' : '') + '">' + (startYear.year() - 1) + '</span>';
|
1992
1991
|
while (!startYear.isAfter(endYear, 'y')) {
|
1993
1992
|
html += '<span data-action="selectYear" class="year' + (startYear.isSame(this._getLastPickedDate(), 'y') && !this.unset ? ' active' : '') + (!this._isValid(startYear, 'y') ? ' disabled' : '') + '">' + startYear.year() + '</span>';
|
1994
1993
|
startYear.add(1, 'y');
|
1995
1994
|
}
|
1996
|
-
html += '<span data-action="selectYear" class="year old">' + startYear.year() + '</span>';
|
1995
|
+
html += '<span data-action="selectYear" class="year old' + (!this._isValid(startYear, 'y') ? ' disabled' : '') + '">' + startYear.year() + '</span>';
|
1997
1996
|
|
1998
1997
|
yearsView.find('td').html(html);
|
1999
1998
|
};
|
@@ -2233,7 +2232,7 @@ var TempusDominusBootstrap4 = function ($) {
|
|
2233
2232
|
{
|
2234
2233
|
var month = $(e.target).closest('tbody').find('span').index($(e.target));
|
2235
2234
|
this._viewDate.month(month);
|
2236
|
-
if (this.currentViewMode ===
|
2235
|
+
if (this.currentViewMode === this.MinViewModeNumber) {
|
2237
2236
|
this._setValue(lastPicked.clone().year(this._viewDate.year()).month(this._viewDate.month()), this._getLastPickedDateIndex());
|
2238
2237
|
if (!this._options.inline) {
|
2239
2238
|
this.hide();
|
@@ -2249,7 +2248,7 @@ var TempusDominusBootstrap4 = function ($) {
|
|
2249
2248
|
{
|
2250
2249
|
var year = parseInt($(e.target).text(), 10) || 0;
|
2251
2250
|
this._viewDate.year(year);
|
2252
|
-
if (this.currentViewMode ===
|
2251
|
+
if (this.currentViewMode === this.MinViewModeNumber) {
|
2253
2252
|
this._setValue(lastPicked.clone().year(this._viewDate.year()), this._getLastPickedDateIndex());
|
2254
2253
|
if (!this._options.inline) {
|
2255
2254
|
this.hide();
|
@@ -2265,7 +2264,7 @@ var TempusDominusBootstrap4 = function ($) {
|
|
2265
2264
|
{
|
2266
2265
|
var _year = parseInt($(e.target).data('selection'), 10) || 0;
|
2267
2266
|
this._viewDate.year(_year);
|
2268
|
-
if (this.currentViewMode ===
|
2267
|
+
if (this.currentViewMode === this.MinViewModeNumber) {
|
2269
2268
|
this._setValue(lastPicked.clone().year(this._viewDate.year()), this._getLastPickedDateIndex());
|
2270
2269
|
if (!this._options.inline) {
|
2271
2270
|
this.hide();
|
@@ -2286,8 +2285,21 @@ var TempusDominusBootstrap4 = function ($) {
|
|
2286
2285
|
if ($(e.target).is('.new')) {
|
2287
2286
|
day.add(1, 'M');
|
2288
2287
|
}
|
2289
|
-
|
2290
|
-
|
2288
|
+
|
2289
|
+
var selectDate = day.date(parseInt($(e.target).text(), 10)),
|
2290
|
+
index = 0;
|
2291
|
+
if (this._options.allowMultidate) {
|
2292
|
+
index = this._datesFormatted.indexOf(selectDate.format('YYYY-MM-DD'));
|
2293
|
+
if (index !== -1) {
|
2294
|
+
this._setValue(null, index); //deselect multidate
|
2295
|
+
} else {
|
2296
|
+
this._setValue(selectDate, this._getLastPickedDateIndex() + 1);
|
2297
|
+
}
|
2298
|
+
} else {
|
2299
|
+
this._setValue(selectDate, this._getLastPickedDateIndex());
|
2300
|
+
}
|
2301
|
+
|
2302
|
+
if (!this._hasTime() && !this._options.keepOpen && !this._options.inline && !this._options.allowMultidate) {
|
2291
2303
|
this.hide();
|
2292
2304
|
}
|
2293
2305
|
break;
|
@@ -2751,7 +2763,7 @@ var TempusDominusBootstrap4 = function ($) {
|
|
2751
2763
|
if (!config._options.allowInputToggle) {
|
2752
2764
|
return;
|
2753
2765
|
}
|
2754
|
-
TempusDominusBootstrap4._jQueryInterface.call($target,
|
2766
|
+
TempusDominusBootstrap4._jQueryInterface.call($target, 'show', event);
|
2755
2767
|
});
|
2756
2768
|
|
2757
2769
|
$.fn[DateTimePicker.NAME] = TempusDominusBootstrap4._jQueryInterface;
|