tnp-helpers 13.1.9 → 13.1.11
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 +3 -3
- package/browser/esm2020/lib/base-component.mjs +2 -2
- package/browser/esm2020/lib/base-formly-component.mjs +2 -2
- package/browser/esm2020/lib/condition-wait.mjs +2 -2
- package/browser/esm2020/lib/constants.mjs +2 -2
- package/browser/esm2020/lib/dual-component-ctrl.mjs +2 -2
- package/browser/esm2020/lib/firedev-models.mjs +2 -2
- package/browser/esm2020/lib/helpers-array-obj.mjs +2 -2
- package/browser/esm2020/lib/helpers-environment.mjs +2 -2
- package/browser/esm2020/lib/helpers-numbers.mjs +2 -2
- package/browser/esm2020/lib/helpers-strings-regexes.mjs +2 -2
- package/browser/esm2020/lib/helpers-strings.mjs +2 -2
- package/browser/esm2020/lib/helpers.mjs +2 -2
- package/browser/esm2020/lib/index.mjs +2 -2
- package/browser/esm2020/lib/long-press.directive.mjs +2 -2
- package/browser/esm2020/lib/project.mjs +9 -11
- package/browser/esm2020/lib/resize-service.mjs +2 -2
- package/browser/fesm2015/tnp-helpers.mjs +23 -25
- package/browser/fesm2020/tnp-helpers.mjs +23 -25
- package/client/esm2020/lib/base-component.mjs +2 -2
- package/client/esm2020/lib/base-formly-component.mjs +2 -2
- package/client/esm2020/lib/condition-wait.mjs +2 -2
- package/client/esm2020/lib/constants.mjs +2 -2
- package/client/esm2020/lib/dual-component-ctrl.mjs +2 -2
- package/client/esm2020/lib/firedev-models.mjs +2 -2
- package/client/esm2020/lib/helpers-array-obj.mjs +2 -2
- package/client/esm2020/lib/helpers-environment.mjs +2 -2
- package/client/esm2020/lib/helpers-numbers.mjs +2 -2
- package/client/esm2020/lib/helpers-strings-regexes.mjs +2 -2
- package/client/esm2020/lib/helpers-strings.mjs +2 -2
- package/client/esm2020/lib/helpers.mjs +2 -2
- package/client/esm2020/lib/index.mjs +2 -2
- package/client/esm2020/lib/long-press.directive.mjs +2 -2
- package/client/esm2020/lib/project.mjs +9 -11
- package/client/esm2020/lib/resize-service.mjs +2 -2
- package/client/fesm2015/tnp-helpers.mjs +23 -25
- package/client/fesm2020/tnp-helpers.mjs +23 -25
- package/lib/base-component.js +3 -3
- package/lib/base-formly-component.js +3 -3
- package/lib/dual-component-ctrl.js +3 -3
- package/lib/git-project.js +2 -2
- package/lib/helpers-file-folders.backend.d.ts +0 -1
- package/lib/helpers-file-folders.backend.js +20 -12
- package/lib/helpers-git.backend.js +4 -1
- package/lib/helpers-process.backend.d.ts +0 -4
- package/lib/helpers-process.backend.js +2 -88
- package/lib/project.d.ts +0 -1
- package/lib/project.js +3 -9
- package/package.json +5 -5
- package/package.json_tnp.json5 +2 -1
- package/tmp-environment.json +29 -28
- package/websql/esm2020/lib/base-component.mjs +2 -2
- package/websql/esm2020/lib/base-formly-component.mjs +2 -2
- package/websql/esm2020/lib/condition-wait.mjs +2 -2
- package/websql/esm2020/lib/constants.mjs +2 -2
- package/websql/esm2020/lib/dual-component-ctrl.mjs +2 -2
- package/websql/esm2020/lib/firedev-models.mjs +2 -2
- package/websql/esm2020/lib/helpers-array-obj.mjs +2 -2
- package/websql/esm2020/lib/helpers-environment.mjs +2 -2
- package/websql/esm2020/lib/helpers-numbers.mjs +2 -2
- package/websql/esm2020/lib/helpers-strings-regexes.mjs +2 -2
- package/websql/esm2020/lib/helpers-strings.mjs +2 -2
- package/websql/esm2020/lib/helpers.mjs +2 -2
- package/websql/esm2020/lib/index.mjs +2 -2
- package/websql/esm2020/lib/long-press.directive.mjs +2 -2
- package/websql/esm2020/lib/project.mjs +9 -11
- package/websql/esm2020/lib/resize-service.mjs +2 -2
- package/websql/fesm2015/tnp-helpers.mjs +23 -25
- package/websql/fesm2020/tnp-helpers.mjs +23 -25
|
@@ -3,7 +3,6 @@ import { _, CoreHelpers } from 'tnp-core/browser';
|
|
|
3
3
|
import * as fuzzy from 'fuzzy';
|
|
4
4
|
import { CLASS } from 'typescript-class-helpers/browser';
|
|
5
5
|
import { Morphi } from 'morphi/browser';
|
|
6
|
-
import { config } from 'tnp-config/browser';
|
|
7
6
|
import * as i0 from '@angular/core';
|
|
8
7
|
import { Component, Input, EventEmitter, Output, Injectable, Directive, HostBinding, HostListener } from '@angular/core';
|
|
9
8
|
import { NavigationEnd } from '@angular/router';
|
|
@@ -89,7 +88,7 @@ class HelpersArrayObj {
|
|
|
89
88
|
}
|
|
90
89
|
}
|
|
91
90
|
;
|
|
92
|
-
({}); // @--end-of-file-for-module=tnp-helpers
|
|
91
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/helpers-array-obj.ts
|
|
93
92
|
|
|
94
93
|
class HelpersStringsRegexes {
|
|
95
94
|
escapeStringForRegEx(s) {
|
|
@@ -139,7 +138,7 @@ class HelpersStringsRegexes {
|
|
|
139
138
|
}
|
|
140
139
|
}
|
|
141
140
|
;
|
|
142
|
-
({}); // @--end-of-file-for-module=tnp-helpers
|
|
141
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/helpers-strings-regexes.ts
|
|
143
142
|
|
|
144
143
|
/* */
|
|
145
144
|
/* */
|
|
@@ -171,7 +170,7 @@ class HelpersEnvironment {
|
|
|
171
170
|
}
|
|
172
171
|
}
|
|
173
172
|
;
|
|
174
|
-
({}); // @--end-of-file-for-module=tnp-helpers
|
|
173
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/helpers-environment.ts
|
|
175
174
|
|
|
176
175
|
class HelpersStrings {
|
|
177
176
|
/**
|
|
@@ -422,7 +421,7 @@ class HelpersStrings {
|
|
|
422
421
|
}
|
|
423
422
|
}
|
|
424
423
|
;
|
|
425
|
-
({}); // @--end-of-file-for-module=tnp-helpers
|
|
424
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/helpers-strings.ts
|
|
426
425
|
|
|
427
426
|
function conditionWait(conditionAndTimeout) {
|
|
428
427
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -468,7 +467,7 @@ function waitFor(arr, messageToShow = void 0) {
|
|
|
468
467
|
}));
|
|
469
468
|
}
|
|
470
469
|
;
|
|
471
|
-
({}); // @--end-of-file-for-module=tnp-helpers
|
|
470
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/condition-wait.ts
|
|
472
471
|
|
|
473
472
|
class HelpersNumber {
|
|
474
473
|
constructor() {
|
|
@@ -476,7 +475,7 @@ class HelpersNumber {
|
|
|
476
475
|
}
|
|
477
476
|
}
|
|
478
477
|
;
|
|
479
|
-
({}); // @--end-of-file-for-module=tnp-helpers
|
|
478
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/helpers-numbers.ts
|
|
480
479
|
|
|
481
480
|
function applyMixins(derivedCtor, baseCtors) {
|
|
482
481
|
baseCtors.forEach(baseCtor => {
|
|
@@ -749,7 +748,7 @@ applyMixins(HelpersTnp, [
|
|
|
749
748
|
/* */
|
|
750
749
|
]);
|
|
751
750
|
;
|
|
752
|
-
({}); // @--end-of-file-for-module=tnp-helpers
|
|
751
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/helpers.ts
|
|
753
752
|
|
|
754
753
|
const BaselineSiteJoinprefix = '__';
|
|
755
754
|
const PREFIXES = {
|
|
@@ -757,7 +756,7 @@ const PREFIXES = {
|
|
|
757
756
|
DELETED: '____DELETED____',
|
|
758
757
|
ORIGINAL: '____ORIGINAL____',
|
|
759
758
|
};
|
|
760
|
-
({}); // @--end-of-file-for-module=tnp-helpers
|
|
759
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/constants.ts
|
|
761
760
|
|
|
762
761
|
/* */
|
|
763
762
|
const Helpers$1 = HelpersTnp.Instance;
|
|
@@ -1039,10 +1038,6 @@ class Project {
|
|
|
1039
1038
|
/* */
|
|
1040
1039
|
return (void 0);
|
|
1041
1040
|
}
|
|
1042
|
-
/* */
|
|
1043
|
-
/* */
|
|
1044
|
-
/* */
|
|
1045
|
-
/* */
|
|
1046
1041
|
/**
|
|
1047
1042
|
* @deprecated
|
|
1048
1043
|
*/
|
|
@@ -1113,6 +1108,7 @@ class Project {
|
|
|
1113
1108
|
/* */
|
|
1114
1109
|
/* */
|
|
1115
1110
|
/* */
|
|
1111
|
+
/* */
|
|
1116
1112
|
return (void 0);
|
|
1117
1113
|
}
|
|
1118
1114
|
setType(type) {
|
|
@@ -1126,10 +1122,12 @@ class Project {
|
|
|
1126
1122
|
return !this.typeIs(...types);
|
|
1127
1123
|
}
|
|
1128
1124
|
forEmptyStructure() {
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1125
|
+
/* */
|
|
1126
|
+
/* */
|
|
1127
|
+
/* */
|
|
1128
|
+
/* */
|
|
1129
|
+
/* */
|
|
1130
|
+
return (void 0);
|
|
1133
1131
|
}
|
|
1134
1132
|
}
|
|
1135
1133
|
Project.projects = [];
|
|
@@ -1183,10 +1181,10 @@ Project.emptyLocations = [];
|
|
|
1183
1181
|
/* */
|
|
1184
1182
|
/* */
|
|
1185
1183
|
;
|
|
1186
|
-
({}); // @--end-of-file-for-module=tnp-helpers
|
|
1184
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/project.ts
|
|
1187
1185
|
|
|
1188
1186
|
;
|
|
1189
|
-
({}); // @--end-of-file-for-module=tnp-helpers
|
|
1187
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/firedev-models.ts
|
|
1190
1188
|
|
|
1191
1189
|
class BaseComponent {
|
|
1192
1190
|
constructor() {
|
|
@@ -1233,7 +1231,7 @@ class BaseComponentForRouter extends BaseComponent {
|
|
|
1233
1231
|
}
|
|
1234
1232
|
}
|
|
1235
1233
|
;
|
|
1236
|
-
({}); // @--end-of-file-for-module=tnp-helpers
|
|
1234
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/base-component.ts
|
|
1237
1235
|
|
|
1238
1236
|
const log$2 = Log.create(`DualComponentController`);
|
|
1239
1237
|
class DualComponentController {
|
|
@@ -1349,7 +1347,7 @@ class DualComponentController {
|
|
|
1349
1347
|
}
|
|
1350
1348
|
}
|
|
1351
1349
|
;
|
|
1352
|
-
({}); // @--end-of-file-for-module=tnp-helpers
|
|
1350
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/dual-component-ctrl.ts
|
|
1353
1351
|
|
|
1354
1352
|
const log$1 = Log.create('base formly component', Level.__NOTHING);
|
|
1355
1353
|
class BaseFormlyComponent extends FieldType {
|
|
@@ -1454,7 +1452,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1454
1452
|
type: Input
|
|
1455
1453
|
}] } });
|
|
1456
1454
|
;
|
|
1457
|
-
({}); // @--end-of-file-for-module=tnp-helpers
|
|
1455
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/base-formly-component.ts
|
|
1458
1456
|
|
|
1459
1457
|
class ResizeService {
|
|
1460
1458
|
constructor() {
|
|
@@ -1473,7 +1471,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1473
1471
|
type: Injectable
|
|
1474
1472
|
}], ctorParameters: function () { return []; } });
|
|
1475
1473
|
;
|
|
1476
|
-
({}); // @--end-of-file-for-module=tnp-helpers
|
|
1474
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/resize-service.ts
|
|
1477
1475
|
|
|
1478
1476
|
const log = Log.create(`[firedev-helpers] long-press`, Level.__NOTHING);
|
|
1479
1477
|
class LongPress {
|
|
@@ -1576,13 +1574,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1576
1574
|
args: ['mouseup']
|
|
1577
1575
|
}] } });
|
|
1578
1576
|
;
|
|
1579
|
-
({}); // @--end-of-file-for-module=tnp-helpers
|
|
1577
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/long-press.directive.ts
|
|
1580
1578
|
|
|
1581
1579
|
/* */
|
|
1582
1580
|
/* */
|
|
1583
1581
|
const Helpers = HelpersTnp.Instance;
|
|
1584
1582
|
;
|
|
1585
|
-
({}); // @--end-of-file-for-module=tnp-helpers
|
|
1583
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/index.ts
|
|
1586
1584
|
|
|
1587
1585
|
/**
|
|
1588
1586
|
* Generated bundle index. Do not edit.
|
|
@@ -2,7 +2,6 @@ import { _, CoreHelpers } from 'tnp-core/browser';
|
|
|
2
2
|
import * as fuzzy from 'fuzzy';
|
|
3
3
|
import { CLASS } from 'typescript-class-helpers/browser';
|
|
4
4
|
import { Morphi } from 'morphi/browser';
|
|
5
|
-
import { config } from 'tnp-config/browser';
|
|
6
5
|
import * as i0 from '@angular/core';
|
|
7
6
|
import { Component, Input, EventEmitter, Output, Injectable, Directive, HostBinding, HostListener } from '@angular/core';
|
|
8
7
|
import { NavigationEnd } from '@angular/router';
|
|
@@ -88,7 +87,7 @@ class HelpersArrayObj {
|
|
|
88
87
|
}
|
|
89
88
|
}
|
|
90
89
|
;
|
|
91
|
-
({}); // @--end-of-file-for-module=tnp-helpers
|
|
90
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/helpers-array-obj.ts
|
|
92
91
|
|
|
93
92
|
class HelpersStringsRegexes {
|
|
94
93
|
escapeStringForRegEx(s) {
|
|
@@ -138,7 +137,7 @@ class HelpersStringsRegexes {
|
|
|
138
137
|
}
|
|
139
138
|
}
|
|
140
139
|
;
|
|
141
|
-
({}); // @--end-of-file-for-module=tnp-helpers
|
|
140
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/helpers-strings-regexes.ts
|
|
142
141
|
|
|
143
142
|
/* */
|
|
144
143
|
/* */
|
|
@@ -170,7 +169,7 @@ class HelpersEnvironment {
|
|
|
170
169
|
}
|
|
171
170
|
}
|
|
172
171
|
;
|
|
173
|
-
({}); // @--end-of-file-for-module=tnp-helpers
|
|
172
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/helpers-environment.ts
|
|
174
173
|
|
|
175
174
|
class HelpersStrings {
|
|
176
175
|
/**
|
|
@@ -421,7 +420,7 @@ class HelpersStrings {
|
|
|
421
420
|
}
|
|
422
421
|
}
|
|
423
422
|
;
|
|
424
|
-
({}); // @--end-of-file-for-module=tnp-helpers
|
|
423
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/helpers-strings.ts
|
|
425
424
|
|
|
426
425
|
async function conditionWait(conditionAndTimeout) {
|
|
427
426
|
await waitFor(conditionAndTimeout);
|
|
@@ -465,7 +464,7 @@ function waitFor(arr, messageToShow = void 0) {
|
|
|
465
464
|
});
|
|
466
465
|
}
|
|
467
466
|
;
|
|
468
|
-
({}); // @--end-of-file-for-module=tnp-helpers
|
|
467
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/condition-wait.ts
|
|
469
468
|
|
|
470
469
|
class HelpersNumber {
|
|
471
470
|
constructor() {
|
|
@@ -473,7 +472,7 @@ class HelpersNumber {
|
|
|
473
472
|
}
|
|
474
473
|
}
|
|
475
474
|
;
|
|
476
|
-
({}); // @--end-of-file-for-module=tnp-helpers
|
|
475
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/helpers-numbers.ts
|
|
477
476
|
|
|
478
477
|
function applyMixins(derivedCtor, baseCtors) {
|
|
479
478
|
baseCtors.forEach(baseCtor => {
|
|
@@ -742,7 +741,7 @@ applyMixins(HelpersTnp, [
|
|
|
742
741
|
/* */
|
|
743
742
|
]);
|
|
744
743
|
;
|
|
745
|
-
({}); // @--end-of-file-for-module=tnp-helpers
|
|
744
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/helpers.ts
|
|
746
745
|
|
|
747
746
|
const BaselineSiteJoinprefix = '__';
|
|
748
747
|
const PREFIXES = {
|
|
@@ -750,7 +749,7 @@ const PREFIXES = {
|
|
|
750
749
|
DELETED: '____DELETED____',
|
|
751
750
|
ORIGINAL: '____ORIGINAL____',
|
|
752
751
|
};
|
|
753
|
-
({}); // @--end-of-file-for-module=tnp-helpers
|
|
752
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/constants.ts
|
|
754
753
|
|
|
755
754
|
/* */
|
|
756
755
|
const Helpers$1 = HelpersTnp.Instance;
|
|
@@ -1032,10 +1031,6 @@ class Project {
|
|
|
1032
1031
|
/* */
|
|
1033
1032
|
return (void 0);
|
|
1034
1033
|
}
|
|
1035
|
-
/* */
|
|
1036
|
-
/* */
|
|
1037
|
-
/* */
|
|
1038
|
-
/* */
|
|
1039
1034
|
/**
|
|
1040
1035
|
* @deprecated
|
|
1041
1036
|
*/
|
|
@@ -1106,6 +1101,7 @@ class Project {
|
|
|
1106
1101
|
/* */
|
|
1107
1102
|
/* */
|
|
1108
1103
|
/* */
|
|
1104
|
+
/* */
|
|
1109
1105
|
return (void 0);
|
|
1110
1106
|
}
|
|
1111
1107
|
setType(type) {
|
|
@@ -1119,10 +1115,12 @@ class Project {
|
|
|
1119
1115
|
return !this.typeIs(...types);
|
|
1120
1116
|
}
|
|
1121
1117
|
forEmptyStructure() {
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1118
|
+
/* */
|
|
1119
|
+
/* */
|
|
1120
|
+
/* */
|
|
1121
|
+
/* */
|
|
1122
|
+
/* */
|
|
1123
|
+
return (void 0);
|
|
1126
1124
|
}
|
|
1127
1125
|
}
|
|
1128
1126
|
Project.projects = [];
|
|
@@ -1176,10 +1174,10 @@ Project.emptyLocations = [];
|
|
|
1176
1174
|
/* */
|
|
1177
1175
|
/* */
|
|
1178
1176
|
;
|
|
1179
|
-
({}); // @--end-of-file-for-module=tnp-helpers
|
|
1177
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/project.ts
|
|
1180
1178
|
|
|
1181
1179
|
;
|
|
1182
|
-
({}); // @--end-of-file-for-module=tnp-helpers
|
|
1180
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/firedev-models.ts
|
|
1183
1181
|
|
|
1184
1182
|
class BaseComponent {
|
|
1185
1183
|
constructor() {
|
|
@@ -1226,7 +1224,7 @@ class BaseComponentForRouter extends BaseComponent {
|
|
|
1226
1224
|
}
|
|
1227
1225
|
}
|
|
1228
1226
|
;
|
|
1229
|
-
({}); // @--end-of-file-for-module=tnp-helpers
|
|
1227
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/base-component.ts
|
|
1230
1228
|
|
|
1231
1229
|
const log$2 = Log.create(`DualComponentController`);
|
|
1232
1230
|
class DualComponentController {
|
|
@@ -1340,7 +1338,7 @@ class DualComponentController {
|
|
|
1340
1338
|
}
|
|
1341
1339
|
}
|
|
1342
1340
|
;
|
|
1343
|
-
({}); // @--end-of-file-for-module=tnp-helpers
|
|
1341
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/dual-component-ctrl.ts
|
|
1344
1342
|
|
|
1345
1343
|
const log$1 = Log.create('base formly component', Level.__NOTHING);
|
|
1346
1344
|
class BaseFormlyComponent extends FieldType {
|
|
@@ -1445,7 +1443,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1445
1443
|
type: Input
|
|
1446
1444
|
}] } });
|
|
1447
1445
|
;
|
|
1448
|
-
({}); // @--end-of-file-for-module=tnp-helpers
|
|
1446
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/base-formly-component.ts
|
|
1449
1447
|
|
|
1450
1448
|
class ResizeService {
|
|
1451
1449
|
constructor() {
|
|
@@ -1464,7 +1462,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1464
1462
|
type: Injectable
|
|
1465
1463
|
}], ctorParameters: function () { return []; } });
|
|
1466
1464
|
;
|
|
1467
|
-
({}); // @--end-of-file-for-module=tnp-helpers
|
|
1465
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/resize-service.ts
|
|
1468
1466
|
|
|
1469
1467
|
const log = Log.create(`[firedev-helpers] long-press`, Level.__NOTHING);
|
|
1470
1468
|
class LongPress {
|
|
@@ -1567,13 +1565,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
1567
1565
|
args: ['mouseup']
|
|
1568
1566
|
}] } });
|
|
1569
1567
|
;
|
|
1570
|
-
({}); // @--end-of-file-for-module=tnp-helpers
|
|
1568
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/long-press.directive.ts
|
|
1571
1569
|
|
|
1572
1570
|
/* */
|
|
1573
1571
|
/* */
|
|
1574
1572
|
const Helpers = HelpersTnp.Instance;
|
|
1575
1573
|
;
|
|
1576
|
-
({}); // @--end-of-file-for-module=tnp-helpers
|
|
1574
|
+
({}); // @--end-of-file-for-module=tnp-helpers lib/index.ts
|
|
1577
1575
|
|
|
1578
1576
|
/**
|
|
1579
1577
|
* Generated bundle index. Do not edit.
|
package/lib/base-component.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
function
|
|
5
|
-
exports.
|
|
3
|
+
exports.dummy1673346296936 = void 0;
|
|
4
|
+
function dummy1673346296936() { }
|
|
5
|
+
exports.dummy1673346296936 = dummy1673346296936;
|
|
6
6
|
//# sourceMappingURL=base-component.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
function
|
|
5
|
-
exports.
|
|
3
|
+
exports.dummy1673346296938 = void 0;
|
|
4
|
+
function dummy1673346296938() { }
|
|
5
|
+
exports.dummy1673346296938 = dummy1673346296938;
|
|
6
6
|
//# sourceMappingURL=base-formly-component.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
function
|
|
5
|
-
exports.
|
|
3
|
+
exports.dummy1673346296939 = void 0;
|
|
4
|
+
function dummy1673346296939() { }
|
|
5
|
+
exports.dummy1673346296939 = dummy1673346296939;
|
|
6
6
|
//# sourceMappingURL=dual-component-ctrl.js.map
|
package/lib/git-project.js
CHANGED
|
@@ -14,7 +14,7 @@ var ProjectGit = /** @class */ (function () {
|
|
|
14
14
|
}
|
|
15
15
|
//#region @backend
|
|
16
16
|
ProjectGit.prototype.runCommandGetString = function (command) {
|
|
17
|
-
return Helpers.commnadOutputAsString(command, this.location, false);
|
|
17
|
+
return Helpers.commnadOutputAsString(command, this.location, { biggerBuffer: false });
|
|
18
18
|
};
|
|
19
19
|
ProjectGit.prototype.execute = function (command, options) {
|
|
20
20
|
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
@@ -35,7 +35,7 @@ var ProjectGit = /** @class */ (function () {
|
|
|
35
35
|
else {
|
|
36
36
|
Helpers.log("[".concat(tnp_cli_1.CLI.chalk.underline('Executing shell command'), "] \"").concat(command, "\" in [").concat(cwd, "]"));
|
|
37
37
|
}
|
|
38
|
-
return [4 /*yield*/, Helpers.execute(
|
|
38
|
+
return [4 /*yield*/, Helpers.execute(command, cwd, options)];
|
|
39
39
|
case 1: return [2 /*return*/, _a.sent()];
|
|
40
40
|
}
|
|
41
41
|
});
|
|
@@ -36,7 +36,6 @@ export declare class HelpersFileFolders {
|
|
|
36
36
|
}): void;
|
|
37
37
|
tryRemoveDir(dirpath: string, contentOnly?: boolean): void;
|
|
38
38
|
move(from: string, to: string): void;
|
|
39
|
-
remove(fileOrFolderPathOrPatter: string | string[], exactFolder?: boolean): void;
|
|
40
39
|
findChildren<T>(location: any, createFn: (childLocation: string) => T): T[];
|
|
41
40
|
findChildrenNavi<T>(location: any, createFn: (childLocation: string) => T): T[];
|
|
42
41
|
getRecrusiveFilesFrom(dir: string, ommitFolders?: string[], options?: GetRecrusiveFilesFromOptions): string[];
|
|
@@ -324,22 +324,30 @@ var HelpersFileFolders = /** @class */ (function () {
|
|
|
324
324
|
index_1.Helpers.warn("[move] Destination path is not absolute: ".concat(to));
|
|
325
325
|
return;
|
|
326
326
|
}
|
|
327
|
+
if (index_1.Helpers.isUnexistedLink(to)) {
|
|
328
|
+
index_1.Helpers.remove(to);
|
|
329
|
+
}
|
|
330
|
+
if (index_1.Helpers.isUnexistedLink(tnp_core_1.path.dirname(to))) {
|
|
331
|
+
index_1.Helpers.remove(tnp_core_1.path.dirname(to));
|
|
332
|
+
}
|
|
333
|
+
// if (!Helpers.exists(path.dirname(to))) {
|
|
334
|
+
// if (Helpers.isUnexistedLink(path.dirname(to))) {
|
|
335
|
+
// Helpers.remove(path.dirname(to));
|
|
336
|
+
// } else {
|
|
337
|
+
// Helpers.remove(path.dirname(to));
|
|
338
|
+
// Helpers.mkdirp(path.dirname(to));
|
|
339
|
+
// }
|
|
340
|
+
// }
|
|
341
|
+
// if(Helpers.isSymlinkFileExitedOrUnexisted(to)) {
|
|
342
|
+
// Helpers.error(`You are trying to move into symlink location:
|
|
343
|
+
// from: ${from}
|
|
344
|
+
// to: ${to}
|
|
345
|
+
// `)
|
|
346
|
+
// }
|
|
327
347
|
tnp_core_1.fse.moveSync(from, to, {
|
|
328
348
|
overwrite: true
|
|
329
349
|
});
|
|
330
350
|
};
|
|
331
|
-
HelpersFileFolders.prototype.remove = function (fileOrFolderPathOrPatter, exactFolder) {
|
|
332
|
-
if (exactFolder === void 0) { exactFolder = false; }
|
|
333
|
-
if (Array.isArray(fileOrFolderPathOrPatter)) {
|
|
334
|
-
fileOrFolderPathOrPatter = tnp_core_1.path.join.apply(tnp_core_1.path, tslib_1.__spreadArray([], tslib_1.__read(fileOrFolderPathOrPatter), false));
|
|
335
|
-
}
|
|
336
|
-
index_1.Helpers.log("[firedev-helpers][remove]: ".concat(fileOrFolderPathOrPatter), 1);
|
|
337
|
-
if (exactFolder) {
|
|
338
|
-
tnp_core_1.rimraf.sync(fileOrFolderPathOrPatter, { glob: false, disableGlob: true, });
|
|
339
|
-
return;
|
|
340
|
-
}
|
|
341
|
-
tnp_core_1.rimraf.sync(fileOrFolderPathOrPatter);
|
|
342
|
-
};
|
|
343
351
|
HelpersFileFolders.prototype.findChildren = function (location, createFn) {
|
|
344
352
|
var notAllowed = tslib_1.__spreadArray(tslib_1.__spreadArray([
|
|
345
353
|
'\.vscode', 'node\_modules'
|
|
@@ -182,7 +182,10 @@ var HelpersGit = /** @class */ (function () {
|
|
|
182
182
|
}
|
|
183
183
|
var command = "git branch -a";
|
|
184
184
|
// console.log({ command, cwd })
|
|
185
|
-
var branchNames = index_1.Helpers.commnadOutputAsString(command, cwd,
|
|
185
|
+
var branchNames = index_1.Helpers.commnadOutputAsString(command, cwd, {
|
|
186
|
+
biggerBuffer: true,
|
|
187
|
+
showWholeCommandNotOnlyLastLine: true,
|
|
188
|
+
});
|
|
186
189
|
// console.log({ branchNames })
|
|
187
190
|
var _branchNames = branchNames
|
|
188
191
|
.toString()
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import { child_process } from 'tnp-core';
|
|
3
2
|
import { Models } from 'tnp-models';
|
|
4
3
|
import { Level } from 'ng2-logger';
|
|
@@ -28,8 +27,6 @@ export declare class HelpersProcess {
|
|
|
28
27
|
questionYesNo(message: string, callbackTrue?: () => any, callbackFalse?: () => any, defaultValue?: boolean): Promise<boolean>;
|
|
29
28
|
get isWsl(): boolean;
|
|
30
29
|
getWorkingDirOfProcess(PID: number): string;
|
|
31
|
-
commnadOutputAsStringAsync(command: string, cwd?: string, biggerBuffer?: boolean, showWholeCommandNotOnlyLastLine?: boolean): Promise<string>;
|
|
32
|
-
commnadOutputAsString(command: string, cwd?: string, biggerBuffer?: boolean, showWholeCommandNotOnlyLastLine?: boolean): string;
|
|
33
30
|
outputToVScode(data: {
|
|
34
31
|
label: string;
|
|
35
32
|
option: string;
|
|
@@ -41,7 +38,6 @@ export declare class HelpersProcess {
|
|
|
41
38
|
killProcessByPort(portOrPortsToKill: number | number[]): Promise<void>;
|
|
42
39
|
clearConsole(): void;
|
|
43
40
|
formatPath(pathToFileOrFolder: string): string;
|
|
44
|
-
waitForMessegeInStdout(proc: child_process.ChildProcess, message: string): Promise<unknown>;
|
|
45
41
|
prepareWatchCommand(cmd: any): string;
|
|
46
42
|
get watcher(): {
|
|
47
43
|
/**
|
|
@@ -273,62 +273,6 @@ var HelpersProcess = /** @class */ (function () {
|
|
|
273
273
|
index_1.Helpers.error(e);
|
|
274
274
|
}
|
|
275
275
|
};
|
|
276
|
-
HelpersProcess.prototype.commnadOutputAsStringAsync = function (command, cwd, biggerBuffer, showWholeCommandNotOnlyLastLine) {
|
|
277
|
-
if (cwd === void 0) { cwd = (0, tnp_core_1.crossPlatformPath)(process.cwd()); }
|
|
278
|
-
if (biggerBuffer === void 0) { biggerBuffer = false; }
|
|
279
|
-
if (showWholeCommandNotOnlyLastLine === void 0) { showWholeCommandNotOnlyLastLine = false; }
|
|
280
|
-
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
281
|
-
var output, splited, e_1;
|
|
282
|
-
return tslib_1.__generator(this, function (_a) {
|
|
283
|
-
switch (_a.label) {
|
|
284
|
-
case 0:
|
|
285
|
-
output = '';
|
|
286
|
-
_a.label = 1;
|
|
287
|
-
case 1:
|
|
288
|
-
_a.trys.push([1, 3, , 4]);
|
|
289
|
-
return [4 /*yield*/, index_1.Helpers.command(command).getherOutput()];
|
|
290
|
-
case 2:
|
|
291
|
-
output = _a.sent();
|
|
292
|
-
// console.log({
|
|
293
|
-
// output
|
|
294
|
-
// })
|
|
295
|
-
if (showWholeCommandNotOnlyLastLine) {
|
|
296
|
-
// console.log('SHHOW WOLE', output)
|
|
297
|
-
return [2 /*return*/, output.replace(/[^\x00-\xFF]/g, '')];
|
|
298
|
-
}
|
|
299
|
-
splited = (output || '').split('\n');
|
|
300
|
-
output = (splited.pop() || '').replace(/[^\x00-\xFF]/g, '');
|
|
301
|
-
return [3 /*break*/, 4];
|
|
302
|
-
case 3:
|
|
303
|
-
e_1 = _a.sent();
|
|
304
|
-
index_1.Helpers.warn("[tnp-helepr] Not able to get output from command:\n \"".concat(command, "\"\n "));
|
|
305
|
-
return [3 /*break*/, 4];
|
|
306
|
-
case 4: return [2 /*return*/, output];
|
|
307
|
-
}
|
|
308
|
-
});
|
|
309
|
-
});
|
|
310
|
-
};
|
|
311
|
-
HelpersProcess.prototype.commnadOutputAsString = function (command, cwd, biggerBuffer, showWholeCommandNotOnlyLastLine) {
|
|
312
|
-
if (cwd === void 0) { cwd = (0, tnp_core_1.crossPlatformPath)(process.cwd()); }
|
|
313
|
-
if (biggerBuffer === void 0) { biggerBuffer = false; }
|
|
314
|
-
if (showWholeCommandNotOnlyLastLine === void 0) { showWholeCommandNotOnlyLastLine = false; }
|
|
315
|
-
var output = '';
|
|
316
|
-
try {
|
|
317
|
-
output = index_1.Helpers.run(command, { output: false, cwd: cwd, biggerBuffer: biggerBuffer }).sync().toString().trim();
|
|
318
|
-
// console.log({
|
|
319
|
-
// output
|
|
320
|
-
// })
|
|
321
|
-
if (showWholeCommandNotOnlyLastLine) {
|
|
322
|
-
return output.replace(/[^\x00-\xFF]/g, '');
|
|
323
|
-
}
|
|
324
|
-
var splited = (output || '').split('\n');
|
|
325
|
-
output = (splited.pop() || '').replace(/[^\x00-\xFF]/g, '');
|
|
326
|
-
}
|
|
327
|
-
catch (e) {
|
|
328
|
-
index_1.Helpers.warn("[tnp-helepr] Not able to get output from command:\n \"".concat(command, "\"\n cwd: ").concat(cwd, "\n "));
|
|
329
|
-
}
|
|
330
|
-
return output;
|
|
331
|
-
};
|
|
332
276
|
HelpersProcess.prototype.outputToVScode = function (data, disableEncode) {
|
|
333
277
|
if (disableEncode === void 0) { disableEncode = false; }
|
|
334
278
|
if (tnp_core_1._.isObject(data)) {
|
|
@@ -373,7 +317,7 @@ var HelpersProcess = /** @class */ (function () {
|
|
|
373
317
|
};
|
|
374
318
|
HelpersProcess.prototype.killProcessByPort = function (portOrPortsToKill) {
|
|
375
319
|
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
376
|
-
var index, port, org,
|
|
320
|
+
var index, port, org, e_1;
|
|
377
321
|
return tslib_1.__generator(this, function (_a) {
|
|
378
322
|
switch (_a.label) {
|
|
379
323
|
case 0:
|
|
@@ -401,7 +345,7 @@ var HelpersProcess = /** @class */ (function () {
|
|
|
401
345
|
index_1.Helpers.info("Processs killed successfully on port: ".concat(port));
|
|
402
346
|
return [3 /*break*/, 5];
|
|
403
347
|
case 4:
|
|
404
|
-
|
|
348
|
+
e_1 = _a.sent();
|
|
405
349
|
index_1.Helpers.warn("No process to kill on port: ".concat(port, "... "));
|
|
406
350
|
return [3 /*break*/, 5];
|
|
407
351
|
case 5:
|
|
@@ -445,36 +389,6 @@ var HelpersProcess = /** @class */ (function () {
|
|
|
445
389
|
+ '\n/' + tnp_cli_1.CLI.chalk.bold(tnp_core_1.path.basename(pathToFileOrFolder))), "\n").concat(index_1.Helpers.terminalLine(), "\n");
|
|
446
390
|
};
|
|
447
391
|
;
|
|
448
|
-
HelpersProcess.prototype.waitForMessegeInStdout = function (proc, message) {
|
|
449
|
-
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
450
|
-
return tslib_1.__generator(this, function (_a) {
|
|
451
|
-
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
452
|
-
var resolved = false;
|
|
453
|
-
proc.stdout.on('data', function (data) {
|
|
454
|
-
// console.log(`
|
|
455
|
-
// [waitForMessegeInStdout] data: ${data}
|
|
456
|
-
// [waitForMessegeInStdout] data typeof: ${typeof data}
|
|
457
|
-
// `);
|
|
458
|
-
if (tnp_core_1._.isObject(data) && tnp_core_1._.isFunction(data.toString)) {
|
|
459
|
-
data = data.toString();
|
|
460
|
-
}
|
|
461
|
-
if (tnp_core_1._.isString(data) && data.search(message) !== -1) {
|
|
462
|
-
resolved = true;
|
|
463
|
-
resolve(void 0);
|
|
464
|
-
}
|
|
465
|
-
});
|
|
466
|
-
proc.once('exit', function () {
|
|
467
|
-
// console.log(`
|
|
468
|
-
// [waitForMessegeInStdout] exit: ${code}
|
|
469
|
-
// `);
|
|
470
|
-
if (!resolved) {
|
|
471
|
-
reject();
|
|
472
|
-
}
|
|
473
|
-
});
|
|
474
|
-
})];
|
|
475
|
-
});
|
|
476
|
-
});
|
|
477
|
-
};
|
|
478
392
|
HelpersProcess.prototype.prepareWatchCommand = function (cmd) {
|
|
479
393
|
return tnp_core_1.os.platform() === 'win32' ? "\"".concat(cmd, "\"") : "'".concat(cmd, "'");
|
|
480
394
|
};
|
package/lib/project.d.ts
CHANGED
|
@@ -80,7 +80,6 @@ export declare class Project<T extends Project<any> = any> extends ProjectGit {
|
|
|
80
80
|
static DefaultPortByType(type: ConfigModels.LibType): number;
|
|
81
81
|
static get isBundleMode(): boolean;
|
|
82
82
|
static get Current(): Project<any>;
|
|
83
|
-
static get NaviCliLocation(): string;
|
|
84
83
|
/**
|
|
85
84
|
* @deprecated
|
|
86
85
|
*/
|
package/lib/project.js
CHANGED
|
@@ -287,16 +287,7 @@ var Project = /** @class */ (function (_super) {
|
|
|
287
287
|
enumerable: false,
|
|
288
288
|
configurable: true
|
|
289
289
|
});
|
|
290
|
-
Object.defineProperty(Project, "NaviCliLocation", {
|
|
291
|
-
//#region @backend
|
|
292
|
-
get: function () {
|
|
293
|
-
return tnp_core_1.path.resolve(tnp_core_1.path.join(Project.Tnp.location, '../navi-cli'));
|
|
294
|
-
},
|
|
295
|
-
enumerable: false,
|
|
296
|
-
configurable: true
|
|
297
|
-
});
|
|
298
290
|
Object.defineProperty(Project, "Tnp", {
|
|
299
|
-
//#endregion
|
|
300
291
|
/**
|
|
301
292
|
* @deprecated
|
|
302
293
|
*/
|
|
@@ -341,6 +332,7 @@ var Project = /** @class */ (function (_super) {
|
|
|
341
332
|
//#region @backendFunc
|
|
342
333
|
var that = this;
|
|
343
334
|
var className = typescript_class_helpers_1.CLASS.getName(classFn);
|
|
335
|
+
// @ts-ignore
|
|
344
336
|
var prefixedName = "__".concat(variableName);
|
|
345
337
|
Object.defineProperty(this, variableName, {
|
|
346
338
|
get: function () {
|
|
@@ -380,10 +372,12 @@ var Project = /** @class */ (function (_super) {
|
|
|
380
372
|
return !this.typeIs.apply(this, tslib_1.__spreadArray([], tslib_1.__read(types), false));
|
|
381
373
|
};
|
|
382
374
|
Project.prototype.forEmptyStructure = function () {
|
|
375
|
+
//#region @backendFunc
|
|
383
376
|
return [
|
|
384
377
|
{ relativePath: tnp_config_1.config.file.package_json, includeContent: true },
|
|
385
378
|
{ relativePath: tnp_config_1.config.folder.src },
|
|
386
379
|
];
|
|
380
|
+
//#endregion
|
|
387
381
|
};
|
|
388
382
|
Project.projects = [];
|
|
389
383
|
/**
|