@firestitch/common 8.0.13 → 12.0.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 (304) hide show
  1. package/app/directives/autofocus.directive.d.ts +9 -6
  2. package/app/directives/prevent-default.directive.d.ts +6 -3
  3. package/app/directives/stop-propagation.directive.d.ts +6 -3
  4. package/app/fs-common.module.d.ts +18 -4
  5. package/app/pipes/bytes.pipe.d.ts +7 -4
  6. package/app/pipes/currency.pipe.d.ts +9 -6
  7. package/app/pipes/number.pipe.d.ts +7 -4
  8. package/app/pipes/ordinal-number.pipe.d.ts +7 -4
  9. package/app/pipes/truncate.pipe.d.ts +8 -5
  10. package/app/pipes/util.pipe.d.ts +24 -15
  11. package/app/services/array.service.d.ts +61 -58
  12. package/app/services/math.service.d.ts +9 -6
  13. package/app/services/util.service.d.ts +89 -86
  14. package/app/services/vaildate.service.d.ts +16 -13
  15. package/bundles/firestitch-common.umd.js +1771 -3404
  16. package/bundles/firestitch-common.umd.js.map +1 -1
  17. package/esm2015/app/directives/autofocus.directive.js +21 -42
  18. package/esm2015/app/directives/prevent-default.directive.js +19 -24
  19. package/esm2015/app/directives/stop-propagation.directive.js +19 -24
  20. package/esm2015/app/fs-common.module.js +93 -72
  21. package/esm2015/app/pipes/bytes.pipe.js +17 -22
  22. package/esm2015/app/pipes/currency.pipe.js +23 -38
  23. package/esm2015/app/pipes/number.pipe.js +17 -23
  24. package/esm2015/app/pipes/ordinal-number.pipe.js +17 -22
  25. package/esm2015/app/pipes/truncate.pipe.js +18 -28
  26. package/esm2015/app/pipes/util.pipe.js +60 -71
  27. package/esm2015/app/services/array.service.js +225 -352
  28. package/esm2015/app/services/math.service.js +21 -29
  29. package/esm2015/app/services/util.service.js +251 -430
  30. package/esm2015/app/services/vaildate.service.js +28 -48
  31. package/esm2015/firestitch-common.js +5 -19
  32. package/esm2015/libs/array/compare/compare.js +8 -19
  33. package/esm2015/libs/array/compare/index.js +2 -7
  34. package/esm2015/libs/array/filter/filter.js +27 -53
  35. package/esm2015/libs/array/filter/index.js +2 -7
  36. package/esm2015/libs/array/find/find.js +6 -17
  37. package/esm2015/libs/array/find/index.js +2 -7
  38. package/esm2015/libs/array/inArray/inArray.js +12 -22
  39. package/esm2015/libs/array/inArray/index.js +2 -7
  40. package/esm2015/libs/array/index/index.js +8 -24
  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 +16 -31
  44. package/esm2015/libs/array/keyExists/index.js +2 -7
  45. package/esm2015/libs/array/keyExists/keyExists.js +4 -14
  46. package/esm2015/libs/array/ksort/index.js +2 -7
  47. package/esm2015/libs/array/ksort/ksort.js +8 -22
  48. package/esm2015/libs/array/list/index.js +2 -7
  49. package/esm2015/libs/array/list/list.js +13 -30
  50. package/esm2015/libs/array/nameValue/index.js +2 -7
  51. package/esm2015/libs/array/nameValue/nameValue.js +21 -52
  52. package/esm2015/libs/array/remove/index.js +2 -7
  53. package/esm2015/libs/array/remove/remove.js +9 -20
  54. package/esm2015/libs/array/rsort/index.js +2 -7
  55. package/esm2015/libs/array/rsort/rsort.js +5 -15
  56. package/esm2015/libs/array/sort/index.js +2 -7
  57. package/esm2015/libs/array/sort/sort.js +27 -44
  58. package/esm2015/libs/format/acronym/acronym.js +22 -34
  59. package/esm2015/libs/format/acronym/index.js +2 -7
  60. package/esm2015/libs/format/bytes/bytes.js +12 -23
  61. package/esm2015/libs/format/bytes/index.js +2 -7
  62. package/esm2015/libs/format/currency/currency.js +7 -20
  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 +4 -14
  67. package/esm2015/libs/format/truncate/index.js +2 -7
  68. package/esm2015/libs/format/truncate/truncate.js +12 -25
  69. package/esm2015/libs/index.js +6 -11
  70. package/esm2015/libs/rxjs/delayedRetry.js +20 -58
  71. package/esm2015/libs/util/boolean/boolean.js +5 -14
  72. package/esm2015/libs/util/boolean/index.js +2 -7
  73. package/esm2015/libs/util/debounce/debounce.js +17 -40
  74. package/esm2015/libs/util/debounce/index.js +2 -7
  75. package/esm2015/libs/util/get-normalized-path/get-normalized-path.js +6 -16
  76. package/esm2015/libs/util/get-normalized-path/index.js +2 -7
  77. package/esm2015/libs/util/guid/guid.js +19 -36
  78. package/esm2015/libs/util/guid/index.js +2 -7
  79. package/esm2015/libs/util/index.js +18 -23
  80. package/esm2015/libs/util/isClass/index.js +2 -7
  81. package/esm2015/libs/util/isClass/isClass.js +18 -28
  82. package/esm2015/libs/util/isEmpty/index.js +2 -7
  83. package/esm2015/libs/util/isEmpty/isEmpty.js +13 -23
  84. package/esm2015/libs/util/isNumeric/index.js +2 -7
  85. package/esm2015/libs/util/isNumeric/isNumeric.js +6 -16
  86. package/esm2015/libs/util/keys/index.js +2 -7
  87. package/esm2015/libs/util/keys/keys.js +38 -80
  88. package/esm2015/libs/util/length/index.js +2 -7
  89. package/esm2015/libs/util/length/length.js +11 -20
  90. package/esm2015/libs/util/ordinal-number/ordinal-number.js +8 -20
  91. package/esm2015/libs/util/queue/index.js +3 -8
  92. package/esm2015/libs/util/queue/operation.js +15 -32
  93. package/esm2015/libs/util/queue/queue.enum.js +6 -12
  94. package/esm2015/libs/util/queue/queue.js +137 -291
  95. package/esm2015/libs/util/remove-query-params/index.js +2 -7
  96. package/esm2015/libs/util/remove-query-params/remove-query-params.js +4 -13
  97. package/esm2015/libs/util/resolve/index.js +2 -7
  98. package/esm2015/libs/util/resolve/resolve.js +10 -33
  99. package/esm2015/libs/util/stringify/index.js +2 -7
  100. package/esm2015/libs/util/stringify/stringify.js +4 -13
  101. package/esm2015/libs/util/throttle/index.js +2 -7
  102. package/esm2015/libs/util/throttle/throttle.js +13 -30
  103. package/esm2015/libs/util/uuid/index.js +2 -7
  104. package/esm2015/libs/util/uuid/uuid.js +5 -13
  105. package/esm2015/libs/util/value/index.js +2 -7
  106. package/esm2015/libs/util/value/value.js +9 -20
  107. package/esm2015/libs/validate/email/email.js +4 -13
  108. package/esm2015/libs/validate/email/index.js +2 -7
  109. package/esm2015/libs/validate/index.js +4 -9
  110. package/esm2015/libs/validate/phone/index.js +2 -7
  111. package/esm2015/libs/validate/phone/phone.js +5 -15
  112. package/esm2015/libs/validate/url/index.js +2 -7
  113. package/esm2015/libs/validate/url/url.js +12 -23
  114. package/esm2015/public_api.js +21 -17
  115. package/fesm2015/firestitch-common.js +1287 -2677
  116. package/fesm2015/firestitch-common.js.map +1 -1
  117. package/firestitch-common.d.ts +5 -13
  118. package/libs/array/compare/compare.d.ts +1 -1
  119. package/libs/array/compare/index.d.ts +1 -1
  120. package/libs/array/filter/filter.d.ts +1 -1
  121. package/libs/array/filter/index.d.ts +1 -1
  122. package/libs/array/find/find.d.ts +1 -1
  123. package/libs/array/find/index.d.ts +1 -1
  124. package/libs/array/inArray/inArray.d.ts +1 -1
  125. package/libs/array/inArray/index.d.ts +1 -1
  126. package/libs/array/index/index.d.ts +1 -1
  127. package/libs/array/index.d.ts +13 -13
  128. package/libs/array/indexOf/index.d.ts +1 -1
  129. package/libs/array/indexOf/indexOf.d.ts +1 -1
  130. package/libs/array/keyExists/index.d.ts +1 -1
  131. package/libs/array/keyExists/keyExists.d.ts +1 -1
  132. package/libs/array/ksort/index.d.ts +1 -1
  133. package/libs/array/ksort/ksort.d.ts +1 -1
  134. package/libs/array/list/index.d.ts +1 -1
  135. package/libs/array/list/list.d.ts +1 -1
  136. package/libs/array/nameValue/index.d.ts +1 -1
  137. package/libs/array/nameValue/nameValue.d.ts +1 -1
  138. package/libs/array/remove/index.d.ts +1 -1
  139. package/libs/array/remove/remove.d.ts +1 -1
  140. package/libs/array/rsort/index.d.ts +1 -1
  141. package/libs/array/rsort/rsort.d.ts +1 -1
  142. package/libs/array/sort/index.d.ts +1 -1
  143. package/libs/array/sort/sort.d.ts +1 -1
  144. package/libs/format/acronym/acronym.d.ts +1 -1
  145. package/libs/format/acronym/index.d.ts +1 -1
  146. package/libs/format/bytes/bytes.d.ts +1 -1
  147. package/libs/format/bytes/index.d.ts +1 -1
  148. package/libs/format/currency/currency.d.ts +1 -1
  149. package/libs/format/currency/index.d.ts +1 -1
  150. package/libs/format/index.d.ts +5 -5
  151. package/libs/format/number/index.d.ts +1 -1
  152. package/libs/format/number/number.d.ts +1 -1
  153. package/libs/format/truncate/index.d.ts +1 -1
  154. package/libs/format/truncate/truncate.d.ts +1 -1
  155. package/libs/index.d.ts +5 -5
  156. package/libs/rxjs/delayedRetry.d.ts +2 -2
  157. package/libs/util/boolean/boolean.d.ts +1 -1
  158. package/libs/util/boolean/index.d.ts +1 -1
  159. package/libs/util/debounce/debounce.d.ts +1 -1
  160. package/libs/util/debounce/index.d.ts +1 -1
  161. package/libs/util/get-normalized-path/get-normalized-path.d.ts +2 -2
  162. package/libs/util/get-normalized-path/index.d.ts +1 -1
  163. package/libs/util/guid/guid.d.ts +1 -1
  164. package/libs/util/guid/index.d.ts +1 -1
  165. package/libs/util/index.d.ts +17 -17
  166. package/libs/util/isClass/index.d.ts +1 -1
  167. package/libs/util/isClass/isClass.d.ts +1 -1
  168. package/libs/util/isEmpty/index.d.ts +1 -1
  169. package/libs/util/isEmpty/isEmpty.d.ts +1 -1
  170. package/libs/util/isNumeric/index.d.ts +1 -1
  171. package/libs/util/isNumeric/isNumeric.d.ts +1 -1
  172. package/libs/util/keys/index.d.ts +1 -1
  173. package/libs/util/keys/keys.d.ts +37 -37
  174. package/libs/util/length/index.d.ts +1 -1
  175. package/libs/util/length/length.d.ts +1 -1
  176. package/libs/util/ordinal-number/ordinal-number.d.ts +1 -1
  177. package/libs/util/queue/index.d.ts +2 -2
  178. package/libs/util/queue/operation.d.ts +7 -7
  179. package/libs/util/queue/queue.d.ts +32 -32
  180. package/libs/util/queue/queue.enum.d.ts +4 -4
  181. package/libs/util/remove-query-params/index.d.ts +1 -1
  182. package/libs/util/remove-query-params/remove-query-params.d.ts +1 -1
  183. package/libs/util/resolve/index.d.ts +1 -1
  184. package/libs/util/resolve/resolve.d.ts +1 -1
  185. package/libs/util/stringify/index.d.ts +1 -1
  186. package/libs/util/stringify/stringify.d.ts +1 -1
  187. package/libs/util/throttle/index.d.ts +1 -1
  188. package/libs/util/throttle/throttle.d.ts +1 -1
  189. package/libs/util/uuid/index.d.ts +1 -1
  190. package/libs/util/uuid/uuid.d.ts +1 -1
  191. package/libs/util/value/index.d.ts +1 -1
  192. package/libs/util/value/value.d.ts +1 -1
  193. package/libs/validate/email/email.d.ts +1 -1
  194. package/libs/validate/email/index.d.ts +1 -1
  195. package/libs/validate/index.d.ts +3 -3
  196. package/libs/validate/phone/index.d.ts +1 -1
  197. package/libs/validate/phone/phone.d.ts +1 -1
  198. package/libs/validate/url/index.d.ts +1 -1
  199. package/libs/validate/url/url.d.ts +7 -7
  200. package/package.json +7 -11
  201. package/public_api.d.ts +15 -6
  202. package/bundles/firestitch-common.umd.min.js +0 -16
  203. package/bundles/firestitch-common.umd.min.js.map +0 -1
  204. package/esm5/app/directives/autofocus.directive.js +0 -45
  205. package/esm5/app/directives/prevent-default.directive.js +0 -32
  206. package/esm5/app/directives/stop-propagation.directive.js +0 -32
  207. package/esm5/app/fs-common.module.js +0 -79
  208. package/esm5/app/pipes/bytes.pipe.js +0 -30
  209. package/esm5/app/pipes/currency.pipe.js +0 -43
  210. package/esm5/app/pipes/number.pipe.js +0 -32
  211. package/esm5/app/pipes/ordinal-number.pipe.js +0 -30
  212. package/esm5/app/pipes/truncate.pipe.js +0 -38
  213. package/esm5/app/pipes/util.pipe.js +0 -100
  214. package/esm5/app/services/array.service.js +0 -491
  215. package/esm5/app/services/math.service.js +0 -42
  216. package/esm5/app/services/util.service.js +0 -608
  217. package/esm5/app/services/vaildate.service.js +0 -63
  218. package/esm5/firestitch-common.js +0 -19
  219. package/esm5/libs/array/compare/compare.js +0 -19
  220. package/esm5/libs/array/compare/index.js +0 -7
  221. package/esm5/libs/array/filter/filter.js +0 -53
  222. package/esm5/libs/array/filter/index.js +0 -7
  223. package/esm5/libs/array/find/find.js +0 -17
  224. package/esm5/libs/array/find/index.js +0 -7
  225. package/esm5/libs/array/inArray/inArray.js +0 -22
  226. package/esm5/libs/array/inArray/index.js +0 -7
  227. package/esm5/libs/array/index/index.js +0 -25
  228. package/esm5/libs/array/index.js +0 -19
  229. package/esm5/libs/array/indexOf/index.js +0 -7
  230. package/esm5/libs/array/indexOf/indexOf.js +0 -31
  231. package/esm5/libs/array/keyExists/index.js +0 -7
  232. package/esm5/libs/array/keyExists/keyExists.js +0 -14
  233. package/esm5/libs/array/ksort/index.js +0 -7
  234. package/esm5/libs/array/ksort/ksort.js +0 -22
  235. package/esm5/libs/array/list/index.js +0 -7
  236. package/esm5/libs/array/list/list.js +0 -31
  237. package/esm5/libs/array/nameValue/index.js +0 -7
  238. package/esm5/libs/array/nameValue/nameValue.js +0 -52
  239. package/esm5/libs/array/remove/index.js +0 -7
  240. package/esm5/libs/array/remove/remove.js +0 -20
  241. package/esm5/libs/array/rsort/index.js +0 -7
  242. package/esm5/libs/array/rsort/rsort.js +0 -15
  243. package/esm5/libs/array/sort/index.js +0 -7
  244. package/esm5/libs/array/sort/sort.js +0 -45
  245. package/esm5/libs/format/acronym/acronym.js +0 -35
  246. package/esm5/libs/format/acronym/index.js +0 -7
  247. package/esm5/libs/format/bytes/bytes.js +0 -23
  248. package/esm5/libs/format/bytes/index.js +0 -7
  249. package/esm5/libs/format/currency/currency.js +0 -23
  250. package/esm5/libs/format/currency/index.js +0 -7
  251. package/esm5/libs/format/index.js +0 -11
  252. package/esm5/libs/format/number/index.js +0 -7
  253. package/esm5/libs/format/number/number.js +0 -14
  254. package/esm5/libs/format/truncate/index.js +0 -7
  255. package/esm5/libs/format/truncate/truncate.js +0 -28
  256. package/esm5/libs/index.js +0 -11
  257. package/esm5/libs/rxjs/delayedRetry.js +0 -65
  258. package/esm5/libs/util/boolean/boolean.js +0 -14
  259. package/esm5/libs/util/boolean/index.js +0 -7
  260. package/esm5/libs/util/debounce/debounce.js +0 -40
  261. package/esm5/libs/util/debounce/index.js +0 -7
  262. package/esm5/libs/util/get-normalized-path/get-normalized-path.js +0 -16
  263. package/esm5/libs/util/get-normalized-path/index.js +0 -7
  264. package/esm5/libs/util/guid/guid.js +0 -37
  265. package/esm5/libs/util/guid/index.js +0 -7
  266. package/esm5/libs/util/index.js +0 -23
  267. package/esm5/libs/util/isClass/index.js +0 -7
  268. package/esm5/libs/util/isClass/isClass.js +0 -28
  269. package/esm5/libs/util/isEmpty/index.js +0 -7
  270. package/esm5/libs/util/isEmpty/isEmpty.js +0 -23
  271. package/esm5/libs/util/isNumeric/index.js +0 -7
  272. package/esm5/libs/util/isNumeric/isNumeric.js +0 -16
  273. package/esm5/libs/util/keys/index.js +0 -7
  274. package/esm5/libs/util/keys/keys.js +0 -80
  275. package/esm5/libs/util/length/index.js +0 -7
  276. package/esm5/libs/util/length/length.js +0 -20
  277. package/esm5/libs/util/ordinal-number/ordinal-number.js +0 -22
  278. package/esm5/libs/util/queue/index.js +0 -8
  279. package/esm5/libs/util/queue/operation.js +0 -30
  280. package/esm5/libs/util/queue/queue.enum.js +0 -12
  281. package/esm5/libs/util/queue/queue.js +0 -367
  282. package/esm5/libs/util/remove-query-params/index.js +0 -7
  283. package/esm5/libs/util/remove-query-params/remove-query-params.js +0 -13
  284. package/esm5/libs/util/resolve/index.js +0 -7
  285. package/esm5/libs/util/resolve/resolve.js +0 -34
  286. package/esm5/libs/util/stringify/index.js +0 -7
  287. package/esm5/libs/util/stringify/stringify.js +0 -13
  288. package/esm5/libs/util/throttle/index.js +0 -7
  289. package/esm5/libs/util/throttle/throttle.js +0 -30
  290. package/esm5/libs/util/uuid/index.js +0 -7
  291. package/esm5/libs/util/uuid/uuid.js +0 -13
  292. package/esm5/libs/util/value/index.js +0 -7
  293. package/esm5/libs/util/value/value.js +0 -20
  294. package/esm5/libs/validate/email/email.js +0 -13
  295. package/esm5/libs/validate/email/index.js +0 -7
  296. package/esm5/libs/validate/index.js +0 -9
  297. package/esm5/libs/validate/phone/index.js +0 -7
  298. package/esm5/libs/validate/phone/phone.js +0 -15
  299. package/esm5/libs/validate/url/index.js +0 -7
  300. package/esm5/libs/validate/url/url.js +0 -23
  301. package/esm5/public_api.js +0 -17
  302. package/fesm5/firestitch-common.js +0 -3285
  303. package/fesm5/firestitch-common.js.map +0 -1
  304. package/firestitch-common.metadata.json +0 -1
