Alex Trofimov пре 1 година
родитељ
комит
28a453c1b3

Разлика између датотеке није приказан због своје велике величине
+ 2 - 2
modules/boonex/analytics/plugins/datatables/datatables.min.css


Разлика између датотеке није приказан због своје велике величине
+ 5 - 182
modules/boonex/analytics/plugins/datatables/datatables.min.js


+ 0 - 52
modules/boonex/analytics/plugins/datatables/package.json

@@ -1,52 +0,0 @@
-{
-	"name": "datatables",
-	"version": "1.10.20",
-	"title": "DataTables",
-	"main": "media/js/jquery.dataTables",
-	"files": [
-		"media/js/jquery.dataTables.js",
-		"media/js/jquery.dataTables.min.js",
-		"media/css/jquery.dataTables.css",
-		"media/css/jquery.dataTables.min.css",
-		"media/images"
-	],
-	"license": "MIT",
-	"dependencies": {
-		"jquery": ">=1.7"
-	},
-	"author": {
-		"name": "Allan Jardine",
-		"url": "http://sprymedia.co.uk"
-	},
-	"description": "DataTables enhances HTML tables with the ability to sort, filter and page the data in the table very easily. It provides a comprehensive API and set of configuration options, allowing you to consume data from virtually any data source.",
-	"keywords": [
-		"DataTables",
-		"DataTable",
-		"table",
-		"grid",
-		"filter",
-		"sort",
-		"page",
-		"internationalisable",
-		"jquery-plugin"
-	],
-	"repository": {
-		"type": "git",
-		"url": "https://github.com/DataTables/DataTables.git"
-	},
-	"homepage": "http://datatables.net",
-
-	"jspm": {
-		"dependencies": {
-			"css": "^0.1.5",
-			"jquery": "*"
-		},
-		"registry": "jspm",
-		"shim": {
-			"media/js/jquery.dataTables": {
-				"deps": ["jquery", "../css/jquery.dataTables.css!"],
-				"exports": "$"
-			}
-		}
-	}
-}

+ 24 - 11
modules/boonex/analytics/plugins/daterangepicker/daterangepicker.css

