Moved the app into src/ directory to in preperation for angular

This commit is contained in:
tanshu 2018-05-18 13:38:55 +05:30
parent da8a148544
commit b3cb01da02
762 changed files with 6945 additions and 122 deletions
brewman
routes.py
static
package.json
src/app
404.html
account
app.module.jsapp.module.js.mapapp.module.ts
attendance
balance-sheet
base.controller.jsbase.controller.js.mapbase.controller.ts
cash-flow
client

@ -2,17 +2,13 @@ import datetime
def includeme(config):
config.add_static_view('icons', 'brewman:static/icons', cache_max_age=get_age(10))
config.add_static_view('assets', 'brewman:static/assets', cache_max_age=get_age(10))
config.add_static_view('features', 'brewman:static/features', cache_max_age=get_age(10))
config.add_static_view('fonts', 'brewman:static/fonts', cache_max_age=get_age(10))
config.add_static_view('img', 'brewman:static/img', cache_max_age=get_age(10))
config.add_static_view('js', 'brewman:static/js', cache_max_age=get_age(10))
config.add_static_view('script', 'brewman:static/scripts', cache_max_age=get_age(1))
config.add_static_view('css', 'brewman:static/css', cache_max_age=get_age(10))
config.add_static_view('partial', 'brewman:static/partial', cache_max_age=get_age(10))
config.add_static_view('template', 'brewman:static/template', cache_max_age=get_age(10))
config.add_static_view('app', 'brewman:static/app', cache_max_age=get_age(10))
config.add_static_view('fonts', 'brewman:static/src/fonts', cache_max_age=get_age(10))
config.add_static_view('img', 'brewman:static/src/img', cache_max_age=get_age(10))
config.add_static_view('js', 'brewman:static/src/js', cache_max_age=get_age(10))
config.add_static_view('css', 'brewman:static/src/css', cache_max_age=get_age(10))
config.add_static_view('template', 'brewman:static/src/template', cache_max_age=get_age(10))
config.add_static_view('src', 'brewman:static/src', cache_max_age=get_age(10))
config.add_static_view('app', 'brewman:static/src/app', cache_max_age=get_age(10))
config.add_static_view('node_modules', 'brewman:static/node_modules', cache_max_age=get_age(10))
config.add_route('api_dashboard', '/api/Dashboard')
@ -24,8 +20,9 @@ def includeme(config):
config.add_route('logout', '/logout')
config.add_route('home', '/')
config.add_route('tsconfig', '/tsconfig.json')
# config.add_route('tsconfig', '/tsconfig.json')
config.add_route('systemjs', '/systemjs.config.js')
# config.add_route('main.js', '/main.js')
config.add_route('api_account_type_list', '/api/AccountTypes')

