@firestitch/common 8.0.13 → 12.2.0

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 (229) hide show
  1. package/app/directives/autofocus.directive.d.ts +3 -0
  2. package/app/directives/prevent-default.directive.d.ts +3 -0
  3. package/app/directives/stop-propagation.directive.d.ts +3 -0
  4. package/app/fs-common.module.d.ts +14 -0
  5. package/app/pipes/bytes.pipe.d.ts +3 -0
  6. package/app/pipes/currency.pipe.d.ts +3 -0
  7. package/app/pipes/number.pipe.d.ts +3 -0
  8. package/app/pipes/ordinal-number.pipe.d.ts +3 -0
  9. package/app/pipes/truncate.pipe.d.ts +3 -0
  10. package/app/pipes/util.pipe.d.ts +9 -0
  11. package/app/services/array.service.d.ts +3 -0
  12. package/app/services/math.service.d.ts +3 -0
  13. package/app/services/util.service.d.ts +3 -0
  14. package/app/services/vaildate.service.d.ts +3 -0
  15. package/bundles/firestitch-common.umd.js +826 -2452
  16. package/bundles/firestitch-common.umd.js.map +1 -1
  17. package/esm2015/app/directives/autofocus.directive.js +12 -33
  18. package/esm2015/app/directives/prevent-default.directive.js +13 -18
  19. package/esm2015/app/directives/stop-propagation.directive.js +13 -18
  20. package/esm2015/app/fs-common.module.js +65 -44
  21. package/esm2015/app/pipes/bytes.pipe.js +10 -15
  22. package/esm2015/app/pipes/currency.pipe.js +13 -28
  23. package/esm2015/app/pipes/number.pipe.js +10 -16
  24. package/esm2015/app/pipes/ordinal-number.pipe.js +10 -15
  25. package/esm2015/app/pipes/truncate.pipe.js +10 -20
  26. package/esm2015/app/pipes/util.pipe.js +34 -45
  27. package/esm2015/app/services/array.service.js +63 -190
  28. package/esm2015/app/services/math.service.js +9 -17
  29. package/esm2015/app/services/util.service.js +65 -244
  30. package/esm2015/app/services/vaildate.service.js +12 -32
  31. package/esm2015/firestitch-common.js +2 -16
  32. package/esm2015/libs/array/compare/compare.js +1 -12
  33. package/esm2015/libs/array/compare/index.js +2 -7
  34. package/esm2015/libs/array/filter/filter.js +7 -33
  35. package/esm2015/libs/array/filter/index.js +2 -7
  36. package/esm2015/libs/array/find/find.js +1 -12
  37. package/esm2015/libs/array/find/index.js +2 -7
  38. package/esm2015/libs/array/inArray/inArray.js +1 -11
  39. package/esm2015/libs/array/inArray/index.js +2 -7
  40. package/esm2015/libs/array/index/index.js +3 -19
  41. package/esm2015/libs/array/index.js +14 -19
  42. package/esm2015/libs/array/indexOf/index.js +2 -7
  43. package/esm2015/libs/array/indexOf/indexOf.js +3 -18
  44. package/esm2015/libs/array/keyExists/index.js +2 -7
  45. package/esm2015/libs/array/keyExists/keyExists.js +1 -11
  46. package/esm2015/libs/array/ksort/index.js +2 -7
  47. package/esm2015/libs/array/ksort/ksort.js +3 -17
  48. package/esm2015/libs/array/list/index.js +2 -7
  49. package/esm2015/libs/array/list/list.js +3 -20
  50. package/esm2015/libs/array/nameValue/index.js +2 -7
  51. package/esm2015/libs/array/nameValue/nameValue.js +9 -40
  52. package/esm2015/libs/array/remove/index.js +2 -7
  53. package/esm2015/libs/array/remove/remove.js +1 -12
  54. package/esm2015/libs/array/rsort/index.js +2 -7
  55. package/esm2015/libs/array/rsort/rsort.js +1 -11
  56. package/esm2015/libs/array/sort/index.js +2 -7
  57. package/esm2015/libs/array/sort/sort.js +3 -20
  58. package/esm2015/libs/format/acronym/acronym.js +1 -13
  59. package/esm2015/libs/format/acronym/index.js +2 -7
  60. package/esm2015/libs/format/bytes/bytes.js +1 -12
  61. package/esm2015/libs/format/bytes/index.js +2 -7
  62. package/esm2015/libs/format/currency/currency.js +2 -16
  63. package/esm2015/libs/format/currency/index.js +2 -7
  64. package/esm2015/libs/format/index.js +6 -11
  65. package/esm2015/libs/format/number/index.js +2 -7
  66. package/esm2015/libs/format/number/number.js +1 -11
  67. package/esm2015/libs/format/truncate/index.js +2 -7
  68. package/esm2015/libs/format/truncate/truncate.js +1 -14
  69. package/esm2015/libs/index.js +5 -10
  70. package/esm2015/libs/rxjs/delayedRetry.js +5 -43
  71. package/esm2015/libs/util/boolean/boolean.js +2 -12
  72. package/esm2015/libs/util/boolean/index.js +2 -7
  73. package/esm2015/libs/util/debounce/debounce.js +6 -29
  74. package/esm2015/libs/util/debounce/index.js +2 -7
  75. package/esm2015/libs/util/get-normalized-path/get-normalized-path.js +1 -11
  76. package/esm2015/libs/util/get-normalized-path/index.js +1 -6
  77. package/esm2015/libs/util/guid/guid.js +3 -20
  78. package/esm2015/libs/util/guid/index.js +2 -7
  79. package/esm2015/libs/util/index.js +19 -23
  80. package/esm2015/libs/util/isClass/index.js +2 -7
  81. package/esm2015/libs/util/isClass/isClass.js +1 -11
  82. package/esm2015/libs/util/isEmpty/index.js +2 -7
  83. package/esm2015/libs/util/isEmpty/isEmpty.js +4 -15
  84. package/esm2015/libs/util/isNumeric/index.js +2 -7
  85. package/esm2015/libs/util/isNumeric/isNumeric.js +2 -13
  86. package/esm2015/libs/util/keys/index.js +2 -7
  87. package/esm2015/libs/util/keys/keys.js +1 -43
  88. package/esm2015/libs/util/length/index.js +2 -7
  89. package/esm2015/libs/util/length/length.js +5 -15
  90. package/esm2015/libs/util/ordinal-number/ordinal-number.js +1 -13
  91. package/esm2015/libs/util/queue/index.js +2 -7
  92. package/esm2015/libs/util/queue/operation.js +1 -18
  93. package/esm2015/libs/util/queue/queue.enum.js +6 -12
  94. package/esm2015/libs/util/queue/queue.js +14 -168
  95. package/esm2015/libs/util/remove-query-params/index.js +1 -6
  96. package/esm2015/libs/util/remove-query-params/remove-query-params.js +1 -10
  97. package/esm2015/libs/util/resolve/index.js +2 -7
  98. package/esm2015/libs/util/resolve/resolve.js +6 -29
  99. package/esm2015/libs/util/round/index.js +2 -0
  100. package/esm2015/libs/util/round/round.js +5 -0
  101. package/esm2015/libs/util/stringify/index.js +2 -7
  102. package/esm2015/libs/util/stringify/stringify.js +1 -10
  103. package/esm2015/libs/util/throttle/index.js +2 -7
  104. package/esm2015/libs/util/throttle/throttle.js +6 -23
  105. package/esm2015/libs/util/uuid/index.js +2 -7
  106. package/esm2015/libs/util/uuid/uuid.js +1 -9
  107. package/esm2015/libs/util/value/index.js +2 -7
  108. package/esm2015/libs/util/value/value.js +1 -12
  109. package/esm2015/libs/validate/email/email.js +1 -10
  110. package/esm2015/libs/validate/email/index.js +2 -7
  111. package/esm2015/libs/validate/index.js +4 -9
  112. package/esm2015/libs/validate/phone/index.js +2 -7
  113. package/esm2015/libs/validate/phone/phone.js +1 -11
  114. package/esm2015/libs/validate/url/index.js +2 -7
  115. package/esm2015/libs/validate/url/url.js +1 -12
  116. package/esm2015/public_api.js +11 -7
  117. package/fesm2015/firestitch-common.js +430 -1816
  118. package/fesm2015/firestitch-common.js.map +1 -1
  119. package/firestitch-common.d.ts +1 -9
  120. package/libs/util/index.d.ts +4 -3
  121. package/libs/util/length/length.d.ts +1 -1
  122. package/libs/util/queue/queue.d.ts +9 -9
  123. package/libs/util/round/index.d.ts +1 -0
  124. package/libs/util/round/round.d.ts +1 -0
  125. package/package.json +7 -11
  126. package/public_api.d.ts +9 -0
  127. package/bundles/firestitch-common.umd.min.js +0 -16
  128. package/bundles/firestitch-common.umd.min.js.map +0 -1
  129. package/esm5/app/directives/autofocus.directive.js +0 -45
  130. package/esm5/app/directives/prevent-default.directive.js +0 -32
  131. package/esm5/app/directives/stop-propagation.directive.js +0 -32
  132. package/esm5/app/fs-common.module.js +0 -79
  133. package/esm5/app/pipes/bytes.pipe.js +0 -30
  134. package/esm5/app/pipes/currency.pipe.js +0 -43
  135. package/esm5/app/pipes/number.pipe.js +0 -32
  136. package/esm5/app/pipes/ordinal-number.pipe.js +0 -30
  137. package/esm5/app/pipes/truncate.pipe.js +0 -38
  138. package/esm5/app/pipes/util.pipe.js +0 -100
  139. package/esm5/app/services/array.service.js +0 -491
  140. package/esm5/app/services/math.service.js +0 -42
  141. package/esm5/app/services/util.service.js +0 -608
  142. package/esm5/app/services/vaildate.service.js +0 -63
  143. package/esm5/firestitch-common.js +0 -19
  144. package/esm5/libs/array/compare/compare.js +0 -19
  145. package/esm5/libs/array/compare/index.js +0 -7
  146. package/esm5/libs/array/filter/filter.js +0 -53
  147. package/esm5/libs/array/filter/index.js +0 -7
  148. package/esm5/libs/array/find/find.js +0 -17
  149. package/esm5/libs/array/find/index.js +0 -7
  150. package/esm5/libs/array/inArray/inArray.js +0 -22
  151. package/esm5/libs/array/inArray/index.js +0 -7
  152. package/esm5/libs/array/index/index.js +0 -25
  153. package/esm5/libs/array/index.js +0 -19
  154. package/esm5/libs/array/indexOf/index.js +0 -7
  155. package/esm5/libs/array/indexOf/indexOf.js +0 -31
  156. package/esm5/libs/array/keyExists/index.js +0 -7
  157. package/esm5/libs/array/keyExists/keyExists.js +0 -14
  158. package/esm5/libs/array/ksort/index.js +0 -7
  159. package/esm5/libs/array/ksort/ksort.js +0 -22
  160. package/esm5/libs/array/list/index.js +0 -7
  161. package/esm5/libs/array/list/list.js +0 -31
  162. package/esm5/libs/array/nameValue/index.js +0 -7
  163. package/esm5/libs/array/nameValue/nameValue.js +0 -52
  164. package/esm5/libs/array/remove/index.js +0 -7
  165. package/esm5/libs/array/remove/remove.js +0 -20
  166. package/esm5/libs/array/rsort/index.js +0 -7
  167. package/esm5/libs/array/rsort/rsort.js +0 -15
  168. package/esm5/libs/array/sort/index.js +0 -7
  169. package/esm5/libs/array/sort/sort.js +0 -45
  170. package/esm5/libs/format/acronym/acronym.js +0 -35
  171. package/esm5/libs/format/acronym/index.js +0 -7
  172. package/esm5/libs/format/bytes/bytes.js +0 -23
  173. package/esm5/libs/format/bytes/index.js +0 -7
  174. package/esm5/libs/format/currency/currency.js +0 -23
  175. package/esm5/libs/format/currency/index.js +0 -7
  176. package/esm5/libs/format/index.js +0 -11
  177. package/esm5/libs/format/number/index.js +0 -7
  178. package/esm5/libs/format/number/number.js +0 -14
  179. package/esm5/libs/format/truncate/index.js +0 -7
  180. package/esm5/libs/format/truncate/truncate.js +0 -28
  181. package/esm5/libs/index.js +0 -11
  182. package/esm5/libs/rxjs/delayedRetry.js +0 -65
  183. package/esm5/libs/util/boolean/boolean.js +0 -14
  184. package/esm5/libs/util/boolean/index.js +0 -7
  185. package/esm5/libs/util/debounce/debounce.js +0 -40
  186. package/esm5/libs/util/debounce/index.js +0 -7
  187. package/esm5/libs/util/get-normalized-path/get-normalized-path.js +0 -16
  188. package/esm5/libs/util/get-normalized-path/index.js +0 -7
  189. package/esm5/libs/util/guid/guid.js +0 -37
  190. package/esm5/libs/util/guid/index.js +0 -7
  191. package/esm5/libs/util/index.js +0 -23
  192. package/esm5/libs/util/isClass/index.js +0 -7
  193. package/esm5/libs/util/isClass/isClass.js +0 -28
  194. package/esm5/libs/util/isEmpty/index.js +0 -7
  195. package/esm5/libs/util/isEmpty/isEmpty.js +0 -23
  196. package/esm5/libs/util/isNumeric/index.js +0 -7
  197. package/esm5/libs/util/isNumeric/isNumeric.js +0 -16
  198. package/esm5/libs/util/keys/index.js +0 -7
  199. package/esm5/libs/util/keys/keys.js +0 -80
  200. package/esm5/libs/util/length/index.js +0 -7
  201. package/esm5/libs/util/length/length.js +0 -20
  202. package/esm5/libs/util/ordinal-number/ordinal-number.js +0 -22
  203. package/esm5/libs/util/queue/index.js +0 -8
  204. package/esm5/libs/util/queue/operation.js +0 -30
  205. package/esm5/libs/util/queue/queue.enum.js +0 -12
  206. package/esm5/libs/util/queue/queue.js +0 -367
  207. package/esm5/libs/util/remove-query-params/index.js +0 -7
  208. package/esm5/libs/util/remove-query-params/remove-query-params.js +0 -13
  209. package/esm5/libs/util/resolve/index.js +0 -7
  210. package/esm5/libs/util/resolve/resolve.js +0 -34
  211. package/esm5/libs/util/stringify/index.js +0 -7
  212. package/esm5/libs/util/stringify/stringify.js +0 -13
  213. package/esm5/libs/util/throttle/index.js +0 -7
  214. package/esm5/libs/util/throttle/throttle.js +0 -30
  215. package/esm5/libs/util/uuid/index.js +0 -7
  216. package/esm5/libs/util/uuid/uuid.js +0 -13
  217. package/esm5/libs/util/value/index.js +0 -7
  218. package/esm5/libs/util/value/value.js +0 -20
  219. package/esm5/libs/validate/email/email.js +0 -13
  220. package/esm5/libs/validate/email/index.js +0 -7
  221. package/esm5/libs/validate/index.js +0 -9
  222. package/esm5/libs/validate/phone/index.js +0 -7
  223. package/esm5/libs/validate/phone/phone.js +0 -15
  224. package/esm5/libs/validate/url/index.js +0 -7
  225. package/esm5/libs/validate/url/url.js +0 -23
  226. package/esm5/public_api.js +0 -17
  227. package/fesm5/firestitch-common.js +0 -3285
  228. package/fesm5/firestitch-common.js.map +0 -1
  229. package/firestitch-common.metadata.json +0 -1
