tnp-helpers 13.1.25 → 13.1.26

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.
Files changed (180) hide show
  1. package/app.js +3 -3
  2. package/browser/README.md +24 -24
  3. package/browser/esm2020/lib/angular.helper.mjs +87 -87
  4. package/browser/esm2020/lib/base-component.mjs +49 -49
  5. package/browser/esm2020/lib/base-formly-component.mjs +112 -112
  6. package/browser/esm2020/lib/condition-wait.mjs +45 -45
  7. package/browser/esm2020/lib/constants.mjs +8 -8
  8. package/browser/esm2020/lib/dual-component-ctrl.mjs +118 -118
  9. package/browser/esm2020/lib/firedev-models.mjs +3 -3
  10. package/browser/esm2020/lib/helpers-array-obj.mjs +82 -82
  11. package/browser/esm2020/lib/helpers-browser.mjs +46 -46
  12. package/browser/esm2020/lib/helpers-console-gui.mjs +9 -9
  13. package/browser/esm2020/lib/helpers-environment.mjs +32 -32
  14. package/browser/esm2020/lib/helpers-numbers.mjs +7 -7
  15. package/browser/esm2020/lib/helpers-strings-regexes.mjs +50 -50
  16. package/browser/esm2020/lib/helpers-strings.mjs +252 -252
  17. package/browser/esm2020/lib/helpers.mjs +285 -285
  18. package/browser/esm2020/lib/index.mjs +15 -15
  19. package/browser/esm2020/lib/long-press.directive.mjs +112 -112
  20. package/browser/esm2020/lib/project.mjs +429 -429
  21. package/browser/esm2020/lib/resize-service.mjs +21 -21
  22. package/browser/esm2020/public-api.mjs +1 -1
  23. package/browser/esm2020/tnp-helpers.mjs +4 -4
  24. package/browser/fesm2015/tnp-helpers.mjs +1686 -1686
  25. package/browser/fesm2020/tnp-helpers.mjs +1676 -1676
  26. package/browser/lib/angular.helper.d.ts +35 -35
  27. package/browser/lib/base-component.d.ts +16 -16
  28. package/browser/lib/base-formly-component.d.ts +30 -30
  29. package/browser/lib/condition-wait.d.ts +7 -7
  30. package/browser/lib/constants.d.ts +6 -6
  31. package/browser/lib/dual-component-ctrl.d.ts +24 -24
  32. package/browser/lib/firedev-models.d.ts +12 -12
  33. package/browser/lib/helpers-array-obj.d.ts +14 -14
  34. package/browser/lib/helpers-browser.d.ts +10 -10
  35. package/browser/lib/helpers-console-gui.d.ts +5 -5
  36. package/browser/lib/helpers-environment.d.ts +4 -4
  37. package/browser/lib/helpers-numbers.d.ts +2 -2
  38. package/browser/lib/helpers-strings-regexes.d.ts +27 -27
  39. package/browser/lib/helpers-strings.d.ts +49 -49
  40. package/browser/lib/helpers.d.ts +33 -33
  41. package/browser/lib/index.d.ts +11 -11
  42. package/browser/lib/long-press.directive.d.ts +24 -24
  43. package/browser/lib/project.d.ts +93 -93
  44. package/browser/lib/resize-service.d.ts +8 -8
  45. package/browser/tnp-helpers.d.ts +4 -4
  46. package/client/README.md +24 -24
  47. package/client/esm2020/lib/angular.helper.mjs +87 -87
  48. package/client/esm2020/lib/base-component.mjs +49 -49
  49. package/client/esm2020/lib/base-formly-component.mjs +112 -112
  50. package/client/esm2020/lib/condition-wait.mjs +45 -45
  51. package/client/esm2020/lib/constants.mjs +8 -8
  52. package/client/esm2020/lib/dual-component-ctrl.mjs +118 -118
  53. package/client/esm2020/lib/firedev-models.mjs +3 -3
  54. package/client/esm2020/lib/helpers-array-obj.mjs +82 -82
  55. package/client/esm2020/lib/helpers-browser.mjs +46 -46
  56. package/client/esm2020/lib/helpers-console-gui.mjs +9 -9
  57. package/client/esm2020/lib/helpers-environment.mjs +32 -32
  58. package/client/esm2020/lib/helpers-numbers.mjs +7 -7
  59. package/client/esm2020/lib/helpers-strings-regexes.mjs +50 -50
  60. package/client/esm2020/lib/helpers-strings.mjs +252 -252
  61. package/client/esm2020/lib/helpers.mjs +285 -285
  62. package/client/esm2020/lib/index.mjs +15 -15
  63. package/client/esm2020/lib/long-press.directive.mjs +112 -112
  64. package/client/esm2020/lib/project.mjs +429 -429
  65. package/client/esm2020/lib/resize-service.mjs +21 -21
  66. package/client/esm2020/public-api.mjs +1 -1
  67. package/client/esm2020/tnp-helpers.mjs +4 -4
  68. package/client/fesm2015/tnp-helpers.mjs +1686 -1686
  69. package/client/fesm2020/tnp-helpers.mjs +1676 -1676
  70. package/client/lib/angular.helper.d.ts +35 -35
  71. package/client/lib/base-component.d.ts +16 -16
  72. package/client/lib/base-formly-component.d.ts +30 -30
  73. package/client/lib/condition-wait.d.ts +7 -7
  74. package/client/lib/constants.d.ts +6 -6
  75. package/client/lib/dual-component-ctrl.d.ts +24 -24
  76. package/client/lib/firedev-models.d.ts +12 -12
  77. package/client/lib/helpers-array-obj.d.ts +14 -14
  78. package/client/lib/helpers-browser.d.ts +10 -10
  79. package/client/lib/helpers-console-gui.d.ts +5 -5
  80. package/client/lib/helpers-environment.d.ts +4 -4
  81. package/client/lib/helpers-numbers.d.ts +2 -2
  82. package/client/lib/helpers-strings-regexes.d.ts +27 -27
  83. package/client/lib/helpers-strings.d.ts +49 -49
  84. package/client/lib/helpers.d.ts +33 -33
  85. package/client/lib/index.d.ts +11 -11
  86. package/client/lib/long-press.directive.d.ts +24 -24
  87. package/client/lib/project.d.ts +93 -93
  88. package/client/lib/resize-service.d.ts +8 -8
  89. package/client/tnp-helpers.d.ts +4 -4
  90. package/index.d.ts +1 -1
  91. package/lib/angular.helper.d.ts +35 -35
  92. package/lib/angular.helper.js +3 -3
  93. package/lib/base-component.d.ts +13 -13
  94. package/lib/base-component.js +3 -3
  95. package/lib/base-formly-component.d.ts +27 -27
  96. package/lib/base-formly-component.js +3 -3
  97. package/lib/condition-wait.d.ts +8 -8
  98. package/lib/constants.d.ts +7 -7
  99. package/lib/dual-component-ctrl.d.ts +24 -24
  100. package/lib/dual-component-ctrl.js +3 -3
  101. package/lib/firedev-models.d.ts +13 -13
  102. package/lib/git-project.d.ts +46 -46
  103. package/lib/helpers-array-obj.d.ts +15 -15
  104. package/lib/helpers-browser.d.ts +11 -11
  105. package/lib/helpers-cli-tool.backend.d.ts +55 -55
  106. package/lib/helpers-cli-tool.backend.js +1 -1
  107. package/lib/helpers-cli-tool.backend.js.map +1 -1
  108. package/lib/helpers-console-gui.d.ts +17 -17
  109. package/lib/helpers-dependencies.backend.d.ts +11 -11
  110. package/lib/helpers-environment.d.ts +5 -5
  111. package/lib/helpers-file-folders.backend.d.ts +84 -84
  112. package/lib/helpers-git.backend.d.ts +43 -43
  113. package/lib/helpers-json5.backend.d.ts +16 -16
  114. package/lib/helpers-morphi-framework.backend.d.ts +4 -4
  115. package/lib/helpers-network.backend.d.ts +8 -8
  116. package/lib/helpers-npm.backend.d.ts +3 -3
  117. package/lib/helpers-numbers.d.ts +3 -3
  118. package/lib/helpers-path.backend.d.ts +7 -7
  119. package/lib/helpers-process.backend.d.ts +58 -58
  120. package/lib/helpers-strings-regexes.d.ts +28 -28
  121. package/lib/helpers-strings.d.ts +50 -50
  122. package/lib/helpers-system-terminal.backend.d.ts +5 -5
  123. package/lib/helpers-vscode.backend.d.ts +5 -5
  124. package/lib/helpers.d.ts +74 -74
  125. package/lib/index.d.ts +12 -12
  126. package/lib/long-press.directive.d.ts +22 -22
  127. package/lib/merge-helpers.backend.d.ts +23 -23
  128. package/lib/project.d.ts +96 -96
  129. package/lib/resize-service.d.ts +6 -6
  130. package/lib/ts-code/index.d.ts +1 -1
  131. package/lib/ts-code/ts-code-extractor.d.ts +14 -14
  132. package/lib/ts-code/ts-code-modifier.backend.d.ts +12 -12
  133. package/package.json +3 -3
  134. package/package.json_devDependencies.json +222 -222
  135. package/package.json_tnp.json5 +44 -44
  136. package/tmp-environment.json +23 -26
  137. package/websql/README.md +24 -24
  138. package/websql/esm2020/lib/angular.helper.mjs +87 -87
  139. package/websql/esm2020/lib/base-component.mjs +49 -49
  140. package/websql/esm2020/lib/base-formly-component.mjs +112 -112
  141. package/websql/esm2020/lib/condition-wait.mjs +45 -45
  142. package/websql/esm2020/lib/constants.mjs +8 -8
  143. package/websql/esm2020/lib/dual-component-ctrl.mjs +118 -118
  144. package/websql/esm2020/lib/firedev-models.mjs +3 -3
  145. package/websql/esm2020/lib/helpers-array-obj.mjs +82 -82
  146. package/websql/esm2020/lib/helpers-browser.mjs +46 -46
  147. package/websql/esm2020/lib/helpers-console-gui.mjs +9 -9
  148. package/websql/esm2020/lib/helpers-environment.mjs +32 -32
  149. package/websql/esm2020/lib/helpers-numbers.mjs +7 -7
  150. package/websql/esm2020/lib/helpers-strings-regexes.mjs +50 -50
  151. package/websql/esm2020/lib/helpers-strings.mjs +252 -252
  152. package/websql/esm2020/lib/helpers.mjs +285 -285
  153. package/websql/esm2020/lib/index.mjs +15 -15
  154. package/websql/esm2020/lib/long-press.directive.mjs +112 -112
  155. package/websql/esm2020/lib/project.mjs +429 -429
  156. package/websql/esm2020/lib/resize-service.mjs +21 -21
  157. package/websql/esm2020/public-api.mjs +1 -1
  158. package/websql/esm2020/tnp-helpers.mjs +4 -4
  159. package/websql/fesm2015/tnp-helpers.mjs +1686 -1686
  160. package/websql/fesm2020/tnp-helpers.mjs +1676 -1676
  161. package/websql/lib/angular.helper.d.ts +35 -35
  162. package/websql/lib/base-component.d.ts +16 -16
  163. package/websql/lib/base-formly-component.d.ts +30 -30
  164. package/websql/lib/condition-wait.d.ts +7 -7
  165. package/websql/lib/constants.d.ts +6 -6
  166. package/websql/lib/dual-component-ctrl.d.ts +24 -24
  167. package/websql/lib/firedev-models.d.ts +12 -12
  168. package/websql/lib/helpers-array-obj.d.ts +14 -14
  169. package/websql/lib/helpers-browser.d.ts +10 -10
  170. package/websql/lib/helpers-console-gui.d.ts +5 -5
  171. package/websql/lib/helpers-environment.d.ts +4 -4
  172. package/websql/lib/helpers-numbers.d.ts +2 -2
  173. package/websql/lib/helpers-strings-regexes.d.ts +27 -27
  174. package/websql/lib/helpers-strings.d.ts +49 -49
  175. package/websql/lib/helpers.d.ts +33 -33
  176. package/websql/lib/index.d.ts +11 -11
  177. package/websql/lib/long-press.directive.d.ts +24 -24
  178. package/websql/lib/project.d.ts +93 -93
  179. package/websql/lib/resize-service.d.ts +8 -8
  180. package/websql/tnp-helpers.d.ts +4 -4
@@ -11,1730 +11,1730 @@ import { FieldType } from '@ngx-formly/core';
11
11
  import { Log, Level } from 'ng2-logger/browser';
12
12
  import * as elementResizeDetectorMaker from 'element-resize-detector';
13
13
 
