@firestitch/common 12.7.0 → 13.0.1

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 (253) hide show
  1. package/app/directives/autofocus.directive.d.ts +13 -13
  2. package/app/directives/index.d.ts +4 -4
  3. package/app/directives/model-change.directive.d.ts +16 -16
  4. package/app/directives/prevent-default.directive.d.ts +6 -6
  5. package/app/directives/stop-propagation.directive.d.ts +6 -6
  6. package/app/fs-common.module.d.ts +19 -19
  7. package/app/pipes/bytes.pipe.d.ts +7 -7
  8. package/app/pipes/currency.pipe.d.ts +9 -9
  9. package/app/pipes/index.d.ts +2 -2
  10. package/app/pipes/number.pipe.d.ts +7 -7
  11. package/app/pipes/ordinal-number.pipe.d.ts +7 -7
  12. package/app/pipes/truncate.pipe.d.ts +8 -8
  13. package/app/pipes/util.pipe.d.ts +24 -24
  14. package/app/services/array.service.d.ts +61 -61
  15. package/app/services/math.service.d.ts +9 -9
  16. package/app/services/util.service.d.ts +89 -89
  17. package/app/services/vaildate.service.d.ts +16 -16
  18. package/{esm2015/app/directives/autofocus.directive.js → esm2020/app/directives/autofocus.directive.mjs} +51 -51
  19. package/{esm2015/app/directives/index.js → esm2020/app/directives/index.mjs} +5 -5
  20. package/esm2020/app/directives/model-change.directive.mjs +37 -0
  21. package/{esm2015/app/directives/prevent-default.directive.js → esm2020/app/directives/prevent-default.directive.mjs} +19 -19
  22. package/{esm2015/app/directives/stop-propagation.directive.js → esm2020/app/directives/stop-propagation.directive.mjs} +19 -19
  23. package/{esm2015/app/fs-common.module.js → esm2020/app/fs-common.module.mjs} +98 -98
  24. package/{esm2015/app/pipes/bytes.pipe.js → esm2020/app/pipes/bytes.pipe.mjs} +17 -17
  25. package/{esm2015/app/pipes/currency.pipe.js → esm2020/app/pipes/currency.pipe.mjs} +23 -23
  26. package/{esm2015/app/pipes/index.js → esm2020/app/pipes/index.mjs} +2 -2
  27. package/{esm2015/app/pipes/number.pipe.js → esm2020/app/pipes/number.pipe.mjs} +17 -17
  28. package/{esm2015/app/pipes/ordinal-number.pipe.js → esm2020/app/pipes/ordinal-number.pipe.mjs} +17 -17
  29. package/{esm2015/app/pipes/truncate.pipe.js → esm2020/app/pipes/truncate.pipe.mjs} +18 -18
  30. package/esm2020/app/pipes/util.pipe.mjs +60 -0
  31. package/{esm2015/app/services/array.service.js → esm2020/app/services/array.service.mjs} +225 -225
  32. package/{esm2015/app/services/math.service.js → esm2020/app/services/math.service.mjs} +21 -21
  33. package/{esm2015/app/services/util.service.js → esm2020/app/services/util.service.mjs} +251 -251
  34. package/{esm2015/app/services/vaildate.service.js → esm2020/app/services/vaildate.service.mjs} +28 -28
  35. package/{esm2015/firestitch-common.js → esm2020/firestitch-common.mjs} +4 -4
  36. package/{esm2015/libs/array/compare/compare.js → esm2020/libs/array/compare/compare.mjs} +7 -7
  37. package/{esm2015/libs/array/compare/index.js → esm2020/libs/array/compare/index.mjs} +1 -1
  38. package/{esm2015/libs/array/filter/filter.js → esm2020/libs/array/filter/filter.mjs} +26 -26
  39. package/{esm2015/libs/array/filter/index.js → esm2020/libs/array/filter/index.mjs} +1 -1
  40. package/{esm2015/libs/array/find/find.js → esm2020/libs/array/find/find.mjs} +5 -5
  41. package/{esm2015/libs/array/find/index.js → esm2020/libs/array/find/index.mjs} +1 -1
  42. package/{esm2015/libs/array/inArray/inArray.js → esm2020/libs/array/inArray/inArray.mjs} +11 -11
  43. package/{esm2015/libs/array/inArray/index.js → esm2020/libs/array/inArray/index.mjs} +1 -1
  44. package/{esm2015/libs/array/index/index.js → esm2020/libs/array/index/index.mjs} +7 -7
  45. package/{esm2015/libs/array/index.js → esm2020/libs/array/index.mjs} +13 -13
  46. package/{esm2015/libs/array/indexOf/index.js → esm2020/libs/array/indexOf/index.mjs} +1 -1
  47. package/{esm2015/libs/array/indexOf/indexOf.js → esm2020/libs/array/indexOf/indexOf.mjs} +15 -15
  48. package/{esm2015/libs/array/keyExists/index.js → esm2020/libs/array/keyExists/index.mjs} +1 -1
  49. package/{esm2015/libs/array/keyExists/keyExists.js → esm2020/libs/array/keyExists/keyExists.mjs} +3 -3
  50. package/{esm2015/libs/array/ksort/index.js → esm2020/libs/array/ksort/index.mjs} +1 -1
  51. package/{esm2015/libs/array/ksort/ksort.js → esm2020/libs/array/ksort/ksort.mjs} +7 -7
  52. package/{esm2015/libs/array/list/index.js → esm2020/libs/array/list/index.mjs} +1 -1
  53. package/{esm2015/libs/array/list/list.js → esm2020/libs/array/list/list.mjs} +12 -12
  54. package/{esm2015/libs/array/nameValue/index.js → esm2020/libs/array/nameValue/index.mjs} +1 -1
  55. package/{esm2015/libs/array/nameValue/nameValue.js → esm2020/libs/array/nameValue/nameValue.mjs} +20 -20
  56. package/{esm2015/libs/array/remove/index.js → esm2020/libs/array/remove/index.mjs} +1 -1
  57. package/{esm2015/libs/array/remove/remove.js → esm2020/libs/array/remove/remove.mjs} +8 -8
  58. package/{esm2015/libs/array/rsort/index.js → esm2020/libs/array/rsort/index.mjs} +1 -1
  59. package/{esm2015/libs/array/rsort/rsort.js → esm2020/libs/array/rsort/rsort.mjs} +4 -4
  60. package/{esm2015/libs/array/sort/index.js → esm2020/libs/array/sort/index.mjs} +1 -1
  61. package/{esm2015/libs/array/sort/sort.js → esm2020/libs/array/sort/sort.mjs} +26 -26
  62. package/{esm2015/libs/format/acronym/acronym.js → esm2020/libs/format/acronym/acronym.mjs} +21 -21
  63. package/{esm2015/libs/format/acronym/index.js → esm2020/libs/format/acronym/index.mjs} +1 -1
  64. package/{esm2015/libs/format/bytes/bytes.js → esm2020/libs/format/bytes/bytes.mjs} +17 -17
  65. package/{esm2015/libs/format/bytes/index.js → esm2020/libs/format/bytes/index.mjs} +1 -1
  66. package/{esm2015/libs/format/currency/currency.js → esm2020/libs/format/currency/currency.mjs} +8 -8
  67. package/{esm2015/libs/format/currency/index.js → esm2020/libs/format/currency/index.mjs} +1 -1
  68. package/{esm2015/libs/format/index.js → esm2020/libs/format/index.mjs} +5 -5
  69. package/{esm2015/libs/format/number/index.js → esm2020/libs/format/number/index.mjs} +1 -1
  70. package/{esm2015/libs/format/number/number.js → esm2020/libs/format/number/number.mjs} +7 -7
  71. package/{esm2015/libs/format/truncate/index.js → esm2020/libs/format/truncate/index.mjs} +1 -1
  72. package/{esm2015/libs/format/truncate/truncate.js → esm2020/libs/format/truncate/truncate.mjs} +11 -11
  73. package/{esm2015/libs/index.js → esm2020/libs/index.mjs} +6 -6
  74. package/{esm2015/libs/rxjs/delayedRetry.js → esm2020/libs/rxjs/delayedRetry.mjs} +19 -19
  75. package/{esm2015/libs/rxjs/keyboard-shortcut.js → esm2020/libs/rxjs/keyboard-shortcut.mjs} +17 -17
  76. package/{esm2015/libs/util/boolean/boolean.js → esm2020/libs/util/boolean/boolean.mjs} +3 -3
  77. package/{esm2015/libs/util/boolean/index.js → esm2020/libs/util/boolean/index.mjs} +1 -1
  78. package/{esm2015/libs/util/clone/clone.js → esm2020/libs/util/clone/clone.mjs} +20 -20
  79. package/{esm2015/libs/util/clone/index.js → esm2020/libs/util/clone/index.mjs} +1 -1
  80. package/{esm2015/libs/util/debounce/debounce.js → esm2020/libs/util/debounce/debounce.mjs} +16 -16
  81. package/{esm2015/libs/util/debounce/index.js → esm2020/libs/util/debounce/index.mjs} +1 -1
  82. package/{esm2015/libs/util/get-normalized-path/get-normalized-path.js → esm2020/libs/util/get-normalized-path/get-normalized-path.mjs} +5 -5
  83. package/{esm2015/libs/util/get-normalized-path/index.js → esm2020/libs/util/get-normalized-path/index.mjs} +1 -1
  84. package/{esm2015/libs/util/guid/guid.js → esm2020/libs/util/guid/guid.mjs} +18 -18
  85. package/{esm2015/libs/util/guid/index.js → esm2020/libs/util/guid/index.mjs} +1 -1
  86. package/esm2020/libs/util/index.mjs +24 -0
  87. package/esm2020/libs/util/is-array-equal/index.mjs +2 -0
  88. package/{esm2015/libs/util/is-array-equal/is-array-equal.js → esm2020/libs/util/is-array-equal/is-array-equal.mjs} +21 -21
  89. package/esm2020/libs/util/is-class/index.mjs +2 -0
  90. package/esm2020/libs/util/is-class/is-class.mjs +18 -0
  91. package/esm2020/libs/util/is-empty/index.mjs +2 -0
  92. package/esm2020/libs/util/is-empty/is-empty.mjs +12 -0
  93. package/esm2020/libs/util/is-numeric/index.mjs +2 -0
  94. package/esm2020/libs/util/is-numeric/is-numeric.mjs +5 -0
  95. package/{esm2015/libs/util/is-object/index.js → esm2020/libs/util/is-object/index.mjs} +1 -1
  96. package/{esm2015/libs/util/is-object/is-object.js → esm2020/libs/util/is-object/is-object.mjs} +3 -3
  97. package/{esm2015/libs/util/keys/index.js → esm2020/libs/util/keys/index.mjs} +1 -1
  98. package/{esm2015/libs/util/keys/keys.js → esm2020/libs/util/keys/keys.mjs} +37 -37
  99. package/{esm2015/libs/util/length/index.js → esm2020/libs/util/length/index.mjs} +1 -1
  100. package/{esm2015/libs/util/length/length.js → esm2020/libs/util/length/length.mjs} +9 -9
  101. package/esm2020/libs/util/ordinal-number/index.mjs +2 -0
  102. package/{esm2015/libs/util/ordinal-number/ordinal-number.js → esm2020/libs/util/ordinal-number/ordinal-number.mjs} +7 -7
  103. package/{esm2015/libs/util/queue/index.js → esm2020/libs/util/queue/index.mjs} +3 -3
  104. package/{esm2015/libs/util/queue/operation.js → esm2020/libs/util/queue/operation.mjs} +14 -14
  105. package/{esm2015/libs/util/queue/queue-stats.js → esm2020/libs/util/queue/queue-stats.mjs} +1 -1
  106. package/{esm2015/libs/util/queue/queue.enum.js → esm2020/libs/util/queue/queue.enum.mjs} +5 -5
  107. package/{esm2015/libs/util/queue/queue.js → esm2020/libs/util/queue/queue.mjs} +164 -164
  108. package/{esm2015/libs/util/remove-query-params/index.js → esm2020/libs/util/remove-query-params/index.mjs} +1 -1
  109. package/{esm2015/libs/util/remove-query-params/remove-query-params.js → esm2020/libs/util/remove-query-params/remove-query-params.mjs} +3 -3
  110. package/{esm2015/libs/util/resolve/index.js → esm2020/libs/util/resolve/index.mjs} +1 -1
  111. package/{esm2015/libs/util/resolve/resolve.js → esm2020/libs/util/resolve/resolve.mjs} +9 -9
  112. package/{esm2015/libs/util/round/index.js → esm2020/libs/util/round/index.mjs} +1 -1
  113. package/{esm2015/libs/util/round/round.js → esm2020/libs/util/round/round.mjs} +5 -5
  114. package/esm2020/libs/util/source-loader/index.mjs +2 -0
  115. package/esm2020/libs/util/source-loader/source-loader.mjs +155 -0
  116. package/{esm2015/libs/util/stringify/index.js → esm2020/libs/util/stringify/index.mjs} +1 -1
  117. package/{esm2015/libs/util/stringify/stringify.js → esm2020/libs/util/stringify/stringify.mjs} +3 -3
  118. package/{esm2015/libs/util/throttle/index.js → esm2020/libs/util/throttle/index.mjs} +1 -1
  119. package/{esm2015/libs/util/throttle/throttle.js → esm2020/libs/util/throttle/throttle.mjs} +12 -12
  120. package/{esm2015/libs/util/to-string/index.js → esm2020/libs/util/to-string/index.mjs} +1 -1
  121. package/{esm2015/libs/util/to-string/to-string.js → esm2020/libs/util/to-string/to-string.mjs} +6 -6
  122. package/{esm2015/libs/util/uuid/index.js → esm2020/libs/util/uuid/index.mjs} +1 -1
  123. package/{esm2015/libs/util/uuid/uuid.js → esm2020/libs/util/uuid/uuid.mjs} +4 -4
  124. package/{esm2015/libs/util/value/index.js → esm2020/libs/util/value/index.mjs} +1 -1
  125. package/{esm2015/libs/util/value/value.js → esm2020/libs/util/value/value.mjs} +8 -8
  126. package/{esm2015/libs/validate/email/email.js → esm2020/libs/validate/email/email.mjs} +3 -3
  127. package/{esm2015/libs/validate/email/index.js → esm2020/libs/validate/email/index.mjs} +1 -1
  128. package/{esm2015/libs/validate/index.js → esm2020/libs/validate/index.mjs} +3 -3
  129. package/{esm2015/libs/validate/phone/index.js → esm2020/libs/validate/phone/index.mjs} +1 -1
  130. package/{esm2015/libs/validate/phone/phone.js → esm2020/libs/validate/phone/phone.mjs} +4 -4
  131. package/{esm2015/libs/validate/url/index.js → esm2020/libs/validate/url/index.mjs} +1 -1
  132. package/{esm2015/libs/validate/url/url.js → esm2020/libs/validate/url/url.mjs} +11 -11
  133. package/{esm2015/public_api.js → esm2020/public_api.mjs} +17 -17
  134. package/fesm2015/firestitch-common.mjs +1713 -0
  135. package/fesm2015/firestitch-common.mjs.map +1 -0
  136. package/{fesm2015/firestitch-common.js → fesm2020/firestitch-common.mjs} +1656 -1646
  137. package/fesm2020/firestitch-common.mjs.map +1 -0
  138. package/firestitch-common.d.ts +5 -5
  139. package/libs/array/compare/compare.d.ts +1 -1
  140. package/libs/array/compare/index.d.ts +1 -1
  141. package/libs/array/filter/filter.d.ts +1 -1
  142. package/libs/array/filter/index.d.ts +1 -1
  143. package/libs/array/find/find.d.ts +1 -1
  144. package/libs/array/find/index.d.ts +1 -1
  145. package/libs/array/inArray/inArray.d.ts +1 -1
  146. package/libs/array/inArray/index.d.ts +1 -1
  147. package/libs/array/index/index.d.ts +1 -1
  148. package/libs/array/index.d.ts +13 -13
  149. package/libs/array/indexOf/index.d.ts +1 -1
  150. package/libs/array/indexOf/indexOf.d.ts +1 -1
  151. package/libs/array/keyExists/index.d.ts +1 -1
  152. package/libs/array/keyExists/keyExists.d.ts +1 -1
  153. package/libs/array/ksort/index.d.ts +1 -1
  154. package/libs/array/ksort/ksort.d.ts +1 -1
  155. package/libs/array/list/index.d.ts +1 -1
  156. package/libs/array/list/list.d.ts +1 -1
  157. package/libs/array/nameValue/index.d.ts +1 -1
  158. package/libs/array/nameValue/nameValue.d.ts +1 -1
  159. package/libs/array/remove/index.d.ts +1 -1
  160. package/libs/array/remove/remove.d.ts +1 -1
  161. package/libs/array/rsort/index.d.ts +1 -1
  162. package/libs/array/rsort/rsort.d.ts +1 -1
  163. package/libs/array/sort/index.d.ts +1 -1
  164. package/libs/array/sort/sort.d.ts +1 -1
  165. package/libs/format/acronym/acronym.d.ts +1 -1
  166. package/libs/format/acronym/index.d.ts +1 -1
  167. package/libs/format/bytes/bytes.d.ts +1 -1
  168. package/libs/format/bytes/index.d.ts +1 -1
  169. package/libs/format/currency/currency.d.ts +1 -1
  170. package/libs/format/currency/index.d.ts +1 -1
  171. package/libs/format/index.d.ts +5 -5
  172. package/libs/format/number/index.d.ts +1 -1
  173. package/libs/format/number/number.d.ts +1 -1
  174. package/libs/format/truncate/index.d.ts +1 -1
  175. package/libs/format/truncate/truncate.d.ts +1 -1
  176. package/libs/index.d.ts +5 -5
  177. package/libs/rxjs/delayedRetry.d.ts +2 -2
  178. package/libs/rxjs/keyboard-shortcut.d.ts +2 -2
  179. package/libs/util/boolean/boolean.d.ts +1 -1
  180. package/libs/util/boolean/index.d.ts +1 -1
  181. package/libs/util/clone/clone.d.ts +1 -1
  182. package/libs/util/clone/index.d.ts +1 -1
  183. package/libs/util/debounce/debounce.d.ts +1 -1
  184. package/libs/util/debounce/index.d.ts +1 -1
  185. package/libs/util/get-normalized-path/get-normalized-path.d.ts +2 -2
  186. package/libs/util/get-normalized-path/index.d.ts +1 -1
  187. package/libs/util/guid/guid.d.ts +1 -1
  188. package/libs/util/guid/index.d.ts +1 -1
  189. package/libs/util/index.d.ts +23 -23
  190. package/libs/util/is-array-equal/index.d.ts +1 -0
  191. package/libs/util/is-array-equal/is-array-equal.d.ts +1 -1
  192. package/libs/util/is-class/index.d.ts +1 -0
  193. package/libs/util/{isClass/isClass.d.ts → is-class/is-class.d.ts} +1 -1
  194. package/libs/util/is-empty/index.d.ts +1 -0
  195. package/libs/util/{isEmpty/isEmpty.d.ts → is-empty/is-empty.d.ts} +1 -1
  196. package/libs/util/is-numeric/index.d.ts +1 -0
  197. package/libs/util/{isNumeric/isNumeric.d.ts → is-numeric/is-numeric.d.ts} +1 -1
  198. package/libs/util/is-object/index.d.ts +1 -1
  199. package/libs/util/is-object/is-object.d.ts +1 -1
  200. package/libs/util/keys/index.d.ts +1 -1
  201. package/libs/util/keys/keys.d.ts +37 -37
  202. package/libs/util/length/index.d.ts +1 -1
  203. package/libs/util/length/length.d.ts +1 -1
  204. package/libs/util/ordinal-number/index.d.ts +1 -0
  205. package/libs/util/ordinal-number/ordinal-number.d.ts +1 -1
  206. package/libs/util/queue/index.d.ts +3 -3
  207. package/libs/util/queue/operation.d.ts +7 -7
  208. package/libs/util/queue/queue-stats.d.ts +5 -5
  209. package/libs/util/queue/queue.d.ts +39 -39
  210. package/libs/util/queue/queue.enum.d.ts +4 -4
  211. package/libs/util/remove-query-params/index.d.ts +1 -1
  212. package/libs/util/remove-query-params/remove-query-params.d.ts +1 -1
  213. package/libs/util/resolve/index.d.ts +1 -1
  214. package/libs/util/resolve/resolve.d.ts +1 -1
  215. package/libs/util/round/index.d.ts +1 -1
  216. package/libs/util/round/round.d.ts +1 -1
  217. package/libs/util/source-loader/index.d.ts +1 -0
  218. package/libs/util/source-loader/source-loader.d.ts +11 -7
  219. package/libs/util/stringify/index.d.ts +1 -1
  220. package/libs/util/stringify/stringify.d.ts +1 -1
  221. package/libs/util/throttle/index.d.ts +1 -1
  222. package/libs/util/throttle/throttle.d.ts +1 -1
  223. package/libs/util/to-string/index.d.ts +1 -1
  224. package/libs/util/to-string/to-string.d.ts +1 -1
  225. package/libs/util/uuid/index.d.ts +1 -1
  226. package/libs/util/uuid/uuid.d.ts +1 -1
  227. package/libs/util/value/index.d.ts +1 -1
  228. package/libs/util/value/value.d.ts +1 -1
  229. package/libs/validate/email/email.d.ts +1 -1
  230. package/libs/validate/email/index.d.ts +1 -1
  231. package/libs/validate/index.d.ts +3 -3
  232. package/libs/validate/phone/index.d.ts +1 -1
  233. package/libs/validate/phone/phone.d.ts +1 -1
  234. package/libs/validate/url/index.d.ts +1 -1
  235. package/libs/validate/url/url.d.ts +7 -7
  236. package/package.json +20 -7
  237. package/public_api.d.ts +14 -14
  238. package/bundles/firestitch-common.umd.js +0 -2258
  239. package/bundles/firestitch-common.umd.js.map +0 -1
  240. package/esm2015/app/directives/model-change.directive.js +0 -37
  241. package/esm2015/app/pipes/util.pipe.js +0 -60
  242. package/esm2015/libs/util/index.js +0 -24
  243. package/esm2015/libs/util/isClass/index.js +0 -2
  244. package/esm2015/libs/util/isClass/isClass.js +0 -18
  245. package/esm2015/libs/util/isEmpty/index.js +0 -2
  246. package/esm2015/libs/util/isEmpty/isEmpty.js +0 -12
  247. package/esm2015/libs/util/isNumeric/index.js +0 -2
  248. package/esm2015/libs/util/isNumeric/isNumeric.js +0 -5
  249. package/esm2015/libs/util/source-loader/source-loader.js +0 -145
  250. package/fesm2015/firestitch-common.js.map +0 -1
  251. package/libs/util/isClass/index.d.ts +0 -1
  252. package/libs/util/isEmpty/index.d.ts +0 -1
  253. package/libs/util/isNumeric/index.d.ts +0 -1
