tnp-helpers 0.0.73 → 13.0.2
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 +123 -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 +116 -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-messages.mjs +68 -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 +108 -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 +936 -0
- package/browser/fesm2015/tnp-helpers.mjs.map +1 -0
- package/browser/fesm2020/tnp-helpers.mjs +927 -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 -1
- 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} +0 -0
- 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-messages.d.ts → lib/helpers-messages.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} +1 -2
- 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 +123 -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 +116 -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-messages.mjs +68 -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 +108 -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 +936 -0
- package/client/fesm2015/tnp-helpers.mjs.map +1 -0
- package/client/fesm2020/tnp-helpers.mjs +927 -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 -1
- 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} +0 -0
- 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-messages.d.ts → lib/helpers-messages.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} +1 -2
- 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 -1
- package/{base-formly-component.js → lib/base-formly-component.js} +45 -44
- 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} +0 -0
- package/{dual-component-ctrl.js → lib/dual-component-ctrl.js} +2 -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-messages.d.ts → lib/helpers-messages.d.ts} +0 -0
- package/{helpers-messages.js → lib/helpers-messages.js} +2 -1
- package/lib/helpers-messages.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} +5 -4
- package/{helpers.js → lib/helpers.js} +34 -28
- 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 +88 -125
- 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.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.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.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/browser/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/browser/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/browser/git-project.d.ts
DELETED
package/browser/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"}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { _ } from 'tnp-core/browser';
|
|
2
|
-
import * as fuzzy from 'fuzzy';
|
|
3
|
-
import { Helpers } from './index';
|
|
4
|
-
export class HelpersArrayObj {
|
|
5
|
-
from(s) {
|
|
6
|
-
if (_.isArray(s)) {
|
|
7
|
-
return s;
|
|
8
|
-
}
|
|
9
|
-
if (_.isString(s)) {
|
|
10
|
-
return s.split(' ');
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
arrayMoveElementBefore(arr, a, b, prop) {
|
|
14
|
-
let indexA = prop ? arr.findIndex(elem => elem[prop] === a[prop]) : arr.indexOf(a);
|
|
15
|
-
_.pullAt(arr, indexA);
|
|
16
|
-
let indexB = prop ? arr.findIndex(elem => elem[prop] === b[prop]) : arr.indexOf(b);
|
|
17
|
-
if (indexB === 0) {
|
|
18
|
-
arr.unshift(a);
|
|
19
|
-
}
|
|
20
|
-
else {
|
|
21
|
-
arr.splice(indexB - 1, 0, a);
|
|
22
|
-
}
|
|
23
|
-
return arr;
|
|
24
|
-
}
|
|
25
|
-
arrayMoveElementAfterB(arr, a, b, prop) {
|
|
26
|
-
let indexA = prop ? arr.findIndex(elem => elem[prop] === a[prop]) : arr.indexOf(a);
|
|
27
|
-
_.pullAt(arr, indexA);
|
|
28
|
-
let indexB = prop ? arr.findIndex(elem => elem[prop] === b[prop]) : arr.indexOf(b);
|
|
29
|
-
if (indexB === arr.length - 1) {
|
|
30
|
-
arr.push(a);
|
|
31
|
-
}
|
|
32
|
-
else {
|
|
33
|
-
arr.splice(indexB + 1, 0, a);
|
|
34
|
-
}
|
|
35
|
-
return arr;
|
|
36
|
-
}
|
|
37
|
-
uniqArray(array, uniqueProperty) {
|
|
38
|
-
var seen = {};
|
|
39
|
-
return array
|
|
40
|
-
.filter(f => !!f)
|
|
41
|
-
.filter(function (item) {
|
|
42
|
-
return seen.hasOwnProperty(uniqueProperty ? item[uniqueProperty] : item) ? false
|
|
43
|
-
: (seen[uniqueProperty ? item[uniqueProperty] : item] = true);
|
|
44
|
-
});
|
|
45
|
-
}
|
|
46
|
-
sortKeys(obj) {
|
|
47
|
-
if (_.isArray(obj)) {
|
|
48
|
-
return obj.map(Helpers.arrays.sortKeys);
|
|
49
|
-
}
|
|
50
|
-
if (_.isObject(obj)) {
|
|
51
|
-
return _.fromPairs(_.keys(obj).sort().map(key => [key, Helpers.arrays.sortKeys(obj[key])]));
|
|
52
|
-
}
|
|
53
|
-
return obj;
|
|
54
|
-
}
|
|
55
|
-
;
|
|
56
|
-
/**
|
|
57
|
-
* Fuzzy search
|
|
58
|
-
*/
|
|
59
|
-
fuzzy(query, list, valueFn) {
|
|
60
|
-
const resultsFuzzy = fuzzy.filter(query, list.map(k => valueFn ? valueFn(k) : k));
|
|
61
|
-
const resultsFuzzyKebab = fuzzy.filter(_.kebabCase(query), list.map(k => _.kebabCase((valueFn ? valueFn(k) : k))));
|
|
62
|
-
const matches = resultsFuzzy.map((el) => el.string);
|
|
63
|
-
const matchesKebab = resultsFuzzyKebab.map((el) => el.string);
|
|
64
|
-
const results = (resultsFuzzy.length === 0) ? [] : list.filter(k => {
|
|
65
|
-
return matches.includes((valueFn ? valueFn(k) : k));
|
|
66
|
-
});
|
|
67
|
-
if (matches.length === 0 && matchesKebab.length > 0) {
|
|
68
|
-
const m = list.find(k => _.kebabCase((valueFn ? valueFn(k) : k)) === _.first(matchesKebab));
|
|
69
|
-
results.push(m);
|
|
70
|
-
matches.push((valueFn ? valueFn(m) : m));
|
|
71
|
-
}
|
|
72
|
-
return { matches, results };
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
//# sourceMappingURL=helpers-array-obj.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers-array-obj.js","sourceRoot":"","sources":["../../tmp-src-bundle/helpers-array-obj.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,kBAAkB,CAAC;AACrC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,MAAM,OAAO,eAAe;IAE1B,IAAI,CAAC,CAAoB;QACvB,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;YAChB,OAAO,CAAC,CAAC;SACV;QACD,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE;YACjB,OAAO,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;SACpB;IACH,CAAC;IAED,sBAAsB,CAAU,GAAU,EAAE,CAAM,EAAE,CAAM,EAAE,IAAc;QACxE,IAAI,MAAM,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,IAAI,CAA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,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAQ,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC;YACnG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YAChB,OAAO,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAQ,CAAC,CAAC;SACjD;QAED,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;IAC9B,CAAC;CAEF"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { _, } from 'tnp-core/browser';
|
|
2
|
-
export class HelpersEnvironment {
|
|
3
|
-
environmentName(filename, local_env_name) {
|
|
4
|
-
}
|
|
5
|
-
isValidGitRepuUrl(url) {
|
|
6
|
-
const regex = /^([A-Za-z0-9]+@|http(|s)\:\/\/)([A-Za-z0-9.]+(:\d+)?)(?::|\/)([\d\/\w.-]+?)(\.git)?$/;
|
|
7
|
-
const res = regex.test(url);
|
|
8
|
-
return res;
|
|
9
|
-
}
|
|
10
|
-
isValidIp(ip) {
|
|
11
|
-
if (!_.isString(ip)) {
|
|
12
|
-
return false;
|
|
13
|
-
}
|
|
14
|
-
ip = ip.trim();
|
|
15
|
-
if (ip === 'localhost') {
|
|
16
|
-
return true;
|
|
17
|
-
}
|
|
18
|
-
return /^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(ip);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=helpers-environment.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers-environment.js","sourceRoot":"","sources":["../../tmp-src-bundle/helpers-environment.ts"],"names":[],"mappings":"AAEA,OAAO,EAAI,CAAC,GAAI,MAAM,kBAAkB,CAAC;AAGzC,MAAM,OAAO,kBAAkB;IAE7B,eAAe,CAAC,QAAQ,EAAE,cAAc;IAExC,CAAC;IAED,iBAAiB,CAAC,GAAW;QAC3B,MAAM,KAAK,GAAG,sFAAsF,CAAC;QACrG,MAAM,GAAG,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC5B,OAAO,GAAG,CAAC;IACb,CAAC;IAED,SAAS,CAAC,EAAU;QAClB,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE;YACnB,OAAO,KAAK,CAAC;SACd;QACD,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC;QACf,IAAI,EAAE,KAAK,WAAW,EAAE;YACtB,OAAO,IAAI,CAAC;SACb;QACD,OAAO,kKAAkK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;IACpL,CAAC;CAEF"}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { Helpers } from './index';
|
|
2
|
-
const KEY = {
|
|
3
|
-
LAST_ERROR: Symbol(),
|
|
4
|
-
LAST_INFO: Symbol(),
|
|
5
|
-
LAST_WARN: Symbol(),
|
|
6
|
-
LAST_LOG: Symbol(),
|
|
7
|
-
};
|
|
8
|
-
// export class Log {
|
|
9
|
-
// private static _instance: Log;
|
|
10
|
-
// public Instance() {
|
|
11
|
-
// if (!Log._instance) {
|
|
12
|
-
// Log._instance = new Log();
|
|
13
|
-
// }
|
|
14
|
-
// return Log._instance;
|
|
15
|
-
// }
|
|
16
|
-
// create(name: string, level?: Level) {
|
|
17
|
-
// if (level === void 0) {
|
|
18
|
-
// level = Level.DATA;
|
|
19
|
-
// }
|
|
20
|
-
// return {
|
|
21
|
-
// d(details: string, debugLevel?: number) {
|
|
22
|
-
// return Helpers.log(`[${name}] ${details}`, debugLevel)
|
|
23
|
-
// },
|
|
24
|
-
// i(details: string) {
|
|
25
|
-
// return Helpers.info(`[${name}] ${details}`)
|
|
26
|
-
// },
|
|
27
|
-
// w(details: string, noExit = false, noTrace = false) {
|
|
28
|
-
// return Helpers.error(`[${name}] ${details}`, noExit, noTrace);
|
|
29
|
-
// },
|
|
30
|
-
// er(details: string, ) {
|
|
31
|
-
// return Helpers.info(`[${name}] ${details}`)
|
|
32
|
-
// },
|
|
33
|
-
// }
|
|
34
|
-
// }
|
|
35
|
-
// }
|
|
36
|
-
export class HelpersMessages {
|
|
37
|
-
msgCacheClear() {
|
|
38
|
-
global[KEY.LAST_LOG] = void 0;
|
|
39
|
-
global[KEY.LAST_WARN] = void 0;
|
|
40
|
-
global[KEY.LAST_ERROR] = void 0;
|
|
41
|
-
global[KEY.LAST_INFO] = void 0;
|
|
42
|
-
}
|
|
43
|
-
error(details, noExit = false, noTrace = false) {
|
|
44
|
-
if (Helpers.isBrowser) {
|
|
45
|
-
console.error(details);
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
info(details) {
|
|
50
|
-
if (Helpers.isBrowser) {
|
|
51
|
-
console.info(details);
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
log(details, debugLevel = 0) {
|
|
56
|
-
if (Helpers.isBrowser) {
|
|
57
|
-
console.log(details);
|
|
58
|
-
return;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
warn(details, trace = false) {
|
|
62
|
-
if (Helpers.isBrowser) {
|
|
63
|
-
console.warn(details);
|
|
64
|
-
return;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
//# sourceMappingURL=helpers-messages.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers-messages.js","sourceRoot":"","sources":["../../tmp-src-bundle/helpers-messages.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAElC,MAAM,GAAG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S,EAAE;YACrB,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;YACrB,OAAO;SACR;IAEH,CAAC;IAED,IAAI,CAAC,OAAe,EAAE,KAAK,GAAG,KAAK;QACjC,IAAI,OAAO,CAAC,SAAS,EAAE;YACrB,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YACtB,OAAO;SACR;IAEH,CAAC;CACF"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { _ } from 'tnp-core/browser';
|
|
2
|
-
export class HelpersStringsRegexes {
|
|
3
|
-
escapeStringForRegEx(s) {
|
|
4
|
-
return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
|
|
5
|
-
}
|
|
6
|
-
matchExactOnce(s, regex) {
|
|
7
|
-
if (!_.isString(s) || !_.isRegExp(regex)) {
|
|
8
|
-
return void 0;
|
|
9
|
-
}
|
|
10
|
-
const result = s.match(regex);
|
|
11
|
-
if (_.isNil(result)) {
|
|
12
|
-
return void 0;
|
|
13
|
-
}
|
|
14
|
-
return result.length >= 1 ? _.first(result) : void 0;
|
|
15
|
-
}
|
|
16
|
-
get regex() {
|
|
17
|
-
return {
|
|
18
|
-
/**
|
|
19
|
-
* mathes
|
|
20
|
-
* xxx.xxx.xxx.xxx
|
|
21
|
-
* xxx.xxx.xxx.xxx:port
|
|
22
|
-
* http://xxx.xxx.xxx.xxx:port
|
|
23
|
-
* http://xxx.xxx.xxx.xxx
|
|
24
|
-
* https://xxx.xxx.xxx.xxx:port
|
|
25
|
-
* https://xxx.xxx.xxx.xxx *
|
|
26
|
-
*/
|
|
27
|
-
get forStringWithIpHost() {
|
|
28
|
-
const regex = /(http(s)?\:\/\/)?(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\:[0-9]+)?/;
|
|
29
|
-
return regex;
|
|
30
|
-
},
|
|
31
|
-
/**
|
|
32
|
-
* mathes
|
|
33
|
-
* http://domain.com:port
|
|
34
|
-
* http://domain.com
|
|
35
|
-
* http://domain:port
|
|
36
|
-
* http://domain
|
|
37
|
-
* https://domain.com:port
|
|
38
|
-
* https://domain.com
|
|
39
|
-
* https://domain:port
|
|
40
|
-
* https://domain
|
|
41
|
-
*/
|
|
42
|
-
get forStringWithDomainHost() {
|
|
43
|
-
const regex = /(((http(s)?\:\/\/)?[a-zA-Z0-9][a-zA-Z0-9-]{1,61}[a-zA-Z0-9](?:\.[a-zA-Z]{2,})+(\:[0-9]+)?)|((http(s)?\:\/\/)[a-zA-Z0-9-]{1,61}))/;
|
|
44
|
-
return regex;
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
//# sourceMappingURL=helpers-strings-regexes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"helpers-strings-regexes.js","sourceRoot":"","sources":["../../tmp-src-bundle/helpers-strings-regexes.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,kBAAkB,CAAC;AACrC,MAAM,OAAO,qBAAqB;IAIhC,oBAAoB,CAAC,CAAS;QAC5B,OAAO,CAAC,CAAC,OAAO,CAAC,wBAAwB,EAAE,MAAM,CAAC,CAAC;IACrD,CAAC;IAED,cAAc,CAAC,CAAS,EAAE,KAAa;QACrC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;YACxC,OAAO,KAAK,CAAC,CAAC;SACf;QACD,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAC9B,IAAI,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;YACnB,OAAO,KAAK,CAAC,CAAC;SACf;QACD,OAAO,MAAM,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IACvD,CAAC;IAED,IAAI,KAAK;QACP,OAAO;YACL;;;;;;;;aAQC;YACD,IAAI,mBAAmB;gBACrB,MAAM,KAAK,GAAG,4LAA4L,CAAC;gBAC3M,OAAO,KAAK,CAAC;YACf,CAAC;YACD;;;;;;;;;;YAUA;YACA,IAAI,uBAAuB;gBACzB,MAAM,KAAK,GAAG,kIAAkI,CAAC;gBACjJ,OAAO,KAAK,CAAC;YACf,CAAC;SACF,CAAA;IACH,CAAC;CACF"}
|