14
- class HelpersArrayObj {
15
- from(s) {
16
- if (_.isArray(s)) {
17
- return s;
18
- }
19
- if (_.isString(s)) {
20
- return s.split(' ');
21
- }
22
- }
23
- second(arr) {
24
- if (!Array.isArray(arr) || arr.length < 2) {
25
- return void 0;
26
- }
27
- return arr[1];
28
- }
29
- arrayMoveElementBefore(arr, a, b, prop) {
30
- let indexA = prop ? arr.findIndex(elem => elem[prop] === a[prop]) : arr.indexOf(a);
31
- _.pullAt(arr, indexA);
32
- let indexB = prop ? arr.findIndex(elem => elem[prop] === b[prop]) : arr.indexOf(b);
33
- if (indexB === 0) {
34
- arr.unshift(a);
35
- }
36
- else {
37
- arr.splice(indexB - 1, 0, a);
38
- }
39
- return arr;
40
- }
41
- arrayMoveElementAfterB(arr, a, b, prop) {
42
- let indexA = prop ? arr.findIndex(elem => elem[prop] === a[prop]) : arr.indexOf(a);
43
- _.pullAt(arr, indexA);
44
- let indexB = prop ? arr.findIndex(elem => elem[prop] === b[prop]) : arr.indexOf(b);
45
- if (indexB === arr.length - 1) {
46
- arr.push(a);
47
- }
48
- else {
49
- arr.splice(indexB + 1, 0, a);
50
- }
51
- return arr;
52
- }
53
- uniqArray(array, uniqueProperty) {
54
- var seen = {};
55
- return array
56
- .filter(f => !!f)
57
- .filter(function (item) {
58
- return seen.hasOwnProperty(uniqueProperty ? item[uniqueProperty] : item) ? false
59
- : (seen[uniqueProperty ? item[uniqueProperty] : item] = true);
60
- });
61
- }
62
- sortKeys(obj) {
63
- if (_.isArray(obj)) {
64
- return obj.map(Helpers.arrays.sortKeys);
65
- }
66
- if (_.isObject(obj)) {
67
- return _.fromPairs(_.keys(obj).sort().map(key => [key, Helpers.arrays.sortKeys(obj[key])]));
68
- }
69
- return obj;
70
- }
71
- ;
72
- /**
73
- * Fuzzy search
74
- */
75
- fuzzy(query, list, valueFn) {
76
- const resultsFuzzy = fuzzy.filter(query, list.map(k => valueFn ? valueFn(k) : k));
77
- const resultsFuzzyKebab = fuzzy.filter(_.kebabCase(query), list.map(k => _.kebabCase((valueFn ? valueFn(k) : k))));
78
- const matches = resultsFuzzy.map((el) => el.string);
79
- const matchesKebab = resultsFuzzyKebab.map((el) => el.string);
80
- const results = (resultsFuzzy.length === 0) ? [] : list.filter(k => {
81
- return matches.includes((valueFn ? valueFn(k) : k));
82
- });
83
- if (matches.length === 0 && matchesKebab.length > 0) {
84
- const m = list.find(k => _.kebabCase((valueFn ? valueFn(k) : k)) === _.first(matchesKebab));
85
- results.push(m);
86
- matches.push((valueFn ? valueFn(m) : m));
87
- }
88
- return { matches, results };
89
- }
90
- }
91
- ;
14
+ class HelpersArrayObj {
15
+ from(s) {
16
+ if (_.isArray(s)) {
17
+ return s;
18
+ }
19
+ if (_.isString(s)) {
20
+ return s.split(' ');
21
+ }
22
+ }
23
+ second(arr) {
24
+ if (!Array.isArray(arr) || arr.length < 2) {
25
+ return void 0;
26
+ }
27
+ return arr[1];
28
+ }
29
+ arrayMoveElementBefore(arr, a, b, prop) {
30
+ let indexA = prop ? arr.findIndex(elem => elem[prop] === a[prop]) : arr.indexOf(a);
31
+ _.pullAt(arr, indexA);
32
+ let indexB = prop ? arr.findIndex(elem => elem[prop] === b[prop]) : arr.indexOf(b);
33
+ if (indexB === 0) {
34
+ arr.unshift(a);
35
+ }
36
+ else {
37
+ arr.splice(indexB - 1, 0, a);
38
+ }
39
+ return arr;
40
+ }
41
+ arrayMoveElementAfterB(arr, a, b, prop) {
42
+ let indexA = prop ? arr.findIndex(elem => elem[prop] === a[prop]) : arr.indexOf(a);
43
+ _.pullAt(arr, indexA);
44
+ let indexB = prop ? arr.findIndex(elem => elem[prop] === b[prop]) : arr.indexOf(b);
45
+ if (indexB === arr.length - 1) {
46
+ arr.push(a);
47
+ }
48
+ else {
49
+ arr.splice(indexB + 1, 0, a);
50
+ }
51
+ return arr;
52
+ }
53
+ uniqArray(array, uniqueProperty) {
54
+ var seen = {};
55
+ return array
56
+ .filter(f => !!f)
57
+ .filter(function (item) {
58
+ return seen.hasOwnProperty(uniqueProperty ? item[uniqueProperty] : item) ? false
59
+ : (seen[uniqueProperty ? item[uniqueProperty] : item] = true);
60
+ });
61
+ }
62
+ sortKeys(obj) {
63
+ if (_.isArray(obj)) {
64
+ return obj.map(Helpers.arrays.sortKeys);
65
+ }
66
+ if (_.isObject(obj)) {
67
+ return _.fromPairs(_.keys(obj).sort().map(key => [key, Helpers.arrays.sortKeys(obj[key])]));
68
+ }
69
+ return obj;
70
+ }
71
+ ;
72
+ /**
73
+ * Fuzzy search
74
+ */
75
+ fuzzy(query, list, valueFn) {
76
+ const resultsFuzzy = fuzzy.filter(query, list.map(k => valueFn ? valueFn(k) : k));
77
+ const resultsFuzzyKebab = fuzzy.filter(_.kebabCase(query), list.map(k => _.kebabCase((valueFn ? valueFn(k) : k))));
78
+ const matches = resultsFuzzy.map((el) => el.string);
79
+ const matchesKebab = resultsFuzzyKebab.map((el) => el.string);
80
+ const results = (resultsFuzzy.length === 0) ? [] : list.filter(k => {
81
+ return matches.includes((valueFn ? valueFn(k) : k));
82
+ });
83
+ if (matches.length === 0 && matchesKebab.length > 0) {
84
+ const m = list.find(k => _.kebabCase((valueFn ? valueFn(k) : k)) === _.first(matchesKebab));
85
+ results.push(m);
86
+ matches.push((valueFn ? valueFn(m) : m));
87
+ }
88
+ return { matches, results };
89
+ }
90
+ }
91
+ ;
92
92
  ({}); // @--end-of-file-for-module=tnp-helpers lib/helpers-array-obj.ts
93
93
 
94
- class HelpersStringsRegexes {
95
- escapeStringForRegEx(s) {
96
- return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
97
- }
98
- matchExactOnce(s, regex) {
99
- if (!_.isString(s) || !_.isRegExp(regex)) {
100
- return void 0;
101
- }
102
- const result = s.match(regex);
103
- if (_.isNil(result)) {
104
- return void 0;
105
- }
106
- return result.length >= 1 ? _.first(result) : void 0;
107
- }
108
- get regex() {
109
- return {
110
- /**
111
- * mathes
112
- * xxx.xxx.xxx.xxx
113
- * xxx.xxx.xxx.xxx:port
114
- * http://xxx.xxx.xxx.xxx:port
115
- * http://xxx.xxx.xxx.xxx
116
- * https://xxx.xxx.xxx.xxx:port
117
- * https://xxx.xxx.xxx.xxx *
118
- */
119
- get forStringWithIpHost() {
120
- 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]+)?/;
121
- return regex;
122
- },
123
- /**
124
- * mathes
125
- * http://domain.com:port
126
- * http://domain.com
127
- * http://domain:port
128
- * http://domain
129
- * https://domain.com:port
130
- * https://domain.com
131
- * https://domain:port
132
- * https://domain
133
- */
134
- get forStringWithDomainHost() {
135
- 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}))/;
136
- return regex;
137
- }
138
- };
139
- }
140
- }
141
- ;
94
+ class HelpersStringsRegexes {
95
+ escapeStringForRegEx(s) {
96
+ return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&');
97
+ }
98
+ matchExactOnce(s, regex) {
99
+ if (!_.isString(s) || !_.isRegExp(regex)) {
100
+ return void 0;
101
+ }
102
+ const result = s.match(regex);
103
+ if (_.isNil(result)) {
104
+ return void 0;
105
+ }
106
+ return result.length >= 1 ? _.first(result) : void 0;
107
+ }
108
+ get regex() {
109
+ return {
110
+ /**
111
+ * mathes
112
+ * xxx.xxx.xxx.xxx
113
+ * xxx.xxx.xxx.xxx:port
114
+ * http://xxx.xxx.xxx.xxx:port
115
+ * http://xxx.xxx.xxx.xxx
116
+ * https://xxx.xxx.xxx.xxx:port
117
+ * https://xxx.xxx.xxx.xxx *
118
+ */
119
+ get forStringWithIpHost() {
120
+ 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]+)?/;
121
+ return regex;
122
+ },
123
+ /**
124
+ * mathes
125
+ * http://domain.com:port
126
+ * http://domain.com
127
+ * http://domain:port
128
+ * http://domain
129
+ * https://domain.com:port
130
+ * https://domain.com
131
+ * https://domain:port
132
+ * https://domain
133
+ */
134
+ get forStringWithDomainHost() {
135
+ 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}))/;
136
+ return regex;
137
+ }
138
+ };
139
+ }
140
+ }
141
+ ;
142
142
  ({}); // @--end-of-file-for-module=tnp-helpers lib/helpers-strings-regexes.ts
143
143
 
144
- /* */
145
- /* */
146
- /* */
147
- /* */
148
- class HelpersEnvironment {
149
- environmentName(filename, local_env_name) {
150
- /* */
151
- /* */
152
- /* */
153
- /* */
154
- /* */
155
- /* */
156
- }
157
- isValidGitRepuUrl(url) {
158
- const regex = /^([A-Za-z0-9]+@|http(|s)\:\/\/)([A-Za-z0-9.]+(:\d+)?)(?::|\/)([\d\/\w.-]+?)(\.git)?$/;
159
- const res = regex.test(url);
160
- return res;
161
- }
162
- isValidIp(ip) {
163
- if (!_.isString(ip)) {
164
- return false;
165
- }
166
- ip = ip.trim();
167
- if (ip === 'localhost') {
168
- return true;
169
- }
170
- 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);
171
- }
172
- }
173
- ;
144
+ /* */
145
+ /* */
146
+ /* */
147
+ /* */
148
+ class HelpersEnvironment {
149
+ environmentName(filename, local_env_name) {
150
+ /* */
151
+ /* */
152
+ /* */
153
+ /* */
154
+ /* */
155
+ /* */
156
+ }
157
+ isValidGitRepuUrl(url) {
158
+ const regex = /^([A-Za-z0-9]+@|http(|s)\:\/\/)([A-Za-z0-9.]+(:\d+)?)(?::|\/)([\d\/\w.-]+?)(\.git)?$/;
159
+ const res = regex.test(url);
160
+ return res;
161
+ }
162
+ isValidIp(ip) {
163
+ if (!_.isString(ip)) {
164
+ return false;
165
+ }
166
+ ip = ip.trim();
167
+ if (ip === 'localhost') {
168
+ return true;
169
+ }
170
+ 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);
171
+ }
172
+ }
173
+ ;
174
174
  ({}); // @--end-of-file-for-module=tnp-helpers lib/helpers-environment.ts
175
175
 
