@firestitch/common 8.0.12 → 12.1.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 (226) 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 +838 -2453
  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 +5 -21
  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 +1 -14
  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/rxjs/keyboard-shortcut.js +18 -0
  72. package/esm2015/libs/util/boolean/boolean.js +1 -10
  73. package/esm2015/libs/util/boolean/index.js +2 -7
  74. package/esm2015/libs/util/debounce/debounce.js +6 -29
  75. package/esm2015/libs/util/debounce/index.js +2 -7
  76. package/esm2015/libs/util/get-normalized-path/get-normalized-path.js +1 -11
  77. package/esm2015/libs/util/get-normalized-path/index.js +1 -6
  78. package/esm2015/libs/util/guid/guid.js +3 -20
  79. package/esm2015/libs/util/guid/index.js +2 -7
  80. package/esm2015/libs/util/index.js +15 -20
  81. package/esm2015/libs/util/isClass/index.js +2 -7
  82. package/esm2015/libs/util/isClass/isClass.js +1 -11
  83. package/esm2015/libs/util/isEmpty/index.js +2 -7
  84. package/esm2015/libs/util/isEmpty/isEmpty.js +1 -11
  85. package/esm2015/libs/util/isNumeric/index.js +2 -7
  86. package/esm2015/libs/util/isNumeric/isNumeric.js +1 -11
  87. package/esm2015/libs/util/keys/index.js +2 -7
  88. package/esm2015/libs/util/keys/keys.js +1 -43
  89. package/esm2015/libs/util/length/index.js +2 -7
  90. package/esm2015/libs/util/length/length.js +1 -10
  91. package/esm2015/libs/util/ordinal-number/ordinal-number.js +1 -13
  92. package/esm2015/libs/util/queue/index.js +2 -7
  93. package/esm2015/libs/util/queue/operation.js +1 -18
  94. package/esm2015/libs/util/queue/queue.enum.js +6 -12
  95. package/esm2015/libs/util/queue/queue.js +14 -168
  96. package/esm2015/libs/util/remove-query-params/index.js +1 -6
  97. package/esm2015/libs/util/remove-query-params/remove-query-params.js +1 -10
  98. package/esm2015/libs/util/resolve/index.js +2 -7
  99. package/esm2015/libs/util/resolve/resolve.js +6 -29
  100. package/esm2015/libs/util/stringify/index.js +2 -7
  101. package/esm2015/libs/util/stringify/stringify.js +1 -10
  102. package/esm2015/libs/util/throttle/index.js +2 -7
  103. package/esm2015/libs/util/throttle/throttle.js +6 -23
  104. package/esm2015/libs/util/uuid/index.js +2 -7
  105. package/esm2015/libs/util/uuid/uuid.js +1 -9
  106. package/esm2015/libs/util/value/index.js +2 -7
  107. package/esm2015/libs/util/value/value.js +1 -12
  108. package/esm2015/libs/validate/email/email.js +1 -10
  109. package/esm2015/libs/validate/email/index.js +2 -7
  110. package/esm2015/libs/validate/index.js +4 -9
  111. package/esm2015/libs/validate/phone/index.js +2 -7
  112. package/esm2015/libs/validate/phone/phone.js +1 -11
  113. package/esm2015/libs/validate/url/index.js +2 -7
  114. package/esm2015/libs/validate/url/url.js +1 -12
  115. package/esm2015/public_api.js +12 -7
  116. package/fesm2015/firestitch-common.js +435 -1809
  117. package/fesm2015/firestitch-common.js.map +1 -1
  118. package/firestitch-common.d.ts +1 -9
  119. package/libs/array/index/index.d.ts +1 -1
  120. package/libs/rxjs/keyboard-shortcut.d.ts +2 -0
  121. package/libs/util/queue/queue.d.ts +9 -9
  122. package/package.json +7 -11
  123. package/public_api.d.ts +10 -0
  124. package/bundles/firestitch-common.umd.min.js +0 -16
  125. package/bundles/firestitch-common.umd.min.js.map +0 -1
  126. package/esm5/app/directives/autofocus.directive.js +0 -45
  127. package/esm5/app/directives/prevent-default.directive.js +0 -32
  128. package/esm5/app/directives/stop-propagation.directive.js +0 -32
  129. package/esm5/app/fs-common.module.js +0 -79
  130. package/esm5/app/pipes/bytes.pipe.js +0 -30
  131. package/esm5/app/pipes/currency.pipe.js +0 -43
  132. package/esm5/app/pipes/number.pipe.js +0 -32
  133. package/esm5/app/pipes/ordinal-number.pipe.js +0 -30
  134. package/esm5/app/pipes/truncate.pipe.js +0 -38
  135. package/esm5/app/pipes/util.pipe.js +0 -100
  136. package/esm5/app/services/array.service.js +0 -491
  137. package/esm5/app/services/math.service.js +0 -42
  138. package/esm5/app/services/util.service.js +0 -608
  139. package/esm5/app/services/vaildate.service.js +0 -63
  140. package/esm5/firestitch-common.js +0 -19
  141. package/esm5/libs/array/compare/compare.js +0 -19
  142. package/esm5/libs/array/compare/index.js +0 -7
  143. package/esm5/libs/array/filter/filter.js +0 -53
  144. package/esm5/libs/array/filter/index.js +0 -7
  145. package/esm5/libs/array/find/find.js +0 -17
  146. package/esm5/libs/array/find/index.js +0 -7
  147. package/esm5/libs/array/inArray/inArray.js +0 -22
  148. package/esm5/libs/array/inArray/index.js +0 -7
  149. package/esm5/libs/array/index/index.js +0 -24
  150. package/esm5/libs/array/index.js +0 -19
  151. package/esm5/libs/array/indexOf/index.js +0 -7
  152. package/esm5/libs/array/indexOf/indexOf.js +0 -31
  153. package/esm5/libs/array/keyExists/index.js +0 -7
  154. package/esm5/libs/array/keyExists/keyExists.js +0 -14
  155. package/esm5/libs/array/ksort/index.js +0 -7
  156. package/esm5/libs/array/ksort/ksort.js +0 -22
  157. package/esm5/libs/array/list/index.js +0 -7
  158. package/esm5/libs/array/list/list.js +0 -31
  159. package/esm5/libs/array/nameValue/index.js +0 -7
  160. package/esm5/libs/array/nameValue/nameValue.js +0 -52
  161. package/esm5/libs/array/remove/index.js +0 -7
  162. package/esm5/libs/array/remove/remove.js +0 -20
  163. package/esm5/libs/array/rsort/index.js +0 -7
  164. package/esm5/libs/array/rsort/rsort.js +0 -15
  165. package/esm5/libs/array/sort/index.js +0 -7
  166. package/esm5/libs/array/sort/sort.js +0 -45
  167. package/esm5/libs/format/acronym/acronym.js +0 -35
  168. package/esm5/libs/format/acronym/index.js +0 -7
  169. package/esm5/libs/format/bytes/bytes.js +0 -23
  170. package/esm5/libs/format/bytes/index.js +0 -7
  171. package/esm5/libs/format/currency/currency.js +0 -23
  172. package/esm5/libs/format/currency/index.js +0 -7
  173. package/esm5/libs/format/index.js +0 -11
  174. package/esm5/libs/format/number/index.js +0 -7
  175. package/esm5/libs/format/number/number.js +0 -14
  176. package/esm5/libs/format/truncate/index.js +0 -7
  177. package/esm5/libs/format/truncate/truncate.js +0 -28
  178. package/esm5/libs/index.js +0 -11
  179. package/esm5/libs/rxjs/delayedRetry.js +0 -65
  180. package/esm5/libs/util/boolean/boolean.js +0 -14
  181. package/esm5/libs/util/boolean/index.js +0 -7
  182. package/esm5/libs/util/debounce/debounce.js +0 -40
  183. package/esm5/libs/util/debounce/index.js +0 -7
  184. package/esm5/libs/util/get-normalized-path/get-normalized-path.js +0 -16
  185. package/esm5/libs/util/get-normalized-path/index.js +0 -7
  186. package/esm5/libs/util/guid/guid.js +0 -37
  187. package/esm5/libs/util/guid/index.js +0 -7
  188. package/esm5/libs/util/index.js +0 -23
  189. package/esm5/libs/util/isClass/index.js +0 -7
  190. package/esm5/libs/util/isClass/isClass.js +0 -28
  191. package/esm5/libs/util/isEmpty/index.js +0 -7
  192. package/esm5/libs/util/isEmpty/isEmpty.js +0 -23
  193. package/esm5/libs/util/isNumeric/index.js +0 -7
  194. package/esm5/libs/util/isNumeric/isNumeric.js +0 -16
  195. package/esm5/libs/util/keys/index.js +0 -7
  196. package/esm5/libs/util/keys/keys.js +0 -80
  197. package/esm5/libs/util/length/index.js +0 -7
  198. package/esm5/libs/util/length/length.js +0 -20
  199. package/esm5/libs/util/ordinal-number/ordinal-number.js +0 -22
  200. package/esm5/libs/util/queue/index.js +0 -8
  201. package/esm5/libs/util/queue/operation.js +0 -30
  202. package/esm5/libs/util/queue/queue.enum.js +0 -12
  203. package/esm5/libs/util/queue/queue.js +0 -367
  204. package/esm5/libs/util/remove-query-params/index.js +0 -7
  205. package/esm5/libs/util/remove-query-params/remove-query-params.js +0 -13
  206. package/esm5/libs/util/resolve/index.js +0 -7
  207. package/esm5/libs/util/resolve/resolve.js +0 -34
  208. package/esm5/libs/util/stringify/index.js +0 -7
  209. package/esm5/libs/util/stringify/stringify.js +0 -13
  210. package/esm5/libs/util/throttle/index.js +0 -7
  211. package/esm5/libs/util/throttle/throttle.js +0 -30
  212. package/esm5/libs/util/uuid/index.js +0 -7
  213. package/esm5/libs/util/uuid/uuid.js +0 -13
  214. package/esm5/libs/util/value/index.js +0 -7
  215. package/esm5/libs/util/value/value.js +0 -20
  216. package/esm5/libs/validate/email/email.js +0 -13
  217. package/esm5/libs/validate/email/index.js +0 -7
  218. package/esm5/libs/validate/index.js +0 -9
  219. package/esm5/libs/validate/phone/index.js +0 -7
  220. package/esm5/libs/validate/phone/phone.js +0 -15
  221. package/esm5/libs/validate/url/index.js +0 -7
  222. package/esm5/libs/validate/url/url.js +0 -23
  223. package/esm5/public_api.js +0 -17
  224. package/fesm5/firestitch-common.js +0 -3284
  225. package/fesm5/firestitch-common.js.map +0 -1
  226. package/firestitch-common.metadata.json +0 -1
