monkey-front-components 0.0.384 → 0.0.387

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 (276) hide show
  1. package/esm2020/lib/components/base/base-component.mjs +322 -0
  2. package/esm2020/lib/components/base/base-dynamic-array.mjs +221 -0
  3. package/esm2020/lib/components/base/base-dynamic.mjs +99 -0
  4. package/esm2020/lib/components/base/base-scroll-component.mjs +55 -0
  5. package/esm2020/lib/components/base/base-validators.mjs +19 -0
  6. package/esm2020/lib/components/base/index.mjs +6 -0
  7. package/esm2020/lib/components/dynamic/button/button.component.mjs +52 -0
  8. package/esm2020/lib/components/dynamic/button/index.mjs +2 -0
  9. package/esm2020/lib/components/dynamic/dynamic-directive.mjs +95 -0
  10. package/esm2020/lib/components/dynamic/dynamic.module.mjs +84 -0
  11. package/esm2020/lib/components/dynamic/file-upload/file-upload.component.mjs +52 -0
  12. package/esm2020/lib/components/dynamic/file-upload/index.mjs +2 -0
  13. package/esm2020/lib/components/dynamic/form/dynamic-form-array.component.mjs +72 -0
  14. package/esm2020/lib/components/dynamic/form/dynamic-form.component.mjs +46 -0
  15. package/esm2020/lib/components/dynamic/form/index.mjs +3 -0
  16. package/esm2020/lib/components/dynamic/index.mjs +9 -0
  17. package/esm2020/lib/components/dynamic/input/index.mjs +2 -0
  18. package/esm2020/lib/components/dynamic/input/input.component.mjs +65 -0
  19. package/esm2020/lib/components/dynamic/input-phone/index.mjs +2 -0
  20. package/esm2020/lib/components/dynamic/input-phone/input-phone.component.mjs +65 -0
  21. package/esm2020/lib/components/dynamic/radio/index.mjs +2 -0
  22. package/esm2020/lib/components/dynamic/radio/radio.component.mjs +33 -0
  23. package/esm2020/lib/components/dynamic/select/index.mjs +2 -0
  24. package/esm2020/lib/components/dynamic/select/select.component.mjs +80 -0
  25. package/esm2020/lib/components/dynamic/select-search/index.mjs +2 -0
  26. package/esm2020/lib/components/dynamic/select-search/select-search.component.mjs +80 -0
  27. package/esm2020/lib/components/index.mjs +4 -0
  28. package/esm2020/lib/components/shared/filter/filter.component.mjs +119 -0
  29. package/esm2020/lib/components/shared/filter/filter.module.mjs +63 -0
  30. package/esm2020/lib/components/shared/filter/index.mjs +3 -0
  31. package/esm2020/lib/components/shared/filter/menu/index.mjs +2 -0
  32. package/esm2020/lib/components/shared/filter/menu/menu.component.mjs +120 -0
  33. package/esm2020/lib/components/shared/filter/menu/menu.module.mjs +70 -0
  34. package/esm2020/lib/components/shared/filter/options/children/children.component.mjs +50 -0
  35. package/esm2020/lib/components/shared/filter/options/children/index.mjs +2 -0
  36. package/esm2020/lib/components/shared/filter/options/currency/currency.component.mjs +46 -0
  37. package/esm2020/lib/components/shared/filter/options/currency/index.mjs +2 -0
  38. package/esm2020/lib/components/shared/filter/options/date-range/date-range.component.mjs +65 -0
  39. package/esm2020/lib/components/shared/filter/options/date-range/index.mjs +2 -0
  40. package/esm2020/lib/components/shared/filter/options/index.mjs +2 -0
  41. package/esm2020/lib/components/shared/filter/options/input/index.mjs +2 -0
  42. package/esm2020/lib/components/shared/filter/options/input/input.component.mjs +46 -0
  43. package/esm2020/lib/components/shared/filter/options/options.component.mjs +68 -0
  44. package/esm2020/lib/components/shared/filter/options/options.module.mjs +95 -0
  45. package/esm2020/lib/components/shared/filter/options/status/index.mjs +2 -0
  46. package/esm2020/lib/components/shared/filter/options/status/status.component.mjs +66 -0
  47. package/esm2020/lib/components/shared/filter/selected/index.mjs +2 -0
  48. package/esm2020/lib/components/shared/filter/selected/item/children/children.component.mjs +57 -0
  49. package/esm2020/lib/components/shared/filter/selected/item/children/index.mjs +2 -0
  50. package/esm2020/lib/components/shared/filter/selected/item/currency/currency.component.mjs +29 -0
  51. package/esm2020/lib/components/shared/filter/selected/item/currency/index.mjs +2 -0
  52. package/esm2020/lib/components/shared/filter/selected/item/date-range/date-range.component.mjs +42 -0
  53. package/esm2020/lib/components/shared/filter/selected/item/date-range/index.mjs +2 -0
  54. package/esm2020/lib/components/shared/filter/selected/item/date-with-action/date-with-action.component.mjs +33 -0
  55. package/esm2020/lib/components/shared/filter/selected/item/date-with-action/index.mjs +2 -0
  56. package/esm2020/lib/components/shared/filter/selected/item/index.mjs +8 -0
  57. package/esm2020/lib/components/shared/filter/selected/item/input/index.mjs +2 -0
  58. package/esm2020/lib/components/shared/filter/selected/item/input/input.component.mjs +28 -0
  59. package/esm2020/lib/components/shared/filter/selected/item/item.component.mjs +74 -0
  60. package/esm2020/lib/components/shared/filter/selected/item/status/index.mjs +2 -0
  61. package/esm2020/lib/components/shared/filter/selected/item/status/status.component.mjs +39 -0
  62. package/esm2020/lib/components/shared/filter/selected/selected.component.mjs +80 -0
  63. package/esm2020/lib/components/shared/filter/selected/selected.module.mjs +90 -0
  64. package/esm2020/lib/components/shared/index.mjs +5 -0
  65. package/esm2020/lib/components/shared/password-strength/index.mjs +3 -0
  66. package/esm2020/lib/components/shared/password-strength/password-strength.component.mjs +85 -0
  67. package/esm2020/lib/components/shared/password-strength/password-strength.mjs +2 -0
  68. package/esm2020/lib/components/shared/password-strength/password-strength.module.mjs +50 -0
  69. package/esm2020/lib/components/shared/products/filter/filter.component.mjs +36 -0
  70. package/esm2020/lib/components/shared/products/index.mjs +3 -0
  71. package/esm2020/lib/components/shared/products/products.component.mjs +91 -0
  72. package/esm2020/lib/components/shared/products/products.module.mjs +22 -0
  73. package/esm2020/lib/components/shared/products/providers/index.mjs +2 -0
  74. package/esm2020/lib/components/shared/products/providers/products.model.mjs +38 -0
  75. package/esm2020/lib/components/shared/progress-bar/index.mjs +4 -0
  76. package/esm2020/lib/components/shared/progress-bar/progress-bar.component.mjs +28 -0
  77. package/esm2020/lib/components/shared/progress-bar/progress-bar.module.mjs +18 -0
  78. package/esm2020/lib/components/shared/progress-bar/progress-bar.service.mjs +49 -0
  79. package/esm2020/lib/interfaces/field-config.mjs +2 -0
  80. package/esm2020/lib/interfaces/index.mjs +2 -0
  81. package/esm2020/monkey-front-components.mjs +5 -0
  82. package/esm2020/public-api.mjs +5 -0
  83. package/fesm2015/monkey-front-components.mjs +2877 -0
  84. package/fesm2015/monkey-front-components.mjs.map +1 -0
  85. package/fesm2020/monkey-front-components.mjs +2859 -0
  86. package/fesm2020/monkey-front-components.mjs.map +1 -0
  87. package/lib/components/base/base-component.d.ts +50 -0
  88. package/lib/components/base/base-dynamic-array.d.ts +34 -0
  89. package/lib/components/base/base-dynamic.d.ts +24 -0
  90. package/lib/components/base/base-scroll-component.d.ts +16 -0
  91. package/lib/components/base/base-validators.d.ts +1 -0
  92. package/{src/lib/components/base/index.ts → lib/components/base/index.d.ts} +5 -5
  93. package/lib/components/dynamic/button/button.component.d.ts +17 -0
  94. package/{src/lib/components/dynamic/button/index.ts → lib/components/dynamic/button/index.d.ts} +1 -1
  95. package/lib/components/dynamic/dynamic-directive.d.ts +22 -0
  96. package/lib/components/dynamic/dynamic.module.d.ts +20 -0
  97. package/lib/components/dynamic/file-upload/file-upload.component.d.ts +17 -0
  98. package/{src/lib/components/dynamic/file-upload/index.ts → lib/components/dynamic/file-upload/index.d.ts} +1 -1
  99. package/lib/components/dynamic/form/dynamic-form-array.component.d.ts +16 -0
  100. package/lib/components/dynamic/form/dynamic-form.component.d.ts +14 -0
  101. package/{src/lib/components/dynamic/form/index.ts → lib/components/dynamic/form/index.d.ts} +2 -2
  102. package/{src/lib/components/dynamic/index.ts → lib/components/dynamic/index.d.ts} +8 -8
  103. package/{src/lib/components/dynamic/input/index.ts → lib/components/dynamic/input/index.d.ts} +1 -1
  104. package/lib/components/dynamic/input/input.component.d.ts +20 -0
  105. package/{src/lib/components/dynamic/input-phone/index.ts → lib/components/dynamic/input-phone/index.d.ts} +1 -1
  106. package/lib/components/dynamic/input-phone/input-phone.component.d.ts +20 -0
  107. package/{src/lib/components/dynamic/radio/index.ts → lib/components/dynamic/radio/index.d.ts} +1 -1
  108. package/lib/components/dynamic/radio/radio.component.d.ts +11 -0
  109. package/{src/lib/components/dynamic/select/index.ts → lib/components/dynamic/select/index.d.ts} +1 -1
  110. package/lib/components/dynamic/select/select.component.d.ts +16 -0
  111. package/{src/lib/components/dynamic/select-search/index.ts → lib/components/dynamic/select-search/index.d.ts} +1 -1
  112. package/lib/components/dynamic/select-search/select-search.component.d.ts +16 -0
  113. package/{src/lib/components/index.ts → lib/components/index.d.ts} +3 -3
  114. package/lib/components/shared/filter/filter.component.d.ts +32 -0
  115. package/lib/components/shared/filter/filter.module.d.ts +14 -0
  116. package/{src/lib/components/shared/filter/index.ts → lib/components/shared/filter/index.d.ts} +2 -2
  117. package/{src/lib/components/shared/filter/menu/index.ts → lib/components/shared/filter/menu/index.d.ts} +1 -1
  118. package/lib/components/shared/filter/menu/menu.component.d.ts +24 -0
  119. package/lib/components/shared/filter/menu/menu.module.d.ts +14 -0
  120. package/lib/components/shared/filter/options/children/children.component.d.ts +17 -0
  121. package/{src/lib/components/shared/filter/options/children/index.ts → lib/components/shared/filter/options/children/index.d.ts} +1 -1
  122. package/lib/components/shared/filter/options/currency/currency.component.d.ts +17 -0
  123. package/{src/lib/components/shared/filter/options/currency/index.ts → lib/components/shared/filter/options/currency/index.d.ts} +1 -1
  124. package/lib/components/shared/filter/options/date-range/date-range.component.d.ts +24 -0
  125. package/{src/lib/components/shared/filter/options/date-range/index.ts → lib/components/shared/filter/options/date-range/index.d.ts} +1 -1
  126. package/{src/lib/components/shared/filter/options/index.ts → lib/components/shared/filter/options/index.d.ts} +1 -1
  127. package/{src/lib/components/shared/filter/options/input/index.ts → lib/components/shared/filter/options/input/index.d.ts} +1 -1
  128. package/lib/components/shared/filter/options/input/input.component.d.ts +17 -0
  129. package/lib/components/shared/filter/options/options.component.d.ts +20 -0
  130. package/lib/components/shared/filter/options/options.module.d.ts +18 -0
  131. package/{src/lib/components/shared/filter/options/status/index.ts → lib/components/shared/filter/options/status/index.d.ts} +1 -1
  132. package/lib/components/shared/filter/options/status/status.component.d.ts +19 -0
  133. package/{src/lib/components/shared/filter/selected/index.ts → lib/components/shared/filter/selected/index.d.ts} +1 -1
  134. package/lib/components/shared/filter/selected/item/children/children.component.d.ts +16 -0
  135. package/{src/lib/components/shared/filter/selected/item/children/index.ts → lib/components/shared/filter/selected/item/children/index.d.ts} +1 -1
  136. package/lib/components/shared/filter/selected/item/currency/currency.component.d.ts +11 -0
  137. package/{src/lib/components/shared/filter/selected/item/currency/index.ts → lib/components/shared/filter/selected/item/currency/index.d.ts} +1 -1
  138. package/lib/components/shared/filter/selected/item/date-range/date-range.component.d.ts +12 -0
  139. package/{src/lib/components/shared/filter/selected/item/date-range/index.ts → lib/components/shared/filter/selected/item/date-range/index.d.ts} +1 -1
  140. package/lib/components/shared/filter/selected/item/date-with-action/date-with-action.component.d.ts +11 -0
  141. package/{src/lib/components/shared/filter/selected/item/date-with-action/index.ts → lib/components/shared/filter/selected/item/date-with-action/index.d.ts} +1 -1
  142. package/{src/lib/components/shared/filter/selected/item/index.ts → lib/components/shared/filter/selected/item/index.d.ts} +7 -7
  143. package/{src/lib/components/shared/filter/selected/item/input/index.ts → lib/components/shared/filter/selected/item/input/index.d.ts} +1 -1
  144. package/lib/components/shared/filter/selected/item/input/input.component.d.ts +11 -0
  145. package/lib/components/shared/filter/selected/item/item.component.d.ts +20 -0
  146. package/{src/lib/components/shared/filter/selected/item/status/index.ts → lib/components/shared/filter/selected/item/status/index.d.ts} +1 -1
  147. package/lib/components/shared/filter/selected/item/status/status.component.d.ts +13 -0
  148. package/lib/components/shared/filter/selected/selected.component.d.ts +18 -0
  149. package/lib/components/shared/filter/selected/selected.module.d.ts +21 -0
  150. package/{src/lib/components/shared/index.ts → lib/components/shared/index.d.ts} +4 -4
  151. package/{src/lib/components/shared/password-strength/index.ts → lib/components/shared/password-strength/index.d.ts} +2 -2
  152. package/lib/components/shared/password-strength/password-strength.component.d.ts +23 -0
  153. package/lib/components/shared/password-strength/password-strength.d.ts +5 -0
  154. package/lib/components/shared/password-strength/password-strength.module.d.ts +12 -0
  155. package/lib/components/shared/products/filter/filter.component.d.ts +12 -0
  156. package/{src/lib/components/shared/products/index.ts → lib/components/shared/products/index.d.ts} +2 -2
  157. package/lib/components/shared/products/products.component.d.ts +20 -0
  158. package/lib/components/shared/products/products.module.d.ts +11 -0
  159. package/{src/lib/components/shared/products/providers/index.ts → lib/components/shared/products/providers/index.d.ts} +1 -1
  160. package/lib/components/shared/products/providers/products.model.d.ts +13 -0
  161. package/{src/lib/components/shared/progress-bar/index.ts → lib/components/shared/progress-bar/index.d.ts} +3 -3
  162. package/lib/components/shared/progress-bar/progress-bar.component.d.ts +12 -0
  163. package/lib/components/shared/progress-bar/progress-bar.module.d.ts +8 -0
  164. package/lib/components/shared/progress-bar/progress-bar.service.d.ts +14 -0
  165. package/lib/interfaces/field-config.d.ts +54 -0
  166. package/{src/lib/interfaces/index.ts → lib/interfaces/index.d.ts} +1 -1
  167. package/monkey-front-components-0.0.387.tgz +0 -0
  168. package/monkey-front-components.d.ts +5 -0
  169. package/package.json +25 -5
  170. package/public-api.d.ts +1 -0
  171. package/karma.conf.js +0 -44
  172. package/monkey-front-components-0.0.384.tgz +0 -0
  173. package/ng-package.json +0 -10
  174. package/src/lib/components/base/base-component.ts +0 -359
  175. package/src/lib/components/base/base-dynamic-array.ts +0 -233
  176. package/src/lib/components/base/base-dynamic.ts +0 -90
  177. package/src/lib/components/base/base-scroll-component.ts +0 -52
  178. package/src/lib/components/base/base-validators.ts +0 -19
  179. package/src/lib/components/dynamic/button/button.component.html +0 -4
  180. package/src/lib/components/dynamic/button/button.component.scss +0 -7
  181. package/src/lib/components/dynamic/button/button.component.ts +0 -47
  182. package/src/lib/components/dynamic/dynamic-directive.ts +0 -102
  183. package/src/lib/components/dynamic/dynamic.module.ts +0 -53
  184. package/src/lib/components/dynamic/file-upload/file-upload.component.html +0 -10
  185. package/src/lib/components/dynamic/file-upload/file-upload.component.ts +0 -46
  186. package/src/lib/components/dynamic/form/dynamic-form-array.component.html +0 -19
  187. package/src/lib/components/dynamic/form/dynamic-form-array.component.scss +0 -10
  188. package/src/lib/components/dynamic/form/dynamic-form-array.component.ts +0 -75
  189. package/src/lib/components/dynamic/form/dynamic-form.component.html +0 -7
  190. package/src/lib/components/dynamic/form/dynamic-form.component.ts +0 -49
  191. package/src/lib/components/dynamic/input/input.component.html +0 -9
  192. package/src/lib/components/dynamic/input/input.component.ts +0 -58
  193. package/src/lib/components/dynamic/input-phone/input-phone.component.html +0 -7
  194. package/src/lib/components/dynamic/input-phone/input-phone.component.ts +0 -58
  195. package/src/lib/components/dynamic/radio/radio.component.html +0 -8
  196. package/src/lib/components/dynamic/radio/radio.component.ts +0 -22
  197. package/src/lib/components/dynamic/select/select.component.html +0 -14
  198. package/src/lib/components/dynamic/select/select.component.ts +0 -75
  199. package/src/lib/components/dynamic/select-search/select-search.component.html +0 -15
  200. package/src/lib/components/dynamic/select-search/select-search.component.ts +0 -76
  201. package/src/lib/components/shared/filter/filter.component.html +0 -51
  202. package/src/lib/components/shared/filter/filter.component.scss +0 -79
  203. package/src/lib/components/shared/filter/filter.component.ts +0 -117
  204. package/src/lib/components/shared/filter/filter.module.ts +0 -36
  205. package/src/lib/components/shared/filter/menu/menu.component.html +0 -28
  206. package/src/lib/components/shared/filter/menu/menu.component.scss +0 -62
  207. package/src/lib/components/shared/filter/menu/menu.component.ts +0 -122
  208. package/src/lib/components/shared/filter/menu/menu.module.ts +0 -41
  209. package/src/lib/components/shared/filter/options/children/children.component.html +0 -6
  210. package/src/lib/components/shared/filter/options/children/children.component.scss +0 -30
  211. package/src/lib/components/shared/filter/options/children/children.component.ts +0 -58
  212. package/src/lib/components/shared/filter/options/currency/currency.component.html +0 -3
  213. package/src/lib/components/shared/filter/options/currency/currency.component.scss +0 -19
  214. package/src/lib/components/shared/filter/options/currency/currency.component.ts +0 -52
  215. package/src/lib/components/shared/filter/options/date-range/date-range.component.html +0 -3
  216. package/src/lib/components/shared/filter/options/date-range/date-range.component.scss +0 -34
  217. package/src/lib/components/shared/filter/options/date-range/date-range.component.ts +0 -72
  218. package/src/lib/components/shared/filter/options/input/input.component.html +0 -3
  219. package/src/lib/components/shared/filter/options/input/input.component.scss +0 -19
  220. package/src/lib/components/shared/filter/options/input/input.component.ts +0 -52
  221. package/src/lib/components/shared/filter/options/options.component.html +0 -43
  222. package/src/lib/components/shared/filter/options/options.component.scss +0 -56
  223. package/src/lib/components/shared/filter/options/options.component.ts +0 -58
  224. package/src/lib/components/shared/filter/options/options.module.ts +0 -58
  225. package/src/lib/components/shared/filter/options/status/status.component.html +0 -4
  226. package/src/lib/components/shared/filter/options/status/status.component.scss +0 -29
  227. package/src/lib/components/shared/filter/options/status/status.component.ts +0 -73
  228. package/src/lib/components/shared/filter/selected/item/children/children.component.html +0 -19
  229. package/src/lib/components/shared/filter/selected/item/children/children.component.scss +0 -68
  230. package/src/lib/components/shared/filter/selected/item/children/children.component.ts +0 -49
  231. package/src/lib/components/shared/filter/selected/item/currency/currency.component.html +0 -1
  232. package/src/lib/components/shared/filter/selected/item/currency/currency.component.scss +0 -4
  233. package/src/lib/components/shared/filter/selected/item/currency/currency.component.ts +0 -26
  234. package/src/lib/components/shared/filter/selected/item/date-range/date-range.component.html +0 -2
  235. package/src/lib/components/shared/filter/selected/item/date-range/date-range.component.scss +0 -4
  236. package/src/lib/components/shared/filter/selected/item/date-range/date-range.component.ts +0 -39
  237. package/src/lib/components/shared/filter/selected/item/date-with-action/date-with-action.component.html +0 -1
  238. package/src/lib/components/shared/filter/selected/item/date-with-action/date-with-action.component.scss +0 -4
  239. package/src/lib/components/shared/filter/selected/item/date-with-action/date-with-action.component.ts +0 -29
  240. package/src/lib/components/shared/filter/selected/item/input/input.component.html +0 -1
  241. package/src/lib/components/shared/filter/selected/item/input/input.component.scss +0 -4
  242. package/src/lib/components/shared/filter/selected/item/input/input.component.ts +0 -26
  243. package/src/lib/components/shared/filter/selected/item/item.component.html +0 -38
  244. package/src/lib/components/shared/filter/selected/item/item.component.scss +0 -72
  245. package/src/lib/components/shared/filter/selected/item/item.component.ts +0 -71
  246. package/src/lib/components/shared/filter/selected/item/status/status.component.html +0 -1
  247. package/src/lib/components/shared/filter/selected/item/status/status.component.scss +0 -4
  248. package/src/lib/components/shared/filter/selected/item/status/status.component.ts +0 -36
  249. package/src/lib/components/shared/filter/selected/selected.component.html +0 -3
  250. package/src/lib/components/shared/filter/selected/selected.component.scss +0 -9
  251. package/src/lib/components/shared/filter/selected/selected.component.ts +0 -76
  252. package/src/lib/components/shared/filter/selected/selected.module.ts +0 -60
  253. package/src/lib/components/shared/password-strength/password-strength.component.html +0 -50
  254. package/src/lib/components/shared/password-strength/password-strength.component.scss +0 -70
  255. package/src/lib/components/shared/password-strength/password-strength.component.ts +0 -89
  256. package/src/lib/components/shared/password-strength/password-strength.module.ts +0 -24
  257. package/src/lib/components/shared/password-strength/password-strength.ts +0 -5
  258. package/src/lib/components/shared/products/filter/filter.component.html +0 -6
  259. package/src/lib/components/shared/products/filter/filter.component.scss +0 -20
  260. package/src/lib/components/shared/products/filter/filter.component.ts +0 -34
  261. package/src/lib/components/shared/products/products.component.html +0 -15
  262. package/src/lib/components/shared/products/products.component.scss +0 -70
  263. package/src/lib/components/shared/products/products.component.ts +0 -104
  264. package/src/lib/components/shared/products/products.module.ts +0 -13
  265. package/src/lib/components/shared/products/providers/products.model.ts +0 -60
  266. package/src/lib/components/shared/progress-bar/progress-bar.component.html +0 -3
  267. package/src/lib/components/shared/progress-bar/progress-bar.component.scss +0 -6
  268. package/src/lib/components/shared/progress-bar/progress-bar.component.ts +0 -27
  269. package/src/lib/components/shared/progress-bar/progress-bar.module.ts +0 -10
  270. package/src/lib/components/shared/progress-bar/progress-bar.service.ts +0 -59
  271. package/src/lib/interfaces/field-config.ts +0 -58
  272. package/src/public-api.ts +0 -5
  273. package/src/test.ts +0 -26
  274. package/tsconfig.lib.json +0 -20
  275. package/tsconfig.lib.prod.json +0 -10
  276. package/tsconfig.spec.json +0 -17