176
- class HelpersStrings {
177
- /**
178
- * Example:
179
- *
180
- * const result = interpolateString("I'm {age} years old!")
181
- * .withParameters({ age: 29 });
182
- *
183
- * const result = interpolateString("The {a} says {n}, {n}, {n}!")
184
- * .withParameters({ a: 'cow', n: 'moo' });
185
- *
186
- *
187
- * @param value string to interpolate
188
- * @param parameters object with parametes
189
- */
190
- interpolateString(value) {
191
- if (typeof value !== 'string') {
192
- Helpers.warn('[ss-logic][helper] Value for interpolation is not string: ', value);
193
- return value;
194
- }
195
- return {
196
- withParameters(parameters) {
197
- if (typeof parameters !== 'object') {
198
- Helpers.log(parameters);
199
- Helpers.warn('[ss-logic][helper] Parameters are not a object: ');
200
- return value;
201
- }
202
- return value.replace(/{([^{}]*)}/g, function (a, b) {
203
- var r = parameters[b];
204
- return typeof r === 'string' || typeof r === 'number' ? r : a;
205
- });
206
- }
207
- };
208
- }
209
- numValue(pixelsCss) {
210
- return parseInt(pixelsCss.replace('px', ''));
211
- }
212
- /**
213
- * examples:
214
- * 'aa bb bb' => ['aa','bb','cc'],
215
- * 'aa' => ['aa']
216
- * ['aa'] => ['aa']
217
- */
218
- splitIfNeed(stringOrArr) {
219
- let res = [];
220
- if (_.isArray(stringOrArr)) {
221
- res = stringOrArr.map(s => {
222
- return s.trim();
223
- });
224
- }
225
- if (_.isString(stringOrArr)) {
226
- res = stringOrArr.split(/\s*[\s,]\s*/);
227
- }
228
- return res.filter(f => !!f && (f.trim() !== ''));
229
- }
230
- removeDoubleOrMoreEmptyLines(s) {
231
- s = s === null || s === void 0 ? void 0 : s.split('\n').map(f => f.trimRight()).join('\n');
232
- return s === null || s === void 0 ? void 0 : s.replace(/(\r\n|\r|\n){2,}/g, '$1\n');
233
- }
234
- /**
235
- *
236
- * https://stackoverflow.com/a/57129703/1345101
237
- *
238
- * Returns the plural of an English word.
239
- *
240
- * @export
241
- * @param {string} word
242
- * @param {number} [amount]
243
- * @returns {string}
244
- */
245
- plural(word, amount) {
246
- if (amount !== undefined && amount === 1) {
247
- return word;
248
- }
249
- const plural = {
250
- '(quiz)$': "$1zes",
251
- '^(ox)$': "$1en",
252
- '([m|l])ouse$': "$1ice",
253
- '(matr|vert|ind)ix|ex$': "$1ices",
254
- '(x|ch|ss|sh)$': "$1es",
255
- '([^aeiouy]|qu)y$': "$1ies",
256
- '(hive)$': "$1s",
257
- '(?:([^f])fe|([lr])f)$': "$1$2ves",
258
- '(shea|lea|loa|thie)f$': "$1ves",
259
- 'sis$': "ses",
260
- '([ti])um$': "$1a",
261
- '(tomat|potat|ech|her|vet)o$': "$1oes",
262
- '(bu)s$': "$1ses",
263
- '(alias)$': "$1es",
264
- '(octop)us$': "$1i",
265
- '(ax|test)is$': "$1es",
266
- '(us)$': "$1es",
267
- '([^s]+)$': "$1s"
268
- };
269
- const irregular = {
270
- 'move': 'moves',
271
- 'foot': 'feet',
272
- 'goose': 'geese',
273
- 'sex': 'sexes',
274
- 'child': 'children',
275
- 'man': 'men',
276
- 'tooth': 'teeth',
277
- 'person': 'people'
278
- };
279
- const uncountable = [
280
- 'sheep',
281
- 'fish',
282
- 'deer',
283
- 'moose',
284
- 'series',
285
- 'species',
286
- 'money',
287
- 'rice',
288
- 'information',
289
- 'equipment',
290
- 'bison',
291
- 'cod',
292
- 'offspring',
293
- 'pike',
294
- 'salmon',
295
- 'shrimp',
296
- 'swine',
297
- 'trout',
298
- 'aircraft',
299
- 'hovercraft',
300
- 'spacecraft',
301
- 'sugar',
302
- 'tuna',
303
- 'you',
304
- 'wood'
305
- ];
306
- if (uncountable.indexOf(word.toLowerCase()) >= 0) {
307
- return word;
308
- }
309
- for (const w in irregular) {
310
- const pattern = new RegExp(`${w}$`, 'i');
311
- const replace = irregular[w];
312
- if (pattern.test(word)) {
313
- return word.replace(pattern, replace);
314
- }
315
- }
316
- for (const reg in plural) {
317
- const pattern = new RegExp(reg, 'i');
318
- if (pattern.test(word)) {
319
- return word.replace(pattern, plural[reg]);
320
- }
321
- }
322
- return word;
323
- }
324
- /**
325
- * https://stackoverflow.com/a/57129703/1345101
326
- *
327
- * Returns the singular of an English word.
328
- *
329
- * @export
330
- * @param {string} word
331
- * @param {number} [amount]
332
- * @returns {string}
333
- */
334
- singular(word, amount) {
335
- if (amount !== undefined && amount !== 1) {
336
- return word;
337
- }
338
- const singular = {
339
- '(quiz)zes$': "$1",
340
- '(matr)ices$': "$1ix",
341
- '(vert|ind)ices$': "$1ex",
342
- '^(ox)en$': "$1",
343
- '(alias)es$': "$1",
344
- '(octop|vir)i$': "$1us",
345
- '(cris|ax|test)es$': "$1is",
346
- '(shoe)s$': "$1",
347
- '(o)es$': "$1",
348
- '(bus)es$': "$1",
349
- '([m|l])ice$': "$1ouse",
350
- '(x|ch|ss|sh)es$': "$1",
351
- '(m)ovies$': "$1ovie",
352
- '(s)eries$': "$1eries",
353
- '([^aeiouy]|qu)ies$': "$1y",
354
- '([lr])ves$': "$1f",
355
- '(tive)s$': "$1",
356
- '(hive)s$': "$1",
357
- '(li|wi|kni)ves$': "$1fe",
358
- '(shea|loa|lea|thie)ves$': "$1f",
359
- '(^analy)ses$': "$1sis",
360
- '((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$': "$1$2sis",
361
- '([ti])a$': "$1um",
362
- '(n)ews$': "$1ews",
363
- '(h|bl)ouses$': "$1ouse",
364
- '(corpse)s$': "$1",
365
- '(us)es$': "$1",
366
- 's$': ""
367
- };
368
- const irregular = {
369
- 'move': 'moves',
370
- 'foot': 'feet',
371
- 'goose': 'geese',
372
- 'sex': 'sexes',
373
- 'child': 'children',
374
- 'man': 'men',
375
- 'tooth': 'teeth',
376
- 'person': 'people'
377
- };
378
- const uncountable = [
379
- 'sheep',
380
- 'fish',
381
- 'deer',
382
- 'moose',
383
- 'series',
384
- 'species',
385
- 'money',
386
- 'rice',
387
- 'information',
388
- 'equipment',
389
- 'bison',
390
- 'cod',
391
- 'offspring',
392
- 'pike',
393
- 'salmon',
394
- 'shrimp',
395
- 'swine',
396
- 'trout',
397
- 'aircraft',
398
- 'hovercraft',
399
- 'spacecraft',
400
- 'sugar',
401
- 'tuna',
402
- 'you',
403
- 'wood'
404
- ];
405
- if (uncountable.indexOf(word.toLowerCase()) >= 0) {
406
- return word;
407
- }
408
- for (const w in irregular) {
409
- const pattern = new RegExp(`${irregular[w]}$`, 'i');
410
- const replace = w;
411
- if (pattern.test(word)) {
412
- return word.replace(pattern, replace);
413
- }
414
- }
415
- for (const reg in singular) {
416
- const pattern = new RegExp(reg, 'i');
417
- if (pattern.test(word)) {
418
- return word.replace(pattern, singular[reg]);
419
- }
420
- }
421
- return word;
422
- }
423
- }
424
- ;
176
+ class HelpersStrings {
177
+ /**
178
+ * Example:
179
+ *
180
+ * const result = interpolateString("I'm {age} years old!")
181
+ * .withParameters({ age: 29 });
182
+ *
183
+ * const result = interpolateString("The {a} says {n}, {n}, {n}!")
184
+ * .withParameters({ a: 'cow', n: 'moo' });
185
+ *
186
+ *
187
+ * @param value string to interpolate
188
+ * @param parameters object with parametes
189
+ */
190
+ interpolateString(value) {
191
+ if (typeof value !== 'string') {
192
+ Helpers.warn('[ss-logic][helper] Value for interpolation is not string: ', value);
193
+ return value;
194
+ }
195
+ return {
196
+ withParameters(parameters) {
197
+ if (typeof parameters !== 'object') {
198
+ Helpers.log(parameters);
199
+ Helpers.warn('[ss-logic][helper] Parameters are not a object: ');
200
+ return value;
201
+ }
202
+ return value.replace(/{([^{}]*)}/g, function (a, b) {
203
+ var r = parameters[b];
204
+ return typeof r === 'string' || typeof r === 'number' ? r : a;
205
+ });
206
+ }
207
+ };
208
+ }
209
+ numValue(pixelsCss) {
210
+ return parseInt(pixelsCss.replace('px', ''));
211
+ }
212
+ /**
213
+ * examples:
214
+ * 'aa bb bb' => ['aa','bb','cc'],
215
+ * 'aa' => ['aa']
216
+ * ['aa'] => ['aa']
217
+ */
218
+ splitIfNeed(stringOrArr) {
219
+ let res = [];
220
+ if (_.isArray(stringOrArr)) {
221
+ res = stringOrArr.map(s => {
222
+ return s.trim();
223
+ });
224
+ }
225
+ if (_.isString(stringOrArr)) {
226
+ res = stringOrArr.split(/\s*[\s,]\s*/);
227
+ }
228
+ return res.filter(f => !!f && (f.trim() !== ''));
229
+ }
230
+ removeDoubleOrMoreEmptyLines(s) {
231
+ s = s === null || s === void 0 ? void 0 : s.split('\n').map(f => f.trimRight()).join('\n');
232
+ return s === null || s === void 0 ? void 0 : s.replace(/(\r\n|\r|\n){2,}/g, '$1\n');
233
+ }
234
+ /**
235
+ *
236
+ * https://stackoverflow.com/a/57129703/1345101
237
+ *
238
+ * Returns the plural of an English word.
239
+ *
240
+ * @export
241
+ * @param {string} word
242
+ * @param {number} [amount]
243
+ * @returns {string}
244
+ */
245
+ plural(word, amount) {
246
+ if (amount !== undefined && amount === 1) {
247
+ return word;
248
+ }
249
+ const plural = {
250
+ '(quiz)$': "$1zes",
251
+ '^(ox)$': "$1en",
252
+ '([m|l])ouse$': "$1ice",
253
+ '(matr|vert|ind)ix|ex$': "$1ices",
254
+ '(x|ch|ss|sh)$': "$1es",
255
+ '([^aeiouy]|qu)y$': "$1ies",
256
+ '(hive)$': "$1s",
257
+ '(?:([^f])fe|([lr])f)$': "$1$2ves",
258
+ '(shea|lea|loa|thie)f$': "$1ves",
259
+ 'sis$': "ses",
260
+ '([ti])um$': "$1a",
261
+ '(tomat|potat|ech|her|vet)o$': "$1oes",
262
+ '(bu)s$': "$1ses",
263
+ '(alias)$': "$1es",
264
+ '(octop)us$': "$1i",
265
+ '(ax|test)is$': "$1es",
266
+ '(us)$': "$1es",
267
+ '([^s]+)$': "$1s"
268
+ };
269
+ const irregular = {
270
+ 'move': 'moves',
271
+ 'foot': 'feet',
272
+ 'goose': 'geese',
273
+ 'sex': 'sexes',
274
+ 'child': 'children',
275
+ 'man': 'men',
276
+ 'tooth': 'teeth',
277
+ 'person': 'people'
278
+ };
279
+ const uncountable = [
280
+ 'sheep',
281
+ 'fish',
282
+ 'deer',
283
+ 'moose',
284
+ 'series',
285
+ 'species',
286
+ 'money',
287
+ 'rice',
288
+ 'information',
289
+ 'equipment',
290
+ 'bison',
291
+ 'cod',
292
+ 'offspring',
293
+ 'pike',
294
+ 'salmon',
295
+ 'shrimp',
296
+ 'swine',
297
+ 'trout',
298
+ 'aircraft',
299
+ 'hovercraft',
300
+ 'spacecraft',
301
+ 'sugar',
302
+ 'tuna',
303
+ 'you',
304
+ 'wood'
305
+ ];
306
+ if (uncountable.indexOf(word.toLowerCase()) >= 0) {
307
+ return word;
308
+ }
309
+ for (const w in irregular) {
310
+ const pattern = new RegExp(`${w}$`, 'i');
311
+ const replace = irregular[w];
312
+ if (pattern.test(word)) {
313
+ return word.replace(pattern, replace);
314
+ }
315
+ }
316
+ for (const reg in plural) {
317
+ const pattern = new RegExp(reg, 'i');
318
+ if (pattern.test(word)) {
319
+ return word.replace(pattern, plural[reg]);
320
+ }
321
+ }
322
+ return word;
323
+ }
324
+ /**
325
+ * https://stackoverflow.com/a/57129703/1345101
326
+ *
327
+ * Returns the singular of an English word.
328
+ *
329
+ * @export
330
+ * @param {string} word
331
+ * @param {number} [amount]
332
+ * @returns {string}
333
+ */
334
+ singular(word, amount) {
335
+ if (amount !== undefined && amount !== 1) {
336
+ return word;
337
+ }
338
+ const singular = {
339
+ '(quiz)zes$': "$1",
340
+ '(matr)ices$': "$1ix",
341
+ '(vert|ind)ices$': "$1ex",
342
+ '^(ox)en$': "$1",
343
+ '(alias)es$': "$1",
344
+ '(octop|vir)i$': "$1us",
345
+ '(cris|ax|test)es$': "$1is",
346
+ '(shoe)s$': "$1",
347
+ '(o)es$': "$1",
348
+ '(bus)es$': "$1",
349
+ '([m|l])ice$': "$1ouse",
350
+ '(x|ch|ss|sh)es$': "$1",
351
+ '(m)ovies$': "$1ovie",
352
+ '(s)eries$': "$1eries",
353
+ '([^aeiouy]|qu)ies$': "$1y",
354
+ '([lr])ves$': "$1f",
355
+ '(tive)s$': "$1",
356
+ '(hive)s$': "$1",
357
+ '(li|wi|kni)ves$': "$1fe",
358
+ '(shea|loa|lea|thie)ves$': "$1f",
359
+ '(^analy)ses$': "$1sis",
360
+ '((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$': "$1$2sis",
361
+ '([ti])a$': "$1um",
362
+ '(n)ews$': "$1ews",
363
+ '(h|bl)ouses$': "$1ouse",
364
+ '(corpse)s$': "$1",
365
+ '(us)es$': "$1",
366
+ 's$': ""
367
+ };
368
+ const irregular = {
369
+ 'move': 'moves',
370
+ 'foot': 'feet',
371
+ 'goose': 'geese',
372
+ 'sex': 'sexes',
373
+ 'child': 'children',
374
+ 'man': 'men',
375
+ 'tooth': 'teeth',
376
+ 'person': 'people'
377
+ };
378
+ const uncountable = [
379
+ 'sheep',
380
+ 'fish',
381
+ 'deer',
382
+ 'moose',
383
+ 'series',
384
+ 'species',
385
+ 'money',
386
+ 'rice',
387
+ 'information',
388
+ 'equipment',
389
+ 'bison',
390
+ 'cod',
391
+ 'offspring',
392
+ 'pike',
393
+ 'salmon',
394
+ 'shrimp',
395
+ 'swine',
396
+ 'trout',
397
+ 'aircraft',
398
+ 'hovercraft',
399
+ 'spacecraft',
400
+ 'sugar',
401
+ 'tuna',
402
+ 'you',
403
+ 'wood'
404
+ ];
405
+ if (uncountable.indexOf(word.toLowerCase()) >= 0) {
406
+ return word;
407
+ }
408
+ for (const w in irregular) {
409
+ const pattern = new RegExp(`${irregular[w]}$`, 'i');
410
+ const replace = w;
411
+ if (pattern.test(word)) {
412
+ return word.replace(pattern, replace);
413
+ }
414
+ }
415
+ for (const reg in singular) {
416
+ const pattern = new RegExp(reg, 'i');
417
+ if (pattern.test(word)) {
418
+ return word.replace(pattern, singular[reg]);
419
+ }
420
+ }
421
+ return word;
422
+ }
423
+ }
424
+ ;
425
425
  ({}); // @--end-of-file-for-module=tnp-helpers lib/helpers-strings.ts
426
426
 
427
- class HelpersConsoleGuiQuestion {
428
- }
429
- class HelpersConsoleGui {
430
- constructor() {
431
- this.question = new HelpersConsoleGuiQuestion();
432
- }
433
- }
434
- ;
427
+ class HelpersConsoleGuiQuestion {
428
+ }
429
+ class HelpersConsoleGui {
430
+ constructor() {
431
+ this.question = new HelpersConsoleGuiQuestion();
432
+ }
433
+ }
434
+ ;
435
435
  ({}); // @--end-of-file-for-module=tnp-helpers lib/helpers-console-gui.ts
436
436
 
437
- function conditionWait(conditionAndTimeout) {
438
- return __awaiter(this, void 0, void 0, function* () {
439
- yield waitFor(conditionAndTimeout);
440
- });
441
- }
442
- function waitFor(arr, messageToShow = void 0) {
443
- return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
444
- if (arr.length === 0) {
445
- resolve(void 0);
446
- }
447
- else {
448
- const check = arr.shift();
449
- if (_.isUndefined(check.timeoutCheck)) {
450
- check.timeoutCheck = 2000;
451
- }
452
- if (_.isUndefined(check.timeoutNext)) {
453
- check.timeoutNext = 4000;
454
- }
455
- const { timeoutCheck, timeoutNext, name } = check;
456
- const resultTrue = yield Helpers.runSyncOrAsync(check.callback, check);
457
- if (resultTrue) {
458
- setTimeout(() => __awaiter(this, void 0, void 0, function* () {
459
- yield waitFor(arr).then(() => {
460
- resolve(void 0);
461
- });
462
- }), timeoutNext);
463
- }
464
- else {
465
- arr.unshift(check);
466
- if (!messageToShow || check.errorMessage !== messageToShow) {
467
- Helpers.info(check.errorMessage);
468
- }
469
- else {
470
- }
471
- setTimeout(() => __awaiter(this, void 0, void 0, function* () {
472
- yield waitFor(arr, check.errorMessage).then(() => {
473
- resolve(void 0);
474
- });
475
- }), timeoutCheck);
476
- }
477
- }
478
- }));
479
- }
480
- ;
437
+ function conditionWait(conditionAndTimeout) {
438
+ return __awaiter(this, void 0, void 0, function* () {
439
+ yield waitFor(conditionAndTimeout);
440
+ });
441
+ }
442
+ function waitFor(arr, messageToShow = void 0) {
443
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
444
+ if (arr.length === 0) {
445
+ resolve(void 0);
446
+ }
447
+ else {
448
+ const check = arr.shift();
449
+ if (_.isUndefined(check.timeoutCheck)) {
450
+ check.timeoutCheck = 2000;
451
+ }
452
+ if (_.isUndefined(check.timeoutNext)) {
453
+ check.timeoutNext = 4000;
454
+ }
455
+ const { timeoutCheck, timeoutNext, name } = check;
456
+ const resultTrue = yield Helpers.runSyncOrAsync(check.callback, check);
457
+ if (resultTrue) {
458
+ setTimeout(() => __awaiter(this, void 0, void 0, function* () {
459
+ yield waitFor(arr).then(() => {
460
+ resolve(void 0);
461
+ });
462
+ }), timeoutNext);
463
+ }
464
+ else {
465
+ arr.unshift(check);
466
+ if (!messageToShow || check.errorMessage !== messageToShow) {
467
+ Helpers.info(check.errorMessage);
468
+ }
469
+ else {
470
+ }
471
+ setTimeout(() => __awaiter(this, void 0, void 0, function* () {
472
+ yield waitFor(arr, check.errorMessage).then(() => {
473
+ resolve(void 0);
474
+ });
475
+ }), timeoutCheck);
476
+ }
477
+ }
478
+ }));
479
+ }
480
+ ;
481
481
  ({}); // @--end-of-file-for-module=tnp-helpers lib/condition-wait.ts