@@ -1,68 +1,36 @@
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
4
  import { toString, isObject, isArray } from 'lodash-es';
4
- import { Subject, Observable, of, iif, throwError, timer } from 'rxjs';
5
- import { takeUntil, delay, retryWhen, tap, concatMap } from 'rxjs/operators';
5
+ import { Subject, Observable, of, iif, throwError, timer, fromEvent, merge, combineLatest } from 'rxjs';
6
+ import { takeUntil, delay, retryWhen, tap, concatMap, distinctUntilChanged, share, filter as filter$1 } from 'rxjs/operators';
6
7
 
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
8
  class FsArray {
13
9
  /**
14
- * @deprecated use import { nameValue } from \@firestitch/common/array; instead
15
- * @param {?} array
16
- * @param {?} name
17
- * @param {?} value
18
- * @return {?}
19
- */
10
+ * @deprecated use import { nameValue } from @firestitch/common/array; instead
11
+ */
20
12
  nameValue(array, name, value) {
21
13
  console.warn('@deprecated use import { nameValue } from @firestitch/common/array; instead');
22
- /** @type {?} */
23
14
  let list = [];
24
15
  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) {
16
+ let nameFn = typeof name === 'function' ? name : function (item) { return item[name]; };
17
+ let valueFn = typeof value === 'function' ? value : function (item) { return item[value]; };
18
+ array.forEach(function (item) {
42
19
  list.push({ name: nameFn(item), value: valueFn(item) });
43
- }));
20
+ });
44
21
  }
45
22
  else {
46
- array.forEach((/**
47
- * @param {?} name
48
- * @param {?} value
49
- * @return {?}
50
- */
51
- function (name, value) {
23
+ array.forEach(function (name, value) {
52
24
  list.push({ name: name, value: value });
53
- }));
25
+ });
54
26
  }
55
27
  return list;
56
28
  }
57
29
  /**
58
- * @deprecated use import { remove } from \@firestitch/common/array; instead
59
- * @param {?} array
60
- * @param {?} query
61
- * @return {?}
62
- */
30
+ * @deprecated use import { remove } from @firestitch/common/array; instead
31
+ */
63
32
  remove(array, query) {
64
33
  console.warn('@deprecated use import { remove } from @firestitch/common/array; instead');
65
- /** @type {?} */
66
34
  let idx = this.indexOf(array, query);
67
35
  if (idx >= 0) {
68
36
  return array.splice(idx, 1);
@@ -70,23 +38,15 @@ class FsArray {
70
38
  return idx;
71
39
  }
72
40
  /**
73
- * @deprecated use import { indexOf } from \@firestitch/common/array; instead
74
- * @param {?} array
75
- * @param {?} query
76
- * @return {?}
77
- */
41
+ * @deprecated use import { indexOf } from @firestitch/common/array; instead
42
+ */
78
43
  indexOf(array, query) {
79
44
  console.warn('@deprecated use import { indexOf } from @firestitch/common/array; instead');
80
45
  if (typeof query !== 'function') {
81
- /** @type {?} */
82
46
  let queryObj = query;
83
- query = (/**
84
- * @param {?} item
85
- * @return {?}
86
- */
87
- (item) => {
47
+ query = (item) => {
88
48
  return this.compare(queryObj, item);
89
- });
49
+ };
90
50
  }
91
51
  for (let i = 0, len = array.length; i < len; i++) {
92
52
  if (query(array[i])) {
@@ -96,14 +56,10 @@ class FsArray {
96
56
  return -1;
97
57
  }
98
58
  /**
99
- * @deprecated use import { compare } from \@firestitch/common/array; instead
100
- * @param {?} query
101
- * @param {?} item
102
- * @return {?}
103
- */
59
+ * @deprecated use import { compare } from @firestitch/common/array; instead
60
+ */
104
61
  compare(query, item) {
105
62
  console.warn('@deprecated use import { compare } from @firestitch/common/array; instead');
106
- /** @type {?} */
107
63
  let value = true;
108
64
  for (let key in query) {
109
65
  value = value && item[key] == query[key];
@@ -111,89 +67,51 @@ class FsArray {
111
67
  return value;
112
68
  }
113
69
  /**
114
- * @deprecated use import { filter } from \@firestitch/common/array; instead
115
- * @param {?} array
116
- * @param {?} query
117
- * @return {?}
118
- */
70
+ * @deprecated use import { filter } from @firestitch/common/array; instead
71
+ */
119
72
  filter(array, query) {
120
73
  console.warn('@deprecated use import { filter } from @firestitch/common/array; instead');
121
74
  if (typeof query !== 'function') {
122
- /** @type {?} */
123
75
  let queryObj = query;
124
- query = (/**
125
- * @param {?} item
126
- * @return {?}
127
- */
128
- (item) => {
76
+ query = (item) => {
129
77
  return this.compare(queryObj, item);
130
- });
78
+ };
131
79
  }
132
- /** @type {?} */
133
80
  let isarray = Array.isArray(array);
134
- /** @type {?} */
135
81
  let list = isarray ? [] : {};
136
82
  if (isarray)
137
- array.forEach((/**
138
- * @param {?} item
139
- * @param {?} idx
140
- * @return {?}
141
- */
142
- function (item, idx) {
83
+ array.forEach(function (item, idx) {
143
84
  if (query(item)) {
144
85
  list.push(item);
145
86
  }
146
- }));
87
+ });
147
88
  else
148
- Object.keys(array).forEach((/**
149
- * @param {?} key
150
- * @return {?}
151
- */
152
- key => {
89
+ Object.keys(array).forEach(key => {
153
90
  if (query(array[key])) {
154
91
  list[key] = array[key];
155
92
  }
156
- }));
93
+ });
157
94
  return list;
158
95
  }
159
96
  /**
160
- * @deprecated use import { index } from \@firestitch/common/array; instead
161
- * @param {?} array
162
- * @param {?} property
163
- * @return {?}
164
- */
97
+ * @deprecated use import { index } from @firestitch/common/array; instead
98
+ */
165
99
  index(array, property) {
166
100
  console.warn('@deprecated use import { index } from @firestitch/common/array; instead');
167
- /** @type {?} */
168
101
  let list = {};
169
- array.forEach((/**
170
- * @param {?} item
171
- * @param {?} idx
172
- * @return {?}
173
- */
174
- function (item, idx) {
102
+ array.forEach(function (item, idx) {
175
103
  list[item[property]] = item;
176
- }));
104
+ });
177
105
  return list;
178
106
  }
179
107
  /**
180
- * @deprecated use import { sort } from \@firestitch/common/array; instead
181
- * @param {?} array
182
- * @param {?} query
183
- * @param {?=} reverse
184
- * @return {?}
185
- */
108
+ * @deprecated use import { sort } from @firestitch/common/array; instead
109
+ */
186
110
  sort(array, query, reverse = false) {
187
111
  console.warn('@deprecated use import { sort } from @firestitch/common/array; instead');
188
112
  if (typeof query !== 'function') {
189
- /** @type {?} */
190
113
  let queryStr = query;
191
- query = (/**
192
- * @param {?} a
193
- * @param {?} b
194
- * @return {?}
195
- */
196
- function (a, b) {
114
+ query = function (a, b) {
197
115
  if (reverse) {
198
116
  if (a[queryStr] < b[queryStr]) {
199
117
  return 1;
@@ -211,96 +129,61 @@ class FsArray {
211
129
  }
212
130
  }
213
131
  return 0;
214
- });
132
+ };
215
133
  }
216
134
  array.sort(query);
217
135
  return array;
218
136
  }
219
137
  /**
220
- * @deprecated use import { rsort } from \@firestitch/common/array; instead
221
- * @param {?} array
222
- * @param {?} query
223
- * @return {?}
224
- */
138
+ * @deprecated use import { rsort } from @firestitch/common/array; instead
139
+ */
225
140
  rsort(array, query) {
226
141
  console.warn('@deprecated use import { rsort } from @firestitch/common/array; instead');
227
142
  return this.sort(array, query, true);
228
143
  }
229
144
  /**
230
- * @deprecated use import { list } from \@firestitch/common/array; instead
231
- * @param {?} array
232
- * @param {?} property
233
- * @param {?=} index
234
- * @return {?}
235
- */
145
+ * @deprecated use import { list } from @firestitch/common/array; instead
146
+ */
236
147
  list(array, property, index = null) {
237
148
  console.warn('@deprecated use import { list } from @firestitch/common/array; instead');
238
- /** @type {?} */
239
149
  let list = index ? {} : [];
240
- array.forEach((/**
241
- * @param {?} item
242
- * @param {?} idx
243
- * @return {?}
244
- */
245
- function (item, idx) {
150
+ array.forEach(function (item, idx) {
246
151
  if (index) {
247
152
  list[item[index]] = item[property];
248
153
  }
249
154
  else {
250
155
  list.push(item[property]);
251
156
  }
252
- }));
157
+ });
253
158
  return list;
254
159
  }
255
160
  /**
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
- */
161
+ * @deprecated use import { applyDepth } from @firestitch/common/array; instead
162
+ */
263
163
  applyDepth(objects, parent_property, id_property = 'id', depth_property = 'depth') {
264
164
  console.warn('@deprecated use import { applyDepth } from @firestitch/common/array; instead');
265
- /** @type {?} */
266
165
  let keyed = {};
267
- objects.forEach((/**
268
- * @param {?} object
269
- * @return {?}
270
- */
271
- function (object) {
166
+ objects.forEach(function (object) {
272
167
  if (!object[parent_property]) {
273
168
  object[depth_property] = 0;
274
169
  }
275
170
  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 {?} */
171
+ });
172
+ Object.keys(keyed).forEach(key => {
173
+ Object.keys(keyed).forEach(key => {
288
174
  let object = keyed[key];
289
175
  if (!keyed[key][depth_property]) {
290
176
  if (keyed[key][parent_property]) {
291
177
  keyed[key][depth_property] = keyed[keyed[key][parent_property]][depth_property] + 1;
292
178
  }
293
179
  }
294
- }));
295
- }));
180
+ });
181
+ });
296
182
  return keyed;
297
183
  }
298
184
  /**
299
- * @deprecated use import { inArray } from \@firestitch/common/array; instead
300
- * @param {?} values
301
- * @param {?} array
302
- * @return {?}
303
- */
185
+ * @deprecated use import { inArray } from @firestitch/common/array; instead
186
+ */
304
187
  inArray(values, array) {
305
188
  console.warn('@deprecated use import { inArray } from @firestitch/common/array; instead');
306
189
  if (!Array.isArray(values)) {
@@ -314,154 +197,57 @@ class FsArray {
314
197
  return false;
315
198
  }
316
199
  /**
317
- * @deprecated use import { keyExists } from \@firestitch/common/array; instead
318
- * @param {?} array
319
- * @param {?} key
320
- * @return {?}
321
- */
200
+ * @deprecated use import { keyExists } from @firestitch/common/array; instead
201
+ */
322
202
  keyExists(array, key) {
323
203
  console.warn('@deprecated use import { keyExists } from @firestitch/common/array; instead');
324
204
  return array.hasOwnProperty(key);
325
205
  }
326
206
  /**
327
- * @deprecated use import { length } from \@firestitch/common/array; instead
328
- * @param {?} array
329
- * @return {?}
330
- */
207
+ * @deprecated use import { length } from @firestitch/common/array; instead
208
+ */
331
209
  length(array) {
332
210
  console.warn('@deprecated use import { length } from @firestitch/common/array; instead');
333
211
  return array.length;
334
212
  }
335
213
  /**
336
- * @deprecated use import { ksort } from \@firestitch/common/array; instead
337
- * @param {?} unordered
338
- * @return {?}
339
- */
214
+ * @deprecated use import { ksort } from @firestitch/common/array; instead
215
+ */
340
216
  ksort(unordered) {
341
217
  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 {?} */
218
+ Object.keys(unordered).sort().forEach(function (key) {
348
219
  let value = unordered[key];
349
220
  delete unordered[key];
350
221
  unordered[key] = value;
351
- }));
222
+ });
352
223
  }
353
224
  }
354
- FsArray.decorators = [
355
- { type: Injectable }
356
- ];
225
+ FsArray.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsArray, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
226
+ FsArray.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsArray });
227
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsArray, decorators: [{
228
+ type: Injectable
229
+ }] });
357
230
 
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
231
  class FsMath {
364
232
  /**
365
- * @deprecated use _.round() instead {\@link https://lodash.com/docs/4.17.5#round}
366
- * @param {?} number
367
- * @param {?} precision
368
- * @return {?}
369
- */
233
+ * @deprecated use _.round() instead {@link https://lodash.com/docs/4.17.5#round}
234
+ */
370
235
  round(number, precision) {
371
236
  console.warn('@deprecated use _.round() instead {@link https://lodash.com/docs/4.17.5#round}');
372
237
  precision = precision || 0;
373
- /** @type {?} */
374
238
  let factor = Math.pow(10, precision);
375
- /** @type {?} */
376
239
  let tempNumber = number * factor;
377
- /** @type {?} */
378
240
  let roundedTempNumber = Math.round(tempNumber);
379
241
  return roundedTempNumber / factor;
380
242
  }
381
243
  }
382
- FsMath.decorators = [
383
- { type: Injectable }
384
- ];
244
+ FsMath.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsMath, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
245
+ FsMath.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsMath });
246
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsMath, decorators: [{
247
+ type: Injectable
248
+ }] });
385
249
 
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;
250
+ 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
251
  /*
466
252
  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
253
  There might be a better way to organise constatns but I need to know use-cases
@@ -471,67 +257,39 @@ class FsUtil {
471
257
  this.intervals = {};
472
258
  }
473
259
  /**
474
- * @deprecated use \@firestitch/common/util/guid instead
475
- * @param {?=} pattern
476
- * @return {?}
477
- */
260
+ * @deprecated use @firestitch/common/util/guid instead
261
+ */
478
262
  guid(pattern) {
479
263
  console.warn('@deprecated use @firestitch/common/util/guid instead');
480
264
  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);