@@ -1,5 +1,5 @@
 /**
-* @version: 3.0.5
+* @version: 3.1
 * @author: Dan Grossman http://www.dangrossman.info/
 * @copyright: Copyright (c) 2012-2019 Dan Grossman. All rights reserved.
 * @license: Licensed under the MIT license. See http://www.opensource.org/licenses/mit-license.php
@@ -11,7 +11,7 @@
         // AMD. Make globaly available as well
         define(['moment', 'jquery'], function (moment, jquery) {
             if (!jquery.fn) jquery.fn = {}; // webpack server rendering
-            if (typeof moment !== 'function' && moment.default) moment = moment.default
+            if (typeof moment !== 'function' && moment.hasOwnProperty('default')) moment = moment['default']
             return factory(moment, jquery);
         });
     } else if (typeof module === 'object' && module.exports) {
@@ -386,7 +386,7 @@
             this.container.find('.drp-calendar.left').addClass('single');
             this.container.find('.drp-calendar.left').show();
             this.container.find('.drp-calendar.right').hide();
-            if (!this.timePicker) {
+            if (!this.timePicker && this.autoApply) {
                 this.container.addClass('auto-apply');
             }
         }
@@ -417,14 +417,14 @@
             .on('mouseenter.daterangepicker', 'td.available', $.proxy(this.hoverDate, this))
             .on('change.daterangepicker', 'select.yearselect', $.proxy(this.monthOrYearChanged, this))
             .on('change.daterangepicker', 'select.monthselect', $.proxy(this.monthOrYearChanged, this))
-            .on('change.daterangepicker', 'select.hourselect,select.minuteselect,select.secondselect,select.ampmselect', $.proxy(this.timeChanged, this))
+            .on('change.daterangepicker', 'select.hourselect,select.minuteselect,select.secondselect,select.ampmselect', $.proxy(this.timeChanged, this));
 
         this.container.find('.ranges')
-            .on('click.daterangepicker', 'li', $.proxy(this.clickRange, this))
+            .on('click.daterangepicker', 'li', $.proxy(this.clickRange, this));
 
         this.container.find('.drp-buttons')
             .on('click.daterangepicker', 'button.applyBtn', $.proxy(this.clickApply, this))
-            .on('click.daterangepicker', 'button.cancelBtn', $.proxy(this.clickCancel, this))
+            .on('click.daterangepicker', 'button.cancelBtn', $.proxy(this.clickCancel, this));
 
         if (this.element.is('input') || this.element.is('button')) {
             this.element.on({
@@ -1023,7 +1023,9 @@
 
         move: function() {
             var parentOffset = { top: 0, left: 0 },
-                containerTop;
+                containerTop,
+                drops = this.drops;
+
             var parentRightEdge = $(window).width();
             if (!this.parentEl.is('body')) {
                 parentOffset = {
@@ -1033,10 +1035,21 @@
                 parentRightEdge = this.parentEl[0].clientWidth + this.parentEl.offset().left;
             }
 
-            if (this.drops == 'up')
+            switch (drops) {
+            case 'auto':
+                containerTop = this.element.offset().top + this.element.outerHeight() - parentOffset.top;
+                if (containerTop + this.container.outerHeight() >= this.parentEl[0].scrollHeight) {
+                    containerTop = this.element.offset().top - this.container.outerHeight() - parentOffset.top;
+                    drops = 'up';
+                }
+                break;
+            case 'up':
                 containerTop = this.element.offset().top - this.container.outerHeight() - parentOffset.top;
-            else
+                break;
+            default:
                 containerTop = this.element.offset().top + this.element.outerHeight() - parentOffset.top;
+                break;
+            }
 
             // Force the container to it's actual width
             this.container.css({
@@ -1046,7 +1059,7 @@
             });
             var containerWidth = this.container.outerWidth();
 
-            this.container[this.drops == 'up' ? 'addClass' : 'removeClass']('drop-up');
+            this.container.toggleClass('drop-up', drops == 'up');
 
             if (this.opens == 'left') {
                 var containerRight = parentRightEdge - this.element.offset().left - this.element.outerWidth();
@@ -1341,7 +1354,7 @@
 
             if (this.singleDatePicker) {
                 this.setEndDate(this.startDate);
-                if (!this.timePicker)
+                if (!this.timePicker && this.autoApply)
                     this.clickApply();
             }
 

+ 0 - 17
modules/boonex/analytics/plugins/daterangepicker/package.js

@@ -1,17 +0,0 @@
-Package.describe({
-  name: 'dangrossman:bootstrap-daterangepicker',
-  version: '3.0.5',
-  summary: 'Date range picker component',
-  git: 'https://github.com/dangrossman/daterangepicker',
-  documentation: 'README.md'
-});
-
-Package.onUse(function(api) {
-  api.versionsFrom('METEOR@0.9.0.1');
-
-  api.use('momentjs:moment@2.22.1', ["client"]);
-  api.use('jquery@3.3.1', ["client"]);
-
-  api.addFiles('daterangepicker.js', ["client"]);
-  api.addFiles('daterangepicker.css', ["client"]);
-});

+ 28 - 0
modules/boonex/analytics/plugins/daterangepicker/package.json

@@ -0,0 +1,28 @@
+{
+  "name": "daterangepicker",
+  "version": "3.1",
+  "description": "Date range picker component for Bootstrap",
+  "main": "daterangepicker.js",
+  "style": "daterangepicker.css",
+  "scripts": {
+    "test": "echo \"Error: no test specified\" && exit 1"
+  },
+  "repository": {
+    "type": "git",
+    "url": "https://github.com/dangrossman/daterangepicker.git"
+  },
+  "author": {
+    "name": "Dan Grossman",
+    "email": "dan@dangrossman.info",
+    "url": "http://www.dangrossman.info"
+  },
+  "license": "MIT",
+  "bugs": {
+    "url": "https://github.com/dangrossman/daterangepicker/issues"
+  },
+  "homepage": "https://github.com/dangrossman/daterangepicker",
+  "dependencies": {
+    "jquery": ">=1.10",
+    "moment": "^2.9.0"
+  }
+}

Неке датотеке нису приказане због велике количине промена