@@ -1 +1 @@
1
- export * from './currency';
1
+ export * from './currency';
@@ -1,5 +1,5 @@
1
- export * from './number';
2
- export * from './acronym';
3
- export * from './currency';
4
- export * from './truncate';
5
- export * from './bytes';
1
+ export * from './number';
2
+ export * from './acronym';
3
+ export * from './currency';
4
+ export * from './truncate';
5
+ export * from './bytes';
@@ -1 +1 @@
1
- export * from './number';
1
+ export * from './number';
@@ -1 +1 @@
1
- export declare function number(value: any, decimals?: any): string;
1
+ export declare function number(value: any, decimals?: any): string;
@@ -1 +1 @@
1
- export * from './truncate';
1
+ export * from './truncate';
@@ -1 +1 @@
1
- export declare function truncate(value: string, limit?: number, completeWords?: boolean, ellipsis?: string): string;
1
+ export declare function truncate(value: string, limit?: number, completeWords?: boolean, ellipsis?: string): string;
package/libs/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export * from './validate';
2
- export * from './array';
3
- export * from './util';
4
- export * from './format';
5
- export { delayedRetry } from './rxjs/delayedRetry';
1
+ export * from './validate';
2
+ export * from './array';
3
+ export * from './util';
4
+ export * from './format';
5
+ export { delayedRetry } from './rxjs/delayedRetry';
@@ -1,2 +1,2 @@
1
- import { Observable } from 'rxjs';
2
- export declare function delayedRetry(delayMs: number, maxRetry?: number, message?: string): (src: Observable<unknown>) => Observable<unknown>;
1
+ import { Observable } from 'rxjs';
2
+ export declare function delayedRetry(delayMs: number, maxRetry?: number, message?: string): (src: Observable<unknown>) => Observable<unknown>;
@@ -1 +1 @@
1
- export declare function boolean(value: any): boolean;
1
+ export declare function boolean(value: any): boolean;
@@ -1 +1 @@
1
- export * from './boolean';
1
+ export * from './boolean';
@@ -1 +1 @@
1
- export declare function debounce(func: any, wait: any, immediate: any): () => void;
1
+ export declare function debounce(func: any, wait: any, immediate: any): () => void;
@@ -1 +1 @@
1
- export * from './debounce';
1
+ export * from './debounce';
@@ -1,2 +1,2 @@
1
- import { Location } from '@angular/common';
2
- export declare function getNormalizedPath(locationSrv: Location): string;
1
+ import { Location } from '@angular/common';
2
+ export declare function getNormalizedPath(locationSrv: Location): string;
@@ -1 +1 @@
1
- export { getNormalizedPath } from './get-normalized-path';
1
+ export { getNormalizedPath } from './get-normalized-path';
@@ -1 +1 @@
1
- export declare function guid(pattern?: string, options?: any): string;
1
+ export declare function guid(pattern?: string, options?: any): string;
@@ -1 +1 @@
1
- export * from './guid';
1
+ export * from './guid';
@@ -1,17 +1,17 @@
1
- export * from './boolean';
2
- export * from './debounce';
3
- export * from './guid';
4
- export * from './keys';
5
- export * from './length';
6
- export * from './resolve';
7
- export * from './stringify';
8
- export * from './uuid';
9
- export * from './value';
10
- export * from './isClass';
11
- export * from './isNumeric';
12
- export * from './isEmpty';
13
- export * from './throttle';
14
- export * from './queue';
15
- export { getNormalizedPath } from './get-normalized-path';
16
- export { removeQueryParams } from './remove-query-params';
17
- export { ordinalNumber } from './ordinal-number/ordinal-number';
1
+ export * from './boolean';
2
+ export * from './debounce';
3
+ export * from './guid';
4
+ export * from './keys';
5
+ export * from './length';
6
+ export * from './resolve';
7
+ export * from './stringify';
8
+ export * from './uuid';
9
+ export * from './value';
10
+ export * from './isClass';
11
+ export * from './isNumeric';
12
+ export * from './isEmpty';
13
+ export * from './throttle';
14
+ export * from './queue';
15
+ export { getNormalizedPath } from './get-normalized-path';
16
+ export { removeQueryParams } from './remove-query-params';
17
+ export { ordinalNumber } from './ordinal-number/ordinal-number';
@@ -1 +1 @@
1
- export * from './isClass';
1
+ export * from './isClass';
@@ -1 +1 @@
1
- export declare function isClass(value: any, cls: any): boolean;
1
+ export declare function isClass(value: any, cls: any): boolean;
@@ -1 +1 @@
1
- export * from './isEmpty';
1
+ export * from './isEmpty';
@@ -1 +1 @@
1
- export declare function isEmpty(value: any, options?: any): boolean;
1
+ export declare function isEmpty(value: any, options?: any): boolean;
@@ -1 +1 @@
1
- export * from './isNumeric';
1
+ export * from './isNumeric';
@@ -1 +1 @@
1
- export declare function isNumeric(value: any): boolean;
1
+ export declare function isNumeric(value: any): boolean;
@@ -1 +1 @@
1
- export * from './keys';
1
+ export * from './keys';
@@ -1,37 +1,37 @@
1
- export declare const KEY_CANCEL = 3;
2
- export declare const KEY_HELP = 6;
3
- export declare const KEY_BACKSPACE = 8;
4
- export declare const KEY_TAB = 9;
5
- export declare const KEY_CLEAR = 12;
6
- export declare const KEY_RETURN = 13;
7
- export declare const KEY_ENTER = 14;
8
- export declare const KEY_SHIFT = 16;
9
- export declare const KEY_CONTROL = 17;
10
- export declare const KEY_ALT = 18;
11
- export declare const KEY_PAUSE = 19;
12
- export declare const KEY_CAPS_LOCK = 20;
13
- export declare const KEY_ESCAPE = 27;
14
- export declare const KEY_SPACE = 32;
15
- export declare const KEY_PAGE_UP = 33;
16
- export declare const KEY_PAGE_DOWN = 34;
17
- export declare const KEY_END = 35;
18
- export declare const KEY_HOME = 36;
19
- export declare const KEY_LEFT = 37;
20
- export declare const KEY_UP = 38;
21
- export declare const KEY_RIGHT = 39;
22
- export declare const KEY_DOWN = 40;
23
- export declare const KEY_PRINTSCREEN = 44;
24
- export declare const KEY_INSERT = 45;
25
- export declare const KEY_DELETE = 46;
26
- export declare const KEY_0 = 48;
27
- export declare const KEY_1 = 49;
28
- export declare const KEY_2 = 50;
29
- export declare const KEY_3 = 51;
30
- export declare const KEY_4 = 52;
31
- export declare const KEY_5 = 53;
32
- export declare const KEY_6 = 54;
33
- export declare const KEY_7 = 55;
34
- export declare const KEY_8 = 56;
35
- export declare const KEY_9 = 57;
36
- export declare const KEY_SEMICOLON = 59;
37
- export declare const KEY_EQUALS = 61;
1
+ export declare const KEY_CANCEL = 3;
2
+ export declare const KEY_HELP = 6;
3
+ export declare const KEY_BACKSPACE = 8;
4
+ export declare const KEY_TAB = 9;
5
+ export declare const KEY_CLEAR = 12;
6
+ export declare const KEY_RETURN = 13;
7
+ export declare const KEY_ENTER = 14;
8
+ export declare const KEY_SHIFT = 16;
9
+ export declare const KEY_CONTROL = 17;
10
+ export declare const KEY_ALT = 18;
11
+ export declare const KEY_PAUSE = 19;
12
+ export declare const KEY_CAPS_LOCK = 20;
13
+ export declare const KEY_ESCAPE = 27;
14
+ export declare const KEY_SPACE = 32;
15
+ export declare const KEY_PAGE_UP = 33;
16
+ export declare const KEY_PAGE_DOWN = 34;
17
+ export declare const KEY_END = 35;
18
+ export declare const KEY_HOME = 36;
19
+ export declare const KEY_LEFT = 37;
20
+ export declare const KEY_UP = 38;
21
+ export declare const KEY_RIGHT = 39;
22
+ export declare const KEY_DOWN = 40;
23
+ export declare const KEY_PRINTSCREEN = 44;
24
+ export declare const KEY_INSERT = 45;
25
+ export declare const KEY_DELETE = 46;
26
+ export declare const KEY_0 = 48;
27
+ export declare const KEY_1 = 49;
28
+ export declare const KEY_2 = 50;
29
+ export declare const KEY_3 = 51;
30
+ export declare const KEY_4 = 52;
31
+ export declare const KEY_5 = 53;
32
+ export declare const KEY_6 = 54;
33
+ export declare const KEY_7 = 55;
34
+ export declare const KEY_8 = 56;
35
+ export declare const KEY_9 = 57;
36
+ export declare const KEY_SEMICOLON = 59;
37
+ export declare const KEY_EQUALS = 61;
@@ -1 +1 @@
1
- export * from './length';
1
+ export * from './length';
@@ -1 +1 @@
1
- export declare function length(object: any): any;
1
+ export declare function length(object: any): any;
@@ -1 +1 @@
1
- export declare function ordinalNumber(value: any): string;
1
+ export declare function ordinalNumber(value: any): string;
@@ -1,2 +1,2 @@
1
- export * from './queue';
2
- export { QueueState } from './queue.enum';
1
+ export * from './queue';
2
+ export { QueueState } from './queue.enum';
@@ -1,7 +1,7 @@
1
- import { Observable, Subject } from 'rxjs';
2
- export declare class Operation {
3
- name: string;
4
- target: Observable<any>;
5
- ready$: Subject<unknown>;
6
- constructor(target: any, name?: any);
7
- }
1
+ import { Observable, Subject } from 'rxjs';
2
+ export declare class Operation {
3
+ name: string;
4
+ target: Observable<any>;
5
+ ready$: Subject<unknown>;
6
+ constructor(target: any, name?: any);
7
+ }
@@ -1,32 +1,32 @@
1
- import { Subject } from 'rxjs';
2
- import { QueueState } from './queue.enum';
3
- export declare class Queue {
4
- private _limit;
5
- private _done;
6
- private _queue;
7
- private _inProgress;
8
- private _total;
9
- private _completed;
10
- private _errors;
11
- private _state;
12
- private _destroy$;
13
- constructor(_limit?: number);
14
- readonly total: number;
15
- readonly completed: number;
16
- readonly pending: number;
17
- readonly inProgress: number;
18
- readonly errors: number;
19
- readonly state: QueueState;
20
- readonly empty: boolean;
21
- readonly pendingOperations: string[];
22
- readonly inProgressOperations: string[];
23
- isProcessing(): boolean;
24
- isIdle(): boolean;
25
- setLimit(value: number): void;
26
- subscribe(fun: any, err?: any, complete?: any): void;
27
- complete(fun: any, err?: any, complete?: any): void;
28
- push(target: any, name?: any): Subject<unknown>;
29
- clear(): void;
30
- destroy(): void;
31
- private _processOperation;
32
- }
1
+ import { Subject } from 'rxjs';
2
+ import { QueueState } from './queue.enum';
3
+ export declare class Queue {
4
+ private _limit;
5
+ private _done;
6
+ private _queue;
7
+ private _inProgress;
8
+ private _total;
9
+ private _completed;
10
+ private _errors;
11
+ private _state;
12
+ private _destroy$;
13
+ constructor(_limit?: number);
14
+ get total(): number;
15
+ get completed(): number;
16
+ get pending(): number;
17
+ get inProgress(): number;
18
+ get errors(): number;
19
+ get state(): QueueState;
20
+ get empty(): boolean;
21
+ get pendingOperations(): string[];
22
+ get inProgressOperations(): string[];
23
+ isProcessing(): boolean;
24
+ isIdle(): boolean;
25
+ setLimit(value: number): void;
26
+ subscribe(fun: any, err?: any, complete?: any): void;
27
+ complete(fun: any, err?: any, complete?: any): void;
28
+ push(target: any, name?: any): Subject<unknown>;
29
+ clear(): void;
30
+ destroy(): void;
31
+ private _processOperation;
32
+ }
@@ -1,4 +1,4 @@
1
- export declare enum QueueState {
2
- Idle = "idle",
3
- Processing = "processing"
4
- }
1
+ export declare enum QueueState {
2
+ Idle = "idle",
3
+ Processing = "processing"
4
+ }
@@ -1 +1 @@
1
- export { removeQueryParams } from './remove-query-params';
1
+ export { removeQueryParams } from './remove-query-params';
@@ -1 +1 @@
1
- export declare function removeQueryParams(path: string): string;
1
+ export declare function removeQueryParams(path: string): string;
@@ -1 +1 @@
1
- export * from './resolve';
1
+ export * from './resolve';
@@ -1 +1 @@
1
- export declare function resolve(promise: Promise<object>, defaults?: any[]): Promise<unknown>;
1
+ export declare function resolve(promise: Promise<object>, defaults?: any[]): Promise<unknown>;
@@ -1 +1 @@
1
- export * from './stringify';
1
+ export * from './stringify';
@@ -1 +1 @@
1
- export declare function stringify(value: any): string;
1
+ export declare function stringify(value: any): string;
@@ -1 +1 @@
1
- export * from './throttle';
1
+ export * from './throttle';
@@ -1 +1 @@
1
- export declare function throttle(func: any, wait: any): () => void;
1
+ export declare function throttle(func: any, wait: any): () => void;
@@ -1 +1 @@
1
- export * from './uuid';
1
+ export * from './uuid';
@@ -1 +1 @@
1
- export declare function uuid(): string;
1
+ export declare function uuid(): string;
@@ -1 +1 @@
1
- export * from './value';
1
+ export * from './value';
@@ -1 +1 @@
1
- export declare function value(object: any, key: any, def: any): any;
1
+ export declare function value(object: any, key: any, def: any): any;
@@ -1 +1 @@
1
- export declare function email(value: any): boolean;
1
+ export declare function email(value: any): boolean;
@@ -1 +1 @@
1
- export * from './email';
1
+ export * from './email';
@@ -1,3 +1,3 @@
1
- export * from './email';
2
- export * from './phone';
3
- export * from './url';
1
+ export * from './email';
2
+ export * from './phone';
3
+ export * from './url';
@@ -1 +1 @@
1
- export * from './phone';
1
+ export * from './phone';
@@ -1 +1 @@
1
- export declare function phone(value: any): boolean;
1
+ export declare function phone(value: any): boolean;
@@ -1 +1 @@
1
- export * from './url';
1
+ export * from './url';
@@ -1,7 +1,7 @@
1
- /**
2
- * Check validity of the url.
3
- * Protocol (http/https) isn't required.
4
- * @param value
5
- * @returns {boolean}
6
- */
7
- export declare function url(value: any): boolean;
1
+ /**
2
+ * Check validity of the url.
3
+ * Protocol (http/https) isn't required.
4
+ * @param value
5
+ * @returns {boolean}
6
+ */
7
+ export declare function url(value: any): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firestitch/common",
3
- "version": "8.0.13",
3
+ "version": "12.0.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/Firestitch/ngx-common"
@@ -16,18 +16,14 @@
16
16
  "bugs": {
17
17
  "url": "https://github.com/Firestitch/ngx-common/issues"
18
18
  },