265
+ return pattern.replace(/[xy]/g, function (c) {
266
+ var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
490
267
  return v.toString(16);
491
- }));
268
+ });
492
269
  }
493
270
  /**
494
- * @deprecated use import { uuid } from \@firestitch/common/util; instead
495
- * @return {?}
496
- */
271
+ * @deprecated use import { uuid } from @firestitch/common/util; instead
272
+ */
497
273
  uuid() {
498
274
  console.warn('@deprecated use @firestitch/common/util/uuid instead');
499
275
  return this.guid('xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx');
500
276
  }
501
277
  /**
502
- * @deprecated use import { resolve } from \@firestitch/common/util; instead
503
- * @param {?} promise
504
- * @param {?=} defaults
505
- * @return {?}
506
- */
278
+ * @deprecated use import { resolve } from @firestitch/common/util; instead
279
+ */
507
280
  resolve(promise, defaults = []) {
508
281
  console.warn('@deprecated use @firestitch/common/util/resolve instead');
509
- /** @type {?} */
510
282
  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]));
283
+ return new Promise(resolve => {
284
+ promise.then(function (data) {
285
+ Object.keys(data).forEach(key => result[key] = data[key]);
526
286
  resolve(result);
527
- }));
528
- }));
287
+ });
288
+ });
529
289
  }