@@ -1,58 +0,0 @@
1
- import { CommonModule } from '@angular/common';
2
- import { NgModule } from '@angular/core';
3
- import { FormsModule, ReactiveFormsModule } from '@angular/forms';
4
- import { RouterModule } from '@angular/router';
5
- import { TranslateModule } from '@ngx-translate/core';
6
- import { MonkeyEcxDirectivesModule } from 'monkey-front-core';
7
- import {
8
- MonkeyBadgeModule,
9
- MonkeyButtonModule,
10
- MonkeyCheckboxModule,
11
- MonkeyDateRangePickerModule,
12
- MonkeyIconModule,
13
- MonkeyInputModule,
14
- MonkeyOptionModule,
15
- MonkeySelectModule
16
- } from 'monkey-style-guide';
17
- import { MECXFilterOptionsChildrenComponent } from './children';
18
- import { MECXFilterOptionsCurrencyComponent } from './currency';
19
- import { MECXFilterOptionsInputComponent } from './input';
20
- import { MECXFilterOptionsDateRangeComponent } from './date-range';
21
- import { MECXFilterOptionsComponent } from './options.component';
22
- import { MECXFilterOptionsStatusComponent } from './status';
23
-
24
- @NgModule({
25
- declarations: [
26
- MECXFilterOptionsChildrenComponent,
27
- MECXFilterOptionsComponent,
28
- MECXFilterOptionsCurrencyComponent,
29
- MECXFilterOptionsDateRangeComponent,
30
- MECXFilterOptionsInputComponent,
31
- MECXFilterOptionsStatusComponent
32
- ],
33
- imports: [
34
- CommonModule,
35
- FormsModule,
36
- MonkeyBadgeModule,
37
- MonkeyButtonModule,
38
- MonkeyCheckboxModule,
39
- MonkeyDateRangePickerModule,
40
- MonkeyEcxDirectivesModule,
41
- MonkeyIconModule,
42
- MonkeyInputModule,
43
- MonkeyOptionModule,
44
- MonkeySelectModule,
45
- ReactiveFormsModule,
46
- RouterModule,
47
- TranslateModule.forChild()
48
- ],
49
- exports: [
50
- MECXFilterOptionsChildrenComponent,
51
- MECXFilterOptionsComponent,
52
- MECXFilterOptionsCurrencyComponent,
53
- MECXFilterOptionsDateRangeComponent,
54
- MECXFilterOptionsInputComponent,
55
- MECXFilterOptionsStatusComponent
56
- ]
57
- })
58
- export class MECXFilterOptionsModule {}
@@ -1,4 +0,0 @@
1
- <monkey-checkbox type="multiple" *ngFor="let op of option?.values"
2
- [description]="op?.description | translate" [value]="onHandleChecked(op?.value)"
3
- (click)="onChangeFilter($event, op?.value)">
4
- </monkey-checkbox>
@@ -1,29 +0,0 @@
1
- @import 'node_modules/monkey-style-guide/assets/scss/partials/variables';
2
-
3
- :host {
4
- display: flex;
5
- flex-direction: column;
6
- max-width: 232px;
7
- min-width: 180px;
8
- max-height: 500px;
9
- padding: 12px 12px 8px 12px;
10
- color: #72717e;
11
- overflow: auto;
12
-
13
- ::ng-deep mecx-form-field mecx-form-field-body.checkbox {
14
- padding: 0px !important;
15
-
16
- .mecx-check-container {
17
- height: unset !important;
18
-
19
- .mecx-check-mark {
20
- top: 50%;
21
- transform: translateY(-50%);
22
- }
23
- }
24
- }
25
-
26
- ::ng-deep monkey-checkbox {
27
- margin: 6px 0px !important;
28
- }
29
- }
@@ -1,73 +0,0 @@
1
- import { Component, EventEmitter, Input, OnChanges, OnDestroy, OnInit, Output, SimpleChanges } from '@angular/core';
2
- import { MonkeyEcxFilterMenu } from 'monkey-front-core';
3
- import { Subscription } from 'rxjs';
4
- import { debounceTime } from 'rxjs/operators';
5
-
6
- @Component({
7
- selector: 'mecx-filter-options-status',
8
- templateUrl: './status.component.html',
9
- styleUrls: ['./status.component.scss']
10
- })
11
- export class MECXFilterOptionsStatusComponent implements OnInit, OnChanges, OnDestroy {
12
- @Input() option: MonkeyEcxFilterMenu = null;
13
-
14
- @Output() onSubmit = new EventEmitter<any>();
15
-
16
- _value = '';
17
-
18
- private eventHandle = new EventEmitter<any>();
19
-
20
- private eventSubscription: Subscription;
21
-
22
- constructor() {
23
- // not to do
24
- }
25
-
26
- private verifySelected(value: string): boolean {
27
- return this._value?.includes(value);
28
- }
29
-
30
- ngOnInit() {
31
- const { eventHandle, onSubmit, option: { field } } = this;
32
-
33
- this.eventSubscription = eventHandle
34
- .pipe(debounceTime(800))
35
- .subscribe((value: string) => {
36
- onSubmit.next({ [field]: value });
37
- });
38
- }
39
-
40
- ngOnDestroy() {
41
- this.eventSubscription.unsubscribe();
42
- }
43
-
44
- ngOnChanges(changes: SimpleChanges) {
45
- if (changes.option) {
46
- const { currentValue } = changes.option;
47
- if (currentValue && JSON.stringify(currentValue) !== '{}') {
48
- this._value = currentValue?.value;
49
- }
50
- }
51
- }
52
-
53
- onHandleChecked(cmp: string) {
54
- const { _value } = this;
55
- return `${_value}`.split(',')?.indexOf(cmp) >= 0;
56
- }
57
-
58
- onChangeFilter(event: any, value: string): void {
59
- event.preventDefault();
60
- event.stopPropagation();
61
-
62
- const selected = !this.verifySelected(value);
63
- const filters: string[] = this._value?.split(',') || [];
64
- if (!selected) {
65
- filters.splice(filters.indexOf(value), 1);
66
- } else {
67
- filters.push(value);
68
- }
69
-
70
- this._value = filters?.length ? filters.join(',') : null;
71
- this.eventHandle.next(this._value);
72
- }
73
- }
@@ -1,19 +0,0 @@
1
- <div class="box">
2
- <div class="data">
3
- {{ option.label | translate }}
4
- </div>
5
- <div class="value" [id]="'mecx-filter-selected-item-'+option?.field" (click)="onShow.next()">
6
- <ng-container *ngIf="option?.type as type">
7
- <ng-container [ngSwitch]="type+'-'+_child?.type">
8
- <mecx-filter-selected-item-date-with-action *ngSwitchCase="'date-with-action'"
9
- [option]="_child">
10
- </mecx-filter-selected-item-date-with-action>
11
- <mecx-filter-selected-item-date-range *ngSwitchCase="'date-date-range'" [option]="_child">
12
- </mecx-filter-selected-item-date-range>
13
- </ng-container>
14
- </ng-container>
15
- </div>
16
- <div class="action" (click)="onShow.next()">
17
- <monkey-icon icon="arrow-right-14" color="#4B4A53"></monkey-icon>
18
- </div>
19
- </div>
@@ -1,68 +0,0 @@
1
- @import 'node_modules/monkey-style-guide/assets/scss/partials/variables';
2
-
3
- :host {
4
- display: flex;
5
-
6
- .box {
7
- display: flex;
8
- justify-content: space-between;
9
- align-items: center;
10
- background: #ffffff;
11
- border: 1px solid #d6d6d6;
12
- box-sizing: border-box;
13
- border-radius: 120px;
14
- height: 40px;
15
-
16
- .data {
17
- display: flex;
18
- align-items: center;
19
- padding-left: 12px;
20
- height: 100%;
21
- font-style: normal;
22
- font-weight: 400;
23
- font-size: 14px;
24
- line-height: 24px;
25
- text-align: center;
26
- color: #72717e;
27
- }
28
-
29
- .value {
30
- cursor: pointer;
31
- display: flex;
32
- align-items: center;
33
- padding: 12px;
34
- height: 100%;
35
- font-style: normal;
36
- font-weight: 400;
37
- font-size: 14px;
38
- line-height: 24px;
39
- text-align: center;
40
- color: #72717e;
41
- background-color: #6d6d6d0a;
42
-
43
- &:hover {
44
- background-color: #6d6d6d0c;
45
- font-weight: 400;
46
- text-decoration: underline;
47
- }
48
- }
49
-
50
- .action {
51
- cursor: pointer;
52
- border-left: 1px solid #d6d6d6;
53
- padding: 12px;
54
- color: #908e9d;
55
- font-weight: 500;
56
- font-size: 18px;
57
- height: 40px;
58
- align-items: center;
59
- display: flex;
60
-
61
- &:hover {
62
- background-color: #6d6d6d0c;
63
- border-top-right-radius: 120px;
64
- border-bottom-right-radius: 120px;
65
- }
66
- }
67
- }
68
- }
@@ -1,49 +0,0 @@
1
- import { Component, ElementRef, EventEmitter, Input, OnChanges, Output, SimpleChanges } from '@angular/core';
2
- import { MonkeyEcxFilterMenu, MonkeyEcxUtils } from 'monkey-front-core';
3
-
4
- @Component({
5
- selector: 'mecx-filter-selected-item-children',
6
- templateUrl: './children.component.html',
7
- styleUrls: ['./children.component.scss']
8
- })
9
- export class MECXFilterSelectedItemChildrenComponent implements OnChanges {
10
- @Input() option: MonkeyEcxFilterMenu = null;
11
-
12
- @Output() onShow = new EventEmitter<any>();
13
-
14
- @Output() onRemove = new EventEmitter<any>();
15
-
16
- _child: any = null;
17
-
18
- constructor(private elRef: ElementRef) {
19
- // not to do
20
- }
21
-
22
- private validateValue(value: any) {
23
- if (!value) return false;
24
- if (typeof value === 'object') {
25
- return value && JSON.stringify(value) !== '{}';
26
- }
27
- return MonkeyEcxUtils.persistNullEmptyUndefined(value);
28
- }
29
-
30
- private onHandleSelectedValue({ children }: any) {
31
- const found = children.find(({ field, getValue }: any) => {
32
- return this.validateValue(getValue()?.[field]);
33
- });
34
- if (!found) {
35
- this.elRef.nativeElement.remove();
36
- return;
37
- }
38
- this._child = found;
39
- }
40
-
41
- ngOnChanges(changes: SimpleChanges) {
42
- if (changes.option) {
43
- const { currentValue } = changes.option;
44
- if (currentValue && JSON.stringify(currentValue) !== '{}') {
45
- this.onHandleSelectedValue(currentValue);
46
- }
47
- }
48
- }
49
- }
@@ -1 +0,0 @@
1
- {{ _value | monkeyecxFormatCurrency }}
@@ -1,4 +0,0 @@
1
- @import 'node_modules/monkey-style-guide/assets/scss/partials/variables';
2
-
3
- :host {
4
- }
@@ -1,26 +0,0 @@
1
- import { Component, Input, OnChanges, SimpleChanges } from '@angular/core';
2
- import { MonkeyEcxFilterMenu } from 'monkey-front-core';
3
-
4
- @Component({
5
- selector: 'mecx-filter-selected-item-currency',
6
- templateUrl: './currency.component.html',
7
- styleUrls: ['./currency.component.scss']
8
- })
9
- export class MECXFilterSelectedItemCurrencyComponent implements OnChanges {
10
- @Input() option: MonkeyEcxFilterMenu = null;
11
-
12
- _value: any = null;
13
-
14
- private onHandleSelectedValue({ value }: any) {
15
- this._value = value;
16
- }
17
-
18
- ngOnChanges(changes: SimpleChanges) {
19
- if (changes.option) {
20
- const { currentValue } = changes.option;
21
- if (currentValue && JSON.stringify(currentValue) !== '{}') {
22
- this.onHandleSelectedValue(currentValue);
23
- }
24
- }
25
- }
26
- }
@@ -1,2 +0,0 @@
1
- {{ _startDate | monkeyecxFormatDateTimelapse: false }} -
2
- {{ _endDate | monkeyecxFormatDateTimelapse: false }}
@@ -1,4 +0,0 @@
1
- @import 'node_modules/monkey-style-guide/assets/scss/partials/variables';
2
-
3
- :host {
4
- }
@@ -1,39 +0,0 @@
1
- import { Component, Input, OnChanges, SimpleChanges } from '@angular/core';
2
- import { MonkeyEcxFilterMenu, MonkeyEcxFilterMenuChildren } from 'monkey-front-core';
3
-
4
- @Component({
5
- selector: 'mecx-filter-selected-item-date-range',
6
- templateUrl: './date-range.component.html',
7
- styleUrls: ['./date-range.component.scss']
8
- })
9
- export class MECXFilterSelectedItemDateRangeComponent implements OnChanges {
10
- @Input() option: MonkeyEcxFilterMenu | MonkeyEcxFilterMenuChildren = null;
11
-
12
- _startDate = '';
13
-
14
- _endDate = '';
15
-
16
- private onHandleSelectedValue({ field, value, getValue }: any) {
17
- try {
18
- value = value || getValue()?.[field];
19
- if (value && JSON.stringify(value) !== '{}') {
20
- const objDates = JSON.parse(value);
21
- this._startDate = objDates?.startDate;
22
- this._endDate = objDates?.endDate;
23
- }
24
- } catch (e) {
25
- const objDates = JSON.parse(value?.dates);
26
- this._startDate = objDates?.startDate;
27
- this._endDate = objDates?.endDate;
28
- }
29
- }
30
-
31
- ngOnChanges(changes: SimpleChanges) {
32
- if (changes.option) {
33
- const { currentValue } = changes.option;
34
- if (currentValue && JSON.stringify(currentValue) !== '{}') {
35
- this.onHandleSelectedValue(currentValue);
36
- }
37
- }
38
- }
39
- }
@@ -1 +0,0 @@
1
- {{ _date | monkeyecxFormatDateTimelapse: false }}
@@ -1,4 +0,0 @@
1
- @import 'node_modules/monkey-style-guide/assets/scss/partials/variables';
2
-
3
- :host {
4
- }
@@ -1,29 +0,0 @@
1
- import { Component, Input, OnChanges, SimpleChanges } from '@angular/core';
2
- import { MonkeyEcxFilterMenuChildren, MonkeyEcxUtils } from 'monkey-front-core';
3
-
4
- @Component({
5
- selector: 'mecx-filter-selected-item-date-with-action',
6
- templateUrl: './date-with-action.component.html',
7
- styleUrls: ['./date-with-action.component.scss']
8
- })
9
- export class MECXFilterSelectedItemDateWithActionComponent implements OnChanges {
10
- @Input() option: MonkeyEcxFilterMenuChildren = null;
11
-
12
- _date = '';
13
-
14
- private onHandleSelectedValue({ field, getValue }: any) {
15
- const value = getValue()?.[field];
16
- if (MonkeyEcxUtils.persistNullEmptyUndefined(value)) {
17
- this._date = value;
18
- }
19
- }
20
-
21
- ngOnChanges(changes: SimpleChanges) {
22
- if (changes.option) {
23
- const { currentValue } = changes.option;
24
- if (currentValue && JSON.stringify(currentValue) !== '{}') {
25
- this.onHandleSelectedValue(currentValue);
26
- }
27
- }
28
- }
29
- }
@@ -1,4 +0,0 @@
1
- @import 'node_modules/monkey-style-guide/assets/scss/partials/variables';
2
-
3
- :host {
4
- }
@@ -1,26 +0,0 @@
1
- import { Component, Input, OnChanges, SimpleChanges } from '@angular/core';
2
- import { MonkeyEcxFilterMenu } from 'monkey-front-core';
3
-
4
- @Component({
5
- selector: 'mecx-filter-selected-item-input',
6
- templateUrl: './input.component.html',
7
- styleUrls: ['./input.component.scss']
8
- })
9
- export class MECXFilterSelectedItemInputComponent implements OnChanges {
10
- @Input() option: MonkeyEcxFilterMenu = null;
11
-
12
- _value: any = null;
13
-
14
- private onHandleSelectedValue({ value }: any) {
15
- this._value = value;
16
- }
17
-
18
- ngOnChanges(changes: SimpleChanges) {
19
- if (changes.option) {
20
- const { currentValue } = changes.option;
21
- if (currentValue && JSON.stringify(currentValue) !== '{}') {
22
- this.onHandleSelectedValue(currentValue);
23
- }
24
- }
25
- }
26
- }
@@ -1,38 +0,0 @@
1
- <ng-container *ngIf="_option?.type as type">
2
- <ng-container *ngIf="_option?.children; else withoutChildren">
3
- <mecx-filter-selected-item-children [option]="_option" (onShow)="onHandleShowMenu()"
4
- (onRemove)="onHandleRemove()">
5
- </mecx-filter-selected-item-children>
6
- </ng-container>
7
- <ng-template #withoutChildren>
8
- <div class="box">
9
- <div class="data">
10
- {{ _option.label | translate }}
11
- </div>
12
- <div class="value" [id]="'mecx-filter-selected-item-'+_option?.field"
13
- (click)="onHandleShowMenu()">
14
- <ng-container [ngSwitch]="type">
15
- <mecx-filter-selected-item-currency *ngSwitchCase="'currency'" [option]="_option">
16
- </mecx-filter-selected-item-currency>
17
- <mecx-filter-selected-item-input *ngSwitchCase="'input'" [option]="_option">
18
- </mecx-filter-selected-item-input>
19
- <mecx-filter-selected-item-date-range *ngSwitchCase="'date-range'" [option]="_option">
20
- </mecx-filter-selected-item-date-range>
21
- <mecx-filter-selected-item-status *ngSwitchCase="'status'" [option]="_option"
22
- [labelMoreValues]="'FIELD.AND-MORE' | translate">
23
- </mecx-filter-selected-item-status>
24
- </ng-container>
25
- </div>
26
- <div class="action" (click)="onHandleShowMenu()">
27
- <monkey-icon icon="arrow-right-14" color="#4B4A53"></monkey-icon>
28
- </div>
29
- </div>
30
- </ng-template>
31
- </ng-container>
32
- <ng-container
33
- *monkeyecxPopover="_showMenu; target: $any(_actionElement); closed: closeMenu; dir: 'ltr'">
34
- <mecx-filter-options [option]="_option" (onClose)="onHandleClose()"
35
- (onRemove)="onHandleRemove()" (onSubmit)="onHandleSubmit($event)"
36
- (onShowFromChildren)="onHandleShowFromChildren($event)">
37
- </mecx-filter-options>
38
- </ng-container>
@@ -1,72 +0,0 @@
1
- @import 'node_modules/monkey-style-guide/assets/scss/partials/variables';
2
-
3
- :host {
4
- display: flex;
5
-
6
- .box {
7
- display: flex;
8
- justify-content: space-between;
9
- align-items: center;
10
- background: #ffffff;
11
- border: 1px solid #d6d6d6;
12
- box-sizing: border-box;
13
- border-radius: 120px;
14
- height: 40px;
15
-
16
- .data {
17
- display: flex;
18
- align-items: center;
19
- padding: 12px 8px;
20
- height: 100%;
21
- font-style: normal;
22
- font-weight: 400;
23
- font-size: 14px;
24
- line-height: 24px;
25
- text-align: center;
26
- color: #72717e;
27
- }
28
-
29
- .value {
30
- cursor: pointer;
31
- display: flex;
32
- align-items: center;
33
- padding: 12px 8px;
34
- height: 100%;
35
- font-style: normal;
36
- font-weight: 400;
37
- font-size: 14px;
38
- line-height: 24px;
39
- text-align: center;
40
- color: #72717e;
41
- background-color: #6d6d6d0a;
42
-
43
- &:hover {
44
- background-color: #6d6d6d0c;
45
- font-weight: 400;
46
- text-decoration: underline;
47
- }
48
- }
49
-
50
- .action {
51
- cursor: pointer;
52
- border-left: 1px solid #d6d6d6;
53
- padding: 8px;
54
- color: #908e9d;
55
- font-weight: 500;
56
- font-size: 18px;
57
- height: 40px;
58
- align-items: center;
59
- display: flex;
60
-
61
- &:hover {
62
- background-color: #6d6d6d0c;
63
- border-top-right-radius: 120px;
64
- border-bottom-right-radius: 120px;
65
- }
66
- }
67
- }
68
- }
69
-
70
- mecx-filter-options {
71
- margin: 4px 0px;
72
- }
@@ -1,71 +0,0 @@
1
- import { Component, EventEmitter, Input, Output } from '@angular/core';
2
- import { MonkeyEcxFilterMenu } from 'monkey-front-core';
3
-
4
- @Component({
5
- selector: 'mecx-filter-selected-item',
6
- templateUrl: './item.component.html',
7
- styleUrls: ['./item.component.scss']
8
- })
9
- export class MECXFilterSelectedItemComponent {
10
- @Input() set option(value: MonkeyEcxFilterMenu) {
11
- this._option = value;
12
- }
13
-
14
- @Output() onClose = new EventEmitter<any>();
15
-
16
- @Output() onSubmit = new EventEmitter<any>();
17
-
18
- _option: MonkeyEcxFilterMenu = null;
19
-
20
- _showMenu = false;
21
-
22
- _actionElement: HTMLElement = null;
23
-
24
- closeMenu = () => {
25
- this._showMenu = false;
26
- };
27
-
28
- constructor() {
29
- // not to do
30
- }
31
-
32
- onHandleShowMenu() {
33
- const { _option } = this;
34
- this._actionElement = document.getElementById(`mecx-filter-selected-item-${_option?.field}`);
35
- setTimeout(() => {
36
- this._showMenu = true;
37
- }, 0);
38
- }
39
-
40
- onHandleClose() {
41
- this._showMenu = false;
42
- this.onClose.next();
43
- }
44
-
45
- onHandleSubmit(event: any) {
46
- this.onSubmit.next(event);
47
- }
48
-
49
- onHandleRemove() {
50
- const { _option } = this;
51
- const { field } = _option;
52
- this.onSubmit.next({ [field]: null });
53
- }
54
-
55
- onHandleShowFromChildren(event: any) {
56
- const { _option } = this;
57
- const { label } = _option;
58
-
59
- this.onHandleShowMenu();
60
- this.onHandleSubmit = (event: any) => {
61
- this.onSubmit.next({
62
- [_option.field]: JSON.stringify(event)
63
- });
64
- };
65
-
66
- this._option = {
67
- ...event,
68
- label
69
- };
70
- }
71
- }
@@ -1 +0,0 @@
1
- {{ _selectedValue | translate }}{{ _labelMoreValues }}
@@ -1,4 +0,0 @@
1
- @import 'node_modules/monkey-style-guide/assets/scss/partials/variables';
2
-
3
- :host {
4
- }