tnp-helpers 0.0.73 → 13.0.5
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/app.js +2 -1
- package/browser/README.md +24 -0
- package/browser/esm2020/lib/base-component.mjs +48 -0
- package/browser/esm2020/lib/base-formly-component.mjs +124 -0
- package/browser/esm2020/lib/condition-wait.mjs +54 -0
- package/browser/esm2020/lib/constants.mjs +2 -0
- package/browser/esm2020/lib/dual-component-ctrl.mjs +117 -0
- package/browser/esm2020/lib/helpers-array-obj.mjs +81 -0
- package/browser/esm2020/lib/helpers-environment.mjs +21 -0
- package/browser/esm2020/lib/helpers-strings-regexes.mjs +49 -0
- package/browser/esm2020/lib/helpers-strings.mjs +61 -0
- package/browser/esm2020/lib/helpers.mjs +106 -0
- package/browser/esm2020/lib/index.mjs +11 -0
- package/browser/esm2020/lib/long-press.directive.mjs +106 -0
- package/browser/esm2020/lib/project.mjs +90 -0
- package/browser/esm2020/lib/resize-service.mjs +20 -0
- package/browser/esm2020/public-api.mjs +2 -0
- package/browser/esm2020/tnp-helpers.mjs +5 -0
- package/browser/fesm2015/tnp-helpers.mjs +870 -0
- package/browser/fesm2015/tnp-helpers.mjs.map +1 -0
- package/browser/fesm2020/tnp-helpers.mjs +861 -0
- package/browser/fesm2020/tnp-helpers.mjs.map +1 -0
- package/browser/{base-component.d.ts → lib/base-component.d.ts} +3 -0
- package/browser/{base-formly-component.d.ts → lib/base-formly-component.d.ts} +4 -3
- package/browser/{condition-wait.d.ts → lib/condition-wait.d.ts} +0 -0
- package/browser/{constants.d.ts → lib/constants.d.ts} +0 -0
- package/browser/{dual-component-ctrl.d.ts → lib/dual-component-ctrl.d.ts} +1 -2
- package/{helpers-array-obj.d.ts → browser/lib/helpers-array-obj.d.ts} +1 -0
- package/browser/{helpers-environment.d.ts → lib/helpers-environment.d.ts} +0 -0
- package/browser/{helpers-strings-regexes.d.ts → lib/helpers-strings-regexes.d.ts} +0 -0
- package/browser/{helpers-strings.d.ts → lib/helpers-strings.d.ts} +0 -0
- package/browser/{helpers.d.ts → lib/helpers.d.ts} +2 -4
- package/{client → browser/lib}/index.d.ts +1 -1
- package/{client → browser/lib}/long-press.directive.d.ts +3 -0
- package/browser/{project.d.ts → lib/project.d.ts} +0 -0
- package/{client → browser/lib}/resize-service.d.ts +3 -0
- package/browser/package.json +31 -0
- package/browser/public-api.d.ts +1 -0
- package/browser/tnp-helpers.d.ts +5 -0
- package/client/README.md +24 -0
- package/client/esm2020/lib/base-component.mjs +48 -0
- package/client/esm2020/lib/base-formly-component.mjs +124 -0
- package/client/esm2020/lib/condition-wait.mjs +54 -0
- package/client/esm2020/lib/constants.mjs +2 -0
- package/client/esm2020/lib/dual-component-ctrl.mjs +117 -0
- package/client/esm2020/lib/helpers-array-obj.mjs +81 -0
- package/client/esm2020/lib/helpers-environment.mjs +21 -0
- package/client/esm2020/lib/helpers-strings-regexes.mjs +49 -0
- package/client/esm2020/lib/helpers-strings.mjs +61 -0
- package/client/esm2020/lib/helpers.mjs +106 -0
- package/client/esm2020/lib/index.mjs +11 -0
- package/client/esm2020/lib/long-press.directive.mjs +106 -0
- package/client/esm2020/lib/project.mjs +90 -0
- package/client/esm2020/lib/resize-service.mjs +20 -0
- package/client/esm2020/public-api.mjs +2 -0
- package/client/esm2020/tnp-helpers.mjs +5 -0
- package/client/fesm2015/tnp-helpers.mjs +870 -0
- package/client/fesm2015/tnp-helpers.mjs.map +1 -0
- package/client/fesm2020/tnp-helpers.mjs +861 -0
- package/client/fesm2020/tnp-helpers.mjs.map +1 -0
- package/client/{base-component.d.ts → lib/base-component.d.ts} +3 -0
- package/{base-formly-component.d.ts → client/lib/base-formly-component.d.ts} +4 -3
- package/client/{condition-wait.d.ts → lib/condition-wait.d.ts} +0 -0
- package/client/{constants.d.ts → lib/constants.d.ts} +0 -0
- package/client/{dual-component-ctrl.d.ts → lib/dual-component-ctrl.d.ts} +1 -2
- package/client/{helpers-array-obj.d.ts → lib/helpers-array-obj.d.ts} +1 -0
- package/client/{helpers-environment.d.ts → lib/helpers-environment.d.ts} +0 -0
- package/client/{helpers-strings-regexes.d.ts → lib/helpers-strings-regexes.d.ts} +0 -0
- package/client/{helpers-strings.d.ts → lib/helpers-strings.d.ts} +0 -0
- package/client/{helpers.d.ts → lib/helpers.d.ts} +2 -4
- package/{browser → client/lib}/index.d.ts +1 -1
- package/{browser → client/lib}/long-press.directive.d.ts +3 -0
- package/client/{project.d.ts → lib/project.d.ts} +0 -0
- package/{resize-service.d.ts → client/lib/resize-service.d.ts} +3 -0
- package/client/package.json +25 -19
- package/client/public-api.d.ts +1 -0
- package/client/tnp-helpers.d.ts +5 -0
- package/index.d.ts +1 -11
- package/index.js +3 -21
- package/index.js.map +1 -1
- package/{base-component.d.ts → lib/base-component.d.ts} +0 -0
- package/{base-component.js → lib/base-component.js} +8 -7
- package/lib/base-component.js.map +1 -0
- package/{client → lib}/base-formly-component.d.ts +1 -3
- package/{base-formly-component.js → lib/base-formly-component.js} +46 -47
- package/lib/base-formly-component.js.map +1 -0
- package/{condition-wait.d.ts → lib/condition-wait.d.ts} +0 -0
- package/{condition-wait.js → lib/condition-wait.js} +10 -9
- package/lib/condition-wait.js.map +1 -0
- package/{constants.d.ts → lib/constants.d.ts} +0 -0
- package/{constants.js → lib/constants.js} +2 -1
- package/lib/constants.js.map +1 -0
- package/{dual-component-ctrl.d.ts → lib/dual-component-ctrl.d.ts} +1 -2
- package/{dual-component-ctrl.js → lib/dual-component-ctrl.js} +3 -1
- package/lib/dual-component-ctrl.js.map +1 -0
- package/{git-project.d.ts → lib/git-project.d.ts} +4 -3
- package/{git-project.js → lib/git-project.js} +20 -11
- package/lib/git-project.js.map +1 -0
- package/{browser → lib}/helpers-array-obj.d.ts +1 -0
- package/{helpers-array-obj.js → lib/helpers-array-obj.js} +8 -1
- package/lib/helpers-array-obj.js.map +1 -0
- package/{helpers-cli-tool.backend.d.ts → lib/helpers-cli-tool.backend.d.ts} +0 -0
- package/{helpers-cli-tool.backend.js → lib/helpers-cli-tool.backend.js} +5 -4
- package/lib/helpers-cli-tool.backend.js.map +1 -0
- package/{helpers-dependencies.backend.d.ts → lib/helpers-dependencies.backend.d.ts} +0 -0
- package/{helpers-dependencies.backend.js → lib/helpers-dependencies.backend.js} +6 -5
- package/lib/helpers-dependencies.backend.js.map +1 -0
- package/{helpers-environment.d.ts → lib/helpers-environment.d.ts} +0 -0
- package/{helpers-environment.js → lib/helpers-environment.js} +2 -1
- package/lib/helpers-environment.js.map +1 -0
- package/{helpers-file-folders.backend.d.ts → lib/helpers-file-folders.backend.d.ts} +1 -0
- package/{helpers-file-folders.backend.js → lib/helpers-file-folders.backend.js} +66 -47
- package/lib/helpers-file-folders.backend.js.map +1 -0
- package/{helpers-git.backend.d.ts → lib/helpers-git.backend.d.ts} +3 -1
- package/{helpers-git.backend.js → lib/helpers-git.backend.js} +83 -55
- package/lib/helpers-git.backend.js.map +1 -0
- package/{helpers-json5.backend.d.ts → lib/helpers-json5.backend.d.ts} +0 -0
- package/{helpers-json5.backend.js → lib/helpers-json5.backend.js} +3 -2
- package/lib/helpers-json5.backend.js.map +1 -0
- package/{helpers-morphi-framework.backend.d.ts → lib/helpers-morphi-framework.backend.d.ts} +0 -0
- package/{helpers-morphi-framework.backend.js → lib/helpers-morphi-framework.backend.js} +4 -3
- package/lib/helpers-morphi-framework.backend.js.map +1 -0
- package/{helpers-network.backend.d.ts → lib/helpers-network.backend.d.ts} +0 -0
- package/{helpers-network.backend.js → lib/helpers-network.backend.js} +2 -1
- package/lib/helpers-network.backend.js.map +1 -0
- package/{helpers-npm.backend.d.ts → lib/helpers-npm.backend.d.ts} +0 -0
- package/{helpers-npm.backend.js → lib/helpers-npm.backend.js} +2 -1
- package/lib/helpers-npm.backend.js.map +1 -0
- package/{helpers-path.backend.d.ts → lib/helpers-path.backend.d.ts} +0 -0
- package/{helpers-path.backend.js → lib/helpers-path.backend.js} +4 -3
- package/lib/helpers-path.backend.js.map +1 -0
- package/{helpers-process.backend.d.ts → lib/helpers-process.backend.d.ts} +2 -2
- package/{helpers-process.backend.js → lib/helpers-process.backend.js} +54 -53
- package/lib/helpers-process.backend.js.map +1 -0
- package/{helpers-strings-regexes.d.ts → lib/helpers-strings-regexes.d.ts} +0 -0
- package/{helpers-strings-regexes.js → lib/helpers-strings-regexes.js} +2 -1
- package/lib/helpers-strings-regexes.js.map +1 -0
- package/{helpers-strings.d.ts → lib/helpers-strings.d.ts} +0 -0
- package/{helpers-strings.js → lib/helpers-strings.js} +2 -1
- package/lib/helpers-strings.js.map +1 -0
- package/{helpers-system-terminal.backend.d.ts → lib/helpers-system-terminal.backend.d.ts} +1 -1
- package/{helpers-system-terminal.backend.js → lib/helpers-system-terminal.backend.js} +9 -8
- package/lib/helpers-system-terminal.backend.js.map +1 -0
- package/{helpers.d.ts → lib/helpers.d.ts} +6 -6
- package/{helpers.js → lib/helpers.js} +34 -30
- package/lib/helpers.js.map +1 -0
- package/{client/index.js → lib/index.d.ts} +3 -3
- package/lib/index.js +25 -0
- package/lib/index.js.map +1 -0
- package/{long-press.directive.d.ts → lib/long-press.directive.d.ts} +0 -0
- package/{long-press.directive.js → lib/long-press.directive.js} +40 -39
- package/lib/long-press.directive.js.map +1 -0
- package/{merge-helpers.backend.d.ts → lib/merge-helpers.backend.d.ts} +0 -0
- package/{merge-helpers.backend.js → lib/merge-helpers.backend.js} +7 -6
- package/lib/merge-helpers.backend.js.map +1 -0
- package/{project.d.ts → lib/project.d.ts} +0 -0
- package/{project.js → lib/project.js} +23 -21
- package/lib/project.js.map +1 -0
- package/{browser → lib}/resize-service.d.ts +0 -0
- package/{resize-service.js → lib/resize-service.js} +5 -4
- package/lib/resize-service.js.map +1 -0
- package/{ts-code-modifier → lib/ts-code}/index.d.ts +0 -0
- package/{ts-code-modifier → lib/ts-code}/index.js +3 -2
- package/lib/ts-code/index.js.map +1 -0
- package/lib/ts-code/ts-code-extractor.d.ts +14 -0
- package/lib/ts-code/ts-code-extractor.js +47 -0
- package/lib/ts-code/ts-code-extractor.js.map +1 -0
- package/{ts-code-modifier → lib/ts-code}/ts-code-modifier.backend.d.ts +0 -0
- package/{ts-code-modifier → lib/ts-code}/ts-code-modifier.backend.js +3 -2
- package/lib/ts-code/ts-code-modifier.backend.js.map +1 -0
- package/package.json +10 -18
- package/package.json_devDependencies.json +40 -40
- package/{package.json_tnp.json → package.json_tnp.json5} +12 -8
- package/tmp-environment.json +85 -122
- package/base-component.js.map +0 -1
- package/base-formly-component.js.map +0 -1
- package/browser/base-component.js +0 -48
- package/browser/base-component.js.map +0 -1
- package/browser/base-formly-component.js +0 -149
- package/browser/base-formly-component.js.map +0 -1
- package/browser/condition-wait.js +0 -57
- package/browser/condition-wait.js.map +0 -1
- package/browser/constants.js +0 -2
- package/browser/constants.js.map +0 -1
- package/browser/dual-component-ctrl.js +0 -118
- package/browser/dual-component-ctrl.js.map +0 -1
- package/browser/es5/base-component.js +0 -89
- package/browser/es5/base-formly-component.js +0 -158
- package/browser/es5/condition-wait.js +0 -135
- package/browser/es5/constants.js +0 -7
- package/browser/es5/dual-component-ctrl.js +0 -164
- package/browser/es5/git-project.js +0 -18
- package/browser/es5/helpers-array-obj.js +0 -129
- package/browser/es5/helpers-environment.js +0 -46
- package/browser/es5/helpers-messages.js +0 -105
- package/browser/es5/helpers-strings-regexes.js +0 -74
- package/browser/es5/helpers-strings.js +0 -96
- package/browser/es5/helpers.js +0 -217
- package/browser/es5/index.js +0 -86
- package/browser/es5/long-press.directive.js +0 -133
- package/browser/es5/project.js +0 -146
- package/browser/es5/resize-service.js +0 -45
- package/browser/git-project.d.ts +0 -2
- package/browser/git-project.js +0 -6
- package/browser/git-project.js.map +0 -1
- package/browser/helpers-array-obj.js +0 -75
- package/browser/helpers-array-obj.js.map +0 -1
- package/browser/helpers-environment.js +0 -21
- package/browser/helpers-environment.js.map +0 -1
- package/browser/helpers-messages.d.ts +0 -7
- package/browser/helpers-messages.js +0 -68
- package/browser/helpers-messages.js.map +0 -1
- package/browser/helpers-strings-regexes.js +0 -49
- package/browser/helpers-strings-regexes.js.map +0 -1
- package/browser/helpers-strings.js +0 -61
- package/browser/helpers-strings.js.map +0 -1
- package/browser/helpers.js +0 -113
- package/browser/helpers.js.map +0 -1
- package/browser/index.js +0 -11
- package/browser/index.js.map +0 -1
- package/browser/long-press.directive.js +0 -125
- package/browser/long-press.directive.js.map +0 -1
- package/browser/project.js +0 -90
- package/browser/project.js.map +0 -1
- package/browser/resize-service.js +0 -20
- package/browser/resize-service.js.map +0 -1
- package/client/base-component.js +0 -48
- package/client/base-component.js.map +0 -1
- package/client/base-formly-component.js +0 -149
- package/client/base-formly-component.js.map +0 -1
- package/client/condition-wait.js +0 -57
- package/client/condition-wait.js.map +0 -1
- package/client/constants.js +0 -2
- package/client/constants.js.map +0 -1
- package/client/dual-component-ctrl.js +0 -118
- package/client/dual-component-ctrl.js.map +0 -1
- package/client/es5/base-component.js +0 -89
- package/client/es5/base-formly-component.js +0 -158
- package/client/es5/condition-wait.js +0 -135
- package/client/es5/constants.js +0 -7
- package/client/es5/dual-component-ctrl.js +0 -164
- package/client/es5/git-project.js +0 -18
- package/client/es5/helpers-array-obj.js +0 -129
- package/client/es5/helpers-environment.js +0 -46
- package/client/es5/helpers-messages.js +0 -105
- package/client/es5/helpers-strings-regexes.js +0 -74
- package/client/es5/helpers-strings.js +0 -96
- package/client/es5/helpers.js +0 -217
- package/client/es5/index.js +0 -86
- package/client/es5/long-press.directive.js +0 -133
- package/client/es5/project.js +0 -146
- package/client/es5/resize-service.js +0 -45
- package/client/git-project.d.ts +0 -2
- package/client/git-project.js +0 -6
- package/client/git-project.js.map +0 -1
- package/client/helpers-array-obj.js +0 -75
- package/client/helpers-array-obj.js.map +0 -1
- package/client/helpers-environment.js +0 -21
- package/client/helpers-environment.js.map +0 -1
- package/client/helpers-messages.d.ts +0 -7
- package/client/helpers-messages.js +0 -68
- package/client/helpers-messages.js.map +0 -1
- package/client/helpers-strings-regexes.js +0 -49
- package/client/helpers-strings-regexes.js.map +0 -1
- package/client/helpers-strings.js +0 -61
- package/client/helpers-strings.js.map +0 -1
- package/client/helpers.js +0 -113
- package/client/helpers.js.map +0 -1
- package/client/index.js.map +0 -1
- package/client/long-press.directive.js +0 -125
- package/client/long-press.directive.js.map +0 -1
- package/client/project.js +0 -90
- package/client/project.js.map +0 -1
- package/client/resize-service.js +0 -20
- package/client/resize-service.js.map +0 -1
- package/condition-wait.js.map +0 -1
- package/constants.js.map +0 -1
- package/dual-component-ctrl.js.map +0 -1
- package/git-project.js.map +0 -1
- package/helpers-array-obj.js.map +0 -1
- package/helpers-cli-tool.backend.js.map +0 -1
- package/helpers-dependencies.backend.js.map +0 -1
- package/helpers-environment.js.map +0 -1
- package/helpers-file-folders.backend.js.map +0 -1
- package/helpers-git.backend.js.map +0 -1
- package/helpers-json5.backend.js.map +0 -1
- package/helpers-messages.d.ts +0 -7
- package/helpers-messages.js +0 -237
- package/helpers-messages.js.map +0 -1
- package/helpers-morphi-framework.backend.js.map +0 -1
- package/helpers-network.backend.js.map +0 -1
- package/helpers-npm.backend.js.map +0 -1
- package/helpers-path.backend.js.map +0 -1
- package/helpers-process.backend.js.map +0 -1
- package/helpers-strings-regexes.js.map +0 -1
- package/helpers-strings.js.map +0 -1
- package/helpers-system-terminal.backend.js.map +0 -1
- package/helpers.js.map +0 -1
- package/long-press.directive.js.map +0 -1
- package/merge-helpers.backend.js.map +0 -1
- package/project.js.map +0 -1
- package/resize-service.js.map +0 -1
- package/ts-code-modifier/index.js.map +0 -1
- package/ts-code-modifier/ts-code-modifier.backend.js.map +0 -1
package/client/es5/helpers.js
DELETED
|
@@ -1,217 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.HelpersTnp = undefined;
|
|
7
|
-
|
|
8
|
-
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
9
|
-
|
|
10
|
-
exports.applyMixins = applyMixins;
|
|
11
|
-
|
|
12
|
-
var _tslib = require('tslib');
|
|
13
|
-
|
|
14
|
-
var _browser = require('tnp-core/browser');
|
|
15
|
-
|
|
16
|
-
var _helpersArrayObj = require('./helpers-array-obj');
|
|
17
|
-
|
|
18
|
-
var _helpersMessages = require('./helpers-messages');
|
|
19
|
-
|
|
20
|
-
var _helpersStringsRegexes = require('./helpers-strings-regexes');
|
|
21
|
-
|
|
22
|
-
var _helpersEnvironment = require('./helpers-environment');
|
|
23
|
-
|
|
24
|
-
var _helpersStrings = require('./helpers-strings');
|
|
25
|
-
|
|
26
|
-
var _conditionWait = require('./condition-wait');
|
|
27
|
-
|
|
28
|
-
var _index = require('./index');
|
|
29
|
-
|
|
30
|
-
var _browser2 = require('typescript-class-helpers/browser');
|
|
31
|
-
|
|
32
|
-
var _browser3 = require('morphi/browser');
|
|
33
|
-
|
|
34
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
35
|
-
|
|
36
|
-
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
|
|
37
|
-
|
|
38
|
-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
|
|
39
|
-
|
|
40
|
-
function applyMixins(derivedCtor, baseCtors) {
|
|
41
|
-
baseCtors.forEach(function (baseCtor) {
|
|
42
|
-
Object.getOwnPropertyNames(baseCtor.prototype).forEach(function (name) {
|
|
43
|
-
Object.defineProperty(derivedCtor.prototype, name, Object.getOwnPropertyDescriptor(baseCtor.prototype, name));
|
|
44
|
-
});
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
// @ts-ignore
|
|
48
|
-
|
|
49
|
-
var HelpersTnp = exports.HelpersTnp = function (_CoreHelpers) {
|
|
50
|
-
_inherits(HelpersTnp, _CoreHelpers);
|
|
51
|
-
|
|
52
|
-
function HelpersTnp() {
|
|
53
|
-
var arrays = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : new _helpersArrayObj.HelpersArrayObj();
|
|
54
|
-
var strings = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new _helpersStrings.HelpersStrings();
|
|
55
|
-
|
|
56
|
-
_classCallCheck(this, HelpersTnp);
|
|
57
|
-
|
|
58
|
-
var _this = _possibleConstructorReturn(this, (HelpersTnp.__proto__ || Object.getPrototypeOf(HelpersTnp)).call(this));
|
|
59
|
-
|
|
60
|
-
_this.arrays = arrays;
|
|
61
|
-
_this.strings = strings;
|
|
62
|
-
_this.conditionWait = _conditionWait.conditionWait;
|
|
63
|
-
_this.applyMixins = applyMixins;
|
|
64
|
-
return _this;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
_createClass(HelpersTnp, [{
|
|
68
|
-
key: 'CLIWRAP',
|
|
69
|
-
value: function CLIWRAP(f, name) {
|
|
70
|
-
_browser2.CLASS.setName(f, name);
|
|
71
|
-
return f;
|
|
72
|
-
}
|
|
73
|
-
}, {
|
|
74
|
-
key: 'isElevated',
|
|
75
|
-
value: function isElevated() {
|
|
76
|
-
return (0, _tslib.__awaiter)(this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
77
|
-
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
78
|
-
while (1) {
|
|
79
|
-
switch (_context.prev = _context.next) {
|
|
80
|
-
case 0:
|
|
81
|
-
case 'end':
|
|
82
|
-
return _context.stop();
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}, _callee, this);
|
|
86
|
-
}));
|
|
87
|
-
}
|
|
88
|
-
}, {
|
|
89
|
-
key: 'mesureExectionInMs',
|
|
90
|
-
value: function mesureExectionInMs(description, functionToExecute) {
|
|
91
|
-
for (var _len = arguments.length, functionArguments = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
92
|
-
functionArguments[_key - 2] = arguments[_key];
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
return (0, _tslib.__awaiter)(this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
96
|
-
var start, end;
|
|
97
|
-
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
98
|
-
while (1) {
|
|
99
|
-
switch (_context2.prev = _context2.next) {
|
|
100
|
-
case 0:
|
|
101
|
-
start = new Date();
|
|
102
|
-
_context2.next = 3;
|
|
103
|
-
return _index.Helpers.runSyncOrAsync.apply(_index.Helpers, [functionToExecute].concat(functionArguments));
|
|
104
|
-
|
|
105
|
-
case 3:
|
|
106
|
-
//@ts-ignore
|
|
107
|
-
end = new Date() - start;
|
|
108
|
-
|
|
109
|
-
if (_browser3.Morphi.IsBrowser) {
|
|
110
|
-
_index.Helpers.info('Execution time: ' + end.toString() + 'ms for "' + description + '"');
|
|
111
|
-
}
|
|
112
|
-
return _context2.abrupt('return', end);
|
|
113
|
-
|
|
114
|
-
case 6:
|
|
115
|
-
case 'end':
|
|
116
|
-
return _context2.stop();
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
}, _callee2, this);
|
|
120
|
-
}));
|
|
121
|
-
}
|
|
122
|
-
}, {
|
|
123
|
-
key: 'mesureExectionInMsSync',
|
|
124
|
-
value: function mesureExectionInMsSync(description, functionToExecute) {
|
|
125
|
-
var start = new Date();
|
|
126
|
-
functionToExecute();
|
|
127
|
-
//@ts-ignore
|
|
128
|
-
var end = new Date() - start;
|
|
129
|
-
if (_browser3.Morphi.IsBrowser) {
|
|
130
|
-
_index.Helpers.info('Execution time: ' + end.toString() + 'ms for "' + description + '"');
|
|
131
|
-
}
|
|
132
|
-
return end;
|
|
133
|
-
}
|
|
134
|
-
}, {
|
|
135
|
-
key: 'waitForCondition',
|
|
136
|
-
value: function waitForCondition(conditionFn) {
|
|
137
|
-
var _this2 = this;
|
|
138
|
-
|
|
139
|
-
var howOfftenCheckInMs = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1000;
|
|
140
|
-
|
|
141
|
-
return new Promise(function (resolve, reject) {
|
|
142
|
-
return (0, _tslib.__awaiter)(_this2, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
|
|
143
|
-
var result;
|
|
144
|
-
return regeneratorRuntime.wrap(function _callee3$(_context3) {
|
|
145
|
-
while (1) {
|
|
146
|
-
switch (_context3.prev = _context3.next) {
|
|
147
|
-
case 0:
|
|
148
|
-
_context3.next = 2;
|
|
149
|
-
return _index.Helpers.runSyncOrAsync(conditionFn);
|
|
150
|
-
|
|
151
|
-
case 2:
|
|
152
|
-
result = _context3.sent;
|
|
153
|
-
|
|
154
|
-
if (result) {
|
|
155
|
-
resolve(void 0);
|
|
156
|
-
} else {
|
|
157
|
-
setTimeout(function () {
|
|
158
|
-
_index.Helpers.waitForCondition(conditionFn, howOfftenCheckInMs).then(function () {
|
|
159
|
-
resolve(void 0);
|
|
160
|
-
});
|
|
161
|
-
}, howOfftenCheckInMs);
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
case 4:
|
|
165
|
-
case 'end':
|
|
166
|
-
return _context3.stop();
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
}, _callee3, this);
|
|
170
|
-
}));
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
}, {
|
|
174
|
-
key: 'getBrowserVerPath',
|
|
175
|
-
value: function getBrowserVerPath(moduleName) {}
|
|
176
|
-
}, {
|
|
177
|
-
key: 'getMethodName',
|
|
178
|
-
value: function getMethodName(obj, method) {
|
|
179
|
-
var methodName = null;
|
|
180
|
-
Object.getOwnPropertyNames(obj).forEach(function (prop) {
|
|
181
|
-
if (obj[prop] === method) {
|
|
182
|
-
methodName = prop;
|
|
183
|
-
}
|
|
184
|
-
});
|
|
185
|
-
if (methodName !== null) {
|
|
186
|
-
return methodName;
|
|
187
|
-
}
|
|
188
|
-
var proto = Object.getPrototypeOf(obj);
|
|
189
|
-
if (proto) {
|
|
190
|
-
return _index.Helpers.getMethodName(proto, method);
|
|
191
|
-
}
|
|
192
|
-
return null;
|
|
193
|
-
}
|
|
194
|
-
}, {
|
|
195
|
-
key: 'fixWebpackEnv',
|
|
196
|
-
value: function fixWebpackEnv(env) {
|
|
197
|
-
_browser._.forIn(env, function (v, k) {
|
|
198
|
-
var value = v;
|
|
199
|
-
if (value === 'true') env[k] = true;
|
|
200
|
-
if (value === 'false') env[k] = false;
|
|
201
|
-
});
|
|
202
|
-
}
|
|
203
|
-
}], [{
|
|
204
|
-
key: 'Instance',
|
|
205
|
-
get: function get() {
|
|
206
|
-
if (!HelpersTnp._instance) {
|
|
207
|
-
HelpersTnp._instance = new HelpersTnp();
|
|
208
|
-
}
|
|
209
|
-
return HelpersTnp._instance;
|
|
210
|
-
}
|
|
211
|
-
}]);
|
|
212
|
-
|
|
213
|
-
return HelpersTnp;
|
|
214
|
-
}(_browser.CoreHelpers);
|
|
215
|
-
|
|
216
|
-
applyMixins(HelpersTnp, [_helpersMessages.HelpersMessages, _helpersStringsRegexes.HelpersStringsRegexes, _helpersEnvironment.HelpersEnvironment]);
|
|
217
|
-
//# sourceMappingURL=helpers.js.map
|
package/client/es5/index.js
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.LongPress = exports.ResizeService = exports.DualComponentController = exports.BaseFormlyComponent = exports.BaseComponentForRouter = exports.BaseComponent = exports.Helpers = undefined;
|
|
7
|
-
|
|
8
|
-
var _constants = require('./constants');
|
|
9
|
-
|
|
10
|
-
Object.keys(_constants).forEach(function (key) {
|
|
11
|
-
if (key === "default" || key === "__esModule") return;
|
|
12
|
-
Object.defineProperty(exports, key, {
|
|
13
|
-
enumerable: true,
|
|
14
|
-
get: function get() {
|
|
15
|
-
return _constants[key];
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
var _project = require('./project');
|
|
21
|
-
|
|
22
|
-
Object.keys(_project).forEach(function (key) {
|
|
23
|
-
if (key === "default" || key === "__esModule") return;
|
|
24
|
-
Object.defineProperty(exports, key, {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function get() {
|
|
27
|
-
return _project[key];
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
var _baseComponent = require('./base-component');
|
|
33
|
-
|
|
34
|
-
Object.defineProperty(exports, 'BaseComponent', {
|
|
35
|
-
enumerable: true,
|
|
36
|
-
get: function get() {
|
|
37
|
-
return _baseComponent.BaseComponent;
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
Object.defineProperty(exports, 'BaseComponentForRouter', {
|
|
41
|
-
enumerable: true,
|
|
42
|
-
get: function get() {
|
|
43
|
-
return _baseComponent.BaseComponentForRouter;
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
var _baseFormlyComponent = require('./base-formly-component');
|
|
48
|
-
|
|
49
|
-
Object.defineProperty(exports, 'BaseFormlyComponent', {
|
|
50
|
-
enumerable: true,
|
|
51
|
-
get: function get() {
|
|
52
|
-
return _baseFormlyComponent.BaseFormlyComponent;
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
var _dualComponentCtrl = require('./dual-component-ctrl');
|
|
57
|
-
|
|
58
|
-
Object.defineProperty(exports, 'DualComponentController', {
|
|
59
|
-
enumerable: true,
|
|
60
|
-
get: function get() {
|
|
61
|
-
return _dualComponentCtrl.DualComponentController;
|
|
62
|
-
}
|
|
63
|
-
});
|
|
64
|
-
|
|
65
|
-
var _resizeService = require('./resize-service');
|
|
66
|
-
|
|
67
|
-
Object.defineProperty(exports, 'ResizeService', {
|
|
68
|
-
enumerable: true,
|
|
69
|
-
get: function get() {
|
|
70
|
-
return _resizeService.ResizeService;
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
|
|
74
|
-
var _longPress = require('./long-press.directive');
|
|
75
|
-
|
|
76
|
-
Object.defineProperty(exports, 'LongPress', {
|
|
77
|
-
enumerable: true,
|
|
78
|
-
get: function get() {
|
|
79
|
-
return _longPress.LongPress;
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
|
|
83
|
-
var _helpers = require('./helpers');
|
|
84
|
-
|
|
85
|
-
// export * from './git-project';
|
|
86
|
-
var Helpers = exports.Helpers = _helpers.HelpersTnp.Instance;
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.LongPress = undefined;
|
|
7
|
-
|
|
8
|
-
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
9
|
-
|
|
10
|
-
var _tslib = require('tslib');
|
|
11
|
-
|
|
12
|
-
var _core = require('@angular/core');
|
|
13
|
-
|
|
14
|
-
var _browser = require('tnp-core/browser');
|
|
15
|
-
|
|
16
|
-
var _browser2 = require('ng2-logger/browser');
|
|
17
|
-
|
|
18
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
19
|
-
|
|
20
|
-
var log = _browser2.Log.create('[tnp-helpers] long-press', _browser2.Level.__NOTHING);
|
|
21
|
-
var LongPress = function () {
|
|
22
|
-
function LongPress() {
|
|
23
|
-
var _this = this;
|
|
24
|
-
|
|
25
|
-
_classCallCheck(this, LongPress);
|
|
26
|
-
|
|
27
|
-
this.pressDuration = 1000;
|
|
28
|
-
this.onLongPress = new _core.EventEmitter();
|
|
29
|
-
this.onLongPressing = new _core.EventEmitter();
|
|
30
|
-
this.onLongPressEnd = new _core.EventEmitter();
|
|
31
|
-
this.mouseX = 0;
|
|
32
|
-
this.mouseY = 0;
|
|
33
|
-
this.allowTrigger = false;
|
|
34
|
-
this.triggerEnd = _browser._.debounce(function () {
|
|
35
|
-
_this.endPress();
|
|
36
|
-
}, 500);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
_createClass(LongPress, [{
|
|
40
|
-
key: 'onMouseDown',
|
|
41
|
-
value: function onMouseDown(event) {
|
|
42
|
-
var _this2 = this;
|
|
43
|
-
|
|
44
|
-
// don't do right/middle clicks
|
|
45
|
-
log.d('MOUSE DOWN ');
|
|
46
|
-
if (event.which !== 1) return;
|
|
47
|
-
this.allowTrigger = true;
|
|
48
|
-
this.mouseX = event.clientX;
|
|
49
|
-
this.mouseY = event.clientY;
|
|
50
|
-
this.pressing = true;
|
|
51
|
-
this.longPressing = false;
|
|
52
|
-
this.timeout = setTimeout(function () {
|
|
53
|
-
if (_this2.allowTrigger) {
|
|
54
|
-
_this2.longPressing = true;
|
|
55
|
-
log.d('long pressing start pressDuration:' + _this2.pressDuration + ' ');
|
|
56
|
-
_this2.onLongPress.emit(event);
|
|
57
|
-
_this2.loop(event);
|
|
58
|
-
}
|
|
59
|
-
}, this.pressDuration);
|
|
60
|
-
this.loop(event);
|
|
61
|
-
}
|
|
62
|
-
}, {
|
|
63
|
-
key: 'onMouseMove',
|
|
64
|
-
value: function onMouseMove(event) {
|
|
65
|
-
if (this.pressing && !this.longPressing) {
|
|
66
|
-
var xThres = event.clientX - this.mouseX > 10;
|
|
67
|
-
var yThres = event.clientY - this.mouseY > 10;
|
|
68
|
-
if (xThres || yThres) {
|
|
69
|
-
this.endPress();
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}, {
|
|
74
|
-
key: 'loop',
|
|
75
|
-
value: function loop(event) {
|
|
76
|
-
var _this3 = this;
|
|
77
|
-
|
|
78
|
-
if (this.longPressing) {
|
|
79
|
-
this.timeout = setTimeout(function () {
|
|
80
|
-
log.d('emil longpressing');
|
|
81
|
-
_this3.triggerEnd();
|
|
82
|
-
_this3.onLongPressing.emit(event);
|
|
83
|
-
_this3.loop(event);
|
|
84
|
-
}, 50);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}, {
|
|
88
|
-
key: 'endPress',
|
|
89
|
-
value: function endPress() {
|
|
90
|
-
var emit = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
|
91
|
-
|
|
92
|
-
this.allowTrigger = false;
|
|
93
|
-
clearTimeout(this.timeout);
|
|
94
|
-
this.longPressing = false;
|
|
95
|
-
this.pressing = false;
|
|
96
|
-
if (emit) {
|
|
97
|
-
log.d('EMIT END');
|
|
98
|
-
this.onLongPressEnd.emit(true);
|
|
99
|
-
} else {
|
|
100
|
-
log.d('NOT EMIT END');
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}, {
|
|
104
|
-
key: 'onMouseUp',
|
|
105
|
-
value: function onMouseUp() {
|
|
106
|
-
this.endPress(false);
|
|
107
|
-
}
|
|
108
|
-
}, {
|
|
109
|
-
key: 'press',
|
|
110
|
-
get: function get() {
|
|
111
|
-
return this.pressing;
|
|
112
|
-
}
|
|
113
|
-
}, {
|
|
114
|
-
key: 'longPress',
|
|
115
|
-
get: function get() {
|
|
116
|
-
return this.longPressing;
|
|
117
|
-
}
|
|
118
|
-
}]);
|
|
119
|
-
|
|
120
|
-
return LongPress;
|
|
121
|
-
}();
|
|
122
|
-
(0, _tslib.__decorate)([(0, _core.Input)(), (0, _tslib.__metadata)("design:type", Number)], LongPress.prototype, "pressDuration", void 0);
|
|
123
|
-
(0, _tslib.__decorate)([(0, _core.Output)(), (0, _tslib.__metadata)("design:type", _core.EventEmitter)], LongPress.prototype, "onLongPress", void 0);
|
|
124
|
-
(0, _tslib.__decorate)([(0, _core.Output)(), (0, _tslib.__metadata)("design:type", _core.EventEmitter)], LongPress.prototype, "onLongPressing", void 0);
|
|
125
|
-
(0, _tslib.__decorate)([(0, _core.Output)(), (0, _tslib.__metadata)("design:type", _core.EventEmitter)], LongPress.prototype, "onLongPressEnd", void 0);
|
|
126
|
-
(0, _tslib.__decorate)([(0, _core.HostBinding)('class.press'), (0, _tslib.__metadata)("design:type", Object), (0, _tslib.__metadata)("design:paramtypes", [])], LongPress.prototype, "press", null);
|
|
127
|
-
(0, _tslib.__decorate)([(0, _core.HostBinding)('class.longpress'), (0, _tslib.__metadata)("design:type", Object), (0, _tslib.__metadata)("design:paramtypes", [])], LongPress.prototype, "longPress", null);
|
|
128
|
-
(0, _tslib.__decorate)([(0, _core.HostListener)('mousedown', ['$event']), (0, _tslib.__metadata)("design:type", Function), (0, _tslib.__metadata)("design:paramtypes", [Object]), (0, _tslib.__metadata)("design:returntype", void 0)], LongPress.prototype, "onMouseDown", null);
|
|
129
|
-
(0, _tslib.__decorate)([(0, _core.HostListener)('mousemove', ['$event']), (0, _tslib.__metadata)("design:type", Function), (0, _tslib.__metadata)("design:paramtypes", [Object]), (0, _tslib.__metadata)("design:returntype", void 0)], LongPress.prototype, "onMouseMove", null);
|
|
130
|
-
(0, _tslib.__decorate)([(0, _core.HostListener)('mouseup'), (0, _tslib.__metadata)("design:type", Function), (0, _tslib.__metadata)("design:paramtypes", []), (0, _tslib.__metadata)("design:returntype", void 0)], LongPress.prototype, "onMouseUp", null);
|
|
131
|
-
exports.LongPress = LongPress = (0, _tslib.__decorate)([(0, _core.Directive)({ selector: '[long-press]' })], LongPress);
|
|
132
|
-
exports.LongPress = LongPress;
|
|
133
|
-
//# sourceMappingURL=long-press.directive.js.map
|
package/client/es5/project.js
DELETED
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Project = undefined;
|
|
7
|
-
|
|
8
|
-
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
9
|
-
|
|
10
|
-
var _browser = require('tnp-config/browser');
|
|
11
|
-
|
|
12
|
-
var _helpers = require('./helpers');
|
|
13
|
-
|
|
14
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
15
|
-
|
|
16
|
-
var Helpers = _helpers.HelpersTnp.Instance;
|
|
17
|
-
|
|
18
|
-
var Project = exports.Project = function () {
|
|
19
|
-
function Project() {
|
|
20
|
-
_classCallCheck(this, Project);
|
|
21
|
-
|
|
22
|
-
this.cache = {};
|
|
23
|
-
this.browser = {};
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
_createClass(Project, [{
|
|
27
|
-
key: 'defineProperty',
|
|
28
|
-
value: function defineProperty(variableName, classFn) {
|
|
29
|
-
return void 0;
|
|
30
|
-
}
|
|
31
|
-
}, {
|
|
32
|
-
key: 'setType',
|
|
33
|
-
value: function setType(type) {
|
|
34
|
-
// @ts-ignore
|
|
35
|
-
this._type = type;
|
|
36
|
-
}
|
|
37
|
-
}, {
|
|
38
|
-
key: 'typeIs',
|
|
39
|
-
value: function typeIs() {
|
|
40
|
-
for (var _len = arguments.length, types = Array(_len), _key = 0; _key < _len; _key++) {
|
|
41
|
-
types[_key] = arguments[_key];
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
return this._type && types.includes(this._type);
|
|
45
|
-
}
|
|
46
|
-
}, {
|
|
47
|
-
key: 'typeIsNot',
|
|
48
|
-
value: function typeIsNot() {
|
|
49
|
-
return !this.typeIs.apply(this, arguments);
|
|
50
|
-
}
|
|
51
|
-
}, {
|
|
52
|
-
key: 'forEmptyStructure',
|
|
53
|
-
value: function forEmptyStructure() {
|
|
54
|
-
return [{ relativePath: _browser.config.file.package_json, includeContent: true }, { relativePath: _browser.config.folder.src }];
|
|
55
|
-
}
|
|
56
|
-
}], [{
|
|
57
|
-
key: 'typeFrom',
|
|
58
|
-
value: function typeFrom(location) {
|
|
59
|
-
return void 0;
|
|
60
|
-
}
|
|
61
|
-
}, {
|
|
62
|
-
key: 'unload',
|
|
63
|
-
value: function unload(project) {
|
|
64
|
-
Project.projects = Project.projects.filter(function (f) {
|
|
65
|
-
return f !== project;
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
}, {
|
|
69
|
-
key: 'From',
|
|
70
|
-
value: function From(location) {
|
|
71
|
-
return void 0;
|
|
72
|
-
}
|
|
73
|
-
}, {
|
|
74
|
-
key: 'nearestTo',
|
|
75
|
-
value: function nearestTo(absoluteLocation, options) {
|
|
76
|
-
return void 0;
|
|
77
|
-
}
|
|
78
|
-
}, {
|
|
79
|
-
key: 'allProjectFrom',
|
|
80
|
-
value: function allProjectFrom(absoluteLocation) {
|
|
81
|
-
var stopOnCwd = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '/';
|
|
82
|
-
|
|
83
|
-
return void 0;
|
|
84
|
-
}
|
|
85
|
-
}, {
|
|
86
|
-
key: 'DefaultPortByType',
|
|
87
|
-
value: function DefaultPortByType(type) {
|
|
88
|
-
if (type === 'workspace') {
|
|
89
|
-
return 5000;
|
|
90
|
-
}
|
|
91
|
-
if (type === 'angular-client') {
|
|
92
|
-
return 4300;
|
|
93
|
-
}
|
|
94
|
-
if (type === 'angular-lib') {
|
|
95
|
-
return 4250;
|
|
96
|
-
}
|
|
97
|
-
if (type === 'electron-client') {
|
|
98
|
-
return 4350;
|
|
99
|
-
}
|
|
100
|
-
if (type === 'ionic-client') {
|
|
101
|
-
return 8080;
|
|
102
|
-
}
|
|
103
|
-
if (type === 'docker') {
|
|
104
|
-
return 5000;
|
|
105
|
-
}
|
|
106
|
-
if (type === 'isomorphic-lib') {
|
|
107
|
-
return 4000;
|
|
108
|
-
}
|
|
109
|
-
if (type === 'container' || type === 'unknow-npm-project') {
|
|
110
|
-
return;
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}, {
|
|
114
|
-
key: 'by',
|
|
115
|
-
value: function by(libraryType, version) {
|
|
116
|
-
return void 0;
|
|
117
|
-
}
|
|
118
|
-
}, {
|
|
119
|
-
key: 'isBundleMode',
|
|
120
|
-
get: function get() {
|
|
121
|
-
if (Helpers.isBrowser) {
|
|
122
|
-
return true;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}, {
|
|
126
|
-
key: 'Current',
|
|
127
|
-
get: function get() {
|
|
128
|
-
return void 0;
|
|
129
|
-
}
|
|
130
|
-
}, {
|
|
131
|
-
key: 'Tnp',
|
|
132
|
-
get: function get() {
|
|
133
|
-
return void 0;
|
|
134
|
-
}
|
|
135
|
-
}]);
|
|
136
|
-
|
|
137
|
-
return Project;
|
|
138
|
-
}();
|
|
139
|
-
|
|
140
|
-
Project.projects = [];
|
|
141
|
-
/**
|
|
142
|
-
* To speed up checking folder I am keeping pathes for alterdy checked folder
|
|
143
|
-
* This may break things that are creating new projects
|
|
144
|
-
*/
|
|
145
|
-
Project.emptyLocations = [];
|
|
146
|
-
//# sourceMappingURL=project.js.map
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.ResizeService = undefined;
|
|
7
|
-
|
|
8
|
-
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
|
|
9
|
-
|
|
10
|
-
var _tslib = require('tslib');
|
|
11
|
-
|
|
12
|
-
var _core = require('@angular/core');
|
|
13
|
-
|
|
14
|
-
var _elementResizeDetector = require('element-resize-detector');
|
|
15
|
-
|
|
16
|
-
var elementResizeDetectorMaker = _interopRequireWildcard(_elementResizeDetector);
|
|
17
|
-
|
|
18
|
-
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
|
|
19
|
-
|
|
20
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
21
|
-
|
|
22
|
-
var ResizeService = function () {
|
|
23
|
-
function ResizeService() {
|
|
24
|
-
_classCallCheck(this, ResizeService);
|
|
25
|
-
|
|
26
|
-
this.resizeDetector = elementResizeDetectorMaker({ strategy: 'scroll' });
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
_createClass(ResizeService, [{
|
|
30
|
-
key: 'addResizeEventListener',
|
|
31
|
-
value: function addResizeEventListener(element, handler) {
|
|
32
|
-
this.resizeDetector.listenTo(element, handler);
|
|
33
|
-
}
|
|
34
|
-
}, {
|
|
35
|
-
key: 'removeResizeEventListener',
|
|
36
|
-
value: function removeResizeEventListener(element) {
|
|
37
|
-
this.resizeDetector.uninstall(element);
|
|
38
|
-
}
|
|
39
|
-
}]);
|
|
40
|
-
|
|
41
|
-
return ResizeService;
|
|
42
|
-
}();
|
|
43
|
-
exports.ResizeService = ResizeService = (0, _tslib.__decorate)([(0, _core.Injectable)(), (0, _tslib.__metadata)("design:paramtypes", [])], ResizeService);
|
|
44
|
-
exports.ResizeService = ResizeService;
|
|
45
|
-
//# sourceMappingURL=resize-service.js.map
|
package/client/git-project.d.ts
DELETED
package/client/git-project.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"git-project.js","sourceRoot":"","sources":["../../tmp-src-bundle/git-project.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC,MAAM,OAAO,GAAG,UAAU,CAAC,QAAQ,CAAC;AAGpC,MAAM,OAAgB,UAAU;CAK/B;AAED,2DAA2D"}
|