530
290
  /**
531
291
  * @deprecated use _.toInteger() instead
532
- * @param {?} value
533
- * @return {?}
534
- */
292
+ */
535
293
  int(value) {
536
294
  console.warn('@deprecated use _.toInteger() instead');
537
295
  value = parseInt(value);
@@ -542,9 +300,7 @@ class FsUtil {
542
300
  }
543
301
  /**
544
302
  * @deprecated use _.toFinite() instead
545
- * @param {?} value
546
- * @return {?}
547
- */
303
+ */
548
304
  float(value) {
549
305
  console.warn('@deprecated use _.toFinite() instead');
550
306
  value = parseFloat(value);
@@ -555,9 +311,7 @@ class FsUtil {
555
311
  }
556
312
  /**
557
313
  * @deprecated use _.toString() instead
558
- * @param {?} string
559
- * @return {?}
560
- */
314
+ */
561
315
  string(string) {
562
316
  console.warn('@deprecated use _.toString() instead');
563
317
  if (string === null || string === undefined) {
@@ -566,11 +320,8 @@ class FsUtil {
566
320
  return (string).toString();
567
321
  }
568
322
  /**
569
- * @deprecated use import { isEmpty } from \@firestitch/common/util; instead
570
- * @param {?} value
571
- * @param {?=} options
572
- * @return {?}
573
- */
323
+ * @deprecated use import { isEmpty } from @firestitch/common/util; instead
324
+ */
574
325
  isEmpty(value, options) {
575
326
  console.warn('@deprecated use import { isEmpty } from @firestitch/common/util; instead');
576
327
  options = options || {};
@@ -585,13 +336,9 @@ class FsUtil {
585
336
  }
586
337
  /**
587
338
  * @deprecated use _.isInteger() instead
588
- * @param {?} value
589
- * @param {?=} type
590
- * @return {?}
591
- */
339
+ */
592
340
  isInt(value, type) {
593
341
  console.warn('@deprecated use _.isInteger() instead');
594
- /** @type {?} */
595
342
  const int = !!this.string(value).match(/^\d+$/);
596
343
  if (!int) {
597
344
  return false;
@@ -602,67 +349,49 @@ class FsUtil {
602
349
  return true;
603
350
  }
604
351
  /**
605
- * @deprecated use _.each() instead {\@link https://lodash.com/docs/4.17.5#forEach}
606
- * @param {?} object
607
- * @param {?} func
608
- * @return {?}
609
- */
352
+ * @deprecated use _.each() instead {@link https://lodash.com/docs/4.17.5#forEach}
353
+ */
610
354
  each(object, func) {
611
355
  console.warn('@deprecated use _.each() instead {@link https://lodash.com/docs/4.17.5#forEach}');
612
356
  if (!this.isArray(object) && !this.isObject(object)) {
613
357
  return;
614
358
  }
615
- Object.keys(object).forEach((/**
616
- * @param {?} key
617
- * @return {?}
618
- */
619
- function (key) {
359
+ Object.keys(object).forEach(function (key) {
620
360
  func(object[key], key);
621
- }));
361
+ });
622
362
  }
623
363
  /**
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
- */
364
+ * @deprecated use _.isArrayLikeObject() {@link https://lodash.com/docs/4.17.5#isArrayLikeObject}
365
+ * or _.isObject() {@link https://lodash.com/docs/4.17.5#isObject} instead
366
+ */
629
367
  isObject(value) {
630
368
  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
369
  return value !== null && typeof value === 'object' && !this.isArray(value);
632
370
  }
633
371
  /**
634
- * @deprecated use _.isString() instead {\@link https://lodash.com/docs/4.17.5#isString}
635
- * @param {?} value
636
- * @return {?}
637
- */
372
+ * @deprecated use _.isString() instead {@link https://lodash.com/docs/4.17.5#isString}
373
+ */
638
374
  isString(value) {
639
375
  console.warn('@deprecated use _.isString() instead {@link https://lodash.com/docs/4.17.5#isString}');
640
376
  return typeof value === 'string' || value instanceof String;
641
377
  }
642
378
  /**
643
- * @deprecated use _.isArray() instead {\@link https://lodash.com/docs/4.17.5#isArray}
644
- * @param {?} value
645
- * @return {?}
646
- */
379
+ * @deprecated use _.isArray() instead {@link https://lodash.com/docs/4.17.5#isArray}
380
+ */
647
381
  isArray(value) {
648
382
  console.warn('@deprecated use _.isArray() instead {@link https://lodash.com/docs/4.17.5#isArray}');
649
383
  return value instanceof Array;
650
384
  }
651
385
  /**
652
- * @deprecated use import { isNumeric } from \@firestitch/common/util; instead
653
- * @param {?} value
654
- * @return {?}
655
- */
386
+ * @deprecated use import { isNumeric } from @firestitch/common/util; instead
387
+ */
656
388
  isNumeric(value) {
657
389
  console.warn('@deprecated use import { isNumeric } from @firestitch/common/util; instead');
658
390
  return this.string(value).length && !!this.string(value).match(/^-?\d*\.?\d*$/);
659
391
  }
660
392
  /**
661
- * @deprecated use import { isClass } from \@firestitch/common/util; instead
662
- * @param {?} value
663
- * @param {?} cls
664
- * @return {?}
665
- */
393
+ * @deprecated use import { isClass } from @firestitch/common/util; instead
394
+ */
666
395
  isClass(value, cls) {
667
396
  console.warn('@deprecated use import { isClass } from @firestitch/common/util; instead');
668
397
  if (this.isObject(value)) {
@@ -682,21 +411,15 @@ class FsUtil {
682
411
  return false;
683
412
  }
684
413
  /**
685
- * @deprecated use _.isBoolean() instead {\@link https://lodash.com/docs/4.17.5#isBoolean}
686
- * @param {?} value
687
- * @return {?}
688
- */
414
+ * @deprecated use _.isBoolean() instead {@link https://lodash.com/docs/4.17.5#isBoolean}
415
+ */
689
416
  isBoolean(value) {
690
417
  console.warn('@deprecated use _.isBoolean() instead {@link https://lodash.com/docs/4.17.5#isBoolean}');
691
418
  return value === true || value === false;
692
419
  }
693
420
  /**
694
- * @deprecated use import { value } from \@firestitch/common/util; instead
695
- * @param {?} object
696
- * @param {?} key
697
- * @param {?} def
698
- * @return {?}
699
- */
421
+ * @deprecated use import { value } from @firestitch/common/util; instead
422
+ */
700
423
  value(object, key, def) {
701
424
  console.warn('@deprecated use import { value } from @firestitch/common/util; instead');
702
425
  if (this.isObject(object) || this.isArray(object)) {
@@ -706,72 +429,42 @@ class FsUtil {
706
429
  }
707
430
  return def;
708
431
  }
709
- /**
710
- * @param {?} func
711
- * @param {?} wait
712
- * @return {?}
713
- */
714
432
  throttle(func, wait) {
715
433
  console.warn('@deprecated use import { throttle } from @firestitch/common/util; instead');
716
- /** @type {?} */
717
- let waiting = false;
718
- return (/**
719
- * @return {?}
720
- */
721
- function () {
434
+ let waiting = false; // Initially, we're not waiting
435
+ return function () {
722
436
  if (!waiting) { // If we're not waiting
723
437
  func.apply(null, arguments); // Execute users function
724
438
  waiting = true; // Prevent future invocations
725
- setTimeout((/**
726
- * @return {?}
727
- */
728
- function () {
439
+ setTimeout(function () {
729
440
  waiting = false; // And allow future invocations
730
- }), wait);
441
+ }, wait);
731
442
  }
732
- });
443
+ };
733
444
  }
734
445
  /**
735
- * @deprecated use import { debounce } from \@firestitch/common/util; instead
736
- * @param {?} func
737
- * @param {?} wait
738
- * @param {?} immediate
739
- * @return {?}
740
- */
446
+ * @deprecated use import { debounce } from @firestitch/common/util; instead
447
+ */
741
448
  debounce(func, wait, immediate) {
742
449
  console.warn('@deprecated use import { debounce } from @firestitch/common/util; instead');
743
- /** @type {?} */
744
450
  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 () {
451
+ return function () {
452
+ var context = this, args = arguments;
453
+ var later = function () {
758
454
  timeout = null;
759
455
  if (!immediate)
760
456
  func.apply(context, args);
761
- });
762
- /** @type {?} */
457
+ };
763
458
  var callNow = immediate && !timeout;
764
459
  clearTimeout(timeout);
765
460
  timeout = setTimeout(later, wait);
766
461
  if (callNow)
767
462
  func.apply(context, args);
768
- });
463
+ };
769
464
  }
770
465
  /**
771
- * @deprecated use import { length } from \@firestitch/common/util; instead
772
- * @param {?} object
773
- * @return {?}
774
- */
466
+ * @deprecated use import { length } from @firestitch/common/util; instead
467
+ */
775
468
  length(object) {
776
469
  console.warn('@deprecated use import { length } from @firestitch/common/util; instead');
777
470
  if (this.isObject(object)) {
@@ -783,107 +476,56 @@ class FsUtil {
783
476
  return 0;
784
477
  }
785
478
  /**
786
- * @deprecated use import { boolean } from \@firestitch/common/util; instead
787
- * @param {?} value
788
- * @return {?}
789
- */
479
+ * @deprecated use import { boolean } from @firestitch/common/util; instead
480
+ */
790
481
  boolean(value) {
791
482
  console.warn('@deprecated use import { boolean } from @firestitch/common/util; instead');
792
483
  return this.string(value).toLowerCase() !== 'false' && !!value;
793
484
  }
794
485
  /**
795
- * @deprecated use import { stringify } from \@firestitch/common/util; instead
796
- * @param {?} value
797
- * @return {?}
798
- */
486
+ * @deprecated use import { stringify } from @firestitch/common/util; instead
487
+ */
799
488
  stringify(value) {
800
489
  console.warn('@deprecated use import { stringify } from @firestitch/common/util; instead');
801
490
  return JSON.stringify(value);
802
491
  }
803
492
  }
804
- FsUtil.decorators = [
805
- { type: Injectable }
806
- ];
807
- if (false) {
808
- /**
809
- * @type {?}
810
- * @private
811
- */
812
- FsUtil.prototype.intervals;
813
- }
493
+ FsUtil.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsUtil, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
494
+ FsUtil.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsUtil });
495
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsUtil, decorators: [{
496
+ type: Injectable
497
+ }] });
814
498
 
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
499
  class FsValidate {
821
- /**
822
- * @param {?} fsUtil
823
- */
824
500
  constructor(fsUtil) {
825
501
  this.fsUtil = fsUtil;
826
502
  }
827
503
  /**
828
- * @deprecated use import { email } from \@firestitch/common/validate; instead
829
- * @param {?} value
830
- * @return {?}
831
- */
504
+ * @deprecated use import { email } from @firestitch/common/validate; instead
505
+ */
832
506
  phone(value) {
833
- /** @type {?} */
834
507
  const valid = /^[\+]?[(]?[0-9]{3}[)]?[-\s\.]?[0-9]{3}[-\s\.]?[0-9]{4,6}$/.test(value);
835
508
  return valid || !String(value).length;
836
509
  }
837
510
  /**
838
- * @deprecated use import { email } from \@firestitch/common/validate; instead
839
- * @param {?} value
840
- * @return {?}
841
- */
511
+ * @deprecated use import { email } from @firestitch/common/validate; instead
512
+ */
842
513
  email(value) {
843
514
  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
515
  }
845
516
  }
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
- }
517
+ FsValidate.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsValidate, deps: [{ token: FsUtil }], target: i0.ɵɵFactoryTarget.Injectable });
518
+ FsValidate.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsValidate });
519
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsValidate, decorators: [{
520
+ type: Injectable
521
+ }], ctorParameters: function () { return [{ type: FsUtil }]; } });
860
522
 
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
523
  function stringify(value) {
871
524
  return JSON.stringify(value);
872
525
  }
873
526
 
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
527
  function guid(pattern, options = { case: 'lower', numbers: true }) {
885
528
  pattern = pattern || 'xxxxxx';
886
- /** @type {?} */
887
529
  let s = '';
888
530
  if (options.numbers !== false) {
889
531
  s = '0123456789';
@@ -894,29 +536,13 @@ function guid(pattern, options = { case: 'lower', numbers: true }) {
894
536
  if (options.case === 'upper' || options.case === 'mixed') {
895
537
  s = s.concat('ABCDEFGHIJKLMNOPQRSTUVWXYZ');
896
538
  }
897
- /** @type {?} */
898
539
  const chars = s.match(/(.{1,1})/g);
899
- return pattern.replace(/[x]/g, (/**
900
- * @param {?} c
901
- * @return {?}
902
- */
903
- function (c) {
904
- /** @type {?} */
540
+ return pattern.replace(/[x]/g, function (c) {
905
541
  const i = (Math.random() * chars.length) | 0;
906
542
  return chars[i];
907
- }));
543
+ });
908
544
  }
909
545
 
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
546
  function isEmpty(value, options) {
921
547
  options = options || {};
922
548
  return value === undefined ||
@@ -929,180 +555,109 @@ function isEmpty(value, options) {
929
555
  (!options.zero && (value === 0 || value === '0'));
930
556
  }
931
557
 
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
558
  class FsUtilStringifyPipe {
938
559
  constructor() { }
939
- /**
940
- * @param {?} value
941
- * @return {?}
942
- */
943
560
  transform(value) {
944
561
  return stringify(value);
945
562
  }
946
563
  }
947
- FsUtilStringifyPipe.decorators = [
948
- { type: Pipe, args: [{
949
- name: 'fsUtilStringify'
950
- },] }
951
- ];
952
- /** @nocollapse */
953
- FsUtilStringifyPipe.ctorParameters = () => [];
564
+ FsUtilStringifyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsUtilStringifyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
565
+ FsUtilStringifyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsUtilStringifyPipe, name: "fsUtilStringify" });
566
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsUtilStringifyPipe, decorators: [{
567
+ type: Pipe,
568
+ args: [{
569
+ name: 'fsUtilStringify'
570
+ }]
571
+ }], ctorParameters: function () { return []; } });
954
572
  class FsUtilGuidPipe {
955
573
  constructor() { }
956
- /**
957
- * @return {?}
958
- */
959
574
  transform() {
960
575
  return guid();
961
576
  }
962
577
  }
963
- FsUtilGuidPipe.decorators = [
964
- { type: Pipe, args: [{
965
- name: 'fsUtilGuid'
966
- },] }
967
- ];
968
- /** @nocollapse */
969
- FsUtilGuidPipe.ctorParameters = () => [];
578
+ FsUtilGuidPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsUtilGuidPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
579
+ FsUtilGuidPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsUtilGuidPipe, name: "fsUtilGuid" });
580
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsUtilGuidPipe, decorators: [{
581
+ type: Pipe,
582
+ args: [{
583
+ name: 'fsUtilGuid'
584
+ }]
585
+ }], ctorParameters: function () { return []; } });
970
586
  class FsUtilIsEmptyPipe {
971
- /**
972
- * @param {?} value
973
- * @return {?}
974
- */
975
587
  transform(value) {
976
588
  return isEmpty(value);
977
589
  }
978
590
  }
