fomantic-ui-sass 2.6.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (165) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +27 -0
  3. data/.rspec +1 -0
  4. data/.travis.yml +5 -0
  5. data/CHANGELOG.md +370 -0
  6. data/Gemfile +4 -0
  7. data/LICENSE.txt +22 -0
  8. data/README.md +177 -0
  9. data/Rakefile +8 -0
  10. data/app/assets/fonts/semantic-ui/brand-icons.eot +0 -0
  11. data/app/assets/fonts/semantic-ui/brand-icons.svg +1008 -0
  12. data/app/assets/fonts/semantic-ui/brand-icons.ttf +0 -0
  13. data/app/assets/fonts/semantic-ui/brand-icons.woff +0 -0
  14. data/app/assets/fonts/semantic-ui/brand-icons.woff2 +0 -0
  15. data/app/assets/fonts/semantic-ui/icons.eot +0 -0
  16. data/app/assets/fonts/semantic-ui/icons.otf +0 -0
  17. data/app/assets/fonts/semantic-ui/icons.svg +1518 -0
  18. data/app/assets/fonts/semantic-ui/icons.ttf +0 -0
  19. data/app/assets/fonts/semantic-ui/icons.woff +0 -0
  20. data/app/assets/fonts/semantic-ui/icons.woff2 +0 -0
  21. data/app/assets/fonts/semantic-ui/outline-icons.eot +0 -0
  22. data/app/assets/fonts/semantic-ui/outline-icons.svg +366 -0
  23. data/app/assets/fonts/semantic-ui/outline-icons.ttf +0 -0
  24. data/app/assets/fonts/semantic-ui/outline-icons.woff +0 -0
  25. data/app/assets/fonts/semantic-ui/outline-icons.woff2 +0 -0
  26. data/app/assets/images/semantic-ui/flags.png +0 -0
  27. data/app/assets/javascripts/semantic-ui.js +27 -0
  28. data/app/assets/javascripts/semantic-ui/accordion.js +613 -0
  29. data/app/assets/javascripts/semantic-ui/api.js +1167 -0
  30. data/app/assets/javascripts/semantic-ui/calendar.js +1476 -0
  31. data/app/assets/javascripts/semantic-ui/checkbox.js +828 -0
  32. data/app/assets/javascripts/semantic-ui/colorize.js +280 -0
  33. data/app/assets/javascripts/semantic-ui/dimmer.js +735 -0
  34. data/app/assets/javascripts/semantic-ui/dropdown.js +4030 -0
  35. data/app/assets/javascripts/semantic-ui/embed.js +706 -0
  36. data/app/assets/javascripts/semantic-ui/form.js +1707 -0
  37. data/app/assets/javascripts/semantic-ui/modal.js +1090 -0
  38. data/app/assets/javascripts/semantic-ui/nag.js +507 -0
  39. data/app/assets/javascripts/semantic-ui/popup.js +1532 -0
  40. data/app/assets/javascripts/semantic-ui/progress.js +923 -0
  41. data/app/assets/javascripts/semantic-ui/range.js +278 -0
  42. data/app/assets/javascripts/semantic-ui/rating.js +511 -0
  43. data/app/assets/javascripts/semantic-ui/search.js +1515 -0
  44. data/app/assets/javascripts/semantic-ui/shape.js +921 -0
  45. data/app/assets/javascripts/semantic-ui/sidebar.js +1033 -0
  46. data/app/assets/javascripts/semantic-ui/site.js +490 -0
  47. data/app/assets/javascripts/semantic-ui/state.js +708 -0
  48. data/app/assets/javascripts/semantic-ui/sticky.js +959 -0
  49. data/app/assets/javascripts/semantic-ui/tab.js +952 -0
  50. data/app/assets/javascripts/semantic-ui/toast.js +592 -0
  51. data/app/assets/javascripts/semantic-ui/transition.js +1106 -0
  52. data/app/assets/javascripts/semantic-ui/video.js +532 -0
  53. data/app/assets/javascripts/semantic-ui/visibility.js +1311 -0
  54. data/app/assets/javascripts/semantic-ui/visit.js +525 -0
  55. data/app/assets/stylesheets/semantic-ui.scss +5 -0
  56. data/app/assets/stylesheets/semantic-ui/collections/_all.scss +6 -0
  57. data/app/assets/stylesheets/semantic-ui/collections/_breadcrumb.scss +124 -0
  58. data/app/assets/stylesheets/semantic-ui/collections/_form.scss +1158 -0
  59. data/app/assets/stylesheets/semantic-ui/collections/_grid.scss +2093 -0
  60. data/app/assets/stylesheets/semantic-ui/collections/_menu.scss +2193 -0
  61. data/app/assets/stylesheets/semantic-ui/collections/_message.scss +606 -0
  62. data/app/assets/stylesheets/semantic-ui/collections/_table.scss +1117 -0
  63. data/app/assets/stylesheets/semantic-ui/elements/_all.scss +16 -0
  64. data/app/assets/stylesheets/semantic-ui/elements/_button.scss +4530 -0
  65. data/app/assets/stylesheets/semantic-ui/elements/_container.scss +145 -0
  66. data/app/assets/stylesheets/semantic-ui/elements/_divider.scss +259 -0
  67. data/app/assets/stylesheets/semantic-ui/elements/_flag.scss +1036 -0
  68. data/app/assets/stylesheets/semantic-ui/elements/_header.scss +762 -0
  69. data/app/assets/stylesheets/semantic-ui/elements/_icon.scss +6330 -0
  70. data/app/assets/stylesheets/semantic-ui/elements/_image.scss +310 -0
  71. data/app/assets/stylesheets/semantic-ui/elements/_input.scss +519 -0
  72. data/app/assets/stylesheets/semantic-ui/elements/_label.scss +1395 -0
  73. data/app/assets/stylesheets/semantic-ui/elements/_list.scss +959 -0
  74. data/app/assets/stylesheets/semantic-ui/elements/_loader.scss +458 -0
  75. data/app/assets/stylesheets/semantic-ui/elements/_placeholder.scss +242 -0
  76. data/app/assets/stylesheets/semantic-ui/elements/_rail.scss +152 -0
  77. data/app/assets/stylesheets/semantic-ui/elements/_reveal.scss +295 -0
  78. data/app/assets/stylesheets/semantic-ui/elements/_segment.scss +884 -0
  79. data/app/assets/stylesheets/semantic-ui/elements/_step.scss +675 -0
  80. data/app/assets/stylesheets/semantic-ui/globals/_all.scss +3 -0
  81. data/app/assets/stylesheets/semantic-ui/globals/_reset.scss +485 -0
  82. data/app/assets/stylesheets/semantic-ui/globals/_site.scss +206 -0
  83. data/app/assets/stylesheets/semantic-ui/globals/_variables.scss +4 -0
  84. data/app/assets/stylesheets/semantic-ui/modules/_accordion.scss +247 -0
  85. data/app/assets/stylesheets/semantic-ui/modules/_all.scss +20 -0
  86. data/app/assets/stylesheets/semantic-ui/modules/_calendar.scss +165 -0
  87. data/app/assets/stylesheets/semantic-ui/modules/_checkbox.scss +718 -0
  88. data/app/assets/stylesheets/semantic-ui/modules/_dimmer.scss +464 -0
  89. data/app/assets/stylesheets/semantic-ui/modules/_dropdown.scss +1745 -0
  90. data/app/assets/stylesheets/semantic-ui/modules/_embed.scss +165 -0
  91. data/app/assets/stylesheets/semantic-ui/modules/_modal.scss +646 -0
  92. data/app/assets/stylesheets/semantic-ui/modules/_nag.scss +148 -0
  93. data/app/assets/stylesheets/semantic-ui/modules/_popup.scss +789 -0
  94. data/app/assets/stylesheets/semantic-ui/modules/_progress.scss +523 -0
  95. data/app/assets/stylesheets/semantic-ui/modules/_range.scss +192 -0
  96. data/app/assets/stylesheets/semantic-ui/modules/_rating.scss +263 -0
  97. data/app/assets/stylesheets/semantic-ui/modules/_search.scss +445 -0
  98. data/app/assets/stylesheets/semantic-ui/modules/_shape.scss +154 -0
  99. data/app/assets/stylesheets/semantic-ui/modules/_sidebar.scss +626 -0
  100. data/app/assets/stylesheets/semantic-ui/modules/_sticky.scss +78 -0
  101. data/app/assets/stylesheets/semantic-ui/modules/_tab.scss +92 -0
  102. data/app/assets/stylesheets/semantic-ui/modules/_toast.scss +291 -0
  103. data/app/assets/stylesheets/semantic-ui/modules/_transition.scss +2059 -0
  104. data/app/assets/stylesheets/semantic-ui/modules/_video.scss +125 -0
  105. data/app/assets/stylesheets/semantic-ui/views/_ad.scss +275 -0
  106. data/app/assets/stylesheets/semantic-ui/views/_all.scss +6 -0
  107. data/app/assets/stylesheets/semantic-ui/views/_card.scss +1124 -0
  108. data/app/assets/stylesheets/semantic-ui/views/_comment.scss +296 -0
  109. data/app/assets/stylesheets/semantic-ui/views/_feed.scss +314 -0
  110. data/app/assets/stylesheets/semantic-ui/views/_item.scss +555 -0
  111. data/app/assets/stylesheets/semantic-ui/views/_statistic.scss +583 -0
  112. data/app/helpers/semantic_breadcrumbs_helper.rb +10 -0
  113. data/app/helpers/semantic_flash_helper.rb +22 -0
  114. data/app/helpers/semantic_icon_helper.rb +8 -0
  115. data/app/views/semantic/_breadcrumbs.html.erb +12 -0
  116. data/fomantic-ui-sass.gemspec +31 -0
  117. data/lib/fomantic-ui-sass.rb +62 -0
  118. data/lib/fomantic/ui/sass/breadcrumbs.rb +41 -0
  119. data/lib/fomantic/ui/sass/engine.rb +23 -0
  120. data/lib/fomantic/ui/sass/version.rb +8 -0
  121. data/spec/dummy/README.rdoc +28 -0
  122. data/spec/dummy/Rakefile +6 -0
  123. data/spec/dummy/app/assets/images/.keep +0 -0
  124. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  125. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  126. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  127. data/spec/dummy/app/controllers/concerns/.keep +0 -0
  128. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  129. data/spec/dummy/app/mailers/.keep +0 -0
  130. data/spec/dummy/app/models/.keep +0 -0
  131. data/spec/dummy/app/models/concerns/.keep +0 -0
  132. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  133. data/spec/dummy/bin/bundle +3 -0
  134. data/spec/dummy/bin/rails +4 -0
  135. data/spec/dummy/bin/rake +4 -0
  136. data/spec/dummy/config.ru +4 -0
  137. data/spec/dummy/config/application.rb +28 -0
  138. data/spec/dummy/config/boot.rb +5 -0
  139. data/spec/dummy/config/environment.rb +5 -0
  140. data/spec/dummy/config/environments/development.rb +29 -0
  141. data/spec/dummy/config/environments/production.rb +80 -0
  142. data/spec/dummy/config/environments/test.rb +36 -0
  143. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  144. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  145. data/spec/dummy/config/initializers/inflections.rb +16 -0
  146. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  147. data/spec/dummy/config/initializers/secret_token.rb +12 -0
  148. data/spec/dummy/config/initializers/session_store.rb +3 -0
  149. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  150. data/spec/dummy/config/locales/en.yml +23 -0
  151. data/spec/dummy/config/routes.rb +2 -0
  152. data/spec/dummy/lib/assets/.keep +0 -0
  153. data/spec/dummy/log/.keep +0 -0
  154. data/spec/dummy/public/404.html +58 -0
  155. data/spec/dummy/public/422.html +58 -0
  156. data/spec/dummy/public/500.html +57 -0
  157. data/spec/dummy/public/favicon.ico +0 -0
  158. data/spec/helpers/semantic_breadcrumbs_helper_spec.rb +38 -0
  159. data/spec/helpers/semantic_flash_helper_spec.rb +36 -0
  160. data/spec/helpers/semantic_icon_helper_spec.rb +48 -0
  161. data/spec/spec_helper.rb +17 -0
  162. data/tasks/converter.rb +216 -0
  163. data/templates/project/manifest.rb +29 -0
  164. data/templates/project/styles.scss +1 -0
  165. metadata +390 -0