482
482
 
483
- class HelpersNumber {
484
- constructor() {
485
- this.randomInteger = (max, min) => Math.round(Math.random() * (max - min)) + min;
486
- }
487
- }
488
- ;
483
+ class HelpersNumber {
484
+ constructor() {
485
+ this.randomInteger = (max, min) => Math.round(Math.random() * (max - min)) + min;
486
+ }
487
+ }
488
+ ;
489
489
  ({}); // @--end-of-file-for-module=tnp-helpers lib/helpers-numbers.ts
490
490
 
491
- const key = Symbol('[firedev-helpers] helper browser key');
492
- class HelpersBrowaser {
493
- constructor(win) {
494
- this.init = (() => {
495
- const win = this.win;
496
- if (!win[key]) {
497
- win[key] = new HelpersBrowaser(win);
498
- }
499
- HelpersBrowaser.inst = win[key];
500
- })();
501
- win.addEventListener("beforeunload", (e) => {
502
- win.sessionStorage.tabId = this.tabId;
503
- return null;
504
- });
505
- setTimeout(() => {
506
- var _a;
507
- if ((_a = win.sessionStorage) === null || _a === void 0 ? void 0 : _a.tabId) {
508
- // @ts-ignore
509
- this.tabId = Number(win.sessionStorage.tabId);
510
- win.sessionStorage.removeItem("tabId");
511
- }
512
- else {
513
- // @ts-ignore
514
- this.tabId = Math.floor(Math.random() * 1000000) + (new Date()).getTime();
515
- }
516
- HelpersBrowaser.callbacks.forEach((c) => {
517
- c(this);
518
- });
519
- });
520
- }
521
- static onInit(callback) {
522
- this.callbacks.push(callback);
523
- }
524
- get win() {
525
- let win = window;
526
- return win;
527
- }
528
- get tabIdSessionStorage() {
529
- var _a;
530
- return Number((_a = this.win.sessionStorage) === null || _a === void 0 ? void 0 : _a.tabId) || 0;
531
- }
532
- static get instance() {
533
- return HelpersBrowaser.inst;
534
- }
535
- }
536
- HelpersBrowaser.callbacks = [];
537
- ;
491
+ const key = Symbol('[firedev-helpers] helper browser key');
492
+ class HelpersBrowaser {
493
+ constructor(win) {
494
+ this.init = (() => {
495
+ const win = this.win;
496
+ if (!win[key]) {
497
+ win[key] = new HelpersBrowaser(win);
498
+ }
499
+ HelpersBrowaser.inst = win[key];
500
+ })();
501
+ win.addEventListener("beforeunload", (e) => {
502
+ win.sessionStorage.tabId = this.tabId;
503
+ return null;
504
+ });
505
+ setTimeout(() => {
506
+ var _a;
507
+ if ((_a = win.sessionStorage) === null || _a === void 0 ? void 0 : _a.tabId) {
508
+ // @ts-ignore
509
+ this.tabId = Number(win.sessionStorage.tabId);
510
+ win.sessionStorage.removeItem("tabId");
511
+ }
512
+ else {
513
+ // @ts-ignore
514
+ this.tabId = Math.floor(Math.random() * 1000000) + (new Date()).getTime();
515
+ }
516
+ HelpersBrowaser.callbacks.forEach((c) => {
517
+ c(this);
518
+ });
519
+ });
520
+ }
521
+ static onInit(callback) {
522
+ this.callbacks.push(callback);
523
+ }
524
+ get win() {
525
+ let win = window;
526
+ return win;
527
+ }
528
+ get tabIdSessionStorage() {
529
+ var _a;
530
+ return Number((_a = this.win.sessionStorage) === null || _a === void 0 ? void 0 : _a.tabId) || 0;
531
+ }
532
+ static get instance() {
533
+ return HelpersBrowaser.inst;
534
+ }
535
+ }
536
+ HelpersBrowaser.callbacks = [];
537
+ ;
538
538
  ({}); // @--end-of-file-for-module=tnp-helpers lib/helpers-browser.ts
539
539
 
540
- const componentContextSymbol = Symbol();
541
- const componentsDestroy$Subjects = {};
542
- class SerializedSubject {
543
- constructor(id) {
544
- this.id = id;
545
- }
546
- }
547
- var NgHelpers;
548
- (function (NgHelpers) {
549
- function subjectId(destroySubject) {
550
- const id = Math.random().toString(36).substring(2);
551
- if (!destroySubject[componentContextSymbol]) {
552
- destroySubject[componentContextSymbol] = new SerializedSubject(id);
553
- componentsDestroy$Subjects[id] = destroySubject;
554
- }
555
- return destroySubject[componentContextSymbol];
556
- }
557
- /**
558
- * if you are using this.. please call Helpers.ng.unsubscribe(this.$destroy) in ngOnDestroy();
559
- */
560
- function serialize(destroy$) {
561
- return subjectId(destroy$);
562
- }
563
- NgHelpers.serialize = serialize;
564
- /**
565
- * if you are using this.. please call Helpers.ng.unsubscribe(this.$destroy) in ngOnDestroy();
566
- */
567
- function deserialize(destroy$) {
568
- if (destroy$ === null || destroy$ === void 0 ? void 0 : destroy$.id) {
569
- const realDestroySubject = componentsDestroy$Subjects[destroy$.id];
570
- return realDestroySubject;
571
- }
572
- return new Subject();
573
- }
574
- NgHelpers.deserialize = deserialize;
575
- function unsubscribe(destroy$) {
576
- const destroySubject = subjectId(destroy$);
577
- if (destroySubject === null || destroySubject === void 0 ? void 0 : destroySubject.id) {
578
- delete componentsDestroy$Subjects[destroySubject.id];
579
- delete destroySubject[componentContextSymbol];
580
- }
581
- }
582
- NgHelpers.unsubscribe = unsubscribe;
583
- /**
584
- get properties from scss file
585
-
586
-
587
- import styles from './tasks-ngrx-data.component.scss';
588
-
589
- export class ExampleComponent {
590
- sassFile = sassFile(styles);
591
-
592
- async ngOnInit() {
593
- this.tasksService.getAll();
594
- console.log(this.sassFile.stringValue('--max-container-size'))
595
- console.log(this.sassFile.numberValue('--max-container-size'))
596
- }
597
- }
598
- */
599
- function sassFile(styles) {
600
- const lines = (styles.split('\n'));
601
- return {
602
- stringValue: (name) => {
603
- for (let index = 0; index < lines.length; index++) {
604
- const l = lines[index];
605
- const [varName, value] = l.trim().split(':');
606
- if (varName === name) {
607
- return value.replace(';', '');
608
- }
609
- }
610
- },
611
- numberValue: (name) => {
612
- for (let index = 0; index < lines.length; index++) {
613
- const l = lines[index];
614
- const [varName, value] = l.trim().split(':');
615
- if (varName === name) {
616
- return Number(value.replace('px', '').replace(';', ''));
617
- }
618
- }
619
- }
620
- };
621
- }
622
- NgHelpers.sassFile = sassFile;
623
- })(NgHelpers || (NgHelpers = {}));
624
- ;
540
+ const componentContextSymbol = Symbol();
541
+ const componentsDestroy$Subjects = {};
542
+ class SerializedSubject {
543
+ constructor(id) {
544
+ this.id = id;
545
+ }
546
+ }
547
+ var NgHelpers;
548
+ (function (NgHelpers) {
549
+ function subjectId(destroySubject) {
550
+ const id = Math.random().toString(36).substring(2);
551
+ if (!destroySubject[componentContextSymbol]) {
552
+ destroySubject[componentContextSymbol] = new SerializedSubject(id);
553
+ componentsDestroy$Subjects[id] = destroySubject;
554
+ }
555
+ return destroySubject[componentContextSymbol];
556
+ }
557
+ /**
558
+ * if you are using this.. please call Helpers.ng.unsubscribe(this.$destroy) in ngOnDestroy();
559
+ */
560
+ function serialize(destroy$) {
561
+ return subjectId(destroy$);
562
+ }
563
+ NgHelpers.serialize = serialize;
564
+ /**
565
+ * if you are using this.. please call Helpers.ng.unsubscribe(this.$destroy) in ngOnDestroy();
566
+ */
567
+ function deserialize(destroy$) {
568
+ if (destroy$ === null || destroy$ === void 0 ? void 0 : destroy$.id) {
569
+ const realDestroySubject = componentsDestroy$Subjects[destroy$.id];
570
+ return realDestroySubject;
571
+ }
572
+ return new Subject();
573
+ }
574
+ NgHelpers.deserialize = deserialize;
575
+ function unsubscribe(destroy$) {
576
+ const destroySubject = subjectId(destroy$);
577
+ if (destroySubject === null || destroySubject === void 0 ? void 0 : destroySubject.id) {
578
+ delete componentsDestroy$Subjects[destroySubject.id];
579
+ delete destroySubject[componentContextSymbol];
580
+ }
581
+ }
582
+ NgHelpers.unsubscribe = unsubscribe;
583
+ /**
584
+ get properties from scss file
585
+
586
+
587
+ import styles from './tasks-ngrx-data.component.scss';
588
+
589
+ export class ExampleComponent {
590
+ sassFile = sassFile(styles);
591
+
592
+ async ngOnInit() {
593
+ this.tasksService.getAll();
594
+ console.log(this.sassFile.stringValue('--max-container-size'))
595
+ console.log(this.sassFile.numberValue('--max-container-size'))
596
+ }
597
+ }
598
+ */
599
+ function sassFile(styles) {
600
+ const lines = (styles.split('\n'));
601
+ return {
602
+ stringValue: (name) => {
603
+ for (let index = 0; index < lines.length; index++) {
604
+ const l = lines[index];
605
+ const [varName, value] = l.trim().split(':');
606
+ if (varName === name) {
607
+ return value.replace(';', '');
608
+ }
609
+ }
610
+ },
611
+ numberValue: (name) => {
612
+ for (let index = 0; index < lines.length; index++) {
613
+ const l = lines[index];
614
+ const [varName, value] = l.trim().split(':');
615
+ if (varName === name) {
616
+ return Number(value.replace('px', '').replace(';', ''));
617
+ }
618
+ }
619
+ }
620
+ };
621
+ }
622
+ NgHelpers.sassFile = sassFile;
623
+ })(NgHelpers || (NgHelpers = {}));
624
+ ;
625
625
  ({}); // @--end-of-file-for-module=tnp-helpers lib/angular.helper.ts
626
626
 
