@ntlab/ntjs-assets 1.1.1 → 1.1.3
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/assets/js/jquery/jquery.js +10909 -10881
- package/assets/js/jquery/jquery.min.js +2 -2
- package/assets/js/jquery/jquery.slim.js +8810 -0
- package/assets/js/jquery/jquery.slim.min.js +2 -0
- package/assets/js/jquery/jquery.slim.min.map +1 -0
- package/assets/js/semantic-ui/components/accordion.css +177 -37
- package/assets/js/semantic-ui/components/accordion.js +10 -4
- package/assets/js/semantic-ui/components/accordion.min.css +2 -2
- package/assets/js/semantic-ui/components/accordion.min.js +3 -3
- package/assets/js/semantic-ui/components/ad.css +4 -4
- package/assets/js/semantic-ui/components/ad.min.css +2 -2
- package/assets/js/semantic-ui/components/api.js +93 -34
- package/assets/js/semantic-ui/components/api.min.js +3 -3
- package/assets/js/semantic-ui/components/breadcrumb.css +1 -1
- package/assets/js/semantic-ui/components/breadcrumb.min.css +1 -1
- package/assets/js/semantic-ui/components/button.css +204 -157
- package/assets/js/semantic-ui/components/button.min.css +2 -2
- package/assets/js/semantic-ui/components/calendar.css +18 -1
- package/assets/js/semantic-ui/components/calendar.js +201 -83
- package/assets/js/semantic-ui/components/calendar.min.css +2 -2
- package/assets/js/semantic-ui/components/calendar.min.js +3 -3
- package/assets/js/semantic-ui/components/card.css +754 -117
- package/assets/js/semantic-ui/components/card.min.css +2 -2
- package/assets/js/semantic-ui/components/checkbox.css +93 -92
- package/assets/js/semantic-ui/components/checkbox.js +21 -14
- package/assets/js/semantic-ui/components/checkbox.min.css +2 -2
- package/assets/js/semantic-ui/components/checkbox.min.js +3 -3
- package/assets/js/semantic-ui/components/comment.css +12 -12
- package/assets/js/semantic-ui/components/comment.min.css +2 -2
- package/assets/js/semantic-ui/components/container.css +98 -4
- package/assets/js/semantic-ui/components/container.min.css +2 -2
- package/assets/js/semantic-ui/components/dimmer.css +33 -18
- package/assets/js/semantic-ui/components/dimmer.js +25 -10
- package/assets/js/semantic-ui/components/dimmer.min.css +2 -2
- package/assets/js/semantic-ui/components/dimmer.min.js +3 -3
- package/assets/js/semantic-ui/components/divider.css +31 -31
- package/assets/js/semantic-ui/components/divider.min.css +2 -2
- package/assets/js/semantic-ui/components/dropdown.css +101 -51
- package/assets/js/semantic-ui/components/dropdown.js +250 -205
- package/assets/js/semantic-ui/components/dropdown.min.css +2 -2
- package/assets/js/semantic-ui/components/dropdown.min.js +3 -3
- package/assets/js/semantic-ui/components/embed.css +5 -5
- package/assets/js/semantic-ui/components/embed.js +14 -10
- package/assets/js/semantic-ui/components/embed.min.css +2 -2
- package/assets/js/semantic-ui/components/embed.min.js +3 -3
- package/assets/js/semantic-ui/components/emoji.css +10799 -8841
- package/assets/js/semantic-ui/components/emoji.min.css +1 -1
- package/assets/js/semantic-ui/components/feed.css +29 -29
- package/assets/js/semantic-ui/components/feed.min.css +2 -2
- package/assets/js/semantic-ui/components/flag.css +1021 -915
- package/assets/js/semantic-ui/components/flag.min.css +2 -2
- package/assets/js/semantic-ui/components/flyout.css +592 -0
- package/assets/js/semantic-ui/components/flyout.js +1530 -0
- package/assets/js/semantic-ui/components/flyout.min.css +9 -0
- package/assets/js/semantic-ui/components/flyout.min.js +11 -0
- package/assets/js/semantic-ui/components/form.css +160 -83
- package/assets/js/semantic-ui/components/form.js +48 -42
- package/assets/js/semantic-ui/components/form.min.css +2 -2
- package/assets/js/semantic-ui/components/form.min.js +3 -3
- package/assets/js/semantic-ui/components/grid.css +25 -21
- package/assets/js/semantic-ui/components/grid.min.css +2 -2
- package/assets/js/semantic-ui/components/header.css +6 -4
- package/assets/js/semantic-ui/components/header.min.css +2 -2
- package/assets/js/semantic-ui/components/icon.css +2110 -2061
- package/assets/js/semantic-ui/components/icon.min.css +2 -2
- package/assets/js/semantic-ui/components/image.css +1 -1
- package/assets/js/semantic-ui/components/image.min.css +1 -1
- package/assets/js/semantic-ui/components/input.css +759 -22
- package/assets/js/semantic-ui/components/input.min.css +2 -2
- package/assets/js/semantic-ui/components/item.css +17 -17
- package/assets/js/semantic-ui/components/item.min.css +2 -2
- package/assets/js/semantic-ui/components/label.css +72 -68
- package/assets/js/semantic-ui/components/label.min.css +2 -2
- package/assets/js/semantic-ui/components/list.css +31 -31
- package/assets/js/semantic-ui/components/list.min.css +2 -2
- package/assets/js/semantic-ui/components/loader.css +352 -352
- package/assets/js/semantic-ui/components/loader.min.css +2 -2
- package/assets/js/semantic-ui/components/menu.css +108 -76
- package/assets/js/semantic-ui/components/menu.min.css +1 -1
- package/assets/js/semantic-ui/components/message.css +43 -43
- package/assets/js/semantic-ui/components/message.min.css +2 -2
- package/assets/js/semantic-ui/components/modal.css +37 -6
- package/assets/js/semantic-ui/components/modal.js +188 -84
- package/assets/js/semantic-ui/components/modal.min.css +2 -2
- package/assets/js/semantic-ui/components/modal.min.js +3 -3
- package/assets/js/semantic-ui/components/nag.css +1 -1
- package/assets/js/semantic-ui/components/nag.js +3 -3
- package/assets/js/semantic-ui/components/nag.min.css +1 -1
- package/assets/js/semantic-ui/components/nag.min.js +3 -3
- package/assets/js/semantic-ui/components/placeholder.css +33 -33
- package/assets/js/semantic-ui/components/placeholder.min.css +2 -2
- package/assets/js/semantic-ui/components/popup.css +103 -105
- package/assets/js/semantic-ui/components/popup.js +17 -23
- package/assets/js/semantic-ui/components/popup.min.css +2 -2
- package/assets/js/semantic-ui/components/popup.min.js +3 -3
- package/assets/js/semantic-ui/components/progress.css +1 -1
- package/assets/js/semantic-ui/components/progress.js +6 -3
- package/assets/js/semantic-ui/components/progress.min.css +1 -1
- package/assets/js/semantic-ui/components/progress.min.js +3 -3
- package/assets/js/semantic-ui/components/rail.css +1 -1
- package/assets/js/semantic-ui/components/rail.min.css +1 -1
- package/assets/js/semantic-ui/components/rating.css +7 -46
- package/assets/js/semantic-ui/components/rating.js +8 -4
- package/assets/js/semantic-ui/components/rating.min.css +2 -2
- package/assets/js/semantic-ui/components/rating.min.js +3 -3
- package/assets/js/semantic-ui/components/reset.css +5 -4
- package/assets/js/semantic-ui/components/reset.min.css +2 -2
- package/assets/js/semantic-ui/components/reveal.css +1 -1
- package/assets/js/semantic-ui/components/reveal.min.css +1 -1
- package/assets/js/semantic-ui/components/search.css +6 -6
- package/assets/js/semantic-ui/components/search.js +48 -21
- package/assets/js/semantic-ui/components/search.min.css +2 -2
- package/assets/js/semantic-ui/components/search.min.js +3 -3
- package/assets/js/semantic-ui/components/segment.css +118 -34
- package/assets/js/semantic-ui/components/segment.min.css +2 -2
- package/assets/js/semantic-ui/components/shape.css +1 -1
- package/assets/js/semantic-ui/components/shape.js +4 -4
- package/assets/js/semantic-ui/components/shape.min.css +1 -1
- package/assets/js/semantic-ui/components/shape.min.js +3 -3
- package/assets/js/semantic-ui/components/sidebar.css +23 -9
- package/assets/js/semantic-ui/components/sidebar.js +141 -44
- package/assets/js/semantic-ui/components/sidebar.min.css +2 -2
- package/assets/js/semantic-ui/components/sidebar.min.js +3 -3
- package/assets/js/semantic-ui/components/site.css +139 -42
- package/assets/js/semantic-ui/components/site.js +2 -2
- package/assets/js/semantic-ui/components/site.min.css +2 -2
- package/assets/js/semantic-ui/components/site.min.js +3 -3
- package/assets/js/semantic-ui/components/slider.css +17 -17
- package/assets/js/semantic-ui/components/slider.js +79 -64
- package/assets/js/semantic-ui/components/slider.min.css +1 -1
- package/assets/js/semantic-ui/components/slider.min.js +3 -3
- package/assets/js/semantic-ui/components/state.js +3 -3
- package/assets/js/semantic-ui/components/state.min.js +3 -3
- package/assets/js/semantic-ui/components/statistic.css +4 -4
- package/assets/js/semantic-ui/components/statistic.min.css +2 -2
- package/assets/js/semantic-ui/components/step.css +32 -32
- package/assets/js/semantic-ui/components/step.min.css +2 -2
- package/assets/js/semantic-ui/components/sticky.css +1 -1
- package/assets/js/semantic-ui/components/sticky.js +31 -20
- package/assets/js/semantic-ui/components/sticky.min.css +1 -1
- package/assets/js/semantic-ui/components/sticky.min.js +3 -3
- package/assets/js/semantic-ui/components/tab.css +5 -5
- package/assets/js/semantic-ui/components/tab.js +25 -7
- package/assets/js/semantic-ui/components/tab.min.css +2 -2
- package/assets/js/semantic-ui/components/tab.min.js +3 -3
- package/assets/js/semantic-ui/components/table.css +1684 -272
- package/assets/js/semantic-ui/components/table.min.css +2 -2
- package/assets/js/semantic-ui/components/text.css +1 -1
- package/assets/js/semantic-ui/components/text.min.css +1 -1
- package/assets/js/semantic-ui/components/toast.css +49 -1
- package/assets/js/semantic-ui/components/toast.js +68 -34
- package/assets/js/semantic-ui/components/toast.min.css +2 -2
- package/assets/js/semantic-ui/components/toast.min.js +3 -3
- package/assets/js/semantic-ui/components/transition.css +1 -1
- package/assets/js/semantic-ui/components/transition.js +27 -22
- package/assets/js/semantic-ui/components/transition.min.css +1 -1
- package/assets/js/semantic-ui/components/transition.min.js +3 -3
- package/assets/js/semantic-ui/components/visibility.js +5 -5
- package/assets/js/semantic-ui/components/visibility.min.js +3 -3
- package/assets/js/semantic-ui/semantic.css +41970 -34600
- package/assets/js/semantic-ui/semantic.js +2859 -756
- package/assets/js/semantic-ui/semantic.min.css +3 -3
- package/assets/js/semantic-ui/semantic.min.js +3 -3
- package/assets/js/semantic-ui/themes/default/assets/fonts/Lato-Bold.woff +0 -0
- package/assets/js/semantic-ui/themes/default/assets/fonts/Lato-Bold.woff2 +0 -0
- package/assets/js/semantic-ui/themes/default/assets/fonts/Lato-BoldItalic.woff +0 -0
- package/assets/js/semantic-ui/themes/default/assets/fonts/Lato-BoldItalic.woff2 +0 -0
- package/assets/js/semantic-ui/themes/default/assets/fonts/Lato-Italic.woff +0 -0
- package/assets/js/semantic-ui/themes/default/assets/fonts/Lato-Italic.woff2 +0 -0
- package/assets/js/semantic-ui/themes/default/assets/fonts/Lato-Regular.woff +0 -0
- package/assets/js/semantic-ui/themes/default/assets/fonts/Lato-Regular.woff2 +0 -0
- package/assets/js/semantic-ui/themes/default/assets/fonts/LatoLatin-Bold.woff +0 -0
- package/assets/js/semantic-ui/themes/default/assets/fonts/LatoLatin-Bold.woff2 +0 -0
- package/assets/js/semantic-ui/themes/default/assets/fonts/LatoLatin-BoldItalic.woff +0 -0
- package/assets/js/semantic-ui/themes/default/assets/fonts/LatoLatin-BoldItalic.woff2 +0 -0
- package/assets/js/semantic-ui/themes/default/assets/fonts/LatoLatin-Italic.woff +0 -0
- package/assets/js/semantic-ui/themes/default/assets/fonts/LatoLatin-Italic.woff2 +0 -0
- package/assets/js/semantic-ui/themes/default/assets/fonts/LatoLatin-Regular.woff +0 -0
- package/assets/js/semantic-ui/themes/default/assets/fonts/LatoLatin-Regular.woff2 +0 -0
- package/assets/js/semantic-ui/themes/default/assets/fonts/brand-icons.woff +0 -0
- package/assets/js/semantic-ui/themes/default/assets/fonts/brand-icons.woff2 +0 -0
- package/assets/js/semantic-ui/themes/default/assets/fonts/icons.woff +0 -0
- package/assets/js/semantic-ui/themes/default/assets/fonts/icons.woff2 +0 -0
- package/assets/js/semantic-ui/themes/default/assets/fonts/outline-icons.woff +0 -0
- package/assets/js/semantic-ui/themes/default/assets/fonts/outline-icons.woff2 +0 -0
- package/assets/js/semantic-ui/themes/famfamfam/assets/images/flags.png +0 -0
- package/assets/js/socket.io/socket.io.esm.min.js +2 -2
- package/assets/js/socket.io/socket.io.esm.min.js.map +1 -1
- package/assets/js/socket.io/socket.io.js +232 -102
- package/assets/js/socket.io/socket.io.js.map +1 -1
- package/assets/js/socket.io/socket.io.min.js +2 -2
- package/assets/js/socket.io/socket.io.min.js.map +1 -1
- package/assets/js/socket.io/socket.io.msgpack.min.js +2 -2
- package/assets/js/socket.io/socket.io.msgpack.min.js.map +1 -1
- package/cdn.json +3 -3
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* # Fomantic-UI 2.
|
|
2
|
+
* # Fomantic-UI 2.9.0 - Rating
|
|
3
3
|
* http://github.com/fomantic/Fomantic-UI/
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -72,8 +72,14 @@
|
|
|
72
72
|
background: -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.85)), to(rgba(0, 0, 0, 0.15)));
|
|
73
73
|
background: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.85) 0% var(--full), rgba(0, 0, 0, 0.15) var(--full) 100%);
|
|
74
74
|
background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0% var(--full), rgba(0, 0, 0, 0.15) var(--full) 100%);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* central override for colors */
|
|
78
|
+
.ui.ui.rating .icon.partial.active {
|
|
79
|
+
-webkit-background-clip: text;
|
|
75
80
|
background-clip: text;
|
|
76
81
|
color: transparent;
|
|
82
|
+
text-shadow: none;
|
|
77
83
|
}
|
|
78
84
|
|
|
79
85
|
/* Selected Icon */
|
|
@@ -106,10 +112,7 @@
|
|
|
106
112
|
background: -webkit-gradient(linear, left top, right top, from(#54C8FF), to(rgba(0, 0, 0, 0.15)));
|
|
107
113
|
background: -webkit-linear-gradient(left, #54C8FF 0% var(--full), rgba(0, 0, 0, 0.15) var(--full) 100%);
|
|
108
114
|
background: linear-gradient(to right, #54C8FF 0% var(--full), rgba(0, 0, 0, 0.15) var(--full) 100%);
|
|
109
|
-
text-shadow: none;
|
|
110
115
|
-webkit-text-stroke: #2185D0 0.78px;
|
|
111
|
-
background-clip: text;
|
|
112
|
-
color: transparent;
|
|
113
116
|
}
|
|
114
117
|
.ui.secondary.rating .active.icon {
|
|
115
118
|
color: #545454;
|
|
@@ -128,10 +131,7 @@
|
|
|
128
131
|
background: -webkit-gradient(linear, left top, right top, from(#545454), to(rgba(0, 0, 0, 0.15)));
|
|
129
132
|
background: -webkit-linear-gradient(left, #545454 0% var(--full), rgba(0, 0, 0, 0.15) var(--full) 100%);
|
|
130
133
|
background: linear-gradient(to right, #545454 0% var(--full), rgba(0, 0, 0, 0.15) var(--full) 100%);
|
|
131
|
-
text-shadow: none;
|
|
132
134
|
-webkit-text-stroke: #1B1C1D 0.78px;
|
|
133
|
-
background-clip: text;
|
|
134
|
-
color: transparent;
|
|
135
135
|
}
|
|
136
136
|
.ui.red.rating .active.icon {
|
|
137
137
|
color: #FF695E;
|
|
@@ -150,10 +150,7 @@
|
|
|
150
150
|
background: -webkit-gradient(linear, left top, right top, from(#FF695E), to(rgba(0, 0, 0, 0.15)));
|
|
151
151
|
background: -webkit-linear-gradient(left, #FF695E 0% var(--full), rgba(0, 0, 0, 0.15) var(--full) 100%);
|
|
152
152
|
background: linear-gradient(to right, #FF695E 0% var(--full), rgba(0, 0, 0, 0.15) var(--full) 100%);
|
|
153
|
-
text-shadow: none;
|
|
154
153
|
-webkit-text-stroke: #DB2828 0.78px;
|
|
155
|
-
background-clip: text;
|
|
156
|
-
color: transparent;
|
|
157
154
|
}
|
|
158
155
|
.ui.orange.rating .active.icon {
|
|
159
156
|
color: #FF851B;
|
|
@@ -172,10 +169,7 @@
|
|
|
172
169
|
background: -webkit-gradient(linear, left top, right top, from(#FF851B), to(rgba(0, 0, 0, 0.15)));
|
|
173
170
|
background: -webkit-linear-gradient(left, #FF851B 0% var(--full), rgba(0, 0, 0, 0.15) var(--full) 100%);
|
|
174
171
|
background: linear-gradient(to right, #FF851B 0% var(--full), rgba(0, 0, 0, 0.15) var(--full) 100%);
|
|
175
|
-
text-shadow: none;
|
|
176
172
|
-webkit-text-stroke: #F2711C 0.78px;
|
|
177
|
-
background-clip: text;
|
|
178
|
-
color: transparent;
|
|
179
173
|
}
|
|
180
174
|
.ui.yellow.rating .active.icon {
|
|
181
175
|
color: #FFE21F;
|
|
@@ -194,10 +188,7 @@
|
|
|
194
188
|
background: -webkit-gradient(linear, left top, right top, from(#FFE21F), to(rgba(0, 0, 0, 0.15)));
|
|
195
189
|
background: -webkit-linear-gradient(left, #FFE21F 0% var(--full), rgba(0, 0, 0, 0.15) var(--full) 100%);
|
|
196
190
|
background: linear-gradient(to right, #FFE21F 0% var(--full), rgba(0, 0, 0, 0.15) var(--full) 100%);
|
|
197
|
-
text-shadow: none;
|
|
198
191
|
-webkit-text-stroke: #FBBD08 0.78px;
|
|
199
|
-
background-clip: text;
|
|
200
|
-
color: transparent;
|
|
201
192
|
}
|
|
202
193
|
.ui.olive.rating .active.icon {
|
|
203
194
|
color: #D9E778;
|
|
@@ -216,10 +207,7 @@
|
|
|
216
207
|
background: -webkit-gradient(linear, left top, right top, from(#D9E778), to(rgba(0, 0, 0, 0.15)));
|
|
217
208
|
background: -webkit-linear-gradient(left, #D9E778 0% var(--full), rgba(0, 0, 0, 0.15) var(--full) 100%);
|
|
218
209
|
background: linear-gradient(to right, #D9E778 0% var(--full), rgba(0, 0, 0, 0.15) var(--full) 100%);
|
|
219
|
-
text-shadow: none;
|
|
220
210
|
-webkit-text-stroke: #B5CC18 0.78px;
|
|
221
|
-
background-clip: text;
|
|
222
|
-
color: transparent;
|
|
223
211
|
}
|
|
224
212
|
.ui.green.rating .active.icon {
|
|
225
213
|
color: #2ECC40;
|
|
@@ -238,10 +226,7 @@
|
|
|
238
226
|
background: -webkit-gradient(linear, left top, right top, from(#2ECC40), to(rgba(0, 0, 0, 0.15)));
|
|
239
227
|
background: -webkit-linear-gradient(left, #2ECC40 0% var(--full), rgba(0, 0, 0, 0.15) var(--full) 100%);
|
|
240
228
|
background: linear-gradient(to right, #2ECC40 0% var(--full), rgba(0, 0, 0, 0.15) var(--full) 100%);
|
|
241
|
-
text-shadow: none;
|
|
242
229
|
-webkit-text-stroke: #21BA45 0.78px;
|
|
243
|
-
background-clip: text;
|
|
244
|
-
color: transparent;
|
|
245
230
|
}
|
|
246
231
|
.ui.teal.rating .active.icon {
|
|
247
232
|
color: #6DFFFF;
|
|
@@ -260,10 +245,7 @@
|
|
|
260
245
|
background: -webkit-gradient(linear, left top, right top, from(#6DFFFF), to(rgba(0, 0, 0, 0.15)));
|
|
261
246
|
background: -webkit-linear-gradient(left, #6DFFFF 0% var(--full), rgba(0, 0, 0, 0.15) var(--full) 100%);
|
|
262
247
|
background: linear-gradient(to right, #6DFFFF 0% var(--full), rgba(0, 0, 0, 0.15) var(--full) 100%);
|
|
263
|
-
text-shadow: none;
|
|
264
248
|
-webkit-text-stroke: #00B5AD 0.78px;
|
|
265
|
-
background-clip: text;
|
|
266
|
-
color: transparent;
|
|
267
249
|
}
|
|
268
250
|
.ui.blue.rating .active.icon {
|
|
269
251
|
color: #54C8FF;
|
|
@@ -282,10 +264,7 @@
|
|
|
282
264
|
background: -webkit-gradient(linear, left top, right top, from(#54C8FF), to(rgba(0, 0, 0, 0.15)));
|
|
283
265
|
background: -webkit-linear-gradient(left, #54C8FF 0% var(--full), rgba(0, 0, 0, 0.15) var(--full) 100%);
|
|
284
266
|
background: linear-gradient(to right, #54C8FF 0% var(--full), rgba(0, 0, 0, 0.15) var(--full) 100%);
|
|
285
|
-
text-shadow: none;
|
|
286
267
|
-webkit-text-stroke: #2185D0 0.78px;
|
|
287
|
-
background-clip: text;
|
|
288
|
-
color: transparent;
|
|
289
268
|
}
|
|
290
269
|
.ui.violet.rating .active.icon {
|
|
291
270
|
color: #A291FB;
|
|
@@ -304,10 +283,7 @@
|
|
|
304
283
|
background: -webkit-gradient(linear, left top, right top, from(#A291FB), to(rgba(0, 0, 0, 0.15)));
|
|
305
284
|
background: -webkit-linear-gradient(left, #A291FB 0% var(--full), rgba(0, 0, 0, 0.15) var(--full) 100%);
|
|
306
285
|
background: linear-gradient(to right, #A291FB 0% var(--full), rgba(0, 0, 0, 0.15) var(--full) 100%);
|
|
307
|
-
text-shadow: none;
|
|
308
286
|
-webkit-text-stroke: #6435C9 0.78px;
|
|
309
|
-
background-clip: text;
|
|
310
|
-
color: transparent;
|
|
311
287
|
}
|
|
312
288
|
.ui.purple.rating .active.icon {
|
|
313
289
|
color: #DC73FF;
|
|
@@ -326,10 +302,7 @@
|
|
|
326
302
|
background: -webkit-gradient(linear, left top, right top, from(#DC73FF), to(rgba(0, 0, 0, 0.15)));
|
|
327
303
|
background: -webkit-linear-gradient(left, #DC73FF 0% var(--full), rgba(0, 0, 0, 0.15) var(--full) 100%);
|
|
328
304
|
background: linear-gradient(to right, #DC73FF 0% var(--full), rgba(0, 0, 0, 0.15) var(--full) 100%);
|
|
329
|
-
text-shadow: none;
|
|
330
305
|
-webkit-text-stroke: #A333C8 0.78px;
|
|
331
|
-
background-clip: text;
|
|
332
|
-
color: transparent;
|
|
333
306
|
}
|
|
334
307
|
.ui.pink.rating .active.icon {
|
|
335
308
|
color: #FF8EDF;
|
|
@@ -348,10 +321,7 @@
|
|
|
348
321
|
background: -webkit-gradient(linear, left top, right top, from(#FF8EDF), to(rgba(0, 0, 0, 0.15)));
|
|
349
322
|
background: -webkit-linear-gradient(left, #FF8EDF 0% var(--full), rgba(0, 0, 0, 0.15) var(--full) 100%);
|
|
350
323
|
background: linear-gradient(to right, #FF8EDF 0% var(--full), rgba(0, 0, 0, 0.15) var(--full) 100%);
|
|
351
|
-
text-shadow: none;
|
|
352
324
|
-webkit-text-stroke: #E03997 0.78px;
|
|
353
|
-
background-clip: text;
|
|
354
|
-
color: transparent;
|
|
355
325
|
}
|
|
356
326
|
.ui.brown.rating .active.icon {
|
|
357
327
|
color: #D67C1C;
|
|
@@ -370,10 +340,7 @@
|
|
|
370
340
|
background: -webkit-gradient(linear, left top, right top, from(#D67C1C), to(rgba(0, 0, 0, 0.15)));
|
|
371
341
|
background: -webkit-linear-gradient(left, #D67C1C 0% var(--full), rgba(0, 0, 0, 0.15) var(--full) 100%);
|
|
372
342
|
background: linear-gradient(to right, #D67C1C 0% var(--full), rgba(0, 0, 0, 0.15) var(--full) 100%);
|
|
373
|
-
text-shadow: none;
|
|
374
343
|
-webkit-text-stroke: #A5673F 0.78px;
|
|
375
|
-
background-clip: text;
|
|
376
|
-
color: transparent;
|
|
377
344
|
}
|
|
378
345
|
.ui.grey.rating .active.icon {
|
|
379
346
|
color: #DCDDDE;
|
|
@@ -392,10 +359,7 @@
|
|
|
392
359
|
background: -webkit-gradient(linear, left top, right top, from(#DCDDDE), to(rgba(0, 0, 0, 0.15)));
|
|
393
360
|
background: -webkit-linear-gradient(left, #DCDDDE 0% var(--full), rgba(0, 0, 0, 0.15) var(--full) 100%);
|
|
394
361
|
background: linear-gradient(to right, #DCDDDE 0% var(--full), rgba(0, 0, 0, 0.15) var(--full) 100%);
|
|
395
|
-
text-shadow: none;
|
|
396
362
|
-webkit-text-stroke: #767676 0.78px;
|
|
397
|
-
background-clip: text;
|
|
398
|
-
color: transparent;
|
|
399
363
|
}
|
|
400
364
|
.ui.black.rating .active.icon {
|
|
401
365
|
color: #545454;
|
|
@@ -414,10 +378,7 @@
|
|
|
414
378
|
background: -webkit-gradient(linear, left top, right top, from(#545454), to(rgba(0, 0, 0, 0.15)));
|
|
415
379
|
background: -webkit-linear-gradient(left, #545454 0% var(--full), rgba(0, 0, 0, 0.15) var(--full) 100%);
|
|
416
380
|
background: linear-gradient(to right, #545454 0% var(--full), rgba(0, 0, 0, 0.15) var(--full) 100%);
|
|
417
|
-
text-shadow: none;
|
|
418
381
|
-webkit-text-stroke: #1B1C1D 0.78px;
|
|
419
|
-
background-clip: text;
|
|
420
|
-
color: transparent;
|
|
421
382
|
}
|
|
422
383
|
|
|
423
384
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* # Fomantic-UI 2.
|
|
2
|
+
* # Fomantic-UI 2.9.0 - Rating
|
|
3
3
|
* http://github.com/fomantic/Fomantic-UI/
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -419,7 +419,7 @@ $.fn.rating = function(parameters) {
|
|
|
419
419
|
response
|
|
420
420
|
;
|
|
421
421
|
passedArguments = passedArguments || queryArguments;
|
|
422
|
-
context =
|
|
422
|
+
context = context || element;
|
|
423
423
|
if(typeof query == 'string' && object !== undefined) {
|
|
424
424
|
query = query.split(/[\. ]/);
|
|
425
425
|
maxDepth = query.length - 1;
|
|
@@ -536,13 +536,17 @@ $.fn.rating.settings = {
|
|
|
536
536
|
},
|
|
537
537
|
|
|
538
538
|
templates: {
|
|
539
|
+
deQuote: function(string, encode) {
|
|
540
|
+
return String(string).replace(/"/g,encode ? """ : "");
|
|
541
|
+
},
|
|
539
542
|
icon: function(maxRating, iconClass) {
|
|
540
543
|
var
|
|
541
544
|
icon = 1,
|
|
542
|
-
html = ''
|
|
545
|
+
html = '',
|
|
546
|
+
deQuote = $.fn.rating.settings.templates.deQuote
|
|
543
547
|
;
|
|
544
548
|
while(icon <= maxRating) {
|
|
545
|
-
html += '<i class="'+iconClass+' icon"></i>';
|
|
549
|
+
html += '<i class="'+deQuote(iconClass)+' icon"></i>';
|
|
546
550
|
icon++;
|
|
547
551
|
}
|
|
548
552
|
return html;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* # Fomantic-UI 2.
|
|
2
|
+
* # Fomantic-UI 2.9.0 - Rating
|
|
3
3
|
* http://github.com/fomantic/Fomantic-UI/
|
|
4
4
|
*
|
|
5
5
|
*
|
|
6
6
|
* Released under the MIT license
|
|
7
7
|
* http://opensource.org/licenses/MIT
|
|
8
8
|
*
|
|
9
|
-
*/.ui.rating{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;white-space:nowrap;vertical-align:baseline}.ui.rating:last-child{margin-right:0}.ui.rating .icon{padding:0;margin:0;text-align:center;font-weight:400;font-style:normal;-webkit-box-flex:1;-ms-flex:1 0 auto;flex:1 0 auto;cursor:pointer;width:1.25em;height:auto;-webkit-transition:opacity .1s ease,background .1s ease,text-shadow .1s ease,color .1s ease;transition:opacity .1s ease,background .1s ease,text-shadow .1s ease,color .1s ease;line-height:1;-webkit-backface-visibility:hidden;backface-visibility:hidden}.ui.rating .icon{background:0 0;color:rgba(0,0,0,.15)}.ui.rating .active.icon{background:0 0;color:rgba(0,0,0,.85)}.ui.rating .icon.partial.active{background:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.85)),to(rgba(0,0,0,.15)));background:-webkit-linear-gradient(left,rgba(0,0,0,.85) 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);background:linear-gradient(to right,rgba(0,0,0,.85) 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);background-clip:text;color:transparent}.ui.rating .icon.selected,.ui.rating .icon.selected.active,.ui.rating .icon.selected.partial.active{background:0 0;color:rgba(0,0,0,.87);background-clip:unset}.ui.primary.rating .active.icon{color:#54c8ff;text-shadow:0 -1px 0 #2185d0,-1px 0 0 #2185d0,0 1px 0 #2185d0,1px 0 0 #2185d0}.ui.primary.rating .icon.selected,.ui.primary.rating .icon.selected.active,.ui.primary.rating .icon.selected.partial.active{background:inherit;color:#21b8ff;text-shadow:0 -1px 0 #1678c2,-1px 0 0 #1678c2,0 1px 0 #1678c2,1px 0 0 #1678c2;-webkit-text-stroke:unset;background-clip:unset}.ui.primary.rating .icon.partial.active{background:-webkit-gradient(linear,left top,right top,from(#54c8ff),to(rgba(0,0,0,.15)));background:-webkit-linear-gradient(left,#54c8ff 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);background:linear-gradient(to right,#54c8ff 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);text-shadow:none;-webkit-text-stroke:#2185d0 .78px;background-clip:text;color:transparent}.ui.secondary.rating .active.icon{color:#545454;text-shadow:0 -1px 0 #1b1c1d,-1px 0 0 #1b1c1d,0 1px 0 #1b1c1d,1px 0 0 #1b1c1d}.ui.secondary.rating .icon.selected,.ui.secondary.rating .icon.selected.active,.ui.secondary.rating .icon.selected.partial.active{background:inherit;color:#6e6e6e;text-shadow:0 -1px 0 #27292a,-1px 0 0 #27292a,0 1px 0 #27292a,1px 0 0 #27292a;-webkit-text-stroke:unset;background-clip:unset}.ui.secondary.rating .icon.partial.active{background:-webkit-gradient(linear,left top,right top,from(#545454),to(rgba(0,0,0,.15)));background:-webkit-linear-gradient(left,#545454 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);background:linear-gradient(to right,#545454 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);text-shadow:none;-webkit-text-stroke:#1b1c1d .78px;background-clip:text;color:transparent}.ui.red.rating .active.icon{color:#ff695e;text-shadow:0 -1px 0 #db2828,-1px 0 0 #db2828,0 1px 0 #db2828,1px 0 0 #db2828}.ui.red.rating .icon.selected,.ui.red.rating .icon.selected.active,.ui.red.rating .icon.selected.partial.active{background:inherit;color:#ff392b;text-shadow:0 -1px 0 #d01919,-1px 0 0 #d01919,0 1px 0 #d01919,1px 0 0 #d01919;-webkit-text-stroke:unset;background-clip:unset}.ui.red.rating .icon.partial.active{background:-webkit-gradient(linear,left top,right top,from(#ff695e),to(rgba(0,0,0,.15)));background:-webkit-linear-gradient(left,#ff695e 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);background:linear-gradient(to right,#ff695e 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);text-shadow:none;-webkit-text-stroke:#db2828 .78px;background-clip:text;color:transparent}.ui.orange.rating .active.icon{color:#ff851b;text-shadow:0 -1px 0 #f2711c,-1px 0 0 #f2711c,0 1px 0 #f2711c,1px 0 0 #f2711c}.ui.orange.rating .icon.selected,.ui.orange.rating .icon.selected.active,.ui.orange.rating .icon.selected.partial.active{background:inherit;color:#e76b00;text-shadow:0 -1px 0 #f26202,-1px 0 0 #f26202,0 1px 0 #f26202,1px 0 0 #f26202;-webkit-text-stroke:unset;background-clip:unset}.ui.orange.rating .icon.partial.active{background:-webkit-gradient(linear,left top,right top,from(#ff851b),to(rgba(0,0,0,.15)));background:-webkit-linear-gradient(left,#ff851b 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);background:linear-gradient(to right,#ff851b 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);text-shadow:none;-webkit-text-stroke:#f2711c .78px;background-clip:text;color:transparent}.ui.yellow.rating .active.icon{color:#ffe21f;text-shadow:0 -1px 0 #fbbd08,-1px 0 0 #fbbd08,0 1px 0 #fbbd08,1px 0 0 #fbbd08}.ui.yellow.rating .icon.selected,.ui.yellow.rating .icon.selected.active,.ui.yellow.rating .icon.selected.partial.active{background:inherit;color:#ebcd00;text-shadow:0 -1px 0 #eaae00,-1px 0 0 #eaae00,0 1px 0 #eaae00,1px 0 0 #eaae00;-webkit-text-stroke:unset;background-clip:unset}.ui.yellow.rating .icon.partial.active{background:-webkit-gradient(linear,left top,right top,from(#ffe21f),to(rgba(0,0,0,.15)));background:-webkit-linear-gradient(left,#ffe21f 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);background:linear-gradient(to right,#ffe21f 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);text-shadow:none;-webkit-text-stroke:#fbbd08 .78px;background-clip:text;color:transparent}.ui.olive.rating .active.icon{color:#d9e778;text-shadow:0 -1px 0 #b5cc18,-1px 0 0 #b5cc18,0 1px 0 #b5cc18,1px 0 0 #b5cc18}.ui.olive.rating .icon.selected,.ui.olive.rating .icon.selected.active,.ui.olive.rating .icon.selected.partial.active{background:inherit;color:#d2e745;text-shadow:0 -1px 0 #a7bd0d,-1px 0 0 #a7bd0d,0 1px 0 #a7bd0d,1px 0 0 #a7bd0d;-webkit-text-stroke:unset;background-clip:unset}.ui.olive.rating .icon.partial.active{background:-webkit-gradient(linear,left top,right top,from(#d9e778),to(rgba(0,0,0,.15)));background:-webkit-linear-gradient(left,#d9e778 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);background:linear-gradient(to right,#d9e778 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);text-shadow:none;-webkit-text-stroke:#b5cc18 .78px;background-clip:text;color:transparent}.ui.green.rating .active.icon{color:#2ecc40;text-shadow:0 -1px 0 #21ba45,-1px 0 0 #21ba45,0 1px 0 #21ba45,1px 0 0 #21ba45}.ui.green.rating .icon.selected,.ui.green.rating .icon.selected.active,.ui.green.rating .icon.selected.partial.active{background:inherit;color:#1ea92e;text-shadow:0 -1px 0 #16ab39,-1px 0 0 #16ab39,0 1px 0 #16ab39,1px 0 0 #16ab39;-webkit-text-stroke:unset;background-clip:unset}.ui.green.rating .icon.partial.active{background:-webkit-gradient(linear,left top,right top,from(#2ecc40),to(rgba(0,0,0,.15)));background:-webkit-linear-gradient(left,#2ecc40 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);background:linear-gradient(to right,#2ecc40 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);text-shadow:none;-webkit-text-stroke:#21ba45 .78px;background-clip:text;color:transparent}.ui.teal.rating .active.icon{color:#6dffff;text-shadow:0 -1px 0 #00b5ad,-1px 0 0 #00b5ad,0 1px 0 #00b5ad,1px 0 0 #00b5ad}.ui.teal.rating .icon.selected,.ui.teal.rating .icon.selected.active,.ui.teal.rating .icon.selected.partial.active{background:inherit;color:#3affff;text-shadow:0 -1px 0 #009c95,-1px 0 0 #009c95,0 1px 0 #009c95,1px 0 0 #009c95;-webkit-text-stroke:unset;background-clip:unset}.ui.teal.rating .icon.partial.active{background:-webkit-gradient(linear,left top,right top,from(#6dffff),to(rgba(0,0,0,.15)));background:-webkit-linear-gradient(left,#6dffff 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);background:linear-gradient(to right,#6dffff 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);text-shadow:none;-webkit-text-stroke:#00b5ad .78px;background-clip:text;color:transparent}.ui.blue.rating .active.icon{color:#54c8ff;text-shadow:0 -1px 0 #2185d0,-1px 0 0 #2185d0,0 1px 0 #2185d0,1px 0 0 #2185d0}.ui.blue.rating .icon.selected,.ui.blue.rating .icon.selected.active,.ui.blue.rating .icon.selected.partial.active{background:inherit;color:#21b8ff;text-shadow:0 -1px 0 #1678c2,-1px 0 0 #1678c2,0 1px 0 #1678c2,1px 0 0 #1678c2;-webkit-text-stroke:unset;background-clip:unset}.ui.blue.rating .icon.partial.active{background:-webkit-gradient(linear,left top,right top,from(#54c8ff),to(rgba(0,0,0,.15)));background:-webkit-linear-gradient(left,#54c8ff 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);background:linear-gradient(to right,#54c8ff 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);text-shadow:none;-webkit-text-stroke:#2185d0 .78px;background-clip:text;color:transparent}.ui.violet.rating .active.icon{color:#a291fb;text-shadow:0 -1px 0 #6435c9,-1px 0 0 #6435c9,0 1px 0 #6435c9,1px 0 0 #6435c9}.ui.violet.rating .icon.selected,.ui.violet.rating .icon.selected.active,.ui.violet.rating .icon.selected.partial.active{background:inherit;color:#745aff;text-shadow:0 -1px 0 #5829bb,-1px 0 0 #5829bb,0 1px 0 #5829bb,1px 0 0 #5829bb;-webkit-text-stroke:unset;background-clip:unset}.ui.violet.rating .icon.partial.active{background:-webkit-gradient(linear,left top,right top,from(#a291fb),to(rgba(0,0,0,.15)));background:-webkit-linear-gradient(left,#a291fb 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);background:linear-gradient(to right,#a291fb 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);text-shadow:none;-webkit-text-stroke:#6435c9 .78px;background-clip:text;color:transparent}.ui.purple.rating .active.icon{color:#dc73ff;text-shadow:0 -1px 0 #a333c8,-1px 0 0 #a333c8,0 1px 0 #a333c8,1px 0 0 #a333c8}.ui.purple.rating .icon.selected,.ui.purple.rating .icon.selected.active,.ui.purple.rating .icon.selected.partial.active{background:inherit;color:#cf40ff;text-shadow:0 -1px 0 #9627ba,-1px 0 0 #9627ba,0 1px 0 #9627ba,1px 0 0 #9627ba;-webkit-text-stroke:unset;background-clip:unset}.ui.purple.rating .icon.partial.active{background:-webkit-gradient(linear,left top,right top,from(#dc73ff),to(rgba(0,0,0,.15)));background:-webkit-linear-gradient(left,#dc73ff 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);background:linear-gradient(to right,#dc73ff 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);text-shadow:none;-webkit-text-stroke:#a333c8 .78px;background-clip:text;color:transparent}.ui.pink.rating .active.icon{color:#ff8edf;text-shadow:0 -1px 0 #e03997,-1px 0 0 #e03997,0 1px 0 #e03997,1px 0 0 #e03997}.ui.pink.rating .icon.selected,.ui.pink.rating .icon.selected.active,.ui.pink.rating .icon.selected.partial.active{background:inherit;color:#ff5bd1;text-shadow:0 -1px 0 #e61a8d,-1px 0 0 #e61a8d,0 1px 0 #e61a8d,1px 0 0 #e61a8d;-webkit-text-stroke:unset;background-clip:unset}.ui.pink.rating .icon.partial.active{background:-webkit-gradient(linear,left top,right top,from(#ff8edf),to(rgba(0,0,0,.15)));background:-webkit-linear-gradient(left,#ff8edf 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);background:linear-gradient(to right,#ff8edf 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);text-shadow:none;-webkit-text-stroke:#e03997 .78px;background-clip:text;color:transparent}.ui.brown.rating .active.icon{color:#d67c1c;text-shadow:0 -1px 0 #a5673f,-1px 0 0 #a5673f,0 1px 0 #a5673f,1px 0 0 #a5673f}.ui.brown.rating .icon.selected,.ui.brown.rating .icon.selected.active,.ui.brown.rating .icon.selected.partial.active{background:inherit;color:#b0620f;text-shadow:0 -1px 0 #975b33,-1px 0 0 #975b33,0 1px 0 #975b33,1px 0 0 #975b33;-webkit-text-stroke:unset;background-clip:unset}.ui.brown.rating .icon.partial.active{background:-webkit-gradient(linear,left top,right top,from(#d67c1c),to(rgba(0,0,0,.15)));background:-webkit-linear-gradient(left,#d67c1c 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);background:linear-gradient(to right,#d67c1c 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);text-shadow:none;-webkit-text-stroke:#a5673f .78px;background-clip:text;color:transparent}.ui.grey.rating .active.icon{color:#dcddde;text-shadow:0 -1px 0 #767676,-1px 0 0 #767676,0 1px 0 #767676,1px 0 0 #767676}.ui.grey.rating .icon.selected,.ui.grey.rating .icon.selected.active,.ui.grey.rating .icon.selected.partial.active{background:inherit;color:#c2c4c5;text-shadow:0 -1px 0 #838383,-1px 0 0 #838383,0 1px 0 #838383,1px 0 0 #838383;-webkit-text-stroke:unset;background-clip:unset}.ui.grey.rating .icon.partial.active{background:-webkit-gradient(linear,left top,right top,from(#dcddde),to(rgba(0,0,0,.15)));background:-webkit-linear-gradient(left,#dcddde 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);background:linear-gradient(to right,#dcddde 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);text-shadow:none;-webkit-text-stroke:#767676 .78px;background-clip:text;color:transparent}.ui.black.rating .active.icon{color:#545454;text-shadow:0 -1px 0 #1b1c1d,-1px 0 0 #1b1c1d,0 1px 0 #1b1c1d,1px 0 0 #1b1c1d}.ui.black.rating .icon.selected,.ui.black.rating .icon.selected.active,.ui.black.rating .icon.selected.partial.active{background:inherit;color:#000;text-shadow:0 -1px 0 #27292a,-1px 0 0 #27292a,0 1px 0 #27292a,1px 0 0 #27292a;-webkit-text-stroke:unset;background-clip:unset}.ui.black.rating .icon.partial.active{background:-webkit-gradient(linear,left top,right top,from(#545454),to(rgba(0,0,0,.15)));background:-webkit-linear-gradient(left,#545454 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);background:linear-gradient(to right,#545454 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);text-shadow:none;-webkit-text-stroke:#1b1c1d .78px;background-clip:text;color:transparent}.ui.disabled.rating .icon{cursor:default;pointer-events:none}.ui.rating.selected .active.icon{opacity:1}.ui.rating .icon.selected,.ui.rating.selected .icon.selected{opacity:1}.ui.rating{font-size:1rem}.ui.mini.rating{font-size:.78571429rem}.ui.tiny.rating{font-size:.85714286rem}.ui.small.rating{font-size:.92857143rem}.ui.large.rating{font-size:1.14285714rem}.ui.big.rating{font-size:1.28571429rem}.ui.huge.rating{font-size:1.42857143rem}.ui.massive.rating{font-size:2rem}
|
|
9
|
+
*/.ui.rating{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;white-space:nowrap;vertical-align:baseline}.ui.rating:last-child{margin-right:0}.ui.rating .icon{padding:0;margin:0;text-align:center;font-weight:400;font-style:normal;-webkit-box-flex:1;-ms-flex:1 0 auto;flex:1 0 auto;cursor:pointer;width:1.25em;height:auto;-webkit-transition:opacity .1s ease,background .1s ease,text-shadow .1s ease,color .1s ease;transition:opacity .1s ease,background .1s ease,text-shadow .1s ease,color .1s ease;line-height:1;-webkit-backface-visibility:hidden;backface-visibility:hidden}.ui.rating .icon{background:0 0;color:rgba(0,0,0,.15)}.ui.rating .active.icon{background:0 0;color:rgba(0,0,0,.85)}.ui.rating .icon.partial.active{background:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.85)),to(rgba(0,0,0,.15)));background:-webkit-linear-gradient(left,rgba(0,0,0,.85) 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);background:linear-gradient(to right,rgba(0,0,0,.85) 0 var(--full),rgba(0,0,0,.15) var(--full) 100%)}.ui.ui.rating .icon.partial.active{-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:none}.ui.rating .icon.selected,.ui.rating .icon.selected.active,.ui.rating .icon.selected.partial.active{background:0 0;color:rgba(0,0,0,.87);background-clip:unset}.ui.primary.rating .active.icon{color:#54c8ff;text-shadow:0 -1px 0 #2185d0,-1px 0 0 #2185d0,0 1px 0 #2185d0,1px 0 0 #2185d0}.ui.primary.rating .icon.selected,.ui.primary.rating .icon.selected.active,.ui.primary.rating .icon.selected.partial.active{background:inherit;color:#21b8ff;text-shadow:0 -1px 0 #1678c2,-1px 0 0 #1678c2,0 1px 0 #1678c2,1px 0 0 #1678c2;-webkit-text-stroke:unset;background-clip:unset}.ui.primary.rating .icon.partial.active{background:-webkit-gradient(linear,left top,right top,from(#54c8ff),to(rgba(0,0,0,.15)));background:-webkit-linear-gradient(left,#54c8ff 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);background:linear-gradient(to right,#54c8ff 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);-webkit-text-stroke:#2185d0 .78px}.ui.secondary.rating .active.icon{color:#545454;text-shadow:0 -1px 0 #1b1c1d,-1px 0 0 #1b1c1d,0 1px 0 #1b1c1d,1px 0 0 #1b1c1d}.ui.secondary.rating .icon.selected,.ui.secondary.rating .icon.selected.active,.ui.secondary.rating .icon.selected.partial.active{background:inherit;color:#6e6e6e;text-shadow:0 -1px 0 #27292a,-1px 0 0 #27292a,0 1px 0 #27292a,1px 0 0 #27292a;-webkit-text-stroke:unset;background-clip:unset}.ui.secondary.rating .icon.partial.active{background:-webkit-gradient(linear,left top,right top,from(#545454),to(rgba(0,0,0,.15)));background:-webkit-linear-gradient(left,#545454 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);background:linear-gradient(to right,#545454 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);-webkit-text-stroke:#1b1c1d .78px}.ui.red.rating .active.icon{color:#ff695e;text-shadow:0 -1px 0 #db2828,-1px 0 0 #db2828,0 1px 0 #db2828,1px 0 0 #db2828}.ui.red.rating .icon.selected,.ui.red.rating .icon.selected.active,.ui.red.rating .icon.selected.partial.active{background:inherit;color:#ff392b;text-shadow:0 -1px 0 #d01919,-1px 0 0 #d01919,0 1px 0 #d01919,1px 0 0 #d01919;-webkit-text-stroke:unset;background-clip:unset}.ui.red.rating .icon.partial.active{background:-webkit-gradient(linear,left top,right top,from(#ff695e),to(rgba(0,0,0,.15)));background:-webkit-linear-gradient(left,#ff695e 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);background:linear-gradient(to right,#ff695e 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);-webkit-text-stroke:#db2828 .78px}.ui.orange.rating .active.icon{color:#ff851b;text-shadow:0 -1px 0 #f2711c,-1px 0 0 #f2711c,0 1px 0 #f2711c,1px 0 0 #f2711c}.ui.orange.rating .icon.selected,.ui.orange.rating .icon.selected.active,.ui.orange.rating .icon.selected.partial.active{background:inherit;color:#e76b00;text-shadow:0 -1px 0 #f26202,-1px 0 0 #f26202,0 1px 0 #f26202,1px 0 0 #f26202;-webkit-text-stroke:unset;background-clip:unset}.ui.orange.rating .icon.partial.active{background:-webkit-gradient(linear,left top,right top,from(#ff851b),to(rgba(0,0,0,.15)));background:-webkit-linear-gradient(left,#ff851b 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);background:linear-gradient(to right,#ff851b 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);-webkit-text-stroke:#f2711c .78px}.ui.yellow.rating .active.icon{color:#ffe21f;text-shadow:0 -1px 0 #fbbd08,-1px 0 0 #fbbd08,0 1px 0 #fbbd08,1px 0 0 #fbbd08}.ui.yellow.rating .icon.selected,.ui.yellow.rating .icon.selected.active,.ui.yellow.rating .icon.selected.partial.active{background:inherit;color:#ebcd00;text-shadow:0 -1px 0 #eaae00,-1px 0 0 #eaae00,0 1px 0 #eaae00,1px 0 0 #eaae00;-webkit-text-stroke:unset;background-clip:unset}.ui.yellow.rating .icon.partial.active{background:-webkit-gradient(linear,left top,right top,from(#ffe21f),to(rgba(0,0,0,.15)));background:-webkit-linear-gradient(left,#ffe21f 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);background:linear-gradient(to right,#ffe21f 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);-webkit-text-stroke:#fbbd08 .78px}.ui.olive.rating .active.icon{color:#d9e778;text-shadow:0 -1px 0 #b5cc18,-1px 0 0 #b5cc18,0 1px 0 #b5cc18,1px 0 0 #b5cc18}.ui.olive.rating .icon.selected,.ui.olive.rating .icon.selected.active,.ui.olive.rating .icon.selected.partial.active{background:inherit;color:#d2e745;text-shadow:0 -1px 0 #a7bd0d,-1px 0 0 #a7bd0d,0 1px 0 #a7bd0d,1px 0 0 #a7bd0d;-webkit-text-stroke:unset;background-clip:unset}.ui.olive.rating .icon.partial.active{background:-webkit-gradient(linear,left top,right top,from(#d9e778),to(rgba(0,0,0,.15)));background:-webkit-linear-gradient(left,#d9e778 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);background:linear-gradient(to right,#d9e778 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);-webkit-text-stroke:#b5cc18 .78px}.ui.green.rating .active.icon{color:#2ecc40;text-shadow:0 -1px 0 #21ba45,-1px 0 0 #21ba45,0 1px 0 #21ba45,1px 0 0 #21ba45}.ui.green.rating .icon.selected,.ui.green.rating .icon.selected.active,.ui.green.rating .icon.selected.partial.active{background:inherit;color:#1ea92e;text-shadow:0 -1px 0 #16ab39,-1px 0 0 #16ab39,0 1px 0 #16ab39,1px 0 0 #16ab39;-webkit-text-stroke:unset;background-clip:unset}.ui.green.rating .icon.partial.active{background:-webkit-gradient(linear,left top,right top,from(#2ecc40),to(rgba(0,0,0,.15)));background:-webkit-linear-gradient(left,#2ecc40 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);background:linear-gradient(to right,#2ecc40 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);-webkit-text-stroke:#21ba45 .78px}.ui.teal.rating .active.icon{color:#6dffff;text-shadow:0 -1px 0 #00b5ad,-1px 0 0 #00b5ad,0 1px 0 #00b5ad,1px 0 0 #00b5ad}.ui.teal.rating .icon.selected,.ui.teal.rating .icon.selected.active,.ui.teal.rating .icon.selected.partial.active{background:inherit;color:#3affff;text-shadow:0 -1px 0 #009c95,-1px 0 0 #009c95,0 1px 0 #009c95,1px 0 0 #009c95;-webkit-text-stroke:unset;background-clip:unset}.ui.teal.rating .icon.partial.active{background:-webkit-gradient(linear,left top,right top,from(#6dffff),to(rgba(0,0,0,.15)));background:-webkit-linear-gradient(left,#6dffff 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);background:linear-gradient(to right,#6dffff 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);-webkit-text-stroke:#00b5ad .78px}.ui.blue.rating .active.icon{color:#54c8ff;text-shadow:0 -1px 0 #2185d0,-1px 0 0 #2185d0,0 1px 0 #2185d0,1px 0 0 #2185d0}.ui.blue.rating .icon.selected,.ui.blue.rating .icon.selected.active,.ui.blue.rating .icon.selected.partial.active{background:inherit;color:#21b8ff;text-shadow:0 -1px 0 #1678c2,-1px 0 0 #1678c2,0 1px 0 #1678c2,1px 0 0 #1678c2;-webkit-text-stroke:unset;background-clip:unset}.ui.blue.rating .icon.partial.active{background:-webkit-gradient(linear,left top,right top,from(#54c8ff),to(rgba(0,0,0,.15)));background:-webkit-linear-gradient(left,#54c8ff 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);background:linear-gradient(to right,#54c8ff 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);-webkit-text-stroke:#2185d0 .78px}.ui.violet.rating .active.icon{color:#a291fb;text-shadow:0 -1px 0 #6435c9,-1px 0 0 #6435c9,0 1px 0 #6435c9,1px 0 0 #6435c9}.ui.violet.rating .icon.selected,.ui.violet.rating .icon.selected.active,.ui.violet.rating .icon.selected.partial.active{background:inherit;color:#745aff;text-shadow:0 -1px 0 #5829bb,-1px 0 0 #5829bb,0 1px 0 #5829bb,1px 0 0 #5829bb;-webkit-text-stroke:unset;background-clip:unset}.ui.violet.rating .icon.partial.active{background:-webkit-gradient(linear,left top,right top,from(#a291fb),to(rgba(0,0,0,.15)));background:-webkit-linear-gradient(left,#a291fb 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);background:linear-gradient(to right,#a291fb 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);-webkit-text-stroke:#6435c9 .78px}.ui.purple.rating .active.icon{color:#dc73ff;text-shadow:0 -1px 0 #a333c8,-1px 0 0 #a333c8,0 1px 0 #a333c8,1px 0 0 #a333c8}.ui.purple.rating .icon.selected,.ui.purple.rating .icon.selected.active,.ui.purple.rating .icon.selected.partial.active{background:inherit;color:#cf40ff;text-shadow:0 -1px 0 #9627ba,-1px 0 0 #9627ba,0 1px 0 #9627ba,1px 0 0 #9627ba;-webkit-text-stroke:unset;background-clip:unset}.ui.purple.rating .icon.partial.active{background:-webkit-gradient(linear,left top,right top,from(#dc73ff),to(rgba(0,0,0,.15)));background:-webkit-linear-gradient(left,#dc73ff 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);background:linear-gradient(to right,#dc73ff 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);-webkit-text-stroke:#a333c8 .78px}.ui.pink.rating .active.icon{color:#ff8edf;text-shadow:0 -1px 0 #e03997,-1px 0 0 #e03997,0 1px 0 #e03997,1px 0 0 #e03997}.ui.pink.rating .icon.selected,.ui.pink.rating .icon.selected.active,.ui.pink.rating .icon.selected.partial.active{background:inherit;color:#ff5bd1;text-shadow:0 -1px 0 #e61a8d,-1px 0 0 #e61a8d,0 1px 0 #e61a8d,1px 0 0 #e61a8d;-webkit-text-stroke:unset;background-clip:unset}.ui.pink.rating .icon.partial.active{background:-webkit-gradient(linear,left top,right top,from(#ff8edf),to(rgba(0,0,0,.15)));background:-webkit-linear-gradient(left,#ff8edf 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);background:linear-gradient(to right,#ff8edf 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);-webkit-text-stroke:#e03997 .78px}.ui.brown.rating .active.icon{color:#d67c1c;text-shadow:0 -1px 0 #a5673f,-1px 0 0 #a5673f,0 1px 0 #a5673f,1px 0 0 #a5673f}.ui.brown.rating .icon.selected,.ui.brown.rating .icon.selected.active,.ui.brown.rating .icon.selected.partial.active{background:inherit;color:#b0620f;text-shadow:0 -1px 0 #975b33,-1px 0 0 #975b33,0 1px 0 #975b33,1px 0 0 #975b33;-webkit-text-stroke:unset;background-clip:unset}.ui.brown.rating .icon.partial.active{background:-webkit-gradient(linear,left top,right top,from(#d67c1c),to(rgba(0,0,0,.15)));background:-webkit-linear-gradient(left,#d67c1c 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);background:linear-gradient(to right,#d67c1c 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);-webkit-text-stroke:#a5673f .78px}.ui.grey.rating .active.icon{color:#dcddde;text-shadow:0 -1px 0 #767676,-1px 0 0 #767676,0 1px 0 #767676,1px 0 0 #767676}.ui.grey.rating .icon.selected,.ui.grey.rating .icon.selected.active,.ui.grey.rating .icon.selected.partial.active{background:inherit;color:#c2c4c5;text-shadow:0 -1px 0 #838383,-1px 0 0 #838383,0 1px 0 #838383,1px 0 0 #838383;-webkit-text-stroke:unset;background-clip:unset}.ui.grey.rating .icon.partial.active{background:-webkit-gradient(linear,left top,right top,from(#dcddde),to(rgba(0,0,0,.15)));background:-webkit-linear-gradient(left,#dcddde 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);background:linear-gradient(to right,#dcddde 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);-webkit-text-stroke:#767676 .78px}.ui.black.rating .active.icon{color:#545454;text-shadow:0 -1px 0 #1b1c1d,-1px 0 0 #1b1c1d,0 1px 0 #1b1c1d,1px 0 0 #1b1c1d}.ui.black.rating .icon.selected,.ui.black.rating .icon.selected.active,.ui.black.rating .icon.selected.partial.active{background:inherit;color:#000;text-shadow:0 -1px 0 #27292a,-1px 0 0 #27292a,0 1px 0 #27292a,1px 0 0 #27292a;-webkit-text-stroke:unset;background-clip:unset}.ui.black.rating .icon.partial.active{background:-webkit-gradient(linear,left top,right top,from(#545454),to(rgba(0,0,0,.15)));background:-webkit-linear-gradient(left,#545454 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);background:linear-gradient(to right,#545454 0 var(--full),rgba(0,0,0,.15) var(--full) 100%);-webkit-text-stroke:#1b1c1d .78px}.ui.disabled.rating .icon{cursor:default;pointer-events:none}.ui.rating.selected .active.icon{opacity:1}.ui.rating .icon.selected,.ui.rating.selected .icon.selected{opacity:1}.ui.rating{font-size:1rem}.ui.mini.rating{font-size:.78571429rem}.ui.tiny.rating{font-size:.85714286rem}.ui.small.rating{font-size:.92857143rem}.ui.large.rating{font-size:1.14285714rem}.ui.big.rating{font-size:1.28571429rem}.ui.huge.rating{font-size:1.42857143rem}.ui.massive.rating{font-size:2rem}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* # Fomantic UI - 2.
|
|
2
|
+
* # Fomantic UI - 2.9.0
|
|
3
3
|
* https://github.com/fomantic/Fomantic-UI
|
|
4
4
|
* http://fomantic-ui.com/
|
|
5
5
|
*
|
|
6
|
-
* Copyright
|
|
6
|
+
* Copyright 2022 Contributors
|
|
7
7
|
* Released under the MIT license
|
|
8
8
|
* http://opensource.org/licenses/MIT
|
|
9
9
|
*
|
|
10
10
|
*/
|
|
11
|
-
!function(A,e,
|
|
11
|
+
!function(A,e,T){"use strict";A.isFunction=A.isFunction||function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},e=void 0!==e&&e.Math==Math?e:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),A.fn.rating=function(f){var v,p=A(this),b=p.selector||"",h=(new Date).getTime(),y=[],C=f,x="string"==typeof C,R=[].slice.call(arguments,1);return p.each(function(){var e,a=A.isPlainObject(f)?A.extend(!0,{},A.fn.rating.settings,f):A.extend({},A.fn.rating.settings),n=a.namespace,o=a.className,t=a.metadata,i=a.selector,r=a.cssVars,s="."+n,l="module-"+n,c=this,u=A(this).data(l),d=A(this),g=d.find(i.icon),m={initialize:function(){m.verbose("Initializing rating module",a),0===g.length&&m.setup.layout(),a.interactive&&!m.is.disabled()?m.enable():m.disable(),m.set.initialLoad(),m.set.rating(m.get.initialRating()),m.remove.initialLoad(),m.instantiate()},instantiate:function(){m.verbose("Instantiating module",a),u=m,d.data(l,m)},destroy:function(){m.verbose("Destroying previous instance",u),m.remove.events(),d.removeData(l)},refresh:function(){g=d.find(i.icon)},setup:{layout:function(){var e=m.get.maxRating(),n=m.get.icon(),e=A.fn.rating.settings.templates.icon(e,n);m.debug("Generating icon html dynamically"),d.html(e),m.refresh()}},event:{mouseenter:function(){var e=A(this);e.nextAll().removeClass(o.selected),d.addClass(o.selected),e.addClass(o.selected).prevAll().addClass(o.selected)},mouseleave:function(){d.removeClass(o.selected),g.removeClass(o.selected)},click:function(){var e=A(this),n=m.get.rating(),e=g.index(e)+1;("auto"==a.clearable?1===g.length:a.clearable)&&n==e?m.clearRating():m.set.rating(e)}},clearRating:function(){m.debug("Clearing current rating"),m.set.rating(0)},bind:{events:function(){m.verbose("Binding events"),d.on("mouseenter"+s,i.icon,m.event.mouseenter).on("mouseleave"+s,i.icon,m.event.mouseleave).on("click"+s,i.icon,m.event.click)}},remove:{events:function(){m.verbose("Removing events"),d.off(s)},initialLoad:function(){e=!1}},enable:function(){m.debug("Setting rating to interactive mode"),m.bind.events(),d.removeClass(o.disabled)},disable:function(){m.debug("Setting rating to read-only mode"),m.remove.events(),d.addClass(o.disabled)},is:{initialLoad:function(){return e},disabled:function(){return d.hasClass(o.disabled)}},get:{icon:function(){var e=d.data(t.icon);return e&&d.removeData(t.icon),e||a.icon},initialRating:function(){return d.data(t.rating)!==T?(d.removeData(t.rating),d.data(t.rating)):a.initialRating},maxRating:function(){return d.data(t.maxRating)!==T?(d.removeData(t.maxRating),d.data(t.maxRating)):a.maxRating},rating:function(){var e=g.filter("."+o.active).length;return m.verbose("Current rating retrieved",e),e}},set:{rating:function(e){var n=Math.floor(0<=e-1?e-1:0),n=g.eq(n),t=e<=1?n:n.next(),i=e%1*100;d.removeClass(o.selected),g.removeClass(o.selected).removeClass(o.active).removeClass(o.partiallyActive),0<e&&(m.verbose("Setting current rating to",e),n.prevAll().addBack().addClass(o.active),n.next()&&e%1!=0&&(t.addClass(o.partiallyActive).addClass(o.active),t.css(r.filledCustomPropName,i+"%"),"transparent"===t.css("backgroundColor")&&t.removeClass(o.partiallyActive).removeClass(o.active))),m.is.initialLoad()||a.onRate.call(c,e)},initialLoad:function(){e=!0}},setting:function(e,n){if(m.debug("Changing setting",e,n),A.isPlainObject(e))A.extend(!0,a,e);else{if(n===T)return a[e];A.isPlainObject(a[e])?A.extend(!0,a[e],n):a[e]=n}},internal:function(e,n){if(A.isPlainObject(e))A.extend(!0,m,e);else{if(n===T)return m[e];m[e]=n}},debug:function(){!a.silent&&a.debug&&(a.performance?m.performance.log(arguments):(m.debug=Function.prototype.bind.call(console.info,console,a.name+":"),m.debug.apply(console,arguments)))},verbose:function(){!a.silent&&a.verbose&&a.debug&&(a.performance?m.performance.log(arguments):(m.verbose=Function.prototype.bind.call(console.info,console,a.name+":"),m.verbose.apply(console,arguments)))},error:function(){a.silent||(m.error=Function.prototype.bind.call(console.error,console,a.name+":"),m.error.apply(console,arguments))},performance:{log:function(e){var n,t;a.performance&&(t=(n=(new Date).getTime())-(h||n),h=n,y.push({Name:e[0],Arguments:[].slice.call(e,1)||"",Element:c,"Execution Time":t})),clearTimeout(m.performance.timer),m.performance.timer=setTimeout(m.performance.display,500)},display:function(){var e=a.name+":",t=0;h=!1,clearTimeout(m.performance.timer),A.each(y,function(e,n){t+=n["Execution Time"]}),e+=" "+t+"ms",b&&(e+=" '"+b+"'"),1<p.length&&(e+=" ("+p.length+")"),(console.group!==T||console.table!==T)&&0<y.length&&(console.groupCollapsed(e),console.table?console.table(y):A.each(y,function(e,n){console.log(n.Name+": "+n["Execution Time"]+"ms")}),console.groupEnd()),y=[]}},invoke:function(i,e,n){var a,o,t,r=u;return e=e||R,n=n||c,"string"==typeof i&&r!==T&&(i=i.split(/[\. ]/),a=i.length-1,A.each(i,function(e,n){var t=e!=a?n+i[e+1].charAt(0).toUpperCase()+i[e+1].slice(1):i;if(A.isPlainObject(r[t])&&e!=a)r=r[t];else{if(r[t]!==T)return o=r[t],!1;{if(!A.isPlainObject(r[n])||e==a)return r[n]!==T&&(o=r[n]),!1;r=r[n]}}})),A.isFunction(o)?t=o.apply(n,e):o!==T&&(t=o),Array.isArray(v)?v.push(t):v!==T?v=[v,t]:t!==T&&(v=t),o}};x?(u===T&&m.initialize(),m.invoke(C)):(u!==T&&u.invoke("destroy"),m.initialize())}),v!==T?v:this},A.fn.rating.settings={name:"Rating",namespace:"rating",icon:"star",silent:!1,debug:!1,verbose:!1,performance:!0,initialRating:0,interactive:!0,maxRating:4,clearable:"auto",fireOnInit:!1,onRate:function(e){},error:{method:"The method you called is not defined",noMaximum:"No maximum rating specified. Cannot generate HTML automatically"},metadata:{rating:"rating",maxRating:"maxRating",icon:"icon"},className:{active:"active",disabled:"disabled",selected:"selected",loading:"loading",partiallyActive:"partial"},cssVars:{filledCustomPropName:"--full"},selector:{icon:".icon"},templates:{deQuote:function(e,n){return String(e).replace(/"/g,n?""":"")},icon:function(e,n){for(var t=1,i="",a=A.fn.rating.settings.templates.deQuote;t<=e;)i+='<i class="'+a(n)+' icon"></i>',t++;return i}}}}(jQuery,window,void document);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* # Fomantic-UI 2.
|
|
2
|
+
* # Fomantic-UI 2.9.0 - Reset
|
|
3
3
|
* http://github.com/fomantic/Fomantic-UI/
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
|
|
17
17
|
/* Border-Box */
|
|
18
18
|
*,
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
*::before,
|
|
20
|
+
*::after {
|
|
21
21
|
-webkit-box-sizing: inherit;
|
|
22
22
|
box-sizing: inherit;
|
|
23
23
|
}
|
|
@@ -126,7 +126,8 @@ abbr[title] {
|
|
|
126
126
|
text-decoration: underline;
|
|
127
127
|
|
|
128
128
|
/* 2 */
|
|
129
|
-
text-decoration: underline dotted;
|
|
129
|
+
-webkit-text-decoration: underline dotted;
|
|
130
|
+
text-decoration: underline dotted;
|
|
130
131
|
|
|
131
132
|
/* 2 */
|
|
132
133
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* # Fomantic-UI 2.
|
|
2
|
+
* # Fomantic-UI 2.9.0 - Reset
|
|
3
3
|
* http://github.com/fomantic/Fomantic-UI/
|
|
4
4
|
*
|
|
5
5
|
*
|
|
6
6
|
* Released under the MIT license
|
|
7
7
|
* http://opensource.org/licenses/MIT
|
|
8
8
|
*
|
|
9
|
-
|
|
9
|
+
*/*,::after,::before{-webkit-box-sizing:inherit;box-sizing:inherit}html{-webkit-box-sizing:border-box;box-sizing:border-box}input[type=email],input[type=password],input[type=search],input[type=text]{-webkit-appearance:none;-moz-appearance:none}/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-webkit-text-size-adjust:100%}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{-webkit-box-sizing:content-box;box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* # Fomantic-UI 2.
|
|
2
|
+
* # Fomantic-UI 2.9.0 - Search
|
|
3
3
|
* http://github.com/fomantic/Fomantic-UI/
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
}
|
|
122
122
|
.ui.search > .results .result .title {
|
|
123
123
|
margin: -0.14285714em 0 0;
|
|
124
|
-
font-family: 'Lato',
|
|
124
|
+
font-family: 'Lato', system-ui, -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
125
125
|
font-weight: bold;
|
|
126
126
|
font-size: 1em;
|
|
127
127
|
color: rgba(0, 0, 0, 0.85);
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
padding: 1em 1em;
|
|
145
145
|
}
|
|
146
146
|
.ui.search > .results > .message .header {
|
|
147
|
-
font-family: 'Lato',
|
|
147
|
+
font-family: 'Lato', system-ui, -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
148
148
|
font-size: 1rem;
|
|
149
149
|
font-weight: bold;
|
|
150
150
|
color: rgba(0, 0, 0, 0.87);
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
Loading
|
|
187
187
|
---------------------*/
|
|
188
188
|
|
|
189
|
-
.ui.loading.search .input > i.icon
|
|
189
|
+
.ui.loading.search .input > i.icon::before {
|
|
190
190
|
position: absolute;
|
|
191
191
|
content: '';
|
|
192
192
|
top: 50%;
|
|
@@ -197,7 +197,7 @@
|
|
|
197
197
|
border-radius: 500rem;
|
|
198
198
|
border: 0.2em solid rgba(0, 0, 0, 0.1);
|
|
199
199
|
}
|
|
200
|
-
.ui.loading.search .input > i.icon
|
|
200
|
+
.ui.loading.search .input > i.icon::after {
|
|
201
201
|
position: absolute;
|
|
202
202
|
content: '';
|
|
203
203
|
top: 50%;
|
|
@@ -343,7 +343,7 @@
|
|
|
343
343
|
width: 100px;
|
|
344
344
|
white-space: nowrap;
|
|
345
345
|
background: transparent;
|
|
346
|
-
font-family: 'Lato',
|
|
346
|
+
font-family: 'Lato', system-ui, -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
347
347
|
font-size: 1em;
|
|
348
348
|
padding: 0.4em 1em;
|
|
349
349
|
font-weight: bold;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* # Fomantic-UI 2.
|
|
2
|
+
* # Fomantic-UI 2.9.0 - Search
|
|
3
3
|
* http://github.com/fomantic/Fomantic-UI/
|
|
4
4
|
*
|
|
5
5
|
*
|
|
@@ -262,7 +262,7 @@ $.fn.search = function(parameters) {
|
|
|
262
262
|
|
|
263
263
|
resultsScrollTop = $results.scrollTop();
|
|
264
264
|
resultsHeight = $results.height();
|
|
265
|
-
|
|
265
|
+
|
|
266
266
|
if (elTop < 0) {
|
|
267
267
|
$results.scrollTop(resultsScrollTop + elTop);
|
|
268
268
|
}
|
|
@@ -293,8 +293,13 @@ $.fn.search = function(parameters) {
|
|
|
293
293
|
;
|
|
294
294
|
// search shortcuts
|
|
295
295
|
if(keyCode == keys.escape) {
|
|
296
|
-
module.
|
|
297
|
-
|
|
296
|
+
if(!module.is.visible()) {
|
|
297
|
+
module.verbose('Escape key pressed, blurring search field');
|
|
298
|
+
$prompt.blur();
|
|
299
|
+
} else {
|
|
300
|
+
module.hideResults();
|
|
301
|
+
}
|
|
302
|
+
event.stopPropagation();
|
|
298
303
|
resultsDismissed = true;
|
|
299
304
|
}
|
|
300
305
|
if( module.is.visible() ) {
|
|
@@ -367,20 +372,36 @@ $.fn.search = function(parameters) {
|
|
|
367
372
|
urlData : {
|
|
368
373
|
query : searchTerm
|
|
369
374
|
},
|
|
370
|
-
|
|
375
|
+
},
|
|
376
|
+
apiCallbacks = {
|
|
377
|
+
onSuccess : function(response, $module, xhr) {
|
|
371
378
|
module.parse.response.call(element, response, searchTerm);
|
|
372
379
|
callback();
|
|
380
|
+
if(settings.apiSettings && typeof settings.apiSettings.onSuccess === 'function') {
|
|
381
|
+
settings.apiSettings.onSuccess.call(this, response, $module, xhr);
|
|
382
|
+
}
|
|
373
383
|
},
|
|
374
|
-
onFailure : function() {
|
|
384
|
+
onFailure : function(response, $module, xhr) {
|
|
375
385
|
module.displayMessage(error.serverError);
|
|
376
386
|
callback();
|
|
387
|
+
if(settings.apiSettings && typeof settings.apiSettings.onFailure === 'function') {
|
|
388
|
+
settings.apiSettings.onFailure.call(this, response, $module, xhr);
|
|
389
|
+
}
|
|
377
390
|
},
|
|
378
|
-
onAbort : function(
|
|
391
|
+
onAbort : function(status, $module, xhr) {
|
|
392
|
+
if(settings.apiSettings && typeof settings.apiSettings.onAbort === 'function') {
|
|
393
|
+
settings.apiSettings.onAbort.call(this, status, $module, xhr);
|
|
394
|
+
}
|
|
379
395
|
},
|
|
380
|
-
onError : module
|
|
396
|
+
onError : function(errorMessage, $module, xhr){
|
|
397
|
+
module.error();
|
|
398
|
+
if(settings.apiSettings && typeof settings.apiSettings.onError === 'function') {
|
|
399
|
+
settings.apiSettings.onError.call(this, errorMessage, $module, xhr);
|
|
400
|
+
}
|
|
401
|
+
}
|
|
381
402
|
}
|
|
382
403
|
;
|
|
383
|
-
$.extend(true, apiSettings, settings.apiSettings);
|
|
404
|
+
$.extend(true, apiSettings, settings.apiSettings, apiCallbacks);
|
|
384
405
|
module.verbose('Setting up API request', apiSettings);
|
|
385
406
|
$module.api(apiSettings);
|
|
386
407
|
}
|
|
@@ -403,7 +424,7 @@ $.fn.search = function(parameters) {
|
|
|
403
424
|
return $results.hasClass(className.animating);
|
|
404
425
|
},
|
|
405
426
|
chrome: function() {
|
|
406
|
-
return !!window.chrome &&
|
|
427
|
+
return !!window.chrome && !window.StyleMedia;
|
|
407
428
|
},
|
|
408
429
|
hidden: function() {
|
|
409
430
|
return $results.hasClass(className.hidden);
|
|
@@ -455,10 +476,7 @@ $.fn.search = function(parameters) {
|
|
|
455
476
|
return $prompt.val();
|
|
456
477
|
},
|
|
457
478
|
results: function() {
|
|
458
|
-
|
|
459
|
-
results = $module.data(metadata.results)
|
|
460
|
-
;
|
|
461
|
-
return results;
|
|
479
|
+
return $module.data(metadata.results);
|
|
462
480
|
},
|
|
463
481
|
result: function(value, results) {
|
|
464
482
|
var
|
|
@@ -514,8 +532,8 @@ $.fn.search = function(parameters) {
|
|
|
514
532
|
},
|
|
515
533
|
type: function(type) {
|
|
516
534
|
type = type || settings.type;
|
|
517
|
-
if(
|
|
518
|
-
$module.addClass(
|
|
535
|
+
if(className[type]) {
|
|
536
|
+
$module.addClass(className[type]);
|
|
519
537
|
}
|
|
520
538
|
},
|
|
521
539
|
buttonPressed: function() {
|
|
@@ -662,10 +680,10 @@ $.fn.search = function(parameters) {
|
|
|
662
680
|
;
|
|
663
681
|
if(fieldExists) {
|
|
664
682
|
var text;
|
|
665
|
-
if (typeof content[field] === 'string'){
|
|
683
|
+
if (typeof content[field] === 'string'){
|
|
666
684
|
text = module.remove.diacritics(content[field]);
|
|
667
685
|
} else {
|
|
668
|
-
text = content[field].toString();
|
|
686
|
+
text = content[field].toString();
|
|
669
687
|
}
|
|
670
688
|
if( text.search(matchRegExp) !== -1) {
|
|
671
689
|
// content starts with value (first in results)
|
|
@@ -675,7 +693,7 @@ $.fn.search = function(parameters) {
|
|
|
675
693
|
// content fuzzy matches (last in results)
|
|
676
694
|
addResult(exactResults, content);
|
|
677
695
|
}
|
|
678
|
-
else if(settings.fullTextSearch
|
|
696
|
+
else if(settings.fullTextSearch === true && module.fuzzySearch(searchTerm, text) ) {
|
|
679
697
|
// content fuzzy matches (last in results)
|
|
680
698
|
addResult(fuzzyResults, content);
|
|
681
699
|
}
|
|
@@ -977,6 +995,7 @@ $.fn.search = function(parameters) {
|
|
|
977
995
|
animation : settings.transition + ' in',
|
|
978
996
|
debug : settings.debug,
|
|
979
997
|
verbose : settings.verbose,
|
|
998
|
+
silent : settings.silent,
|
|
980
999
|
duration : settings.duration,
|
|
981
1000
|
onShow : function() {
|
|
982
1001
|
var $firstResult = $module.find(selector.result).eq(0);
|
|
@@ -1012,6 +1031,7 @@ $.fn.search = function(parameters) {
|
|
|
1012
1031
|
animation : settings.transition + ' out',
|
|
1013
1032
|
debug : settings.debug,
|
|
1014
1033
|
verbose : settings.verbose,
|
|
1034
|
+
silent : settings.silent,
|
|
1015
1035
|
duration : settings.duration,
|
|
1016
1036
|
onComplete : function() {
|
|
1017
1037
|
callback();
|
|
@@ -1183,7 +1203,7 @@ $.fn.search = function(parameters) {
|
|
|
1183
1203
|
response
|
|
1184
1204
|
;
|
|
1185
1205
|
passedArguments = passedArguments || queryArguments;
|
|
1186
|
-
context =
|
|
1206
|
+
context = context || element;
|
|
1187
1207
|
if(typeof query == 'string' && object !== undefined) {
|
|
1188
1208
|
query = query.split(/[\. ]/);
|
|
1189
1209
|
maxDepth = query.length - 1;
|
|
@@ -1334,6 +1354,7 @@ $.fn.search.settings = {
|
|
|
1334
1354
|
className: {
|
|
1335
1355
|
animating : 'animating',
|
|
1336
1356
|
active : 'active',
|
|
1357
|
+
category : 'category',
|
|
1337
1358
|
empty : 'empty',
|
|
1338
1359
|
focus : 'focus',
|
|
1339
1360
|
hidden : 'hidden',
|
|
@@ -1413,7 +1434,7 @@ $.fn.search.settings = {
|
|
|
1413
1434
|
}
|
|
1414
1435
|
;
|
|
1415
1436
|
if(shouldEscape.test(string)) {
|
|
1416
|
-
string = string.replace(/&(?![a-z0-9#]{1,
|
|
1437
|
+
string = string.replace(/&(?![a-z0-9#]{1,12};)/gi, "&");
|
|
1417
1438
|
return string.replace(badChars, escapedChar);
|
|
1418
1439
|
}
|
|
1419
1440
|
return string;
|
|
@@ -1564,4 +1585,10 @@ $.fn.search.settings = {
|
|
|
1564
1585
|
}
|
|
1565
1586
|
};
|
|
1566
1587
|
|
|
1588
|
+
$.extend($.easing, {
|
|
1589
|
+
easeOutExpo: function(x) {
|
|
1590
|
+
return x === 1 ? 1 : 1 - Math.pow(2, -10 * x);
|
|
1591
|
+
}
|
|
1592
|
+
});
|
|
1593
|
+
|
|
1567
1594
|
})( jQuery, window, document );
|