@ -6,6 +6,15 @@
"postinstall": "tsc"
},
"dependencies": {
"@angular/animations": "^6.0.1",
"@angular/common": "^6.0.1",
"@angular/compiler": "^6.0.1",
"@angular/core": "^6.0.1",
"@angular/forms": "^6.0.1",
"@angular/platform-browser": "^6.0.1",
"@angular/platform-browser-dynamic": "^6.0.1",
"@angular/router": "^6.0.1",
"@angular/upgrade": "^6.0.1",
"angular": "^1.6.10",
"angular-animate": "^1.6.10",
"angular-aria": "^1.6.10",
@ -17,14 +26,16 @@
"angular-sanitize": "^1.6.10",
"angular-ui-bootstrap": "^2.5.6",
"bootstrap": "^3.3.7",
"core-js": "^2.5.6",
"jquery": "^3.3.1",
"lodash": "^4.17.10",
"mathjs": "^4.2.2",
"moment": "^2.22.1",
"mousetrap": "^1.6.1",
"reflect-metadata": "^0.1.12",
"rxjs": "^6.1.0",
"showdown": "^1.8.6",
"systemjs": "^0.19.47",
"systemjs-plugin-json": "^0.1.0"
"zone.js": "^0.8.26"
},
"devDependencies": {
"typescript": "^2.8.3"

@ -0,0 +1,9 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var account_list_controller_1 = require("./account-list.controller");
exports.AccountListComponent = {
templateUrl: '/app/account/account-list.html',
controller: account_list_controller_1.AccountListController,
controllerAs: 'vm'
};
//# sourceMappingURL=account-list.component.js.map

@ -0,0 +1 @@
{"version":3,"file":"account-list.component.js","sourceRoot":"","sources":["account-list.component.ts"],"names":[],"mappings":";;AAAA,qEAAgE;AAEnD,QAAA,oBAAoB,GAAG;IAChC,WAAW,EAAE,gCAAgC;IAC7C,UAAU,EAAE,+CAAqB;IACjC,YAAY,EAAE,IAAI;CACrB,CAAC"}

@ -0,0 +1,84 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var angular = require("angular");
var _ = require("lodash");
var $ = require("jquery");
require("jqScrollIntoView");
var AccountListController = /** @class */ (function () {
function AccountListController($scope, $location, $routeParams, Tokenizer) {
var _this = this;
this.$scope = $scope;
this.$location = $location;
this.$routeParams = $routeParams;
this.Tokenizer = Tokenizer;
this.accounts = $scope.$parent.res.accounts;
this.search = $routeParams.q || '';
this.info = this.accounts;
$scope.$watch('vm.search', function (value) {
_this.filterAccounts(value);
}, true);
$scope.$on('$destroy', function () {
_this.Tokenizer.doFilter.cache = {};
});
this.searchInfo = {
comparator: {
'n': { 'Col': 'Name', 'Comparator': 'text' },
't': { 'Col': 'Type', 'Comparator': 'text' },
'a': { 'Col': 'IsActive', 'Comparator': 'boolean' },
'r': { 'Col': 'IsReconcilable', 'Comparator': 'boolean' },
'c': { 'Col': 'CostCentre', 'Comparator': 'text' }
},
def: 'n',
sorter: {
'n': 'Name',
't': 'Type',
'a': 'IsActive',
'r': 'IsReconcilable',
'c': 'CostCentre'
}
};
this.filterAccounts = _.debounce(function (q) {
if (q !== $scope._search) {
$scope._search = q;
if (angular.isUndefined(q) || q === '') {
_this.$location.path('/Accounts').search('q', null).replace();
}
else {
_this.$location.path('/Accounts').search({ 'q': q }).replace();
}
$scope.$apply(function () {
var matches = Tokenizer.parseFilterString(q, _this.searchInfo);
_this.accounts = Tokenizer.doFilter(q, _this.info, matches);
});
}
}, 350);
this.selected = -1;
this.shortcuts = {
'up': function (e) {
if (_this.selected > 0) {
_this.$scope.$apply(function () {
_this.selected = Math.min(Math.max(0, _this.selected - 1), _this.accounts.length - 1);
});
$("#" + _this.selected).scrollintoview();
e.preventDefault();
}
},
'down': function (e) {
if (_this.selected < _this.accounts.length - 1) {
_this.$scope.$apply(function () {
_this.selected = Math.min(Math.max(0, _this.selected + 1), _this.accounts.length - 1);
});
$("#" + _this.selected).scrollintoview();
e.preventDefault();
}
}
};
}
AccountListController.prototype.setSelected = function (index) {
this.selected = Math.min(Math.max(0, index), this.accounts.length - 1);
};
AccountListController.$inject = ['$scope', '$location', '$routeParams', 'Tokenizer'];
return AccountListController;
}());
exports.AccountListController = AccountListController;
//# sourceMappingURL=account-list.controller.js.map

@ -0,0 +1 @@
{"version":3,"file":"account-list.controller.js","sourceRoot":"","sources":["account-list.controller.ts"],"names":[],"mappings":";;AAAA,iCAAmC;AACnC,0BAA4B;AAC5B,0BAA4B;AAC5B,4BAA0B;AAE1B;IAUI,+BAAmB,MAAM,EAAS,SAAS,EAAS,YAAY,EAAS,SAAS;QAAlF,iBAkEC;QAlEkB,WAAM,GAAN,MAAM,CAAA;QAAS,cAAS,GAAT,SAAS,CAAA;QAAS,iBAAY,GAAZ,YAAY,CAAA;QAAS,cAAS,GAAT,SAAS,CAAA;QAC9E,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC;QAC5C,IAAI,CAAC,MAAM,GAAG,YAAY,CAAC,CAAC,IAAI,EAAE,CAAC;QACnC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC;QAE1B,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE,UAAC,KAAK;YAC7B,KAAI,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;QAC/B,CAAC,EAAE,IAAI,CAAC,CAAC;QAET,MAAM,CAAC,GAAG,CAAC,UAAU,EAAE;YACnB,KAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,KAAK,GAAG,EAAE,CAAC;QACvC,CAAC,CAAC,CAAC;QACH,IAAI,CAAC,UAAU,GAAG;YACd,UAAU,EAAE;gBACR,GAAG,EAAE,EAAC,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAC;gBAC1C,GAAG,EAAE,EAAC,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAC;gBAC1C,GAAG,EAAE,EAAC,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,SAAS,EAAC;gBACjD,GAAG,EAAE,EAAC,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,SAAS,EAAC;gBACvD,GAAG,EAAE,EAAC,KAAK,EAAE,YAAY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@ -0,0 +1,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function AccountListResolver(Account) {
return Account.query({}).$promise;
}
exports.AccountListResolver = AccountListResolver;
//# sourceMappingURL=account-list.resolver.js.map

@ -0,0 +1 @@
{"version":3,"file":"account-list.resolver.js","sourceRoot":"","sources":["account-list.resolver.ts"],"names":[],"mappings":";;AAAA,6BAAoC,OAAO;IACvC,OAAO,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC;AACtC,CAAC;AAFD,kDAEC"}

@ -0,0 +1,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function AccountType($resource) {
return $resource('/api/AccountTypes');
}
exports.AccountType = AccountType;
//# sourceMappingURL=account-type.service.js.map

@ -0,0 +1 @@
{"version":3,"file":"account-type.service.js","sourceRoot":"","sources":["account-type.service.ts"],"names":[],"mappings":";;AAAA,qBAA4B,SAAS;IACjC,OAAO,SAAS,CAAC,mBAAmB,CAAC,CAAC;AAC1C,CAAC;AAFD,kCAEC"}

@ -0,0 +1,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function AccountTypesResolver(AccountType) {
return AccountType.query({}).$promise;
}
exports.AccountTypesResolver = AccountTypesResolver;
//# sourceMappingURL=account-types.resolver.js.map

@ -0,0 +1 @@
{"version":3,"file":"account-types.resolver.js","sourceRoot":"","sources":["account-types.resolver.ts"],"names":[],"mappings":";;AAAA,8BAAqC,WAAW;IAC5C,OAAO,WAAW,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC;AAC1C,CAAC;AAFD,oDAEC"}

@ -0,0 +1,9 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var account_controller_1 = require("./account.controller");
exports.AccountComponent = {
templateUrl: '/app/account/account-detail.html',
controller: account_controller_1.AccountController,
controllerAs: 'vm'
};
//# sourceMappingURL=account.component.js.map

@ -0,0 +1 @@
{"version":3,"file":"account.component.js","sourceRoot":"","sources":["account.component.ts"],"names":[],"mappings":";;AAAA,2DAAuD;AAE1C,QAAA,gBAAgB,GAAG;IAC5B,WAAW,EAAE,kCAAkC;IAC/C,UAAU,EAAE,sCAAiB;IAC7B,YAAY,EAAE,IAAI;CACrB,CAAC"}

@ -0,0 +1,62 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var AccountController = /** @class */ (function () {
function AccountController($scope, $location, $modal, Messages) {
this.$scope = $scope;
this.$location = $location;
this.$modal = $modal;
this.Messages = Messages;
this.account = $scope.$parent.res.account;
this.accountTypes = $scope.$parent.res.accountTypes;
this.costCentres = $scope.$parent.res.costCentres;
this.foName = true;
}
AccountController.prototype.save = function () {
var _this = this;
this.account.$save(function () {
_this.Messages.push({ Type: 'Success', Message: '' });
_this.$location.path('/Accounts');
}, function (data) {
_this.Messages.push({ Type: 'Danger', Message: data.data });
});
};
AccountController.prototype.delete = function () {
var _this = this;
this.account.$delete(function () {
_this.Messages.push({ Type: 'Success', Message: '' });
_this.$location.path('/Accounts');
}, function (data) {
_this.Messages.push({ Type: 'Danger', Message: data.data });
});
};
AccountController.prototype.confirm = function () {
var _this = this;
var modalInstance = this.$modal.open({
backdrop: true,
templateUrl: '/template/modal/confirm.html',
controllerAs: 'vmModal',
controller: ['$uibModalInstance', /** @class */ (function () {
function class_1($modalInstance) {
this.$modalInstance = $modalInstance;
this.title = "Delete Account";
this.body = "Are you sure? This cannot be undone.";
this.isDelete = true;
}
class_1.prototype.ok = function () {
this.$modalInstance.close();
};
class_1.prototype.cancel = function () {
this.$modalInstance.dismiss('cancel');
};
return class_1;
}())]
});
modalInstance.result.then(function () {
_this.delete();
});
};
AccountController.$inject = ['$scope', '$location', '$uibModal', 'Messages'];
return AccountController;
}());
exports.AccountController = AccountController;
//# sourceMappingURL=account.controller.js.map

@ -0,0 +1 @@
{"version":3,"file":"account.controller.js","sourceRoot":"","sources":["account.controller.ts"],"names":[],"mappings":";;AAAA;IAOI,2BAAmB,MAAM,EAAS,SAAS,EAAS,MAAM,E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,EAAC,CAAC,CAAC;QAC7D,CAAC,CAAC,CAAC;IACP,CAAC;IAED,mCAAO,GAAP;QAAA,iBA4BC;QA3BG,IAAI,aAAa,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC;YACjC,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,8BAA8B;YAC3C,YAAY,EAAE,SAAS;YACvB,UAAU,EAAE,CAAC,mBAAmB;oBAK5B,iBAAmB,cAAc;wBAAd,mBAAc,GAAd,cAAc,CAAA;wBAC7B,IAAI,CAAC,KAAK,GAAG,gBAAgB,CAAC;wBAC9B,IAAI,CAAC,IAAI,GAAG,sCAAsC,CAAC;wBACnD,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;oBACzB,CAAC;oBAED,oBAAE,GAAF;wBACI,IAAI,CAAC,cAAc,CAAC,KAAK,EAAE,CAAC;oBAChC,CAAC;oBAED,wBAAM,GAAN;wBACI,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;oBAC1C,CAAC;oBACL,cAAC;gBAAD,CAAC,AAlBiC,IAkBhC;SACL,CAAC,CAAC;QACH,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC;YACtB,KAAI,CAAC,MAAM,EAAE,CAAC;QAClB,CAAC,CAAC,CAAC;IACP,CAAC;IA3DM,yBAAO,GAAG,CAAC,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,CAAC,CAAC;IA4DtE,wBAAC;CAAA,AA7DD,IA6DC;AA7DY,8CAAiB"}

@ -0,0 +1,8 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function AccountResolver($route, Account) {
var id = $route.current.params.id;
return Account.get({ id: id }).$promise;
}
exports.AccountResolver = AccountResolver;
//# sourceMappingURL=account.resolver.js.map

@ -0,0 +1 @@
{"version":3,"file":"account.resolver.js","sourceRoot":"","sources":["account.resolver.ts"],"names":[],"mappings":";;AAAA,yBAAgC,MAAM,EAAE,OAAO;IAC3C,IAAM,EAAE,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;IACpC,OAAO,OAAO,CAAC,GAAG,CAAC,EAAC,EAAE,EAAE,EAAE,EAAC,CAAC,CAAC,QAAQ,CAAC;AAC1C,CAAC;AAHD,0CAGC"}

@ -0,0 +1,11 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function Account($resource) {
return $resource('/api/Account/:id', { id: '@LedgerID' }, {
query: { method: 'GET', params: { list: true }, isArray: true },
autocomplete: { method: 'GET', params: { term: '' }, isArray: true },
balance: { method: 'GET', params: { b: true, d: '' } }
});
}
exports.Account = Account;
//# sourceMappingURL=account.service.js.map

@ -0,0 +1 @@
{"version":3,"file":"account.service.js","sourceRoot":"","sources":["account.service.ts"],"names":[],"mappings":";;AAAA,iBAAwB,SAAS;IAC7B,OAAO,SAAS,CAAC,kBAAkB,EAC/B,EAAC,EAAE,EAAE,WAAW,EAAC,EAAE;QACf,KAAK,EAAE,EAAC,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EAAC,IAAI,EAAE,IAAI,EAAC,EAAE,OAAO,EAAE,IAAI,EAAC;QAC3D,YAAY,EAAE,EAAC,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EAAC,IAAI,EAAE,EAAE,EAAC,EAAE,OAAO,EAAE,IAAI,EAAC;QAChE,OAAO,EAAE,EAAC,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,EAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,EAAC,EAAC;KACrD,CAAC,CAAC;AACX,CAAC;AAPD,0BAOC"}

@ -0,0 +1,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function PaymentAccountsResolver(Account) {
return Account.autocomplete({ term: '', type: 1 }).$promise;
}
exports.PaymentAccountsResolver = PaymentAccountsResolver;
//# sourceMappingURL=payment-accounts.resolver.js.map

@ -0,0 +1 @@
{"version":3,"file":"payment-accounts.resolver.js","sourceRoot":"","sources":["payment-accounts.resolver.ts"],"names":[],"mappings":";;AAAA,iCAAwC,OAAO;IAC3C,OAAO,OAAO,CAAC,YAAY,CAAC,EAAC,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,EAAC,CAAC,CAAC,QAAQ,CAAC;AAC9D,CAAC;AAFD,0DAEC"}

@ -0,0 +1,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function ReceiptAccountsResolver(Account) {
return Account.autocomplete({ term: '', type: 1 }).$promise;
}
exports.ReceiptAccountsResolver = ReceiptAccountsResolver;
//# sourceMappingURL=receipt-accounts.resolver.js.map

@ -0,0 +1 @@
{"version":3,"file":"receipt-accounts.resolver.js","sourceRoot":"","sources":["receipt-accounts.resolver.ts"],"names":[],"mappings":";;AAAA,iCAAwC,OAAO;IAC3C,OAAO,OAAO,CAAC,YAAY,CAAC,EAAC,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,EAAC,CAAC,CAAC,QAAQ,CAAC;AAC9D,CAAC;AAFD,0DAEC"}

@ -0,0 +1,6 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var angular = require("angular");
require("./overlord.app");
angular.bootstrap(document.body, ['overlord'], { strictDi: false });
//# sourceMappingURL=app.module.js.map

@ -0,0 +1 @@
{"version":3,"file":"app.module.js","sourceRoot":"","sources":["app.module.ts"],"names":[],"mappings":";;AAAA,iCAAmC;AACnC,0BAAwB;AAExB,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC,UAAU,CAAC,EAAE,EAAC,QAAQ,EAAE,KAAK,EAAC,CAAC,CAAC"}

@ -0,0 +1,14 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var angular = require("angular");
function AttendanceInfoResolver($route, Attendance) {
var date = $route.current.params.date;
if (angular.isUndefined(date)) {
return Attendance.get({}).$promise;
}
else {
return Attendance.get({ date: date }).$promise;
}
}
exports.AttendanceInfoResolver = AttendanceInfoResolver;
//# sourceMappingURL=attendance-info.resolver.js.map

@ -0,0 +1 @@
{"version":3,"file":"attendance-info.resolver.js","sourceRoot":"","sources":["attendance-info.resolver.ts"],"names":[],"mappings":";;AAAA,iCAAmC;AAEnC,gCAAuC,MAAM,EAAE,UAAU;IACrD,IAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC;IACxC,IAAI,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE;QAC3B,OAAO,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC;KACtC;SAAM;QACH,OAAO,UAAU,CAAC,GAAG,CAAC,EAAC,IAAI,EAAE,IAAI,EAAC,CAAC,CAAC,QAAQ,CAAC;KAChD;AACL,CAAC;AAPD,wDAOC"}

@ -0,0 +1,31 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var angular = require("angular");
var AttendanceSubController = /** @class */ (function () {
function AttendanceSubController($scope) {
this.$scope = $scope;
this.attendanceTypes = $scope.attendanceTypes;
this.item = $scope.item;
this.original = {};
angular.copy(this.item, this.original);
}
AttendanceSubController.prototype.isLabel = function () {
return true;
};
AttendanceSubController.prototype.isError = function () {
return this.item.Worked === 'Error';
};
AttendanceSubController.prototype.isGood = function () {
return this.item.Worked === true;
};
AttendanceSubController.prototype.isBad = function () {
return this.item.Worked === false;
};
AttendanceSubController.prototype.isDirty = function () {
return !angular.equals(this.original, this.item);
};
AttendanceSubController.$inject = ['$scope'];
return AttendanceSubController;
}());
exports.AttendanceSubController = AttendanceSubController;
//# sourceMappingURL=attendance-sub.controller.js.map

@ -0,0 +1 @@
{"version":3,"file":"attendance-sub.controller.js","sourceRoot":"","sources":["attendance-sub.controller.ts"],"names":[],"mappings":";;AAAA,iCAAmC;AAEnC;IAMI,iCAAmB,MAAM;QAAN,WAAM,GAAN,MAAM,CAAA;QACrB,IAAI,CAAC,eAAe,GAAG,MAAM,CAAC,eAAe,CAAC;QAC9C,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QACxB,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;QACnB,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC3C,CAAC;IAED,yCAAO,GAAP;QACI,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,yCAAO,GAAP;QACI,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,KAAK,OAAO,CAAC;IACxC,CAAC;IAED,wCAAM,GAAN;QACI,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,KAAK,IAAI,CAAC;IACrC,CAAC;IAED,uCAAK,GAAL;QACI,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,KAAK,KAAK,CAAC;IACtC,CAAC;IAED,yCAAO,GAAP;QACI,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IACrD,CAAC;IA9BM,+BAAO,GAAG,CAAC,QAAQ,CAAC,CAAC;IA+BhC,8BAAC;CAAA,AAhCD,IAgCC;AAhCY,0DAAuB"}

@ -0,0 +1,17 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var attendance_sub_controller_1 = require("./attendance-sub.controller");
function AttendanceSubDirective() {
return {
scope: {
item: '=attendanceSub',
attendanceTypes: '=attendanceTypes'
},
restrict: 'A',
templateUrl: '/app/attendance/attendance-sub.html',
controller: attendance_sub_controller_1.AttendanceSubController,
controllerAs: 'vmSub',
};
}
exports.AttendanceSubDirective = AttendanceSubDirective;
//# sourceMappingURL=attendance-sub.directive.js.map

@ -0,0 +1 @@
{"version":3,"file":"attendance-sub.directive.js","sourceRoot":"","sources":["attendance-sub.directive.ts"],"names":[],"mappings":";;AAAA,yEAAoE;AAEpE;IACI,OAAO;QACH,KAAK,EAAE;YACH,IAAI,EAAE,gBAAgB;YACtB,eAAe,EAAE,kBAAkB;SACtC;QACD,QAAQ,EAAE,GAAG;QACb,WAAW,EAAE,qCAAqC;QAClD,UAAU,EAAE,mDAAuB;QACnC,YAAY,EAAE,OAAO;KACxB,CAAC;AACN,CAAC;AAXD,wDAWC"}

@ -0,0 +1,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function AttendanceTypesResolver(AttendanceTypes) {
return AttendanceTypes.query({}).$promise;
}
exports.AttendanceTypesResolver = AttendanceTypesResolver;
//# sourceMappingURL=attendance-types.resolver.js.map

@ -0,0 +1 @@
{"version":3,"file":"attendance-types.resolver.js","sourceRoot":"","sources":["attendance-types.resolver.ts"],"names":[],"mappings":";;AAAA,iCAAwC,eAAe;IACnD,OAAO,eAAe,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC;AAC9C,CAAC;AAFD,0DAEC"}

@ -0,0 +1,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function AttendanceTypes($resource) {
return $resource('/api/AttendanceTypes');
}
exports.AttendanceTypes = AttendanceTypes;
//# sourceMappingURL=attendance-types.service.js.map

@ -0,0 +1 @@
{"version":3,"file":"attendance-types.service.js","sourceRoot":"","sources":["attendance-types.service.ts"],"names":[],"mappings":";;AAAA,yBAAgC,SAAS;IACrC,OAAO,SAAS,CAAC,sBAAsB,CAAC,CAAC;AAC7C,CAAC;AAFD,0CAEC"}

@ -0,0 +1,9 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var attendance_controller_1 = require("./attendance.controller");
exports.AttendanceComponent = {
templateUrl: '/app/attendance/attendance.html',
controller: attendance_controller_1.AttendanceController,
controllerAs: 'vm',
};
//# sourceMappingURL=attendance.component.js.map

@ -0,0 +1 @@
{"version":3,"file":"attendance.component.js","sourceRoot":"","sources":["attendance.component.ts"],"names":[],"mappings":";;AAAA,iEAA6D;AAEhD,QAAA,mBAAmB,GAAG;IAC/B,WAAW,EAAE,iCAAiC;IAC9C,UAAU,EAAE,4CAAoB;IAChC,YAAY,EAAE,IAAI;CACrB,CAAC"}

@ -0,0 +1,38 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var AttendanceController = /** @class */ (function () {
function AttendanceController($scope, $location, asDate, Attendance, dateParser, Messages) {
this.$scope = $scope;
this.$location = $location;
this.asDate = asDate;
this.Attendance = Attendance;
this.dateParser = dateParser;
this.Messages = Messages;
this.attendanceTypes = $scope.$parent.res.attendanceTypes;
this.info = $scope.$parent.res.info;
this._info_Date = dateParser.parse(this.info.Date, "dd-MMM-yyyy");
this.foDate = true;
}
AttendanceController.prototype.info_Date = function (value) {
if (arguments.length) {
this.info.Date = this.asDate(value);
this._info_Date = value;
}
return this._info_Date;
};
AttendanceController.prototype.show = function () {
this.$location.path('/Attendance/' + this.info.Date);
};
AttendanceController.prototype.save = function () {
var _this = this;
return this.info.$save(function (u) {
_this.Messages.push({ Type: 'Success', Message: u.Code });
}, function (data) {
_this.Messages.push({ Type: 'Danger', Message: data.data });
});
};
AttendanceController.$inject = ['$scope', '$location', 'asDateFilter', 'Attendance', 'uibDateParser', 'Messages'];
return AttendanceController;
}());
exports.AttendanceController = AttendanceController;
//# sourceMappingURL=attendance.controller.js.map

@ -0,0 +1 @@
{"version":3,"file":"attendance.controller.js","sourceRoot":"","sources":["attendance.controller.ts"],"names":[],"mappings":";;AAAA;IAOI,8BAAmB,MAAM,EAAS,SAAS,EAAS,MAAM,EAAS,UAAU,EAAS,UAAU,EAAS,QAAQ;QAA9F,WAAM,GAAN,MAAM,CAAA;QAAS,cAAS,GAAT,SAAS,CAAA;QAAS,WAAM,GAAN,MAAM,CAAA;QAAS,eAAU,GAAV,UAAU,CAAA;QAAS,eAAU,GAAV,UAAU,CAAA;QAAS,aAAQ,GAAR,QAAQ,CAAA;QAC7G,IAAI,CAAC,eAAe,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC;QAC1D,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC;QACpC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;QAClE,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;IACvB,CAAC;IAED,wCAAS,GAAT,UAAU,KAAK;QACX,IAAI,SAAS,CAAC,MAAM,EAAE;YAClB,IAAI,CAAC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACpC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;SAC3B;QACD,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;IAED,mCAAI,GAAJ;QACI,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACzD,CAAC;IAED,mCAAI,GAAJ;QAAA,iBAMC;QALG,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,UAAC,CAAC;YACrB,KAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAC,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,CAAC,IAAI,EAAC,CAAC,CAAC;QAC3D,CAAC,EAAE,UAAC,IAAI;YACJ,KAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAC,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,CAAC,IAAI,EAAC,CAAC,CAAC;QAC7D,CAAC,CAAC,CAAC;IACP,CAAC;IA/BM,4BAAO,GAAG,CAAC,QAAQ,EAAE,WAAW,EAAE,cAAc,EAAE,YAAY,EAAE,eAAe,EAAE,UAAU,CAAC,CAAC;IAgCxG,2BAAC;CAAA,AAjCD,IAiCC;AAjCY,oDAAoB"}

@ -0,0 +1,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function Attendance($resource) {
return $resource('/api/Attendance/:date', { date: '@Date' });
}
exports.Attendance = Attendance;
//# sourceMappingURL=attendance.service.js.map

@ -0,0 +1 @@
{"version":3,"file":"attendance.service.js","sourceRoot":"","sources":["attendance.service.ts"],"names":[],"mappings":";;AAAA,oBAA2B,SAAS;IAChC,OAAO,SAAS,CAAC,uBAAuB,EAAE,EAAC,IAAI,EAAE,OAAO,EAAC,CAAC,CAAC;AAC/D,CAAC;AAFD,gCAEC"}

@ -0,0 +1,9 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var balance_sheet_controller_1 = require("./balance-sheet.controller");
exports.BalanceSheetComponent = {
templateUrl: '/app/balance-sheet/balance-sheet.html',
controller: balance_sheet_controller_1.BalanceSheetController,
controllerAs: 'vm'
};
//# sourceMappingURL=balance-sheet.component.js.map

@ -0,0 +1 @@
{"version":3,"file":"balance-sheet.component.js","sourceRoot":"","sources":["balance-sheet.component.ts"],"names":[],"mappings":";;AAAA,uEAAkE;AAErD,QAAA,qBAAqB,GAAG;IACjC,WAAW,EAAE,uCAAuC;IACpD,UAAU,EAAE,iDAAsB;IAClC,YAAY,EAAE,IAAI;CACrB,CAAC"}

@ -0,0 +1,27 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var BalanceSheetController = /** @class */ (function () {
function BalanceSheetController($scope, $location, asDate, dateParser) {
this.$scope = $scope;
this.$location = $location;
this.asDate = asDate;
this.dateParser = dateParser;
this.info = $scope.$parent.res.info;
this._info_Date = dateParser.parse(this.info.Date, "dd-MMM-yyyy");
this.foDate = true;
}
BalanceSheetController.prototype.info_Date = function (value) {
if (arguments.length) {
this.info.Date = this.asDate(value);
this._info_Date = value;
}
return this._info_Date;
};
BalanceSheetController.prototype.show = function () {
this.$location.path('/BalanceSheet/' + this.info.Date);
};
BalanceSheetController.$inject = ['$scope', '$location', 'asDateFilter', 'uibDateParser'];
return BalanceSheetController;
}());
exports.BalanceSheetController = BalanceSheetController;
//# sourceMappingURL=balance-sheet.controller.js.map

@ -0,0 +1 @@
{"version":3,"file":"balance-sheet.controller.js","sourceRoot":"","sources":["balance-sheet.controller.ts"],"names":[],"mappings":";;AAAA;IAMI,gCAAmB,MAAM,EAAS,SAAS,EAAS,MAAM,EAAS,UAAU;QAA1D,WAAM,GAAN,MAAM,CAAA;QAAS,cAAS,GAAT,SAAS,CAAA;QAAS,WAAM,GAAN,MAAM,CAAA;QAAS,eAAU,GAAV,UAAU,CAAA;QACzE,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC;QACpC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;QAClE,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;IACvB,CAAC;IAED,0CAAS,GAAT,UAAU,KAAK;QACX,IAAI,SAAS,CAAC,MAAM,EAAE;YAClB,IAAI,CAAC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;YACpC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;SAC3B;QACD,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;IAED,qCAAI,GAAJ;QACI,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC3D,CAAC;IArBM,8BAAO,GAAG,CAAC,QAAQ,EAAE,WAAW,EAAE,cAAc,EAAE,eAAe,CAAC,CAAC;IAsB9E,6BAAC;CAAA,AAvBD,IAuBC;AAvBY,wDAAsB"}

@ -0,0 +1,14 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var angular = require("angular");
function BalanceSheetResolver($route, BalanceSheet) {
var date = $route.current.params.date;
if (angular.isUndefined(date)) {
return BalanceSheet.get({}).$promise;
}
else {
return BalanceSheet.get({ date: date }).$promise;
}
}
exports.BalanceSheetResolver = BalanceSheetResolver;
//# sourceMappingURL=balance-sheet.resolver.js.map

@ -0,0 +1 @@
{"version":3,"file":"balance-sheet.resolver.js","sourceRoot":"","sources":["balance-sheet.resolver.ts"],"names":[],"mappings":";;AAAA,iCAAmC;AAEnC,8BAAqC,MAAM,EAAE,YAAY;IACrD,IAAM,IAAI,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC;IAExC,IAAI,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE;QAC3B,OAAO,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC;KACxC;SAAM;QACH,OAAO,YAAY,CAAC,GAAG,CAAC,EAAC,IAAI,EAAE,IAAI,EAAC,CAAC,CAAC,QAAQ,CAAC;KAClD;AACL,CAAC;AARD,oDAQC"}

@ -0,0 +1,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function BalanceSheet($resource) {
return $resource('/api/BalanceSheet/:date');
}
exports.BalanceSheet = BalanceSheet;
//# sourceMappingURL=balance-sheet.service.js.map

@ -0,0 +1 @@
{"version":3,"file":"balance-sheet.service.js","sourceRoot":"","sources":["balance-sheet.service.ts"],"names":[],"mappings":";;AAAA,sBAA6B,SAAS;IAClC,OAAO,SAAS,CAAC,yBAAyB,CAAC,CAAC;AAChD,CAAC;AAFD,oCAEC"}

@ -0,0 +1,42 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var angular = require("angular");
var BaseController = /** @class */ (function () {
function BaseController($rootScope, Auth, $location, $routeParams, Messages, Credentials) {
var _this = this;
this.$rootScope = $rootScope;
this.Auth = Auth;
this.$location = $location;
this.$routeParams = $routeParams;
this.Messages = Messages;
this.Credentials = Credentials;
$rootScope.$on('loginRequired', function () {
if (_this.Credentials.Auth.isAuthenticated) {
_this.$location.path('/');
}
else {
var came_from = _this.$routeParams.came_from;
if (angular.isUndefined(came_from) && $location.path() !== '/login') {
came_from = $location.url();
}
_this.$location.path('/login').search({ came_from: came_from });
}
});
$rootScope.$on("$routeChangeStart", function (event, next, current) {
_this.Auth.get(function (u, putResponseHeaders) {
_this.Credentials.Auth = u;
_this.Credentials.Perms = u.perms;
});
});
}
BaseController.prototype.clearToast = function (item) {
var idx = this.Messages.indexOf(item);
if (idx !== -1) {
this.Messages.splice(idx, 1);
}
};
BaseController.$inject = ['$rootScope', 'Auth', '$location', '$routeParams', 'Messages', 'Credentials'];
return BaseController;
}());
exports.BaseController = BaseController;
//# sourceMappingURL=base.controller.js.map

@ -0,0 +1 @@
{"version":3,"file":"base.controller.js","sourceRoot":"","sources":["base.controller.ts"],"names":[],"mappings":";;AAAA,iCAAmC;AAEnC;IAGI,wBAAmB,UAAU,EAAS,IAAI,EAAS,SAAS,EAAS,YAAY,EAAS,QAAQ,EAAS,WAAW;QAAtH,iBAkBC;QAlBkB,eAAU,GAAV,UAAU,CAAA;QAAS,SAAI,GAAJ,IAAI,CAAA;QAAS,cAAS,GAAT,SAAS,CAAA;QAAS,iBAAY,GAAZ,YAAY,CAAA;QAAS,aAAQ,GAAR,QAAQ,CAAA;QAAS,gBAAW,GAAX,WAAW,CAAA;QAClH,UAAU,CAAC,GAAG,CAAC,eAAe,EAAE;YAC5B,IAAI,KAAI,CAAC,WAAW,CAAC,IAAI,CAAC,eAAe,EAAE;gBACvC,KAAI,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;aAC5B;iBAAM;gBACH,IAAI,SAAS,GAAG,KAAI,CAAC,YAAY,CAAC,SAAS,CAAC;gBAC5C,IAAI,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,IAAI,SAAS,CAAC,IAAI,EAAE,KAAK,QAAQ,EAAE;oBACjE,SAAS,GAAG,SAAS,CAAC,GAAG,EAAE,CAAC;iBAC/B;gBACD,KAAI,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,EAAC,SAAS,EAAE,SAAS,EAAC,CAAC,CAAC;aAChE;QACL,CAAC,CAAC,CAAC;QACH,UAAU,CAAC,GAAG,CAAC,mBAAmB,EAAE,UAAC,KAAK,EAAE,IAAI,EAAE,OAAO;YACrD,KAAI,CAAC,IAAI,CAAC,GAAG,CAAC,UAAC,CAAC,EAAE,kBAAkB;gBAChC,KAAI,CAAC,WAAW,CAAC,IAAI,GAAG,CAAC,CAAC;gBAC1B,KAAI,CAAC,WAAW,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC;YACrC,CAAC,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACP,CAAC;IAED,mCAAU,GAAV,UAAW,IAAI;QACX,IAAI,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;QACtC,IAAI,GAAG,KAAK,CAAC,CAAC,EAAE;YACZ,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;SAChC;IACL,CAAC;IA3BM,sBAAO,GAAG,CAAC,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,UAAU,EAAE,aAAa,CAAC,CAAC;IA4BpG,qBAAC;CAAA,AA7BD,IA6BC;AA7BY,wCAAc"}

@ -0,0 +1,9 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var cash_flow_controller_1 = require("./cash-flow.controller");
exports.CashFlowComponent = {
templateUrl: '/app/cash-flow/cash-flow.html',
controller: cash_flow_controller_1.CashFlowController,
controllerAs: 'vm',
};
//# sourceMappingURL=cash-flow.component.js.map

@ -0,0 +1 @@
{"version":3,"file":"cash-flow.component.js","sourceRoot":"","sources":["cash-flow.component.ts"],"names":[],"mappings":";;AAAA,+DAA0D;AAE7C,QAAA,iBAAiB,GAAG;IAC7B,WAAW,EAAE,+BAA+B;IAC5C,UAAU,EAAE,yCAAkB;IAC9B,YAAY,EAAE,IAAI;CACrB,CAAC"}

@ -0,0 +1,42 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var CashFlowController = /** @class */ (function () {
function CashFlowController($scope, $routeParams, $location, asDate, dateParser) {
this.$scope = $scope;
this.$routeParams = $routeParams;
this.$location = $location;
this.asDate = asDate;
this.dateParser = dateParser;
this.cashFlow = $scope.$parent.res.cashFlow;
this._info_StartDate = dateParser.parse(this.cashFlow.StartDate, "dd-MMM-yyyy");
this._info_FinishDate = dateParser.parse(this.cashFlow.FinishDate, "dd-MMM-yyyy");
this.info = this.cashFlow;
this.foDate = true;
}
CashFlowController.prototype.info_StartDate = function (value) {
if (arguments.length) {
this.info.StartDate = this.asDate(value);
this._info_StartDate = value;
}
return this._info_StartDate;
};
CashFlowController.prototype.info_FinishDate = function (value) {
if (arguments.length) {
this.info.FinishDate = this.asDate(value);
this._info_FinishDate = value;
}
return this._info_FinishDate;
};
CashFlowController.prototype.show = function () {
this.$location.path('/CashFlow').search({ StartDate: this.info.StartDate, FinishDate: this.info.FinishDate });
};
CashFlowController.prototype.total = function (type) {
return this.info.Body[type].reduce(function (accumulator, current) {
return accumulator + current.Amount;
}, 0);
};
CashFlowController.$inject = ['$scope', '$routeParams', '$location', 'asDateFilter', 'uibDateParser'];
return CashFlowController;
}());
exports.CashFlowController = CashFlowController;
//# sourceMappingURL=cash-flow.controller.js.map

@ -0,0 +1 @@
{"version":3,"file":"cash-flow.controller.js","sourceRoot":"","sources":["cash-flow.controller.ts"],"names":[],"mappings":";;AAAA;IAQI,4BAAmB,MAAM,EAAS,YAAY,EAAS,SAAS,EAAS,MAAM,EAAS,UAAU;QAA/E,WAAM,GAAN,MAAM,CAAA;QAAS,iBAAY,GAAZ,YAAY,CAAA;QAAS,cAAS,GAAT,SAAS,CAAA;QAAS,WAAM,GAAN,MAAM,CAAA;QAAS,eAAU,GAAV,UAAU,CAAA;QAC9F,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC;QAC5C,IAAI,CAAC,eAAe,GAAG,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;QAChF,IAAI,CAAC,gBAAgB,GAAG,UAAU,CAAC,KAAK,CAAC,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AyCC;AAzCY,gDAAkB"}

@ -0,0 +1,17 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var angular = require("angular");
function CashFlowResolver($route, CashFlow) {
var id = $route.current.params.id, startDate = $route.current.params.StartDate, finishDate = $route.current.params.FinishDate;
if (angular.isUndefined(startDate) || angular.isUndefined(finishDate)) {
return CashFlow.get({}).$promise;
}
else if (angular.isUndefined(id)) {
return CashFlow.get({ StartDate: startDate, FinishDate: finishDate }).$promise;
}
else {
return CashFlow.get({ id: id, StartDate: startDate, FinishDate: finishDate }).$promise;
}
}
exports.CashFlowResolver = CashFlowResolver;
//# sourceMappingURL=cash-flow.resolver.js.map

@ -0,0 +1 @@
{"version":3,"file":"cash-flow.resolver.js","sourceRoot":"","sources":["cash-flow.resolver.ts"],"names":[],"mappings":";;AAAA,iCAAmC;AAEnC,0BAAiC,MAAM,EAAE,QAAQ;IAC7C,IAAM,EAAE,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,EAC/B,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,SAAS,EAC3C,UAAU,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC;IAElD,IAAI,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,IAAI,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC,EAAE;QACnE,OAAO,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC;KACpC;SAAM,IAAI,OAAO,CAAC,WAAW,CAAC,EAAE,CAAC,EAAE;QAChC,OAAO,QAAQ,CAAC,GAAG,CAAC,EAAC,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAC,CAAC,CAAC,QAAQ,CAAC;KAChF;SAAM;QACH,OAAO,QAAQ,CAAC,GAAG,CAAC,EAAC,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAC,CAAC,CAAC,QAAQ,CAAC;KACxF;AACL,CAAC;AAZD,4CAYC"}

@ -0,0 +1,7 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function CashFlow($resource) {
return $resource('/api/CashFlow/:id');
}
exports.CashFlow = CashFlow;
//# sourceMappingURL=cash-flow.service.js.map

@ -0,0 +1 @@
{"version":3,"file":"cash-flow.service.js","sourceRoot":"","sources":["cash-flow.service.ts"],"names":[],"mappings":";;AAAA,kBAAyB,SAAS;IAC9B,OAAO,SAAS,CAAC,mBAAmB,CAAC,CAAC;AAC1C,CAAC;AAFD,4BAEC"}

@ -0,0 +1,9 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var client_list_controller_1 = require("./client-list.controller");
exports.ClientListComponent = {
templateUrl: '/app/client/client-list.html',
controller: client_list_controller_1.ClientListController,
controllerAs: 'vm'
};
//# sourceMappingURL=client-list.component.js.map

@ -0,0 +1 @@
{"version":3,"file":"client-list.component.js","sourceRoot":"","sources":["client-list.component.ts"],"names":[],"mappings":";;AAAA,mEAA8D;AAEjD,QAAA,mBAAmB,GAAG;IAC/B,WAAW,EAAE,8BAA8B;IAC3C,UAAU,EAAE,6CAAoB;IAChC,YAAY,EAAE,IAAI;CACrB,CAAC"}

Some files were not shown because too many files have changed in this diff Show More