monkey-front-components 0.0.383 → 0.0.384

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/karma.conf.js +44 -0
  2. package/monkey-front-components-0.0.384.tgz +0 -0
  3. package/ng-package.json +10 -0
  4. package/package.json +7 -27
  5. package/src/lib/components/base/base-component.ts +359 -0
  6. package/src/lib/components/base/base-dynamic-array.ts +233 -0
  7. package/src/lib/components/base/base-dynamic.ts +90 -0
  8. package/src/lib/components/base/base-scroll-component.ts +52 -0
  9. package/src/lib/components/base/base-validators.ts +19 -0
  10. package/{lib/components/base/index.d.ts → src/lib/components/base/index.ts} +5 -5
  11. package/src/lib/components/dynamic/button/button.component.html +4 -0
  12. package/src/lib/components/dynamic/button/button.component.scss +7 -0
  13. package/src/lib/components/dynamic/button/button.component.ts +47 -0
  14. package/{lib/components/dynamic/button/index.d.ts → src/lib/components/dynamic/button/index.ts} +1 -1
  15. package/src/lib/components/dynamic/dynamic-directive.ts +102 -0
  16. package/src/lib/components/dynamic/dynamic.module.ts +53 -0
  17. package/src/lib/components/dynamic/file-upload/file-upload.component.html +10 -0
  18. package/src/lib/components/dynamic/file-upload/file-upload.component.ts +46 -0
  19. package/{lib/components/dynamic/file-upload/index.d.ts → src/lib/components/dynamic/file-upload/index.ts} +1 -1
  20. package/src/lib/components/dynamic/form/dynamic-form-array.component.html +19 -0
  21. package/src/lib/components/dynamic/form/dynamic-form-array.component.scss +10 -0
  22. package/src/lib/components/dynamic/form/dynamic-form-array.component.ts +75 -0
  23. package/src/lib/components/dynamic/form/dynamic-form.component.html +7 -0
  24. package/src/lib/components/dynamic/form/dynamic-form.component.ts +49 -0
  25. package/{lib/components/dynamic/form/index.d.ts → src/lib/components/dynamic/form/index.ts} +2 -2
  26. package/{lib/components/dynamic/index.d.ts → src/lib/components/dynamic/index.ts} +8 -8
  27. package/{lib/components/dynamic/input/index.d.ts → src/lib/components/dynamic/input/index.ts} +1 -1
  28. package/src/lib/components/dynamic/input/input.component.html +9 -0
  29. package/src/lib/components/dynamic/input/input.component.ts +58 -0
  30. package/{lib/components/dynamic/input-phone/index.d.ts → src/lib/components/dynamic/input-phone/index.ts} +1 -1
  31. package/src/lib/components/dynamic/input-phone/input-phone.component.html +7 -0
  32. package/src/lib/components/dynamic/input-phone/input-phone.component.ts +58 -0
  33. package/{lib/components/dynamic/radio/index.d.ts → src/lib/components/dynamic/radio/index.ts} +1 -1
  34. package/src/lib/components/dynamic/radio/radio.component.html +8 -0
  35. package/src/lib/components/dynamic/radio/radio.component.ts +22 -0
  36. package/{lib/components/dynamic/select/index.d.ts → src/lib/components/dynamic/select/index.ts} +1 -1
  37. package/src/lib/components/dynamic/select/select.component.html +14 -0
  38. package/src/lib/components/dynamic/select/select.component.ts +75 -0
  39. package/{lib/components/dynamic/select-search/index.d.ts → src/lib/components/dynamic/select-search/index.ts} +1 -1
  40. package/src/lib/components/dynamic/select-search/select-search.component.html +15 -0
  41. package/src/lib/components/dynamic/select-search/select-search.component.ts +76 -0
  42. package/{lib/components/index.d.ts → src/lib/components/index.ts} +3 -3
  43. package/src/lib/components/shared/filter/filter.component.html +51 -0
  44. package/src/lib/components/shared/filter/filter.component.scss +79 -0
  45. package/src/lib/components/shared/filter/filter.component.ts +117 -0
  46. package/src/lib/components/shared/filter/filter.module.ts +36 -0
  47. package/{lib/components/shared/filter/index.d.ts → src/lib/components/shared/filter/index.ts} +2 -2
  48. package/{lib/components/shared/filter/menu/index.d.ts → src/lib/components/shared/filter/menu/index.ts} +1 -1
  49. package/src/lib/components/shared/filter/menu/menu.component.html +28 -0
  50. package/src/lib/components/shared/filter/menu/menu.component.scss +62 -0
  51. package/src/lib/components/shared/filter/menu/menu.component.ts +122 -0
  52. package/src/lib/components/shared/filter/menu/menu.module.ts +41 -0
  53. package/src/lib/components/shared/filter/options/children/children.component.html +6 -0
  54. package/src/lib/components/shared/filter/options/children/children.component.scss +30 -0
  55. package/src/lib/components/shared/filter/options/children/children.component.ts +58 -0
  56. package/{lib/components/shared/filter/options/children/index.d.ts → src/lib/components/shared/filter/options/children/index.ts} +1 -1
  57. package/src/lib/components/shared/filter/options/currency/currency.component.html +3 -0
  58. package/src/lib/components/shared/filter/options/currency/currency.component.scss +19 -0
  59. package/src/lib/components/shared/filter/options/currency/currency.component.ts +52 -0
  60. package/{lib/components/shared/filter/options/currency/index.d.ts → src/lib/components/shared/filter/options/currency/index.ts} +1 -1
  61. package/src/lib/components/shared/filter/options/date-range/date-range.component.html +3 -0
  62. package/src/lib/components/shared/filter/options/date-range/date-range.component.scss +34 -0
  63. package/src/lib/components/shared/filter/options/date-range/date-range.component.ts +72 -0
  64. package/{lib/components/shared/filter/options/date-range/index.d.ts → src/lib/components/shared/filter/options/date-range/index.ts} +1 -1
  65. package/{lib/components/shared/filter/options/index.d.ts → src/lib/components/shared/filter/options/index.ts} +1 -1
  66. package/{lib/components/shared/filter/options/input/index.d.ts → src/lib/components/shared/filter/options/input/index.ts} +1 -1
  67. package/src/lib/components/shared/filter/options/input/input.component.html +3 -0
  68. package/src/lib/components/shared/filter/options/input/input.component.scss +19 -0
  69. package/src/lib/components/shared/filter/options/input/input.component.ts +52 -0
  70. package/src/lib/components/shared/filter/options/options.component.html +43 -0
  71. package/src/lib/components/shared/filter/options/options.component.scss +56 -0
  72. package/src/lib/components/shared/filter/options/options.component.ts +58 -0
  73. package/src/lib/components/shared/filter/options/options.module.ts +58 -0
  74. package/{lib/components/shared/filter/options/status/index.d.ts → src/lib/components/shared/filter/options/status/index.ts} +1 -1
  75. package/src/lib/components/shared/filter/options/status/status.component.html +4 -0
  76. package/src/lib/components/shared/filter/options/status/status.component.scss +29 -0
  77. package/src/lib/components/shared/filter/options/status/status.component.ts +73 -0
  78. package/{lib/components/shared/filter/selected/index.d.ts → src/lib/components/shared/filter/selected/index.ts} +1 -1
  79. package/src/lib/components/shared/filter/selected/item/children/children.component.html +19 -0
  80. package/src/lib/components/shared/filter/selected/item/children/children.component.scss +68 -0
  81. package/src/lib/components/shared/filter/selected/item/children/children.component.ts +49 -0
  82. package/{lib/components/shared/filter/selected/item/children/index.d.ts → src/lib/components/shared/filter/selected/item/children/index.ts} +1 -1
  83. package/src/lib/components/shared/filter/selected/item/currency/currency.component.html +1 -0
  84. package/src/lib/components/shared/filter/selected/item/currency/currency.component.scss +4 -0
  85. package/src/lib/components/shared/filter/selected/item/currency/currency.component.ts +26 -0
  86. package/{lib/components/shared/filter/selected/item/currency/index.d.ts → src/lib/components/shared/filter/selected/item/currency/index.ts} +1 -1
  87. package/src/lib/components/shared/filter/selected/item/date-range/date-range.component.html +2 -0
  88. package/src/lib/components/shared/filter/selected/item/date-range/date-range.component.scss +4 -0
  89. package/src/lib/components/shared/filter/selected/item/date-range/date-range.component.ts +39 -0
  90. package/{lib/components/shared/filter/selected/item/date-range/index.d.ts → src/lib/components/shared/filter/selected/item/date-range/index.ts} +1 -1
  91. package/src/lib/components/shared/filter/selected/item/date-with-action/date-with-action.component.html +1 -0
  92. package/src/lib/components/shared/filter/selected/item/date-with-action/date-with-action.component.scss +4 -0
  93. package/src/lib/components/shared/filter/selected/item/date-with-action/date-with-action.component.ts +29 -0
  94. package/{lib/components/shared/filter/selected/item/date-with-action/index.d.ts → src/lib/components/shared/filter/selected/item/date-with-action/index.ts} +1 -1
  95. package/{lib/components/shared/filter/selected/item/index.d.ts → src/lib/components/shared/filter/selected/item/index.ts} +7 -7
  96. package/{lib/components/shared/filter/selected/item/input/index.d.ts → src/lib/components/shared/filter/selected/item/input/index.ts} +1 -1
  97. package/src/lib/components/shared/filter/selected/item/input/input.component.html +1 -0
  98. package/src/lib/components/shared/filter/selected/item/input/input.component.scss +4 -0
  99. package/src/lib/components/shared/filter/selected/item/input/input.component.ts +26 -0
  100. package/src/lib/components/shared/filter/selected/item/item.component.html +38 -0
  101. package/src/lib/components/shared/filter/selected/item/item.component.scss +72 -0
  102. package/src/lib/components/shared/filter/selected/item/item.component.ts +71 -0
  103. package/{lib/components/shared/filter/selected/item/status/index.d.ts → src/lib/components/shared/filter/selected/item/status/index.ts} +1 -1
  104. package/src/lib/components/shared/filter/selected/item/status/status.component.html +1 -0
  105. package/src/lib/components/shared/filter/selected/item/status/status.component.scss +4 -0
  106. package/src/lib/components/shared/filter/selected/item/status/status.component.ts +36 -0
  107. package/src/lib/components/shared/filter/selected/selected.component.html +3 -0
  108. package/src/lib/components/shared/filter/selected/selected.component.scss +9 -0
  109. package/src/lib/components/shared/filter/selected/selected.component.ts +76 -0
  110. package/src/lib/components/shared/filter/selected/selected.module.ts +60 -0
  111. package/{lib/components/shared/index.d.ts → src/lib/components/shared/index.ts} +4 -4
  112. package/{lib/components/shared/password-strength/index.d.ts → src/lib/components/shared/password-strength/index.ts} +2 -2
  113. package/src/lib/components/shared/password-strength/password-strength.component.html +50 -0
  114. package/src/lib/components/shared/password-strength/password-strength.component.scss +70 -0
  115. package/src/lib/components/shared/password-strength/password-strength.component.ts +89 -0
  116. package/src/lib/components/shared/password-strength/password-strength.module.ts +24 -0
  117. package/src/lib/components/shared/password-strength/password-strength.ts +5 -0
  118. package/src/lib/components/shared/products/filter/filter.component.html +6 -0
  119. package/src/lib/components/shared/products/filter/filter.component.scss +20 -0
  120. package/src/lib/components/shared/products/filter/filter.component.ts +34 -0
  121. package/{lib/components/shared/products/index.d.ts → src/lib/components/shared/products/index.ts} +2 -2
  122. package/src/lib/components/shared/products/products.component.html +15 -0
  123. package/src/lib/components/shared/products/products.component.scss +70 -0
  124. package/src/lib/components/shared/products/products.component.ts +104 -0
  125. package/src/lib/components/shared/products/products.module.ts +13 -0
  126. package/{lib/components/shared/products/providers/index.d.ts → src/lib/components/shared/products/providers/index.ts} +1 -1
  127. package/src/lib/components/shared/products/providers/products.model.ts +60 -0
  128. package/{lib/components/shared/progress-bar/index.d.ts → src/lib/components/shared/progress-bar/index.ts} +3 -3
  129. package/src/lib/components/shared/progress-bar/progress-bar.component.html +3 -0
  130. package/src/lib/components/shared/progress-bar/progress-bar.component.scss +6 -0
  131. package/src/lib/components/shared/progress-bar/progress-bar.component.ts +27 -0
  132. package/src/lib/components/shared/progress-bar/progress-bar.module.ts +10 -0
  133. package/src/lib/components/shared/progress-bar/progress-bar.service.ts +59 -0
  134. package/src/lib/interfaces/field-config.ts +58 -0
  135. package/{lib/interfaces/index.d.ts → src/lib/interfaces/index.ts} +1 -1
  136. package/src/public-api.ts +5 -0
  137. package/src/test.ts +26 -0
  138. package/tsconfig.lib.json +20 -0
  139. package/tsconfig.lib.prod.json +10 -0
  140. package/tsconfig.spec.json +17 -0
  141. package/esm2020/lib/components/base/base-component.mjs +0 -322
  142. package/esm2020/lib/components/base/base-dynamic-array.mjs +0 -221
  143. package/esm2020/lib/components/base/base-dynamic.mjs +0 -99
  144. package/esm2020/lib/components/base/base-scroll-component.mjs +0 -55
  145. package/esm2020/lib/components/base/base-validators.mjs +0 -19
  146. package/esm2020/lib/components/base/index.mjs +0 -6
  147. package/esm2020/lib/components/dynamic/button/button.component.mjs +0 -52
  148. package/esm2020/lib/components/dynamic/button/index.mjs +0 -2
  149. package/esm2020/lib/components/dynamic/dynamic-directive.mjs +0 -95
  150. package/esm2020/lib/components/dynamic/dynamic.module.mjs +0 -84
  151. package/esm2020/lib/components/dynamic/file-upload/file-upload.component.mjs +0 -52
  152. package/esm2020/lib/components/dynamic/file-upload/index.mjs +0 -2
  153. package/esm2020/lib/components/dynamic/form/dynamic-form-array.component.mjs +0 -72
  154. package/esm2020/lib/components/dynamic/form/dynamic-form.component.mjs +0 -46
  155. package/esm2020/lib/components/dynamic/form/index.mjs +0 -3
  156. package/esm2020/lib/components/dynamic/index.mjs +0 -9
  157. package/esm2020/lib/components/dynamic/input/index.mjs +0 -2
  158. package/esm2020/lib/components/dynamic/input/input.component.mjs +0 -65
  159. package/esm2020/lib/components/dynamic/input-phone/index.mjs +0 -2
  160. package/esm2020/lib/components/dynamic/input-phone/input-phone.component.mjs +0 -65
  161. package/esm2020/lib/components/dynamic/radio/index.mjs +0 -2
  162. package/esm2020/lib/components/dynamic/radio/radio.component.mjs +0 -33
  163. package/esm2020/lib/components/dynamic/select/index.mjs +0 -2
  164. package/esm2020/lib/components/dynamic/select/select.component.mjs +0 -80
  165. package/esm2020/lib/components/dynamic/select-search/index.mjs +0 -2
  166. package/esm2020/lib/components/dynamic/select-search/select-search.component.mjs +0 -80
  167. package/esm2020/lib/components/index.mjs +0 -4
  168. package/esm2020/lib/components/shared/filter/filter.component.mjs +0 -119
  169. package/esm2020/lib/components/shared/filter/filter.module.mjs +0 -63
  170. package/esm2020/lib/components/shared/filter/index.mjs +0 -3
  171. package/esm2020/lib/components/shared/filter/menu/index.mjs +0 -2
  172. package/esm2020/lib/components/shared/filter/menu/menu.component.mjs +0 -120
  173. package/esm2020/lib/components/shared/filter/menu/menu.module.mjs +0 -70
  174. package/esm2020/lib/components/shared/filter/options/children/children.component.mjs +0 -50
  175. package/esm2020/lib/components/shared/filter/options/children/index.mjs +0 -2
  176. package/esm2020/lib/components/shared/filter/options/currency/currency.component.mjs +0 -46
  177. package/esm2020/lib/components/shared/filter/options/currency/index.mjs +0 -2
  178. package/esm2020/lib/components/shared/filter/options/date-range/date-range.component.mjs +0 -65
  179. package/esm2020/lib/components/shared/filter/options/date-range/index.mjs +0 -2
  180. package/esm2020/lib/components/shared/filter/options/index.mjs +0 -2
  181. package/esm2020/lib/components/shared/filter/options/input/index.mjs +0 -2
  182. package/esm2020/lib/components/shared/filter/options/input/input.component.mjs +0 -46
  183. package/esm2020/lib/components/shared/filter/options/options.component.mjs +0 -68
  184. package/esm2020/lib/components/shared/filter/options/options.module.mjs +0 -95
  185. package/esm2020/lib/components/shared/filter/options/status/index.mjs +0 -2
  186. package/esm2020/lib/components/shared/filter/options/status/status.component.mjs +0 -66
  187. package/esm2020/lib/components/shared/filter/selected/index.mjs +0 -2
  188. package/esm2020/lib/components/shared/filter/selected/item/children/children.component.mjs +0 -57
  189. package/esm2020/lib/components/shared/filter/selected/item/children/index.mjs +0 -2
  190. package/esm2020/lib/components/shared/filter/selected/item/currency/currency.component.mjs +0 -29
  191. package/esm2020/lib/components/shared/filter/selected/item/currency/index.mjs +0 -2
  192. package/esm2020/lib/components/shared/filter/selected/item/date-range/date-range.component.mjs +0 -42
  193. package/esm2020/lib/components/shared/filter/selected/item/date-range/index.mjs +0 -2
  194. package/esm2020/lib/components/shared/filter/selected/item/date-with-action/date-with-action.component.mjs +0 -33
  195. package/esm2020/lib/components/shared/filter/selected/item/date-with-action/index.mjs +0 -2
  196. package/esm2020/lib/components/shared/filter/selected/item/index.mjs +0 -8
  197. package/esm2020/lib/components/shared/filter/selected/item/input/index.mjs +0 -2
  198. package/esm2020/lib/components/shared/filter/selected/item/input/input.component.mjs +0 -28
  199. package/esm2020/lib/components/shared/filter/selected/item/item.component.mjs +0 -74
  200. package/esm2020/lib/components/shared/filter/selected/item/status/index.mjs +0 -2
  201. package/esm2020/lib/components/shared/filter/selected/item/status/status.component.mjs +0 -39
  202. package/esm2020/lib/components/shared/filter/selected/selected.component.mjs +0 -80
  203. package/esm2020/lib/components/shared/filter/selected/selected.module.mjs +0 -90
  204. package/esm2020/lib/components/shared/index.mjs +0 -5
  205. package/esm2020/lib/components/shared/password-strength/index.mjs +0 -3
  206. package/esm2020/lib/components/shared/password-strength/password-strength.component.mjs +0 -85
  207. package/esm2020/lib/components/shared/password-strength/password-strength.mjs +0 -2
  208. package/esm2020/lib/components/shared/password-strength/password-strength.module.mjs +0 -50
  209. package/esm2020/lib/components/shared/products/filter/filter.component.mjs +0 -36
  210. package/esm2020/lib/components/shared/products/index.mjs +0 -3
  211. package/esm2020/lib/components/shared/products/products.component.mjs +0 -91
  212. package/esm2020/lib/components/shared/products/products.module.mjs +0 -22
  213. package/esm2020/lib/components/shared/products/providers/index.mjs +0 -2
  214. package/esm2020/lib/components/shared/products/providers/products.model.mjs +0 -38
  215. package/esm2020/lib/components/shared/progress-bar/index.mjs +0 -4
  216. package/esm2020/lib/components/shared/progress-bar/progress-bar.component.mjs +0 -28
  217. package/esm2020/lib/components/shared/progress-bar/progress-bar.module.mjs +0 -18
  218. package/esm2020/lib/components/shared/progress-bar/progress-bar.service.mjs +0 -49
  219. package/esm2020/lib/interfaces/field-config.mjs +0 -2
  220. package/esm2020/lib/interfaces/index.mjs +0 -2
  221. package/esm2020/monkey-front-components.mjs +0 -5
  222. package/esm2020/public-api.mjs +0 -5
  223. package/fesm2015/monkey-front-components.mjs +0 -2877
  224. package/fesm2015/monkey-front-components.mjs.map +0 -1
  225. package/fesm2020/monkey-front-components.mjs +0 -2859
  226. package/fesm2020/monkey-front-components.mjs.map +0 -1
  227. package/lib/components/base/base-component.d.ts +0 -50
  228. package/lib/components/base/base-dynamic-array.d.ts +0 -34
  229. package/lib/components/base/base-dynamic.d.ts +0 -24
  230. package/lib/components/base/base-scroll-component.d.ts +0 -16
  231. package/lib/components/base/base-validators.d.ts +0 -1
  232. package/lib/components/dynamic/button/button.component.d.ts +0 -17
  233. package/lib/components/dynamic/dynamic-directive.d.ts +0 -22
  234. package/lib/components/dynamic/dynamic.module.d.ts +0 -20
  235. package/lib/components/dynamic/file-upload/file-upload.component.d.ts +0 -17
  236. package/lib/components/dynamic/form/dynamic-form-array.component.d.ts +0 -16
  237. package/lib/components/dynamic/form/dynamic-form.component.d.ts +0 -14
  238. package/lib/components/dynamic/input/input.component.d.ts +0 -20
  239. package/lib/components/dynamic/input-phone/input-phone.component.d.ts +0 -20
  240. package/lib/components/dynamic/radio/radio.component.d.ts +0 -11
  241. package/lib/components/dynamic/select/select.component.d.ts +0 -16
  242. package/lib/components/dynamic/select-search/select-search.component.d.ts +0 -16
  243. package/lib/components/shared/filter/filter.component.d.ts +0 -32
  244. package/lib/components/shared/filter/filter.module.d.ts +0 -14
  245. package/lib/components/shared/filter/menu/menu.component.d.ts +0 -24
  246. package/lib/components/shared/filter/menu/menu.module.d.ts +0 -14
  247. package/lib/components/shared/filter/options/children/children.component.d.ts +0 -17
  248. package/lib/components/shared/filter/options/currency/currency.component.d.ts +0 -17
  249. package/lib/components/shared/filter/options/date-range/date-range.component.d.ts +0 -24
  250. package/lib/components/shared/filter/options/input/input.component.d.ts +0 -17
  251. package/lib/components/shared/filter/options/options.component.d.ts +0 -20
  252. package/lib/components/shared/filter/options/options.module.d.ts +0 -18
  253. package/lib/components/shared/filter/options/status/status.component.d.ts +0 -19
  254. package/lib/components/shared/filter/selected/item/children/children.component.d.ts +0 -16
  255. package/lib/components/shared/filter/selected/item/currency/currency.component.d.ts +0 -11
  256. package/lib/components/shared/filter/selected/item/date-range/date-range.component.d.ts +0 -12
  257. package/lib/components/shared/filter/selected/item/date-with-action/date-with-action.component.d.ts +0 -11
  258. package/lib/components/shared/filter/selected/item/input/input.component.d.ts +0 -11
  259. package/lib/components/shared/filter/selected/item/item.component.d.ts +0 -20
  260. package/lib/components/shared/filter/selected/item/status/status.component.d.ts +0 -13
  261. package/lib/components/shared/filter/selected/selected.component.d.ts +0 -18
  262. package/lib/components/shared/filter/selected/selected.module.d.ts +0 -21
  263. package/lib/components/shared/password-strength/password-strength.component.d.ts +0 -23
  264. package/lib/components/shared/password-strength/password-strength.d.ts +0 -5
  265. package/lib/components/shared/password-strength/password-strength.module.d.ts +0 -12
  266. package/lib/components/shared/products/filter/filter.component.d.ts +0 -12
  267. package/lib/components/shared/products/products.component.d.ts +0 -20
  268. package/lib/components/shared/products/products.module.d.ts +0 -11
  269. package/lib/components/shared/products/providers/products.model.d.ts +0 -13
  270. package/lib/components/shared/progress-bar/progress-bar.component.d.ts +0 -12
  271. package/lib/components/shared/progress-bar/progress-bar.module.d.ts +0 -8
  272. package/lib/components/shared/progress-bar/progress-bar.service.d.ts +0 -14
  273. package/lib/interfaces/field-config.d.ts +0 -54
  274. package/monkey-front-components-0.0.383.tgz +0 -0
  275. package/monkey-front-components.d.ts +0 -5
  276. package/public-api.d.ts +0 -1