@@ -1,68 +1,35 @@
1
- import { Injectable, Pipe, Inject, LOCALE_ID, Directive, HostListener, ElementRef, NgModule } from '@angular/core';
1
+ import * as i0 from '@angular/core';
2
+ import { Injectable, Pipe, LOCALE_ID, Inject, Directive, HostListener, NgModule } from '@angular/core';
2
3
  import { CurrencyPipe, CommonModule } from '@angular/common';
3
- import { toString, isObject, isArray } from 'lodash-es';
4
4
  import { Subject, Observable, of, iif, throwError, timer } from 'rxjs';
5
5
  import { takeUntil, delay, retryWhen, tap, concatMap } from 'rxjs/operators';
6
6
 
7
- /**
8
- * @fileoverview added by tsickle
9
- * Generated from: app/services/array.service.ts
10
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
11
- */
12
7
  class FsArray {
13
8
  /**
14
- * @deprecated use import { nameValue } from \@firestitch/common/array; instead
15
- * @param {?} array
16
- * @param {?} name
17
- * @param {?} value
18
- * @return {?}
19
- */
9
+ * @deprecated use import { nameValue } from @firestitch/common/array; instead
10
+ */
20
11
  nameValue(array, name, value) {
21
12
  console.warn('@deprecated use import { nameValue } from @firestitch/common/array; instead');
22
- /** @type {?} */
23
13
  let list = [];
24
14
  if (name || value) {
25
- /** @type {?} */
26
- let nameFn = typeof name === 'function' ? name : (/**
27
- * @param {?} item
28
- * @return {?}
29
- */
30
- function (item) { return item[name]; });
31
- /** @type {?} */
32
- let valueFn = typeof value === 'function' ? value : (/**
33
- * @param {?} item
34
- * @return {?}
35
- */
36
- function (item) { return item[value]; });
37
- array.forEach((/**
38
- * @param {?} item
39
- * @return {?}
40
- */
41
- function (item) {
15
+ let nameFn = typeof name === 'function' ? name : function (item) { return item[name]; };
16
+ let valueFn = typeof value === 'function' ? value : function (item) { return item[value]; };
17
+ array.forEach(function (item) {
42
18
  list.push({ name: nameFn(item), value: valueFn(item) });
43
- }));
19
+ });
44
20
  }
45
21
  else {
46
- array.forEach((/**
47
- * @param {?} name
48
- * @param {?} value
49
- * @return {?}
50
- */
51
- function (name, value) {
22
+ array.forEach(function (name, value) {
52
23
  list.push({ name: name, value: value });
53
- }));
24
+ });
54
25
  }
55
26
  return list;
56
27
  }
57
28
  /**
58
- * @deprecated use import { remove } from \@firestitch/common/array; instead
59
- * @param {?} array
60
- * @param {?} query
61
- * @return {?}
62
- */
29
+ * @deprecated use import { remove } from @firestitch/common/array; instead
30
+ */
63
31
  remove(array, query) {
64
32
  console.warn('@deprecated use import { remove } from @firestitch/common/array; instead');
65
- /** @type {?} */
66
33
  let idx = this.indexOf(array, query);
67
34
  if (idx >= 0) {
68
35
  return array.splice(idx, 1);
@@ -70,23 +37,15 @@ class FsArray {
70
37
  return idx;
71
38
  }
72
39
  /**
73
- * @deprecated use import { indexOf } from \@firestitch/common/array; instead
74
- * @param {?} array
75
- * @param {?} query
76
- * @return {?}
77
- */
40
+ * @deprecated use import { indexOf } from @firestitch/common/array; instead
41
+ */
78
42
  indexOf(array, query) {
79
43
  console.warn('@deprecated use import { indexOf } from @firestitch/common/array; instead');
80
44
  if (typeof query !== 'function') {
81
- /** @type {?} */
82
45
  let queryObj = query;
83
- query = (/**
84
- * @param {?} item
85
- * @return {?}
86
- */
87
- (item) => {
46
+ query = (item) => {
88
47
  return this.compare(queryObj, item);
89
- });
48
+ };
90
49
  }
91
50
  for (let i = 0, len = array.length; i < len; i++) {
92
51
  if (query(array[i])) {
@@ -96,14 +55,10 @@ class FsArray {
96
55
  return -1;
97
56
  }
98
57
  /**
99
- * @deprecated use import { compare } from \@firestitch/common/array; instead
100
- * @param {?} query
101
- * @param {?} item
102
- * @return {?}
103
- */
58
+ * @deprecated use import { compare } from @firestitch/common/array; instead
59
+ */
104
60
  compare(query, item) {
105
61
  console.warn('@deprecated use import { compare } from @firestitch/common/array; instead');
106
- /** @type {?} */
107
62
  let value = true;
108
63
  for (let key in query) {
109
64
  value = value && item[key] == query[key];
@@ -111,89 +66,51 @@ class FsArray {
111
66
  return value;
112
67
  }
113
68
  /**
114
- * @deprecated use import { filter } from \@firestitch/common/array; instead
115
- * @param {?} array
116
- * @param {?} query
117
- * @return {?}
118
- */
69
+ * @deprecated use import { filter } from @firestitch/common/array; instead
70
+ */
119
71
  filter(array, query) {
120
72
  console.warn('@deprecated use import { filter } from @firestitch/common/array; instead');
121
73
  if (typeof query !== 'function') {
122
- /** @type {?} */
123
74
  let queryObj = query;
124
- query = (/**
125
- * @param {?} item
126
- * @return {?}
127
- */
128
- (item) => {
75
+ query = (item) => {
129
76
  return this.compare(queryObj, item);
130
- });
77
+ };
131
78
  }
132
- /** @type {?} */
133
79
  let isarray = Array.isArray(array);
134
- /** @type {?} */
135
80
  let list = isarray ? [] : {};
136
81
  if (isarray)
137
- array.forEach((/**
138
- * @param {?} item
139
- * @param {?} idx
140
- * @return {?}
141
- */
142
- function (item, idx) {
82
+ array.forEach(function (item, idx) {
143
83
  if (query(item)) {
144
84
  list.push(item);
145
85
  }
146
- }));
86
+ });
147
87
  else
148
- Object.keys(array).forEach((/**
149
- * @param {?} key
150
- * @return {?}
151
- */
152
- key => {
88
+ Object.keys(array).forEach(key => {
153
89
  if (query(array[key])) {
154
90
  list[key] = array[key];
155
91
  }
156
- }));
92
+ });
157
93
  return list;
158
94
  }
159
95
  /**
160
- * @deprecated use import { index } from \@firestitch/common/array; instead
161
- * @param {?} array
162
- * @param {?} property
163
- * @return {?}
164
- */
96
+ * @deprecated use import { index } from @firestitch/common/array; instead
97
+ */
165
98
  index(array, property) {
166
99
  console.warn('@deprecated use import { index } from @firestitch/common/array; instead');
167
- /** @type {?} */
168
100
  let list = {};
169
- array.forEach((/**
170
- * @param {?} item
171
- * @param {?} idx
172
- * @return {?}
173
- */
174
- function (item, idx) {
101
+ array.forEach(function (item, idx) {
175
102
  list[item[property]] = item;
176
- }));
103
+ });
177
104
  return list;
178
105
  }
179
106
  /**
180
- * @deprecated use import { sort } from \@firestitch/common/array; instead
181
- * @param {?} array
182
- * @param {?} query
183
- * @param {?=} reverse
184
- * @return {?}
185
- */
107
+ * @deprecated use import { sort } from @firestitch/common/array; instead
108
+ */
186
109
  sort(array, query, reverse = false) {
187
110
  console.warn('@deprecated use import { sort } from @firestitch/common/array; instead');
188
111
  if (typeof query !== 'function') {
189
- /** @type {?} */
190
112
  let queryStr = query;
191
- query = (/**
192
- * @param {?} a
193
- * @param {?} b
194
- * @return {?}
195
- */
196
- function (a, b) {
113
+ query = function (a, b) {
197
114
  if (reverse) {
198
115
  if (a[queryStr] < b[queryStr]) {
199
116
  return 1;
@@ -211,96 +128,61 @@ class FsArray {
211
128
  }
212
129
  }
213
130
  return 0;
214
- });
131
+ };
215
132
  }
216
133
  array.sort(query);
217
134
  return array;
218
135
  }
219
136
  /**
220
- * @deprecated use import { rsort } from \@firestitch/common/array; instead
221
- * @param {?} array
222
- * @param {?} query
223
- * @return {?}
224
- */
137
+ * @deprecated use import { rsort } from @firestitch/common/array; instead
138
+ */
225
139
  rsort(array, query) {
226
140
  console.warn('@deprecated use import { rsort } from @firestitch/common/array; instead');
227
141
  return this.sort(array, query, true);
228
142
  }
229
143
  /**
230
- * @deprecated use import { list } from \@firestitch/common/array; instead
231
- * @param {?} array
232
- * @param {?} property
233
- * @param {?=} index
234
- * @return {?}
235
- */
144
+ * @deprecated use import { list } from @firestitch/common/array; instead
145
+ */
236
146
  list(array, property, index = null) {
237
147
  console.warn('@deprecated use import { list } from @firestitch/common/array; instead');
238
- /** @type {?} */
239
148
  let list = index ? {} : [];
240
- array.forEach((/**
241
- * @param {?} item
242
- * @param {?} idx
243
- * @return {?}
244
- */
245
- function (item, idx) {
149
+ array.forEach(function (item, idx) {
246
150
  if (index) {
247
151
  list[item[index]] = item[property];
248
152
  }
249
153
  else {
250
154
  list.push(item[property]);
251
155
  }
252
- }));
156
+ });
253
157
  return list;
254
158
  }
255
159
  /**
256
- * @deprecated use import { applyDepth } from \@firestitch/common/array; instead
257
- * @param {?} objects
258
- * @param {?} parent_property
259
- * @param {?=} id_property
260
- * @param {?=} depth_property
261
- * @return {?}
262
- */
160
+ * @deprecated use import { applyDepth } from @firestitch/common/array; instead
161
+ */
263
162
  applyDepth(objects, parent_property, id_property = 'id', depth_property = 'depth') {
264
163
  console.warn('@deprecated use import { applyDepth } from @firestitch/common/array; instead');
265
- /** @type {?} */
266
164
  let keyed = {};
267
- objects.forEach((/**
268
- * @param {?} object
269
- * @return {?}
270
- */
271
- function (object) {
165
+ objects.forEach(function (object) {
272
166
  if (!object[parent_property]) {
273
167
  object[depth_property] = 0;
274
168
  }
275
169
  keyed[object[id_property]] = object;
276
- }));
277
- Object.keys(keyed).forEach((/**
278
- * @param {?} key
279
- * @return {?}
280
- */
281
- key => {
282
- Object.keys(keyed).forEach((/**
283
- * @param {?} key
284
- * @return {?}
285
- */
286
- key => {
287
- /** @type {?} */
170
+ });
171
+ Object.keys(keyed).forEach(key => {
172
+ Object.keys(keyed).forEach(key => {
288
173
  let object = keyed[key];
289
174
  if (!keyed[key][depth_property]) {
290
175
  if (keyed[key][parent_property]) {
291
176
  keyed[key][depth_property] = keyed[keyed[key][parent_property]][depth_property] + 1;
292
177
  }
293
178
  }
294
- }));
295
- }));
179
+ });
180
+ });
296
181
  return keyed;
297
182
  }
298
183
  /**
299
- * @deprecated use import { inArray } from \@firestitch/common/array; instead
300
- * @param {?} values
301
- * @param {?} array
302
- * @return {?}
303
- */
184
+ * @deprecated use import { inArray } from @firestitch/common/array; instead
185
+ */
304
186
  inArray(values, array) {
305
187
  console.warn('@deprecated use import { inArray } from @firestitch/common/array; instead');
306
188
  if (!Array.isArray(values)) {
@@ -314,154 +196,57 @@ class FsArray {
314
196
  return false;
315
197
  }
316
198
  /**
317
- * @deprecated use import { keyExists } from \@firestitch/common/array; instead
318
- * @param {?} array
319
- * @param {?} key
320
- * @return {?}
321
- */
199
+ * @deprecated use import { keyExists } from @firestitch/common/array; instead
200
+ */
322
201
  keyExists(array, key) {
323
202
  console.warn('@deprecated use import { keyExists } from @firestitch/common/array; instead');
324
203
  return array.hasOwnProperty(key);
325
204
  }
326
205
  /**
327
- * @deprecated use import { length } from \@firestitch/common/array; instead
328
- * @param {?} array
329
- * @return {?}
330
- */
206
+ * @deprecated use import { length } from @firestitch/common/array; instead
207
+ */
331
208
  length(array) {
332
209
  console.warn('@deprecated use import { length } from @firestitch/common/array; instead');
333
210
  return array.length;
334
211
  }
335
212
  /**
336
- * @deprecated use import { ksort } from \@firestitch/common/array; instead
337
- * @param {?} unordered
338
- * @return {?}
339
- */
213
+ * @deprecated use import { ksort } from @firestitch/common/array; instead
214
+ */
340
215
  ksort(unordered) {
341
216
  console.warn('@deprecated use import { ksort } from @firestitch/common/array; instead');
342
- Object.keys(unordered).sort().forEach((/**
343
- * @param {?} key
344
- * @return {?}
345
- */
346
- function (key) {
347
- /** @type {?} */
217
+ Object.keys(unordered).sort().forEach(function (key) {
348
218
  let value = unordered[key];
349
219
  delete unordered[key];
350
220
  unordered[key] = value;
351
- }));
221
+ });
352
222
  }
353
223
  }
354
- FsArray.decorators = [
355
- { type: Injectable }
356
- ];
224
+ FsArray.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsArray, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
225
+ FsArray.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsArray });
226
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsArray, decorators: [{
227
+ type: Injectable
228
+ }] });
357
229
 
358
- /**
359
- * @fileoverview added by tsickle
360
- * Generated from: app/services/math.service.ts
361
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
362
- */
363
230
  class FsMath {
364
231
  /**
365
- * @deprecated use _.round() instead {\@link https://lodash.com/docs/4.17.5#round}
366
- * @param {?} number
367
- * @param {?} precision
368
- * @return {?}
369
- */
232
+ * @deprecated use _.round() instead {@link https://lodash.com/docs/4.17.5#round}
233
+ */
370
234
  round(number, precision) {
371
235
  console.warn('@deprecated use _.round() instead {@link https://lodash.com/docs/4.17.5#round}');
372
236
  precision = precision || 0;
373
- /** @type {?} */
374
237
  let factor = Math.pow(10, precision);
375
- /** @type {?} */
376
238
  let tempNumber = number * factor;
377
- /** @type {?} */
378
239
  let roundedTempNumber = Math.round(tempNumber);
379
240
  return roundedTempNumber / factor;
380
241
  }
381
242
  }
382
- FsMath.decorators = [
383
- { type: Injectable }
384
- ];
243
+ FsMath.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsMath, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
244
+ FsMath.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsMath });
245
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsMath, decorators: [{
246
+ type: Injectable
247
+ }] });
385
248
 
386
- /**
387
- * @fileoverview added by tsickle
388
- * Generated from: app/services/util.service.ts
389
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
390
- */
391
- /** @type {?} */
392
- const KEY_CANCEL = 3;
393
- /** @type {?} */
394
- const KEY_HELP = 6;
395
- /** @type {?} */
396
- const KEY_BACKSPACE = 8;
397
- /** @type {?} */
398
- const KEY_TAB = 9;
399
- /** @type {?} */
400
- const KEY_CLEAR = 12;
401
- /** @type {?} */
402
- const KEY_RETURN = 13;
403
- /** @type {?} */
404
- const KEY_ENTER = 14;
405
- /** @type {?} */
406
- const KEY_SHIFT = 16;
407
- /** @type {?} */
408
- const KEY_CONTROL = 17;
409
- /** @type {?} */
410
- const KEY_ALT = 18;
411
- /** @type {?} */
412
- const KEY_PAUSE = 19;
413
- /** @type {?} */
414
- const KEY_CAPS_LOCK = 20;
415
- /** @type {?} */
416
- const KEY_ESCAPE = 27;
417
- /** @type {?} */
418
- const KEY_SPACE = 32;
419
- /** @type {?} */
420
- const KEY_PAGE_UP = 33;
421
- /** @type {?} */
422
- const KEY_PAGE_DOWN = 34;
423
- /** @type {?} */
424
- const KEY_END = 35;
425
- /** @type {?} */
426
- const KEY_HOME = 36;
427
- /** @type {?} */
428
- const KEY_LEFT = 37;
429
- /** @type {?} */
430
- const KEY_UP = 38;
431
- /** @type {?} */
432
- const KEY_RIGHT = 39;
433
- /** @type {?} */
434
- const KEY_DOWN = 40;
435
- /** @type {?} */
436
- const KEY_PRINTSCREEN = 44;
437
- /** @type {?} */
438
- const KEY_INSERT = 45;
439
- /** @type {?} */
440
- const KEY_DELETE = 46;
441
- /** @type {?} */
442
- const KEY_0 = 48;
443
- /** @type {?} */
444
- const KEY_1 = 49;
445
- /** @type {?} */
446
- const KEY_2 = 50;
447
- /** @type {?} */
448
- const KEY_3 = 51;
449
- /** @type {?} */
450
- const KEY_4 = 52;
451
- /** @type {?} */
452
- const KEY_5 = 53;
453
- /** @type {?} */
454
- const KEY_6 = 54;
455
- /** @type {?} */
456
- const KEY_7 = 55;
457
- /** @type {?} */
458
- const KEY_8 = 56;
459
- /** @type {?} */
460
- const KEY_9 = 57;
461
- /** @type {?} */
462
- const KEY_SEMICOLON = 59;
463
- /** @type {?} */
464
- const KEY_EQUALS = 61;
249
+ const KEY_CANCEL$1 = 3, KEY_HELP$1 = 6, KEY_BACKSPACE$1 = 8, KEY_TAB$1 = 9, KEY_CLEAR$1 = 12, KEY_RETURN$1 = 13, KEY_ENTER$1 = 14, KEY_SHIFT$1 = 16, KEY_CONTROL$1 = 17, KEY_ALT$1 = 18, KEY_PAUSE$1 = 19, KEY_CAPS_LOCK$1 = 20, KEY_ESCAPE$1 = 27, KEY_SPACE$1 = 32, KEY_PAGE_UP$1 = 33, KEY_PAGE_DOWN$1 = 34, KEY_END$1 = 35, KEY_HOME$1 = 36, KEY_LEFT$1 = 37, KEY_UP$1 = 38, KEY_RIGHT$1 = 39, KEY_DOWN$1 = 40, KEY_PRINTSCREEN$1 = 44, KEY_INSERT$1 = 45, KEY_DELETE$1 = 46, KEY_0$1 = 48, KEY_1$1 = 49, KEY_2$1 = 50, KEY_3$1 = 51, KEY_4$1 = 52, KEY_5$1 = 53, KEY_6$1 = 54, KEY_7$1 = 55, KEY_8$1 = 56, KEY_9$1 = 57, KEY_SEMICOLON$1 = 59, KEY_EQUALS$1 = 61;
465
250
  /*
466
251
  Basically, just copy-pasted functionality from fs-boilerplate v1.x, with some small changes (like we dont have angular.bind anymore, had to go with a workaround)
467
252
  There might be a better way to organise constatns but I need to know use-cases
@@ -471,67 +256,39 @@ class FsUtil {
471
256
  this.intervals = {};
472
257
  }
473
258
  /**
474
- * @deprecated use \@firestitch/common/util/guid instead
475
- * @param {?=} pattern
476
- * @return {?}
477
- */
259
+ * @deprecated use @firestitch/common/util/guid instead
260
+ */
478
261
  guid(pattern) {
479
262
  console.warn('@deprecated use @firestitch/common/util/guid instead');
480
263
  pattern = pattern || 'xxxxxx';
481
- return pattern.replace(/[xy]/g, (/**
482
- * @param {?} c
483
- * @return {?}
484
- */
485
- function (c) {
486
- /** @type {?} */
487
- var r = Math.random() * 16 | 0;
488
- /** @type {?} */
489
- var v = c == 'x' ? r : (r & 0x3 | 0x8);
264
+ return pattern.replace(/[xy]/g, function (c) {
265
+ var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
490
266
  return v.toString(16);
491
- }));
267
+ });
492
268
  }
493
269
  /**
494
- * @deprecated use import { uuid } from \@firestitch/common/util; instead
495
- * @return {?}
496
- */
270
+ * @deprecated use import { uuid } from @firestitch/common/util; instead
271
+ */
497
272
  uuid() {
498
273
  console.warn('@deprecated use @firestitch/common/util/uuid instead');
499
274
  return this.guid('xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx');
500
275
  }
501
276
  /**
502
- * @deprecated use import { resolve } from \@firestitch/common/util; instead
503
- * @param {?} promise
504
- * @param {?=} defaults
505
- * @return {?}
506
- */
277
+ * @deprecated use import { resolve } from @firestitch/common/util; instead
278
+ */
507
279
  resolve(promise, defaults = []) {
508
280
  console.warn('@deprecated use @firestitch/common/util/resolve instead');
509
- /** @type {?} */
510
281
  const result = defaults;
511
- return new Promise((/**
512
- * @param {?} resolve
513
- * @return {?}
514
- */
515
- resolve => {
516
- promise.then((/**
517
- * @param {?} data
518
- * @return {?}
519
- */
520
- function (data) {
521
- Object.keys(data).forEach((/**
522
- * @param {?} key
523
- * @return {?}
524
- */
525
- key => result[key] = data[key]));
282
+ return new Promise(resolve => {
283
+ promise.then(function (data) {
284
+ Object.keys(data).forEach(key => result[key] = data[key]);
526
285
  resolve(result);
527
- }));
528
- }));
286
+ });
287
+ });
529
288
  }
530
289
  /**
531
290
  * @deprecated use _.toInteger() instead
532
- * @param {?} value
533
- * @return {?}
534
- */
291
+ */
535
292
  int(value) {
536
293
  console.warn('@deprecated use _.toInteger() instead');
537
294
  value = parseInt(value);
@@ -542,9 +299,7 @@ class FsUtil {
542
299
  }
543
300
  /**
544
301
  * @deprecated use _.toFinite() instead
545
- * @param {?} value
546
- * @return {?}
547
- */
302
+ */
548
303
  float(value) {
549
304
  console.warn('@deprecated use _.toFinite() instead');
550
305
  value = parseFloat(value);
@@ -555,9 +310,7 @@ class FsUtil {
555
310
  }
556
311
  /**
557
312
  * @deprecated use _.toString() instead
558
- * @param {?} string
559
- * @return {?}
560
- */
313
+ */
561
314
  string(string) {
562
315
  console.warn('@deprecated use _.toString() instead');
563
316
  if (string === null || string === undefined) {
@@ -566,11 +319,8 @@ class FsUtil {
566
319
  return (string).toString();
567
320
  }
568
321
  /**
569
- * @deprecated use import { isEmpty } from \@firestitch/common/util; instead
570
- * @param {?} value
571
- * @param {?=} options
572
- * @return {?}
573
- */
322
+ * @deprecated use import { isEmpty } from @firestitch/common/util; instead
323
+ */
574
324
  isEmpty(value, options) {
575
325
  console.warn('@deprecated use import { isEmpty } from @firestitch/common/util; instead');
576
326
  options = options || {};
@@ -585,13 +335,9 @@ class FsUtil {
585
335
  }
586
336
  /**
587
337
  * @deprecated use _.isInteger() instead
588
- * @param {?} value
589
- * @param {?=} type
590
- * @return {?}
591
- */
338
+ */
592
339
  isInt(value, type) {
593
340
  console.warn('@deprecated use _.isInteger() instead');
594
- /** @type {?} */
595
341
  const int = !!this.string(value).match(/^\d+$/);
596
342
  if (!int) {
597
343
  return false;
@@ -602,67 +348,49 @@ class FsUtil {
602
348
  return true;
603
349
  }
604
350
  /**
605
- * @deprecated use _.each() instead {\@link https://lodash.com/docs/4.17.5#forEach}
606
- * @param {?} object
607
- * @param {?} func
608
- * @return {?}
609
- */
351
+ * @deprecated use _.each() instead {@link https://lodash.com/docs/4.17.5#forEach}
352
+ */
610
353
  each(object, func) {
611
354
  console.warn('@deprecated use _.each() instead {@link https://lodash.com/docs/4.17.5#forEach}');
612
355
  if (!this.isArray(object) && !this.isObject(object)) {
613
356
  return;
614
357
  }
615
- Object.keys(object).forEach((/**
616
- * @param {?} key
617
- * @return {?}
618
- */
619
- function (key) {
358
+ Object.keys(object).forEach(function (key) {
620
359
  func(object[key], key);
621
- }));
360
+ });
622
361
  }
623
362
  /**
624
- * @deprecated use _.isArrayLikeObject() {\@link https://lodash.com/docs/4.17.5#isArrayLikeObject}
625
- * or _.isObject() {\@link https://lodash.com/docs/4.17.5#isObject} instead
626
- * @param {?} value
627
- * @return {?}
628
- */
363
+ * @deprecated use _.isArrayLikeObject() {@link https://lodash.com/docs/4.17.5#isArrayLikeObject}
364
+ * or _.isObject() {@link https://lodash.com/docs/4.17.5#isObject} instead
365
+ */
629
366
  isObject(value) {
630
367
  console.warn('@deprecated use _.isArrayLikeObject() {@link https://lodash.com/docs/4.17.5#isArrayLikeObject} or _.isObject() {@link https://lodash.com/docs/4.17.5#isObject} instead');
631
368
  return value !== null && typeof value === 'object' && !this.isArray(value);
632
369
  }
633
370
  /**
634
- * @deprecated use _.isString() instead {\@link https://lodash.com/docs/4.17.5#isString}
635
- * @param {?} value
636
- * @return {?}
637
- */
371
+ * @deprecated use _.isString() instead {@link https://lodash.com/docs/4.17.5#isString}
372
+ */
638
373
  isString(value) {
639
374
  console.warn('@deprecated use _.isString() instead {@link https://lodash.com/docs/4.17.5#isString}');
640
375
  return typeof value === 'string' || value instanceof String;
641
376
  }
642
377
  /**
643
- * @deprecated use _.isArray() instead {\@link https://lodash.com/docs/4.17.5#isArray}
644
- * @param {?} value
645
- * @return {?}
646
- */
378
+ * @deprecated use _.isArray() instead {@link https://lodash.com/docs/4.17.5#isArray}
379
+ */
647
380
  isArray(value) {
648
381
  console.warn('@deprecated use _.isArray() instead {@link https://lodash.com/docs/4.17.5#isArray}');
649
382
  return value instanceof Array;
650
383
  }
651
384
  /**
652
- * @deprecated use import { isNumeric } from \@firestitch/common/util; instead
653
- * @param {?} value
654
- * @return {?}
655
- */
385
+ * @deprecated use import { isNumeric } from @firestitch/common/util; instead
386
+ */
656
387
  isNumeric(value) {
657
388
  console.warn('@deprecated use import { isNumeric } from @firestitch/common/util; instead');
658
389
  return this.string(value).length && !!this.string(value).match(/^-?\d*\.?\d*$/);
659
390
  }
660
391
  /**
661
- * @deprecated use import { isClass } from \@firestitch/common/util; instead
662
- * @param {?} value
663
- * @param {?} cls
664
- * @return {?}
665
- */
392
+ * @deprecated use import { isClass } from @firestitch/common/util; instead
393
+ */
666
394
  isClass(value, cls) {
667
395
  console.warn('@deprecated use import { isClass } from @firestitch/common/util; instead');
668
396
  if (this.isObject(value)) {
@@ -682,21 +410,15 @@ class FsUtil {
682
410
  return false;
683
411
  }
684
412
  /**
685
- * @deprecated use _.isBoolean() instead {\@link https://lodash.com/docs/4.17.5#isBoolean}
686
- * @param {?} value
687
- * @return {?}
688
- */
413
+ * @deprecated use _.isBoolean() instead {@link https://lodash.com/docs/4.17.5#isBoolean}
414
+ */
689
415
  isBoolean(value) {
690
416
  console.warn('@deprecated use _.isBoolean() instead {@link https://lodash.com/docs/4.17.5#isBoolean}');
691
417
  return value === true || value === false;
692
418
  }
693
419
  /**
694
- * @deprecated use import { value } from \@firestitch/common/util; instead
695
- * @param {?} object
696
- * @param {?} key
697
- * @param {?} def
698
- * @return {?}
699
- */
420
+ * @deprecated use import { value } from @firestitch/common/util; instead
421
+ */
700
422
  value(object, key, def) {
701
423
  console.warn('@deprecated use import { value } from @firestitch/common/util; instead');
702
424
  if (this.isObject(object) || this.isArray(object)) {
@@ -706,72 +428,42 @@ class FsUtil {
706
428
  }
707
429
  return def;
708
430
  }
709
- /**
710
- * @param {?} func
711
- * @param {?} wait
712
- * @return {?}
713
- */
714
431
  throttle(func, wait) {
715
432
  console.warn('@deprecated use import { throttle } from @firestitch/common/util; instead');
716
- /** @type {?} */
717
- let waiting = false;
718
- return (/**
719
- * @return {?}
720
- */
721
- function () {
433
+ let waiting = false; // Initially, we're not waiting
434
+ return function () {
722
435
  if (!waiting) { // If we're not waiting
723
436
  func.apply(null, arguments); // Execute users function
724
437
  waiting = true; // Prevent future invocations
725
- setTimeout((/**
726
- * @return {?}
727
- */
728
- function () {
438
+ setTimeout(function () {
729
439
  waiting = false; // And allow future invocations
730
- }), wait);
440
+ }, wait);
731
441
  }
732
- });
442
+ };
733
443
  }
734
444
  /**
735
- * @deprecated use import { debounce } from \@firestitch/common/util; instead
736
- * @param {?} func
737
- * @param {?} wait
738
- * @param {?} immediate
739
- * @return {?}
740
- */
445
+ * @deprecated use import { debounce } from @firestitch/common/util; instead
446
+ */
741
447
  debounce(func, wait, immediate) {
742
448
  console.warn('@deprecated use import { debounce } from @firestitch/common/util; instead');
743
- /** @type {?} */
744
449
  var timeout;
745
- return (/**
746
- * @return {?}
747
- */
748
- function () {
749
- /** @type {?} */
750
- var context = this;
751
- /** @type {?} */
752
- var args = arguments;
753
- /** @type {?} */
754
- var later = (/**
755
- * @return {?}
756
- */
757
- function () {
450
+ return function () {
451
+ var context = this, args = arguments;
452
+ var later = function () {
758
453
  timeout = null;
759
454
  if (!immediate)
760
455
  func.apply(context, args);
761
- });
762
- /** @type {?} */
456
+ };
763
457
  var callNow = immediate && !timeout;
764
458
  clearTimeout(timeout);
765
459
  timeout = setTimeout(later, wait);
766
460
  if (callNow)
767
461
  func.apply(context, args);
768
- });
462
+ };
769
463
  }
770
464
  /**
771
- * @deprecated use import { length } from \@firestitch/common/util; instead
772
- * @param {?} object
773
- * @return {?}
774
- */
465
+ * @deprecated use import { length } from @firestitch/common/util; instead
466
+ */
775
467
  length(object) {
776
468
  console.warn('@deprecated use import { length } from @firestitch/common/util; instead');
777
469
  if (this.isObject(object)) {
@@ -783,107 +475,56 @@ class FsUtil {
783
475
  return 0;
784
476
  }
785
477
  /**
786
- * @deprecated use import { boolean } from \@firestitch/common/util; instead
787
- * @param {?} value
788
- * @return {?}
789
- */
478
+ * @deprecated use import { boolean } from @firestitch/common/util; instead
479
+ */
790
480
  boolean(value) {
791
481
  console.warn('@deprecated use import { boolean } from @firestitch/common/util; instead');
792
482
  return this.string(value).toLowerCase() !== 'false' && !!value;
793
483
  }
794
484
  /**
795
- * @deprecated use import { stringify } from \@firestitch/common/util; instead
796
- * @param {?} value
797
- * @return {?}
798
- */
485
+ * @deprecated use import { stringify } from @firestitch/common/util; instead
486
+ */
799
487
  stringify(value) {
800
488
  console.warn('@deprecated use import { stringify } from @firestitch/common/util; instead');
801
489
  return JSON.stringify(value);
802
490
  }
803
491
  }
804
- FsUtil.decorators = [
805
- { type: Injectable }
806
- ];
807
- if (false) {
808
- /**
809
- * @type {?}
810
- * @private
811
- */
812
- FsUtil.prototype.intervals;
813
- }
492
+ FsUtil.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsUtil, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
493
+ FsUtil.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsUtil });
494
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsUtil, decorators: [{
495
+ type: Injectable
496
+ }] });
814
497
 
815
- /**
816
- * @fileoverview added by tsickle
817
- * Generated from: app/services/vaildate.service.ts
818
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
819
- */
820
498
  class FsValidate {
821
- /**
822
- * @param {?} fsUtil
823
- */
824
499
  constructor(fsUtil) {
825
500
  this.fsUtil = fsUtil;
826
501
  }
827
502
  /**
828
- * @deprecated use import { email } from \@firestitch/common/validate; instead
829
- * @param {?} value
830
- * @return {?}
831
- */
503
+ * @deprecated use import { email } from @firestitch/common/validate; instead
504
+ */
832
505
  phone(value) {
833
- /** @type {?} */
834
506
  const valid = /^[\+]?[(]?[0-9]{3}[)]?[-\s\.]?[0-9]{3}[-\s\.]?[0-9]{4,6}$/.test(value);
835
507
  return valid || !String(value).length;
836
508
  }
837
509
  /**
838
- * @deprecated use import { email } from \@firestitch/common/validate; instead
839
- * @param {?} value
840
- * @return {?}
841
- */
510
+ * @deprecated use import { email } from @firestitch/common/validate; instead
511
+ */
842
512
  email(value) {
843
513
  return !!this.fsUtil.string(value).match(/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/);
844
514
  }
845
515
  }
846
- FsValidate.decorators = [
847
- { type: Injectable }
848
- ];
849
- /** @nocollapse */
850
- FsValidate.ctorParameters = () => [
851
- { type: FsUtil }
852
- ];
853
- if (false) {
854
- /**
855
- * @type {?}
856
- * @private
857
- */
858
- FsValidate.prototype.fsUtil;
859
- }
516
+ FsValidate.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsValidate, deps: [{ token: FsUtil }], target: i0.ɵɵFactoryTarget.Injectable });
517
+ FsValidate.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsValidate });
518
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsValidate, decorators: [{
519
+ type: Injectable
520
+ }], ctorParameters: function () { return [{ type: FsUtil }]; } });
860
521
 
861
- /**
862
- * @fileoverview added by tsickle
863
- * Generated from: libs/util/stringify/stringify.ts
864
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
865
- */
866
- /**
867
- * @param {?} value
868
- * @return {?}
869
- */
870
522
  function stringify(value) {
871
523
  return JSON.stringify(value);
872
524
  }
873
525
 
874
- /**
875
- * @fileoverview added by tsickle
876
- * Generated from: libs/util/guid/guid.ts
877
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
878
- */
879
- /**
880
- * @param {?=} pattern
881
- * @param {?=} options
882
- * @return {?}
883
- */
884
526
  function guid(pattern, options = { case: 'lower', numbers: true }) {
885
527
  pattern = pattern || 'xxxxxx';
886
- /** @type {?} */
887
528
  let s = '';
888
529
  if (options.numbers !== false) {
889
530
  s = '0123456789';
@@ -894,215 +535,128 @@ function guid(pattern, options = { case: 'lower', numbers: true }) {
894
535
  if (options.case === 'upper' || options.case === 'mixed') {
895
536
  s = s.concat('ABCDEFGHIJKLMNOPQRSTUVWXYZ');
896
537
  }
897
- /** @type {?} */
898
538
  const chars = s.match(/(.{1,1})/g);
899
- return pattern.replace(/[x]/g, (/**
900
- * @param {?} c
901
- * @return {?}
902
- */
903
- function (c) {
904
- /** @type {?} */
539
+ return pattern.replace(/[x]/g, function (c) {
905
540
  const i = (Math.random() * chars.length) | 0;
906
541
  return chars[i];
907
- }));
542
+ });
908
543
  }
909
544
 
910
- /**
911
- * @fileoverview added by tsickle
912
- * Generated from: libs/util/isEmpty/isEmpty.ts
913
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
914
- */
915
- /**
916
- * @param {?} value
917
- * @param {?=} options
918
- * @return {?}
919
- */
920
545
  function isEmpty(value, options) {
921
546
  options = options || {};
922
547
  return value === undefined ||
923
548
  value === null ||
924
549
  value === false ||
925
550
  value === '' ||
926
- !toString(value).length ||
927
- (isObject(value) &&
928
- (value.constructor.name === 'Object' && !Object.keys(value).length)) ||
551
+ String(value).length === 0 ||
552
+ (Array.isArray(value) && value.length === 0) ||
553
+ (value instanceof Object && Object.keys(value).length === 0) ||
929
554
  (!options.zero && (value === 0 || value === '0'));
930
555
  }
931
556
 
932
- /**
933
- * @fileoverview added by tsickle
934
- * Generated from: app/pipes/util.pipe.ts
935
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
936
- */
937
557
  class FsUtilStringifyPipe {
938
558
  constructor() { }
939
- /**
940
- * @param {?} value
941
- * @return {?}
942
- */
943
559
  transform(value) {
944
560
  return stringify(value);
945
561
  }
946
562
  }
947
- FsUtilStringifyPipe.decorators = [
948
- { type: Pipe, args: [{
949
- name: 'fsUtilStringify'
950
- },] }
951
- ];
952
- /** @nocollapse */
953
- FsUtilStringifyPipe.ctorParameters = () => [];
563
+ FsUtilStringifyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsUtilStringifyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
564
+ FsUtilStringifyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsUtilStringifyPipe, name: "fsUtilStringify" });
565
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsUtilStringifyPipe, decorators: [{
566
+ type: Pipe,
567
+ args: [{
568
+ name: 'fsUtilStringify'
569
+ }]
570
+ }], ctorParameters: function () { return []; } });
954
571
  class FsUtilGuidPipe {
955
572
  constructor() { }
956
- /**
957
- * @return {?}
958
- */
959
573
  transform() {
960
574
  return guid();
961
575
  }
962
576
  }
963
- FsUtilGuidPipe.decorators = [
964
- { type: Pipe, args: [{
965
- name: 'fsUtilGuid'
966
- },] }
967
- ];
968
- /** @nocollapse */
969
- FsUtilGuidPipe.ctorParameters = () => [];
577
+ FsUtilGuidPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsUtilGuidPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
578
+ FsUtilGuidPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsUtilGuidPipe, name: "fsUtilGuid" });
579
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsUtilGuidPipe, decorators: [{
580
+ type: Pipe,
581
+ args: [{
582
+ name: 'fsUtilGuid'
583
+ }]
584
+ }], ctorParameters: function () { return []; } });
970
585
  class FsUtilIsEmptyPipe {
971
- /**
972
- * @param {?} value
973
- * @return {?}
974
- */
975
586
  transform(value) {
976
587
  return isEmpty(value);
977
588
  }
978
589
  }
979
- FsUtilIsEmptyPipe.decorators = [
980
- { type: Pipe, args: [{
981
- name: 'fsUtilIsEmpty'
982
- },] }
983
- ];
590
+ FsUtilIsEmptyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsUtilIsEmptyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
591
+ FsUtilIsEmptyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsUtilIsEmptyPipe, name: "fsUtilIsEmpty" });
592
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsUtilIsEmptyPipe, decorators: [{
593
+ type: Pipe,
594
+ args: [{
595
+ name: 'fsUtilIsEmpty'
596
+ }]
597
+ }] });
984
598
  class FsUtilIsNotEmptyPipe {
985
- /**
986
- * @param {?} value
987
- * @return {?}
988
- */
989
599
  transform(value) {
990
600
  return !isEmpty(value);
991
601
  }
992
602
  }