627
- function applyMixins(derivedCtor, baseCtors) {
628
- baseCtors.forEach(baseCtor => {
629
- Object.getOwnPropertyNames(baseCtor.prototype).forEach(name => {
630
- Object.defineProperty(derivedCtor.prototype, name, Object.getOwnPropertyDescriptor(baseCtor.prototype, name));
631
- });
632
- });
633
- }
634
- // @ts-ignore
635
- class HelpersTnp extends CoreHelpers {
636
- constructor(
637
- /* */
638
- /* */
639
- /* */
640
- /* */
641
- /* */
642
- /* */
643
- /* */
644
- /* */
645
- /* */
646
- /* */
647
- /* */
648
- /* */
649
- /* */
650
- arrays = new HelpersArrayObj(), strings = new HelpersStrings(), numbers = new HelpersNumber(), consoleGui = new HelpersConsoleGui(), browser = HelpersBrowaser.instance, ng = NgHelpers) {
651
- super();
652
- this.arrays = arrays;
653
- this.strings = strings;
654
- this.numbers = numbers;
655
- this.consoleGui = consoleGui;
656
- this.browser = browser;
657
- this.ng = ng;
658
- this.conditionWait = conditionWait;
659
- /* */
660
- /* */
661
- /* */
662
- /* */
663
- /* */
664
- /* */
665
- /* */
666
- /* */
667
- /* */
668
- /* */
669
- /* */
670
- /* */
671
- /* */
672
- /* */
673
- /* */
674
- /* */
675
- /* */
676
- /* */
677
- /* */
678
- /* */
679
- /* */
680
- /* */
681
- /* */
682
- /* */
683
- /* */
684
- /* */
685
- /* */
686
- /* */
687
- /* */
688
- /* */
689
- /* */
690
- /* */
691
- /* */
692
- /* */
693
- /* */
694
- /* */
695
- /* */
696
- /* */
697
- /* */
698
- /* */
699
- /* */
700
- /* */
701
- /* */
702
- /* */
703
- /* */
704
- /* */
705
- /* */
706
- /* */
707
- /* */
708
- /* */
709
- /* */
710
- /* */
711
- /* */
712
- /* */
713
- /* */
714
- /* */
715
- /* */
716
- /* */
717
- /* */
718
- /* */
719
- /* */
720
- /* */
721
- /* */
722
- /* */
723
- /* */
724
- /* */
725
- /* */
726
- /* */
727
- /* */
728
- /* */
729
- /* */
730
- /* */
731
- /* */
732
- /* */
733
- /* */
734
- /* */
735
- /* */
736
- /* */
737
- this.applyMixins = applyMixins;
738
- }
739
- static get Instance() {
740
- if (!HelpersTnp._instance) {
741
- HelpersTnp._instance = new HelpersTnp();
742
- }
743
- return HelpersTnp._instance;
744
- }
745
- CLIWRAP(f, name) {
746
- CLASS.setName(f, name);
747
- return f;
748
- }
749
- /* */
750
- /* */
751
- /* */
752
- /* */
753
- /* */
754
- /* */
755
- /* */
756
- /* */
757
- /* */
758
- /* */
759
- /* */
760
- /* */
761
- /* */
762
- /* */
763
- /* */
764
- /* */
765
- /* */
766
- /* */
767
- /* */
768
- /* */
769
- /* */
770
- /* */
771
- /* */
772
- /* */
773
- /* */
774
- /* */
775
- /* */
776
- /* */
777
- /* */
778
- /* */
779
- /* */
780
- /* */
781
- /* */
782
- /* */
783
- /* */
784
- /* */
785
- /* */
786
- /* */
787
- isElevated() {
788
- return __awaiter(this, void 0, void 0, function* () {
789
- /* */
790
- /* */
791
- /* */
792
- /* */
793
- });
794
- }
795
- /* */
796
- /* */
797
- /* */
798
- /* */
799
- /* */
800
- /* */
801
- /* */
802
- /* */
803
- /* */
804
- /* */
805
- /* */
806
- /* */
807
- /* */
808
- /* */
809
- /* */
810
- /* */
811
- /* */
812
- /* */
813
- /* */
814
- /* */
815
- /* */
816
- /* */
817
- /* */
818
- /* */
819
- mesureExectionInMs(description, functionToExecute, ...functionArguments) {
820
- return __awaiter(this, void 0, void 0, function* () {
821
- var start = new Date();
822
- yield Helpers.runSyncOrAsync(functionToExecute, ...functionArguments);
823
- //@ts-ignore
824
- var end = new Date() - start;
825
- if (Morphi.IsBrowser) {
826
- Helpers.info(`Execution time: ${end.toString()}ms for "${description}"`);
827
- }
828
- /* */
829
- /* */
830
- return end;
831
- });
832
- }
833
- mesureExectionInMsSync(description, functionToExecute) {
834
- var start = new Date();
835
- functionToExecute();
836
- //@ts-ignore
837
- var end = new Date() - start;
838
- if (Morphi.IsBrowser) {
839
- Helpers.log(`Execution time: ${end.toString()}ms for "${description}"`);
840
- }
841
- /* */
842
- /* */
843
- return end;
844
- }
845
- waitForCondition(conditionFn, howOfftenCheckInMs = 1000) {
846
- return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
847
- const result = yield Helpers.runSyncOrAsync(conditionFn);
848
- if (result) {
849
- resolve(void 0);
850
- }
851
- else {
852
- setTimeout(() => {
853
- Helpers.waitForCondition(conditionFn, howOfftenCheckInMs).then(() => {
854
- resolve(void 0);
855
- });
856
- }, howOfftenCheckInMs);
857
- }
858
- }));
859
- }
860
- getBrowserVerPath(moduleName, websql = false) {
861
- /* */
862
- /* */
863
- /* */
864
- /* */
865
- /* */
866
- }
867
- getMethodName(obj, method) {
868
- var methodName = null;
869
- Object.getOwnPropertyNames(obj).forEach(prop => {
870
- if (obj[prop] === method) {
871
- methodName = prop;
872
- }
873
- });
874
- if (methodName !== null) {
875
- return methodName;
876
- }
877
- var proto = Object.getPrototypeOf(obj);
878
- if (proto) {
879
- return Helpers.getMethodName(proto, method);
880
- }
881
- return null;
882
- }
883
- fixWebpackEnv(env) {
884
- _.forIn(env, (v, k) => {
885
- const value = v;
886
- if (value === 'true')
887
- env[k] = true;
888
- if (value === 'false')
889
- env[k] = false;
890
- });
891
- }
892
- }
893
- applyMixins(HelpersTnp, [
894
- HelpersStringsRegexes,
895
- HelpersEnvironment,
896
- /* */
897
- /* */
898
- /* */
899
- ]);
900
- ;
627
+ function applyMixins(derivedCtor, baseCtors) {
628
+ baseCtors.forEach(baseCtor => {
629
+ Object.getOwnPropertyNames(baseCtor.prototype).forEach(name => {
630
+ Object.defineProperty(derivedCtor.prototype, name, Object.getOwnPropertyDescriptor(baseCtor.prototype, name));
631
+ });
632
+ });
633
+ }
634
+ // @ts-ignore
635
+ class HelpersTnp extends CoreHelpers {
636
+ constructor(
637
+ /* */
638
+ /* */
639
+ /* */
640
+ /* */
641
+ /* */
642
+ /* */
643
+ /* */
644
+ /* */
645
+ /* */
646
+ /* */
647
+ /* */
648
+ /* */
649
+ /* */
650
+ arrays = new HelpersArrayObj(), strings = new HelpersStrings(), numbers = new HelpersNumber(), consoleGui = new HelpersConsoleGui(), browser = HelpersBrowaser.instance, ng = NgHelpers) {
651
+ super();
652
+ this.arrays = arrays;
653
+ this.strings = strings;
654
+ this.numbers = numbers;
655
+ this.consoleGui = consoleGui;
656
+ this.browser = browser;
657
+ this.ng = ng;
658
+ this.conditionWait = conditionWait;
659
+ /* */
660
+ /* */
661
+ /* */
662
+ /* */
663
+ /* */
664
+ /* */
665
+ /* */
666
+ /* */
667
+ /* */
668
+ /* */
669
+ /* */
670
+ /* */
671
+ /* */
672
+ /* */
673
+ /* */
674
+ /* */
675
+ /* */
676
+ /* */
677
+ /* */
678
+ /* */
679
+ /* */
680
+ /* */
681
+ /* */
682
+ /* */
683
+ /* */
684
+ /* */
685
+ /* */
686
+ /* */
687
+ /* */
688
+ /* */
689
+ /* */
690
+ /* */
691
+ /* */
692
+ /* */
693
+ /* */
694
+ /* */
695
+ /* */
696
+ /* */
697
+ /* */
698
+ /* */
699
+ /* */
700
+ /* */
701
+ /* */
702
+ /* */
703
+ /* */
704
+ /* */
705
+ /* */
706
+ /* */
707
+ /* */
708
+ /* */
709
+ /* */
710
+ /* */
711
+ /* */
712
+ /* */
713
+ /* */
714
+ /* */
715
+ /* */
716
+ /* */
717
+ /* */
718
+ /* */
719
+ /* */
720
+ /* */
721
+ /* */
722
+ /* */
723
+ /* */
724
+ /* */
725
+ /* */
726
+ /* */
727
+ /* */
728
+ /* */
729
+ /* */
730
+ /* */
731
+ /* */
732
+ /* */
733
+ /* */
734
+ /* */
735
+ /* */
736
+ /* */
737
+ this.applyMixins = applyMixins;
738
+ }
739
+ static get Instance() {
740
+ if (!HelpersTnp._instance) {
741
+ HelpersTnp._instance = new HelpersTnp();
742
+ }
743
+ return HelpersTnp._instance;
744
+ }
745
+ CLIWRAP(f, name) {
746
+ CLASS.setName(f, name);
747
+ return f;
748
+ }
749
+ /* */
750
+ /* */
751
+ /* */
752
+ /* */
753
+ /* */
754
+ /* */
755
+ /* */
756
+ /* */
757
+ /* */
758
+ /* */
759
+ /* */
760
+ /* */
761
+ /* */
762
+ /* */
763
+ /* */
764
+ /* */
765
+ /* */
766
+ /* */
767
+ /* */
768
+ /* */
769
+ /* */
770
+ /* */
771
+ /* */
772
+ /* */
773
+ /* */
774
+ /* */
775
+ /* */
776
+ /* */
777
+ /* */
778
+ /* */
779
+ /* */
780
+ /* */
781
+ /* */
782
+ /* */
783
+ /* */
784
+ /* */
785
+ /* */
786
+ /* */
787
+ isElevated() {
788
+ return __awaiter(this, void 0, void 0, function* () {
789
+ /* */
790
+ /* */
791
+ /* */
792
+ /* */
793
+ });
794
+ }
795
+ /* */
796
+ /* */
797
+ /* */
798
+ /* */
799
+ /* */
800
+ /* */
801
+ /* */
802
+ /* */
803
+ /* */
804
+ /* */
805
+ /* */
806
+ /* */
807
+ /* */
808
+ /* */
809
+ /* */
810
+ /* */
811
+ /* */
812
+ /* */
813
+ /* */
814
+ /* */
815
+ /* */
816
+ /* */
817
+ /* */
818
+ /* */
819
+ mesureExectionInMs(description, functionToExecute, ...functionArguments) {
820
+ return __awaiter(this, void 0, void 0, function* () {
821
+ var start = new Date();
822
+ yield Helpers.runSyncOrAsync(functionToExecute, ...functionArguments);
823
+ //@ts-ignore
824
+ var end = new Date() - start;
825
+ if (Morphi.IsBrowser) {
826
+ Helpers.info(`Execution time: ${end.toString()}ms for "${description}"`);
827
+ }
828
+ /* */
829
+ /* */
830
+ return end;
831
+ });
832
+ }
833
+ mesureExectionInMsSync(description, functionToExecute) {
834
+ var start = new Date();
835
+ functionToExecute();
836
+ //@ts-ignore
837
+ var end = new Date() - start;
838
+ if (Morphi.IsBrowser) {
839
+ Helpers.log(`Execution time: ${end.toString()}ms for "${description}"`);
840
+ }
841
+ /* */
842
+ /* */
843
+ return end;
844
+ }
845
+ waitForCondition(conditionFn, howOfftenCheckInMs = 1000) {
846
+ return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
847
+ const result = yield Helpers.runSyncOrAsync(conditionFn);
848
+ if (result) {
849
+ resolve(void 0);
850
+ }
851
+ else {
852
+ setTimeout(() => {
853
+ Helpers.waitForCondition(conditionFn, howOfftenCheckInMs).then(() => {
854
+ resolve(void 0);
855
+ });
856
+ }, howOfftenCheckInMs);
857
+ }
858
+ }));
859
+ }
860
+ getBrowserVerPath(moduleName, websql = false) {
861
+ /* */
862
+ /* */
863
+ /* */
864
+ /* */
865
+ /* */
866
+ }
867
+ getMethodName(obj, method) {
868
+ var methodName = null;
869
+ Object.getOwnPropertyNames(obj).forEach(prop => {
870
+ if (obj[prop] === method) {
871
+ methodName = prop;
872
+ }
873
+ });
874
+ if (methodName !== null) {
875
+ return methodName;
876
+ }
877
+ var proto = Object.getPrototypeOf(obj);
878
+ if (proto) {
879
+ return Helpers.getMethodName(proto, method);
880
+ }
881
+ return null;
882
+ }
883
+ fixWebpackEnv(env) {
884
+ _.forIn(env, (v, k) => {
885
+ const value = v;
886
+ if (value === 'true')
887
+ env[k] = true;
888
+ if (value === 'false')
889
+ env[k] = false;
890
+ });
891
+ }
892
+ }
893
+ applyMixins(HelpersTnp, [
894
+ HelpersStringsRegexes,
895
+ HelpersEnvironment,
896
+ /* */
897
+ /* */
898
+ /* */
899
+ ]);
900
+ ;
901
901
  ({}); // @--end-of-file-for-module=tnp-helpers lib/helpers.ts
902
902
 
903
- const BaselineSiteJoinprefix = '__';
904
- const PREFIXES = {
905
- BASELINE: BaselineSiteJoinprefix,
906
- DELETED: '____DELETED____',
907
- ORIGINAL: '____ORIGINAL____',
908
- RESTORE_NPM: '____',
909
- };
903
+ const BaselineSiteJoinprefix = '__';
904
+ const PREFIXES = {
905
+ BASELINE: BaselineSiteJoinprefix,
906
+ DELETED: '____DELETED____',
907
+ ORIGINAL: '____ORIGINAL____',
908
+ RESTORE_NPM: '____',
909
+ };
910
910
  ({}); // @--end-of-file-for-module=tnp-helpers lib/constants.ts
911
911
 