19
- "peerDependencies": {},
19
+ "dependencies": {
20
+ "tslib": "^2.0.0"
21
+ },
20
22
  "sideEffects": false,
21
23
  "main": "bundles/firestitch-common.umd.js",
22
- "module": "fesm5/firestitch-common.js",
24
+ "module": "fesm2015/firestitch-common.js",
23
25
  "es2015": "fesm2015/firestitch-common.js",
24
- "esm5": "esm5/firestitch-common.js",
25
26
  "esm2015": "esm2015/firestitch-common.js",
26
- "fesm5": "fesm5/firestitch-common.js",
27
27
  "fesm2015": "fesm2015/firestitch-common.js",
28
- "typings": "firestitch-common.d.ts",
29
- "metadata": "firestitch-common.metadata.json",
30
- "dependencies": {
31
- "tslib": "^1.9.0"
32
- }
33
- }
28
+ "typings": "firestitch-common.d.ts"
29
+ }
package/public_api.d.ts CHANGED
@@ -1,6 +1,15 @@
1
- export { FsCommonModule } from './app/fs-common.module';
2
- export { FsArray } from './app/services/array.service';
3
- export { FsMath } from './app/services/math.service';
4
- export { FsUtil } from './app/services/util.service';
5
- export { FsValidate } from './app/services/vaildate.service';
6
- export * from './libs';
1
+ export { FsCommonModule } from './app/fs-common.module';
2
+ export { FsArray } from './app/services/array.service';
3
+ export { FsMath } from './app/services/math.service';
4
+ export { FsUtil } from './app/services/util.service';
5
+ export { FsValidate } from './app/services/vaildate.service';
6
+ export * from './libs';
7
+ export { FsUtilGuidPipe, FsUtilStringifyPipe, FsUtilIsEmptyPipe, FsUtilIsNotEmptyPipe, } from './app/pipes/util.pipe';
8
+ export { FsFormatNumberPipe } from './app/pipes/number.pipe';
9
+ export { FsFormatCurrencyPipe } from './app/pipes/currency.pipe';
10
+ export { FsFormatTruncatePipe } from './app/pipes/truncate.pipe';
11
+ export { FsFormatBytesPipe } from './app/pipes/bytes.pipe';
12
+ export { FsStopPropagationDirective } from './app/directives/stop-propagation.directive';
13
+ export { FsPreventDefaultDirective } from './app/directives/prevent-default.directive';
14
+ export { FsAutofocusDirective } from './app/directives/autofocus.directive';
15
+ export { FsFormatOrdinalNumberPipe } from './app/pipes/ordinal-number.pipe';
@@ -1,16 +0,0 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/common"),require("lodash-es"),require("rxjs"),require("rxjs/operators")):"function"==typeof define&&define.amd?define("@firestitch/common",["exports","@angular/core","@angular/common","lodash-es","rxjs","rxjs/operators"],e):e(((t=t||self).firestitch=t.firestitch||{},t.firestitch.common={}),t.ng.core,t.ng.common,t.lodashEs,t.rxjs,t.rxjs.operators)}(this,(function(t,e,r,n,o,i){"use strict";
2
- /*! *****************************************************************************
3
- Copyright (c) Microsoft Corporation. All rights reserved.
4
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use
5
- this file except in compliance with the License. You may obtain a copy of the
6
- License at http://www.apache.org/licenses/LICENSE-2.0
7
-
8
- THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
9
- KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
10
- WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
11
- MERCHANTABLITY OR NON-INFRINGEMENT.
12
-
13
- See the Apache Version 2.0 License for specific language governing permissions
14
- and limitations under the License.
15
- ***************************************************************************** */var s=function(){function t(){}return t.prototype.nameValue=function(t,e,r){console.warn("@deprecated use import { nameValue } from @firestitch/common/array; instead");var n=[];if(e||r){var o="function"==typeof e?e:function(t){return t[e]},i="function"==typeof r?r:function(t){return t[r]};t.forEach((function(t){n.push({name:o(t),value:i(t)})}))}else t.forEach((function(t,e){n.push({name:t,value:e})}));return n},t.prototype.remove=function(t,e){console.warn("@deprecated use import { remove } from @firestitch/common/array; instead");var r=this.indexOf(t,e);return r>=0?t.splice(r,1):r},t.prototype.indexOf=function(t,e){var r=this;if(console.warn("@deprecated use import { indexOf } from @firestitch/common/array; instead"),"function"!=typeof e){var n=e;e=function(t){return r.compare(n,t)}}for(var o=0,i=t.length;o<i;o++)if(e(t[o]))return o;return-1},t.prototype.compare=function(t,e){console.warn("@deprecated use import { compare } from @firestitch/common/array; instead");var r=!0;for(var n in t)r=r&&e[n]==t[n];return r},t.prototype.filter=function(t,e){var r=this;if(console.warn("@deprecated use import { filter } from @firestitch/common/array; instead"),"function"!=typeof e){var n=e;e=function(t){return r.compare(n,t)}}var o=Array.isArray(t),i=o?[]:{};return o?t.forEach((function(t,r){e(t)&&i.push(t)})):Object.keys(t).forEach((function(r){e(t[r])&&(i[r]=t[r])})),i},t.prototype.index=function(t,e){console.warn("@deprecated use import { index } from @firestitch/common/array; instead");var r={};return t.forEach((function(t,n){r[t[e]]=t})),r},t.prototype.sort=function(t,e,r){if(void 0===r&&(r=!1),console.warn("@deprecated use import { sort } from @firestitch/common/array; instead"),"function"!=typeof e){var n=e;e=function(t,e){if(r){if(t[n]<e[n])return 1;if(t[n]>e[n])return-1}else{if(t[n]>e[n])return 1;if(t[n]<e[n])return-1}return 0}}return t.sort(e),t},t.prototype.rsort=function(t,e){return console.warn("@deprecated use import { rsort } from @firestitch/common/array; instead"),this.sort(t,e,!0)},t.prototype.list=function(t,e,r){void 0===r&&(r=null),console.warn("@deprecated use import { list } from @firestitch/common/array; instead");var n=r?{}:[];return t.forEach((function(t,o){r?n[t[r]]=t[e]:n.push(t[e])})),n},t.prototype.applyDepth=function(t,e,r,n){void 0===r&&(r="id"),void 0===n&&(n="depth"),console.warn("@deprecated use import { applyDepth } from @firestitch/common/array; instead");var o={};return t.forEach((function(t){t[e]||(t[n]=0),o[t[r]]=t})),Object.keys(o).forEach((function(t){Object.keys(o).forEach((function(t){o[t];o[t][n]||o[t][e]&&(o[t][n]=o[o[t][e]][n]+1)}))})),o},t.prototype.inArray=function(t,e){console.warn("@deprecated use import { inArray } from @firestitch/common/array; instead"),Array.isArray(t)||(t=[t]);for(var r=0,n=t.length;r<n;r++)if(e.indexOf(t[r])>=0)return!0;return!1},t.prototype.keyExists=function(t,e){return console.warn("@deprecated use import { keyExists } from @firestitch/common/array; instead"),t.hasOwnProperty(e)},t.prototype.length=function(t){return console.warn("@deprecated use import { length } from @firestitch/common/array; instead"),t.length},t.prototype.ksort=function(t){console.warn("@deprecated use import { ksort } from @firestitch/common/array; instead"),Object.keys(t).sort().forEach((function(e){var r=t[e];delete t[e],t[e]=r}))},t.decorators=[{type:e.Injectable}],t}(),c=function(){function t(){}return t.prototype.round=function(t,e){console.warn("@deprecated use _.round() instead {@link https://lodash.com/docs/4.17.5#round}"),e=e||0;var r=Math.pow(10,e),n=t*r;return Math.round(n)/r},t.decorators=[{type:e.Injectable}],t}(),u=function(){function t(){this.intervals={}}return t.prototype.guid=function(t){return console.warn("@deprecated use @firestitch/common/util/guid instead"),(t=t||"xxxxxx").replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"==t?e:3&e|8).toString(16)}))},t.prototype.uuid=function(){return console.warn("@deprecated use @firestitch/common/util/uuid instead"),this.guid("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")},t.prototype.resolve=function(t,e){void 0===e&&(e=[]),console.warn("@deprecated use @firestitch/common/util/resolve instead");var r=e;return new Promise((function(e){t.then((function(t){Object.keys(t).forEach((function(e){return r[e]=t[e]})),e(r)}))}))},t.prototype.int=function(t){return console.warn("@deprecated use _.toInteger() instead"),t=parseInt(t),isNaN(t)&&(t=0),t},t.prototype.float=function(t){return console.warn("@deprecated use _.toFinite() instead"),t=parseFloat(t),isNaN(t)&&(t=0),t},t.prototype.string=function(t){return console.warn("@deprecated use _.toString() instead"),null==t&&(t=""),t.toString()},t.prototype.isEmpty=function(t,e){return console.warn("@deprecated use import { isEmpty } from @firestitch/common/util; instead"),e=e||{},null==t||!1===t||""===t||!this.string(t).length||this.isObject(t)&&"Object"===t.constructor.name&&!Object.keys(t).length||!e.zero&&(0===t||"0"===t)},t.prototype.isInt=function(t,e){return console.warn("@deprecated use _.isInteger() instead"),!!this.string(t).match(/^\d+$/)&&(!e||Number.isInteger(t))},t.prototype.each=function(t,e){console.warn("@deprecated use _.each() instead {@link https://lodash.com/docs/4.17.5#forEach}"),(this.isArray(t)||this.isObject(t))&&Object.keys(t).forEach((function(r){e(t[r],r)}))},t.prototype.isObject=function(t){return 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"),null!==t&&"object"==typeof t&&!this.isArray(t)},t.prototype.isString=function(t){return console.warn("@deprecated use _.isString() instead {@link https://lodash.com/docs/4.17.5#isString}"),"string"==typeof t||t instanceof String},t.prototype.isArray=function(t){return console.warn("@deprecated use _.isArray() instead {@link https://lodash.com/docs/4.17.5#isArray}"),t instanceof Array},t.prototype.isNumeric=function(t){return console.warn("@deprecated use import { isNumeric } from @firestitch/common/util; instead"),this.string(t).length&&!!this.string(t).match(/^-?\d*\.?\d*$/)},t.prototype.isClass=function(t,e){if(console.warn("@deprecated use import { isClass } from @firestitch/common/util; instead"),this.isObject(t))if(this.isString(e)){if(t.constructor&&t.constructor.name===e)return!0}else if(t instanceof e)return!0;return!1},t.prototype.isBoolean=function(t){return console.warn("@deprecated use _.isBoolean() instead {@link https://lodash.com/docs/4.17.5#isBoolean}"),!0===t||!1===t},t.prototype.value=function(t,e,r){return console.warn("@deprecated use import { value } from @firestitch/common/util; instead"),(this.isObject(t)||this.isArray(t))&&t.hasOwnProperty(e)?t[e]:r},t.prototype.throttle=function(t,e){console.warn("@deprecated use import { throttle } from @firestitch/common/util; instead");var r=!1;return(function(){r||(t.apply(null,arguments),r=!0,setTimeout((function(){r=!1}),e))})},t.prototype.debounce=function(t,e,r){var n;return console.warn("@deprecated use import { debounce } from @firestitch/common/util; instead"),function(){var o=this,i=arguments,s=function(){n=null,r||t.apply(o,i)},c=r&&!n;clearTimeout(n),n=setTimeout(s,e),c&&t.apply(o,i)}},t.prototype.length=function(t){return console.warn("@deprecated use import { length } from @firestitch/common/util; instead"),this.isObject(t)?Object.keys(t).length:this.isArray(t)?t.length:0},t.prototype.boolean=function(t){return console.warn("@deprecated use import { boolean } from @firestitch/common/util; instead"),"false"!==this.string(t).toLowerCase()&&!!t},t.prototype.stringify=function(t){return console.warn("@deprecated use import { stringify } from @firestitch/common/util; instead"),JSON.stringify(t)},t.decorators=[{type:e.Injectable}],t}();var a=function(){function t(t){this.fsUtil=t}return t.prototype.phone=function(t){return/^[\+]?[(]?[0-9]{3}[)]?[-\s\.]?[0-9]{3}[-\s\.]?[0-9]{4,6}$/.test(t)||!String(t).length},t.prototype.email=function(t){return!!this.fsUtil.string(t).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,}))$/)},t.decorators=[{type:e.Injectable}],t.ctorParameters=function(){return[{type:u}]},t}();function f(t){return JSON.stringify(t)}function p(t,e){void 0===e&&(e={case:"lower",numbers:!0}),t=t||"xxxxxx";var r="";!1!==e.numbers&&(r="0123456789"),e.case&&"lower"!==e.case&&"mixed"!==e.case||(r=r.concat("abcdefghijklmnopqrstuvwxyz")),"upper"!==e.case&&"mixed"!==e.case||(r=r.concat("ABCDEFGHIJKLMNOPQRSTUVWXYZ"));var n=r.match(/(.{1,1})/g);return t.replace(/[x]/g,(function(t){var e=Math.random()*n.length|0;return n[e]}))}function l(t,e){return e=e||{},null==t||!1===t||""===t||!n.toString(t).length||n.isObject(t)&&"Object"===t.constructor.name&&!Object.keys(t).length||!e.zero&&(0===t||"0"===t)}var d=function(){function t(){}return t.prototype.transform=function(t){return f(t)},t.decorators=[{type:e.Pipe,args:[{name:"fsUtilStringify"}]}],t.ctorParameters=function(){return[]},t}(),m=function(){function t(){}return t.prototype.transform=function(){return p()},t.decorators=[{type:e.Pipe,args:[{name:"fsUtilGuid"}]}],t.ctorParameters=function(){return[]},t}(),h=function(){function t(){}return t.prototype.transform=function(t){return l(t)},t.decorators=[{type:e.Pipe,args:[{name:"fsUtilIsEmpty"}]}],t}(),y=function(){function t(){}return t.prototype.transform=function(t){return!l(t)},t.decorators=[{type:e.Pipe,args:[{name:"fsUtilIsNotEmpty"}]}],t}();function g(t,e){return Number(t||0).toLocaleString(void 0,{maximumFractionDigits:e})}var v=function(){function t(){}return t.prototype.transform=function(t,e){return g(t,e)},t.decorators=[{type:e.Pipe,args:[{name:"fsFormatNumber"}]}],t}();function x(t,e,o,i){void 0===e&&(e=[2,10]),void 0===o&&(o="USD"),void 0===i&&(i="en-US");var s=n.isArray(e)?e:[e,e];return new r.CurrencyPipe(i).transform(t,o,"symbol","1."+s[0]+"-"+s[1])}var _=function(){function t(t){this.locale=t}return t.prototype.transform=function(t,e,r){return x(t,e,r)},t.decorators=[{type:e.Pipe,args:[{name:"fsFormatCurrency"}]}],t.ctorParameters=function(){return[{type:String,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]},t}();function b(t,e,r,n){void 0===e&&(e=100),void 0===r&&(r=!1),void 0===n&&(n="..."),t=t||"",r&&(e=t.substr(0,e).lastIndexOf(" "));var o=""+t.substr(0,e);return o!==t&&(o+=n),o}var E=function(){function t(){}return t.prototype.transform=function(t,e,r,n){return b(t,e,r,n)},t.decorators=[{type:e.Pipe,args:[{name:"fsFormatTruncate"}]}],t.ctorParameters=function(){return[]},t}();function O(t){if(!t)return"0.00 B";var e=Math.floor(Math.log(t)/Math.log(1024)),r=t/1024>1e3?2:0;return console.log(t,t/1024,r),(""+(t/Math.pow(1024,e)).toFixed(r)).replace(/\.00/,"")+" "+(e?" KMGTP".charAt(e):"")+"B"}var P,w=function(){function t(){}return t.prototype.transform=function(t){return O(t)},t.decorators=[{type:e.Pipe,args:[{name:"fsFormatBytes"}]}],t}(),j=function(){function t(){}return t.prototype.preventClick=function(t){t.stopPropagation()},t.decorators=[{type:e.Directive,args:[{selector:"[fsStopPropagation]"}]}],t.propDecorators={preventClick:[{type:e.HostListener,args:["click",["$event"]]}]},t}(),A=function(){function t(){}return t.prototype.preventClick=function(t){t.preventDefault()},t.decorators=[{type:e.Directive,args:[{selector:"[fsPreventDefault]"}]}],t.propDecorators={preventClick:[{type:e.HostListener,args:["click",["$event"]]}]},t}(),K=function(){function t(t){this._el=t}return t.prototype.ngAfterViewInit=function(){var t=this;setTimeout((function(){t._el.nativeElement.focus()}))},t.decorators=[{type:e.Directive,args:[{selector:"[autofocus]"}]}],t.ctorParameters=function(){return[{type:e.ElementRef}]},t}();function S(t){var e,r,n=(t=String(t)).match(P||(e=["1?.$"],r=["1?.$"],Object.defineProperty?Object.defineProperty(e,"raw",{value:r}):e.raw=r,P=e));return t+([,"st","nd","rd"][n]||"th")}var k=function(){function t(){}return t.prototype.transform=function(t){return S(t)},t.decorators=[{type:e.Pipe,args:[{name:"fsFormatOrdinalNumber"}]}],t}(),Y=function(){function t(){}return t.forRoot=function(){return{ngModule:t,providers:[s,c,u,a]}},t.decorators=[{type:e.NgModule,args:[{imports:[r.CommonModule],exports:[j,A,K,m,d,v,_,E,h,y,w,k],declarations:[j,A,K,m,h,y,d,v,_,E,w,k]}]}],t}();function C(t,e){var r=!0;for(var n in t)r=r&&e[n]==t[n];return r}function N(t,e){if("function"!=typeof e){var r=e;e=function(t){return C(r,t)}}var n=Array.isArray(t),o=n?[]:{};return n?t.forEach((function(t,r){e(t)&&o.push(t)})):Object.keys(t).forEach((function(r){e(t[r])&&(o[r]=t[r])})),o}function I(t,e){if("function"!=typeof e){var r=e;e=function(t){return C(r,t)}}for(var n=0,o=t.length;n<o;n++)if(e(t[n]))return n;return-1}function L(t,e,r){if(void 0===r&&(r=!1),"function"!=typeof e){var n=e;e=function(t,e){if(r){if(t[n]<e[n])return 1;if(t[n]>e[n])return-1}else{if(t[n]>e[n])return 1;if(t[n]<e[n])return-1}return 0}}return t.sort(e),t}var T=function(t,e){this.ready$=new o.Subject,this.name=e||p(),t instanceof o.Observable?this.target=t:this.target=o.of(t)};var U={Idle:"idle",Processing:"processing"},$=function(){function t(t){void 0===t&&(t=1/0),this._limit=t,this._done=new o.Subject,this._queue=[],this._inProgress=[],this._total=0,this._completed=0,this._errors=0,this._state=U.Idle,this._destroy$=new o.Subject}return Object.defineProperty(t.prototype,"total",{get:function(){return this._total},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"completed",{get:function(){return this._completed},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return this._queue.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inProgress",{get:function(){return this._inProgress.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this._errors},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"empty",{get:function(){return!this._queue.length&&!this._inProgress.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pendingOperations",{get:function(){return this._queue.map((function(t){return t.name}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inProgressOperations",{get:function(){return this._inProgress.map((function(t){return t.name}))},enumerable:!0,configurable:!0}),t.prototype.isProcessing=function(){return this._state===U.Processing},t.prototype.isIdle=function(){return this._state===U.Idle},t.prototype.setLimit=function(t){this._limit=t},t.prototype.subscribe=function(t,e,r){this._done.pipe(i.takeUntil(this._destroy$)).subscribe(t,e,r)},t.prototype.complete=function(t,e,r){var n=this;o.Observable.create((function(t){if(!n.isProcessing())return t.next(),void t.complete();n.subscribe((function(){t.next(),t.complete()}),(function(e){t.error(e),n.clear()}))})).subscribe(t,e,r)},t.prototype.push=function(t,e){var r=new T(t,e);return this._total++,this._state=U.Processing,this._inProgress.length<this._limit?this._processOperation(r):this._queue.push(r),r.ready$},t.prototype.clear=function(){this._queue=[],this._total=0,this._errors=0,this._completed=0,this._state=U.Idle,this._done=new o.Subject},t.prototype.destroy=function(){this.clear(),this._done.complete()},t.prototype._processOperation=function(t){var e=this;this._inProgress.push(t),t.target.pipe(i.delay(200),i.takeUntil(this._destroy$)).subscribe({next:function(e){t.ready$.next(e)},error:function(r){var n=e._inProgress.indexOf(t);e._inProgress.splice(n,1),e._errors++,t.ready$.error(r),e.empty&&(e._state=U.Idle,e._done.error(r))},complete:function(){var r=e._inProgress.indexOf(t);if(e._inProgress.splice(r,1),e._completed++,t.ready$.complete(),e.empty)e._state=U.Idle,e._done.next();else if(e._queue.length){var n=e._queue.shift();e._processOperation(n)}}})},t}();function F(t){return t.split("?")[0]}var M=function(t,e){return e||"Failed to load Resource for "+t+" times. Giving up."};t.FsArray=s,t.FsCommonModule=Y,t.FsMath=c,t.FsUtil=u,t.FsValidate=a,t.KEY_0=48,t.KEY_1=49,t.KEY_2=50,t.KEY_3=51,t.KEY_4=52,t.KEY_5=53,t.KEY_6=54,t.KEY_7=55,t.KEY_8=56,t.KEY_9=57,t.KEY_ALT=18,t.KEY_BACKSPACE=8,t.KEY_CANCEL=3,t.KEY_CAPS_LOCK=20,t.KEY_CLEAR=12,t.KEY_CONTROL=17,t.KEY_DELETE=46,t.KEY_DOWN=40,t.KEY_END=35,t.KEY_ENTER=14,t.KEY_EQUALS=61,t.KEY_ESCAPE=27,t.KEY_HELP=6,t.KEY_HOME=36,t.KEY_INSERT=45,t.KEY_LEFT=37,t.KEY_PAGE_DOWN=34,t.KEY_PAGE_UP=33,t.KEY_PAUSE=19,t.KEY_PRINTSCREEN=44,t.KEY_RETURN=13,t.KEY_RIGHT=39,t.KEY_SEMICOLON=59,t.KEY_SHIFT=16,t.KEY_SPACE=32,t.KEY_TAB=9,t.KEY_UP=38,t.Queue=$,t.QueueState=U,t.acronym=function(t,e){void 0===e&&(e=2);for(var r=t.replace(/[^a-zA-Z0-9]+/g," ").split(" "),n="",o=0;o<e;o++){if(!r[o]){if(1===r.length)for(var i=1;i<e&&r[o-1][i];i++)n+=r[o-1][i].toUpperCase();break}n+=r[o][0].toUpperCase()}return n},t.boolean=function(t){return"false"!==n.toString(t).toLowerCase()&&!!t},t.bytes=O,t.compare=C,t.currency=x,t.debounce=function(t,e,r){var n;return(function(){var o=this,i=arguments,s=function(){n=null,r||t.apply(o,i)},c=r&&!n;clearTimeout(n),n=setTimeout(s,e),c&&t.apply(o,i)})},t.delayedRetry=function(t,e,r){void 0===e&&(e=5);var n=0;return(function(s){return s.pipe(i.retryWhen((function(s){return s.pipe(i.tap((function(){++n<=e&&console.info("Failed to load Resource. Retry in "+t/1e3+" sec. "+n+"/"+e+" times...")})),i.concatMap((function(i){return o.iif((function(){return n>e}),o.throwError(M(e,r)),o.timer(t))})))})))})},t.email=function(t){return!!String(t).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,}))$/)},t.filter=N,t.find=function(t,e){var r=N(t,e);return r.length?r[0]:null},t.getNormalizedPath=function(t){return F(t.prepareExternalUrl(t.path()))},t.guid=p,t.inArray=function(t,e){Array.isArray(t)||(t=[t]);for(var r=0,n=t.length;r<n;r++)if(e.indexOf(t[r])>=0)return!0;return!1},t.index=function(t,e,r){void 0===r&&(r=null);var n={};return t.forEach((function(t){n[t[e]]=r?t[r]:t})),n},t.indexOf=I,t.isClass=function(t,e){if("object"==typeof t)if("string"==typeof e){if(t.constructor&&t.constructor.name===e)return!0}else if(t instanceof e)return!0;return!1},t.isEmpty=l,t.isNumeric=function(t){var e=n.toString(t);return e.length&&!!e.match(/^-?\d*\.?\d*$/)},t.keyExists=function(t,e){return t.hasOwnProperty(e)},t.ksort=function(t){Object.keys(t).sort().forEach((function(e){var r=t[e];delete t[e],t[e]=r}))},t.length=function(t){return n.isObject(t)?Object.keys(t).length:n.isArray(t)?t.length:0},t.list=function(t,e,r){void 0===r&&(r=null);var n=r?{}:[];return t.forEach((function(t,o){r?n[t[r]]=t[e]:n.push(t[e])})),n},t.nameValue=function(t,e,r){var n=[];if(e||r){var o="function"==typeof e?e:function(t){return t[e]},i="function"==typeof r?r:function(t){return t[r]};t.forEach((function(t){n.push({name:o(t),value:i(t)})}))}else t.forEach((function(t,e){n.push({name:t,value:e})}));return n},t.number=g,t.ordinalNumber=S,t.phone=function(t){return/^[\+]?[(]?[0-9]{3}[)]?[-\s\.]?[0-9]{3}[-\s\.]?[0-9]{4}/.test(t)||!String(t).length},t.remove=function(t,e){var r=I(t,e);return r>=0?t.splice(r,1):r},t.removeQueryParams=F,t.resolve=function(t,e){void 0===e&&(e=[]);var r=e;return new Promise((function(e){t.then((function(t){Object.keys(t).forEach((function(e){return r[e]=t[e]})),e(r)}))}))},t.rsort=function(t,e){return L(t,e,!0)},t.sort=L,t.stringify=f,t.throttle=function(t,e){var r=!1;return(function(){r||(t.apply(null,arguments),r=!0,setTimeout((function(){r=!1}),e))})},t.truncate=b,t.url=function(t){var e=new RegExp(/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#%[\]@!\$&'\(\)\*\+,;=.]+$/gm);return!!String(t).match(e)},t.uuid=function(){return p("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")},t.value=function(t,e,r){return("object"==typeof t||Array.isArray(t))&&t.hasOwnProperty(e)?t[e]:r},t.ɵa=j,t.ɵb=A,t.ɵc=K,t.ɵd=d,t.ɵe=m,t.ɵf=h,t.ɵg=y,t.ɵh=v,t.ɵi=_,t.ɵj=E,t.ɵk=w,t.ɵl=k,Object.defineProperty(t,"__esModule",{value:!0})}));
16
- //# sourceMappingURL=firestitch-common.umd.min.js.map