979
- FsUtilIsEmptyPipe.decorators = [
980
- { type: Pipe, args: [{
981
- name: 'fsUtilIsEmpty'
982
- },] }
983
- ];
591
+ FsUtilIsEmptyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsUtilIsEmptyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
592
+ FsUtilIsEmptyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsUtilIsEmptyPipe, name: "fsUtilIsEmpty" });
593
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsUtilIsEmptyPipe, decorators: [{
594
+ type: Pipe,
595
+ args: [{
596
+ name: 'fsUtilIsEmpty'
597
+ }]
598
+ }] });
984
599
  class FsUtilIsNotEmptyPipe {
985
- /**
986
- * @param {?} value
987
- * @return {?}
988
- */
989
600
  transform(value) {
990
601
  return !isEmpty(value);
991
602
  }
992
603
  }
993
- FsUtilIsNotEmptyPipe.decorators = [
994
- { type: Pipe, args: [{
995
- name: 'fsUtilIsNotEmpty'
996
- },] }
997
- ];
604
+ FsUtilIsNotEmptyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsUtilIsNotEmptyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
605
+ FsUtilIsNotEmptyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsUtilIsNotEmptyPipe, name: "fsUtilIsNotEmpty" });
606
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsUtilIsNotEmptyPipe, decorators: [{
607
+ type: Pipe,
608
+ args: [{
609
+ name: 'fsUtilIsNotEmpty'
610
+ }]
611
+ }] });
998
612
 
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
613
  function number(value, decimals) {
1010
614
  return Number(value || 0).toLocaleString(undefined, { maximumFractionDigits: decimals });
1011
615
  }
1012
616
 
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
617
  class FsFormatNumberPipe {
1019
- /**
1020
- * @param {?} value
1021
- * @param {?=} decimals
1022
- * @return {?}
1023
- */
1024
618
  transform(value, decimals) {
1025
619
  return number(value, decimals);
1026
620
  }
1027
621
  }
1028
- FsFormatNumberPipe.decorators = [
1029
- { type: Pipe, args: [{
1030
- name: 'fsFormatNumber'
1031
- },] }
1032
- ];
622
+ FsFormatNumberPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormatNumberPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
623
+ FsFormatNumberPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormatNumberPipe, name: "fsFormatNumber" });
624
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormatNumberPipe, decorators: [{
625
+ type: Pipe,
626
+ args: [{
627
+ name: 'fsFormatNumber'
628
+ }]
629
+ }] });
1033
630
 
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
631
  function currency(amount, precision = [2, 10], currencyCode = 'USD', locale = 'en-US') {
1047
- /** @type {?} */
1048
632
  const digitsInfo = isArray(precision) ? precision : [precision, precision];
1049
633
  return new CurrencyPipe(locale).transform(amount, currencyCode, 'symbol', `1.${digitsInfo[0]}-${digitsInfo[1]}`);
1050
634
  }
1051
635
 
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
636
  class FsFormatCurrencyPipe {
1058
- /**
1059
- * @param {?} locale
1060
- */
1061
637
  constructor(locale) {
1062
638
  this.locale = locale;
1063
639
  }
1064
- /**
1065
- * @param {?} amount
1066
- * @param {?=} precision
1067
- * @param {?=} currencyCode
1068
- * @return {?}
1069
- */
1070
640
  transform(amount, precision, currencyCode) {
1071
641
  return currency(amount, precision, currencyCode);
1072
642
  }
1073
643
  }
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
- }
644
+ FsFormatCurrencyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormatCurrencyPipe, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Pipe });
645
+ FsFormatCurrencyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormatCurrencyPipe, name: "fsFormatCurrency" });
646
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormatCurrencyPipe, decorators: [{
647
+ type: Pipe,
648
+ args: [{
649
+ name: 'fsFormatCurrency'
650
+ }]
651
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
652
+ type: Inject,
653
+ args: [LOCALE_ID]
654
+ }] }]; } });
1087
655
 
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
656
  function truncate(value, limit = 100, completeWords = false, ellipsis = '...') {
1101
657
  value = value || '';
1102
658
  if (completeWords) {
1103
659
  limit = value.substr(0, limit).lastIndexOf(' ');
1104
660
  }
1105
- /** @type {?} */
1106
661
  let result = `${value.substr(0, limit)}`;
1107
662
  if (result !== value) {
1108
663
  result += ellipsis;
@@ -1110,48 +665,26 @@ function truncate(value, limit = 100, completeWords = false, ellipsis = '...') {
1110
665
  return result;
1111
666
  }
1112
667
 
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
668
  class FsFormatTruncatePipe {
1119
669
  constructor() { }
1120
- /**
1121
- * @param {?} value
1122
- * @param {?=} limit
1123
- * @param {?=} completeWords
1124
- * @param {?=} ellipsis
1125
- * @return {?}
1126
- */
1127
670
  transform(value, limit, completeWords, ellipsis) {
1128
671
  return truncate(value, limit, completeWords, ellipsis);
1129
672
  }
1130
673
  }
1131
- FsFormatTruncatePipe.decorators = [
1132
- { type: Pipe, args: [{
1133
- name: 'fsFormatTruncate'
1134
- },] }
1135
- ];
1136
- /** @nocollapse */
1137
- FsFormatTruncatePipe.ctorParameters = () => [];
674
+ FsFormatTruncatePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormatTruncatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
675
+ FsFormatTruncatePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormatTruncatePipe, name: "fsFormatTruncate" });
676
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormatTruncatePipe, decorators: [{
677
+ type: Pipe,
678
+ args: [{
679
+ name: 'fsFormatTruncate'
680
+ }]
681
+ }], ctorParameters: function () { return []; } });
1138
682
 
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
683
  function bytes(bytes) {
1149
684
  if (!bytes) {
1150
685
  return '0.00 B';
1151
686
  }
1152
- /** @type {?} */
1153
687
  const e = Math.floor(Math.log(bytes) / Math.log(1024));
1154
- /** @type {?} */
1155
688
  const decimals = (bytes / 1024) > 1000 ? 2 : 0;
1156
689
  console.log(bytes, (bytes / 1024), decimals);
1157
690
  return `${(bytes / Math.pow(1024, e)).toFixed(decimals)}`.replace(/\.00/, '')
@@ -1159,162 +692,96 @@ function bytes(bytes) {
1159
692
  + (e ? ' KMGTP'.charAt(e) : '') + 'B';
1160
693
  }
1161
694
 
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
695
  class FsFormatBytesPipe {
1168
- /**
1169
- * @param {?} value
1170
- * @return {?}
1171
- */
1172
696
  transform(value) {
1173
697
  return bytes(value);
1174
698
  }
1175
699
  }
1176
- FsFormatBytesPipe.decorators = [
1177
- { type: Pipe, args: [{
1178
- name: 'fsFormatBytes',
1179
- },] }
1180
- ];
700
+ FsFormatBytesPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormatBytesPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
701
+ FsFormatBytesPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormatBytesPipe, name: "fsFormatBytes" });
702
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormatBytesPipe, decorators: [{
703
+ type: Pipe,
704
+ args: [{
705
+ name: 'fsFormatBytes',
706
+ }]
707
+ }] });
1181
708
 
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
709
  class FsStopPropagationDirective {
1188
- /**
1189
- * @param {?} event
1190
- * @return {?}
1191
- */
1192
710
  preventClick(event) {
1193
711
  event.stopPropagation();
1194
712
  }
1195
713
  }
1196
- FsStopPropagationDirective.decorators = [
1197
- { type: Directive, args: [{
1198
- selector: '[fsStopPropagation]',
1199
- },] }
1200
- ];
1201
- FsStopPropagationDirective.propDecorators = {
1202
- preventClick: [{ type: HostListener, args: ['click', ['$event'],] }]
1203
- };
714
+ FsStopPropagationDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsStopPropagationDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
715
+ FsStopPropagationDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FsStopPropagationDirective, selector: "[fsStopPropagation]", host: { listeners: { "click": "preventClick($event)" } }, ngImport: i0 });
716
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsStopPropagationDirective, decorators: [{
717
+ type: Directive,
718
+ args: [{
719
+ selector: '[fsStopPropagation]',
720
+ }]
721
+ }], propDecorators: { preventClick: [{
722
+ type: HostListener,
723
+ args: ['click', ['$event']]
724
+ }] } });
1204
725
 
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
726
  class FsPreventDefaultDirective {
1211
- /**
1212
- * @param {?} event
1213
- * @return {?}
1214
- */
1215
727
  preventClick(event) {
1216
728
  event.preventDefault();
1217
729
  }
1218
730
  }