912
- /* */
913
- const Helpers$1 = HelpersTnp.Instance;
914
- class Project {
915
- constructor() {
916
- /* */
917
- /* */
918
- this.cache = {};
919
- this.browser = {};
920
- }
921
- static typeFrom(location) {
922
- /* */
923
- /* */
924
- /* */
925
- /* */
926
- /* */
927
- /* */
928
- /* */
929
- /* */
930
- /* */
931
- /* */
932
- /* */
933
- /* */
934
- return (void 0);
935
- }
936
- static unload(project) {
937
- Project.projects = Project.projects.filter(f => f !== project);
938
- }
939
- static From(locationOfProj) {
940
- /* */
941
- /* */
942
- /* */
943
- /* */
944
- /* */
945
- /* */
946
- /* */
947
- /* */
948
- /* */
949
- /* */
950
- /* */
951
- /* */
952
- /* */
953
- /* */
954
- /* */
955
- /* */
956
- /* */
957
- /* */
958
- /* */
959
- /* */
960
- /* */
961
- /* */
962
- /* */
963
- /* */
964
- /* */
965
- /* */
966
- /* */
967
- /* */
968
- /* */
969
- /* */
970
- /* */
971
- /* */
972
- /* */
973
- /* */
974
- /* */
975
- /* */
976
- /* */
977
- /* */
978
- /* */
979
- /* */
980
- /* */
981
- /* */
982
- /* */
983
- /* */
984
- /* */
985
- /* */
986
- /* */
987
- /* */
988
- /* */
989
- /* */
990
- /* */
991
- /* */
992
- /* */
993
- /* */
994
- /* */
995
- /* */
996
- /* */
997
- /* */
998
- /* */
999
- /* */
1000
- /* */
1001
- /* */
1002
- /* */
1003
- /* */
1004
- /* */
1005
- /* */
1006
- /* */
1007
- /* */
1008
- /* */
1009
- /* */
1010
- /* */
1011
- /* */
1012
- /* */
1013
- /* */
1014
- /* */
1015
- /* */
1016
- /* */
1017
- /* */
1018
- /* */
1019
- /* */
1020
- /* */
1021
- /* */
1022
- /* */
1023
- /* */
1024
- /* */
1025
- /* */
1026
- /* */
1027
- /* */
1028
- /* */
1029
- /* */
1030
- /* */
1031
- /* */
1032
- /* */
1033
- /* */
1034
- /* */
1035
- /* */
1036
- /* */
1037
- /* */
1038
- /* */
1039
- /* */
1040
- /* */
1041
- /* */
1042
- /* */
1043
- /* */
1044
- /* */
1045
- /* */
1046
- /* */
1047
- /* */
1048
- /* */
1049
- /* */
1050
- /* */
1051
- /* */
1052
- /* */
1053
- /* */
1054
- /* */
1055
- /* */
1056
- /* */
1057
- return (void 0);
1058
- }
1059
- static nearestTo(absoluteLocation, options) {
1060
- /* */
1061
- /* */
1062
- /* */
1063
- /* */
1064
- /* */
1065
- /* */
1066
- /* */
1067
- /* */
1068
- /* */
1069
- /* */
1070
- /* */
1071
- /* */
1072
- /* */
1073
- /* */
1074
- /* */
1075
- /* */
1076
- /* */
1077
- /* */
1078
- /* */
1079
- /* */
1080
- /* */
1081
- /* */
1082
- /* */
1083
- /* */
1084
- /* */
1085
- /* */
1086
- /* */
1087
- /* */
1088
- /* */
1089
- /* */
1090
- /* */
1091
- /* */
1092
- /* */
1093
- /* */
1094
- /* */
1095
- /* */
1096
- /* */
1097
- /* */
1098
- /* */
1099
- /* */
1100
- /* */
1101
- /* */
1102
- /* */
1103
- /* */
1104
- /* */
1105
- /* */
1106
- /* */
1107
- /* */
1108
- /* */
1109
- /* */
1110
- /* */
1111
- /* */
1112
- /* */
1113
- /* */
1114
- /* */
1115
- /* */
1116
- /* */
1117
- /* */
1118
- return (void 0);
1119
- }
1120
- static allProjectFrom(absoluteLocation, stopOnCwd = '/') {
1121
- /* */
1122
- /* */
1123
- /* */
1124
- /* */
1125
- /* */
1126
- /* */
1127
- /* */
1128
- /* */
1129
- /* */
1130
- /* */
1131
- /* */
1132
- /* */
1133
- /* */
1134
- /* */
1135
- /* */
1136
- /* */
1137
- /* */
1138
- /* */
1139
- /* */
1140
- /* */
1141
- /* */
1142
- /* */
1143
- return (void 0);
1144
- }
1145
- static DefaultPortByType(type) {
1146
- if (type === 'workspace') {
1147
- return 5000;
1148
- }
1149
- if (type === 'angular-client') {
1150
- return 4300;
1151
- }
1152
- if (type === 'angular-lib') {
1153
- return 4250;
1154
- }
1155
- if (type === 'electron-client') {
1156
- return 4350;
1157
- }
1158
- if (type === 'ionic-client') {
1159
- return 8080;
1160
- }
1161
- if (type === 'docker') {
1162
- return 5000;
1163
- }
1164
- if (type === 'isomorphic-lib') {
1165
- return 4000;
1166
- }
1167
- if (type === 'container' || type === 'unknow-npm-project') {
1168
- return;
1169
- }
1170
- }
1171
- static get isBundleMode() {
1172
- if (Helpers$1.isBrowser) {
1173
- return true;
1174
- }
1175
- /* */
1176
- /* */
1177
- }
1178
- static get Current() {
1179
- /* */
1180
- /* */
1181
- /* */
1182
- /* */
1183
- /* */
1184
- /* */
1185
- /* */
1186
- /* */
1187
- /* */
1188
- /* */
1189
- /* */
1190
- return (void 0);
1191
- }
1192
- /**
1193
- * @deprecated
1194
- */
1195
- static get Tnp() {
1196
- /* */
1197
- /* */
1198
- /* */
1199
- /* */
1200
- /* */
1201
- /* */
1202
- /* */
1203
- return (void 0);
1204
- }
1205
- static by(libraryType, version
1206
- /* */
1207
- /* */
1208
- ) {
1209
- /* */
1210
- /* */
1211
- /* */
1212
- /* */
1213
- /* */
1214
- /* */
1215
- /* */
1216
- /* */
1217
- /* */
1218
- /* */
1219
- /* */
1220
- /* */
1221
- /* */
1222
- /* */
1223
- /* */
1224
- /* */
1225
- /* */
1226
- /* */
1227
- /* */
1228
- /* */
1229
- /* */
1230
- /* */
1231
- /* */
1232
- /* */
1233
- /* */
1234
- /* */
1235
- /* */
1236
- return (void 0);
1237
- }
1238
- defineProperty(variableName, classFn) {
1239
- /* */
1240
- /* */
1241
- /* */
1242
- /* */
1243
- /* */
1244
- /* */
1245
- /* */
1246
- /* */
1247
- /* */
1248
- /* */
1249
- /* */
1250
- /* */
1251
- /* */
1252
- /* */
1253
- /* */
1254
- /* */
1255
- /* */
1256
- /* */
1257
- /* */
1258
- /* */
1259
- /* */
1260
- /* */
1261
- /* */
1262
- /* */
1263
- return (void 0);
1264
- }
1265
- setType(type) {
1266
- // @ts-ignore
1267
- this._type = type;
1268
- }
1269
- typeIs(...types) {
1270
- return this._type && types.includes(this._type);
1271
- }
1272
- typeIsNot(...types) {
1273
- return !this.typeIs(...types);
1274
- }
1275
- forEmptyStructure() {
1276
- /* */
1277
- /* */
1278
- /* */
1279
- /* */
1280
- /* */
1281
- return (void 0);
1282
- }
1283
- }
1284
- Project.projects = [];
1285
- /**
1286
- * To speed up checking folder I am keeping pathes for alterdy checked folder
1287
- * This may break things that are creating new projects
1288
- */
1289
- Project.emptyLocations = [];
1290
- /* */
1291
- /* */
1292
- /* */
1293
- /* */
1294
- /* */
1295
- /* */
1296
- /* */
1297
- /* */
1298
- /* */
1299
- /* */
1300
- /* */
1301
- /* */
1302
- /* */
1303
- /* */
1304
- /* */
1305
- /* */
1306
- /* */
1307
- /* */
1308
- /* */
1309
- /* */
1310
- /* */
1311
- /* */
1312
- /* */
1313
- /* */
1314
- /* */
1315
- /* */
1316
- /* */
1317
- /* */
1318
- /* */
1319
- /* */
1320
- /* */
1321
- /* */
1322
- /* */
1323
- /* */
1324
- /* */
1325
- /* */
1326
- /* */
1327
- /* */
1328
- /* */
1329
- /* */
1330
- /* */
1331
- /* */
1332
- /* */
1333
- /* */
1334
- ;
912
+ /* */
913
+ const Helpers$1 = HelpersTnp.Instance;
914
+ class Project {
915
+ constructor() {
916
+ /* */
917
+ /* */
918
+ this.cache = {};
919
+ this.browser = {};
920
+ }
921
+ static typeFrom(location) {
922
+ /* */
923
+ /* */
924
+ /* */
925
+ /* */
926
+ /* */
927
+ /* */
928
+ /* */
929
+ /* */
930
+ /* */
931
+ /* */
932
+ /* */
933
+ /* */
934
+ return (void 0);
935
+ }
936
+ static unload(project) {
937
+ Project.projects = Project.projects.filter(f => f !== project);
938
+ }
939
+ static From(locationOfProj) {
940
+ /* */
941
+ /* */
942
+ /* */
943
+ /* */
944
+ /* */
945
+ /* */
946
+ /* */
947
+ /* */
948
+ /* */
949
+ /* */
950
+ /* */
951
+ /* */
952
+ /* */
953
+ /* */
954
+ /* */
955
+ /* */
956
+ /* */
957
+ /* */
958
+ /* */
959
+ /* */
960
+ /* */
961
+ /* */
962
+ /* */
963
+ /* */
964
+ /* */
965
+ /* */
966
+ /* */
967
+ /* */
968
+ /* */
969
+ /* */
970
+ /* */
971
+ /* */
972
+ /* */
973
+ /* */
974
+ /* */
975
+ /* */
976
+ /* */
977
+ /* */
978
+ /* */
979
+ /* */
980
+ /* */
981
+ /* */
982
+ /* */
983
+ /* */
984
+ /* */
985
+ /* */
986
+ /* */
987
+ /* */
988
+ /* */
989
+ /* */
990
+ /* */
991
+ /* */
992
+ /* */
993
+ /* */
994
+ /* */
995
+ /* */
996
+ /* */
997
+ /* */
998
+ /* */
999
+ /* */
1000
+ /* */
1001
+ /* */
1002
+ /* */
1003
+ /* */
1004
+ /* */
1005
+ /* */
1006
+ /* */
1007
+ /* */
1008
+ /* */
1009
+ /* */
1010
+ /* */
1011
+ /* */
1012
+ /* */
1013
+ /* */
1014
+ /* */
1015
+ /* */
1016
+ /* */
1017
+ /* */
1018
+ /* */
1019
+ /* */
1020
+ /* */
1021
+ /* */
1022
+ /* */
1023
+ /* */
1024
+ /* */
1025
+ /* */
1026
+ /* */
1027
+ /* */
1028
+ /* */
1029
+ /* */
1030
+ /* */
1031
+ /* */
1032
+ /* */
1033
+ /* */
1034
+ /* */
1035
+ /* */
1036
+ /* */
1037
+ /* */
1038
+ /* */
1039
+ /* */
1040
+ /* */
1041
+ /* */
1042
+ /* */
1043
+ /* */
1044
+ /* */
1045
+ /* */
1046
+ /* */
1047
+ /* */
1048
+ /* */
1049
+ /* */
1050
+ /* */
1051
+ /* */
1052
+ /* */
1053
+ /* */
1054
+ /* */
1055
+ /* */
1056
+ /* */
1057
+ return (void 0);
1058
+ }
1059
+ static nearestTo(absoluteLocation, options) {
1060
+ /* */
1061
+ /* */
1062
+ /* */
1063
+ /* */
1064
+ /* */
1065
+ /* */
1066
+ /* */
1067
+ /* */
1068
+ /* */
1069
+ /* */
1070
+ /* */
1071
+ /* */
1072
+ /* */
1073
+ /* */
1074
+ /* */
1075
+ /* */
1076
+ /* */
1077
+ /* */
1078
+ /* */
1079
+ /* */
1080
+ /* */
1081
+ /* */
1082
+ /* */
1083
+ /* */
1084
+ /* */
1085
+ /* */
1086
+ /* */
1087
+ /* */
1088
+ /* */
1089
+ /* */
1090
+ /* */
1091
+ /* */
1092
+ /* */
1093
+ /* */
1094
+ /* */
1095
+ /* */
1096
+ /* */
1097
+ /* */
1098
+ /* */
1099
+ /* */
1100
+ /* */
1101
+ /* */
1102
+ /* */
1103
+ /* */
1104
+ /* */
1105
+ /* */
1106
+ /* */
1107
+ /* */
1108
+ /* */
1109
+ /* */
1110
+ /* */
1111
+ /* */
1112
+ /* */
1113
+ /* */
1114
+ /* */
1115
+ /* */
1116
+ /* */
1117
+ /* */
1118
+ return (void 0);
1119
+ }
1120
+ static allProjectFrom(absoluteLocation, stopOnCwd = '/') {
1121
+ /* */
1122
+ /* */
1123
+ /* */
1124
+ /* */
1125
+ /* */
1126
+ /* */
1127
+ /* */
1128
+ /* */
1129
+ /* */
1130
+ /* */
1131
+ /* */
1132
+ /* */
1133
+ /* */
1134
+ /* */
1135
+ /* */
1136
+ /* */
1137
+ /* */
1138
+ /* */
1139
+ /* */
1140
+ /* */
1141
+ /* */
1142
+ /* */
1143
+ return (void 0);
1144
+ }
1145
+ static DefaultPortByType(type) {
1146
+ if (type === 'workspace') {
1147
+ return 5000;
1148
+ }
1149
+ if (type === 'angular-client') {
1150
+ return 4300;
1151
+ }
1152
+ if (type === 'angular-lib') {
1153
+ return 4250;
1154
+ }
1155
+ if (type === 'electron-client') {
1156
+ return 4350;
1157
+ }
1158
+ if (type === 'ionic-client') {
1159
+ return 8080;
1160
+ }
1161
+ if (type === 'docker') {
1162
+ return 5000;
1163
+ }
1164
+ if (type === 'isomorphic-lib') {
1165
+ return 4000;
1166
+ }
1167
+ if (type === 'container' || type === 'unknow-npm-project') {
1168
+ return;
1169
+ }
1170
+ }
1171
+ static get isBundleMode() {
1172
+ if (Helpers$1.isBrowser) {
1173
+ return true;
1174
+ }
1175
+ /* */
1176
+ /* */
1177
+ }
1178
+ static get Current() {
1179
+ /* */
1180
+ /* */
1181
+ /* */
1182
+ /* */
1183
+ /* */
1184
+ /* */
1185
+ /* */
1186
+ /* */
1187
+ /* */
1188
+ /* */
1189
+ /* */
1190
+ return (void 0);
1191
+ }
1192
+ /**
1193
+ * @deprecated
1194
+ */
1195
+ static get Tnp() {
1196
+ /* */
1197
+ /* */
1198
+ /* */
1199
+ /* */
1200
+ /* */
1201
+ /* */
1202
+ /* */
1203
+ return (void 0);
1204
+ }
1205
+ static by(libraryType, version
1206
+ /* */
1207
+ /* */
1208
+ ) {
1209
+ /* */
1210
+ /* */
1211
+ /* */
1212
+ /* */
1213
+ /* */
1214
+ /* */
1215
+ /* */
1216
+ /* */
1217
+ /* */
1218
+ /* */
1219
+ /* */
1220
+ /* */
1221
+ /* */
1222
+ /* */
1223
+ /* */
1224
+ /* */
1225
+ /* */
1226
+ /* */
1227
+ /* */
1228
+ /* */
1229
+ /* */
1230
+ /* */
1231
+ /* */
1232
+ /* */
1233
+ /* */
1234
+ /* */
1235
+ /* */
1236
+ return (void 0);
1237
+ }
1238
+ defineProperty(variableName, classFn) {
1239
+ /* */
1240
+ /* */
1241
+ /* */
1242
+ /* */
1243
+ /* */
1244
+ /* */
1245
+ /* */
1246
+ /* */
1247
+ /* */
1248
+ /* */
1249
+ /* */
1250
+ /* */
1251
+ /* */
1252
+ /* */
1253
+ /* */
1254
+ /* */
1255
+ /* */
1256
+ /* */
1257
+ /* */
1258
+ /* */
1259
+ /* */
1260
+ /* */
1261
+ /* */
1262
+ /* */
1263
+ return (void 0);
1264
+ }
1265
+ setType(type) {
1266
+ // @ts-ignore
1267
+ this._type = type;
1268
+ }
1269
+ typeIs(...types) {
1270
+ return this._type && types.includes(this._type);
1271
+ }
1272
+ typeIsNot(...types) {
1273
+ return !this.typeIs(...types);
1274
+ }
1275
+ forEmptyStructure() {
1276
+ /* */
1277
+ /* */
1278
+ /* */
1279
+ /* */
1280
+ /* */
1281
+ return (void 0);
1282
+ }
1283
+ }
1284
+ Project.projects = [];
1285
+ /**
1286
+ * To speed up checking folder I am keeping pathes for alterdy checked folder
1287
+ * This may break things that are creating new projects
1288
+ */
1289
+ Project.emptyLocations = [];
1290
+ /* */
1291
+ /* */
1292
+ /* */
1293
+ /* */
1294
+ /* */
1295
+ /* */
1296
+ /* */
1297
+ /* */
1298
+ /* */
1299
+ /* */
1300
+ /* */
1301
+ /* */
1302
+ /* */
1303
+ /* */
1304
+ /* */
1305
+ /* */
1306
+ /* */
1307
+ /* */
1308
+ /* */
1309
+ /* */
1310
+ /* */
1311
+ /* */
1312
+ /* */
1313
+ /* */
1314
+ /* */
1315
+ /* */
1316
+ /* */
1317
+ /* */
1318
+ /* */
1319
+ /* */
1320
+ /* */
1321
+ /* */
1322
+ /* */
1323
+ /* */
1324
+ /* */
1325
+ /* */
1326
+ /* */
1327
+ /* */
1328
+ /* */
1329
+ /* */
1330
+ /* */
1331
+ /* */
1332
+ /* */
1333
+ /* */
1334
+ ;
1335
1335
  ({}); // @--end-of-file-for-module=tnp-helpers lib/project.ts