993
- FsUtilIsNotEmptyPipe.decorators = [
994
- { type: Pipe, args: [{
995
- name: 'fsUtilIsNotEmpty'
996
- },] }
997
- ];
603
+ FsUtilIsNotEmptyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsUtilIsNotEmptyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
604
+ FsUtilIsNotEmptyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsUtilIsNotEmptyPipe, name: "fsUtilIsNotEmpty" });
605
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsUtilIsNotEmptyPipe, decorators: [{
606
+ type: Pipe,
607
+ args: [{
608
+ name: 'fsUtilIsNotEmpty'
609
+ }]
610
+ }] });
998
611
 
999
- /**
1000
- * @fileoverview added by tsickle
1001
- * Generated from: libs/format/number/number.ts
1002
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1003
- */
1004
- /**
1005
- * @param {?} value
1006
- * @param {?=} decimals
1007
- * @return {?}
1008
- */
1009
612
  function number(value, decimals) {
1010
613
  return Number(value || 0).toLocaleString(undefined, { maximumFractionDigits: decimals });
1011
614
  }
1012
615
 
1013
- /**
1014
- * @fileoverview added by tsickle
1015
- * Generated from: app/pipes/number.pipe.ts
1016
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1017
- */
1018
616
  class FsFormatNumberPipe {
1019
- /**
1020
- * @param {?} value
1021
- * @param {?=} decimals
1022
- * @return {?}
1023
- */
1024
617
  transform(value, decimals) {
1025
618
  return number(value, decimals);
1026
619
  }
1027
620
  }