1219
- FsPreventDefaultDirective.decorators = [
1220
- { type: Directive, args: [{
1221
- selector: '[fsPreventDefault]',
1222
- },] }
1223
- ];
1224
- FsPreventDefaultDirective.propDecorators = {
1225
- preventClick: [{ type: HostListener, args: ['click', ['$event'],] }]
1226
- };
731
+ FsPreventDefaultDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsPreventDefaultDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
732
+ FsPreventDefaultDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FsPreventDefaultDirective, selector: "[fsPreventDefault]", host: { listeners: { "click": "preventClick($event)" } }, ngImport: i0 });
733
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsPreventDefaultDirective, decorators: [{
734
+ type: Directive,
735
+ args: [{
736
+ selector: '[fsPreventDefault]',
737
+ }]
738
+ }], propDecorators: { preventClick: [{
739
+ type: HostListener,
740
+ args: ['click', ['$event']]
741
+ }] } });
1227
742
 
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
743
  class FsAutofocusDirective {
1234
- /**
1235
- * @param {?} _el
1236
- */
1237
744
  constructor(_el) {
1238
745
  this._el = _el;
1239
746
  }
1240
- /**
1241
- * @return {?}
1242
- */
1243
747
  ngAfterViewInit() {
1244
- setTimeout((/**
1245
- * @return {?}
1246
- */
1247
- () => {
748
+ setTimeout(() => {
1248
749
  this._el.nativeElement.focus();
1249
- }));
750
+ });
1250
751
  }
1251
752
  }
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
- }
753
+ FsAutofocusDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsAutofocusDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
754
+ FsAutofocusDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: FsAutofocusDirective, selector: "[autofocus]", ngImport: i0 });
755
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsAutofocusDirective, decorators: [{
756
+ type: Directive,
757
+ args: [{
758
+ selector: '[autofocus]',
759
+ }]
760
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
1268
761
 
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
762
  function ordinalNumber(value) {
1279
763
  value = String(value);
1280
- /** @type {?} */
1281
764
  const index = value.match `1?.$`;
1282
- /** @type {?} */
1283
765
  const endings = [, 'st', 'nd', 'rd'];
1284
- /** @type {?} */
1285
766
  const ending = endings[index] || 'th';
1286
767
  return value + ending;
1287
768
  }
1288
769
 
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
770
  class FsFormatOrdinalNumberPipe {
1295
- /**
1296
- * @param {?} value
1297
- * @return {?}
1298
- */
1299
771
  transform(value) {
1300
772
  return ordinalNumber(value);
1301
773
  }
1302
774
  }
1303
- FsFormatOrdinalNumberPipe.decorators = [
1304
- { type: Pipe, args: [{
1305
- name: 'fsFormatOrdinalNumber',
1306
- },] }
1307
- ];
775
+ FsFormatOrdinalNumberPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormatOrdinalNumberPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
776
+ FsFormatOrdinalNumberPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormatOrdinalNumberPipe, name: "fsFormatOrdinalNumber" });
777
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsFormatOrdinalNumberPipe, decorators: [{
778
+ type: Pipe,
779
+ args: [{
780
+ name: 'fsFormatOrdinalNumber',
781
+ }]
782
+ }] });
1308
783
 
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
784
  class FsCommonModule {
1315
- /**
1316
- * @return {?}
1317
- */
1318
785
  static forRoot() {
1319
786
  return {
1320
787
  ngModule: FsCommonModule,
@@ -1327,129 +794,92 @@ class FsCommonModule {
1327
794
  };
1328
795
  }
1329
796
  }
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
- ];
797
+ FsCommonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
798
+ FsCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsCommonModule, declarations: [FsStopPropagationDirective,
799
+ FsPreventDefaultDirective,
800
+ FsAutofocusDirective,
801
+ FsUtilGuidPipe,
802
+ FsUtilIsEmptyPipe,
803
+ FsUtilIsNotEmptyPipe,
804
+ FsUtilStringifyPipe,
805
+ FsFormatNumberPipe,
806
+ FsFormatCurrencyPipe,
807
+ FsFormatTruncatePipe,
808
+ FsFormatBytesPipe,
809
+ FsFormatOrdinalNumberPipe], imports: [CommonModule], exports: [FsStopPropagationDirective,
810
+ FsPreventDefaultDirective,
811
+ FsAutofocusDirective,
812
+ FsUtilGuidPipe,
813
+ FsUtilStringifyPipe,
814
+ FsFormatNumberPipe,
815
+ FsFormatCurrencyPipe,
816
+ FsFormatTruncatePipe,
817
+ FsUtilIsEmptyPipe,
818
+ FsUtilIsNotEmptyPipe,
819
+ FsFormatBytesPipe,
820
+ FsFormatOrdinalNumberPipe] });
821
+ FsCommonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsCommonModule, imports: [[
822
+ CommonModule,
823
+ ]] });
824
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: FsCommonModule, decorators: [{
825
+ type: NgModule,
826
+ args: [{
827
+ imports: [
828
+ CommonModule,
829
+ ],
830
+ exports: [
831
+ FsStopPropagationDirective,
832
+ FsPreventDefaultDirective,
833
+ FsAutofocusDirective,
834
+ FsUtilGuidPipe,
835
+ FsUtilStringifyPipe,
836
+ FsFormatNumberPipe,
837
+ FsFormatCurrencyPipe,
838
+ FsFormatTruncatePipe,
839
+ FsUtilIsEmptyPipe,
840
+ FsUtilIsNotEmptyPipe,
841
+ FsFormatBytesPipe,
842
+ FsFormatOrdinalNumberPipe,
843
+ ],
844
+ declarations: [
845
+ FsStopPropagationDirective,
846
+ FsPreventDefaultDirective,
847
+ FsAutofocusDirective,
848
+ FsUtilGuidPipe,
849
+ FsUtilIsEmptyPipe,
850
+ FsUtilIsNotEmptyPipe,
851
+ FsUtilStringifyPipe,
852
+ FsFormatNumberPipe,
853
+ FsFormatCurrencyPipe,
854
+ FsFormatTruncatePipe,
855
+ FsFormatBytesPipe,
856
+ FsFormatOrdinalNumberPipe,
857
+ ],
858
+ }]
859
+ }] });
1365
860
 
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
861
  function email(value) {
1376
862
  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
863
  }
1378
864
 
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
865
  function phone(value) {
1395
- /** @type {?} */
1396
866
  const valid = /^[\+]?[(]?[0-9]{3}[)]?[-\s\.]?[0-9]{3}[-\s\.]?[0-9]{4}/.test(value);
1397
867
  return valid || !String(value).length;
1398
868
  }
1399
869
 
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
870
  /**
1412
871
  * Check validity of the url.
1413
872
  * Protocol (http/https) isn't required.
1414
873
  * @param value
1415
874
  * @returns {boolean}
1416
875
  */
1417
- /**
1418
- * @param {?} value
1419
- * @return {?}
1420
- */
1421
876
  function url(value) {
1422
- /** @type {?} */
1423
877
  const expression = /^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#%[\]@!\$&'\(\)\*\+,;=.]+$/gm;
1424
- /** @type {?} */
1425
878
  const regexp = new RegExp(expression);
1426
879
  return !!String(value).match(regexp);
1427
880
  }