1336
1336
 
1337
- ;
1337
+ ;
1338
1338
  ({}); // @--end-of-file-for-module=tnp-helpers lib/firedev-models.ts
1339
1339
 
1340
- class BaseComponent {
1341
- constructor() {
1342
- // @ts-ignore
1343
- this.model = {};
1344
- this.handlers = [];
1345
- }
1346
- ngOnDestroy() {
1347
- this.handlers.forEach(h => h.unsubscribe());
1348
- this.handlers.length = 0;
1349
- }
1350
- }
1351
- BaseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: BaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1352
- BaseComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: BaseComponent, selector: "app-base-component-meta", inputs: { model: "model" }, ngImport: i0, template: '<div></div>', isInline: true });
1353
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: BaseComponent, decorators: [{
1354
- type: Component,
1355
- args: [{
1356
- selector: 'app-base-component-meta',
1357
- template: '<div></div>'
1358
- }]
1359
- }], propDecorators: { model: [{
1360
- type: Input
1361
- }] } });
1362
- const isCalledNgInitAfterInternalRefresh = Symbol();
1363
- class BaseComponentForRouter extends BaseComponent {
1364
- constructor(__router) {
1365
- super();
1366
- this.__router = __router;
1367
- this[isCalledNgInitAfterInternalRefresh] = false;
1368
- }
1369
- isCalledNgInitAfterInternalRefresh() {
1370
- return !!this[isCalledNgInitAfterInternalRefresh];
1371
- }
1372
- reloadNgOninitOnUrlChange() {
1373
- this.handlers.push(this.__router.events.subscribe(event => {
1374
- if (event instanceof NavigationEnd && this['ngOnInit']) {
1375
- this[isCalledNgInitAfterInternalRefresh] = true;
1376
- this['ngOnInit']();
1377
- if (this[isCalledNgInitAfterInternalRefresh]) {
1378
- this[isCalledNgInitAfterInternalRefresh] = false;
1379
- }
1380
- }
1381
- }));
1382
- }
1383
- }
1384
- ;
1340
+ class BaseComponent {
1341
+ constructor() {
1342
+ // @ts-ignore
1343
+ this.model = {};
1344
+ this.handlers = [];
1345
+ }
1346
+ ngOnDestroy() {
1347
+ this.handlers.forEach(h => h.unsubscribe());
1348
+ this.handlers.length = 0;
1349
+ }
1350
+ }
1351
+ BaseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: BaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1352
+ BaseComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: BaseComponent, selector: "app-base-component-meta", inputs: { model: "model" }, ngImport: i0, template: '<div></div>', isInline: true });
1353
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: BaseComponent, decorators: [{
1354
+ type: Component,
1355
+ args: [{
1356
+ selector: 'app-base-component-meta',
1357
+ template: '<div></div>'
1358
+ }]
1359
+ }], propDecorators: { model: [{
1360
+ type: Input
1361
+ }] } });
1362
+ const isCalledNgInitAfterInternalRefresh = Symbol();
1363
+ class BaseComponentForRouter extends BaseComponent {
1364
+ constructor(__router) {
1365
+ super();
1366
+ this.__router = __router;
1367
+ this[isCalledNgInitAfterInternalRefresh] = false;
1368
+ }
1369
+ isCalledNgInitAfterInternalRefresh() {
1370
+ return !!this[isCalledNgInitAfterInternalRefresh];
1371
+ }
1372
+ reloadNgOninitOnUrlChange() {
1373
+ this.handlers.push(this.__router.events.subscribe(event => {
1374
+ if (event instanceof NavigationEnd && this['ngOnInit']) {
1375
+ this[isCalledNgInitAfterInternalRefresh] = true;
1376
+ this['ngOnInit']();
1377
+ if (this[isCalledNgInitAfterInternalRefresh]) {
1378
+ this[isCalledNgInitAfterInternalRefresh] = false;
1379
+ }
1380
+ }
1381
+ }));
1382
+ }
1383
+ }
1384
+ ;
1385
1385
  ({}); // @--end-of-file-for-module=tnp-helpers lib/base-component.ts
1386
1386
 
1387
- const log$2 = Log.create(`DualComponentController`);
1388
- class DualComponentController {
1389
- constructor(cmp, isFormlyMode = false) {
1390
- this.cmp = cmp;
1391
- this.isFormlyMode = isFormlyMode;
1392
- }
1393
- getValTemplateOptions(propertyName) {
1394
- var _a;
1395
- if (this.isFormlyMode) {
1396
- const res = (_a = this.cmp.field) === null || _a === void 0 ? void 0 : _a.templateOptions[propertyName];
1397
- if (res === void 0 && this.cmp[propertyName]) {
1398
- return this.cmp[propertyName];
1399
- }
1400
- return res;
1401
- }
1402
- return this.cmp[propertyName];
1403
- }
1404
- getValContext(propertyName) {
1405
- var _a;
1406
- if (this.isFormlyMode) {
1407
- const res = (_a = this.cmp) === null || _a === void 0 ? void 0 : _a.field[propertyName];
1408
- if (res === void 0 && this.cmp[propertyName]) {
1409
- return this.cmp[propertyName];
1410
- }
1411
- return res;
1412
- }
1413
- return this.cmp[propertyName];
1414
- }
1415
- get disabled() {
1416
- return this.getValTemplateOptions('disabled');
1417
- }
1418
- get required() {
1419
- return this.getValTemplateOptions('required');
1420
- }
1421
- get type() {
1422
- if (!this.isFormlyMode) {
1423
- return CLASS.getNameFromObject(this.cmp);
1424
- }
1425
- return this.getValContext('type');
1426
- }
1427
- get label() {
1428
- return this.getValTemplateOptions('label');
1429
- }
1430
- get placeholder() {
1431
- return this.getValTemplateOptions('placeholder');
1432
- }
1433
- get defaultValue() {
1434
- return this.getValContext('defaultValue');
1435
- }
1436
- get formControl() {
1437
- return this.getValContext('formControl');
1438
- }
1439
- get key() {
1440
- return this.getValContext('key');
1441
- }
1442
- get path() {
1443
- return this.getValContext('path');
1444
- }
1445
- get model() {
1446
- if (this.isFormlyMode) {
1447
- return this.getValContext('model');
1448
- }
1449
- else {
1450
- return this.__model;
1451
- }
1452
- }
1453
- set model(v) {
1454
- if (this.isFormlyMode) {
1455
- log$2.w(`[DualComponentController] You can't set model in formly component mode`);
1456
- }
1457
- else {
1458
- this.__model = v;
1459
- }
1460
- }
1461
- get mode() {
1462
- if (this.isFormlyMode) {
1463
- return this.getValContext('mode');
1464
- }
1465
- else {
1466
- return this.__mode;
1467
- }
1468
- }
1469
- set mode(v) {
1470
- if (this.isFormlyMode) {
1471
- }
1472
- else {
1473
- this.__mode = v;
1474
- }
1475
- }
1476
- get value() {
1477
- if (this.isFormlyMode) {
1478
- return this.cmp.field.formControl.value;
1479
- }
1480
- if (_.isString(this.path)) {
1481
- return _.get(this.cmp.model, this.path);
1482
- }
1483
- return this.cmp.model;
1484
- }
1485
- set value(v) {
1486
- if (this.isFormlyMode) {
1487
- this.cmp.field.formControl.setValue(v);
1488
- // @ts-ignore
1489
- this.cmp.change.next(v);
1490
- return;
1491
- }
1492
- if (_.isString(this.path)) {
1493
- _.set(this.cmp.model, this.path, v);
1494
- }
1495
- else {
1496
- this.cmp.model = v;
1497
- }
1498
- }
1499
- }
1500
- ;
1387
+ const log$2 = Log.create(`DualComponentController`);
1388
+ class DualComponentController {
1389
+ constructor(cmp, isFormlyMode = false) {
1390
+ this.cmp = cmp;
1391
+ this.isFormlyMode = isFormlyMode;
1392
+ }
1393
+ getValTemplateOptions(propertyName) {
1394
+ var _a;
1395
+ if (this.isFormlyMode) {
1396
+ const res = (_a = this.cmp.field) === null || _a === void 0 ? void 0 : _a.templateOptions[propertyName];
1397
+ if (res === void 0 && this.cmp[propertyName]) {
1398
+ return this.cmp[propertyName];
1399
+ }
1400
+ return res;
1401
+ }
1402
+ return this.cmp[propertyName];
1403
+ }
1404
+ getValContext(propertyName) {
1405
+ var _a;
1406
+ if (this.isFormlyMode) {
1407
+ const res = (_a = this.cmp) === null || _a === void 0 ? void 0 : _a.field[propertyName];
1408
+ if (res === void 0 && this.cmp[propertyName]) {
1409
+ return this.cmp[propertyName];
1410
+ }
1411
+ return res;
1412
+ }
1413
+ return this.cmp[propertyName];
1414
+ }
1415
+ get disabled() {
1416
+ return this.getValTemplateOptions('disabled');
1417
+ }
1418
+ get required() {
1419
+ return this.getValTemplateOptions('required');
1420
+ }
1421
+ get type() {
1422
+ if (!this.isFormlyMode) {
1423
+ return CLASS.getNameFromObject(this.cmp);
1424
+ }
1425
+ return this.getValContext('type');
1426
+ }
1427
+ get label() {
1428
+ return this.getValTemplateOptions('label');
1429
+ }
1430
+ get placeholder() {
1431
+ return this.getValTemplateOptions('placeholder');
1432
+ }
1433
+ get defaultValue() {
1434
+ return this.getValContext('defaultValue');
1435
+ }
1436
+ get formControl() {
1437
+ return this.getValContext('formControl');
1438
+ }
1439
+ get key() {
1440
+ return this.getValContext('key');
1441
+ }
1442
+ get path() {
1443
+ return this.getValContext('path');
1444
+ }
1445
+ get model() {
1446
+ if (this.isFormlyMode) {
1447
+ return this.getValContext('model');
1448
+ }
1449
+ else {
1450
+ return this.__model;
1451
+ }
1452
+ }
1453
+ set model(v) {
1454
+ if (this.isFormlyMode) {
1455
+ log$2.w(`[DualComponentController] You can't set model in formly component mode`);
1456
+ }
1457
+ else {
1458
+ this.__model = v;
1459
+ }
1460
+ }
1461
+ get mode() {
1462
+ if (this.isFormlyMode) {
1463
+ return this.getValContext('mode');
1464
+ }
1465
+ else {
1466
+ return this.__mode;
1467
+ }
1468
+ }
1469
+ set mode(v) {
1470
+ if (this.isFormlyMode) {
1471
+ }
1472
+ else {
1473
+ this.__mode = v;
1474
+ }
1475
+ }
1476
+ get value() {
1477
+ if (this.isFormlyMode) {
1478
+ return this.cmp.field.formControl.value;
1479
+ }
1480
+ if (_.isString(this.path)) {
1481
+ return _.get(this.cmp.model, this.path);
1482
+ }
1483
+ return this.cmp.model;
1484
+ }
1485
+ set value(v) {
1486
+ if (this.isFormlyMode) {
1487
+ this.cmp.field.formControl.setValue(v);
1488
+ // @ts-ignore
1489
+ this.cmp.change.next(v);
1490
+ return;
1491
+ }
1492
+ if (_.isString(this.path)) {
1493
+ _.set(this.cmp.model, this.path, v);
1494
+ }
1495
+ else {
1496
+ this.cmp.model = v;
1497
+ }
1498
+ }
1499
+ }
1500
+ ;
1501
1501
  ({}); // @--end-of-file-for-module=tnp-helpers lib/dual-component-ctrl.ts
1502
1502
 