1028
- FsFormatNumberPipe.decorators = [
1029
- { type: Pipe, args: [{
1030
- name: 'fsFormatNumber'
1031
- },] }
1032
- ];
621
+ FsFormatNumberPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormatNumberPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
622
+ FsFormatNumberPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormatNumberPipe, name: "fsFormatNumber" });
623
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormatNumberPipe, decorators: [{
624
+ type: Pipe,
625
+ args: [{
626
+ name: 'fsFormatNumber'
627
+ }]
628
+ }] });
1033
629
 
1034
- /**
1035
- * @fileoverview added by tsickle
1036
- * Generated from: libs/format/currency/currency.ts
1037
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1038
- */
1039
- /**
1040
- * @param {?} amount
1041
- * @param {?=} precision
1042
- * @param {?=} currencyCode
1043
- * @param {?=} locale
1044
- * @return {?}
1045
- */
1046
630
  function currency(amount, precision = [2, 10], currencyCode = 'USD', locale = 'en-US') {
1047
- /** @type {?} */
1048
- const digitsInfo = isArray(precision) ? precision : [precision, precision];
631
+ const digitsInfo = Array.isArray(precision) ? precision : [precision, precision];
1049
632
  return new CurrencyPipe(locale).transform(amount, currencyCode, 'symbol', `1.${digitsInfo[0]}-${digitsInfo[1]}`);
1050
633
  }
1051
634
 
1052
- /**
1053
- * @fileoverview added by tsickle
1054
- * Generated from: app/pipes/currency.pipe.ts
1055
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1056
- */
1057
635
  class FsFormatCurrencyPipe {
1058
- /**
1059
- * @param {?} locale
1060
- */
1061
636
  constructor(locale) {
1062
637
  this.locale = locale;
1063
638
  }
1064
- /**
1065
- * @param {?} amount
1066
- * @param {?=} precision
1067
- * @param {?=} currencyCode
1068
- * @return {?}
1069
- */
1070
639
  transform(amount, precision, currencyCode) {
1071
640
  return currency(amount, precision, currencyCode);
1072
641
  }
1073
642
  }
1074
- FsFormatCurrencyPipe.decorators = [
1075
- { type: Pipe, args: [{
1076
- name: 'fsFormatCurrency'
1077
- },] }
1078
- ];
1079
- /** @nocollapse */
1080
- FsFormatCurrencyPipe.ctorParameters = () => [
1081
- { type: String, decorators: [{ type: Inject, args: [LOCALE_ID,] }] }
1082
- ];
1083
- if (false) {
1084
- /** @type {?} */
1085
- FsFormatCurrencyPipe.prototype.locale;
1086
- }
643
+ FsFormatCurrencyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormatCurrencyPipe, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Pipe });
644
+ FsFormatCurrencyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormatCurrencyPipe, name: "fsFormatCurrency" });
645
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormatCurrencyPipe, decorators: [{
646
+ type: Pipe,
647
+ args: [{
648
+ name: 'fsFormatCurrency'
649
+ }]
650
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
651
+ type: Inject,
652
+ args: [LOCALE_ID]
653
+ }] }]; } });
1087
654
 
1088
- /**
1089
- * @fileoverview added by tsickle
1090
- * Generated from: libs/format/truncate/truncate.ts
1091
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1092
- */
1093
- /**
1094
- * @param {?} value
1095
- * @param {?=} limit
1096
- * @param {?=} completeWords
1097
- * @param {?=} ellipsis
1098
- * @return {?}
1099
- */
1100
655
  function truncate(value, limit = 100, completeWords = false, ellipsis = '...') {
1101
656
  value = value || '';
1102
657
  if (completeWords) {
1103
658
  limit = value.substr(0, limit).lastIndexOf(' ');
1104
659
  }
1105
- /** @type {?} */
1106
660
  let result = `${value.substr(0, limit)}`;
1107
661
  if (result !== value) {
1108
662
  result += ellipsis;
@@ -1110,48 +664,26 @@ function truncate(value, limit = 100, completeWords = false, ellipsis = '...') {
1110
664
  return result;
1111
665
  }
1112
666
 
1113
- /**
1114
- * @fileoverview added by tsickle
1115
- * Generated from: app/pipes/truncate.pipe.ts
1116
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1117
- */
1118
667
  class FsFormatTruncatePipe {
1119
668
  constructor() { }
1120
- /**
1121
- * @param {?} value
1122
- * @param {?=} limit
1123
- * @param {?=} completeWords
1124
- * @param {?=} ellipsis
1125
- * @return {?}
1126
- */
1127
669
  transform(value, limit, completeWords, ellipsis) {
1128
670
  return truncate(value, limit, completeWords, ellipsis);
1129
671
  }
1130
672
  }
1131
- FsFormatTruncatePipe.decorators = [
1132
- { type: Pipe, args: [{
1133
- name: 'fsFormatTruncate'
1134
- },] }
1135
- ];
1136
- /** @nocollapse */
1137
- FsFormatTruncatePipe.ctorParameters = () => [];
673
+ FsFormatTruncatePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormatTruncatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
674
+ FsFormatTruncatePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormatTruncatePipe, name: "fsFormatTruncate" });
675
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormatTruncatePipe, decorators: [{
676
+ type: Pipe,
677
+ args: [{
678
+ name: 'fsFormatTruncate'
679
+ }]
680
+ }], ctorParameters: function () { return []; } });
1138
681
 