@@ -0,0 +1,72 @@
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
+ }
@@ -0,0 +1,71 @@
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 +1 @@
1
- export * from './status.component';
1
+ export * from './status.component';
@@ -0,0 +1 @@
1
+ {{ _selectedValue | translate }}{{ _labelMoreValues }}
@@ -0,0 +1,4 @@
1
+ @import 'node_modules/monkey-style-guide/assets/scss/partials/variables';
2
+
3
+ :host {
4
+ }
@@ -0,0 +1,36 @@
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-status',
6
+ templateUrl: './status.component.html',
7
+ styleUrls: ['./status.component.scss']
8
+ })
9
+ export class MECXFilterSelectedItemStatusComponent implements OnChanges {
10
+ @Input() option: MonkeyEcxFilterMenu = null;
11
+
12
+ @Input() labelMoreValues: string;
13
+
14
+ _selectedValue = '';
15
+
16
+ _labelMoreValues = '';
17
+
18
+ private onHandleSelectedValue({ value, i18n }: any) {
19
+ const { labelMoreValues } = this;
20
+ const selected = `${value}`.split(',');
21
+
22
+ this._selectedValue = `${i18n}${selected[0]}`.trim();
23
+ if (selected.length >= 2) {
24
+ this._labelMoreValues = `, ${labelMoreValues} ${selected.length - 1}`;
25
+ } else this._labelMoreValues = '';
26
+ }
27
+
28
+ ngOnChanges(changes: SimpleChanges) {
29
+ if (changes.option) {
30
+ const { currentValue } = changes.option;
31
+ if (currentValue && JSON.stringify(currentValue) !== '{}') {
32
+ this.onHandleSelectedValue(currentValue);
33
+ }
34
+ }
35
+ }
36
+ }
@@ -0,0 +1,3 @@
1
+ <mecx-filter-selected-item *ngFor="let option of _model" (onSubmit)="onHandleSubmit($event)"
2
+ (onClose)="onHandleClose()" [option]="option">
3
+ </mecx-filter-selected-item>
@@ -0,0 +1,9 @@
1
+ @import 'node_modules/monkey-style-guide/assets/scss/partials/variables';
2
+
3
+ :host {
4
+ display: flex;
5
+
6
+ ::ng-deep mecx-filter-selected-item {
7
+ margin-right: 8px;
8
+ }
9
+ }
@@ -0,0 +1,76 @@
1
+ import { Component, EventEmitter, Input, OnChanges, Output, SimpleChanges } from '@angular/core';
2
+ import { MonkeyEcxFilterMenu, MonkeyEcxUtils } from 'monkey-front-core';
3
+
4
+ @Component({
5
+ selector: 'mecx-filter-selected',
6
+ templateUrl: './selected.component.html',
7
+ styleUrls: ['./selected.component.scss']
8
+ })
9
+ export class MECXFilterSelectedComponent implements OnChanges {
10
+ @Input() model: MonkeyEcxFilterMenu[] = [];
11
+
12
+ @Output() onOpenFilters = new EventEmitter<any>();
13
+
14
+ @Output() onClose = new EventEmitter<any>();
15
+
16
+ @Output() onSubmit = new EventEmitter<any>();
17
+
18
+ _model: MonkeyEcxFilterMenu[] = [];
19
+
20
+ constructor() {
21
+ // not to do
22
+ }
23
+
24
+ private validateValue({ field, value, getValue }: any) {
25
+ try {
26
+ value = value || getValue()?.[field];
27
+ if (!value) return false;
28
+ if (typeof value === 'object') {
29
+ return value && JSON.stringify(value) !== '{}';
30
+ }
31
+ return MonkeyEcxUtils.persistNullEmptyUndefined(value);
32
+ } catch (e) {
33
+ // not to do
34
+ }
35
+ return false;
36
+ }
37
+
38
+ private onHandleSelectedValue(value: any[]) {
39
+ this._model = value?.map((_: any) => {
40
+ const { children } = _;
41
+ let obj = null;
42
+ if (children) {
43
+ obj = {
44
+ ..._,
45
+ children
46
+ };
47
+ } else if (this.validateValue(_)) {
48
+ obj = {
49
+ ..._,
50
+ ...obj || {}
51
+ };
52
+ }
53
+
54
+ return obj;
55
+ })?.filter((_) => {
56
+ return _;
57
+ });
58
+ }
59
+
60
+ ngOnChanges(changes: SimpleChanges) {
61
+ if (changes.model) {
62
+ const { currentValue } = changes.model;
63
+ if (currentValue && JSON.stringify(currentValue) !== '{}') {
64
+ this.onHandleSelectedValue(currentValue);
65
+ }
66
+ }
67
+ }
68
+
69
+ onHandleClose() {
70
+ this.onClose.next();
71
+ }
72
+
73
+ onHandleSubmit(event: any) {
74
+ this.onSubmit.next(event);
75
+ }
76
+ }
@@ -0,0 +1,60 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
3
+ import { CommonModule } from '@angular/common';
4
+ import { RouterModule } from '@angular/router';
5
+ import { TranslateModule } from '@ngx-translate/core';
6
+ import { MonkeyEcxDirectivesModule, MonkeyEcxPipesModule } 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 { MECXFilterOptionsModule } from '../options';
18
+ import {
19
+ MECXFilterSelectedItemChildrenComponent,
20
+ MECXFilterSelectedItemComponent,
21
+ MECXFilterSelectedItemCurrencyComponent,
22
+ MECXFilterSelectedItemDateRangeComponent,
23
+ MECXFilterSelectedItemDateWithActionComponent,
24
+ MECXFilterSelectedItemInputComponent,
25
+ MECXFilterSelectedItemStatusComponent
26
+ } from './item';
27
+ import { MECXFilterSelectedComponent } from './selected.component';
28
+
29
+ @NgModule({
30
+ declarations: [
31
+ MECXFilterSelectedComponent,
32
+ MECXFilterSelectedItemChildrenComponent,
33
+ MECXFilterSelectedItemComponent,
34
+ MECXFilterSelectedItemCurrencyComponent,
35
+ MECXFilterSelectedItemDateRangeComponent,
36
+ MECXFilterSelectedItemDateWithActionComponent,
37
+ MECXFilterSelectedItemInputComponent,
38
+ MECXFilterSelectedItemStatusComponent
39
+ ],
40
+ imports: [
41
+ CommonModule,
42
+ FormsModule,
43
+ MECXFilterOptionsModule,
44
+ MonkeyBadgeModule,
45
+ MonkeyButtonModule,
46
+ MonkeyCheckboxModule,
47
+ MonkeyDateRangePickerModule,
48
+ MonkeyEcxDirectivesModule,
49
+ MonkeyEcxPipesModule,
50
+ MonkeyIconModule,
51
+ MonkeyInputModule,
52
+ MonkeyOptionModule,
53
+ MonkeySelectModule,
54
+ ReactiveFormsModule,
55
+ RouterModule,
56
+ TranslateModule.forChild()
57
+ ],
58
+ exports: [MECXFilterSelectedComponent]
59
+ })
60
+ export class MECXFilterSelectedModule {}
@@ -1,4 +1,4 @@
1
- export * from './filter';
2
- export * from './password-strength';
3
- export * from './progress-bar';
4
- export * from './products';
1
+ export * from './filter';
2
+ export * from './password-strength';
3
+ export * from './progress-bar';
4
+ export * from './products';
@@ -1,2 +1,2 @@
1
- export * from './password-strength.component';
2
- export * from './password-strength.module';
1
+ export * from './password-strength.component';
2
+ export * from './password-strength.module';
@@ -0,0 +1,50 @@
1
+ <ng-container *ngIf="_validatorsPasswordPass?.length">
2
+ <div id="strength" class="d-flex full-width flex-column justify-content-center align-items-center"
3
+ #strength>
4
+ <div id="strengthBar" class="strength-bar d-flex full-width flex-row">
5
+ <div class="d-flex full-width align-items-center">
6
+ <div class="bar-label">
7
+ <small>{{ i18n?.TITLE }}</small>
8
+ </div>
9
+ </div>
10
+ <div class="d-flex full-width align-items-center flex-column">
11
+ <div class="point" [class.error]="_stepPassword === 0"
12
+ [class.warning]="_stepPassword === 1"
13
+ [class.success]="_stepPassword === 2">
14
+ </div>
15
+ <ng-container *ngIf="_stepPassword === 0">
16
+ <ng-container *ngTemplateOutlet="stepPasswordLabel"></ng-container>
17
+ </ng-container>
18
+ </div>
19
+ <div class="d-flex full-width align-items-center flex-column">
20
+ <div class="point" [class.warning]="_stepPassword === 1"
21
+ [class.success]="_stepPassword === 2"></div>
22
+ <ng-container *ngIf="_stepPassword === 1">
23
+ <ng-container *ngTemplateOutlet="stepPasswordLabel"></ng-container>
24
+ </ng-container>
25
+ </div>
26
+ <div class="d-flex full-width align-items-center flex-column">
27
+ <div class="point" [class.success]="_stepPassword === 2"></div>
28
+ <ng-container *ngIf="_stepPassword === 2">
29
+ <ng-container *ngTemplateOutlet="stepPasswordLabel"></ng-container>
30
+ </ng-container>
31
+ </div>
32
+ </div>
33
+ </div>
34
+ <div class="callbacks mt-2 row">
35
+ <div class="col-sm-6 mt-2 d-flex justify-content-start"
36
+ *ngFor="let validators of _validatorsPasswordPass">
37
+ <monkey-icon *ngIf="validators.validate" icon="check-circle-20"></monkey-icon>
38
+ <monkey-icon *ngIf="!validators.validate" icon="error-20"></monkey-icon>
39
+ <span class="ml-2">
40
+ {{ i18n?.TYPES?.[validators.regex] }}
41
+ </span>
42
+ </div>
43
+ </div>
44
+ </ng-container>
45
+ <ng-template #stepPasswordLabel>
46
+ <div class="name-point mt-1" [class.error]="_stepPassword === 0"
47
+ [class.warning]="_stepPassword === 1" [class.success]="_stepPassword === 2">
48
+ {{ i18n?.LABELS?.[_stepPassword] }}
49
+ </div>
50
+ </ng-template>
@@ -0,0 +1,70 @@
1
+ @import 'node_modules/monkey-style-guide/assets/scss/partials/variables';
2
+
3
+ mecx-password-strength {
4
+ margin-bottom: 8px;
5
+
6
+ .strength-bar {
7
+ display: inline;
8
+ list-style: none;
9
+ padding: 0;
10
+ vertical-align: 2px;
11
+ gap: 0.5rem;
12
+ }
13
+
14
+ .strength-bar .bar-label {
15
+ font-style: normal;
16
+ font-weight: normal;
17
+ font-size: 14px;
18
+ line-height: 16px;
19
+ color: #4b4a53;
20
+ text-align: left;
21
+ }
22
+
23
+ .strength-bar .point:last-child {
24
+ margin: 0;
25
+ }
26
+
27
+ .callbacks {
28
+ font-style: normal;
29
+ font-weight: normal;
30
+ font-size: 14px;
31
+ line-height: 16px;
32
+ color: #72717e;
33
+ text-align: left;
34
+ }
35
+
36
+ .point {
37
+ background: #ebebeb;
38
+ border-radius: 8px;
39
+ display: inline-block;
40
+ height: 8px;
41
+ margin-right: 4px;
42
+ width: 100%;
43
+
44
+ &.success {
45
+ background: map-get($mecx-success, main);
46
+ }
47
+
48
+ &.warning {
49
+ background: map-get($mecx-warning, main);
50
+ }
51
+
52
+ &.error {
53
+ background: map-get($mecx-error, main);
54
+ }
55
+ }
56
+
57
+ .name-point {
58
+ &.success {
59
+ color: map-get($mecx-success, main);
60
+ }
61
+
62
+ &.warning {
63
+ color: map-get($mecx-warning, main);
64
+ }
65
+
66
+ &.error {
67
+ color: map-get($mecx-error, main);
68
+ }
69
+ }
70
+ }
@@ -0,0 +1,89 @@
1
+ import { Component, Input, OnChanges, ViewEncapsulation, Output, EventEmitter } from '@angular/core';
2
+ import { MonkeyEcxConfig, MonkeyEcxConfigService, MonkeyEcxUtils } from 'monkey-front-core';
3
+ import { PasswordStrength } from './password-strength';
4
+
5
+ @Component({
6
+ selector: 'mecx-password-strength',
7
+ templateUrl: './password-strength.component.html',
8
+ styleUrls: ['./password-strength.component.scss'],
9
+ encapsulation: ViewEncapsulation.None
10
+ })
11
+ export class MECXPasswordStrengthComponent implements OnChanges {
12
+ @Input() passwordToCheck: string | null = null;
13
+
14
+ @Input() i18n: any = null;
15
+
16
+ @Output() onHandleSubmitReady = new EventEmitter<any>();
17
+
18
+ _validatorsPasswordPass: Array<PasswordStrength> = [];
19
+
20
+ _stepPassword = 0;
21
+
22
+ private validatorsPassword = new Map();
23
+
24
+ constructor(private configService: MonkeyEcxConfigService) {
25
+ // not do
26
+ }
27
+
28
+ private handleColor(score: number) {
29
+ let idx = 0;
30
+ if (score > 50) idx = 1;
31
+ if (score === 100) idx = 2;
32
+ this._stepPassword = idx;
33
+ }
34
+
35
+ private passwordStrengthValidator(pass : string) {
36
+ this._validatorsPasswordPass = [];
37
+ let score = 0;
38
+
39
+ this.validatorsPassword.forEach((key, value) => {
40
+ this._validatorsPasswordPass.push({
41
+ regex: `${value}`,
42
+ validate: `${key.VALIDATE}` === String(RegExp(`${key.REGEX}`).test(pass)),
43
+ percent: 100 / this.validatorsPassword.size
44
+ });
45
+ });
46
+
47
+ this._validatorsPasswordPass.forEach((check) => {
48
+ if (check.validate) {
49
+ score += check.percent;
50
+ }
51
+ });
52
+
53
+ return Math.trunc(score);
54
+ }
55
+
56
+ private onHandleReady() {
57
+ const validate = this._validatorsPasswordPass?.find(({ validate }) => { return !validate; });
58
+ this.onHandleSubmitReady.next(!validate);
59
+ }
60
+
61
+ private onHandleChages() {
62
+ const password = this.passwordToCheck;
63
+ this.handleColor(this.passwordStrengthValidator(password as string));
64
+ this.onHandleReady();
65
+ }
66
+
67
+ private onHandlePasswordStrengthKeys(params: MonkeyEcxConfig) {
68
+ const ps = params?.program?.screens?.login?.passwordStrength;
69
+ if (ps) {
70
+ Object.entries(ps)
71
+ .forEach(([key, value]) => {
72
+ if (MonkeyEcxUtils.persistNullEmptyUndefined(value)) {
73
+ this.validatorsPassword.set(key, value);
74
+ }
75
+ });
76
+ this.onHandleChages();
77
+ }
78
+ }
79
+
80
+ ngOnInit() {
81
+ this.configService.config().subscribe((_: MonkeyEcxConfig) => {
82
+ this.onHandlePasswordStrengthKeys(_);
83
+ });
84
+ }
85
+
86
+ ngOnChanges(): void {
87
+ this.onHandleChages();
88
+ }
89
+ }
@@ -0,0 +1,24 @@
1
+ import { CommonModule } from '@angular/common';
2
+ import { NgModule } from '@angular/core';
3
+ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
4
+ import { TranslateModule } from '@ngx-translate/core';
5
+ import { MonkeyEcxDirectivesModule, MonkeyEcxPipesModule } from 'monkey-front-core';
6
+ import { MonkeyButtonModule, MonkeyInputModule, MonkeyIconModule } from 'monkey-style-guide';
7
+ import { MECXPasswordStrengthComponent } from './password-strength.component';
8
+
9
+ @NgModule({
10
+ declarations: [MECXPasswordStrengthComponent],
11
+ imports: [
12
+ CommonModule,
13
+ FormsModule,
14
+ ReactiveFormsModule,
15
+ MonkeyEcxPipesModule,
16
+ MonkeyEcxDirectivesModule,
17
+ MonkeyButtonModule,
18
+ MonkeyInputModule,
19
+ MonkeyIconModule,
20
+ TranslateModule.forChild()
21
+ ],
22
+ exports: [MECXPasswordStrengthComponent]
23
+ })
24
+ export class MECXPasswordStrengthModule {}
@@ -0,0 +1,5 @@
1
+ export interface PasswordStrength {
2
+ regex: string;
3
+ validate: boolean
4
+ percent: number
5
+ }
@@ -0,0 +1,6 @@
1
+ <monkey-input-filter [placeholder]="'SIDEBAR-ACTIONS.PROFILE.FILTER.SEARCH-INPUT' | translate"
2
+ (onChange)="onSearchFilter($event)" icon="search-16" [(value)]="_search">
3
+ </monkey-input-filter>
4
+ <monkey-button type="filter" color="border" (click)="onClearFilter()">
5
+ Limpar
6
+ </monkey-button>
@@ -0,0 +1,20 @@
1
+ @import 'node_modules/monkey-style-guide/assets/scss/partials/breakpoints';
2
+
3
+ :host {
4
+ display: flex;
5
+ align-items: center;
6
+ justify-content: space-between;
7
+ margin-bottom: 12px;
8
+
9
+ ::ng-deep mecx-form-field-filter mecx-form-field-body {
10
+ height: 44px;
11
+ }
12
+
13
+ ::ng-deep monkey-input-filter {
14
+ width: 100%;
15
+
16
+ @include media-breakpoint('gt-sm') {
17
+ margin-right: 8px;
18
+ }
19
+ }
20
+ }
@@ -0,0 +1,34 @@
1
+ import { Component, EventEmitter, Input, Output } from '@angular/core';
2
+
3
+ @Component({
4
+ selector: 'mecx-products-filter',
5
+ templateUrl: './filter.component.html',
6
+ styleUrls: ['./filter.component.scss']
7
+ })
8
+ export class MECXProductsFilterComponent {
9
+ @Input() isLoading = false;
10
+
11
+ @Output() onChangeFilter = new EventEmitter<any>();
12
+
13
+ _search = '';
14
+
15
+ constructor() {
16
+ // not to do
17
+ }
18
+
19
+ onSearchFilter(event: string) {
20
+ this._search = event;
21
+ if (!event) {
22
+ this.onChangeFilter.next('');
23
+ return;
24
+ }
25
+ event = `${event}`.toLowerCase();
26
+
27
+ this.onChangeFilter.next(event);
28
+ }
29
+
30
+ onClearFilter() {
31
+ this._search = '';
32
+ this.onChangeFilter.next(this._search);
33
+ }
34
+ }
@@ -1,2 +1,2 @@
1
- export * from './products.component';
2
- export * from './products.module';
1
+ export * from './products.component';
2
+ export * from './products.module';