1503
- const log$1 = Log.create('base formly component', Level.__NOTHING);
1504
- class BaseFormlyComponent extends FieldType {
1505
- constructor() {
1506
- super(...arguments);
1507
- this.DualComponentController = DualComponentController;
1508
- this.ctrl = {};
1509
- this.change = new EventEmitter();
1510
- // @ts-ignore
1511
- this.handlers = [];
1512
- this.__field = {
1513
- templateOptions: {}
1514
- };
1515
- }
1516
- // @ts-ignore
1517
- get mode() {
1518
- return this.ctrl.mode;
1519
- }
1520
- // @ts-ignore
1521
- set mode(v) {
1522
- this.ctrl.mode = v;
1523
- }
1524
- // @ts-ignore
1525
- set model(v) {
1526
- this.ctrl.model = v;
1527
- }
1528
- get model() {
1529
- return this.ctrl.model;
1530
- }
1531
- // @ts-ignore
1532
- set key(value) {
1533
- if (this.ctrl && this.ctrl.isFormlyMode) {
1534
- return;
1535
- }
1536
- this.path = value;
1537
- }
1538
- get key() {
1539
- if (this.ctrl && this.ctrl.isFormlyMode) {
1540
- return this.field.key;
1541
- }
1542
- return this.path;
1543
- }
1544
- ngOnDestroy() {
1545
- this.handlers.forEach(h => h.unsubscribe());
1546
- this.handlers.length = 0;
1547
- }
1548
- ngAfterViewInit() {
1549
- }
1550
- ngOnInit() {
1551
- const isFormlyMode = !!this.field;
1552
- log$1.i(`isFormlyMode: ${isFormlyMode}`);
1553
- if (!isFormlyMode) {
1554
- const that = this;
1555
- Object.defineProperty(this, 'field', {
1556
- get: function () {
1557
- return that.__field;
1558
- },
1559
- set: function (v) {
1560
- that.__field = v;
1561
- }
1562
- });
1563
- }
1564
- const existed = this.ctrl;
1565
- this.ctrl = new this.DualComponentController(this, isFormlyMode);
1566
- // @ts-ignore
1567
- Object.keys(existed).forEach(key => {
1568
- this.ctrl[key] = existed[key];
1569
- });
1570
- // @ts-ignore
1571
- this.change.next(this.ctrl.value);
1572
- }
1573
- }
1574
- BaseFormlyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: BaseFormlyComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1575
- BaseFormlyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: BaseFormlyComponent, selector: "app-base-formly-component-meta", inputs: { pizda: "pizda", mode: "mode", disabled: "disabled", required: "required", label: "label", placeholder: "placeholder", defaultValue: "defaultValue", model: "model", path: "path", key: "key" }, outputs: { change: "change" }, usesInheritance: true, ngImport: i0, template: `<div></div>`, isInline: true });
1576
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: BaseFormlyComponent, decorators: [{
1577
- type: Component,
1578
- args: [{
1579
- selector: 'app-base-formly-component-meta',
1580
- template: `<div></div>`
1581
- }]
1582
- }], propDecorators: { pizda: [{
1583
- type: Input
1584
- }], mode: [{
1585
- type: Input
1586
- }], disabled: [{
1587
- type: Input
1588
- }], required: [{
1589
- type: Input
1590
- }], label: [{
1591
- type: Input
1592
- }], placeholder: [{
1593
- type: Input
1594
- }], defaultValue: [{
1595
- type: Input
1596
- }], model: [{
1597
- type: Input
1598
- }], path: [{
1599
- type: Input
1600
- }], change: [{
1601
- type: Output
1602
- }], key: [{
1603
- type: Input
1604
- }] } });
1605
- ;
1503
+ const log$1 = Log.create('base formly component', Level.__NOTHING);
1504
+ class BaseFormlyComponent extends FieldType {
1505
+ constructor() {
1506
+ super(...arguments);
1507
+ this.DualComponentController = DualComponentController;
1508
+ this.ctrl = {};
1509
+ this.change = new EventEmitter();
1510
+ // @ts-ignore
1511
+ this.handlers = [];
1512
+ this.__field = {
1513
+ templateOptions: {}
1514
+ };
1515
+ }
1516
+ // @ts-ignore
1517
+ get mode() {
1518
+ return this.ctrl.mode;
1519
+ }
1520
+ // @ts-ignore
1521
+ set mode(v) {
1522
+ this.ctrl.mode = v;
1523
+ }
1524
+ // @ts-ignore
1525
+ set model(v) {
1526
+ this.ctrl.model = v;
1527
+ }
1528
+ get model() {
1529
+ return this.ctrl.model;
1530
+ }
1531
+ // @ts-ignore
1532
+ set key(value) {
1533
+ if (this.ctrl && this.ctrl.isFormlyMode) {
1534
+ return;
1535
+ }
1536
+ this.path = value;
1537
+ }
1538
+ get key() {
1539
+ if (this.ctrl && this.ctrl.isFormlyMode) {
1540
+ return this.field.key;
1541
+ }
1542
+ return this.path;
1543
+ }
1544
+ ngOnDestroy() {
1545
+ this.handlers.forEach(h => h.unsubscribe());
1546
+ this.handlers.length = 0;
1547
+ }
1548
+ ngAfterViewInit() {
1549
+ }
1550
+ ngOnInit() {
1551
+ const isFormlyMode = !!this.field;
1552
+ log$1.i(`isFormlyMode: ${isFormlyMode}`);
1553
+ if (!isFormlyMode) {
1554
+ const that = this;
1555
+ Object.defineProperty(this, 'field', {
1556
+ get: function () {
1557
+ return that.__field;
1558
+ },
1559
+ set: function (v) {
1560
+ that.__field = v;
1561
+ }
1562
+ });
1563
+ }
1564
+ const existed = this.ctrl;
1565
+ this.ctrl = new this.DualComponentController(this, isFormlyMode);
1566
+ // @ts-ignore
1567
+ Object.keys(existed).forEach(key => {
1568
+ this.ctrl[key] = existed[key];
1569
+ });
1570
+ // @ts-ignore
1571
+ this.change.next(this.ctrl.value);
1572
+ }
1573
+ }
1574
+ BaseFormlyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: BaseFormlyComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1575
+ BaseFormlyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: BaseFormlyComponent, selector: "app-base-formly-component-meta", inputs: { pizda: "pizda", mode: "mode", disabled: "disabled", required: "required", label: "label", placeholder: "placeholder", defaultValue: "defaultValue", model: "model", path: "path", key: "key" }, outputs: { change: "change" }, usesInheritance: true, ngImport: i0, template: `<div></div>`, isInline: true });
1576
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: BaseFormlyComponent, decorators: [{
1577
+ type: Component,
1578
+ args: [{
1579
+ selector: 'app-base-formly-component-meta',
1580
+ template: `<div></div>`
1581
+ }]
1582
+ }], propDecorators: { pizda: [{
1583
+ type: Input
1584
+ }], mode: [{
1585
+ type: Input
1586
+ }], disabled: [{
1587
+ type: Input
1588
+ }], required: [{
1589
+ type: Input
1590
+ }], label: [{
1591
+ type: Input
1592
+ }], placeholder: [{
1593
+ type: Input
1594
+ }], defaultValue: [{
1595
+ type: Input
1596
+ }], model: [{
1597
+ type: Input
1598
+ }], path: [{
1599
+ type: Input
1600
+ }], change: [{
1601
+ type: Output
1602
+ }], key: [{
1603
+ type: Input
1604
+ }] } });
1605
+ ;
1606
1606
  ({}); // @--end-of-file-for-module=tnp-helpers lib/base-formly-component.ts
1607
1607
 
1608
- class ResizeService {
1609
- constructor() {
1610
- this.resizeDetector = elementResizeDetectorMaker({ strategy: 'scroll' });
1611
- }
1612
- addResizeEventListener(element, handler) {
1613
- this.resizeDetector.listenTo(element, handler);
1614
- }
1615
- removeResizeEventListener(element) {
1616
- this.resizeDetector.uninstall(element);
1617
- }
1618
- }
1619
- ResizeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ResizeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1620
- ResizeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ResizeService });
1621
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ResizeService, decorators: [{
1622
- type: Injectable
1623
- }], ctorParameters: function () { return []; } });
1624
- ;
1608
+ class ResizeService {
1609
+ constructor() {
1610
+ this.resizeDetector = elementResizeDetectorMaker({ strategy: 'scroll' });
1611
+ }
1612
+ addResizeEventListener(element, handler) {
1613
+ this.resizeDetector.listenTo(element, handler);
1614
+ }
1615
+ removeResizeEventListener(element) {
1616
+ this.resizeDetector.uninstall(element);
1617
+ }
1618
+ }
1619
+ ResizeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ResizeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1620
+ ResizeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ResizeService });
1621
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: ResizeService, decorators: [{
1622
+ type: Injectable
1623
+ }], ctorParameters: function () { return []; } });
1624
+ ;
1625
1625
  ({}); // @--end-of-file-for-module=tnp-helpers lib/resize-service.ts
1626
1626
 
1627
- const log = Log.create(`[firedev-helpers] long-press`, Level.__NOTHING);
1628
- class LongPress {
1629
- constructor() {
1630
- this.pressDuration = 1000;
1631
- this.onLongPress = new EventEmitter();
1632
- this.onLongPressing = new EventEmitter();
1633
- this.onLongPressEnd = new EventEmitter();
1634
- this.mouseX = 0;
1635
- this.mouseY = 0;
1636
- this.allowTrigger = false;
1637
- this.triggerEnd = _.debounce(() => {
1638
- this.endPress();
1639
- }, 500);
1640
- }
1641
- get press() { return this.pressing; }
1642
- get longPress() { return this.longPressing; }
1643
- onMouseDown(event) {
1644
- log.d(`MOUSE DOWN `);
1645
- if (event.which !== 1)
1646
- return;
1647
- this.allowTrigger = true;
1648
- this.mouseX = event.clientX;
1649
- this.mouseY = event.clientY;
1650
- this.pressing = true;
1651
- this.longPressing = false;
1652
- this.timeout = setTimeout(() => {
1653
- if (this.allowTrigger) {
1654
- this.longPressing = true;
1655
- log.d(`long pressing start pressDuration:${this.pressDuration} `);
1656
- this.onLongPress.emit(event);
1657
- this.loop(event);
1658
- }
1659
- }, this.pressDuration);
1660
- this.loop(event);
1661
- }
1662
- onMouseMove(event) {
1663
- if (this.pressing && !this.longPressing) {
1664
- const xThres = (event.clientX - this.mouseX) > 10;
1665
- const yThres = (event.clientY - this.mouseY) > 10;
1666
- if (xThres || yThres) {
1667
- this.endPress();
1668
- }
1669
- }
1670
- }
1671
- loop(event) {
1672
- if (this.longPressing) {
1673
- this.timeout = setTimeout(() => {
1674
- log.d(`emil longpressing`);
1675
- this.triggerEnd();
1676
- this.onLongPressing.emit(event);
1677
- this.loop(event);
1678
- }, 50);
1679
- }
1680
- }
1681
- endPress(emit = true) {
1682
- this.allowTrigger = false;
1683
- clearTimeout(this.timeout);
1684
- this.longPressing = false;
1685
- this.pressing = false;
1686
- if (emit) {
1687
- log.d(`EMIT END`);
1688
- this.onLongPressEnd.emit(true);
1689
- }
1690
- else {
1691
- log.d(`NOT EMIT END`);
1692
- }
1693
- }
1694
- onMouseUp() {
1695
- this.endPress(false);
1696
- }
1697
- }
1698
- LongPress.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: LongPress, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1699
- LongPress.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: LongPress, selector: "[long-press]", inputs: { pressDuration: "pressDuration" }, outputs: { onLongPress: "onLongPress", onLongPressing: "onLongPressing", onLongPressEnd: "onLongPressEnd" }, host: { listeners: { "mousedown": "onMouseDown($event)", "mousemove": "onMouseMove($event)", "mouseup": "onMouseUp()" }, properties: { "class.press": "this.press", "class.longpress": "this.longPress" } }, ngImport: i0 });
1700
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: LongPress, decorators: [{
1701
- type: Directive,
1702
- args: [{ selector: '[long-press]' }]
1703
- }], propDecorators: { pressDuration: [{
1704
- type: Input
1705
- }], onLongPress: [{
1706
- type: Output
1707
- }], onLongPressing: [{
1708
- type: Output
1709
- }], onLongPressEnd: [{
1710
- type: Output
1711
- }], press: [{
1712
- type: HostBinding,
1713
- args: ['class.press']
1714
- }], longPress: [{
1715
- type: HostBinding,
1716
- args: ['class.longpress']
1717
- }], onMouseDown: [{
1718
- type: HostListener,
1719
- args: ['mousedown', ['$event']]
1720
- }], onMouseMove: [{
1721
- type: HostListener,
1722
- args: ['mousemove', ['$event']]
1723
- }], onMouseUp: [{
1724
- type: HostListener,
1725
- args: ['mouseup']
1726
- }] } });
1727
- ;
1627
+ const log = Log.create(`[firedev-helpers] long-press`, Level.__NOTHING);
1628
+ class LongPress {
1629
+ constructor() {
1630
+ this.pressDuration = 1000;
1631
+ this.onLongPress = new EventEmitter();
1632
+ this.onLongPressing = new EventEmitter();
1633
+ this.onLongPressEnd = new EventEmitter();
1634
+ this.mouseX = 0;
1635
+ this.mouseY = 0;
1636
+ this.allowTrigger = false;
1637
+ this.triggerEnd = _.debounce(() => {
1638
+ this.endPress();
1639
+ }, 500);
1640
+ }
1641
+ get press() { return this.pressing; }
1642
+ get longPress() { return this.longPressing; }
1643
+ onMouseDown(event) {
1644
+ log.d(`MOUSE DOWN `);
1645
+ if (event.which !== 1)
1646
+ return;
1647
+ this.allowTrigger = true;
1648
+ this.mouseX = event.clientX;
1649
+ this.mouseY = event.clientY;
1650
+ this.pressing = true;
1651
+ this.longPressing = false;
1652
+ this.timeout = setTimeout(() => {
1653
+ if (this.allowTrigger) {
1654
+ this.longPressing = true;
1655
+ log.d(`long pressing start pressDuration:${this.pressDuration} `);
1656
+ this.onLongPress.emit(event);
1657
+ this.loop(event);
1658
+ }
1659
+ }, this.pressDuration);
1660
+ this.loop(event);
1661
+ }
1662
+ onMouseMove(event) {
1663
+ if (this.pressing && !this.longPressing) {
1664
+ const xThres = (event.clientX - this.mouseX) > 10;
1665
+ const yThres = (event.clientY - this.mouseY) > 10;
1666
+ if (xThres || yThres) {
1667
+ this.endPress();
1668
+ }
1669
+ }
1670
+ }
1671
+ loop(event) {
1672
+ if (this.longPressing) {
1673
+ this.timeout = setTimeout(() => {
1674
+ log.d(`emil longpressing`);
1675
+ this.triggerEnd();
1676
+ this.onLongPressing.emit(event);
1677
+ this.loop(event);
1678
+ }, 50);
1679
+ }
1680
+ }
1681
+ endPress(emit = true) {
1682
+ this.allowTrigger = false;
1683
+ clearTimeout(this.timeout);
1684
+ this.longPressing = false;
1685
+ this.pressing = false;
1686
+ if (emit) {
1687
+ log.d(`EMIT END`);
1688
+ this.onLongPressEnd.emit(true);
1689
+ }
1690
+ else {
1691
+ log.d(`NOT EMIT END`);
1692
+ }
1693
+ }
1694
+ onMouseUp() {
1695
+ this.endPress(false);
1696
+ }
1697
+ }
1698
+ LongPress.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: LongPress, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1699
+ LongPress.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.12", type: LongPress, selector: "[long-press]", inputs: { pressDuration: "pressDuration" }, outputs: { onLongPress: "onLongPress", onLongPressing: "onLongPressing", onLongPressEnd: "onLongPressEnd" }, host: { listeners: { "mousedown": "onMouseDown($event)", "mousemove": "onMouseMove($event)", "mouseup": "onMouseUp()" }, properties: { "class.press": "this.press", "class.longpress": "this.longPress" } }, ngImport: i0 });
1700
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: LongPress, decorators: [{
1701
+ type: Directive,
1702
+ args: [{ selector: '[long-press]' }]
1703
+ }], propDecorators: { pressDuration: [{
1704
+ type: Input
1705
+ }], onLongPress: [{
1706
+ type: Output
1707
+ }], onLongPressing: [{
1708
+ type: Output
1709
+ }], onLongPressEnd: [{
1710
+ type: Output
1711
+ }], press: [{
1712
+ type: HostBinding,
1713
+ args: ['class.press']
1714
+ }], longPress: [{
1715
+ type: HostBinding,
1716
+ args: ['class.longpress']
1717
+ }], onMouseDown: [{
1718
+ type: HostListener,
1719
+ args: ['mousedown', ['$event']]
1720
+ }], onMouseMove: [{
1721
+ type: HostListener,
1722
+ args: ['mousemove', ['$event']]
1723
+ }], onMouseUp: [{
1724
+ type: HostListener,
1725
+ args: ['mouseup']
1726
+ }] } });
1727
+ ;
1728
1728
  ({}); // @--end-of-file-for-module=tnp-helpers lib/long-press.directive.ts
1729
1729
 
1730
- /* */
1731
- /* */
1732
- const Helpers = HelpersTnp.Instance;
1733
- ;
1730
+ /* */
1731
+ /* */
1732
+ const Helpers = HelpersTnp.Instance;
1733
+ ;
1734
1734
  ({}); // @--end-of-file-for-module=tnp-helpers lib/index.ts
1735
1735
 
1736
- /**
1737
- * Generated bundle index. Do not edit.
1736
+ /**
1737
+ * Generated bundle index. Do not edit.
1738
1738
  */
1739
1739
 
1740
1740
  export { BaseComponent, BaseComponentForRouter, BaseFormlyComponent, BaselineSiteJoinprefix, DualComponentController, Helpers, LongPress, PREFIXES, Project, ResizeService, SerializedSubject };