Skip to content

Commit

Permalink
fixing whiteLine bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Lenin Martinez committed Aug 2, 2018
1 parent 75dda27 commit e27db73
Show file tree
Hide file tree
Showing 9 changed files with 92 additions and 73 deletions.
6 changes: 5 additions & 1 deletion demo.le/demo.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,14 @@ export default function ($scope, $timeout) {
type: 'column',
classes: ['input-hidden'],
headerContent: '<div> avic </div>',
content: '<div>algol</div>'
content: '<div><input ng-if="scope.$ctrl.render()"></div>'
}
]

$scope.render = function () {
return true
}

$scope.goToRow = function (id) {
$scope.api.recycler.goToRow((row) => row.model.id === id)
}
Expand Down
33 changes: 18 additions & 15 deletions dist/angular-gantt-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ if(typeof __g == 'number')__g = global; // eslint-disable-line no-undef
/* 10 */
/***/ (function(module, exports, __webpack_require__) {

var isObject = __webpack_require__(17);
var isObject = __webpack_require__(18);
module.exports = function(it){
if(!isObject(it))throw TypeError(it + ' is not an object!');
return it;
Expand Down Expand Up @@ -689,14 +689,6 @@ module.exports = __webpack_require__(11) ? function(object, key, value){

/***/ }),
/* 17 */
/***/ (function(module, exports) {

module.exports = function(it){
return typeof it === 'object' ? it !== null : typeof it === 'function';
};

/***/ }),
/* 18 */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(global, module) {var __WEBPACK_AMD_DEFINE_RESULT__;/**
Expand Down Expand Up @@ -17787,6 +17779,14 @@ module.exports = function(it){

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(28), __webpack_require__(184)(module)))

/***/ }),
/* 18 */
/***/ (function(module, exports) {

module.exports = function(it){
return typeof it === 'object' ? it !== null : typeof it === 'function';
};

/***/ }),
/* 19 */
/***/ (function(module, exports) {
Expand Down Expand Up @@ -18441,7 +18441,7 @@ module.exports = function(it){
/***/ (function(module, exports, __webpack_require__) {

// 7.1.1 ToPrimitive(input [, PreferredType])
var isObject = __webpack_require__(17);
var isObject = __webpack_require__(18);
// instead of the ES6 spec version, we didn't implement @@toPrimitive case
// and the second argument - flag - preferred type is a string
module.exports = function(it, S){
Expand Down Expand Up @@ -28848,7 +28848,7 @@ return jQuery;
/* 41 */
/***/ (function(module, exports, __webpack_require__) {

var isObject = __webpack_require__(17)
var isObject = __webpack_require__(18)
, document = __webpack_require__(9).document
// in old IE typeof document.createElement is 'object'
, is = isObject(document) && isObject(document.createElement);
Expand Down Expand Up @@ -30576,7 +30576,7 @@ var _moment = __webpack_require__(3);

var _moment2 = _interopRequireDefault(_moment);

var _lodash = __webpack_require__(18);
var _lodash = __webpack_require__(17);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

Expand Down Expand Up @@ -35726,7 +35726,8 @@ exports.default = ["$compile", function ($compile) {

return {
restrict: 'A',
link: function link(scope, element, attrs) {
link: function link(scope, element, attrs, ganttCtrl) {
scope.scope = (0, _lodash.get)(scope, 'pluginScope.ganttCtrl.gantt.$scope.$parent');
scope.thisWatcher = scope.$watch(function () {
return scope.$eval(attrs.ganttBindCompileHtml);
}, function (value) {
Expand All @@ -35738,6 +35739,8 @@ exports.default = ["$compile", function ($compile) {
};
}];

var _lodash = __webpack_require__(17);

/***/ }),
/* 132 */
/***/ (function(module, exports, __webpack_require__) {
Expand Down Expand Up @@ -36405,7 +36408,7 @@ module.exports = function(object, el){
/***/ (function(module, exports, __webpack_require__) {

var META = __webpack_require__(25)('meta')
, isObject = __webpack_require__(17)
, isObject = __webpack_require__(18)
, has = __webpack_require__(13)
, setDesc = __webpack_require__(12).f
, id = 0;
Expand Down Expand Up @@ -36522,7 +36525,7 @@ module.exports = function(KEY, exec){

// Works with __proto__ only. Old v8 can't work with null proto objects.
/* eslint-disable no-proto */
var isObject = __webpack_require__(17)
var isObject = __webpack_require__(18)
, anObject = __webpack_require__(10);
var check = function(O, proto){
anObject(O);
Expand Down
4 changes: 2 additions & 2 deletions dist/angular-gantt-core.min.js

Large diffs are not rendered by default.

50 changes: 27 additions & 23 deletions dist/angular-gantt-plugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ if(typeof __g == 'number')__g = global; // eslint-disable-line no-undef
/* 10 */
/***/ (function(module, exports, __webpack_require__) {

var isObject = __webpack_require__(17);
var isObject = __webpack_require__(18);
module.exports = function(it){
if(!isObject(it))throw TypeError(it + ' is not an object!');
return it;
Expand Down Expand Up @@ -689,14 +689,6 @@ module.exports = __webpack_require__(11) ? function(object, key, value){

/***/ }),
/* 17 */
/***/ (function(module, exports) {

module.exports = function(it){
return typeof it === 'object' ? it !== null : typeof it === 'function';
};

/***/ }),
/* 18 */
/***/ (function(module, exports, __webpack_require__) {

/* WEBPACK VAR INJECTION */(function(global, module) {var __WEBPACK_AMD_DEFINE_RESULT__;/**
Expand Down Expand Up @@ -17787,6 +17779,14 @@ module.exports = function(it){

/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(28), __webpack_require__(184)(module)))

/***/ }),
/* 18 */
/***/ (function(module, exports) {

module.exports = function(it){
return typeof it === 'object' ? it !== null : typeof it === 'function';
};

/***/ }),
/* 19 */
/***/ (function(module, exports) {
Expand Down Expand Up @@ -18441,7 +18441,7 @@ module.exports = function(it){
/***/ (function(module, exports, __webpack_require__) {

// 7.1.1 ToPrimitive(input [, PreferredType])
var isObject = __webpack_require__(17);
var isObject = __webpack_require__(18);
// instead of the ES6 spec version, we didn't implement @@toPrimitive case
// and the second argument - flag - preferred type is a string
module.exports = function(it, S){
Expand Down Expand Up @@ -28848,7 +28848,7 @@ return jQuery;
/* 41 */
/***/ (function(module, exports, __webpack_require__) {

var isObject = __webpack_require__(17)
var isObject = __webpack_require__(18)
, document = __webpack_require__(9).document
// in old IE typeof document.createElement is 'object'
, is = isObject(document) && isObject(document.createElement);
Expand Down Expand Up @@ -30576,7 +30576,7 @@ var _moment = __webpack_require__(3);

var _moment2 = _interopRequireDefault(_moment);

var _lodash = __webpack_require__(18);
var _lodash = __webpack_require__(17);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

Expand Down Expand Up @@ -35726,7 +35726,8 @@ exports.default = ["$compile", function ($compile) {

return {
restrict: 'A',
link: function link(scope, element, attrs) {
link: function link(scope, element, attrs, ganttCtrl) {
scope.scope = (0, _lodash.get)(scope, 'pluginScope.ganttCtrl.gantt.$scope.$parent');
scope.thisWatcher = scope.$watch(function () {
return scope.$eval(attrs.ganttBindCompileHtml);
}, function (value) {
Expand All @@ -35738,6 +35739,8 @@ exports.default = ["$compile", function ($compile) {
};
}];

var _lodash = __webpack_require__(17);

/***/ }),
/* 132 */
/***/ (function(module, exports, __webpack_require__) {
Expand Down Expand Up @@ -42040,7 +42043,7 @@ module.exports = function(object, el){
/***/ (function(module, exports, __webpack_require__) {

var META = __webpack_require__(25)('meta')
, isObject = __webpack_require__(17)
, isObject = __webpack_require__(18)
, has = __webpack_require__(13)
, setDesc = __webpack_require__(12).f
, id = 0;
Expand Down Expand Up @@ -42157,7 +42160,7 @@ module.exports = function(KEY, exec){

// Works with __proto__ only. Old v8 can't work with null proto objects.
/* eslint-disable no-proto */
var isObject = __webpack_require__(17)
var isObject = __webpack_require__(18)
, anObject = __webpack_require__(10);
var check = function(O, proto){
anObject(O);
Expand Down Expand Up @@ -80674,7 +80677,7 @@ var LIBRARY = __webpack_require__(26)
, ctx = __webpack_require__(22)
, classof = __webpack_require__(67)
, $export = __webpack_require__(15)
, isObject = __webpack_require__(17)
, isObject = __webpack_require__(18)
, aFunction = __webpack_require__(44)
, anInstance = __webpack_require__(207)
, forOf = __webpack_require__(208)
Expand Down Expand Up @@ -84749,7 +84752,7 @@ var _angular = __webpack_require__(2);

var _angular2 = _interopRequireDefault(_angular);

var _lodash = __webpack_require__(18);
var _lodash = __webpack_require__(17);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

Expand Down Expand Up @@ -85151,7 +85154,7 @@ Object.defineProperty(exports, "__esModule", {
});
exports.default = sortRows;

var _lodash = __webpack_require__(18);
var _lodash = __webpack_require__(17);

var _lodash2 = _interopRequireDefault(_lodash);

Expand Down Expand Up @@ -85285,7 +85288,7 @@ exports.default = ["GanttDirectiveBuilder", "ganttLayout", "$timeout", function
return builder.build();
}];

var _lodash = __webpack_require__(18);
var _lodash = __webpack_require__(17);

var _lodash2 = _interopRequireDefault(_lodash);

Expand Down Expand Up @@ -85323,6 +85326,7 @@ exports.default = ["$document", "$compile", "$timeout", function ($document, $co
},
link: function link(scope, element, attrs, ganttCtrl) {
var api = ganttCtrl.gantt.api;
scope.ganttCtrl = ganttCtrl;
scope.rowService = new _row2.default(api);
scope.lastInitialized = '';
scope.$watch(function () {
Expand Down Expand Up @@ -85505,7 +85509,7 @@ var _angular = __webpack_require__(2);

var _angular2 = _interopRequireDefault(_angular);

var _lodash = __webpack_require__(18);
var _lodash = __webpack_require__(17);

var _lodash2 = _interopRequireDefault(_lodash);

Expand Down Expand Up @@ -85667,7 +85671,7 @@ exports.default = ["$scope", "$rootScope", "$timeout", function ($scope, $rootSc
}
}];

var _lodash = __webpack_require__(18);
var _lodash = __webpack_require__(17);

var _lodash2 = _interopRequireDefault(_lodash);

Expand Down Expand Up @@ -85723,7 +85727,7 @@ var _createClass2 = __webpack_require__(1);

var _createClass3 = _interopRequireDefault(_createClass2);

var _lodash = __webpack_require__(18);
var _lodash = __webpack_require__(17);

var _lodash2 = _interopRequireDefault(_lodash);

Expand Down Expand Up @@ -87339,7 +87343,7 @@ exports.default = ["$scope", "$rootScope", function ($scope, $rootScope) {
});
}];

var _lodash = __webpack_require__(18);
var _lodash = __webpack_require__(17);

var _constant = __webpack_require__(182);

Expand Down
8 changes: 4 additions & 4 deletions dist/angular-gantt-plugins.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit e27db73

Please sign in to comment.