1139
- /**
1140
- * @fileoverview added by tsickle
1141
- * Generated from: libs/format/bytes/bytes.ts
1142
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1143
- */
1144
- /**
1145
- * @param {?} bytes
1146
- * @return {?}
1147
- */
1148
682
  function bytes(bytes) {
1149
683
  if (!bytes) {
1150
684
  return '0.00 B';
1151
685
  }
1152
- /** @type {?} */
1153
686
  const e = Math.floor(Math.log(bytes) / Math.log(1024));
1154
- /** @type {?} */
1155
687
  const decimals = (bytes / 1024) > 1000 ? 2 : 0;
1156
688
  console.log(bytes, (bytes / 1024), decimals);
1157
689
  return `${(bytes / Math.pow(1024, e)).toFixed(decimals)}`.replace(/\.00/, '')
@@ -1159,162 +691,96 @@ function bytes(bytes) {
1159
691
  + (e ? ' KMGTP'.charAt(e) : '') + 'B';
1160
692
  }
1161
693
 
1162
- /**
1163
- * @fileoverview added by tsickle
1164
- * Generated from: app/pipes/bytes.pipe.ts
1165
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1166
- */
1167
694
  class FsFormatBytesPipe {
1168
- /**
1169
- * @param {?} value
1170
- * @return {?}
1171
- */
1172
695
  transform(value) {
1173
696
  return bytes(value);
1174
697
  }
1175
698
  }
1176
- FsFormatBytesPipe.decorators = [
1177
- { type: Pipe, args: [{
1178
- name: 'fsFormatBytes',
1179
- },] }
1180
- ];
699
+ FsFormatBytesPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormatBytesPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
700
+ FsFormatBytesPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormatBytesPipe, name: "fsFormatBytes" });
701
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormatBytesPipe, decorators: [{
702
+ type: Pipe,
703
+ args: [{
704
+ name: 'fsFormatBytes',
705
+ }]
706
+ }] });
1181
707
 
1182
- /**
1183
- * @fileoverview added by tsickle
1184
- * Generated from: app/directives/stop-propagation.directive.ts
1185
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1186
- */
1187
708
  class FsStopPropagationDirective {
1188
- /**
1189
- * @param {?} event
1190
- * @return {?}
1191
- */
1192
709
  preventClick(event) {
1193
710
  event.stopPropagation();
1194
711
  }
1195
712
  }
1196
- FsStopPropagationDirective.decorators = [
1197
- { type: Directive, args: [{
1198
- selector: '[fsStopPropagation]',
1199
- },] }
1200
- ];
1201
- FsStopPropagationDirective.propDecorators = {
1202
- preventClick: [{ type: HostListener, args: ['click', ['$event'],] }]
1203
- };
713
+ FsStopPropagationDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsStopPropagationDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
714
+ FsStopPropagationDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FsStopPropagationDirective, selector: "[fsStopPropagation]", host: { listeners: { "click": "preventClick($event)" } }, ngImport: i0 });
715
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsStopPropagationDirective, decorators: [{
716
+ type: Directive,
717
+ args: [{
718
+ selector: '[fsStopPropagation]',
719
+ }]
720
+ }], propDecorators: { preventClick: [{
721
+ type: HostListener,
722
+ args: ['click', ['$event']]
723
+ }] } });
1204
724
 
1205
- /**
1206
- * @fileoverview added by tsickle
1207
- * Generated from: app/directives/prevent-default.directive.ts
1208
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1209
- */
1210
725
  class FsPreventDefaultDirective {
1211
- /**
1212
- * @param {?} event
1213
- * @return {?}
1214
- */
1215
726
  preventClick(event) {
1216
727
  event.preventDefault();
1217
728
  }
1218
729
  }
1219
- FsPreventDefaultDirective.decorators = [
1220
- { type: Directive, args: [{
1221
- selector: '[fsPreventDefault]',
1222
- },] }
1223
- ];
1224
- FsPreventDefaultDirective.propDecorators = {
1225
- preventClick: [{ type: HostListener, args: ['click', ['$event'],] }]
1226
- };
730
+ FsPreventDefaultDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsPreventDefaultDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
731
+ FsPreventDefaultDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FsPreventDefaultDirective, selector: "[fsPreventDefault]", host: { listeners: { "click": "preventClick($event)" } }, ngImport: i0 });
732
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsPreventDefaultDirective, decorators: [{
733
+ type: Directive,
734
+ args: [{
735
+ selector: '[fsPreventDefault]',
736
+ }]
737
+ }], propDecorators: { preventClick: [{
738
+ type: HostListener,
739
+ args: ['click', ['$event']]
740
+ }] } });
1227
741
 
1228
- /**
1229
- * @fileoverview added by tsickle
1230
- * Generated from: app/directives/autofocus.directive.ts
1231
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1232
- */
1233
742
  class FsAutofocusDirective {
1234
- /**
1235
- * @param {?} _el
1236
- */
1237
743
  constructor(_el) {
1238
744
  this._el = _el;
1239
745
  }
1240
- /**
1241
- * @return {?}
1242
- */
1243
746
  ngAfterViewInit() {
1244
- setTimeout((/**
1245
- * @return {?}
1246
- */
1247
- () => {
747
+ setTimeout(() => {
1248
748
  this._el.nativeElement.focus();
1249
- }));
749
+ });
1250
750
  }
1251
751
  }
1252
- FsAutofocusDirective.decorators = [
1253
- { type: Directive, args: [{
1254
- selector: '[autofocus]',
1255
- },] }
1256
- ];
1257
- /** @nocollapse */
1258
- FsAutofocusDirective.ctorParameters = () => [
1259
- { type: ElementRef }
1260
- ];
1261
- if (false) {
1262
- /**
1263
- * @type {?}
1264
- * @private
1265
- */
1266
- FsAutofocusDirective.prototype._el;
1267
- }
752
+ FsAutofocusDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsAutofocusDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
753
+ FsAutofocusDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FsAutofocusDirective, selector: "[autofocus]", ngImport: i0 });
754
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsAutofocusDirective, decorators: [{
755
+ type: Directive,
756
+ args: [{
757
+ selector: '[autofocus]',
758
+ }]
759
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
1268
760
 
1269
- /**
1270
- * @fileoverview added by tsickle
1271
- * Generated from: libs/util/ordinal-number/ordinal-number.ts
1272
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1273
- */
1274
- /**
1275
- * @param {?} value
1276
- * @return {?}
1277
- */
1278
761
  function ordinalNumber(value) {
1279
762
  value = String(value);
1280
- /** @type {?} */
1281
763
  const index = value.match `1?.$`;
1282
- /** @type {?} */
1283
764
  const endings = [, 'st', 'nd', 'rd'];
1284
- /** @type {?} */
1285
765
  const ending = endings[index] || 'th';
1286
766
  return value + ending;
1287
767
  }
1288
768
 
1289
- /**
1290
- * @fileoverview added by tsickle
1291
- * Generated from: app/pipes/ordinal-number.pipe.ts
1292
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1293
- */
1294
769
  class FsFormatOrdinalNumberPipe {
1295
- /**
1296
- * @param {?} value
1297
- * @return {?}
1298
- */
1299
770
  transform(value) {
1300
771
  return ordinalNumber(value);
1301
772
  }
1302
773
  }
1303
- FsFormatOrdinalNumberPipe.decorators = [
1304
- { type: Pipe, args: [{
1305
- name: 'fsFormatOrdinalNumber',
1306
- },] }
1307
- ];
774
+ FsFormatOrdinalNumberPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormatOrdinalNumberPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
775
+ FsFormatOrdinalNumberPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormatOrdinalNumberPipe, name: "fsFormatOrdinalNumber" });
776
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormatOrdinalNumberPipe, decorators: [{
777
+ type: Pipe,
778
+ args: [{
779
+ name: 'fsFormatOrdinalNumber',
780
+ }]
781
+ }] });
1308
782
 
1309
- /**
1310
- * @fileoverview added by tsickle
1311
- * Generated from: app/fs-common.module.ts
1312
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1313
- */
1314
783
  class FsCommonModule {
1315
- /**
1316
- * @return {?}
1317
- */
1318
784
  static forRoot() {
1319
785
  return {
1320
786
  ngModule: FsCommonModule,
@@ -1327,129 +793,92 @@ class FsCommonModule {
1327
793
  };
1328
794
  }
1329
795
  }
1330
- FsCommonModule.decorators = [
1331
- { type: NgModule, args: [{
1332
- imports: [
1333
- CommonModule,
1334
- ],
1335
- exports: [
1336
- FsStopPropagationDirective,
1337
- FsPreventDefaultDirective,
1338
- FsAutofocusDirective,
1339
- FsUtilGuidPipe,
1340
- FsUtilStringifyPipe,
1341
- FsFormatNumberPipe,
1342
- FsFormatCurrencyPipe,
1343
- FsFormatTruncatePipe,
1344
- FsUtilIsEmptyPipe,
1345
- FsUtilIsNotEmptyPipe,
1346
- FsFormatBytesPipe,
1347
- FsFormatOrdinalNumberPipe,
1348
- ],
1349
- declarations: [
1350
- FsStopPropagationDirective,
1351
- FsPreventDefaultDirective,
1352
- FsAutofocusDirective,
1353
- FsUtilGuidPipe,
1354
- FsUtilIsEmptyPipe,
1355
- FsUtilIsNotEmptyPipe,
1356
- FsUtilStringifyPipe,
1357
- FsFormatNumberPipe,
1358
- FsFormatCurrencyPipe,
1359
- FsFormatTruncatePipe,
1360
- FsFormatBytesPipe,
1361
- FsFormatOrdinalNumberPipe,
1362
- ],
1363
- },] }
1364
- ];
796
+ FsCommonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
797
+ FsCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsCommonModule, declarations: [FsStopPropagationDirective,
798
+ FsPreventDefaultDirective,
799
+ FsAutofocusDirective,
800
+ FsUtilGuidPipe,
801
+ FsUtilIsEmptyPipe,
802
+ FsUtilIsNotEmptyPipe,
803
+ FsUtilStringifyPipe,
804
+ FsFormatNumberPipe,
805
+ FsFormatCurrencyPipe,
806
+ FsFormatTruncatePipe,
807
+ FsFormatBytesPipe,
808
+ FsFormatOrdinalNumberPipe], imports: [CommonModule], exports: [FsStopPropagationDirective,
809
+ FsPreventDefaultDirective,
810
+ FsAutofocusDirective,
811
+ FsUtilGuidPipe,
812
+ FsUtilStringifyPipe,
813
+ FsFormatNumberPipe,
814
+ FsFormatCurrencyPipe,
815
+ FsFormatTruncatePipe,
816
+ FsUtilIsEmptyPipe,
817
+ FsUtilIsNotEmptyPipe,
818
+ FsFormatBytesPipe,
819
+ FsFormatOrdinalNumberPipe] });
820
+ FsCommonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsCommonModule, imports: [[
821
+ CommonModule,
822
+ ]] });
823
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsCommonModule, decorators: [{
824
+ type: NgModule,
825
+ args: [{
826
+ imports: [
827
+ CommonModule,
828
+ ],
829
+ exports: [
830
+ FsStopPropagationDirective,
831
+ FsPreventDefaultDirective,
832
+ FsAutofocusDirective,
833
+ FsUtilGuidPipe,
834
+ FsUtilStringifyPipe,
835
+ FsFormatNumberPipe,
836
+ FsFormatCurrencyPipe,
837
+ FsFormatTruncatePipe,
838
+ FsUtilIsEmptyPipe,
839
+ FsUtilIsNotEmptyPipe,
840
+ FsFormatBytesPipe,
841
+ FsFormatOrdinalNumberPipe,
842
+ ],
843
+ declarations: [
844
+ FsStopPropagationDirective,
845
+ FsPreventDefaultDirective,
846
+ FsAutofocusDirective,
847
+ FsUtilGuidPipe,
848
+ FsUtilIsEmptyPipe,
849
+ FsUtilIsNotEmptyPipe,
850
+ FsUtilStringifyPipe,
851
+ FsFormatNumberPipe,
852
+ FsFormatCurrencyPipe,
853
+ FsFormatTruncatePipe,
854
+ FsFormatBytesPipe,
855
+ FsFormatOrdinalNumberPipe,
856
+ ],
857
+ }]
858
+ }] });
1365
859
 
1366
- /**
1367
- * @fileoverview added by tsickle
1368
- * Generated from: libs/validate/email/email.ts
1369
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1370
- */
1371
- /**
1372
- * @param {?} value
1373
- * @return {?}
1374
- */
1375
860
  function email(value) {
1376
861
  return !!String(value).match(/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/);
1377
862
  }
1378
863
 
1379
- /**
1380
- * @fileoverview added by tsickle
1381
- * Generated from: libs/validate/email/index.ts
1382
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1383
- */
1384
-
1385
- /**
1386
- * @fileoverview added by tsickle
1387
- * Generated from: libs/validate/phone/phone.ts
1388
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1389
- */
1390
- /**
1391
- * @param {?} value
1392
- * @return {?}
1393
- */
1394
864
  function phone(value) {
1395
- /** @type {?} */
1396
865
  const valid = /^[\+]?[(]?[0-9]{3}[)]?[-\s\.]?[0-9]{3}[-\s\.]?[0-9]{4}/.test(value);
1397
866
  return valid || !String(value).length;
1398
867
  }
1399
868
 
1400
- /**
1401
- * @fileoverview added by tsickle
1402
- * Generated from: libs/validate/phone/index.ts
1403
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1404
- */
1405
-
1406
- /**
1407
- * @fileoverview added by tsickle
1408
- * Generated from: libs/validate/url/url.ts
1409
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1410
- */
1411
869
  /**
1412
870
  * Check validity of the url.
1413
871
  * Protocol (http/https) isn't required.
1414
872
  * @param value
1415
873
  * @returns {boolean}
1416
874
  */
1417
- /**
1418
- * @param {?} value
1419
- * @return {?}
1420
- */
1421
875
  function url(value) {
1422
- /** @type {?} */
1423
876
  const expression = /^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#%[\]@!\$&'\(\)\*\+,;=.]+$/gm;
1424
- /** @type {?} */
1425
877
  const regexp = new RegExp(expression);
1426
878
  return !!String(value).match(regexp);
1427
879
  }
1428
880
 