@@ -0,0 +1,490 @@
1
+ /*!
2
+ * # Semantic UI - Site
3
+ * http://github.com/semantic-org/semantic-ui/
4
+ *
5
+ *
6
+ * Released under the MIT license
7
+ * http://opensource.org/licenses/MIT
8
+ *
9
+ */
10
+
11
+ ;(function ($, window, document, undefined) {
12
+
13
+ $.site = $.fn.site = function(parameters) {
14
+ var
15
+ time = new Date().getTime(),
16
+ performance = [],
17
+
18
+ query = arguments[0],
19
+ methodInvoked = (typeof query == 'string'),
20
+ queryArguments = [].slice.call(arguments, 1),
21
+
22
+ settings = ( $.isPlainObject(parameters) )
23
+ ? $.extend(true, {}, $.site.settings, parameters)
24
+ : $.extend({}, $.site.settings),
25
+
26
+ namespace = settings.namespace,
27
+ error = settings.error,
28
+
29
+ eventNamespace = '.' + namespace,
30
+ moduleNamespace = 'module-' + namespace,
31
+
32
+ $document = $(document),
33
+ $module = $document,
34
+ element = this,
35
+ instance = $module.data(moduleNamespace),
36
+
37
+ module,
38
+ returnedValue
39
+ ;
40
+ module = {
41
+
42
+ initialize: function() {
43
+ module.instantiate();
44
+ },
45
+
46
+ instantiate: function() {
47
+ module.verbose('Storing instance of site', module);
48
+ instance = module;
49
+ $module
50
+ .data(moduleNamespace, module)
51
+ ;
52
+ },
53
+
54
+ normalize: function() {
55
+ module.fix.console();
56
+ module.fix.requestAnimationFrame();
57
+ },
58
+
59
+ fix: {
60
+ console: function() {
61
+ module.debug('Normalizing window.console');
62
+ if (console === undefined || console.log === undefined) {
63
+ module.verbose('Console not available, normalizing events');
64
+ module.disable.console();
65
+ }
66
+ if (typeof console.group == 'undefined' || typeof console.groupEnd == 'undefined' || typeof console.groupCollapsed == 'undefined') {
67
+ module.verbose('Console group not available, normalizing events');
68
+ window.console.group = function() {};
69
+ window.console.groupEnd = function() {};
70
+ window.console.groupCollapsed = function() {};
71
+ }
72
+ if (typeof console.markTimeline == 'undefined') {
73
+ module.verbose('Mark timeline not available, normalizing events');
74
+ window.console.markTimeline = function() {};
75
+ }
76
+ },
77
+ consoleClear: function() {
78
+ module.debug('Disabling programmatic console clearing');
79
+ window.console.clear = function() {};
80
+ },
81
+ requestAnimationFrame: function() {
82
+ module.debug('Normalizing requestAnimationFrame');
83
+ if(window.requestAnimationFrame === undefined) {
84
+ module.debug('RequestAnimationFrame not available, normalizing event');
85
+ window.requestAnimationFrame = window.requestAnimationFrame
86
+ || window.mozRequestAnimationFrame
87
+ || window.webkitRequestAnimationFrame
88
+ || window.msRequestAnimationFrame
89
+ || function(callback) { setTimeout(callback, 0); }
90
+ ;
91
+ }
92
+ }
93
+ },
94
+
95
+ moduleExists: function(name) {
96
+ return ($.fn[name] !== undefined && $.fn[name].settings !== undefined);
97
+ },
98
+
99
+ enabled: {
100
+ modules: function(modules) {
101
+ var
102
+ enabledModules = []
103
+ ;
104
+ modules = modules || settings.modules;
105
+ $.each(modules, function(index, name) {
106
+ if(module.moduleExists(name)) {
107
+ enabledModules.push(name);
108
+ }
109
+ });
110
+ return enabledModules;
111
+ }
112
+ },
113
+
114
+ disabled: {
115
+ modules: function(modules) {
116
+ var
117
+ disabledModules = []
118
+ ;
119
+ modules = modules || settings.modules;
120
+ $.each(modules, function(index, name) {
121
+ if(!module.moduleExists(name)) {
122
+ disabledModules.push(name);
123
+ }
124
+ });
125
+ return disabledModules;
126
+ }
127
+ },
128
+
129
+ change: {
130
+ setting: function(setting, value, modules, modifyExisting) {
131
+ modules = (typeof modules === 'string')
132
+ ? (modules === 'all')
133
+ ? settings.modules
134
+ : [modules]
135
+ : modules || settings.modules
136
+ ;
137
+ modifyExisting = (modifyExisting !== undefined)
138
+ ? modifyExisting
139
+ : true
140
+ ;
141
+ $.each(modules, function(index, name) {
142
+ var
143
+ namespace = (module.moduleExists(name))
144
+ ? $.fn[name].settings.namespace || false
145
+ : true,
146
+ $existingModules
147
+ ;
148
+ if(module.moduleExists(name)) {
149
+ module.verbose('Changing default setting', setting, value, name);
150
+ $.fn[name].settings[setting] = value;
151
+ if(modifyExisting && namespace) {
152
+ $existingModules = $(':data(module-' + namespace + ')');
153
+ if($existingModules.length > 0) {
154
+ module.verbose('Modifying existing settings', $existingModules);
155
+ $existingModules[name]('setting', setting, value);
156
+ }
157
+ }
158
+ }
159
+ });
160
+ },
161
+ settings: function(newSettings, modules, modifyExisting) {
162
+ modules = (typeof modules === 'string')
163
+ ? [modules]
164
+ : modules || settings.modules
165
+ ;
166
+ modifyExisting = (modifyExisting !== undefined)
167
+ ? modifyExisting
168
+ : true
169
+ ;
170
+ $.each(modules, function(index, name) {
171
+ var
172
+ $existingModules
173
+ ;
174
+ if(module.moduleExists(name)) {
175
+ module.verbose('Changing default setting', newSettings, name);
176
+ $.extend(true, $.fn[name].settings, newSettings);
177
+ if(modifyExisting && namespace) {
178
+ $existingModules = $(':data(module-' + namespace + ')');
179
+ if($existingModules.length > 0) {
180
+ module.verbose('Modifying existing settings', $existingModules);
181
+ $existingModules[name]('setting', newSettings);
182
+ }
183
+ }
184
+ }
185
+ });
186
+ }
187
+ },
188
+
189
+ enable: {
190
+ console: function() {
191
+ module.console(true);
192
+ },
193
+ debug: function(modules, modifyExisting) {
194
+ modules = modules || settings.modules;
195
+ module.debug('Enabling debug for modules', modules);
196
+ module.change.setting('debug', true, modules, modifyExisting);
197
+ },
198
+ verbose: function(modules, modifyExisting) {
199
+ modules = modules || settings.modules;
200
+ module.debug('Enabling verbose debug for modules', modules);
201
+ module.change.setting('verbose', true, modules, modifyExisting);
202
+ }
203
+ },
204
+ disable: {
205
+ console: function() {
206
+ module.console(false);
207
+ },
208
+ debug: function(modules, modifyExisting) {
209
+ modules = modules || settings.modules;
210
+ module.debug('Disabling debug for modules', modules);
211
+ module.change.setting('debug', false, modules, modifyExisting);
212
+ },
213
+ verbose: function(modules, modifyExisting) {
214
+ modules = modules || settings.modules;
215
+ module.debug('Disabling verbose debug for modules', modules);
216
+ module.change.setting('verbose', false, modules, modifyExisting);
217
+ }
218
+ },
219
+
220
+ console: function(enable) {
221
+ if(enable) {
222
+ if(instance.cache.console === undefined) {
223
+ module.error(error.console);
224
+ return;
225
+ }
226
+ module.debug('Restoring console function');
227
+ window.console = instance.cache.console;
228
+ }
229
+ else {
230
+ module.debug('Disabling console function');
231
+ instance.cache.console = window.console;
232
+ window.console = {
233
+ clear : function(){},
234
+ error : function(){},
235
+ group : function(){},
236
+ groupCollapsed : function(){},
237
+ groupEnd : function(){},
238
+ info : function(){},
239
+ log : function(){},
240
+ markTimeline : function(){},
241
+ warn : function(){}
242
+ };
243
+ }
244
+ },
245
+
246
+ destroy: function() {
247
+ module.verbose('Destroying previous site for', $module);
248
+ $module
249
+ .removeData(moduleNamespace)
250
+ ;
251
+ },
252
+
253
+ cache: {},
254
+
255
+ setting: function(name, value) {
256
+ if( $.isPlainObject(name) ) {
257
+ $.extend(true, settings, name);
258
+ }
259
+ else if(value !== undefined) {
260
+ settings[name] = value;
261
+ }
262
+ else {
263
+ return settings[name];
264
+ }
265
+ },
266
+ internal: function(name, value) {
267
+ if( $.isPlainObject(name) ) {
268
+ $.extend(true, module, name);
269
+ }
270
+ else if(value !== undefined) {
271
+ module[name] = value;
272
+ }
273
+ else {
274
+ return module[name];
275
+ }
276
+ },
277
+ debug: function() {
278
+ if(settings.debug) {
279
+ if(settings.performance) {
280
+ module.performance.log(arguments);
281
+ }
282
+ else {
283
+ module.debug = Function.prototype.bind.call(console.info, console, settings.name + ':');
284
+ module.debug.apply(console, arguments);
285
+ }
286
+ }
287
+ },
288
+ verbose: function() {
289
+ if(settings.verbose && settings.debug) {
290
+ if(settings.performance) {
291
+ module.performance.log(arguments);
292
+ }
293
+ else {
294
+ module.verbose = Function.prototype.bind.call(console.info, console, settings.name + ':');
295
+ module.verbose.apply(console, arguments);
296
+ }
297
+ }
298
+ },
299
+ error: function() {
300
+ module.error = Function.prototype.bind.call(console.error, console, settings.name + ':');
301
+ module.error.apply(console, arguments);
302
+ },
303
+ performance: {
304
+ log: function(message) {
305
+ var
306
+ currentTime,
307
+ executionTime,
308
+ previousTime
309
+ ;
310
+ if(settings.performance) {
311
+ currentTime = new Date().getTime();
312
+ previousTime = time || currentTime;
313
+ executionTime = currentTime - previousTime;
314
+ time = currentTime;
315
+ performance.push({
316
+ 'Element' : element,
317
+ 'Name' : message[0],
318
+ 'Arguments' : [].slice.call(message, 1) || '',
319
+ 'Execution Time' : executionTime
320
+ });
321
+ }
322
+ clearTimeout(module.performance.timer);
323
+ module.performance.timer = setTimeout(module.performance.display, 500);
324
+ },
325
+ display: function() {
326
+ var
327
+ title = settings.name + ':',
328
+ totalTime = 0
329
+ ;
330
+ time = false;
331
+ clearTimeout(module.performance.timer);
332
+ $.each(performance, function(index, data) {
333
+ totalTime += data['Execution Time'];
334
+ });
335
+ title += ' ' + totalTime + 'ms';
336
+ if( (console.group !== undefined || console.table !== undefined) && performance.length > 0) {
337
+ console.groupCollapsed(title);
338
+ if(console.table) {
339
+ console.table(performance);
340
+ }
341
+ else {
342
+ $.each(performance, function(index, data) {
343
+ console.log(data['Name'] + ': ' + data['Execution Time']+'ms');
344
+ });
345
+ }
346
+ console.groupEnd();
347
+ }
348
+ performance = [];
349
+ }
350
+ },
351
+ invoke: function(query, passedArguments, context) {
352
+ var
353
+ object = instance,
354
+ maxDepth,
355
+ found,
356
+ response
357
+ ;
358
+ passedArguments = passedArguments || queryArguments;
359
+ context = element || context;
360
+ if(typeof query == 'string' && object !== undefined) {
361
+ query = query.split(/[\. ]/);
362
+ maxDepth = query.length - 1;
363
+ $.each(query, function(depth, value) {
364
+ var camelCaseValue = (depth != maxDepth)
365
+ ? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
366
+ : query
367
+ ;
368
+ if( $.isPlainObject( object[camelCaseValue] ) && (depth != maxDepth) ) {
369
+ object = object[camelCaseValue];
370
+ }
371
+ else if( object[camelCaseValue] !== undefined ) {
372
+ found = object[camelCaseValue];
373
+ return false;
374
+ }
375
+ else if( $.isPlainObject( object[value] ) && (depth != maxDepth) ) {
376
+ object = object[value];
377
+ }
378
+ else if( object[value] !== undefined ) {
379
+ found = object[value];
380
+ return false;
381
+ }
382
+ else {
383
+ module.error(error.method, query);
384
+ return false;
385
+ }
386
+ });
387
+ }
388
+ if ( $.isFunction( found ) ) {
389
+ response = found.apply(context, passedArguments);
390
+ }
391
+ else if(found !== undefined) {
392
+ response = found;
393
+ }
394
+ if($.isArray(returnedValue)) {
395
+ returnedValue.push(response);
396
+ }
397
+ else if(returnedValue !== undefined) {
398
+ returnedValue = [returnedValue, response];
399
+ }
400
+ else if(response !== undefined) {
401
+ returnedValue = response;
402
+ }
403
+ return found;
404
+ }
405
+ };
406
+
407
+ if(methodInvoked) {
408
+ if(instance === undefined) {
409
+ module.initialize();
410
+ }
411
+ module.invoke(query);
412
+ }
413
+ else {
414
+ if(instance !== undefined) {
415
+ module.destroy();
416
+ }
417
+ module.initialize();
418
+ }
419
+ return (returnedValue !== undefined)
420
+ ? returnedValue
421
+ : this
422
+ ;
423
+ };
424
+
425
+ $.site.settings = {
426
+
427
+ name : 'Site',
428
+ namespace : 'site',
429
+
430
+ error : {
431
+ console : 'Console cannot be restored, most likely it was overwritten outside of module',
432
+ method : 'The method you called is not defined.'
433
+ },
434
+
435
+ debug : false,
436
+ verbose : false,
437
+ performance : true,
438
+
439
+ modules: [
440
+ 'accordion',
441
+ 'api',
442
+ 'calendar',
443
+ 'checkbox',
444
+ 'dimmer',
445
+ 'dropdown',
446
+ 'embed',
447
+ 'form',
448
+ 'modal',
449
+ 'nag',
450
+ 'popup',
451
+ 'range',
452
+ 'rating',
453
+ 'shape',
454
+ 'sidebar',
455
+ 'state',
456
+ 'sticky',
457
+ 'tab',
458
+ 'toast',
459
+ 'transition',
460
+ 'visibility',
461
+ 'visit'
462
+ ],
463
+
464
+ siteNamespace : 'site',
465
+ namespaceStub : {
466
+ cache : {},
467
+ config : {},
468
+ sections : {},
469
+ section : {},
470
+ utilities : {}
471
+ }
472
+
473
+ };
474
+
475
+ // allows for selection of elements with data attributes
476
+ $.extend($.expr[ ":" ], {
477
+ data: ($.expr.createPseudo)
478
+ ? $.expr.createPseudo(function(dataName) {
479
+ return function(elem) {
480
+ return !!$.data(elem, dataName);
481
+ };
482
+ })
483
+ : function(elem, i, match) {
484
+ // support: jQuery < 1.8
485
+ return !!$.data(elem, match[ 3 ]);
486
+ }
487
+ });
488
+
489
+
490
+ })( jQuery, window, document );