@@ -0,0 +1,1713 @@
1
+ import { CurrencyPipe, CommonModule } from '@angular/common';
2
+ import * as i0 from '@angular/core';
3
+ import { Directive, Optional, Host, Input, EventEmitter, Output, HostListener, Pipe, LOCALE_ID, Inject, Injectable, NgModule } from '@angular/core';
4
+ import * as i1 from '@angular/material/input';
5
+ import { Subject, Observable, of, combineLatest, iif, throwError, timer, fromEvent, merge } from 'rxjs';
6
+ import { debounceTime, takeUntil, take, map, delay, finalize, shareReplay, retryWhen, tap, concatMap, distinctUntilChanged, share, filter as filter$1 } from 'rxjs/operators';
7
+ import * as i1$1 from '@angular/forms';
8
+
9
+ class FsAutofocusDirective {
10
+ constructor(_matInput, _el) {
11
+ this._matInput = _matInput;
12
+ this._el = _el;
13
+ this.fsAutofocus = true;
14
+ }
15
+ ngAfterViewInit() {
16
+ if (this.fsAutofocus || this.fsAutofocus === undefined) {
17
+ this.focus();
18
+ }
19
+ }
20
+ focus() {
21
+ setTimeout(() => {
22
+ const tmpEl = document.createElement('input');
23
+ tmpEl.style.width = '0';
24
+ tmpEl.style.height = '0';
25
+ tmpEl.style.margin = '0';
26
+ tmpEl.style.padding = '0';
27
+ tmpEl.style.border = '0';
28
+ tmpEl.style.opacity = '0';
29
+ document.body.appendChild(tmpEl);
30
+ tmpEl.focus();
31
+ if (this._matInput) {
32
+ this._matInput.focus();
33
+ }
34
+ else if (this._el.nativeElement.focus) {
35
+ this._el.nativeElement.focus();
36
+ }
37
+ document.body.removeChild(tmpEl);
38
+ }, 50);
39
+ }
40
+ }
41
+ FsAutofocusDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsAutofocusDirective, deps: [{ token: i1.MatInput, host: true, optional: true }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
42
+ FsAutofocusDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.4.0", type: FsAutofocusDirective, selector: "[fsAutofocus],[autofocus]", inputs: { fsAutofocus: "fsAutofocus" }, ngImport: i0 });
43
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsAutofocusDirective, decorators: [{
44
+ type: Directive,
45
+ args: [{
46
+ selector: '[fsAutofocus],[autofocus]',
47
+ }]
48
+ }], ctorParameters: function () {
49
+ return [{ type: i1.MatInput, decorators: [{
50
+ type: Optional
51
+ }, {
52
+ type: Host
53
+ }] }, { type: i0.ElementRef }];
54
+ }, propDecorators: { fsAutofocus: [{
55
+ type: Input
56
+ }] } });
57
+
58
+ class FsModelChangeDirective {
59
+ constructor(_ngModel) {
60
+ this._ngModel = _ngModel;
61
+ this.fsModelChange = new EventEmitter();
62
+ this._destroy$ = new Subject();
63
+ }
64
+ ngOnInit() {
65
+ var _a;
66
+ this._ngModel.update
67
+ .pipe(debounceTime(((_a = this.fsModelChangeOptions) === null || _a === void 0 ? void 0 : _a.debounce) || 500), takeUntil(this._destroy$))
68
+ .subscribe((value) => {
69
+ this.fsModelChange.emit(value);
70
+ });
71
+ }
72
+ ngOnDestroy() {
73
+ this._destroy$.next();
74
+ this._destroy$.complete();
75
+ }
76
+ }
77
+ FsModelChangeDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsModelChangeDirective, deps: [{ token: i1$1.NgModel }], target: i0.ɵɵFactoryTarget.Directive });
78
+ FsModelChangeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.4.0", type: FsModelChangeDirective, selector: "[fsModelChange]", inputs: { fsModelChangeOptions: "fsModelChangeOptions" }, outputs: { fsModelChange: "fsModelChange" }, ngImport: i0 });
79
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsModelChangeDirective, decorators: [{
80
+ type: Directive,
81
+ args: [{
82
+ selector: '[fsModelChange]',
83
+ }]
84
+ }], ctorParameters: function () { return [{ type: i1$1.NgModel }]; }, propDecorators: { fsModelChangeOptions: [{
85
+ type: Input
86
+ }], fsModelChange: [{
87
+ type: Output
88
+ }] } });
89
+
90
+ class FsPreventDefaultDirective {
91
+ preventClick(event) {
92
+ event.preventDefault();
93
+ }
94
+ }
95
+ FsPreventDefaultDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsPreventDefaultDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
96
+ FsPreventDefaultDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.4.0", type: FsPreventDefaultDirective, selector: "[fsPreventDefault]", host: { listeners: { "click": "preventClick($event)" } }, ngImport: i0 });
97
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsPreventDefaultDirective, decorators: [{
98
+ type: Directive,
99
+ args: [{
100
+ selector: '[fsPreventDefault]',
101
+ }]
102
+ }], propDecorators: { preventClick: [{
103
+ type: HostListener,
104
+ args: ['click', ['$event']]
105
+ }] } });
106
+
107
+ class FsStopPropagationDirective {
108
+ preventClick(event) {
109
+ event.stopPropagation();
110
+ }
111
+ }
112
+ FsStopPropagationDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsStopPropagationDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
113
+ FsStopPropagationDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.4.0", type: FsStopPropagationDirective, selector: "[fsStopPropagation]", host: { listeners: { "click": "preventClick($event)" } }, ngImport: i0 });
114
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsStopPropagationDirective, decorators: [{
115
+ type: Directive,
116
+ args: [{
117
+ selector: '[fsStopPropagation]',
118
+ }]
119
+ }], propDecorators: { preventClick: [{
120
+ type: HostListener,
121
+ args: ['click', ['$event']]
122
+ }] } });
123
+
124
+ function guid(pattern, options = { case: 'lower', numbers: true }) {
125
+ pattern = pattern || 'xxxxxx';
126
+ let s = '';
127
+ if (options.numbers !== false) {
128
+ s = '0123456789';
129
+ }
130
+ if (!options.case || options.case === 'lower' || options.case === 'mixed') {
131
+ s = s.concat('abcdefghijklmnopqrstuvwxyz');
132
+ }
133
+ if (options.case === 'upper' || options.case === 'mixed') {
134
+ s = s.concat('ABCDEFGHIJKLMNOPQRSTUVWXYZ');
135
+ }
136
+ const chars = s.match(/(.{1,1})/g);
137
+ return pattern.replace(/[x]/g, function (c) {
138
+ const i = (Math.random() * chars.length) | 0;
139
+ return chars[i];
140
+ });
141
+ }
142
+
143
+ function isEmpty(value, options) {
144
+ options = options || {};
145
+ return value === undefined ||
146
+ value === null ||
147
+ value === false ||
148
+ value === '' ||
149
+ String(value).length === 0 ||
150
+ (Array.isArray(value) && value.length === 0) ||
151
+ (value instanceof Object && (value.constructor.name === 'Object' && !Object.keys(value).length)) ||
152
+ (!options.zero && (value === 0 || value === '0'));
153
+ }
154
+
155
+ function stringify(value) {
156
+ return JSON.stringify(value);
157
+ }
158
+
159
+ class FsUtilStringifyPipe {
160
+ constructor() { }
161
+ transform(value) {
162
+ return stringify(value);
163
+ }
164
+ }
165
+ FsUtilStringifyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsUtilStringifyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
166
+ FsUtilStringifyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsUtilStringifyPipe, name: "fsUtilStringify" });
167
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsUtilStringifyPipe, decorators: [{
168
+ type: Pipe,
169
+ args: [{
170
+ name: 'fsUtilStringify',
171
+ }]
172
+ }], ctorParameters: function () { return []; } });
173
+ class FsUtilGuidPipe {
174
+ constructor() { }
175
+ transform() {
176
+ return guid();
177
+ }
178
+ }
179
+ FsUtilGuidPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsUtilGuidPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
180
+ FsUtilGuidPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsUtilGuidPipe, name: "fsUtilGuid" });
181
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsUtilGuidPipe, decorators: [{
182
+ type: Pipe,
183
+ args: [{
184
+ name: 'fsUtilGuid',
185
+ }]
186
+ }], ctorParameters: function () { return []; } });
187
+ class FsUtilIsEmptyPipe {
188
+ transform(value) {
189
+ return isEmpty(value);
190
+ }
191
+ }
192
+ FsUtilIsEmptyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsUtilIsEmptyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
193
+ FsUtilIsEmptyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsUtilIsEmptyPipe, name: "fsUtilIsEmpty" });
194
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsUtilIsEmptyPipe, decorators: [{
195
+ type: Pipe,
196
+ args: [{
197
+ name: 'fsUtilIsEmpty',
198
+ }]
199
+ }] });
200
+ class FsUtilIsNotEmptyPipe {
201
+ transform(value) {
202
+ return !isEmpty(value);
203
+ }
204
+ }
205
+ FsUtilIsNotEmptyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsUtilIsNotEmptyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
206
+ FsUtilIsNotEmptyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsUtilIsNotEmptyPipe, name: "fsUtilIsNotEmpty" });
207
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsUtilIsNotEmptyPipe, decorators: [{
208
+ type: Pipe,
209
+ args: [{
210
+ name: 'fsUtilIsNotEmpty',
211
+ }]
212
+ }] });
213
+
214
+ function compare(query, item) {
215
+ let value = true;
216
+ for (const key in query) {
217
+ value = value && item[key] == query[key];
218
+ }
219
+ return value;
220
+ }
221
+
222
+ function filter(array, query) {
223
+ if (typeof query !== 'function') {
224
+ const queryObj = query;
225
+ query = (item) => {
226
+ return compare(queryObj, item);
227
+ };
228
+ }
229
+ const isarray = Array.isArray(array);
230
+ const list = isarray ? [] : {};
231
+ if (isarray) {
232
+ array.forEach(function (item, idx) {
233
+ if (query(item)) {
234
+ list.push(item);
235
+ }
236
+ });
237
+ }
238
+ else {
239
+ Object.keys(array).forEach(key => {
240
+ if (query(array[key])) {
241
+ list[key] = array[key];
242
+ }
243
+ });
244
+ }
245
+ return list;
246
+ }
247
+
248
+ function inArray(values, array) {
249
+ if (!Array.isArray(values)) {
250
+ values = [values];
251
+ }
252
+ for (let i = 0, len = values.length; i < len; i++) {
253
+ if (array.indexOf(values[i]) >= 0) {
254
+ return true;
255
+ }
256
+ }
257
+ return false;
258
+ }
259
+
260
+ function index(array, name, value = null) {
261
+ const list = {};
262
+ array.forEach(function (item) {
263
+ list[item[name]] = value ? item[value] : item;
264
+ });
265
+ return list;
266
+ }
267
+
268
+ function indexOf(array, query) {
269
+ if (typeof query !== 'function') {
270
+ const queryObj = query;
271
+ query = (item) => {
272
+ return compare(queryObj, item);
273
+ };
274
+ }
275
+ for (let i = 0, len = array.length; i < len; i++) {
276
+ if (query(array[i])) {
277
+ return i;
278
+ }
279
+ }
280
+ return -1;
281
+ }
282
+
283
+ function keyExists(array, key) {
284
+ return array.hasOwnProperty(key);
285
+ }
286
+
287
+ function ksort(unordered) {
288
+ Object.keys(unordered).sort().forEach(function (key) {
289
+ const value = unordered[key];
290
+ delete unordered[key];
291
+ unordered[key] = value;
292
+ });
293
+ }
294
+
295
+ function list(array, property, index = null) {
296
+ const resultList = index ? {} : [];
297
+ array.forEach(function (item, idx) {
298
+ if (index) {
299
+ resultList[item[index]] = item[property];
300
+ }
301
+ else {
302
+ resultList.push(item[property]);
303
+ }
304
+ });
305
+ return resultList;
306
+ }
307
+
308
+ function nameValue(array, name, value) {
309
+ const list = [];
310
+ if (name || value) {
311
+ const nameFn = typeof name === 'function' ? name : function (item) {
312
+ return item[name];
313
+ };
314
+ const valueFn = typeof value === 'function' ? value : function (item) {
315
+ return item[value];
316
+ };
317
+ array.forEach(function (item) {
318
+ list.push({ name: nameFn(item), value: valueFn(item) });
319
+ });
320
+ }
321
+ else {
322
+ array.forEach(function (n, v) {
323
+ list.push({ name: n, value: v });
324
+ });
325
+ }
326
+ return list;
327
+ }
328
+
329
+ function remove(array, query) {
330
+ const idx = indexOf(array, query);
331
+ if (idx >= 0) {
332
+ return array.splice(idx, 1);
333
+ }
334
+ return idx;
335
+ }
336
+
337
+ function sort(array, query, reverse = false) {
338
+ if (typeof query !== 'function') {
339
+ const queryStr = query;
340
+ query = function (a, b) {
341
+ if (reverse) {
342
+ if (a[queryStr] < b[queryStr]) {
343
+ return 1;
344
+ }
345
+ else if (a[queryStr] > b[queryStr]) {
346
+ return -1;
347
+ }
348
+ }
349
+ else {
350
+ if (a[queryStr] > b[queryStr]) {
351
+ return 1;
352
+ }
353
+ else if (a[queryStr] < b[queryStr]) {
354
+ return -1;
355
+ }
356
+ }
357
+ return 0;
358
+ };
359
+ }
360
+ array.sort(query);
361
+ return array;
362
+ }
363
+
364
+ function rsort(array, query) {
365
+ return sort(array, query, true);
366
+ }
367
+
368
+ function find(array, query) {
369
+ const data = filter(array, query);
370
+ return data.length ? data[0] : null;
371
+ }
372
+
373
+ function boolean(value) {
374
+ return String(value).toLowerCase() !== 'false' && !!value;
375
+ }
376
+
377
+ function clone(obj) {
378
+ if (obj instanceof Date) {
379
+ return new Date(obj);
380
+ }
381
+ else if (Array.isArray(obj)) {
382
+ const arr = [];
383
+ for (let i = 0; i < obj.length; i++) {
384
+ arr[i] = clone(obj[i]);
385
+ }
386
+ return arr;
387
+ }
388
+ else if (typeof (obj) === 'object') {
389
+ const cloned = {};
390
+ for (let key in obj) {
391
+ cloned[key] = clone(obj[key]);
392
+ }
393
+ return cloned;
394
+ }
395
+ return obj;
396
+ }
397
+
398
+ function debounce(func, wait, immediate) {
399
+ let timeout;
400
+ return function () {
401
+ const context = this, args = arguments;
402
+ const later = function () {
403
+ timeout = null;
404
+ if (!immediate)
405
+ func.apply(context, args);
406
+ };
407
+ const callNow = immediate && !timeout;
408
+ clearTimeout(timeout);
409
+ timeout = setTimeout(later, wait);
410
+ if (callNow)
411
+ func.apply(context, args);
412
+ };
413
+ }
414
+
415
+ function removeQueryParams(path) {
416
+ return path.split('?')[0];
417
+ }
418
+
419
+ function getNormalizedPath(locationSrv) {
420
+ const path = locationSrv.prepareExternalUrl(locationSrv.path());
421
+ return removeQueryParams(path);
422
+ }
423
+
424
+ function isArrayEqual(arr1, arr2) {
425
+ if (!Array.isArray(arr1) || !Array.isArray(arr2) || arr1.length !== arr2.length) {
426
+ return false;
427
+ }
428
+ const sortFn = (a, b) => {
429
+ if (a < b) {
430
+ return -1;
431
+ }
432
+ else if (a > b) {
433
+ return 1;
434
+ }
435
+ else {
436
+ return 0;
437
+ }
438
+ };
439
+ arr1 = [...arr1].sort(sortFn);
440
+ arr2 = [...arr2].sort(sortFn);
441
+ return arr1.every((value, index) => {
442
+ return value === arr2[index];
443
+ });
444
+ }
445
+
446
+ function isClass(value, cls) {
447
+ if (typeof value === 'object') {
448
+ if (typeof cls === 'string') {
449
+ if (value.constructor) {
450
+ if (value.constructor.name === cls) {
451
+ return true;
452
+ }
453
+ }
454
+ }
455
+ else {
456
+ if (value instanceof cls) {
457
+ return true;
458
+ }
459
+ }
460
+ }
461
+ return false;
462
+ }
463
+
464
+ function isNumeric(value) {
465
+ const str = String(value);
466
+ return str.length && !!str.match(/^-?\d*\.?\d*$/);
467
+ }
468
+
469
+ function isObject(value) {
470
+ return !!value && typeof value === 'object' && !Array.isArray(value);
471
+ }
472
+
473
+ const KEY_CANCEL$1 = 3;
474
+ const KEY_HELP$1 = 6;
475
+ const KEY_BACKSPACE$1 = 8;
476
+ const KEY_TAB$1 = 9;
477
+ const KEY_CLEAR$1 = 12;
478
+ const KEY_RETURN$1 = 13;
479
+ const KEY_ENTER$1 = 14;
480
+ const KEY_SHIFT$1 = 16;
481
+ const KEY_CONTROL$1 = 17;
482
+ const KEY_ALT$1 = 18;
483
+ const KEY_PAUSE$1 = 19;
484
+ const KEY_CAPS_LOCK$1 = 20;
485
+ const KEY_ESCAPE$1 = 27;
486
+ const KEY_SPACE$1 = 32;
487
+ const KEY_PAGE_UP$1 = 33;
488
+ const KEY_PAGE_DOWN$1 = 34;
489
+ const KEY_END$1 = 35;
490
+ const KEY_HOME$1 = 36;
491
+ const KEY_LEFT$1 = 37;
492
+ const KEY_UP$1 = 38;
493
+ const KEY_RIGHT$1 = 39;
494
+ const KEY_DOWN$1 = 40;
495
+ const KEY_PRINTSCREEN$1 = 44;
496
+ const KEY_INSERT$1 = 45;
497
+ const KEY_DELETE$1 = 46;
498
+ const KEY_0$1 = 48;
499
+ const KEY_1$1 = 49;
500
+ const KEY_2$1 = 50;
501
+ const KEY_3$1 = 51;
502
+ const KEY_4$1 = 52;
503
+ const KEY_5$1 = 53;
504
+ const KEY_6$1 = 54;
505
+ const KEY_7$1 = 55;
506
+ const KEY_8$1 = 56;
507
+ const KEY_9$1 = 57;
508
+ const KEY_SEMICOLON$1 = 59;
509
+ const KEY_EQUALS$1 = 61;
510
+
511
+ function length(object) {
512
+ if (Array.isArray(object)) {
513
+ return object.length;
514
+ }
515
+ if (object instanceof Object) {
516
+ return Object.keys(object).length;
517
+ }
518
+ return 0;
519
+ }
520
+
521
+ function ordinalNumber(value) {
522
+ value = String(value);
523
+ const index = value.match `1?.$`;
524
+ const endings = [, 'st', 'nd', 'rd'];
525
+ const ending = endings[index] || 'th';
526
+ return value + ending;
527
+ }
528
+
529
+ class Operation {
530
+ constructor(target, name) {
531
+ this.ready$ = new Subject();
532
+ this.name = name ? name : guid();
533
+ if (target instanceof Observable) {
534
+ this.target = target;
535
+ }
536
+ else {
537
+ this.target = of(target);
538
+ }
539
+ }
540
+ }
541
+
542
+ var QueueState;
543
+ (function (QueueState) {
544
+ QueueState["Idle"] = "idle";
545
+ QueueState["Processing"] = "processing";
546
+ })(QueueState || (QueueState = {}));
547
+
548
+ class Queue {
549
+ constructor(_limit = Infinity) {
550
+ this._limit = _limit;
551
+ this._queueStats = {
552
+ completed: 0,
553
+ total: 0,
554
+ errors: [],
555
+ };
556
+ this._doneQueueStats = {
557
+ completed: 0,
558
+ total: 0,
559
+ errors: [],
560
+ };
561
+ this._completeQueueStats = {
562
+ completed: 0,
563
+ total: 0,
564
+ errors: [],
565
+ };
566
+ this._done = new Subject();
567
+ this._queue = [];
568
+ this._inProgress = [];
569
+ this._state = QueueState.Idle;
570
+ this._destroy$ = new Subject();
571
+ // if(_targets) {
572
+ // _targets.forEach((target) => {
573
+ // this.push(target);
574
+ // });
575
+ // }
576
+ }
577
+ get total() {
578
+ return this._queueStats.total;
579
+ }
580
+ get completed() {
581
+ return this._queueStats.completed;
582
+ }
583
+ get pending() {
584
+ return this._queue.length;
585
+ }
586
+ get inProgress() {
587
+ return this._inProgress.length;
588
+ }
589
+ get errors() {
590
+ return this._queueStats.errors;
591
+ }
592
+ get state() {
593
+ return this._state;
594
+ }
595
+ get empty() {
596
+ return !this._queue.length && !this._inProgress.length;
597
+ }
598
+ get pendingOperations() {
599
+ return this._queue
600
+ .map((operation) => operation.name);
601
+ }
602
+ get inProgressOperations() {
603
+ return this._inProgress
604
+ .map((operation) => operation.name);
605
+ }
606
+ isProcessing() {
607
+ return this._state === QueueState.Processing;
608
+ }
609
+ isIdle() {
610
+ return this._state === QueueState.Idle;
611
+ }
612
+ setLimit(value) {
613
+ this._limit = value;
614
+ }
615
+ /**
616
+ * @depreated
617
+ */
618
+ subscribe(fun, err, complete) {
619
+ this.observe$
620
+ .subscribe(fun, err, complete);
621
+ }
622
+ get observe$() {
623
+ return this._done
624
+ .pipe(takeUntil(this._destroy$));
625
+ }
626
+ get complete$() {
627
+ if (!this.isProcessing()) {
628
+ return of({ total: 0, completed: 0, errors: [] });
629
+ }
630
+ return this.observe$
631
+ .pipe(take(1), map(() => (this._completeQueueStats)));
632
+ }
633
+ complete(fun, err, complete) {
634
+ this.complete$.subscribe(fun, err, complete);
635
+ }
636
+ push(target, name) {
637
+ const operation = new Operation(target, name);
638
+ this._queueStats.total++;
639
+ this._doneQueueStats.total++;
640
+ this._completeQueueStats.total++;
641
+ this._state = QueueState.Processing;
642
+ if (this._inProgress.length < this._limit) {
643
+ this._processOperation(operation);
644
+ }
645
+ else {
646
+ this._queue.push(operation);
647
+ }
648
+ return operation.ready$;
649
+ }
650
+ clear() {
651
+ this._queue = [];
652
+ this._state = QueueState.Idle;
653
+ this._queueStats = {
654
+ total: 0,
655
+ errors: [],
656
+ completed: 0,
657
+ };
658
+ this._clearDoneQueueStats();
659
+ }
660
+ destroy() {
661
+ this._done.complete();
662
+ this.clear();
663
+ }
664
+ _processOperation(operation) {
665
+ this._inProgress.push(operation);
666
+ operation.target
667
+ .pipe(delay(200), // Hack to prevent extra quick proccess execution
668
+ finalize(() => {
669
+ const opIndex = this._inProgress.indexOf(operation);
670
+ this._inProgress.splice(opIndex, 1);
671
+ if (this.empty) {
672
+ this._state = QueueState.Idle;
673
+ this._done.next(this._doneQueueStats);
674
+ this._clearDoneQueueStats();
675
+ }
676
+ else {
677
+ if (this._queue.length) {
678
+ const queueItem = this._queue.shift();
679
+ this._processOperation(queueItem);
680
+ }
681
+ }
682
+ }), takeUntil(this._destroy$)).subscribe({
683
+ next: (data) => {
684
+ operation.ready$.next(data);
685
+ },
686
+ error: (error) => {
687
+ this._queueStats.errors.push(error);
688
+ this._doneQueueStats.errors.push(error);
689
+ this._completeQueueStats.errors.push(error);
690
+ operation.ready$.error(error);
691
+ },
692
+ complete: () => {
693
+ this._queueStats.completed++;
694
+ this._doneQueueStats.completed++;
695
+ this._completeQueueStats.completed++;
696
+ operation.ready$.complete();
697
+ }
698
+ });
699
+ }
700
+ _clearDoneQueueStats() {
701
+ this._doneQueueStats = {
702
+ total: 0,
703
+ errors: [],
704
+ completed: 0,
705
+ };
706
+ }
707
+ }
708
+
709
+ function resolve(promise, defaults = []) {
710
+ const result = defaults;
711
+ return new Promise(resolve => {
712
+ promise.then(function (data) {
713
+ Object.keys(data).forEach(key => result[key] = data[key]);
714
+ resolve(result);
715
+ });
716
+ });
717
+ }
718
+
719
+ function round(num, decimalPlaces = 0) {
720
+ num = parseFloat(parseFloat(num).toPrecision(Number.MAX_SAFE_INTEGER.toString().length - 1));
721
+ const p = Math.pow(10, decimalPlaces);
722
+ return Math.round(num * p) / p;
723
+ }
724
+
725
+ const fsSourceLoader = (function () {
726
+ let _document;
727
+ let _headElement;
728
+ const _sources = new Map();
729
+ const _loadedResources = new Map();
730
+ // bad way but don't want to bother developer
731
+ setDocument(document);
732
+ // but developer can set document at any time
733
+ function setDocument(document) {
734
+ _document = document;
735
+ _headElement = _document === null || _document === void 0 ? void 0 : _document.head;
736
+ }
737
+ /**
738
+ * register a list of the resources for future loading
739
+ *
740
+ * example:
741
+ * sourceLoader.registerResources({
742
+ * froala: [
743
+ * '/assets/js/froala/froala_editor.min.js',
744
+ * '/assets/css/froala_editor.pkgd.min.css',
745
+ * ],
746
+ * froala_align: '/assets/js/froala/plugins/align.min.js',
747
+ * froala_colors: '/assets/js/froala/plugins/colors.min.js',
748
+ * froala_image: '/assets/js/froala/plugins/image.min.js',
749
+ * });
750
+ *
751
+ */
752
+ function registerResources(resources) {
753
+ Object.entries(resources)
754
+ .forEach(([name, path]) => {
755
+ if (typeof path === 'string') {
756
+ path = [path];
757
+ }
758
+ if (!_sources.has(name)) {
759
+ _sources.set(name, new Set());
760
+ }
761
+ const resourcesList = _sources.get(name);
762
+ path.forEach((p) => {
763
+ resourcesList.add(p);
764
+ });
765
+ });
766
+ }
767
+ /**
768
+ * load any resource previously registered
769
+ *
770
+ * sourceLoader.loadResource('froala')
771
+ *
772
+ * or load any js/css file
773
+ *
774
+ * sourceLoader.loadResource('/assets/my-source.js')
775
+ *
776
+ */
777
+ function loadResource(name) {
778
+ if (_loadedResources.has(name)) {
779
+ return _loadedResources.get(name);
780
+ }
781
+ if (_sources.has(name)) {
782
+ const sourcesForLoading = [..._sources.get(name)]
783
+ .map((path) => {
784
+ return _loadResource(path);
785
+ })
786
+ .filter((v) => !!v);
787
+ return combineLatest(sourcesForLoading);
788
+ }
789
+ return _loadResource(name);
790
+ }
791
+ /**
792
+ * the same as `loadResource` but you can pass list of the resources for loading
793
+ */
794
+ function loadResources(listOfResources) {
795
+ const resourcesToLoad = listOfResources
796
+ .reduce((acc, name) => {
797
+ const loading$ = loadResource(name);
798
+ if (loading$) {
799
+ acc.push(loading$);
800
+ }
801
+ return acc;
802
+ }, []);
803
+ return combineLatest(resourcesToLoad);
804
+ }
805
+ ///
806
+ function _loadResource(path) {
807
+ if (_isStylesUrl(path)) {
808
+ return _loadStyles(path);
809
+ }
810
+ if (_isJavascriptUrl(path)) {
811
+ return _loadJs(path);
812
+ }
813
+ console.warn(`Resource ${path} can not be identified and loaded`);
814
+ return null;
815
+ }
816
+ function _loadJs(scriptPath) {
817
+ if (!_loadedResources.has(scriptPath)) {
818
+ const obs$ = new Observable((obs) => {
819
+ const script = document.createElement('script');
820
+ script.src = scriptPath;
821
+ _headElement.appendChild(script);
822
+ script.onload = () => {
823
+ obs.next();
824
+ obs.complete();
825
+ };
826
+ script.onerror = (err) => {
827
+ obs.error(err);
828
+ };
829
+ }).pipe(shareReplay(1));
830
+ _loadedResources.set(scriptPath, obs$);
831
+ }
832
+ return _loadedResources.get(scriptPath);
833
+ }
834
+ function _loadStyles(stylePath) {
835
+ if (!_loadedResources.has(stylePath)) {
836
+ const obs$ = new Observable((obs) => {
837
+ const style = document.createElement('link');
838
+ style.id = stylePath;
839
+ style.rel = 'stylesheet';
840
+ style.href = `${stylePath}`;
841
+ _headElement.appendChild(style);
842
+ style.onload = () => {
843
+ obs.next();
844
+ obs.complete();
845
+ };
846
+ style.onerror = (err) => {
847
+ obs.error(err);
848
+ };
849
+ });
850
+ _loadedResources.set(stylePath, obs$);
851
+ }
852
+ return _loadedResources.get(stylePath);
853
+ }
854
+ function _isJavascriptUrl(url) {
855
+ return url.endsWith('.js');
856
+ }
857
+ function _isStylesUrl(url) {
858
+ return url.endsWith('.css');
859
+ }
860
+ return {
861
+ setDocument,
862
+ registerResources,
863
+ loadResource,
864
+ loadResources,
865
+ loadJs: _loadJs,
866
+ loadStyles: _loadStyles,
867
+ };
868
+ })();
869
+ function loadStyles(path) {
870
+ return fsSourceLoader.loadStyles(path);
871
+ }
872
+ ;
873
+ function loadJs(path) {
874
+ return fsSourceLoader.loadJs(path);
875
+ }
876
+ ;
877
+
878
+ function throttle(func, wait) {
879
+ let waiting = false; // Initially, we're not waiting
880
+ return function () {
881
+ if (!waiting) { // If we're not waiting
882
+ func.apply(null, arguments); // Execute users function
883
+ waiting = true; // Prevent future invocations
884
+ setTimeout(function () {
885
+ waiting = false; // And allow future invocations
886
+ }, wait);
887
+ }
888
+ };
889
+ }
890
+
891
+ function toString(value) {
892
+ if (value === null || value === undefined) {
893
+ return '';
894
+ }
895
+ return `${value}`;
896
+ }
897
+
898
+ function uuid() {
899
+ return guid('xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx');
900
+ }
901
+
902
+ function value(object, key, def) {
903
+ if (typeof object === 'object' || Array.isArray(object)) {
904
+ if (object.hasOwnProperty(key)) {
905
+ return object[key];
906
+ }
907
+ }
908
+ return def;
909
+ }
910
+
911
+ function number(value, decimals) {
912
+ if (isNumeric(decimals)) {
913
+ value = round(value, decimals);
914
+ }
915
+ return Number(value || 0).toLocaleString(undefined, { maximumFractionDigits: decimals });
916
+ }
917
+
918
+ function acronym(str, length = 2) {
919
+ const splittedString = str
920
+ .replace(/[^a-zA-Z0-9]+/g, ' ')
921
+ .split(' ');
922
+ let result = '';
923
+ for (let i = 0; i < length; i++) {
924
+ if (!splittedString[i]) {
925
+ if (splittedString.length === 1) {
926
+ for (let j = 1; j < length; j++) {
927
+ if (!splittedString[i - 1][j]) {
928
+ break;
929
+ }
930
+ result += splittedString[i - 1][j].toUpperCase();
931
+ }
932
+ }
933
+ break;
934
+ }
935
+ result += splittedString[i][0].toUpperCase();
936
+ }
937
+ return result;
938
+ }
939
+
940
+ function currency(amount, precision = [2, 10], currencyCode = 'USD', locale = 'en-US') {
941
+ const digitsInfo = Array.isArray(precision) ? precision : [precision, precision];
942
+ amount = round(amount, digitsInfo[1]);
943
+ return new CurrencyPipe(locale)
944
+ .transform(amount, currencyCode, 'symbol', `1.${digitsInfo[0]}-${digitsInfo[1]}`);
945
+ }
946
+
947
+ function truncate(value, limit = 100, completeWords = false, ellipsis = '...') {
948
+ value = value || '';
949
+ if (completeWords) {
950
+ limit = value.substr(0, limit).lastIndexOf(' ');
951
+ }
952
+ let result = `${value.substr(0, limit)}`;
953
+ if (result !== value) {
954
+ result += ellipsis;
955
+ }
956
+ return result;
957
+ }
958
+
959
+ function email(value) {
960
+ 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,}))$/);
961
+ }
962
+
963
+ function phone(value) {
964
+ const valid = /^[\+]?[(]?[0-9]{3}[)]?[-\s\.]?[0-9]{3}[-\s\.]?[0-9]{4}/.test(value);
965
+ return valid || !String(value).length;
966
+ }
967
+
968
+ /**
969
+ * Check validity of the url.
970
+ * Protocol (http/https) isn't required.
971
+ * @param value
972
+ * @returns {boolean}
973
+ */
974
+ function url(value) {
975
+ const expression = /^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:/?#%[\]@!\$&'\(\)\*\+,;=.]+$/gm;
976
+ const regexp = new RegExp(expression);
977
+ return !!String(value).match(regexp);
978
+ }
979
+
980
+ function delayedRetry(delayMs, maxRetry = 5, message) {
981
+ let retries = 0;
982
+ return (src) => src.pipe(retryWhen((errors) => errors.pipe(tap(() => {
983
+ retries++;
984
+ if (retries <= maxRetry) {
985
+ console.info(`Failed to load Resource. Retry in ${delayMs / 1000} sec. ${retries}/${maxRetry} times...`);
986
+ }
987
+ }), concatMap((error) => iif(() => retries > maxRetry, throwError(getErrorMessage(maxRetry, message)), timer(delayMs))))));
988
+ }
989
+ const getErrorMessage = (maxRetry, defaultMessage) => {
990
+ if (!defaultMessage) {
991
+ return `Failed to load Resource for ${maxRetry} times. Giving up.`;
992
+ }
993
+ else {
994
+ return defaultMessage;
995
+ }
996
+ };
997
+
998
+ function bytes(bytes, decimals, unit) {
999
+ if (!bytes) {
1000
+ return '0 MB';
1001
+ }
1002
+ const e = typeof unit === 'string' ?
1003
+ 'KMGTP'.indexOf(unit.replace('B', '')) + 1 :
1004
+ Math.floor(Math.log(bytes) / Math.log(1024));
1005
+ if (!isNumeric(decimals)) {
1006
+ decimals = (bytes / 1024) > 1000 ? 2 : 0;
1007
+ }
1008
+ return `${(bytes / Math.pow(1024, e))
1009
+ .toFixed(decimals)}`
1010
+ .replace(/\.00/, '')
1011
+ + ' '
1012
+ + (e ? ' KMGTP'.charAt(e) : '') + 'B';
1013
+ }
1014
+
1015
+ class FsFormatBytesPipe {
1016
+ transform(value, decimals, unit) {
1017
+ return bytes(value, decimals, unit);
1018
+ }
1019
+ }
1020
+ FsFormatBytesPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsFormatBytesPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1021
+ FsFormatBytesPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsFormatBytesPipe, name: "fsFormatBytes" });
1022
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsFormatBytesPipe, decorators: [{
1023
+ type: Pipe,
1024
+ args: [{
1025
+ name: 'fsFormatBytes',
1026
+ }]
1027
+ }] });
1028
+
1029
+ class FsFormatCurrencyPipe {
1030
+ constructor(locale) {
1031
+ this.locale = locale;
1032
+ }
1033
+ transform(amount, precision = 2, currencyCode) {
1034
+ return currency(amount, precision, currencyCode);
1035
+ }
1036
+ }
1037
+ FsFormatCurrencyPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsFormatCurrencyPipe, deps: [{ token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Pipe });
1038
+ FsFormatCurrencyPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsFormatCurrencyPipe, name: "fsFormatCurrency" });
1039
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsFormatCurrencyPipe, decorators: [{
1040
+ type: Pipe,
1041
+ args: [{
1042
+ name: 'fsFormatCurrency',
1043
+ }]
1044
+ }], ctorParameters: function () {
1045
+ return [{ type: undefined, decorators: [{
1046
+ type: Inject,
1047
+ args: [LOCALE_ID]
1048
+ }] }];
1049
+ } });
1050
+
1051
+ class FsFormatNumberPipe {
1052
+ transform(value, decimals) {
1053
+ return number(value, decimals);
1054
+ }
1055
+ }
1056
+ FsFormatNumberPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsFormatNumberPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1057
+ FsFormatNumberPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsFormatNumberPipe, name: "fsFormatNumber" });
1058
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsFormatNumberPipe, decorators: [{
1059
+ type: Pipe,
1060
+ args: [{
1061
+ name: 'fsFormatNumber'
1062
+ }]
1063
+ }] });
1064
+
1065
+ class FsFormatOrdinalNumberPipe {
1066
+ transform(value) {
1067
+ return ordinalNumber(value);
1068
+ }
1069
+ }
1070
+ FsFormatOrdinalNumberPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsFormatOrdinalNumberPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1071
+ FsFormatOrdinalNumberPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsFormatOrdinalNumberPipe, name: "fsFormatOrdinalNumber" });
1072
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsFormatOrdinalNumberPipe, decorators: [{
1073
+ type: Pipe,
1074
+ args: [{
1075
+ name: 'fsFormatOrdinalNumber',
1076
+ }]
1077
+ }] });
1078
+
1079
+ class FsFormatTruncatePipe {
1080
+ constructor() { }
1081
+ transform(value, limit, completeWords, ellipsis) {
1082
+ return truncate(value, limit, completeWords, ellipsis);
1083
+ }
1084
+ }
1085
+ FsFormatTruncatePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsFormatTruncatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
1086
+ FsFormatTruncatePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsFormatTruncatePipe, name: "fsFormatTruncate" });
1087
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsFormatTruncatePipe, decorators: [{
1088
+ type: Pipe,
1089
+ args: [{
1090
+ name: 'fsFormatTruncate'
1091
+ }]
1092
+ }], ctorParameters: function () { return []; } });
1093
+
1094
+ class FsArray {
1095
+ /**
1096
+ * @deprecated use import { nameValue } from @firestitch/common/array; instead
1097
+ */
1098
+ nameValue(array, name, value) {
1099
+ console.warn('@deprecated use import { nameValue } from @firestitch/common/array; instead');
1100
+ let list = [];
1101
+ if (name || value) {
1102
+ let nameFn = typeof name === 'function' ? name : function (item) { return item[name]; };
1103
+ let valueFn = typeof value === 'function' ? value : function (item) { return item[value]; };
1104
+ array.forEach(function (item) {
1105
+ list.push({ name: nameFn(item), value: valueFn(item) });
1106
+ });
1107
+ }
1108
+ else {
1109
+ array.forEach(function (name, value) {
1110
+ list.push({ name: name, value: value });
1111
+ });
1112
+ }
1113
+ return list;
1114
+ }
1115
+ /**
1116
+ * @deprecated use import { remove } from @firestitch/common/array; instead
1117
+ */
1118
+ remove(array, query) {
1119
+ console.warn('@deprecated use import { remove } from @firestitch/common/array; instead');
1120
+ let idx = this.indexOf(array, query);
1121
+ if (idx >= 0) {
1122
+ return array.splice(idx, 1);
1123
+ }
1124
+ return idx;
1125
+ }
1126
+ /**
1127
+ * @deprecated use import { indexOf } from @firestitch/common/array; instead
1128
+ */
1129
+ indexOf(array, query) {
1130
+ console.warn('@deprecated use import { indexOf } from @firestitch/common/array; instead');
1131
+ if (typeof query !== 'function') {
1132
+ let queryObj = query;
1133
+ query = (item) => {
1134
+ return this.compare(queryObj, item);
1135
+ };
1136
+ }
1137
+ for (let i = 0, len = array.length; i < len; i++) {
1138
+ if (query(array[i])) {
1139
+ return i;
1140
+ }
1141
+ }
1142
+ return -1;
1143
+ }
1144
+ /**
1145
+ * @deprecated use import { compare } from @firestitch/common/array; instead
1146
+ */
1147
+ compare(query, item) {
1148
+ console.warn('@deprecated use import { compare } from @firestitch/common/array; instead');
1149
+ let value = true;
1150
+ for (let key in query) {
1151
+ value = value && item[key] == query[key];
1152
+ }
1153
+ return value;
1154
+ }
1155
+ /**
1156
+ * @deprecated use import { filter } from @firestitch/common/array; instead
1157
+ */
1158
+ filter(array, query) {
1159
+ console.warn('@deprecated use import { filter } from @firestitch/common/array; instead');
1160
+ if (typeof query !== 'function') {
1161
+ let queryObj = query;
1162
+ query = (item) => {
1163
+ return this.compare(queryObj, item);
1164
+ };
1165
+ }
1166
+ let isarray = Array.isArray(array);
1167
+ let list = isarray ? [] : {};
1168
+ if (isarray)
1169
+ array.forEach(function (item, idx) {
1170
+ if (query(item)) {
1171
+ list.push(item);
1172
+ }
1173
+ });
1174
+ else
1175
+ Object.keys(array).forEach(key => {
1176
+ if (query(array[key])) {
1177
+ list[key] = array[key];
1178
+ }
1179
+ });
1180
+ return list;
1181
+ }
1182
+ /**
1183
+ * @deprecated use import { index } from @firestitch/common/array; instead
1184
+ */
1185
+ index(array, property) {
1186
+ console.warn('@deprecated use import { index } from @firestitch/common/array; instead');
1187
+ let list = {};
1188
+ array.forEach(function (item, idx) {
1189
+ list[item[property]] = item;
1190
+ });
1191
+ return list;
1192
+ }
1193
+ /**
1194
+ * @deprecated use import { sort } from @firestitch/common/array; instead
1195
+ */
1196
+ sort(array, query, reverse = false) {
1197
+ console.warn('@deprecated use import { sort } from @firestitch/common/array; instead');
1198
+ if (typeof query !== 'function') {
1199
+ let queryStr = query;
1200
+ query = function (a, b) {
1201
+ if (reverse) {
1202
+ if (a[queryStr] < b[queryStr]) {
1203
+ return 1;
1204
+ }
1205
+ else if (a[queryStr] > b[queryStr]) {
1206
+ return -1;
1207
+ }
1208
+ }
1209
+ else {
1210
+ if (a[queryStr] > b[queryStr]) {
1211
+ return 1;
1212
+ }
1213
+ else if (a[queryStr] < b[queryStr]) {
1214
+ return -1;
1215
+ }
1216
+ }
1217
+ return 0;
1218
+ };
1219
+ }
1220
+ array.sort(query);
1221
+ return array;
1222
+ }
1223
+ /**
1224
+ * @deprecated use import { rsort } from @firestitch/common/array; instead
1225
+ */
1226
+ rsort(array, query) {
1227
+ console.warn('@deprecated use import { rsort } from @firestitch/common/array; instead');
1228
+ return this.sort(array, query, true);
1229
+ }
1230
+ /**
1231
+ * @deprecated use import { list } from @firestitch/common/array; instead
1232
+ */
1233
+ list(array, property, index = null) {
1234
+ console.warn('@deprecated use import { list } from @firestitch/common/array; instead');
1235
+ let list = index ? {} : [];
1236
+ array.forEach(function (item, idx) {
1237
+ if (index) {
1238
+ list[item[index]] = item[property];
1239
+ }
1240
+ else {
1241
+ list.push(item[property]);
1242
+ }
1243
+ });
1244
+ return list;
1245
+ }
1246
+ /**
1247
+ * @deprecated use import { applyDepth } from @firestitch/common/array; instead
1248
+ */
1249
+ applyDepth(objects, parent_property, id_property = 'id', depth_property = 'depth') {
1250
+ console.warn('@deprecated use import { applyDepth } from @firestitch/common/array; instead');
1251
+ let keyed = {};
1252
+ objects.forEach(function (object) {
1253
+ if (!object[parent_property]) {
1254
+ object[depth_property] = 0;
1255
+ }
1256
+ keyed[object[id_property]] = object;
1257
+ });
1258
+ Object.keys(keyed).forEach(key => {
1259
+ Object.keys(keyed).forEach(key => {
1260
+ let object = keyed[key];
1261
+ if (!keyed[key][depth_property]) {
1262
+ if (keyed[key][parent_property]) {
1263
+ keyed[key][depth_property] = keyed[keyed[key][parent_property]][depth_property] + 1;
1264
+ }
1265
+ }
1266
+ });
1267
+ });
1268
+ return keyed;
1269
+ }
1270
+ /**
1271
+ * @deprecated use import { inArray } from @firestitch/common/array; instead
1272
+ */
1273
+ inArray(values, array) {
1274
+ console.warn('@deprecated use import { inArray } from @firestitch/common/array; instead');
1275
+ if (!Array.isArray(values)) {
1276
+ values = [values];
1277
+ }
1278
+ for (let i = 0, len = values.length; i < len; i++) {
1279
+ if (array.indexOf(values[i]) >= 0) {
1280
+ return true;
1281
+ }
1282
+ }
1283
+ return false;
1284
+ }
1285
+ /**
1286
+ * @deprecated use import { keyExists } from @firestitch/common/array; instead
1287
+ */
1288
+ keyExists(array, key) {
1289
+ console.warn('@deprecated use import { keyExists } from @firestitch/common/array; instead');
1290
+ return array.hasOwnProperty(key);
1291
+ }
1292
+ /**
1293
+ * @deprecated use import { length } from @firestitch/common/array; instead
1294
+ */
1295
+ length(array) {
1296
+ console.warn('@deprecated use import { length } from @firestitch/common/array; instead');
1297
+ return array.length;
1298
+ }
1299
+ /**
1300
+ * @deprecated use import { ksort } from @firestitch/common/array; instead
1301
+ */
1302
+ ksort(unordered) {
1303
+ console.warn('@deprecated use import { ksort } from @firestitch/common/array; instead');
1304
+ Object.keys(unordered).sort().forEach(function (key) {
1305
+ let value = unordered[key];
1306
+ delete unordered[key];
1307
+ unordered[key] = value;
1308
+ });
1309
+ }
1310
+ }
1311
+ FsArray.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsArray, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1312
+ FsArray.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsArray });
1313
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsArray, decorators: [{
1314
+ type: Injectable
1315
+ }] });
1316
+
1317
+ class FsMath {
1318
+ /**
1319
+ * @deprecated use _.round() instead {@link https://lodash.com/docs/4.17.5#round}
1320
+ */
1321
+ round(number, precision) {
1322
+ console.warn('@deprecated use _.round() instead {@link https://lodash.com/docs/4.17.5#round}');
1323
+ precision = precision || 0;
1324
+ let factor = Math.pow(10, precision);
1325
+ let tempNumber = number * factor;
1326
+ let roundedTempNumber = Math.round(tempNumber);
1327
+ return roundedTempNumber / factor;
1328
+ }
1329
+ }
1330
+ FsMath.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsMath, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1331
+ FsMath.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsMath });
1332
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsMath, decorators: [{
1333
+ type: Injectable
1334
+ }] });
1335
+
1336
+ const KEY_CANCEL = 3, KEY_HELP = 6, KEY_BACKSPACE = 8, KEY_TAB = 9, KEY_CLEAR = 12, KEY_RETURN = 13, KEY_ENTER = 14, KEY_SHIFT = 16, KEY_CONTROL = 17, KEY_ALT = 18, KEY_PAUSE = 19, KEY_CAPS_LOCK = 20, KEY_ESCAPE = 27, KEY_SPACE = 32, KEY_PAGE_UP = 33, KEY_PAGE_DOWN = 34, KEY_END = 35, KEY_HOME = 36, KEY_LEFT = 37, KEY_UP = 38, KEY_RIGHT = 39, KEY_DOWN = 40, KEY_PRINTSCREEN = 44, KEY_INSERT = 45, KEY_DELETE = 46, KEY_0 = 48, KEY_1 = 49, KEY_2 = 50, KEY_3 = 51, KEY_4 = 52, KEY_5 = 53, KEY_6 = 54, KEY_7 = 55, KEY_8 = 56, KEY_9 = 57, KEY_SEMICOLON = 59, KEY_EQUALS = 61;
1337
+ /*
1338
+ 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)
1339
+ There might be a better way to organise constatns but I need to know use-cases
1340
+ */
1341
+ class FsUtil {
1342
+ constructor() {
1343
+ this.intervals = {};
1344
+ }
1345
+ /**
1346
+ * @deprecated use @firestitch/common/util/guid instead
1347
+ */
1348
+ guid(pattern) {
1349
+ console.warn('@deprecated use @firestitch/common/util/guid instead');
1350
+ pattern = pattern || 'xxxxxx';
1351
+ return pattern.replace(/[xy]/g, function (c) {
1352
+ var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
1353
+ return v.toString(16);
1354
+ });
1355
+ }
1356
+ /**
1357
+ * @deprecated use import { uuid } from @firestitch/common/util; instead
1358
+ */
1359
+ uuid() {
1360
+ console.warn('@deprecated use @firestitch/common/util/uuid instead');
1361
+ return this.guid('xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx');
1362
+ }
1363
+ /**
1364
+ * @deprecated use import { resolve } from @firestitch/common/util; instead
1365
+ */
1366
+ resolve(promise, defaults = []) {
1367
+ console.warn('@deprecated use @firestitch/common/util/resolve instead');
1368
+ const result = defaults;
1369
+ return new Promise(resolve => {
1370
+ promise.then(function (data) {
1371
+ Object.keys(data).forEach(key => result[key] = data[key]);
1372
+ resolve(result);
1373
+ });
1374
+ });
1375
+ }
1376
+ /**
1377
+ * @deprecated use _.toInteger() instead
1378
+ */
1379
+ int(value) {
1380
+ console.warn('@deprecated use _.toInteger() instead');
1381
+ value = parseInt(value);
1382
+ if (isNaN(value)) {
1383
+ value = 0;
1384
+ }
1385
+ return value;
1386
+ }
1387
+ /**
1388
+ * @deprecated use _.toFinite() instead
1389
+ */
1390
+ float(value) {
1391
+ console.warn('@deprecated use _.toFinite() instead');
1392
+ value = parseFloat(value);
1393
+ if (isNaN(value)) {
1394
+ value = 0;
1395
+ }
1396
+ return value;
1397
+ }
1398
+ /**
1399
+ * @deprecated use _.toString() instead
1400
+ */
1401
+ string(string) {
1402
+ console.warn('@deprecated use _.toString() instead');
1403
+ if (string === null || string === undefined) {
1404
+ string = '';
1405
+ }
1406
+ return (string).toString();
1407
+ }
1408
+ /**
1409
+ * @deprecated use import { isEmpty } from @firestitch/common/util; instead
1410
+ */
1411
+ isEmpty(value, options) {
1412
+ console.warn('@deprecated use import { isEmpty } from @firestitch/common/util; instead');
1413
+ options = options || {};
1414
+ return value === undefined ||
1415
+ value === null ||
1416
+ value === false ||
1417
+ value === '' ||
1418
+ !this.string(value).length ||
1419
+ (this.isObject(value) &&
1420
+ (value.constructor.name === 'Object' && !Object.keys(value).length)) ||
1421
+ (!options.zero && (value === 0 || value === '0'));
1422
+ }
1423
+ /**
1424
+ * @deprecated use _.isInteger() instead
1425
+ */
1426
+ isInt(value, type) {
1427
+ console.warn('@deprecated use _.isInteger() instead');
1428
+ const int = !!this.string(value).match(/^\d+$/);
1429
+ if (!int) {
1430
+ return false;
1431
+ }
1432
+ if (type) {
1433
+ return Number.isInteger(value);
1434
+ }
1435
+ return true;
1436
+ }
1437
+ /**
1438
+ * @deprecated use _.each() instead {@link https://lodash.com/docs/4.17.5#forEach}
1439
+ */
1440
+ each(object, func) {
1441
+ console.warn('@deprecated use _.each() instead {@link https://lodash.com/docs/4.17.5#forEach}');
1442
+ if (!this.isArray(object) && !this.isObject(object)) {
1443
+ return;
1444
+ }
1445
+ Object.keys(object).forEach(function (key) {
1446
+ func(object[key], key);
1447
+ });
1448
+ }
1449
+ /**
1450
+ * @deprecated use _.isArrayLikeObject() {@link https://lodash.com/docs/4.17.5#isArrayLikeObject}
1451
+ * or _.isObject() {@link https://lodash.com/docs/4.17.5#isObject} instead
1452
+ */
1453
+ isObject(value) {
1454
+ 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');
1455
+ return value !== null && typeof value === 'object' && !this.isArray(value);
1456
+ }
1457
+ /**
1458
+ * @deprecated use _.isString() instead {@link https://lodash.com/docs/4.17.5#isString}
1459
+ */
1460
+ isString(value) {
1461
+ console.warn('@deprecated use _.isString() instead {@link https://lodash.com/docs/4.17.5#isString}');
1462
+ return typeof value === 'string' || value instanceof String;
1463
+ }
1464
+ /**
1465
+ * @deprecated use _.isArray() instead {@link https://lodash.com/docs/4.17.5#isArray}
1466
+ */
1467
+ isArray(value) {
1468
+ console.warn('@deprecated use _.isArray() instead {@link https://lodash.com/docs/4.17.5#isArray}');
1469
+ return value instanceof Array;
1470
+ }
1471
+ /**
1472
+ * @deprecated use import { isNumeric } from @firestitch/common/util; instead
1473
+ */
1474
+ isNumeric(value) {
1475
+ console.warn('@deprecated use import { isNumeric } from @firestitch/common/util; instead');
1476
+ return this.string(value).length && !!this.string(value).match(/^-?\d*\.?\d*$/);
1477
+ }
1478
+ /**
1479
+ * @deprecated use import { isClass } from @firestitch/common/util; instead
1480
+ */
1481
+ isClass(value, cls) {
1482
+ console.warn('@deprecated use import { isClass } from @firestitch/common/util; instead');
1483
+ if (this.isObject(value)) {
1484
+ if (this.isString(cls)) {
1485
+ if (value.constructor) {
1486
+ if (value.constructor.name === cls) {
1487
+ return true;
1488
+ }
1489
+ }
1490
+ }
1491
+ else {
1492
+ if (value instanceof cls) {
1493
+ return true;
1494
+ }
1495
+ }
1496
+ }
1497
+ return false;
1498
+ }
1499
+ /**
1500
+ * @deprecated use _.isBoolean() instead {@link https://lodash.com/docs/4.17.5#isBoolean}
1501
+ */
1502
+ isBoolean(value) {
1503
+ console.warn('@deprecated use _.isBoolean() instead {@link https://lodash.com/docs/4.17.5#isBoolean}');
1504
+ return value === true || value === false;
1505
+ }
1506
+ /**
1507
+ * @deprecated use import { value } from @firestitch/common/util; instead
1508
+ */
1509
+ value(object, key, def) {
1510
+ console.warn('@deprecated use import { value } from @firestitch/common/util; instead');
1511
+ if (this.isObject(object) || this.isArray(object)) {
1512
+ if (object.hasOwnProperty(key)) {
1513
+ return object[key];
1514
+ }
1515
+ }
1516
+ return def;
1517
+ }
1518
+ throttle(func, wait) {
1519
+ console.warn('@deprecated use import { throttle } from @firestitch/common/util; instead');
1520
+ let waiting = false; // Initially, we're not waiting
1521
+ return function () {
1522
+ if (!waiting) { // If we're not waiting
1523
+ func.apply(null, arguments); // Execute users function
1524
+ waiting = true; // Prevent future invocations
1525
+ setTimeout(function () {
1526
+ waiting = false; // And allow future invocations
1527
+ }, wait);
1528
+ }
1529
+ };
1530
+ }
1531
+ /**
1532
+ * @deprecated use import { debounce } from @firestitch/common/util; instead
1533
+ */
1534
+ debounce(func, wait, immediate) {
1535
+ console.warn('@deprecated use import { debounce } from @firestitch/common/util; instead');
1536
+ var timeout;
1537
+ return function () {
1538
+ var context = this, args = arguments;
1539
+ var later = function () {
1540
+ timeout = null;
1541
+ if (!immediate)
1542
+ func.apply(context, args);
1543
+ };
1544
+ var callNow = immediate && !timeout;
1545
+ clearTimeout(timeout);
1546
+ timeout = setTimeout(later, wait);
1547
+ if (callNow)
1548
+ func.apply(context, args);
1549
+ };
1550
+ }
1551
+ /**
1552
+ * @deprecated use import { length } from @firestitch/common/util; instead
1553
+ */
1554
+ length(object) {
1555
+ console.warn('@deprecated use import { length } from @firestitch/common/util; instead');
1556
+ if (this.isObject(object)) {
1557
+ return Object.keys(object).length;
1558
+ }
1559
+ if (this.isArray(object)) {
1560
+ return object.length;
1561
+ }
1562
+ return 0;
1563
+ }
1564
+ /**
1565
+ * @deprecated use import { boolean } from @firestitch/common/util; instead
1566
+ */
1567
+ boolean(value) {
1568
+ console.warn('@deprecated use import { boolean } from @firestitch/common/util; instead');
1569
+ return this.string(value).toLowerCase() !== 'false' && !!value;
1570
+ }
1571
+ /**
1572
+ * @deprecated use import { stringify } from @firestitch/common/util; instead
1573
+ */
1574
+ stringify(value) {
1575
+ console.warn('@deprecated use import { stringify } from @firestitch/common/util; instead');
1576
+ return JSON.stringify(value);
1577
+ }
1578
+ }
1579
+ FsUtil.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsUtil, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1580
+ FsUtil.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsUtil });
1581
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsUtil, decorators: [{
1582
+ type: Injectable
1583
+ }] });
1584
+
1585
+ class FsValidate {
1586
+ constructor(fsUtil) {
1587
+ this.fsUtil = fsUtil;
1588
+ }
1589
+ /**
1590
+ * @deprecated use import { email } from @firestitch/common/validate; instead
1591
+ */
1592
+ phone(value) {
1593
+ const valid = /^[\+]?[(]?[0-9]{3}[)]?[-\s\.]?[0-9]{3}[-\s\.]?[0-9]{4,6}$/.test(value);
1594
+ return valid || !String(value).length;
1595
+ }
1596
+ /**
1597
+ * @deprecated use import { email } from @firestitch/common/validate; instead
1598
+ */
1599
+ email(value) {
1600
+ 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,}))$/);
1601
+ }
1602
+ }
1603
+ FsValidate.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsValidate, deps: [{ token: FsUtil }], target: i0.ɵɵFactoryTarget.Injectable });
1604
+ FsValidate.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsValidate });
1605
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsValidate, decorators: [{
1606
+ type: Injectable
1607
+ }], ctorParameters: function () { return [{ type: FsUtil }]; } });
1608
+
1609
+ class FsCommonModule {
1610
+ static forRoot() {
1611
+ return {
1612
+ ngModule: FsCommonModule,
1613
+ providers: [
1614
+ FsArray,
1615
+ FsMath,
1616
+ FsUtil,
1617
+ FsValidate,
1618
+ ],
1619
+ };
1620
+ }
1621
+ }
1622
+ FsCommonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsCommonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1623
+ FsCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsCommonModule, declarations: [FsStopPropagationDirective,
1624
+ FsPreventDefaultDirective,
1625
+ FsAutofocusDirective,
1626
+ FsUtilGuidPipe,
1627
+ FsUtilIsEmptyPipe,
1628
+ FsUtilIsNotEmptyPipe,
1629
+ FsUtilStringifyPipe,
1630
+ FsFormatNumberPipe,
1631
+ FsFormatCurrencyPipe,
1632
+ FsFormatTruncatePipe,
1633
+ FsFormatBytesPipe,
1634
+ FsFormatOrdinalNumberPipe,
1635
+ FsModelChangeDirective], imports: [CommonModule], exports: [FsStopPropagationDirective,
1636
+ FsPreventDefaultDirective,
1637
+ FsAutofocusDirective,
1638
+ FsUtilGuidPipe,
1639
+ FsUtilStringifyPipe,
1640
+ FsFormatNumberPipe,
1641
+ FsFormatCurrencyPipe,
1642
+ FsFormatTruncatePipe,
1643
+ FsUtilIsEmptyPipe,
1644
+ FsUtilIsNotEmptyPipe,
1645
+ FsFormatBytesPipe,
1646
+ FsModelChangeDirective,
1647
+ FsFormatOrdinalNumberPipe] });
1648
+ FsCommonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsCommonModule, imports: [[
1649
+ CommonModule,
1650
+ ]] });
1651
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsCommonModule, decorators: [{
1652
+ type: NgModule,
1653
+ args: [{
1654
+ imports: [
1655
+ CommonModule,
1656
+ ],
1657
+ declarations: [
1658
+ FsStopPropagationDirective,
1659
+ FsPreventDefaultDirective,
1660
+ FsAutofocusDirective,
1661
+ FsUtilGuidPipe,
1662
+ FsUtilIsEmptyPipe,
1663
+ FsUtilIsNotEmptyPipe,
1664
+ FsUtilStringifyPipe,
1665
+ FsFormatNumberPipe,
1666
+ FsFormatCurrencyPipe,
1667
+ FsFormatTruncatePipe,
1668
+ FsFormatBytesPipe,
1669
+ FsFormatOrdinalNumberPipe,
1670
+ FsModelChangeDirective,
1671
+ ],
1672
+ exports: [
1673
+ FsStopPropagationDirective,
1674
+ FsPreventDefaultDirective,
1675
+ FsAutofocusDirective,
1676
+ FsUtilGuidPipe,
1677
+ FsUtilStringifyPipe,
1678
+ FsFormatNumberPipe,
1679
+ FsFormatCurrencyPipe,
1680
+ FsFormatTruncatePipe,
1681
+ FsUtilIsEmptyPipe,
1682
+ FsUtilIsNotEmptyPipe,
1683
+ FsFormatBytesPipe,
1684
+ FsModelChangeDirective,
1685
+ FsFormatOrdinalNumberPipe,
1686
+ ],
1687
+ }]
1688
+ }] });
1689
+
1690
+ const keyboardShortcut = (shortcut) => {
1691
+ // Observables for all keydown and keyup events
1692
+ const keyDown$ = fromEvent(document, 'keydown');
1693
+ const keyUp$ = fromEvent(document, 'keyup');
1694
+ // All KeyboardEvents - emitted only when KeyboardEvent changes (key or type)
1695
+ const keyEvents$ = merge(keyDown$, keyUp$).pipe(distinctUntilChanged((a, b) => a.code === b.code && a.type === b.type), share());
1696
+ // Create KeyboardEvent Observable for specified KeyCode
1697
+ const createKeyPressStream = (charCode) => keyEvents$.pipe(filter$1((event) => event.keyCode === charCode));
1698
+ // Create Event Stream for every KeyCode in shortcut
1699
+ const keyCodeEvents$ = shortcut.map((s) => createKeyPressStream(s));
1700
+ // Emit when specified keys are pressed (keydown).
1701
+ // Emit only when all specified keys are pressed at the same time.
1702
+ // More on combineLatest below
1703
+ return combineLatest(keyCodeEvents$).pipe(filter$1((arr) => arr.every((a) => a.type === 'keydown')));
1704
+ };
1705
+
1706
+ // Modules
1707
+
1708
+ /**
1709
+ * Generated bundle index. Do not edit.
1710
+ */
1711
+
1712
+ export { FsArray, FsAutofocusDirective, FsCommonModule, FsFormatBytesPipe, FsFormatCurrencyPipe, FsFormatNumberPipe, FsFormatOrdinalNumberPipe, FsFormatTruncatePipe, FsMath, FsModelChangeDirective, FsPreventDefaultDirective, FsStopPropagationDirective, FsUtil, FsUtilGuidPipe, FsUtilIsEmptyPipe, FsUtilIsNotEmptyPipe, FsUtilStringifyPipe, 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, clone, compare, currency, debounce, delayedRetry, email, filter, find, fsSourceLoader, getNormalizedPath, guid, inArray, index, indexOf, isArrayEqual, isClass, isEmpty, isNumeric, isObject, keyExists, keyboardShortcut, ksort, length, list, loadJs, loadStyles, nameValue, number, ordinalNumber, phone, remove, removeQueryParams, resolve, round, rsort, sort, stringify, throttle, toString, truncate, url, uuid, value };
1713
+ //# sourceMappingURL=firestitch-common.mjs.map