1429
- /**
1430
- * @fileoverview added by tsickle
1431
- * Generated from: libs/validate/url/index.ts
1432
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1433
- */
1434
-
1435
- /**
1436
- * @fileoverview added by tsickle
1437
- * Generated from: libs/validate/index.ts
1438
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1439
- */
1440
-
1441
- /**
1442
- * @fileoverview added by tsickle
1443
- * Generated from: libs/array/compare/compare.ts
1444
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1445
- */
1446
- /**
1447
- * @param {?} query
1448
- * @param {?} item
1449
- * @return {?}
1450
- */
1451
881
  function compare(query, item) {
1452
- /** @type {?} */
1453
882
  let value = true;
1454
883
  for (const key in query) {
1455
884
  value = value && item[key] == query[key];
@@ -1457,80 +886,32 @@ function compare(query, item) {
1457
886
  return value;
1458
887
  }
1459
888
 
1460
- /**
1461
- * @fileoverview added by tsickle
1462
- * Generated from: libs/array/compare/index.ts
1463
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1464
- */
1465
-
1466
- /**
1467
- * @fileoverview added by tsickle
1468
- * Generated from: libs/array/filter/filter.ts
1469
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1470
- */
1471
- /**
1472
- * @param {?} array
1473
- * @param {?} query
1474
- * @return {?}
1475
- */
1476
889
  function filter(array, query) {
1477
890
  if (typeof query !== 'function') {
1478
- /** @type {?} */
1479
891
  const queryObj = query;
1480
- query = (/**
1481
- * @param {?} item
1482
- * @return {?}
1483
- */
1484
- (item) => {
892
+ query = (item) => {
1485
893
  return compare(queryObj, item);
1486
- });
894
+ };
1487
895
  }
1488
- /** @type {?} */
1489
896
  const isarray = Array.isArray(array);
1490
- /** @type {?} */
1491
897
  const list = isarray ? [] : {};
1492
898
  if (isarray) {
1493
- array.forEach((/**
1494
- * @param {?} item
1495
- * @param {?} idx
1496
- * @return {?}
1497
- */
1498
- function (item, idx) {
899
+ array.forEach(function (item, idx) {
1499
900
  if (query(item)) {
1500
901
  list.push(item);
1501
902
  }
1502
- }));
903
+ });
1503
904
  }
1504
905
  else {
1505
- Object.keys(array).forEach((/**
1506
- * @param {?} key
1507
- * @return {?}
1508
- */
1509
- key => {
906
+ Object.keys(array).forEach(key => {
1510
907
  if (query(array[key])) {
1511
908
  list[key] = array[key];
1512
909
  }
1513
- }));
910
+ });
1514
911
  }
1515
912
  return list;
1516
913
  }
1517
914
 
1518
- /**
1519
- * @fileoverview added by tsickle
1520
- * Generated from: libs/array/filter/index.ts
1521
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1522
- */
1523
-
1524
- /**
1525
- * @fileoverview added by tsickle
1526
- * Generated from: libs/array/inArray/inArray.ts
1527
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1528
- */
1529
- /**
1530
- * @param {?} values
1531
- * @param {?} array
1532
- * @return {?}
1533
- */
1534
915
  function inArray(values, array) {
1535
916
  if (!Array.isArray(values)) {
1536
917
  values = [values];
@@ -1543,57 +924,20 @@ function inArray(values, array) {
1543
924
  return false;
1544
925
  }
1545
926
 
1546
- /**
1547
- * @fileoverview added by tsickle
1548
- * Generated from: libs/array/inArray/index.ts
1549
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1550
- */
1551
-
1552
- /**
1553
- * @fileoverview added by tsickle
1554
- * Generated from: libs/array/index/index.ts
1555
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1556
- */
1557
- /**
1558
- * @param {?} array
1559
- * @param {?} name
1560
- * @param {?=} value
1561
- * @return {?}
1562
- */
1563
927
  function index(array, name, value = null) {
1564
- /** @type {?} */
1565
928
  const list = {};
1566
- array.forEach((/**
1567
- * @param {?} item
1568
- * @return {?}
1569
- */
1570
- function (item) {
929
+ array.forEach(function (item) {
1571
930
  list[item[name]] = value ? item[value] : item;
1572
- }));
931
+ });
1573
932
  return list;
1574
933
  }
1575
934
 
1576
- /**
1577
- * @fileoverview added by tsickle
1578
- * Generated from: libs/array/indexOf/indexOf.ts
1579
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1580
- */
1581
- /**
1582
- * @param {?} array
1583
- * @param {?} query
1584
- * @return {?}
1585
- */
1586
935
  function indexOf(array, query) {
1587
936
  if (typeof query !== 'function') {
1588
- /** @type {?} */
1589
937
  const queryObj = query;
1590
- query = (/**
1591
- * @param {?} item
1592
- * @return {?}
1593
- */
1594
- (item) => {
938
+ query = (item) => {
1595
939
  return compare(queryObj, item);
1596
- });
940
+ };
1597
941
  }
1598
942
  for (let i = 0, len = array.length; i < len; i++) {
1599
943
  if (query(array[i])) {
@@ -1603,166 +947,53 @@ function indexOf(array, query) {
1603
947
  return -1;
1604
948
  }
1605
949
 
1606
- /**
1607
- * @fileoverview added by tsickle
1608
- * Generated from: libs/array/indexOf/index.ts
1609
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1610
- */
1611
-
1612
- /**
1613
- * @fileoverview added by tsickle
1614
- * Generated from: libs/array/keyExists/keyExists.ts
1615
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1616
- */
1617
- /**
1618
- * @param {?} array
1619
- * @param {?} key
1620
- * @return {?}
1621
- */
1622
950
  function keyExists(array, key) {
1623
951
  return array.hasOwnProperty(key);
1624
952
  }
1625
953
 
1626
- /**
1627
- * @fileoverview added by tsickle
1628
- * Generated from: libs/array/keyExists/index.ts
1629
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1630
- */
1631
-
1632
- /**
1633
- * @fileoverview added by tsickle
1634
- * Generated from: libs/array/ksort/ksort.ts
1635
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1636
- */
1637
- /**
1638
- * @param {?} unordered
1639
- * @return {?}
1640
- */
1641
954
  function ksort(unordered) {
1642
- Object.keys(unordered).sort().forEach((/**
1643
- * @param {?} key
1644
- * @return {?}
1645
- */
1646
- function (key) {
1647
- /** @type {?} */
955
+ Object.keys(unordered).sort().forEach(function (key) {
1648
956
  const value = unordered[key];
1649
957
  delete unordered[key];
1650
958
  unordered[key] = value;
1651
- }));
959
+ });
1652
960
  }
1653
961
 
1654
- /**
1655
- * @fileoverview added by tsickle
1656
- * Generated from: libs/array/ksort/index.ts
1657
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1658
- */
1659
-
1660
- /**
1661
- * @fileoverview added by tsickle
1662
- * Generated from: libs/array/list/list.ts
1663
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1664
- */
1665
- /**
1666
- * @param {?} array
1667
- * @param {?} property
1668
- * @param {?=} index
1669
- * @return {?}
1670
- */
1671
962
  function list(array, property, index = null) {
1672
- /** @type {?} */
1673
963
  const resultList = index ? {} : [];
1674
- array.forEach((/**
1675
- * @param {?} item
1676
- * @param {?} idx
1677
- * @return {?}
1678
- */
1679
- function (item, idx) {
964
+ array.forEach(function (item, idx) {
1680
965
  if (index) {
1681
966
  resultList[item[index]] = item[property];
1682
967
  }
1683
968
  else {
1684
969
  resultList.push(item[property]);
1685
970
  }
1686
- }));
971
+ });
1687
972
  return resultList;
1688
973
  }
1689
974
 
1690
- /**
1691
- * @fileoverview added by tsickle
1692
- * Generated from: libs/array/list/index.ts
1693
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1694
- */
1695
-
1696
- /**
1697
- * @fileoverview added by tsickle
1698
- * Generated from: libs/array/nameValue/nameValue.ts
1699
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1700
- */
1701
- /**
1702
- * @param {?} array
1703
- * @param {?} name
1704
- * @param {?} value
1705
- * @return {?}
1706
- */
1707
975
  function nameValue(array, name, value) {
1708
- /** @type {?} */
1709
976
  const list = [];
1710
977
  if (name || value) {
1711
- /** @type {?} */
1712
- const nameFn = typeof name === 'function' ? name : (/**
1713
- * @param {?} item
1714
- * @return {?}
1715
- */
1716
- function (item) {
978
+ const nameFn = typeof name === 'function' ? name : function (item) {
1717
979
  return item[name];
1718
- });
1719
- /** @type {?} */
1720
- const valueFn = typeof value === 'function' ? value : (/**
1721
- * @param {?} item
1722
- * @return {?}
1723
- */
1724
- function (item) {
980
+ };
981
+ const valueFn = typeof value === 'function' ? value : function (item) {
1725
982
  return item[value];
1726
- });
1727
- array.forEach((/**
1728
- * @param {?} item
1729
- * @return {?}
1730
- */
1731
- function (item) {
983
+ };
984
+ array.forEach(function (item) {
1732
985
  list.push({ name: nameFn(item), value: valueFn(item) });
1733
- }));
986
+ });
1734
987
  }
1735
988
  else {
1736
- array.forEach((/**
1737
- * @param {?} n
1738
- * @param {?} v
1739
- * @return {?}
1740
- */
1741
- function (n, v) {
989
+ array.forEach(function (n, v) {
1742
990
  list.push({ name: n, value: v });
1743
- }));
991
+ });
1744
992
  }
1745
993
  return list;
1746
994
  }
1747
995
 
1748
- /**
1749
- * @fileoverview added by tsickle
1750
- * Generated from: libs/array/nameValue/index.ts
1751
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1752
- */
1753
-
1754
- /**
1755
- * @fileoverview added by tsickle
1756
- * Generated from: libs/array/remove/remove.ts
1757
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1758
- */
1759
- /**
1760
- * @param {?} array
1761
- * @param {?} query
1762
- * @return {?}
1763
- */
1764
996
  function remove(array, query) {
1765
- /** @type {?} */
1766
997
  const idx = indexOf(array, query);
1767
998
  if (idx >= 0) {
1768
999
  return array.splice(idx, 1);
@@ -1770,33 +1001,10 @@ function remove(array, query) {
1770
1001
  return idx;
1771
1002
  }
1772
1003
 
1773
- /**
1774
- * @fileoverview added by tsickle
1775
- * Generated from: libs/array/remove/index.ts
1776
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1777
- */
1778
-
1779
- /**
1780
- * @fileoverview added by tsickle
1781
- * Generated from: libs/array/sort/sort.ts
1782
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1783
- */
1784
- /**
1785
- * @param {?} array
1786
- * @param {?} query
1787
- * @param {?=} reverse
1788
- * @return {?}
1789
- */
1790
1004
  function sort(array, query, reverse = false) {
1791
1005
  if (typeof query !== 'function') {
1792
- /** @type {?} */
1793
1006
  const queryStr = query;
1794
- query = (/**
1795
- * @param {?} a
1796
- * @param {?} b
1797
- * @return {?}
1798
- */
1799
- function (a, b) {
1007
+ query = function (a, b) {
1800
1008
  if (reverse) {
1801
1009
  if (a[queryStr] < b[queryStr]) {
1802
1010
  return 1;
@@ -1814,322 +1022,104 @@ function sort(array, query, reverse = false) {
1814
1022
  }
1815
1023
  }
1816
1024
  return 0;
1817
- });
1025
+ };
1818
1026
  }
1819
1027
  array.sort(query);
1820
1028
  return array;
1821
1029
  }
1822
1030
 
1823
- /**
1824
- * @fileoverview added by tsickle
1825
- * Generated from: libs/array/sort/index.ts
1826
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1827
- */
1828
-
1829
- /**
1830
- * @fileoverview added by tsickle
1831
- * Generated from: libs/array/rsort/rsort.ts
1832
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1833
- */
1834
- /**
1835
- * @param {?} array
1836
- * @param {?} query
1837
- * @return {?}
1838
- */
1839
1031
  function rsort(array, query) {
1840
1032
  return sort(array, query, true);
1841
1033
  }
1842
1034
 
1843
- /**
1844
- * @fileoverview added by tsickle
1845
- * Generated from: libs/array/rsort/index.ts
1846
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1847
- */
1848
-
1849
- /**
1850
- * @fileoverview added by tsickle
1851
- * Generated from: libs/array/find/find.ts
1852
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1853
- */
1854
- /**
1855
- * @param {?} array
1856
- * @param {?} query
1857
- * @return {?}
1858
- */
1859
1035
  function find(array, query) {
1860
- /** @type {?} */
1861
1036
  const data = filter(array, query);
1862
1037
  return data.length ? data[0] : null;
1863
1038
  }
1864
1039
 
1865
- /**
1866
- * @fileoverview added by tsickle
1867
- * Generated from: libs/array/find/index.ts
1868
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1869
- */
1870
-
1871
- /**
1872
- * @fileoverview added by tsickle
1873
- * Generated from: libs/array/index.ts
1874
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1875
- */
1876
-
1877
- /**
1878
- * @fileoverview added by tsickle
1879
- * Generated from: libs/util/boolean/boolean.ts
1880
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1881
- */
1882
- /**
1883
- * @param {?} value
1884
- * @return {?}
1885
- */
1886
1040
  function boolean(value) {
1887
- return toString(value).toLowerCase() !== 'false' && !!value;
1041
+ return String(value).toLowerCase() !== 'false' && !!value;
1888
1042
  }
1889
1043
 
1890
- /**
1891
- * @fileoverview added by tsickle
1892
- * Generated from: libs/util/boolean/index.ts
1893
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1894
- */
1895
-
1896
- /**
1897
- * @fileoverview added by tsickle
1898
- * Generated from: libs/util/debounce/debounce.ts
1899
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1900
- */
1901
- /**
1902
- * @param {?} func
1903
- * @param {?} wait
1904
- * @param {?} immediate
1905
- * @return {?}
1906
- */
1907
1044
  function debounce(func, wait, immediate) {
1908
- /** @type {?} */
1909
1045
  let timeout;
1910
- return (/**
1911
- * @return {?}
1912
- */
1913
- function () {
1914
- /** @type {?} */
1915
- const context = this;
1916
- /** @type {?} */
1917
- const args = arguments;
1918
- /** @type {?} */
1919
- const later = (/**
1920
- * @return {?}
1921
- */
1922
- function () {
1046
+ return function () {
1047
+ const context = this, args = arguments;
1048
+ const later = function () {
1923
1049
  timeout = null;
1924
1050
  if (!immediate)
1925
1051
  func.apply(context, args);
1926
- });
1927
- /** @type {?} */
1052
+ };
1928
1053
  const callNow = immediate && !timeout;
1929
1054
  clearTimeout(timeout);
1930
1055
  timeout = setTimeout(later, wait);
1931
1056
  if (callNow)
1932
1057
  func.apply(context, args);
1933
- });
1058
+ };
1934
1059
  }
1935
1060
 
1936
- /**
1937
- * @fileoverview added by tsickle
1938
- * Generated from: libs/util/debounce/index.ts
1939
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1940
- */
1941
-
1942
- /**
1943
- * @fileoverview added by tsickle
1944
- * Generated from: libs/util/guid/index.ts
1945
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1946
- */
1947
-
1948
- /**
1949
- * @fileoverview added by tsickle
1950
- * Generated from: libs/util/keys/keys.ts
1951
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1952
- */
1953
- /** @type {?} */
1954
- const KEY_CANCEL$1 = 3;
1955
- /** @type {?} */
1956
- const KEY_HELP$1 = 6;
1957
- /** @type {?} */
1958
- const KEY_BACKSPACE$1 = 8;
1959
- /** @type {?} */
1960
- const KEY_TAB$1 = 9;
1961
- /** @type {?} */
1962
- const KEY_CLEAR$1 = 12;
1963
- /** @type {?} */
1964
- const KEY_RETURN$1 = 13;
1965
- /** @type {?} */
1966
- const KEY_ENTER$1 = 14;
1967
- /** @type {?} */
1968
- const KEY_SHIFT$1 = 16;
1969
- /** @type {?} */
1970
- const KEY_CONTROL$1 = 17;
1971
- /** @type {?} */
1972
- const KEY_ALT$1 = 18;
1973
- /** @type {?} */
1974
- const KEY_PAUSE$1 = 19;
1975
- /** @type {?} */
1976
- const KEY_CAPS_LOCK$1 = 20;
1977
- /** @type {?} */
1978
- const KEY_ESCAPE$1 = 27;
1979
- /** @type {?} */
1980
- const KEY_SPACE$1 = 32;
1981
- /** @type {?} */
1982
- const KEY_PAGE_UP$1 = 33;
1983
- /** @type {?} */
1984
- const KEY_PAGE_DOWN$1 = 34;
1985
- /** @type {?} */
1986
- const KEY_END$1 = 35;
1987
- /** @type {?} */
1988
- const KEY_HOME$1 = 36;
1989
- /** @type {?} */
1990
- const KEY_LEFT$1 = 37;
1991
- /** @type {?} */
1992
- const KEY_UP$1 = 38;
1993
- /** @type {?} */
1994
- const KEY_RIGHT$1 = 39;
1995
- /** @type {?} */
1996
- const KEY_DOWN$1 = 40;
1997
- /** @type {?} */
1998
- const KEY_PRINTSCREEN$1 = 44;
1999
- /** @type {?} */
2000
- const KEY_INSERT$1 = 45;
2001
- /** @type {?} */
2002
- const KEY_DELETE$1 = 46;
2003
- /** @type {?} */
2004
- const KEY_0$1 = 48;
2005
- /** @type {?} */
2006
- const KEY_1$1 = 49;
2007
- /** @type {?} */
2008
- const KEY_2$1 = 50;
2009
- /** @type {?} */
2010
- const KEY_3$1 = 51;
2011
- /** @type {?} */
2012
- const KEY_4$1 = 52;
2013
- /** @type {?} */
2014
- const KEY_5$1 = 53;
2015
- /** @type {?} */
2016
- const KEY_6$1 = 54;
2017
- /** @type {?} */
2018
- const KEY_7$1 = 55;
2019
- /** @type {?} */
2020
- const KEY_8$1 = 56;
2021
- /** @type {?} */
2022
- const KEY_9$1 = 57;
2023
- /** @type {?} */
2024
- const KEY_SEMICOLON$1 = 59;
2025
- /** @type {?} */
2026
- const KEY_EQUALS$1 = 61;
2027
-
2028
- /**
2029
- * @fileoverview added by tsickle
2030
- * Generated from: libs/util/keys/index.ts
2031
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2032
- */
1061
+ const KEY_CANCEL = 3;
1062
+ const KEY_HELP = 6;
1063
+ const KEY_BACKSPACE = 8;
1064
+ const KEY_TAB = 9;
1065
+ const KEY_CLEAR = 12;
1066
+ const KEY_RETURN = 13;
1067
+ const KEY_ENTER = 14;
1068
+ const KEY_SHIFT = 16;
1069
+ const KEY_CONTROL = 17;
1070
+ const KEY_ALT = 18;
1071
+ const KEY_PAUSE = 19;
1072
+ const KEY_CAPS_LOCK = 20;
1073
+ const KEY_ESCAPE = 27;
1074
+ const KEY_SPACE = 32;
1075
+ const KEY_PAGE_UP = 33;
1076
+ const KEY_PAGE_DOWN = 34;
1077
+ const KEY_END = 35;
1078
+ const KEY_HOME = 36;
1079
+ const KEY_LEFT = 37;
1080
+ const KEY_UP = 38;
1081
+ const KEY_RIGHT = 39;
1082
+ const KEY_DOWN = 40;
1083
+ const KEY_PRINTSCREEN = 44;
1084
+ const KEY_INSERT = 45;
1085
+ const KEY_DELETE = 46;
1086
+ const KEY_0 = 48;
1087
+ const KEY_1 = 49;
1088
+ const KEY_2 = 50;
1089
+ const KEY_3 = 51;
1090
+ const KEY_4 = 52;
1091
+ const KEY_5 = 53;
1092
+ const KEY_6 = 54;
1093
+ const KEY_7 = 55;
1094
+ const KEY_8 = 56;
1095
+ const KEY_9 = 57;
1096
+ const KEY_SEMICOLON = 59;
1097
+ const KEY_EQUALS = 61;
2033
1098
 
2034
- /**
2035
- * @fileoverview added by tsickle
2036
- * Generated from: libs/util/length/length.ts
2037
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2038
- */
2039
- /**
2040
- * @param {?} object
2041
- * @return {?}
2042
- */
2043
1099
  function length(object) {
2044
- if (isObject(object)) {
2045
- return Object.keys(object).length;
2046
- }
2047
- if (isArray(object)) {
1100
+ if (Array.isArray(object)) {
2048
1101
  return object.length;
2049
1102
  }
1103
+ if (object instanceof Object) {
1104
+ return Object.keys(object).length;
1105
+ }
2050
1106
  return 0;
2051
1107
  }
2052
1108
 
2053
- /**
2054
- * @fileoverview added by tsickle
2055
- * Generated from: libs/util/length/index.ts
2056
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2057
- */
2058
-
2059
- /**
2060
- * @fileoverview added by tsickle
2061
- * Generated from: libs/util/resolve/resolve.ts
2062
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2063
- */
2064
- /**
2065
- * @param {?} promise
2066
- * @param {?=} defaults
2067
- * @return {?}
2068
- */
2069
1109
  function resolve(promise, defaults = []) {
2070
- /** @type {?} */
2071
1110
  const result = defaults;
2072
- return new Promise((/**
2073
- * @param {?} resolve
2074
- * @return {?}
2075
- */
2076
- resolve => {
2077
- promise.then((/**
2078
- * @param {?} data
2079
- * @return {?}
2080
- */
2081
- function (data) {
2082
- Object.keys(data).forEach((/**
2083
- * @param {?} key
2084
- * @return {?}
2085
- */
2086
- key => result[key] = data[key]));
1111
+ return new Promise(resolve => {
1112
+ promise.then(function (data) {
1113
+ Object.keys(data).forEach(key => result[key] = data[key]);
2087
1114
  resolve(result);
2088
- }));
2089
- }));
1115
+ });
1116
+ });
2090
1117
  }
2091
1118
 
2092
- /**
2093
- * @fileoverview added by tsickle
2094
- * Generated from: libs/util/resolve/index.ts
2095
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2096
- */
2097
-
2098
- /**
2099
- * @fileoverview added by tsickle
2100
- * Generated from: libs/util/stringify/index.ts
2101
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2102
- */
2103
-
2104
- /**
2105
- * @fileoverview added by tsickle
2106
- * Generated from: libs/util/uuid/uuid.ts
2107
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2108
- */
2109
- /**
2110
- * @return {?}
2111
- */
2112
1119
  function uuid() {
2113
1120
  return guid('xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx');
2114
1121
  }
2115
1122
 
2116
- /**
2117
- * @fileoverview added by tsickle
2118
- * Generated from: libs/util/uuid/index.ts
2119
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2120
- */
2121
-
2122
- /**
2123
- * @fileoverview added by tsickle
2124
- * Generated from: libs/util/value/value.ts
2125
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2126
- */
2127
- /**
2128
- * @param {?} object
2129
- * @param {?} key
2130
- * @param {?} def
2131
- * @return {?}
2132
- */
2133
1123
  function value(object, key, def) {
2134
1124
  if (typeof object === 'object' || Array.isArray(object)) {
2135
1125
  if (object.hasOwnProperty(key)) {
@@ -2139,22 +1129,6 @@ function value(object, key, def) {
2139
1129
  return def;
2140
1130
  }
2141
1131
 
2142
- /**
2143
- * @fileoverview added by tsickle
2144
- * Generated from: libs/util/value/index.ts
2145
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2146
- */
2147
-
2148
- /**
2149
- * @fileoverview added by tsickle
2150
- * Generated from: libs/util/isClass/isClass.ts
2151
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2152
- */
2153
- /**
2154
- * @param {?} value
2155
- * @param {?} cls
2156
- * @return {?}
2157
- */
2158
1132
  function isClass(value, cls) {
2159
1133
  if (typeof value === 'object') {
2160
1134
  if (typeof cls === 'string') {
@@ -2173,85 +1147,25 @@ function isClass(value, cls) {
2173
1147
  return false;
2174
1148
  }
2175
1149
 
2176
- /**
2177
- * @fileoverview added by tsickle
2178
- * Generated from: libs/util/isClass/index.ts
2179
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2180
- */
2181
-
2182
- /**
2183
- * @fileoverview added by tsickle
2184
- * Generated from: libs/util/isNumeric/isNumeric.ts
2185
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2186
- */
2187
- /**
2188
- * @param {?} value
2189
- * @return {?}
2190
- */
2191
1150
  function isNumeric(value) {
2192
- /** @type {?} */
2193
- const str = toString(value);
1151
+ const str = String(value);
2194
1152
  return str.length && !!str.match(/^-?\d*\.?\d*$/);
2195
1153
  }
2196
1154
 
2197
- /**
2198
- * @fileoverview added by tsickle
2199
- * Generated from: libs/util/isNumeric/index.ts
2200
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2201
- */
2202
-
2203
- /**
2204
- * @fileoverview added by tsickle
2205
- * Generated from: libs/util/isEmpty/index.ts
2206
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2207
- */
2208
-
2209
- /**
2210
- * @fileoverview added by tsickle
2211
- * Generated from: libs/util/throttle/throttle.ts
2212
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2213
- */
2214
- /**
2215
- * @param {?} func
2216
- * @param {?} wait
2217
- * @return {?}
2218
- */
2219
1155
  function throttle(func, wait) {
2220
- /** @type {?} */
2221
- let waiting = false;
2222
- return (/**
2223
- * @return {?}
2224
- */
2225
- function () {
1156
+ let waiting = false; // Initially, we're not waiting
1157
+ return function () {
2226
1158
  if (!waiting) { // If we're not waiting
2227
1159
  func.apply(null, arguments); // Execute users function
2228
1160
  waiting = true; // Prevent future invocations
2229
- setTimeout((/**
2230
- * @return {?}
2231
- */
2232
- function () {
1161
+ setTimeout(function () {
2233
1162
  waiting = false; // And allow future invocations
2234
- }), wait);
1163
+ }, wait);
2235
1164
  }
2236
- });
1165
+ };
2237
1166
  }
2238
1167
 
2239
- /**
2240
- * @fileoverview added by tsickle
2241
- * Generated from: libs/util/throttle/index.ts
2242
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2243
- */
2244
-
2245
- /**
2246
- * @fileoverview added by tsickle
2247
- * Generated from: libs/util/queue/operation.ts
2248
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2249
- */
2250
1168
  class Operation {
2251
- /**
2252
- * @param {?} target
2253
- * @param {?=} name
2254
- */
2255
1169
  constructor(target, name) {
2256
1170
  this.ready$ = new Subject();
2257
1171
  this.name = name ? name : guid();
@@ -2262,36 +1176,15 @@ class Operation {
2262
1176
  this.target = of(target);
2263
1177
  }
2264
1178
  }
2265
- }
2266
- if (false) {
2267
- /** @type {?} */
2268
- Operation.prototype.name;
2269
- /** @type {?} */
2270
- Operation.prototype.target;
2271
- /** @type {?} */
2272
- Operation.prototype.ready$;
2273
1179
  }
2274
1180
 
2275
- /**
2276
- * @fileoverview added by tsickle
2277
- * Generated from: libs/util/queue/queue.enum.ts
2278
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2279
- */
2280
- /** @enum {string} */
2281
- const QueueState = {
2282
- Idle: "idle",
2283
- Processing: "processing",
2284
- };
1181
+ var QueueState;
1182
+ (function (QueueState) {
1183
+ QueueState["Idle"] = "idle";
1184
+ QueueState["Processing"] = "processing";
1185
+ })(QueueState || (QueueState = {}));
2285
1186
 
2286
- /**
2287
- * @fileoverview added by tsickle
2288
- * Generated from: libs/util/queue/queue.ts
2289
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2290
- */
2291
1187
  class Queue {
2292
- /**
2293
- * @param {?=} _limit
2294
- */
2295
1188
  constructor(_limit = Infinity) {
2296
1189
  this._limit = _limit;
2297
1190
  this._done = new Subject();
@@ -2303,140 +1196,66 @@ class Queue {
2303
1196
  this._state = QueueState.Idle;
2304
1197
  this._destroy$ = new Subject();
2305
1198
  }
2306
- /**
2307
- * @return {?}
2308
- */
2309
1199
  get total() {
2310
1200
  return this._total;
2311
1201
  }
2312
- /**
2313
- * @return {?}
2314
- */
2315
1202
  get completed() {
2316
1203
  return this._completed;
2317
1204
  }
2318
- /**
2319
- * @return {?}
2320
- */
2321
1205
  get pending() {
2322
1206
  return this._queue.length;
2323
1207
  }
2324
- /**
2325
- * @return {?}
2326
- */
2327
1208
  get inProgress() {
2328
1209
  return this._inProgress.length;
2329
1210
  }
2330
- /**
2331
- * @return {?}
2332
- */
2333
1211
  get errors() {
2334
1212
  return this._errors;
2335
1213
  }
2336
- /**
2337
- * @return {?}
2338
- */
2339
1214
  get state() {
2340
1215
  return this._state;
2341
1216
  }
2342
- /**
2343
- * @return {?}
2344
- */
2345
1217
  get empty() {
2346
1218
  return !this._queue.length && !this._inProgress.length;
2347
1219
  }
2348
- /**
2349
- * @return {?}
2350
- */
2351
1220
  get pendingOperations() {
2352
1221
  return this._queue
2353
- .map((/**
2354
- * @param {?} operation
2355
- * @return {?}
2356
- */
2357
- (operation) => operation.name));
1222
+ .map((operation) => operation.name);
2358
1223
  }
2359
- /**
2360
- * @return {?}
2361
- */
2362
1224
  get inProgressOperations() {
2363
1225
  return this._inProgress
2364
- .map((/**
2365
- * @param {?} operation
2366
- * @return {?}
2367
- */
2368
- (operation) => operation.name));
1226
+ .map((operation) => operation.name);
2369
1227
  }
2370
- /**
2371
- * @return {?}
2372
- */
2373
1228
  isProcessing() {
2374
1229
  return this._state === QueueState.Processing;
2375
1230
  }
2376
- /**
2377
- * @return {?}
2378
- */
2379
1231
  isIdle() {
2380
1232
  return this._state === QueueState.Idle;
2381
1233
  }
2382
- /**
2383
- * @param {?} value
2384
- * @return {?}
2385
- */
2386
1234
  setLimit(value) {
2387
1235
  this._limit = value;
2388
1236
  }
2389
- /**
2390
- * @param {?} fun
2391
- * @param {?=} err
2392
- * @param {?=} complete
2393
- * @return {?}
2394
- */
2395
1237
  subscribe(fun, err, complete) {
2396
1238
  this._done
2397
1239
  .pipe(takeUntil(this._destroy$))
2398
1240
  .subscribe(fun, err, complete);
2399
1241
  }
2400
- /**
2401
- * @param {?} fun
2402
- * @param {?=} err
2403
- * @param {?=} complete
2404
- * @return {?}
2405
- */
2406
1242
  complete(fun, err, complete) {
2407
- Observable.create((/**
2408
- * @param {?} observer
2409
- * @return {?}
2410
- */
2411
- observer => {
1243
+ Observable.create(observer => {
2412
1244
  if (!this.isProcessing()) {
2413
1245
  observer.next();
2414
1246
  observer.complete();
2415
1247
  return;
2416
1248
  }
2417
- this.subscribe((/**
2418
- * @return {?}
2419
- */
2420
- () => {
1249
+ this.subscribe(() => {
2421
1250
  observer.next();
2422
1251
  observer.complete();
2423
- }), (/**
2424
- * @param {?} error
2425
- * @return {?}
2426
- */
2427
- (error) => {
1252
+ }, (error) => {
2428
1253
  observer.error(error);
2429
1254
  this.clear();
2430
- }));
2431
- })).subscribe(fun, err, complete);
1255
+ });
1256
+ }).subscribe(fun, err, complete);
2432
1257
  }
2433
- /**
2434
- * @param {?} target
2435
- * @param {?=} name
2436
- * @return {?}
2437
- */
2438
1258
  push(target, name) {
2439
- /** @type {?} */
2440
1259
  const operation = new Operation(target, name);
2441
1260
  this._total++;
2442
1261
  this._state = QueueState.Processing;
@@ -2448,9 +1267,6 @@ class Queue {
2448
1267
  }
2449
1268
  return operation.ready$;
2450
1269
  }
2451
- /**
2452
- * @return {?}
2453
- */
2454
1270
  clear() {
2455
1271
  this._queue = [];
2456
1272
  this._total = 0;
@@ -2459,36 +1275,19 @@ class Queue {
2459
1275
  this._state = QueueState.Idle;
2460
1276
  this._done = new Subject();
2461
1277
  }
2462
- /**
2463
- * @return {?}
2464
- */
2465
1278
  destroy() {
2466
1279
  this.clear();
2467
1280
  this._done.complete();
2468
1281
  }
2469
- /**
2470
- * @private
2471
- * @param {?} operation
2472
- * @return {?}
2473
- */
2474
1282
  _processOperation(operation) {
2475
1283
  this._inProgress.push(operation);
2476
1284
  operation.target
2477
1285
  .pipe(delay(200), // Hack to prevent extra quick proccess execution
2478
1286
  takeUntil(this._destroy$)).subscribe({
2479
- next: (/**
2480
- * @param {?} data
2481
- * @return {?}
2482
- */
2483
- (data) => {
1287
+ next: (data) => {
2484
1288
  operation.ready$.next(data);
2485
- }),
2486
- error: (/**
2487
- * @param {?} error
2488
- * @return {?}
2489
- */
2490
- (error) => {
2491
- /** @type {?} */
1289
+ },
1290
+ error: (error) => {
2492
1291
  const opIndex = this._inProgress.indexOf(operation);
2493
1292
  this._inProgress.splice(opIndex, 1);
2494
1293
  this._errors++;
@@ -2497,12 +1296,8 @@ class Queue {
2497
1296
  this._state = QueueState.Idle;
2498
1297
  this._done.error(error);
2499
1298
  }
2500
- }),
2501
- complete: (/**
2502
- * @return {?}
2503
- */
2504
- () => {
2505
- /** @type {?} */
1299
+ },
1300
+ complete: () => {
2506
1301
  const opIndex = this._inProgress.indexOf(operation);
2507
1302
  this._inProgress.splice(opIndex, 1);
2508
1303
  this._completed++;
@@ -2513,137 +1308,33 @@ class Queue {
2513
1308
  }
2514
1309
  else {
2515
1310
  if (this._queue.length) {
2516
- /** @type {?} */
2517
1311
  const queueItem = this._queue.shift();
2518
1312
  this._processOperation(queueItem);
2519
1313
  }
2520
1314
  }
2521
- })
1315
+ }
2522
1316
  });
2523
1317
  }
2524
- }
2525
- if (false) {
2526
- /**
2527
- * @type {?}
2528
- * @private
2529
- */
2530
- Queue.prototype._done;
2531
- /**
2532
- * @type {?}
2533
- * @private
2534
- */
2535
- Queue.prototype._queue;
2536
- /**
2537
- * @type {?}
2538
- * @private
2539
- */
2540
- Queue.prototype._inProgress;
2541
- /**
2542
- * @type {?}
2543
- * @private
2544
- */
2545
- Queue.prototype._total;
2546
- /**
2547
- * @type {?}
2548
- * @private
2549
- */
2550
- Queue.prototype._completed;
2551
- /**
2552
- * @type {?}
2553
- * @private
2554
- */
2555
- Queue.prototype._errors;
2556
- /**
2557
- * @type {?}
2558
- * @private
2559
- */
2560
- Queue.prototype._state;
2561
- /**
2562
- * @type {?}
2563
- * @private
2564
- */
2565
- Queue.prototype._destroy$;
2566
- /**
2567
- * @type {?}
2568
- * @private
2569
- */
2570
- Queue.prototype._limit;
2571
1318
  }
2572
1319
 
2573
- /**
2574
- * @fileoverview added by tsickle
2575
- * Generated from: libs/util/queue/index.ts
2576
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2577
- */
2578
-
2579
- /**
2580
- * @fileoverview added by tsickle
2581
- * Generated from: libs/util/remove-query-params/remove-query-params.ts
2582
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2583
- */
2584
- /**
2585
- * @param {?} path
2586
- * @return {?}
2587
- */
2588
1320
  function removeQueryParams(path) {
2589
1321
  return path.split('?')[0];
2590
1322
  }
2591
1323
 
2592
- /**
2593
- * @fileoverview added by tsickle
2594
- * Generated from: libs/util/remove-query-params/index.ts
2595
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2596
- */
2597
-
2598
- /**
2599
- * @fileoverview added by tsickle
2600
- * Generated from: libs/util/get-normalized-path/get-normalized-path.ts
2601
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2602
- */
2603
- /**
2604
- * @param {?} locationSrv
2605
- * @return {?}
2606
- */
2607
1324
  function getNormalizedPath(locationSrv) {
2608
- /** @type {?} */
2609
1325
  const path = locationSrv.prepareExternalUrl(locationSrv.path());
2610
1326
  return removeQueryParams(path);
2611
1327
  }
2612
1328
 
2613
- /**
2614
- * @fileoverview added by tsickle
2615
- * Generated from: libs/util/get-normalized-path/index.ts
2616
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2617
- */
2618
-
2619
- /**
2620
- * @fileoverview added by tsickle
2621
- * Generated from: libs/util/index.ts
2622
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2623
- */
2624
-
2625
- /**
2626
- * @fileoverview added by tsickle
2627
- * Generated from: libs/format/number/index.ts
2628
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2629
- */
1329
+ function round(num, decimalPlaces = 0) {
1330
+ const p = Math.pow(10, decimalPlaces);
1331
+ return Math.round(num * p) / p;
1332
+ }
2630
1333
 
2631
- /**
2632
- * @fileoverview added by tsickle
2633
- * Generated from: libs/format/acronym/acronym.ts
2634
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2635
- */
2636
- /**
2637
- * @param {?} str
2638
- * @param {?=} length
2639
- * @return {?}
2640
- */
2641
1334
  function acronym(str, length = 2) {
2642
- /** @type {?} */
2643
1335
  const splittedString = str
2644
1336
  .replace(/[^a-zA-Z0-9]+/g, ' ')
2645
1337
  .split(' ');
2646
- /** @type {?} */
2647
1338
  let result = '';
2648
1339
  for (let i = 0; i < length; i++) {
2649
1340
  if (!splittedString[i]) {
@@ -2662,108 +1353,31 @@ function acronym(str, length = 2) {
2662
1353
  return result;
2663
1354
  }
2664
1355
 
2665
- /**
2666
- * @fileoverview added by tsickle
2667
- * Generated from: libs/format/acronym/index.ts
2668
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2669
- */
2670
-
2671
- /**
2672
- * @fileoverview added by tsickle
2673
- * Generated from: libs/format/currency/index.ts
2674
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2675
- */
2676
-
2677
- /**
2678
- * @fileoverview added by tsickle
2679
- * Generated from: libs/format/truncate/index.ts
2680
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2681
- */
2682
-
2683
- /**
2684
- * @fileoverview added by tsickle
2685
- * Generated from: libs/format/bytes/index.ts
2686
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2687
- */
2688
-
2689
- /**
2690
- * @fileoverview added by tsickle
2691
- * Generated from: libs/format/index.ts
2692
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2693
- */
2694
-
2695
- /**
2696
- * @fileoverview added by tsickle
2697
- * Generated from: libs/rxjs/delayedRetry.ts
2698
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2699
- */
2700
- /**
2701
- * @param {?} delayMs
2702
- * @param {?=} maxRetry
2703
- * @param {?=} message
2704
- * @return {?}
2705
- */
2706
1356
  function delayedRetry(delayMs, maxRetry = 5, message) {
2707
- /** @type {?} */
2708
1357
  let retries = 0;
2709
- return (/**
2710
- * @param {?} src
2711
- * @return {?}
2712
- */
2713
- (src) => src.pipe(retryWhen((/**
2714
- * @param {?} errors
2715
- * @return {?}
2716
- */
2717
- (errors) => errors.pipe(tap((/**
2718
- * @return {?}
2719
- */
2720
- () => {
1358
+ return (src) => src.pipe(retryWhen((errors) => errors.pipe(tap(() => {
2721
1359
  retries++;
2722
1360
  if (retries <= maxRetry) {
2723
1361
  console.info(`Failed to load Resource. Retry in ${delayMs / 1000} sec. ${retries}/${maxRetry} times...`);
2724
1362
  }
2725
- })), concatMap((/**
2726
- * @param {?} error
2727
- * @return {?}
2728
- */
2729
- (error) => iif((/**
2730
- * @return {?}
2731
- */
2732
- () => retries > maxRetry), throwError(getErrorMessage(maxRetry, message)), timer(delayMs)))))))));
1363
+ }), concatMap((error) => iif(() => retries > maxRetry, throwError(getErrorMessage(maxRetry, message)), timer(delayMs))))));
2733
1364
  }
2734
- /** @type {?} */
2735
- const getErrorMessage = (/**
2736
- * @param {?} maxRetry
2737
- * @param {?} defaultMessage
2738
- * @return {?}
2739
- */
2740
- (maxRetry, defaultMessage) => {
1365
+ const getErrorMessage = (maxRetry, defaultMessage) => {
2741
1366
  if (!defaultMessage) {
2742
1367
  return `Failed to load Resource for ${maxRetry} times. Giving up.`;
2743
1368
  }
2744
1369
  else {
2745
1370
  return defaultMessage;
2746
1371
  }
2747
- });
2748
- const ɵ0 = getErrorMessage;
2749
-
2750
- /**
2751
- * @fileoverview added by tsickle
2752
- * Generated from: libs/index.ts
2753
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
2754
- */
1372
+ };
2755
1373
 
2756
- /**
2757
- * @fileoverview added by tsickle
2758
- * Generated from: public_api.ts
2759
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1374
+ /*
1375
+ * Public API Surface of fs-menu
2760
1376
  */
2761
1377
 
2762
1378
  /**
2763
- * @fileoverview added by tsickle
2764
- * Generated from: firestitch-common.ts
2765
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1379
+ * Generated bundle index. Do not edit.
2766
1380
  */
2767
1381
 
2768
- export { FsArray, FsCommonModule, FsMath, FsUtil, FsValidate, KEY_0$1 as KEY_0, KEY_1$1 as KEY_1, KEY_2$1 as KEY_2, KEY_3$1 as KEY_3, KEY_4$1 as KEY_4, KEY_5$1 as KEY_5, KEY_6$1 as KEY_6, KEY_7$1 as KEY_7, KEY_8$1 as KEY_8, KEY_9$1 as KEY_9, KEY_ALT$1 as KEY_ALT, KEY_BACKSPACE$1 as KEY_BACKSPACE, KEY_CANCEL$1 as KEY_CANCEL, KEY_CAPS_LOCK$1 as KEY_CAPS_LOCK, KEY_CLEAR$1 as KEY_CLEAR, KEY_CONTROL$1 as KEY_CONTROL, KEY_DELETE$1 as KEY_DELETE, KEY_DOWN$1 as KEY_DOWN, KEY_END$1 as KEY_END, KEY_ENTER$1 as KEY_ENTER, KEY_EQUALS$1 as KEY_EQUALS, KEY_ESCAPE$1 as KEY_ESCAPE, KEY_HELP$1 as KEY_HELP, KEY_HOME$1 as KEY_HOME, KEY_INSERT$1 as KEY_INSERT, KEY_LEFT$1 as KEY_LEFT, KEY_PAGE_DOWN$1 as KEY_PAGE_DOWN, KEY_PAGE_UP$1 as KEY_PAGE_UP, KEY_PAUSE$1 as KEY_PAUSE, KEY_PRINTSCREEN$1 as KEY_PRINTSCREEN, KEY_RETURN$1 as KEY_RETURN, KEY_RIGHT$1 as KEY_RIGHT, KEY_SEMICOLON$1 as KEY_SEMICOLON, KEY_SHIFT$1 as KEY_SHIFT, KEY_SPACE$1 as KEY_SPACE, KEY_TAB$1 as KEY_TAB, KEY_UP$1 as KEY_UP, Queue, QueueState, acronym, boolean, bytes, compare, currency, debounce, delayedRetry, email, filter, find, getNormalizedPath, guid, inArray, index, indexOf, isClass, isEmpty, isNumeric, keyExists, ksort, length, list, nameValue, number, ordinalNumber, phone, remove, removeQueryParams, resolve, rsort, sort, stringify, throttle, truncate, url, uuid, value, FsStopPropagationDirective as ɵa, FsPreventDefaultDirective as ɵb, FsAutofocusDirective as ɵc, FsUtilStringifyPipe as ɵd, FsUtilGuidPipe as ɵe, FsUtilIsEmptyPipe as ɵf, FsUtilIsNotEmptyPipe as ɵg, FsFormatNumberPipe as ɵh, FsFormatCurrencyPipe as ɵi, FsFormatTruncatePipe as ɵj, FsFormatBytesPipe as ɵk, FsFormatOrdinalNumberPipe as ɵl };
1382
+ export { FsArray, FsAutofocusDirective, FsCommonModule, FsFormatBytesPipe, FsFormatCurrencyPipe, FsFormatNumberPipe, FsFormatOrdinalNumberPipe, FsFormatTruncatePipe, FsMath, FsPreventDefaultDirective, FsStopPropagationDirective, FsUtil, FsUtilGuidPipe, FsUtilIsEmptyPipe, FsUtilIsNotEmptyPipe, FsUtilStringifyPipe, FsValidate, KEY_0, KEY_1, KEY_2, KEY_3, KEY_4, KEY_5, KEY_6, KEY_7, KEY_8, KEY_9, KEY_ALT, KEY_BACKSPACE, KEY_CANCEL, KEY_CAPS_LOCK, KEY_CLEAR, KEY_CONTROL, KEY_DELETE, KEY_DOWN, KEY_END, KEY_ENTER, KEY_EQUALS, KEY_ESCAPE, KEY_HELP, KEY_HOME, KEY_INSERT, KEY_LEFT, KEY_PAGE_DOWN, KEY_PAGE_UP, KEY_PAUSE, KEY_PRINTSCREEN, KEY_RETURN, KEY_RIGHT, KEY_SEMICOLON, KEY_SHIFT, KEY_SPACE, KEY_TAB, KEY_UP, Queue, QueueState, acronym, boolean, bytes, compare, currency, debounce, delayedRetry, email, filter, find, getNormalizedPath, guid, inArray, index, indexOf, isClass, isEmpty, isNumeric, keyExists, ksort, length, list, nameValue, number, ordinalNumber, phone, remove, removeQueryParams, resolve, round, rsort, sort, stringify, throttle, truncate, url, uuid, value };
2769
1383
  //# sourceMappingURL=firestitch-common.js.map