1428
881
 
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
882
  function compare(query, item) {
1452
- /** @type {?} */
1453
883
  let value = true;
1454
884
  for (const key in query) {
1455
885
  value = value && item[key] == query[key];
@@ -1457,80 +887,32 @@ function compare(query, item) {
1457
887
  return value;
1458
888
  }
1459
889
 
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
890
  function filter(array, query) {
1477
891
  if (typeof query !== 'function') {
1478
- /** @type {?} */
1479
892
  const queryObj = query;
1480
- query = (/**
1481
- * @param {?} item
1482
- * @return {?}
1483
- */
1484
- (item) => {
893
+ query = (item) => {
1485
894
  return compare(queryObj, item);
1486
- });
895
+ };
1487
896
  }
1488
- /** @type {?} */
1489
897
  const isarray = Array.isArray(array);
1490
- /** @type {?} */
1491
898
  const list = isarray ? [] : {};
1492
899
  if (isarray) {
1493
- array.forEach((/**
1494
- * @param {?} item
1495
- * @param {?} idx
1496
- * @return {?}
1497
- */
1498
- function (item, idx) {
900
+ array.forEach(function (item, idx) {
1499
901
  if (query(item)) {
1500
902
  list.push(item);
1501
903
  }
1502
- }));
904
+ });
1503
905
  }
1504
906
  else {
1505
- Object.keys(array).forEach((/**
1506
- * @param {?} key
1507
- * @return {?}
1508
- */
1509
- key => {
907
+ Object.keys(array).forEach(key => {
1510
908
  if (query(array[key])) {
1511
909
  list[key] = array[key];
1512
910
  }
1513
- }));
911
+ });
1514
912
  }
1515
913
  return list;
1516
914
  }
1517
915
 
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
916
  function inArray(values, array) {
1535
917
  if (!Array.isArray(values)) {
1536
918
  values = [values];
@@ -1543,57 +925,20 @@ function inArray(values, array) {
1543
925
  return false;
1544
926
  }
1545
927
 
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 {?} property
1560
- * @return {?}
1561
- */
1562
- function index(array, property) {
1563
- /** @type {?} */
928
+ function index(array, name, value = null) {
1564
929
  const list = {};
1565
- array.forEach((/**
1566
- * @param {?} item
1567
- * @param {?} idx
1568
- * @return {?}
1569
- */
1570
- function (item, idx) {
1571
- list[item[property]] = item;
1572
- }));
930
+ array.forEach(function (item) {
931
+ list[item[name]] = value ? item[value] : item;
932
+ });
1573
933
  return list;
1574
934
  }
1575
935
 
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
936
  function indexOf(array, query) {
1587
937
  if (typeof query !== 'function') {
1588
- /** @type {?} */
1589
938
  const queryObj = query;
1590
- query = (/**
1591
- * @param {?} item
1592
- * @return {?}
1593
- */
1594
- (item) => {
939
+ query = (item) => {
1595
940
  return compare(queryObj, item);
1596
- });
941
+ };
1597
942
  }
1598
943
  for (let i = 0, len = array.length; i < len; i++) {
1599
944
  if (query(array[i])) {
@@ -1603,166 +948,53 @@ function indexOf(array, query) {
1603
948
  return -1;
1604
949
  }
1605
950
 
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
951
  function keyExists(array, key) {
1623
952
  return array.hasOwnProperty(key);
1624
953
  }
1625
954
 
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
955
  function ksort(unordered) {
1642
- Object.keys(unordered).sort().forEach((/**
1643
- * @param {?} key
1644
- * @return {?}
1645
- */
1646
- function (key) {
1647
- /** @type {?} */
956
+ Object.keys(unordered).sort().forEach(function (key) {
1648
957
  const value = unordered[key];
1649
958
  delete unordered[key];
1650
959
  unordered[key] = value;
1651
- }));
960
+ });
1652
961
  }
1653
962
 
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
963
  function list(array, property, index = null) {
1672
- /** @type {?} */
1673
964
  const resultList = index ? {} : [];
1674
- array.forEach((/**
1675
- * @param {?} item
1676
- * @param {?} idx
1677
- * @return {?}
1678
- */
1679
- function (item, idx) {
965
+ array.forEach(function (item, idx) {
1680
966
  if (index) {
1681
967
  resultList[item[index]] = item[property];
1682
968
  }
1683
969
  else {
1684
970
  resultList.push(item[property]);
1685
971
  }
1686
- }));
972
+ });
1687
973
  return resultList;
1688
974
  }
1689
975
 
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
976
  function nameValue(array, name, value) {
1708
- /** @type {?} */
1709
977
  const list = [];
1710
978
  if (name || value) {
1711
- /** @type {?} */
1712
- const nameFn = typeof name === 'function' ? name : (/**
1713
- * @param {?} item
1714
- * @return {?}
1715
- */
1716
- function (item) {
979
+ const nameFn = typeof name === 'function' ? name : function (item) {
1717
980
  return item[name];
1718
- });
1719
- /** @type {?} */
1720
- const valueFn = typeof value === 'function' ? value : (/**
1721
- * @param {?} item
1722
- * @return {?}
1723
- */
1724
- function (item) {
981
+ };
982
+ const valueFn = typeof value === 'function' ? value : function (item) {
1725
983
  return item[value];
1726
- });
1727
- array.forEach((/**
1728
- * @param {?} item
1729
- * @return {?}
1730
- */
1731
- function (item) {
984
+ };
985
+ array.forEach(function (item) {
1732
986
  list.push({ name: nameFn(item), value: valueFn(item) });
1733
- }));
987
+ });
1734
988
  }
1735
989
  else {
1736
- array.forEach((/**
1737
- * @param {?} n
1738
- * @param {?} v
1739
- * @return {?}
1740
- */
1741
- function (n, v) {
990
+ array.forEach(function (n, v) {
1742
991
  list.push({ name: n, value: v });
1743
- }));
992
+ });
1744
993
  }
1745
994
  return list;
1746
995
  }
1747
996
 
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
997
  function remove(array, query) {
1765
- /** @type {?} */
1766
998
  const idx = indexOf(array, query);
1767
999
  if (idx >= 0) {
1768
1000
  return array.splice(idx, 1);
@@ -1770,33 +1002,10 @@ function remove(array, query) {
1770
1002
  return idx;
1771
1003
  }
1772
1004
 
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
1005
  function sort(array, query, reverse = false) {
1791
1006
  if (typeof query !== 'function') {
1792
- /** @type {?} */
1793
1007
  const queryStr = query;
1794
- query = (/**
1795
- * @param {?} a
1796
- * @param {?} b
1797
- * @return {?}
1798
- */
1799
- function (a, b) {
1008
+ query = function (a, b) {
1800
1009
  if (reverse) {
1801
1010
  if (a[queryStr] < b[queryStr]) {
1802
1011
  return 1;
@@ -1814,232 +1023,80 @@ function sort(array, query, reverse = false) {
1814
1023
  }
1815
1024
  }
1816
1025
  return 0;
1817
- });
1026
+ };
1818
1027
  }
1819
1028
  array.sort(query);
1820
1029
  return array;
1821
1030
  }
1822
1031
 
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
1032
  function rsort(array, query) {
1840
1033
  return sort(array, query, true);
1841
1034
  }
1842
1035
 
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
1036
  function find(array, query) {
1860
- /** @type {?} */
1861
1037
  const data = filter(array, query);
1862
1038
  return data.length ? data[0] : null;
1863
1039
  }
1864
1040
 
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
1041
  function boolean(value) {
1887
1042
  return toString(value).toLowerCase() !== 'false' && !!value;
1888
1043
  }
1889
1044
 
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
1045
  function debounce(func, wait, immediate) {
1908
- /** @type {?} */
1909
1046
  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 () {
1047
+ return function () {
1048
+ const context = this, args = arguments;
1049
+ const later = function () {
1923
1050
  timeout = null;
1924
1051
  if (!immediate)
1925
1052
  func.apply(context, args);
1926
- });
1927
- /** @type {?} */
1053
+ };
1928
1054
  const callNow = immediate && !timeout;
1929
1055
  clearTimeout(timeout);
1930
1056
  timeout = setTimeout(later, wait);
1931
1057
  if (callNow)
1932
1058
  func.apply(context, args);
1933
- });
1059
+ };
1934
1060
  }
1935
1061
 
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
- */
1062
+ const KEY_CANCEL = 3;
1063
+ const KEY_HELP = 6;
1064
+ const KEY_BACKSPACE = 8;
1065
+ const KEY_TAB = 9;
1066
+ const KEY_CLEAR = 12;
1067
+ const KEY_RETURN = 13;
1068
+ const KEY_ENTER = 14;
1069
+ const KEY_SHIFT = 16;
1070
+ const KEY_CONTROL = 17;
1071
+ const KEY_ALT = 18;
1072
+ const KEY_PAUSE = 19;
1073
+ const KEY_CAPS_LOCK = 20;
1074
+ const KEY_ESCAPE = 27;
1075
+ const KEY_SPACE = 32;
1076
+ const KEY_PAGE_UP = 33;
1077
+ const KEY_PAGE_DOWN = 34;
1078
+ const KEY_END = 35;
1079
+ const KEY_HOME = 36;
1080
+ const KEY_LEFT = 37;
1081
+ const KEY_UP = 38;
1082
+ const KEY_RIGHT = 39;
1083
+ const KEY_DOWN = 40;
1084
+ const KEY_PRINTSCREEN = 44;
1085
+ const KEY_INSERT = 45;
1086
+ const KEY_DELETE = 46;
1087
+ const KEY_0 = 48;
1088
+ const KEY_1 = 49;
1089
+ const KEY_2 = 50;
1090
+ const KEY_3 = 51;
1091
+ const KEY_4 = 52;
1092
+ const KEY_5 = 53;
1093
+ const KEY_6 = 54;
1094
+ const KEY_7 = 55;
1095
+ const KEY_8 = 56;
1096
+ const KEY_9 = 57;
1097
+ const KEY_SEMICOLON = 59;
1098
+ const KEY_EQUALS = 61;
2033
1099
 
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
1100
  function length(object) {
2044
1101
  if (isObject(object)) {
2045
1102
  return Object.keys(object).length;
@@ -2050,86 +1107,20 @@ function length(object) {
2050
1107
  return 0;
2051
1108
  }
2052
1109
 
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
1110
  function resolve(promise, defaults = []) {
2070
- /** @type {?} */
2071
1111
  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]));
1112
+ return new Promise(resolve => {
1113
+ promise.then(function (data) {
1114
+ Object.keys(data).forEach(key => result[key] = data[key]);
2087
1115
  resolve(result);
2088
- }));
2089
- }));
1116
+ });
1117
+ });
2090
1118
  }
2091
1119
 
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
1120
  function uuid() {
2113
1121
  return guid('xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx');
2114
1122
  }
2115
1123
 
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
1124
  function value(object, key, def) {
2134
1125
  if (typeof object === 'object' || Array.isArray(object)) {
2135
1126
  if (object.hasOwnProperty(key)) {
@@ -2139,22 +1130,6 @@ function value(object, key, def) {
2139
1130
  return def;
2140
1131
  }
2141
1132
 
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
1133
  function isClass(value, cls) {
2159
1134
  if (typeof value === 'object') {
2160
1135
  if (typeof cls === 'string') {
@@ -2173,85 +1148,25 @@ function isClass(value, cls) {
2173
1148
  return false;
2174
1149
  }
2175
1150
 
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
1151
  function isNumeric(value) {
2192
- /** @type {?} */
2193
1152
  const str = toString(value);
2194
1153
  return str.length && !!str.match(/^-?\d*\.?\d*$/);
2195
1154
  }
2196
1155
 
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
1156
  function throttle(func, wait) {
2220
- /** @type {?} */
2221
- let waiting = false;
2222
- return (/**
2223
- * @return {?}
2224
- */
2225
- function () {
1157
+ let waiting = false; // Initially, we're not waiting
1158
+ return function () {
2226
1159
  if (!waiting) { // If we're not waiting
2227
1160
  func.apply(null, arguments); // Execute users function
2228
1161
  waiting = true; // Prevent future invocations
2229
- setTimeout((/**
2230
- * @return {?}
2231
- */
2232
- function () {
1162
+ setTimeout(function () {
2233
1163
  waiting = false; // And allow future invocations
2234
- }), wait);
1164
+ }, wait);
2235
1165
  }
2236
- });
1166
+ };
2237
1167
  }
2238
1168
 
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
1169
  class Operation {
2251
- /**
2252
- * @param {?} target
2253
- * @param {?=} name
2254
- */
2255
1170
  constructor(target, name) {
2256
1171
  this.ready$ = new Subject();
2257
1172
  this.name = name ? name : guid();
@@ -2263,35 +1178,14 @@ class Operation {
2263
1178
  }
2264
1179
  }
2265
1180
  }
2266
- if (false) {
2267
- /** @type {?} */
2268
- Operation.prototype.name;
2269
- /** @type {?} */
2270
- Operation.prototype.target;
2271
- /** @type {?} */
2272
- Operation.prototype.ready$;
2273
- }
2274
1181
 
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
- };
1182
+ var QueueState;
1183
+ (function (QueueState) {
1184
+ QueueState["Idle"] = "idle";
1185
+ QueueState["Processing"] = "processing";
1186
+ })(QueueState || (QueueState = {}));
2285
1187
 
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
1188
  class Queue {
2292
- /**
2293
- * @param {?=} _limit
2294
- */
2295
1189
  constructor(_limit = Infinity) {
2296
1190
  this._limit = _limit;
2297
1191
  this._done = new Subject();
@@ -2303,140 +1197,66 @@ class Queue {
2303
1197
  this._state = QueueState.Idle;
2304
1198
  this._destroy$ = new Subject();
2305
1199
  }
2306
- /**
2307
- * @return {?}
2308
- */
2309
1200
  get total() {
2310
1201
  return this._total;
2311
1202
  }
2312
- /**
2313
- * @return {?}
2314
- */
2315
1203
  get completed() {
2316
1204
  return this._completed;
2317
1205
  }
2318
- /**
2319
- * @return {?}
2320
- */
2321
1206
  get pending() {
2322
1207
  return this._queue.length;
2323
1208
  }
2324
- /**
2325
- * @return {?}
2326
- */
2327
1209
  get inProgress() {
2328
1210
  return this._inProgress.length;
2329
1211
  }
2330
- /**
2331
- * @return {?}
2332
- */
2333
1212
  get errors() {
2334
1213
  return this._errors;
2335
1214
  }
2336
- /**
2337
- * @return {?}
2338
- */
2339
1215
  get state() {
2340
1216
  return this._state;
2341
1217
  }
2342
- /**
2343
- * @return {?}
2344
- */
2345
1218
  get empty() {
2346
1219
  return !this._queue.length && !this._inProgress.length;
2347
1220
  }
2348
- /**
2349
- * @return {?}
2350
- */
2351
1221
  get pendingOperations() {
2352
1222
  return this._queue
2353
- .map((/**
2354
- * @param {?} operation
2355
- * @return {?}
2356
- */
2357
- (operation) => operation.name));
1223
+ .map((operation) => operation.name);
2358
1224
  }
2359
- /**
2360
- * @return {?}
2361
- */
2362
1225
  get inProgressOperations() {
2363
1226
  return this._inProgress
2364
- .map((/**
2365
- * @param {?} operation
2366
- * @return {?}
2367
- */
2368
- (operation) => operation.name));
1227
+ .map((operation) => operation.name);
2369
1228
  }
2370
- /**
2371
- * @return {?}
2372
- */
2373
1229
  isProcessing() {
2374
1230
  return this._state === QueueState.Processing;
2375
1231
  }
2376
- /**
2377
- * @return {?}
2378
- */
2379
1232
  isIdle() {
2380
1233
  return this._state === QueueState.Idle;
2381
1234
  }
2382
- /**
2383
- * @param {?} value
2384
- * @return {?}
2385
- */
2386
1235
  setLimit(value) {
2387
1236
  this._limit = value;
2388
1237
  }
2389
- /**
2390
- * @param {?} fun
2391
- * @param {?=} err
2392
- * @param {?=} complete
2393
- * @return {?}
2394
- */
2395
1238
  subscribe(fun, err, complete) {
2396
1239
  this._done
2397
1240
  .pipe(takeUntil(this._destroy$))
2398
1241
  .subscribe(fun, err, complete);
2399
1242
  }
2400
- /**
2401
- * @param {?} fun
2402
- * @param {?=} err
2403
- * @param {?=} complete
2404
- * @return {?}
2405
- */
2406
1243
  complete(fun, err, complete) {
2407
- Observable.create((/**
2408
- * @param {?} observer
2409
- * @return {?}
2410
- */
2411
- observer => {
1244
+ Observable.create(observer => {
2412
1245
  if (!this.isProcessing()) {
2413
1246
  observer.next();
2414
1247
  observer.complete();
2415
1248
  return;
2416
1249
  }
2417
- this.subscribe((/**
2418
- * @return {?}
2419
- */
2420
- () => {
1250
+ this.subscribe(() => {
2421
1251
  observer.next();
2422
1252
  observer.complete();
2423
- }), (/**
2424
- * @param {?} error
2425
- * @return {?}
2426
- */
2427
- (error) => {
1253
+ }, (error) => {
2428
1254
  observer.error(error);
2429
1255
  this.clear();
2430
- }));
2431
- })).subscribe(fun, err, complete);
1256
+ });
1257
+ }).subscribe(fun, err, complete);
2432
1258
  }
2433
- /**
2434
- * @param {?} target
2435
- * @param {?=} name
2436
- * @return {?}
2437
- */
2438
1259
  push(target, name) {
2439
- /** @type {?} */
2440
1260
  const operation = new Operation(target, name);
2441
1261
  this._total++;
2442
1262
  this._state = QueueState.Processing;
@@ -2448,9 +1268,6 @@ class Queue {
2448
1268
  }
2449
1269
  return operation.ready$;
2450
1270
  }
2451
- /**
2452
- * @return {?}
2453
- */
2454
1271
  clear() {
2455
1272
  this._queue = [];
2456
1273
  this._total = 0;
@@ -2459,36 +1276,19 @@ class Queue {
2459
1276
  this._state = QueueState.Idle;
2460
1277
  this._done = new Subject();
2461
1278
  }
2462
- /**
2463
- * @return {?}
2464
- */
2465
1279
  destroy() {
2466
1280
  this.clear();
2467
1281
  this._done.complete();
2468
1282
  }
2469
- /**
2470
- * @private
2471
- * @param {?} operation
2472
- * @return {?}
2473
- */
2474
1283
  _processOperation(operation) {
2475
1284
  this._inProgress.push(operation);
2476
1285
  operation.target
2477
1286
  .pipe(delay(200), // Hack to prevent extra quick proccess execution
2478
1287
  takeUntil(this._destroy$)).subscribe({
2479
- next: (/**
2480
- * @param {?} data
2481
- * @return {?}
2482
- */
2483
- (data) => {
1288
+ next: (data) => {
2484
1289
  operation.ready$.next(data);
2485
- }),
2486
- error: (/**
2487
- * @param {?} error
2488
- * @return {?}
2489
- */
2490
- (error) => {
2491
- /** @type {?} */
1290
+ },
1291
+ error: (error) => {
2492
1292
  const opIndex = this._inProgress.indexOf(operation);
2493
1293
  this._inProgress.splice(opIndex, 1);
2494
1294
  this._errors++;
@@ -2497,12 +1297,8 @@ class Queue {
2497
1297
  this._state = QueueState.Idle;
2498
1298
  this._done.error(error);
2499
1299
  }
2500
- }),
2501
- complete: (/**
2502
- * @return {?}
2503
- */
2504
- () => {
2505
- /** @type {?} */
1300
+ },
1301
+ complete: () => {
2506
1302
  const opIndex = this._inProgress.indexOf(operation);
2507
1303
  this._inProgress.splice(opIndex, 1);
2508
1304
  this._completed++;
@@ -2513,137 +1309,28 @@ class Queue {
2513
1309
  }
2514
1310
  else {
2515
1311
  if (this._queue.length) {
2516
- /** @type {?} */
2517
1312
  const queueItem = this._queue.shift();
2518
1313
  this._processOperation(queueItem);
2519
1314
  }
2520
1315
  }
2521
- })
1316
+ }
2522
1317
  });
2523
1318
  }
2524
1319
  }
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
- }
2572
1320
 
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
1321
  function removeQueryParams(path) {
2589
1322
  return path.split('?')[0];
2590
1323
  }
2591
1324
 
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
1325
  function getNormalizedPath(locationSrv) {
2608
- /** @type {?} */
2609
1326
  const path = locationSrv.prepareExternalUrl(locationSrv.path());
2610
1327
  return removeQueryParams(path);
2611
1328
  }
2612
1329
 
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
- */
2630
-
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
1330
  function acronym(str, length = 2) {
2642
- /** @type {?} */
2643
1331
  const splittedString = str
2644
1332
  .replace(/[^a-zA-Z0-9]+/g, ' ')
2645
1333
  .split(' ');
2646
- /** @type {?} */
2647
1334
  let result = '';
2648
1335
  for (let i = 0; i < length; i++) {
2649
1336
  if (!splittedString[i]) {
@@ -2662,108 +1349,47 @@ function acronym(str, length = 2) {
2662
1349
  return result;
2663
1350
  }
2664
1351
 
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
1352
  function delayedRetry(delayMs, maxRetry = 5, message) {
2707
- /** @type {?} */
2708
1353
  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
- () => {
1354
+ return (src) => src.pipe(retryWhen((errors) => errors.pipe(tap(() => {
2721
1355
  retries++;
2722
1356
  if (retries <= maxRetry) {
2723
1357
  console.info(`Failed to load Resource. Retry in ${delayMs / 1000} sec. ${retries}/${maxRetry} times...`);
2724
1358
  }
2725
- })), concatMap((/**
2726
- * @param {?} error
2727
- * @return {?}
2728
- */
2729
- (error) => iif((/**
2730
- * @return {?}
2731
- */
2732
- () => retries > maxRetry), throwError(getErrorMessage(maxRetry, message)), timer(delayMs)))))))));
1359
+ }), concatMap((error) => iif(() => retries > maxRetry, throwError(getErrorMessage(maxRetry, message)), timer(delayMs))))));
2733
1360
  }
2734
- /** @type {?} */
2735
- const getErrorMessage = (/**
2736
- * @param {?} maxRetry
2737
- * @param {?} defaultMessage
2738
- * @return {?}
2739
- */
2740
- (maxRetry, defaultMessage) => {
1361
+ const getErrorMessage = (maxRetry, defaultMessage) => {
2741
1362
  if (!defaultMessage) {
2742
1363
  return `Failed to load Resource for ${maxRetry} times. Giving up.`;
2743
1364
  }
2744
1365
  else {
2745
1366
  return defaultMessage;
2746
1367
  }
2747
- });
2748
- const ɵ0 = getErrorMessage;
1368
+ };
2749
1369
 
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
- */
1370
+ const keyboardShortcut = (shortcut) => {
1371
+ // Observables for all keydown and keyup events
1372
+ const keyDown$ = fromEvent(document, 'keydown');
1373
+ const keyUp$ = fromEvent(document, 'keyup');
1374
+ // All KeyboardEvents - emitted only when KeyboardEvent changes (key or type)
1375
+ const keyEvents$ = merge(keyDown$, keyUp$).pipe(distinctUntilChanged((a, b) => a.code === b.code && a.type === b.type), share());
1376
+ // Create KeyboardEvent Observable for specified KeyCode
1377
+ const createKeyPressStream = (charCode) => keyEvents$.pipe(filter$1((event) => event.keyCode === charCode));
1378
+ // Create Event Stream for every KeyCode in shortcut
1379
+ const keyCodeEvents$ = shortcut.map((s) => createKeyPressStream(s));
1380
+ // Emit when specified keys are pressed (keydown).
1381
+ // Emit only when all specified keys are pressed at the same time.
1382
+ // More on combineLatest below
1383
+ return combineLatest(keyCodeEvents$).pipe(filter$1((arr) => arr.every((a) => a.type === 'keydown')));
1384
+ };
2755
1385
 
2756
- /**
2757
- * @fileoverview added by tsickle
2758
- * Generated from: public_api.ts
2759
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1386
+ /*
1387
+ * Public API Surface of fs-menu
2760
1388
  */
2761
1389
 
2762
1390
  /**
2763
- * @fileoverview added by tsickle
2764
- * Generated from: firestitch-common.ts
2765
- * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
1391
+ * Generated bundle index. Do not edit.
2766
1392
  */
2767
1393
 
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 };
1394
+ 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, keyboardShortcut, ksort, length, list, nameValue, number, ordinalNumber, phone, remove, removeQueryParams, resolve, rsort, sort, stringify, throttle, truncate, url, uuid, value };
2769
1395
  //# sourceMappingURL=firestitch-common.js.map