fomantic-ui 2.9.0-beta.28 → 2.9.0-beta.282
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/.all-contributorsrc +224 -3
- package/.github/workflows/ci.yml +7 -6
- package/.github/workflows/nightly.yml +13 -8
- package/.github/workflows/release.yml +31 -0
- package/CONTRIBUTORS.md +77 -37
- package/README.md +8 -8
- package/dist/components/accordion.css +175 -35
- package/dist/components/accordion.js +6 -3
- package/dist/components/accordion.min.css +2 -2
- package/dist/components/accordion.min.js +3 -3
- package/dist/components/ad.css +4 -4
- package/dist/components/ad.min.css +2 -2
- package/dist/components/api.js +88 -29
- 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 +195 -148
- package/dist/components/button.min.css +2 -2
- package/dist/components/calendar.css +18 -1
- package/dist/components/calendar.js +84 -67
- package/dist/components/calendar.min.css +2 -2
- package/dist/components/calendar.min.js +3 -3
- package/dist/components/card.css +753 -116
- package/dist/components/card.min.css +2 -2
- package/dist/components/checkbox.css +92 -91
- package/dist/components/checkbox.js +17 -11
- package/dist/components/checkbox.min.css +2 -2
- package/dist/components/checkbox.min.js +3 -3
- package/dist/components/comment.css +12 -12
- package/dist/components/comment.min.css +2 -2
- package/dist/components/container.css +97 -3
- package/dist/components/container.min.css +2 -2
- package/dist/components/dimmer.css +29 -14
- package/dist/components/dimmer.js +11 -5
- package/dist/components/dimmer.min.css +2 -2
- package/dist/components/dimmer.min.js +3 -3
- package/dist/components/divider.css +31 -31
- package/dist/components/divider.min.css +2 -2
- package/dist/components/dropdown.css +89 -49
- package/dist/components/dropdown.js +95 -49
- package/dist/components/dropdown.min.css +2 -2
- package/dist/components/dropdown.min.js +3 -3
- package/dist/components/embed.css +5 -5
- package/dist/components/embed.js +1 -1
- package/dist/components/embed.min.css +2 -2
- package/dist/components/embed.min.js +3 -3
- package/dist/components/emoji.css +10840 -8832
- package/dist/components/emoji.min.css +1 -1
- package/dist/components/feed.css +29 -29
- package/dist/components/feed.min.css +2 -2
- package/dist/components/flag.css +1001 -892
- package/dist/components/flag.min.css +2 -2
- package/dist/components/form.css +158 -81
- package/dist/components/form.js +38 -29
- package/dist/components/form.min.css +2 -2
- package/dist/components/form.min.js +3 -3
- package/dist/components/grid.css +25 -21
- package/dist/components/grid.min.css +2 -2
- package/dist/components/header.css +5 -3
- package/dist/components/header.min.css +2 -2
- package/dist/components/icon.css +2063 -1984
- 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 +758 -21
- package/dist/components/input.min.css +2 -2
- package/dist/components/item.css +16 -16
- package/dist/components/item.min.css +2 -2
- package/dist/components/label.css +64 -64
- package/dist/components/label.min.css +2 -2
- package/dist/components/list.css +30 -30
- package/dist/components/list.min.css +2 -2
- package/dist/components/loader.css +352 -352
- package/dist/components/loader.min.css +2 -2
- package/dist/components/menu.css +107 -75
- package/dist/components/menu.min.css +1 -1
- package/dist/components/message.css +42 -42
- package/dist/components/message.min.css +2 -2
- package/dist/components/modal.css +13 -1
- package/dist/components/modal.js +127 -49
- 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 +1 -1
- package/dist/components/nag.min.css +1 -1
- package/dist/components/nag.min.js +3 -3
- package/dist/components/placeholder.css +33 -33
- package/dist/components/placeholder.min.css +2 -2
- package/dist/components/popup.css +99 -103
- package/dist/components/popup.js +2 -2
- package/dist/components/popup.min.css +2 -2
- package/dist/components/popup.min.js +3 -3
- package/dist/components/progress.css +1 -1
- package/dist/components/progress.js +4 -1
- package/dist/components/progress.min.css +1 -1
- 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 +1 -1
- package/dist/components/rating.min.css +1 -1
- package/dist/components/rating.min.js +3 -3
- package/dist/components/reset.css +5 -4
- package/dist/components/reset.min.css +2 -2
- package/dist/components/reveal.css +1 -1
- package/dist/components/reveal.min.css +1 -1
- package/dist/components/search.css +3 -3
- package/dist/components/search.js +2 -2
- package/dist/components/search.min.css +2 -2
- package/dist/components/search.min.js +3 -3
- package/dist/components/segment.css +118 -34
- package/dist/components/segment.min.css +2 -2
- package/dist/components/shape.css +1 -1
- package/dist/components/shape.js +3 -3
- package/dist/components/shape.min.css +1 -1
- package/dist/components/shape.min.js +3 -3
- package/dist/components/sidebar.css +7 -5
- package/dist/components/sidebar.js +12 -10
- package/dist/components/sidebar.min.css +2 -2
- package/dist/components/sidebar.min.js +3 -3
- package/dist/components/site.css +65 -39
- package/dist/components/site.js +1 -1
- package/dist/components/site.min.css +2 -2
- package/dist/components/site.min.js +3 -3
- package/dist/components/slider.css +17 -17
- package/dist/components/slider.js +68 -51
- package/dist/components/slider.min.css +1 -1
- package/dist/components/slider.min.js +3 -3
- package/dist/components/state.js +1 -1
- package/dist/components/state.min.js +3 -3
- package/dist/components/statistic.css +2 -2
- package/dist/components/statistic.min.css +2 -2
- package/dist/components/step.css +30 -30
- package/dist/components/step.min.css +2 -2
- package/dist/components/sticky.css +1 -1
- package/dist/components/sticky.js +1 -1
- package/dist/components/sticky.min.css +1 -1
- package/dist/components/sticky.min.js +3 -3
- package/dist/components/tab.css +5 -5
- package/dist/components/tab.js +23 -5
- package/dist/components/tab.min.css +2 -2
- package/dist/components/tab.min.js +3 -3
- package/dist/components/table.css +1174 -32
- 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 +39 -1
- package/dist/components/toast.js +56 -28
- package/dist/components/toast.min.css +2 -2
- package/dist/components/toast.min.js +3 -3
- package/dist/components/transition.css +1 -1
- package/dist/components/transition.js +21 -16
- package/dist/components/transition.min.css +1 -1
- package/dist/components/transition.min.js +3 -3
- package/dist/components/visibility.js +1 -1
- package/dist/components/visibility.min.js +3 -3
- package/dist/semantic.css +19523 -13089
- package/dist/semantic.js +666 -369
- package/dist/semantic.min.css +3 -3
- package/dist/semantic.min.js +3 -3
- package/dist/themes/default/assets/fonts/brand-icons.eot +0 -0
- package/dist/themes/default/assets/fonts/brand-icons.svg +801 -654
- package/dist/themes/default/assets/fonts/brand-icons.ttf +0 -0
- package/dist/themes/default/assets/fonts/brand-icons.woff +0 -0
- package/dist/themes/default/assets/fonts/brand-icons.woff2 +0 -0
- package/dist/themes/default/assets/fonts/icons.eot +0 -0
- package/dist/themes/default/assets/fonts/icons.svg +1175 -1079
- package/dist/themes/default/assets/fonts/icons.ttf +0 -0
- package/dist/themes/default/assets/fonts/icons.woff +0 -0
- package/dist/themes/default/assets/fonts/icons.woff2 +0 -0
- package/dist/themes/default/assets/fonts/outline-icons.eot +0 -0
- package/dist/themes/default/assets/fonts/outline-icons.svg +93 -95
- package/dist/themes/default/assets/fonts/outline-icons.ttf +0 -0
- package/dist/themes/default/assets/fonts/outline-icons.woff +0 -0
- package/dist/themes/default/assets/fonts/outline-icons.woff2 +0 -0
- package/examples/assets/library/iframe-content.js +8 -8
- package/examples/assets/library/iframe.js +3 -3
- package/package.json +18 -16
- package/scripts/nightly-version.js +47 -38
- package/src/definitions/behaviors/api.js +87 -28
- package/src/definitions/behaviors/form.js +37 -28
- package/src/definitions/collections/form.less +225 -161
- package/src/definitions/collections/grid.less +723 -687
- package/src/definitions/collections/menu.less +224 -166
- package/src/definitions/collections/message.less +49 -47
- package/src/definitions/collections/table.less +855 -268
- package/src/definitions/elements/button.less +611 -469
- package/src/definitions/elements/container.less +145 -8
- package/src/definitions/elements/divider.less +24 -24
- package/src/definitions/elements/emoji.less +16 -10
- package/src/definitions/elements/flag.less +8 -18
- package/src/definitions/elements/header.less +46 -37
- package/src/definitions/elements/icon.less +39 -32
- package/src/definitions/elements/input.less +268 -26
- package/src/definitions/elements/label.less +125 -124
- package/src/definitions/elements/list.less +84 -75
- package/src/definitions/elements/loader.less +99 -98
- package/src/definitions/elements/placeholder.less +32 -32
- package/src/definitions/elements/segment.less +174 -55
- package/src/definitions/elements/step.less +76 -72
- package/src/definitions/elements/text.less +17 -15
- package/src/definitions/globals/reset.less +2 -2
- package/src/definitions/globals/site.less +23 -2
- package/src/definitions/modules/accordion.js +5 -2
- package/src/definitions/modules/accordion.less +181 -29
- package/src/definitions/modules/calendar.js +83 -66
- package/src/definitions/modules/calendar.less +20 -0
- package/src/definitions/modules/checkbox.js +16 -10
- package/src/definitions/modules/checkbox.less +83 -227
- package/src/definitions/modules/dimmer.js +10 -4
- package/src/definitions/modules/dimmer.less +21 -8
- package/src/definitions/modules/dropdown.js +94 -48
- package/src/definitions/modules/dropdown.less +178 -127
- package/src/definitions/modules/embed.less +4 -4
- package/src/definitions/modules/modal.js +126 -48
- package/src/definitions/modules/modal.less +12 -0
- package/src/definitions/modules/nag.less +20 -19
- package/src/definitions/modules/popup.js +1 -1
- package/src/definitions/modules/popup.less +86 -90
- package/src/definitions/modules/progress.js +3 -0
- package/src/definitions/modules/progress.less +19 -18
- package/src/definitions/modules/rating.less +35 -34
- package/src/definitions/modules/search.js +1 -1
- package/src/definitions/modules/search.less +35 -19
- package/src/definitions/modules/shape.js +2 -2
- package/src/definitions/modules/sidebar.js +11 -9
- package/src/definitions/modules/sidebar.less +36 -22
- package/src/definitions/modules/slider.js +67 -50
- package/src/definitions/modules/slider.less +48 -47
- package/src/definitions/modules/tab.js +22 -4
- package/src/definitions/modules/tab.less +4 -4
- package/src/definitions/modules/toast.js +55 -27
- package/src/definitions/modules/toast.less +48 -16
- package/src/definitions/modules/transition.js +20 -15
- package/src/definitions/views/ad.less +3 -3
- package/src/definitions/views/card.less +519 -374
- package/src/definitions/views/comment.less +93 -82
- package/src/definitions/views/feed.less +164 -144
- package/src/definitions/views/item.less +251 -198
- package/src/definitions/views/statistic.less +91 -89
- package/src/themes/basic/elements/icon.overrides +149 -149
- package/src/themes/basic/elements/step.overrides +2 -2
- package/src/themes/bookish/elements/header.overrides +1 -1
- package/src/themes/chubby/elements/button.overrides +1 -1
- package/src/themes/chubby/elements/header.overrides +1 -1
- package/src/themes/default/assets/fonts/brand-icons.eot +0 -0
- package/src/themes/default/assets/fonts/brand-icons.svg +801 -654
- package/src/themes/default/assets/fonts/brand-icons.ttf +0 -0
- package/src/themes/default/assets/fonts/brand-icons.woff +0 -0
- package/src/themes/default/assets/fonts/brand-icons.woff2 +0 -0
- package/src/themes/default/assets/fonts/icons.eot +0 -0
- package/src/themes/default/assets/fonts/icons.svg +1175 -1079
- package/src/themes/default/assets/fonts/icons.ttf +0 -0
- package/src/themes/default/assets/fonts/icons.woff +0 -0
- package/src/themes/default/assets/fonts/icons.woff2 +0 -0
- package/src/themes/default/assets/fonts/outline-icons.eot +0 -0
- package/src/themes/default/assets/fonts/outline-icons.svg +93 -95
- package/src/themes/default/assets/fonts/outline-icons.ttf +0 -0
- package/src/themes/default/assets/fonts/outline-icons.woff +0 -0
- package/src/themes/default/assets/fonts/outline-icons.woff2 +0 -0
- package/src/themes/default/collections/form.variables +4 -0
- package/src/themes/default/collections/menu.variables +6 -0
- package/src/themes/default/collections/table.variables +52 -0
- package/src/themes/default/elements/button.variables +7 -1
- package/src/themes/default/elements/container.variables +12 -0
- package/src/themes/default/elements/divider.overrides +7 -7
- package/src/themes/default/elements/emoji.overrides +1737 -1235
- package/src/themes/default/elements/emoji.variables +1 -1
- package/src/themes/default/elements/flag.overrides +1641 -986
- package/src/themes/default/elements/flag.variables +7 -5
- package/src/themes/default/elements/icon.overrides +1975 -1949
- package/src/themes/default/elements/icon.variables +1 -0
- package/src/themes/default/elements/input.variables +15 -0
- package/src/themes/default/elements/segment.variables +8 -0
- package/src/themes/default/elements/step.overrides +3 -3
- package/src/themes/default/globals/site.variables +6 -0
- package/src/themes/default/globals/variation.variables +140 -6
- package/src/themes/default/modules/accordion.overrides +6 -5
- package/src/themes/default/modules/accordion.variables +49 -2
- package/src/themes/default/modules/calendar.variables +3 -0
- package/src/themes/default/modules/checkbox.overrides +9 -9
- package/src/themes/default/modules/checkbox.variables +5 -5
- package/src/themes/default/modules/dimmer.variables +1 -1
- package/src/themes/default/modules/dropdown.overrides +5 -5
- package/src/themes/default/modules/dropdown.variables +4 -10
- package/src/themes/default/modules/modal.variables +13 -0
- package/src/themes/default/modules/popup.variables +0 -2
- package/src/themes/default/modules/toast.variables +3 -0
- package/src/themes/default/views/card.variables +8 -0
- package/src/themes/famfamfam/elements/flag.overrides +1026 -0
- package/src/themes/famfamfam/elements/flag.variables +13 -0
- package/src/themes/github/elements/icon.overrides +206 -206
- package/src/themes/github/elements/step.overrides +5 -5
- package/src/themes/github/modules/dropdown.overrides +6 -6
- package/src/themes/instagram/views/card.overrides +1 -1
- package/src/themes/joypixels/elements/emoji.overrides +1762 -1260
- package/src/themes/joypixels/elements/emoji.variables +1 -1
- package/src/themes/material/collections/menu.overrides +1 -1
- package/src/themes/material/elements/button.overrides +1 -1
- package/src/themes/material/elements/header.overrides +1 -1
- package/src/themes/material/elements/icon.overrides +932 -932
- package/src/themes/material/globals/site.variables +0 -1
- package/src/themes/material/modules/dropdown.overrides +1 -1
- package/src/themes/material/modules/modal.overrides +1 -1
- package/src/themes/pulsar/elements/loader.overrides +2 -2
- package/src/themes/resetcss/globals/reset.overrides +3 -3
- package/src/themes/rtl/globals/site.overrides +1 -1
- package/src/themes/striped/modules/progress.overrides +1 -1
- package/src/themes/twitter/elements/emoji.overrides +1737 -1235
- package/tasks/build/css.js +6 -1
- package/tasks/config/project/install.js +15 -13
- package/tasks/install.js +1 -0
- package/test/helpers/sinon.js +2 -2
@@ -128,7 +128,7 @@ a:hover {
|
|
128
128
|
Scrollbars
|
129
129
|
*******************************/
|
130
130
|
|
131
|
-
|
131
|
+
& when (@useCustomScrollbars) {
|
132
132
|
|
133
133
|
/* Force Simple Scrollbars */
|
134
134
|
body ::-webkit-scrollbar {
|
@@ -152,6 +152,17 @@ a:hover {
|
|
152
152
|
body ::-webkit-scrollbar-thumb:hover {
|
153
153
|
background: @thumbHoverBackground;
|
154
154
|
}
|
155
|
+
body .ui {
|
156
|
+
/* IE11 */
|
157
|
+
scrollbar-face-color: @thumbBackgroundHex;
|
158
|
+
scrollbar-shadow-color: @thumbBackgroundHex;
|
159
|
+
scrollbar-track-color: @trackBackgroundHex;
|
160
|
+
scrollbar-arrow-color: @trackBackgroundHex;
|
161
|
+
|
162
|
+
/* firefox : first color thumb, second track*/
|
163
|
+
scrollbar-color: @thumbBackground @trackBackground;
|
164
|
+
scrollbar-width: thin;
|
165
|
+
}
|
155
166
|
|
156
167
|
/* Inverted UI */
|
157
168
|
body .ui.inverted:not(.dimmer)::-webkit-scrollbar-track {
|
@@ -166,6 +177,17 @@ a:hover {
|
|
166
177
|
body .ui.inverted:not(.dimmer)::-webkit-scrollbar-thumb:hover {
|
167
178
|
background: @thumbInvertedHoverBackground;
|
168
179
|
}
|
180
|
+
|
181
|
+
body .ui.inverted:not(.dimmer) {
|
182
|
+
/* IE11 */
|
183
|
+
scrollbar-face-color: @thumbInvertedBackgroundHex;
|
184
|
+
scrollbar-shadow-color: @thumbInvertedBackgroundHex;
|
185
|
+
scrollbar-track-color: @trackInvertedBackgroundHex;
|
186
|
+
scrollbar-arrow-color: @trackInvertedBackgroundHex;
|
187
|
+
|
188
|
+
/* firefox : first color thumb, second track */
|
189
|
+
scrollbar-color: @thumbInvertedBackground @trackInvertedBackground;
|
190
|
+
}
|
169
191
|
}
|
170
192
|
|
171
193
|
/*******************************
|
@@ -203,5 +225,4 @@ input::selection {
|
|
203
225
|
color: @inputHighlightColor;
|
204
226
|
}
|
205
227
|
|
206
|
-
.addScrollbars();
|
207
228
|
.loadUIOverrides();
|
@@ -117,8 +117,10 @@ $.fn.accordion = function(parameters) {
|
|
117
117
|
},
|
118
118
|
|
119
119
|
event: {
|
120
|
-
click: function() {
|
121
|
-
|
120
|
+
click: function(event) {
|
121
|
+
if($(event.target).closest(selector.ignore).length === 0) {
|
122
|
+
module.toggle.call(this);
|
123
|
+
}
|
122
124
|
}
|
123
125
|
},
|
124
126
|
|
@@ -602,6 +604,7 @@ $.fn.accordion.settings = {
|
|
602
604
|
accordion : '.accordion',
|
603
605
|
title : '.title',
|
604
606
|
trigger : '.title',
|
607
|
+
ignore : '.ui.dropdown',
|
605
608
|
content : '.content'
|
606
609
|
}
|
607
610
|
|
@@ -31,32 +31,32 @@
|
|
31
31
|
}
|
32
32
|
|
33
33
|
/* Title */
|
34
|
-
.ui.accordion .title,
|
35
|
-
.ui.accordion
|
34
|
+
.ui.accordion.menu .item > .title,
|
35
|
+
.ui.accordion > .title,
|
36
|
+
.ui.accordion .accordion > .title {
|
36
37
|
cursor: pointer;
|
37
|
-
}
|
38
|
-
|
39
|
-
/* Default Styling */
|
40
|
-
.ui.accordion .title:not(.ui) {
|
41
38
|
padding: @titlePadding;
|
42
39
|
font-family: @titleFont;
|
43
40
|
font-size: @titleFontSize;
|
44
41
|
color: @titleColor;
|
42
|
+
list-style: none;
|
43
|
+
line-height: @titleLineHeight;
|
45
44
|
}
|
46
45
|
|
47
46
|
/* Default Styling */
|
48
|
-
.ui.accordion:not(.styled) .title ~ .content
|
49
|
-
.ui.accordion:not(.styled) .accordion .title ~ .content
|
47
|
+
.ui.accordion:not(.styled) .title ~ .content,
|
48
|
+
.ui.accordion:not(.styled) .accordion .title ~ .content {
|
50
49
|
margin: @contentMargin;
|
51
50
|
padding: @contentPadding;
|
52
51
|
}
|
53
|
-
.ui.accordion:not(.styled) .title ~ .content:
|
52
|
+
.ui.accordion:not(.styled) .title ~ .content:last-child {
|
54
53
|
padding-bottom: 0;
|
55
54
|
}
|
56
55
|
|
57
56
|
/* Arrow */
|
58
|
-
.ui.accordion .
|
59
|
-
.ui.accordion .
|
57
|
+
.ui.accordion .ui.header > .dropdown.icon,
|
58
|
+
.ui.accordion .title > .dropdown.icon,
|
59
|
+
.ui.accordion .accordion .title > .dropdown.icon {
|
60
60
|
display: @iconDisplay;
|
61
61
|
float: @iconFloat;
|
62
62
|
opacity: @iconOpacity;
|
@@ -68,6 +68,10 @@
|
|
68
68
|
transition: @iconTransition;
|
69
69
|
vertical-align: @iconVerticalAlign;
|
70
70
|
transform: @iconTransform;
|
71
|
+
&.right when (@variationAccordionRightDropdown) {
|
72
|
+
float:right;
|
73
|
+
transform: @iconTransformRight;
|
74
|
+
}
|
71
75
|
}
|
72
76
|
|
73
77
|
/*--------------
|
@@ -86,7 +90,7 @@
|
|
86
90
|
}
|
87
91
|
|
88
92
|
/* Header */
|
89
|
-
.ui.accordion .ui.header .dropdown.icon {
|
93
|
+
.ui.accordion .ui.header > .dropdown.icon {
|
90
94
|
font-size: @iconFontSize;
|
91
95
|
margin: @iconMargin;
|
92
96
|
}
|
@@ -95,8 +99,10 @@
|
|
95
99
|
States
|
96
100
|
*******************************/
|
97
101
|
|
98
|
-
.ui.accordion .
|
99
|
-
.ui.accordion .accordion .
|
102
|
+
.ui.accordion[open] > .title > .dropdown.icon,
|
103
|
+
.ui.accordion .accordion[open] > .title > .dropdown.icon,
|
104
|
+
.ui.accordion .active.title > .dropdown.icon,
|
105
|
+
.ui.accordion .accordion .active.title > .dropdown.icon {
|
100
106
|
transform: @activeIconTransform;
|
101
107
|
}
|
102
108
|
|
@@ -123,8 +129,8 @@
|
|
123
129
|
background: @styledBackground;
|
124
130
|
box-shadow: @styledBoxShadow;
|
125
131
|
}
|
126
|
-
.ui.styled.accordion .title,
|
127
|
-
.ui.styled.accordion .accordion .title {
|
132
|
+
.ui.styled.accordion > .title,
|
133
|
+
.ui.styled.accordion .accordion > .title {
|
128
134
|
margin: @styledTitleMargin;
|
129
135
|
padding: @styledTitlePadding;
|
130
136
|
color: @styledTitleColor;
|
@@ -133,49 +139,101 @@
|
|
133
139
|
transition: @styledTitleTransition;
|
134
140
|
}
|
135
141
|
.ui.styled.accordion > .title:first-child,
|
136
|
-
.ui.styled.accordion .accordion .title:first-child {
|
142
|
+
.ui.styled.accordion .accordion > .title:first-child {
|
137
143
|
border-top: none;
|
138
144
|
}
|
139
145
|
|
140
146
|
|
141
147
|
/* Content */
|
142
|
-
.ui.styled.accordion .content
|
143
|
-
.ui.styled.accordion .accordion .content {
|
148
|
+
.ui.styled.accordion > .content {
|
144
149
|
margin: @styledContentMargin;
|
145
150
|
padding: @styledContentPadding;
|
146
151
|
}
|
147
|
-
.ui.styled.accordion .accordion .content {
|
152
|
+
.ui.styled.accordion .accordion > .content {
|
148
153
|
margin: @styledChildContentMargin;
|
149
154
|
padding: @styledChildContentPadding;
|
150
155
|
}
|
151
156
|
|
152
157
|
|
153
158
|
/* Hover */
|
154
|
-
.ui.styled.accordion .title:hover
|
155
|
-
.ui.styled.accordion .active.title,
|
156
|
-
.ui.styled.accordion .accordion .title:hover,
|
157
|
-
.ui.styled.accordion .accordion .active.title {
|
159
|
+
.ui.styled.accordion > .title:hover {
|
158
160
|
background: @styledTitleHoverBackground;
|
159
161
|
color: @styledTitleHoverColor;
|
160
162
|
}
|
161
|
-
.ui.styled.accordion .accordion .title:hover
|
162
|
-
.ui.styled.accordion .accordion .active.title {
|
163
|
+
.ui.styled.accordion .accordion > .title:hover {
|
163
164
|
background: @styledHoverChildTitleBackground;
|
164
165
|
color: @styledHoverChildTitleColor;
|
165
166
|
}
|
166
167
|
|
167
168
|
|
168
169
|
/* Active */
|
170
|
+
.ui.styled.accordion[open] > .title,
|
169
171
|
.ui.styled.accordion .active.title {
|
170
172
|
background: @styledActiveTitleBackground;
|
171
173
|
color: @styledActiveTitleColor;
|
172
174
|
}
|
175
|
+
.ui.styled.accordion .accordion[open] > .title,
|
173
176
|
.ui.styled.accordion .accordion .active.title {
|
174
177
|
background: @styledActiveChildTitleBackground;
|
175
178
|
color: @styledActiveChildTitleColor;
|
176
179
|
}
|
177
180
|
}
|
178
181
|
|
182
|
+
& when (@variationAccordionCompact) {
|
183
|
+
/*--------------
|
184
|
+
Compact
|
185
|
+
---------------*/
|
186
|
+
|
187
|
+
/* Default Styling */
|
188
|
+
|
189
|
+
.ui.compact.accordion:not(.styled) > .title,
|
190
|
+
.ui.compact.accordion:not(.styled) .accordion > .title {
|
191
|
+
padding: @titlePaddingCompact;
|
192
|
+
}
|
193
|
+
|
194
|
+
.ui.compact.accordion:not(.styled) .title ~ .content,
|
195
|
+
.ui.compact.accordion:not(.styled) .accordion .title ~ .content {
|
196
|
+
padding: @contentPaddingCompact;
|
197
|
+
}
|
198
|
+
|
199
|
+
/* Styled */
|
200
|
+
|
201
|
+
.ui.compact.styled.accordion > .title,
|
202
|
+
.ui.compact.styled.accordion .accordion > .title {
|
203
|
+
padding: @styledTitlePaddingCompact;
|
204
|
+
}
|
205
|
+
|
206
|
+
.ui.compact.styled.accordion .title ~ .content,
|
207
|
+
.ui.compact.styled.accordion .accordion .title ~ .content {
|
208
|
+
padding: @styledContentPaddingCompact;
|
209
|
+
}
|
210
|
+
}
|
211
|
+
/*--------------
|
212
|
+
Very Compact
|
213
|
+
---------------*/
|
214
|
+
|
215
|
+
& when (@variationAccordionVeryCompact) {
|
216
|
+
.ui[class*="very compact"].accordion:not(.styled) > .title,
|
217
|
+
.ui[class*="very compact"].accordion:not(.styled) .accordion > .title {
|
218
|
+
padding: @titlePaddingVeryCompact;
|
219
|
+
}
|
220
|
+
|
221
|
+
.ui[class*="very compact"].accordion:not(.styled) .title ~ .content,
|
222
|
+
.ui[class*="very compact"].accordion:not(.styled) .accordion .title ~ .content {
|
223
|
+
padding: @contentPaddingVeryCompact;
|
224
|
+
}
|
225
|
+
|
226
|
+
.ui[class*="very compact"].styled.accordion > .title,
|
227
|
+
.ui[class*="very compact"].styled.accordion .accordion > .title {
|
228
|
+
padding: @styledTitlePaddingVeryCompact;
|
229
|
+
}
|
230
|
+
|
231
|
+
.ui[class*="very compact"].styled.accordion .title ~ .content,
|
232
|
+
.ui[class*="very compact"].styled.accordion .accordion .title ~ .content {
|
233
|
+
padding: @styledContentPaddingVeryCompact;
|
234
|
+
}
|
235
|
+
}
|
236
|
+
|
179
237
|
|
180
238
|
/*******************************
|
181
239
|
States
|
@@ -185,8 +243,8 @@
|
|
185
243
|
Not Active
|
186
244
|
---------------*/
|
187
245
|
|
188
|
-
.ui.accordion .title ~ .content:not(.active),
|
189
|
-
.ui.accordion .accordion .title ~ .content:not(.active) {
|
246
|
+
.ui.accordion:not(details) .title ~ .content:not(.active),
|
247
|
+
.ui.accordion .accordion:not(details) .title ~ .content:not(.active) {
|
190
248
|
display: none;
|
191
249
|
}
|
192
250
|
|
@@ -210,9 +268,103 @@
|
|
210
268
|
Inverted
|
211
269
|
---------------*/
|
212
270
|
|
213
|
-
.ui.inverted.accordion .title
|
271
|
+
.ui.inverted.accordion.menu .item > .title,
|
272
|
+
.ui.inverted.accordion > .title,
|
273
|
+
.ui.inverted.accordion .accordion > .title {
|
214
274
|
color: @invertedTitleColor;
|
215
275
|
}
|
276
|
+
& when (@variationAccordionStyled) {
|
277
|
+
.ui.inverted.styled.accordion,
|
278
|
+
.ui.inverted.styled.accordion .accordion {
|
279
|
+
background: @invertedStyledBackground;
|
280
|
+
box-shadow: @invertedStyledBoxShadow;
|
281
|
+
}
|
282
|
+
.ui.inverted.styled.accordion > .title,
|
283
|
+
.ui.inverted.styled.accordion .accordion > .title {
|
284
|
+
color: @invertedStyledTitleColor;
|
285
|
+
border-top: @invertedStyledTitleBorder;
|
286
|
+
}
|
287
|
+
|
288
|
+
/* Hover */
|
289
|
+
.ui.inverted.styled.accordion > .title:hover {
|
290
|
+
background: @invertedStyledTitleHoverBackground;
|
291
|
+
color: @invertedStyledTitleHoverColor;
|
292
|
+
}
|
293
|
+
.ui.inverted.styled.accordion .accordion > .title:hover {
|
294
|
+
background: @invertedStyledHoverChildTitleBackground;
|
295
|
+
color: @invertedStyledHoverChildTitleColor;
|
296
|
+
}
|
297
|
+
|
298
|
+
/* Active */
|
299
|
+
.ui.inverted.styled.accordion[open] > .title,
|
300
|
+
.ui.inverted.styled.accordion .active.title {
|
301
|
+
background: @invertedStyledActiveTitleBackground;
|
302
|
+
color: @invertedStyledActiveTitleColor;
|
303
|
+
}
|
304
|
+
.ui.inverted.styled.accordion .accordion[open] > .title,
|
305
|
+
.ui.inverted.styled.accordion .accordion .active.title {
|
306
|
+
background: @invertedStyledActiveChildTitleBackground;
|
307
|
+
color: @invertedStyledActiveChildTitleColor;
|
308
|
+
}
|
309
|
+
}
|
310
|
+
}
|
311
|
+
|
312
|
+
& when (@variationAccordionBasicStyled) {
|
313
|
+
.ui.basic.styled.accordion,
|
314
|
+
.ui.basic.styled.accordion .accordion {
|
315
|
+
background: transparent;
|
316
|
+
box-shadow: none;
|
317
|
+
}
|
318
|
+
.ui.basic.styled.accordion > .title,
|
319
|
+
.ui.basic.styled.accordion .accordion > .title {
|
320
|
+
border: none;
|
321
|
+
color: @basicStyledTitleColor;
|
322
|
+
}
|
323
|
+
.ui.basic.styled.accordion > .title:hover,
|
324
|
+
.ui.basic.styled.accordion .accordion > .title:hover {
|
325
|
+
background: transparent;
|
326
|
+
color: @basicStyledTitleHoverColor;
|
327
|
+
}
|
328
|
+
.ui.basic.styled.accordion[open] > .title,
|
329
|
+
.ui.basic.styled.accordion .active.title,
|
330
|
+
.ui.basic.styled.accordion .accordion[open] > .title,
|
331
|
+
.ui.basic.styled.accordion .accordion .active.title {
|
332
|
+
background: transparent;
|
333
|
+
color: @basicStyledActiveTitleColor;
|
334
|
+
}
|
335
|
+
& when (@variationAccordionInverted) {
|
336
|
+
.ui.inverted.basic.styled.accordion > .title,
|
337
|
+
.ui.inverted.basic.styled.accordion .accordion > .title {
|
338
|
+
background: transparent;
|
339
|
+
color: @invertedBasicStyledTitleColor;
|
340
|
+
}
|
341
|
+
.ui.inverted.basic.styled.accordion > .title:hover,
|
342
|
+
.ui.inverted.basic.styled.accordion .accordion > .title:hover {
|
343
|
+
background: transparent;
|
344
|
+
color: @invertedBasicStyledTitleHoverColor;
|
345
|
+
}
|
346
|
+
.ui.inverted.basic.styled.accordion[open] > .title,
|
347
|
+
.ui.inverted.basic.styled.accordion .active.title,
|
348
|
+
.ui.inverted.basic.styled.accordion .accordion[open] > .title,
|
349
|
+
.ui.inverted.basic.styled.accordion .accordion .active.title {
|
350
|
+
background: transparent;
|
351
|
+
color: @invertedBasicStyledActiveTitleColor;
|
352
|
+
}
|
353
|
+
}
|
354
|
+
}
|
355
|
+
|
356
|
+
& when (@variationAccordionTree) {
|
357
|
+
.ui.tree.accordion:not(.styled) .title ~ .content,
|
358
|
+
.ui.tree.accordion:not(.styled) .accordion .title ~ .content {
|
359
|
+
padding:@treeContentPadding;
|
360
|
+
}
|
361
|
+
.ui.tree.accordion > .content,
|
362
|
+
.ui.tree.accordion .accordion > .content {
|
363
|
+
margin-left: @treeContentLeftMargin;
|
364
|
+
}
|
365
|
+
.ui.tree.accordion .accordion {
|
366
|
+
margin-top: @treeContentTopMargin;
|
367
|
+
}
|
216
368
|
}
|
217
369
|
|
218
370
|
.loadUIOverrides();
|
@@ -122,7 +122,7 @@ $.fn.calendar = function(parameters) {
|
|
122
122
|
module.set.maxDate($module.data(metadata.maxDate));
|
123
123
|
}
|
124
124
|
module.setting('type', module.get.type());
|
125
|
-
module.setting('on', settings.on ||
|
125
|
+
module.setting('on', settings.on || 'click');
|
126
126
|
},
|
127
127
|
popup: function () {
|
128
128
|
if (settings.inline) {
|
@@ -322,7 +322,7 @@ $.fn.calendar = function(parameters) {
|
|
322
322
|
var headerDate = isYear || isMonth ? new Date(year, 0, 1) :
|
323
323
|
isDay ? new Date(year, month, 1) : new Date(year, month, day, hour, minute);
|
324
324
|
var headerText = $('<span/>').addClass(className.link).appendTo(cell);
|
325
|
-
headerText.text(
|
325
|
+
headerText.text(module.helper.dateFormat(formatter[mode+'Header'], headerDate));
|
326
326
|
var newMode = isMonth ? (settings.disableYear ? 'day' : 'year') :
|
327
327
|
isDay ? (settings.disableMonth ? 'year' : 'month') : 'day';
|
328
328
|
headerText.data(metadata.mode, newMode);
|
@@ -370,7 +370,7 @@ $.fn.calendar = function(parameters) {
|
|
370
370
|
isHour ? new Date(year, month, day, i) : new Date(year, month, day, hour, i * settings.minTimeGap);
|
371
371
|
var cellText = isYear ? i :
|
372
372
|
isMonth ? settings.text.monthsShort[i] : isDay ? cellDate.getDate() :
|
373
|
-
|
373
|
+
module.helper.dateFormat(formatter.cellTime,cellDate);
|
374
374
|
cell = $('<td/>').addClass(className.cell).appendTo(row);
|
375
375
|
cell.text(cellText);
|
376
376
|
cell.data(metadata.date, cellDate);
|
@@ -502,7 +502,7 @@ $.fn.calendar = function(parameters) {
|
|
502
502
|
var winWidth = $(window).width();
|
503
503
|
$container.find('td[data-position]').each(function () {
|
504
504
|
var cell = $(this);
|
505
|
-
var tooltipWidth = window.getComputedStyle(cell[0], '
|
505
|
+
var tooltipWidth = window.getComputedStyle(cell[0], '::after').width.replace(/[^0-9\.]/g,'');
|
506
506
|
var tooltipPosition = cell.attr('data-position');
|
507
507
|
// use a fallback width of 250 (calendar width) for IE/Edge (which return "auto")
|
508
508
|
var calcPosition = (winWidth - cell.width() - (parseInt(tooltipWidth,10) || 250)) > cell.offset().left ? 'right' : 'left';
|
@@ -651,7 +651,7 @@ $.fn.calendar = function(parameters) {
|
|
651
651
|
$container.removeClass(className.active);
|
652
652
|
if (settings.formatInput) {
|
653
653
|
var date = module.get.date();
|
654
|
-
var text = formatter.
|
654
|
+
var text = module.helper.dateFormat(formatter[settings.type], date);
|
655
655
|
$input.val(text);
|
656
656
|
}
|
657
657
|
if(selectionComplete){
|
@@ -722,6 +722,9 @@ $.fn.calendar = function(parameters) {
|
|
722
722
|
return AWN - Math.floor(Date.UTC(Wyr, 0, 7) / ms7d) + 1;
|
723
723
|
}();
|
724
724
|
},
|
725
|
+
formattedDate: function(format, date) {
|
726
|
+
return module.helper.dateFormat(format || formatter[settings.type], date || module.get.date());
|
727
|
+
},
|
725
728
|
date: function () {
|
726
729
|
return module.helper.sanitiseDate($module.data(metadata.date)) || null;
|
727
730
|
},
|
@@ -746,7 +749,7 @@ $.fn.calendar = function(parameters) {
|
|
746
749
|
return $module.data(metadata.maxDate) || null;
|
747
750
|
},
|
748
751
|
monthOffset: function () {
|
749
|
-
return $module.data(metadata.monthOffset) || 0;
|
752
|
+
return $module.data(metadata.monthOffset) || settings.monthOffset || 0;
|
750
753
|
},
|
751
754
|
mode: function () {
|
752
755
|
//only returns valid modes for the current settings
|
@@ -815,7 +818,7 @@ $.fn.calendar = function(parameters) {
|
|
815
818
|
date = module.helper.dateInRange(date);
|
816
819
|
|
817
820
|
var mode = module.get.mode();
|
818
|
-
var text = formatter.
|
821
|
+
var text = module.helper.dateFormat(formatter[settings.type],date);
|
819
822
|
|
820
823
|
if (fireChange && settings.onBeforeChange.call(element, date, text, mode) === false) {
|
821
824
|
return false;
|
@@ -986,6 +989,60 @@ $.fn.calendar = function(parameters) {
|
|
986
989
|
},
|
987
990
|
|
988
991
|
helper: {
|
992
|
+
dateFormat: function(format,date) {
|
993
|
+
if (!(date instanceof Date)) {
|
994
|
+
return '';
|
995
|
+
}
|
996
|
+
if(typeof format === 'function') {
|
997
|
+
return format.call(module, date, settings);
|
998
|
+
}
|
999
|
+
|
1000
|
+
var D = date.getDate(),
|
1001
|
+
M = date.getMonth(),
|
1002
|
+
Y = date.getFullYear(),
|
1003
|
+
d = date.getDay(),
|
1004
|
+
H = date.getHours(),
|
1005
|
+
m = date.getMinutes(),
|
1006
|
+
s = date.getSeconds(),
|
1007
|
+
w = module.get.weekOfYear(Y,M,D+1-settings.firstDayOfWeek),
|
1008
|
+
h = H % 12 || 12,
|
1009
|
+
a = H < 12 ? settings.text.am.toLowerCase() : settings.text.pm.toLowerCase(),
|
1010
|
+
tokens = {
|
1011
|
+
D: D,
|
1012
|
+
DD: ('0'+D).slice(-2),
|
1013
|
+
M: M + 1,
|
1014
|
+
MM: ('0'+(M+1)).slice(-2),
|
1015
|
+
MMM: settings.text.monthsShort[M],
|
1016
|
+
MMMM: settings.text.months[M],
|
1017
|
+
Y: Y,
|
1018
|
+
YY: String(Y).slice(2),
|
1019
|
+
YYYY: Y,
|
1020
|
+
d: d,
|
1021
|
+
dd: settings.text.dayNamesShort[d].slice(0,2),
|
1022
|
+
ddd: settings.text.dayNamesShort[d],
|
1023
|
+
dddd: settings.text.dayNames[d],
|
1024
|
+
h: h,
|
1025
|
+
hh: ('0'+h).slice(-2),
|
1026
|
+
H: H,
|
1027
|
+
HH: ('0'+H).slice(-2),
|
1028
|
+
m: m,
|
1029
|
+
mm: ('0'+m).slice(-2),
|
1030
|
+
s: s,
|
1031
|
+
ss: ('0'+s).slice(-2),
|
1032
|
+
a: a,
|
1033
|
+
A: a.toUpperCase(),
|
1034
|
+
S: ['th', 'st', 'nd', 'rd'][D % 10 > 3 ? 0 : (D % 100 - D % 10 !== 10) * D % 10],
|
1035
|
+
w: w,
|
1036
|
+
ww: ('0'+w).slice(-2)
|
1037
|
+
}
|
1038
|
+
;
|
1039
|
+
return format.replace(settings.regExp.token, function (match) {
|
1040
|
+
if (match in tokens) {
|
1041
|
+
return tokens[match];
|
1042
|
+
}
|
1043
|
+
return match.slice(1, match.length - 1);
|
1044
|
+
});
|
1045
|
+
},
|
989
1046
|
isDisabled: function(date, mode) {
|
990
1047
|
return (mode === 'day' || mode === 'month' || mode === 'year' || mode === 'hour') && (((mode === 'day' && settings.disabledDaysOfWeek.indexOf(date.getDay()) !== -1) || settings.disabledDates.some(function(d){
|
991
1048
|
if(typeof d === 'string') {
|
@@ -1436,7 +1493,7 @@ $.fn.calendar.settings = {
|
|
1436
1493
|
constantHeight : true, // add rows to shorter months to keep day calendar height consistent (6 rows)
|
1437
1494
|
today : false, // show a 'today/now' button at the bottom of the calendar
|
1438
1495
|
closable : true, // close the popup after selecting a date/time
|
1439
|
-
monthFirst : true, // month before day when parsing
|
1496
|
+
monthFirst : true, // month before day when parsing date from text
|
1440
1497
|
touchReadonly : true, // set input to readonly on touch devices
|
1441
1498
|
inline : false, // create the calendar inline instead of inside a popup
|
1442
1499
|
on : null, // when to show the popup (defaults to 'focus' for input, 'click' for others)
|
@@ -1444,7 +1501,6 @@ $.fn.calendar.settings = {
|
|
1444
1501
|
startMode : false, // display mode to start in, can be 'year', 'month', 'day', 'hour', 'minute' (false = 'day')
|
1445
1502
|
minDate : null, // minimum date/time that can be selected, dates/times before are disabled
|
1446
1503
|
maxDate : null, // maximum date/time that can be selected, dates/times after are disabled
|
1447
|
-
ampm : true, // show am/pm in time mode
|
1448
1504
|
disableYear : false, // disable year selection mode
|
1449
1505
|
disableMonth : false, // disable month selection mode
|
1450
1506
|
disableMinute : false, // disable minute selection mode
|
@@ -1452,8 +1508,9 @@ $.fn.calendar.settings = {
|
|
1452
1508
|
startCalendar : null, // jquery object or selector for another calendar that represents the start date of a date range
|
1453
1509
|
endCalendar : null, // jquery object or selector for another calendar that represents the end date of a date range
|
1454
1510
|
multiMonth : 1, // show multiple months when in 'day' mode
|
1511
|
+
monthOffset : 0, // position current month by offset when multimonth > 1
|
1455
1512
|
minTimeGap : 5,
|
1456
|
-
showWeekNumbers :
|
1513
|
+
showWeekNumbers : false, // show Number of Week at the very first column of a dayView
|
1457
1514
|
disabledHours : [], // specific hour(s) which won't be selectable and contain additional information.
|
1458
1515
|
disabledDates : [], // specific day(s) which won't be selectable and contain additional information.
|
1459
1516
|
disabledDaysOfWeek : [], // day(s) which won't be selectable(s) (0 = Sunday)
|
@@ -1467,11 +1524,14 @@ $.fn.calendar.settings = {
|
|
1467
1524
|
position: 'bottom left',
|
1468
1525
|
lastResort: 'bottom left',
|
1469
1526
|
prefer: 'opposite',
|
1527
|
+
observeChanges: false,
|
1470
1528
|
hideOnScroll: false
|
1471
1529
|
},
|
1472
1530
|
|
1473
1531
|
text: {
|
1474
1532
|
days: ['S', 'M', 'T', 'W', 'T', 'F', 'S'],
|
1533
|
+
dayNamesShort: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
|
1534
|
+
dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
|
1475
1535
|
months: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
|
1476
1536
|
monthsShort: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
|
1477
1537
|
today: 'Today',
|
@@ -1482,67 +1542,23 @@ $.fn.calendar.settings = {
|
|
1482
1542
|
},
|
1483
1543
|
|
1484
1544
|
formatter: {
|
1485
|
-
header: function (date, mode, settings) {
|
1486
|
-
return mode === 'year' ? settings.formatter.yearHeader(date, settings) :
|
1487
|
-
mode === 'month' ? settings.formatter.monthHeader(date, settings) :
|
1488
|
-
mode === 'day' ? settings.formatter.dayHeader(date, settings) :
|
1489
|
-
mode === 'hour' ? settings.formatter.hourHeader(date, settings) :
|
1490
|
-
settings.formatter.minuteHeader(date, settings);
|
1491
|
-
},
|
1492
1545
|
yearHeader: function (date, settings) {
|
1493
1546
|
var decadeYear = Math.ceil(date.getFullYear() / 10) * 10;
|
1494
1547
|
return (decadeYear - 9) + ' - ' + (decadeYear + 2);
|
1495
1548
|
},
|
1496
|
-
monthHeader:
|
1497
|
-
|
1498
|
-
|
1499
|
-
|
1500
|
-
var month = settings.text.months[date.getMonth()];
|
1501
|
-
var year = date.getFullYear();
|
1502
|
-
return month + ' ' + year;
|
1503
|
-
},
|
1504
|
-
hourHeader: function (date, settings) {
|
1505
|
-
return settings.formatter.date(date, settings);
|
1506
|
-
},
|
1507
|
-
minuteHeader: function (date, settings) {
|
1508
|
-
return settings.formatter.date(date, settings);
|
1509
|
-
},
|
1549
|
+
monthHeader: 'YYYY',
|
1550
|
+
dayHeader: 'MMMM YYYY',
|
1551
|
+
hourHeader: 'MMMM D, YYYY',
|
1552
|
+
minuteHeader: 'MMMM D, YYYY',
|
1510
1553
|
dayColumnHeader: function (day, settings) {
|
1511
1554
|
return settings.text.days[day];
|
1512
1555
|
},
|
1513
|
-
datetime:
|
1514
|
-
|
1515
|
-
|
1516
|
-
|
1517
|
-
|
1518
|
-
|
1519
|
-
var separator = settings.type === 'datetime' ? ' ' : '';
|
1520
|
-
return day + separator + time;
|
1521
|
-
},
|
1522
|
-
date: function (date, settings) {
|
1523
|
-
if (!date) {
|
1524
|
-
return '';
|
1525
|
-
}
|
1526
|
-
var day = date.getDate();
|
1527
|
-
var month = settings.text.months[date.getMonth()];
|
1528
|
-
var year = date.getFullYear();
|
1529
|
-
return settings.type === 'year' ? year :
|
1530
|
-
settings.type === 'month' ? month + ' ' + year :
|
1531
|
-
(settings.monthFirst ? month + ' ' + day : day + ' ' + month) + ', ' + year;
|
1532
|
-
},
|
1533
|
-
time: function (date, settings, forCalendar) {
|
1534
|
-
if (!date) {
|
1535
|
-
return '';
|
1536
|
-
}
|
1537
|
-
var hour = date.getHours();
|
1538
|
-
var minute = date.getMinutes();
|
1539
|
-
var ampm = '';
|
1540
|
-
if (settings.ampm) {
|
1541
|
-
ampm = ' ' + (hour < 12 ? settings.text.am : settings.text.pm);
|
1542
|
-
hour = hour === 0 ? 12 : hour > 12 ? hour - 12 : hour;
|
1543
|
-
}
|
1544
|
-
return hour + ':' + (minute < 10 ? '0' : '') + minute + ampm;
|
1545
|
-
},
|
1556
|
+
datetime: 'MMMM D, YYYY h:mm A',
|
1557
|
+
date: 'MMMM D, YYYY',
|
1558
|
+
time: 'h:mm A',
|
1559
|
+
cellTime: 'h:mm A',
|
1560
|
+
month: 'MMMM YYYY',
|
1561
|
+
year: 'YYYY',
|
1546
1562
|
today: function (settings) {
|
1547
1563
|
return settings.type === 'date' ? settings.text.today : settings.text.now;
|
1548
1564
|
},
|
@@ -1558,7 +1574,7 @@ $.fn.calendar.settings = {
|
|
1558
1574
|
if (!text) {
|
1559
1575
|
return null;
|
1560
1576
|
}
|
1561
|
-
text = String(text).trim();
|
1577
|
+
text = String(text).trim().replace(/([.:\/\-])\s+/g,'$1').replace(/\s+([.:\/-])/g,'$1').replace(/\s+/g,' ');
|
1562
1578
|
if (text.length === 0) {
|
1563
1579
|
return null;
|
1564
1580
|
}
|
@@ -1811,7 +1827,8 @@ $.fn.calendar.settings = {
|
|
1811
1827
|
|
1812
1828
|
regExp: {
|
1813
1829
|
dateWords: /[^A-Za-z\u00C0-\u024F]+/g,
|
1814
|
-
dateNumbers: /[^\d:]+/g
|
1830
|
+
dateNumbers: /[^\d:]+/g,
|
1831
|
+
token: /d{1,4}|D{1,2}|M{1,4}|YY(?:YY)?|([Hhmsw])\1?|[SAaY]|"[^"]*"|'[^']*'/g
|
1815
1832
|
},
|
1816
1833
|
|
1817
1834
|
error: {
|
@@ -172,6 +172,26 @@
|
|
172
172
|
}
|
173
173
|
}
|
174
174
|
|
175
|
+
& when (@variationCalendarMultiMonth) {
|
176
|
+
.ui.calendar.popup > .ui.ui.grid {
|
177
|
+
margin: @multiMonthMargin;
|
178
|
+
& > .column:not(:first-child) {
|
179
|
+
padding-left: @multiMonthPadding;
|
180
|
+
& > .ui.table {
|
181
|
+
border-top-left-radius:0;
|
182
|
+
border-bottom-left-radius:0;
|
183
|
+
}
|
184
|
+
}
|
185
|
+
& > .column:not(:last-child) {
|
186
|
+
padding-right:@multiMonthPadding;
|
187
|
+
& > .ui.table {
|
188
|
+
border-top-right-radius:0;
|
189
|
+
border-bottom-right-radius:0;
|
190
|
+
}
|
191
|
+
}
|
192
|
+
}
|
193
|
+
}
|
194
|
+
|
175
195
|
/*******************************
|
176
196
|
States
|
177
197
|
*******************************/
|