monkey-style-guide 2.0.168 → 2.0.170

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 (539) hide show
  1. package/README.md +1266 -1266
  2. package/assets/data/country-codes.json +1466 -1466
  3. package/assets/icons/add-plus.svg +5 -5
  4. package/assets/icons/arrow-down.svg +3 -3
  5. package/assets/icons/arrow-left.svg +3 -3
  6. package/assets/icons/arrow-line-right.svg +5 -5
  7. package/assets/icons/arrow-right.svg +3 -3
  8. package/assets/icons/arrow-up.svg +3 -3
  9. package/assets/icons/arrows.svg +6 -6
  10. package/assets/icons/auction.svg +7 -7
  11. package/assets/icons/bank-account.svg +12 -12
  12. package/assets/icons/bank.svg +3 -3
  13. package/assets/icons/banknote-search.svg +8 -8
  14. package/assets/icons/bell.svg +4 -4
  15. package/assets/icons/block.svg +4 -4
  16. package/assets/icons/book-open-text.svg +10 -10
  17. package/assets/icons/book.svg +4 -4
  18. package/assets/icons/box.svg +6 -6
  19. package/assets/icons/build-person.svg +9 -9
  20. package/assets/icons/calendar.svg +6 -6
  21. package/assets/icons/camera.svg +4 -4
  22. package/assets/icons/card-machine.svg +14 -14
  23. package/assets/icons/card.svg +4 -4
  24. package/assets/icons/cash-banknote-invoice.svg +8 -8
  25. package/assets/icons/chat.svg +4 -4
  26. package/assets/icons/check-circle-out.svg +4 -4
  27. package/assets/icons/check-circle.svg +4 -4
  28. package/assets/icons/check-grey.svg +3 -3
  29. package/assets/icons/check-white.svg +4 -4
  30. package/assets/icons/check.svg +3 -3
  31. package/assets/icons/clipboard.svg +4 -4
  32. package/assets/icons/clock-closed.svg +6 -6
  33. package/assets/icons/clock.svg +4 -4
  34. package/assets/icons/close-circle.svg +5 -5
  35. package/assets/icons/close.svg +4 -4
  36. package/assets/icons/cnpj.svg +9 -9
  37. package/assets/icons/codepen.svg +7 -7
  38. package/assets/icons/company-name.svg +12 -12
  39. package/assets/icons/contract-pen.svg +7 -7
  40. package/assets/icons/contract.svg +14 -14
  41. package/assets/icons/delete.svg +5 -5
  42. package/assets/icons/document.svg +7 -7
  43. package/assets/icons/dollar-sign-circle.svg +7 -7
  44. package/assets/icons/dollar-sign.svg +5 -5
  45. package/assets/icons/domain.svg +9 -9
  46. package/assets/icons/dots-menu.svg +5 -5
  47. package/assets/icons/double-arrow-left.svg +4 -4
  48. package/assets/icons/double-arrow-right.svg +4 -4
  49. package/assets/icons/download.svg +5 -5
  50. package/assets/icons/drag-drop.svg +8 -0
  51. package/assets/icons/edit-square.svg +4 -4
  52. package/assets/icons/edit.svg +3 -3
  53. package/assets/icons/email.svg +4 -4
  54. package/assets/icons/empty-doc.svg +4 -4
  55. package/assets/icons/error.svg +5 -5
  56. package/assets/icons/eye-closed.svg +11 -11
  57. package/assets/icons/eye-open.svg +4 -4
  58. package/assets/icons/filter-add.svg +6 -6
  59. package/assets/icons/filter.svg +3 -3
  60. package/assets/icons/grid.svg +6 -6
  61. package/assets/icons/help.svg +5 -5
  62. package/assets/icons/hexagon.svg +3 -3
  63. package/assets/icons/home.svg +4 -4
  64. package/assets/icons/image.svg +5 -5
  65. package/assets/icons/info.svg +6 -6
  66. package/assets/icons/invoice.svg +5 -5
  67. package/assets/icons/invoices-anticipated.svg +8 -8
  68. package/assets/icons/invoices-approval.svg +8 -8
  69. package/assets/icons/invoices-refused.svg +8 -8
  70. package/assets/icons/list.svg +8 -8
  71. package/assets/icons/location-pin.svg +4 -4
  72. package/assets/icons/login.svg +5 -5
  73. package/assets/icons/logout.svg +5 -5
  74. package/assets/icons/medal.svg +12 -12
  75. package/assets/icons/menu.svg +5 -5
  76. package/assets/icons/money-cedule.svg +6 -6
  77. package/assets/icons/money-hand.svg +6 -6
  78. package/assets/icons/money-sign.svg +4 -4
  79. package/assets/icons/money.svg +6 -6
  80. package/assets/icons/more-circle.svg +5 -5
  81. package/assets/icons/more.svg +4 -4
  82. package/assets/icons/new-company.svg +10 -10
  83. package/assets/icons/offered.svg +5 -5
  84. package/assets/icons/open-external.svg +5 -5
  85. package/assets/icons/password.svg +4 -4
  86. package/assets/icons/people.svg +6 -6
  87. package/assets/icons/percent.svg +5 -5
  88. package/assets/icons/person-document.svg +10 -10
  89. package/assets/icons/person-sad.svg +6 -6
  90. package/assets/icons/phone.svg +3 -3
  91. package/assets/icons/pork.svg +5 -5
  92. package/assets/icons/radio.svg +4 -4
  93. package/assets/icons/refresh.svg +5 -5
  94. package/assets/icons/repeat.svg +4 -4
  95. package/assets/icons/search.svg +4 -4
  96. package/assets/icons/second-warning.svg +5 -5
  97. package/assets/icons/settings.svg +4 -4
  98. package/assets/icons/shield-chekmark.svg +3 -3
  99. package/assets/icons/star.svg +3 -3
  100. package/assets/icons/store.svg +8 -8
  101. package/assets/icons/today.svg +9 -9
  102. package/assets/icons/trash.svg +6 -6
  103. package/assets/icons/trophy.svg +8 -8
  104. package/assets/icons/unfold-more.svg +4 -4
  105. package/assets/icons/upload.svg +5 -5
  106. package/assets/icons/user.svg +4 -4
  107. package/assets/icons/waiting.svg +17 -17
  108. package/assets/icons/wallet.svg +5 -5
  109. package/assets/icons/warning.svg +5 -5
  110. package/assets/scss/partials/_forms.scss +350 -350
  111. package/assets/scss/partials/_index.scss +11 -11
  112. package/assets/scss/partials/_radio-button.scss +35 -35
  113. package/assets/scss/partials/_style-reset.scss +185 -185
  114. package/assets/scss/partials/_typography.scss +149 -149
  115. package/assets/scss/partials/_variables.scss +184 -184
  116. package/assets/scss/partials/components/_buttons.scss +831 -831
  117. package/assets/scss/partials/components/_checkbox.scss +69 -69
  118. package/assets/scss/partials/components/_date-range-picker.scss +265 -265
  119. package/assets/scss/partials/components/_expansion.scss +96 -96
  120. package/assets/scss/partials/components/_image-crop.scss +305 -305
  121. package/assets/scss/partials/components/_index.scss +23 -23
  122. package/assets/scss/partials/components/_input-phone.scss +36 -36
  123. package/assets/scss/partials/components/_input.scss +65 -65
  124. package/assets/scss/partials/components/_progressbar.scss +112 -112
  125. package/assets/scss/partials/components/_radiobutton.scss +66 -66
  126. package/assets/scss/partials/components/_select.scss +356 -356
  127. package/assets/scss/partials/components/_snackbar.scss +204 -204
  128. package/assets/scss/partials/components/_stepper.scss +86 -86
  129. package/assets/scss/partials/components/_table.scss +148 -148
  130. package/assets/scss/partials/components/_wizard.scss +112 -112
  131. package/esm2020/lib/components/badge/badge.component.mjs +43 -43
  132. package/esm2020/lib/components/badge/badge.module.mjs +18 -18
  133. package/esm2020/lib/components/badge/index.mjs +2 -2
  134. package/esm2020/lib/components/button/button-avatar.component.mjs +53 -53
  135. package/esm2020/lib/components/button/button-dropdown.component.mjs +121 -121
  136. package/esm2020/lib/components/button/button.component.mjs +154 -154
  137. package/esm2020/lib/components/button/button.module.mjs +23 -23
  138. package/esm2020/lib/components/button/index.mjs +5 -5
  139. package/esm2020/lib/components/checkbox/checkbox.component.mjs +165 -165
  140. package/esm2020/lib/components/checkbox/checkbox.module.mjs +20 -20
  141. package/esm2020/lib/components/checkbox/index.mjs +3 -3
  142. package/esm2020/lib/components/date-range-picker/date-range-picker.component.mjs +660 -660
  143. package/esm2020/lib/components/date-range-picker/date-range-picker.module.mjs +22 -22
  144. package/esm2020/lib/components/date-range-picker/index.mjs +3 -3
  145. package/esm2020/lib/components/expansion/expansion.component.mjs +115 -115
  146. package/esm2020/lib/components/expansion/expansion.module.mjs +19 -19
  147. package/esm2020/lib/components/expansion/index.mjs +2 -2
  148. package/esm2020/lib/components/file-upload/file-upload.component.mjs +294 -294
  149. package/esm2020/lib/components/file-upload/file-upload.module.mjs +37 -37
  150. package/esm2020/lib/components/file-upload/index.mjs +3 -3
  151. package/esm2020/lib/components/icon/icon-add-plus.component.mjs +15 -15
  152. package/esm2020/lib/components/icon/icon-arrow-down.component.mjs +15 -15
  153. package/esm2020/lib/components/icon/icon-arrow-left.component.mjs +15 -15
  154. package/esm2020/lib/components/icon/icon-arrow-line-right.component.mjs +15 -15
  155. package/esm2020/lib/components/icon/icon-arrow-right.component.mjs +15 -15
  156. package/esm2020/lib/components/icon/icon-arrow-up.component.mjs +15 -15
  157. package/esm2020/lib/components/icon/icon-arrows.component.mjs +15 -15
  158. package/esm2020/lib/components/icon/icon-auction.component.mjs +15 -15
  159. package/esm2020/lib/components/icon/icon-average-tax.mjs +15 -15
  160. package/esm2020/lib/components/icon/icon-bank-account.component.mjs +15 -15
  161. package/esm2020/lib/components/icon/icon-bank-agency.mjs +15 -15
  162. package/esm2020/lib/components/icon/icon-bank.component.mjs +15 -15
  163. package/esm2020/lib/components/icon/icon-banknote-search.component.mjs +15 -15
  164. package/esm2020/lib/components/icon/icon-bell.component.mjs +15 -15
  165. package/esm2020/lib/components/icon/icon-block.component.mjs +15 -15
  166. package/esm2020/lib/components/icon/icon-book-open-text.component.mjs +15 -15
  167. package/esm2020/lib/components/icon/icon-book.component.mjs +15 -15
  168. package/esm2020/lib/components/icon/icon-box.component.mjs +15 -15
  169. package/esm2020/lib/components/icon/icon-build-person.component.mjs +15 -15
  170. package/esm2020/lib/components/icon/icon-calendar.component.mjs +15 -15
  171. package/esm2020/lib/components/icon/icon-camera.component.mjs +15 -15
  172. package/esm2020/lib/components/icon/icon-card-machine.component.mjs +15 -15
  173. package/esm2020/lib/components/icon/icon-card.component.mjs +15 -15
  174. package/esm2020/lib/components/icon/icon-cash-banknote-invoice.mjs +15 -15
  175. package/esm2020/lib/components/icon/icon-chat.component.mjs +15 -15
  176. package/esm2020/lib/components/icon/icon-check-circle-out.component.mjs +15 -15
  177. package/esm2020/lib/components/icon/icon-check-circle.component.mjs +15 -15
  178. package/esm2020/lib/components/icon/icon-check-grey.component.mjs +15 -15
  179. package/esm2020/lib/components/icon/icon-check-white.component.mjs +15 -15
  180. package/esm2020/lib/components/icon/icon-check.component.mjs +15 -15
  181. package/esm2020/lib/components/icon/icon-clipboard.component.mjs +15 -15
  182. package/esm2020/lib/components/icon/icon-clock-closed.component.mjs +15 -15
  183. package/esm2020/lib/components/icon/icon-clock.component.mjs +15 -15
  184. package/esm2020/lib/components/icon/icon-close-circle.component.mjs +15 -15
  185. package/esm2020/lib/components/icon/icon-close.component.mjs +15 -15
  186. package/esm2020/lib/components/icon/icon-cnpj.component.mjs +15 -15
  187. package/esm2020/lib/components/icon/icon-codepen.component.mjs +15 -15
  188. package/esm2020/lib/components/icon/icon-company-name.component.mjs +15 -15
  189. package/esm2020/lib/components/icon/icon-contract-pen.component.mjs +15 -15
  190. package/esm2020/lib/components/icon/icon-contract.component.mjs +15 -15
  191. package/esm2020/lib/components/icon/icon-delete.component.mjs +15 -15
  192. package/esm2020/lib/components/icon/icon-document.component.mjs +15 -15
  193. package/esm2020/lib/components/icon/icon-dollar-sign-circle.component.mjs +15 -15
  194. package/esm2020/lib/components/icon/icon-dollar-sign.component.mjs +15 -15
  195. package/esm2020/lib/components/icon/icon-domain.component.mjs +15 -15
  196. package/esm2020/lib/components/icon/icon-dots-menu.component.mjs +15 -15
  197. package/esm2020/lib/components/icon/icon-double-arrow-left.component.mjs +15 -15
  198. package/esm2020/lib/components/icon/icon-double-arrow-right.component.mjs +15 -15
  199. package/esm2020/lib/components/icon/icon-download.component.mjs +15 -15
  200. package/esm2020/lib/components/icon/icon-drag-drop.component.mjs +15 -0
  201. package/esm2020/lib/components/icon/icon-edit-square.component.mjs +15 -15
  202. package/esm2020/lib/components/icon/icon-edit.component.mjs +15 -15
  203. package/esm2020/lib/components/icon/icon-email.component.mjs +15 -15
  204. package/esm2020/lib/components/icon/icon-empty-doc.component.mjs +15 -15
  205. package/esm2020/lib/components/icon/icon-error.component.mjs +15 -15
  206. package/esm2020/lib/components/icon/icon-eye-closed.component.mjs +15 -15
  207. package/esm2020/lib/components/icon/icon-eye-open.component.mjs +15 -15
  208. package/esm2020/lib/components/icon/icon-filter-add.component.mjs +15 -15
  209. package/esm2020/lib/components/icon/icon-filter.component.mjs +15 -15
  210. package/esm2020/lib/components/icon/icon-grid.component.mjs +15 -15
  211. package/esm2020/lib/components/icon/icon-hands-clap.component.mjs +15 -15
  212. package/esm2020/lib/components/icon/icon-help.component.mjs +15 -15
  213. package/esm2020/lib/components/icon/icon-hexagon.component.mjs +15 -15
  214. package/esm2020/lib/components/icon/icon-home.component.mjs +15 -15
  215. package/esm2020/lib/components/icon/icon-image.component.mjs +15 -15
  216. package/esm2020/lib/components/icon/icon-info.component.mjs +15 -15
  217. package/esm2020/lib/components/icon/icon-invoice.component.mjs +15 -15
  218. package/esm2020/lib/components/icon/icon-invoices-anticipated.component.mjs +15 -15
  219. package/esm2020/lib/components/icon/icon-invoices-approval.component.mjs +15 -15
  220. package/esm2020/lib/components/icon/icon-invoices-refused.component.mjs +15 -15
  221. package/esm2020/lib/components/icon/icon-list.component.mjs +15 -15
  222. package/esm2020/lib/components/icon/icon-location-pin.component.mjs +15 -15
  223. package/esm2020/lib/components/icon/icon-login.component.mjs +15 -15
  224. package/esm2020/lib/components/icon/icon-logout.component.mjs +15 -15
  225. package/esm2020/lib/components/icon/icon-medal.component.mjs +15 -15
  226. package/esm2020/lib/components/icon/icon-menu.component.mjs +15 -15
  227. package/esm2020/lib/components/icon/icon-money-cedule.component.mjs +15 -15
  228. package/esm2020/lib/components/icon/icon-money-discount.mjs +15 -15
  229. package/esm2020/lib/components/icon/icon-money-hand.component.mjs +15 -15
  230. package/esm2020/lib/components/icon/icon-money-net.mjs +15 -15
  231. package/esm2020/lib/components/icon/icon-money-new.mjs +15 -15
  232. package/esm2020/lib/components/icon/icon-money-sign.component.mjs +15 -15
  233. package/esm2020/lib/components/icon/icon-money.component.mjs +15 -15
  234. package/esm2020/lib/components/icon/icon-more-circle.component.mjs +15 -15
  235. package/esm2020/lib/components/icon/icon-more.component.mjs +15 -15
  236. package/esm2020/lib/components/icon/icon-new-company.component.mjs +15 -15
  237. package/esm2020/lib/components/icon/icon-offered.component.mjs +15 -15
  238. package/esm2020/lib/components/icon/icon-open-external.component.mjs +15 -15
  239. package/esm2020/lib/components/icon/icon-password.component.mjs +15 -15
  240. package/esm2020/lib/components/icon/icon-people.component.mjs +15 -15
  241. package/esm2020/lib/components/icon/icon-percent.component.mjs +15 -15
  242. package/esm2020/lib/components/icon/icon-person-document.component.mjs +15 -15
  243. package/esm2020/lib/components/icon/icon-person-sad.component.mjs +15 -15
  244. package/esm2020/lib/components/icon/icon-phone-call.component.mjs +15 -15
  245. package/esm2020/lib/components/icon/icon-phone.component.mjs +15 -15
  246. package/esm2020/lib/components/icon/icon-pin-navigation.component.mjs +15 -15
  247. package/esm2020/lib/components/icon/icon-pork.component.mjs +15 -15
  248. package/esm2020/lib/components/icon/icon-radio.component.mjs +15 -15
  249. package/esm2020/lib/components/icon/icon-refresh.component.mjs +15 -15
  250. package/esm2020/lib/components/icon/icon-registration.mjs +15 -15
  251. package/esm2020/lib/components/icon/icon-repeat.component.mjs +15 -15
  252. package/esm2020/lib/components/icon/icon-search.component.mjs +15 -15
  253. package/esm2020/lib/components/icon/icon-second-warning.component.mjs +15 -15
  254. package/esm2020/lib/components/icon/icon-settings.component.mjs +15 -15
  255. package/esm2020/lib/components/icon/icon-shield-chekmark.component.mjs +15 -15
  256. package/esm2020/lib/components/icon/icon-star.component.mjs +15 -15
  257. package/esm2020/lib/components/icon/icon-store.component.mjs +15 -15
  258. package/esm2020/lib/components/icon/icon-today.component.mjs +15 -15
  259. package/esm2020/lib/components/icon/icon-trash.component.mjs +15 -15
  260. package/esm2020/lib/components/icon/icon-trophy.component.mjs +15 -15
  261. package/esm2020/lib/components/icon/icon-unfold-more.component.mjs +15 -15
  262. package/esm2020/lib/components/icon/icon-upload.component.mjs +15 -15
  263. package/esm2020/lib/components/icon/icon-user-group.component.mjs +15 -15
  264. package/esm2020/lib/components/icon/icon-user.component.mjs +15 -15
  265. package/esm2020/lib/components/icon/icon-waiting.component.mjs +15 -15
  266. package/esm2020/lib/components/icon/icon-wallet.component.mjs +15 -15
  267. package/esm2020/lib/components/icon/icon-warning.component.mjs +15 -15
  268. package/esm2020/lib/components/icon/icon.component.mjs +1614 -1601
  269. package/esm2020/lib/components/icon/icon.module.mjs +372 -369
  270. package/esm2020/lib/components/icon/index.mjs +109 -108
  271. package/esm2020/lib/components/image-crop/image-crop.component.mjs +516 -516
  272. package/esm2020/lib/components/image-crop/image-crop.module.mjs +41 -41
  273. package/esm2020/lib/components/image-crop/index.mjs +3 -3
  274. package/esm2020/lib/components/index.mjs +20 -20
  275. package/esm2020/lib/components/input/index.mjs +4 -4
  276. package/esm2020/lib/components/input/input-filter.component.mjs +286 -286
  277. package/esm2020/lib/components/input/input.component.mjs +384 -384
  278. package/esm2020/lib/components/input/input.module.mjs +38 -38
  279. package/esm2020/lib/components/input-phone/index.mjs +3 -3
  280. package/esm2020/lib/components/input-phone/input-phone.component.mjs +307 -307
  281. package/esm2020/lib/components/input-phone/input-phone.module.mjs +45 -45
  282. package/esm2020/lib/components/modal/index.mjs +3 -3
  283. package/esm2020/lib/components/modal/modal.component.mjs +236 -236
  284. package/esm2020/lib/components/modal/modal.module.mjs +21 -21
  285. package/esm2020/lib/components/option/index.mjs +3 -3
  286. package/esm2020/lib/components/option/option.component.mjs +131 -131
  287. package/esm2020/lib/components/option/option.module.mjs +29 -29
  288. package/esm2020/lib/components/radiobutton/index.mjs +3 -3
  289. package/esm2020/lib/components/radiobutton/radiobutton.component.mjs +165 -165
  290. package/esm2020/lib/components/radiobutton/radiobutton.module.mjs +36 -36
  291. package/esm2020/lib/components/select/index.mjs +6 -6
  292. package/esm2020/lib/components/select/select-filter.component.mjs +197 -197
  293. package/esm2020/lib/components/select/select-multiple.component.mjs +304 -304
  294. package/esm2020/lib/components/select/select-search.component.mjs +306 -306
  295. package/esm2020/lib/components/select/select.component.mjs +245 -245
  296. package/esm2020/lib/components/select/select.module.mjs +61 -61
  297. package/esm2020/lib/components/stepper/index.mjs +3 -3
  298. package/esm2020/lib/components/stepper/stepper.component.mjs +57 -57
  299. package/esm2020/lib/components/stepper/stepper.module.mjs +20 -20
  300. package/esm2020/lib/components/tab/index.mjs +2 -2
  301. package/esm2020/lib/components/tab/tab.component.mjs +91 -91
  302. package/esm2020/lib/components/tab/tab.module.mjs +20 -20
  303. package/esm2020/lib/components/table/index.mjs +4 -4
  304. package/esm2020/lib/components/table/table-column.component.mjs +34 -34
  305. package/esm2020/lib/components/table/table.component.mjs +267 -267
  306. package/esm2020/lib/components/table/table.module.mjs +23 -23
  307. package/esm2020/lib/components/toggle/index.mjs +2 -2
  308. package/esm2020/lib/components/toggle/toggle.component.mjs +56 -56
  309. package/esm2020/lib/components/toggle/toggle.module.mjs +18 -18
  310. package/esm2020/lib/components/wizard/index.mjs +3 -3
  311. package/esm2020/lib/components/wizard/wizard.component.mjs +61 -61
  312. package/esm2020/lib/components/wizard/wizard.module.mjs +33 -33
  313. package/esm2020/lib/core/index.mjs +4 -4
  314. package/esm2020/lib/core/interfaces/index.mjs +2 -2
  315. package/esm2020/lib/core/interfaces/monkey-modal-settings.mjs +1 -1
  316. package/esm2020/lib/core/interfaces/monkey-style-settings.mjs +2 -2
  317. package/esm2020/lib/core/services/index.mjs +4 -4
  318. package/esm2020/lib/core/services/modal/index.mjs +2 -2
  319. package/esm2020/lib/core/services/modal/monkey-style-guide-modal-fixed.service.mjs +51 -51
  320. package/esm2020/lib/core/services/modal/monkey-style-guide-modal.service.mjs +54 -54
  321. package/esm2020/lib/core/services/monkey-style-guide.service.mjs +17 -17
  322. package/esm2020/lib/core/services/settings/index.mjs +1 -1
  323. package/esm2020/lib/core/services/settings/monkey-style-guide-settings.service.mjs +41 -41
  324. package/esm2020/lib/core/services/settings/monkey-style-guide-theme-settings.service.mjs +80 -80
  325. package/esm2020/lib/core/services/snackbar/index.mjs +1 -1
  326. package/esm2020/lib/core/services/snackbar/mokey-style-guide-snackbar.service.mjs +226 -226
  327. package/esm2020/lib/core/utils/index.mjs +1 -1
  328. package/esm2020/lib/core/utils/utils.mjs +240 -240
  329. package/esm2020/lib/monkey-style-guide.module.mjs +31 -31
  330. package/esm2020/monkey-style-guide.mjs +4 -4
  331. package/esm2020/public-api.mjs +9 -9
  332. package/fesm2015/monkey-style-guide.mjs +9445 -9418
  333. package/fesm2015/monkey-style-guide.mjs.map +1 -1
  334. package/fesm2020/monkey-style-guide.mjs +9434 -9407
  335. package/fesm2020/monkey-style-guide.mjs.map +1 -1
  336. package/lib/components/badge/badge.component.d.ts +8 -8
  337. package/lib/components/badge/badge.module.d.ts +8 -8
  338. package/lib/components/badge/index.d.ts +2 -2
  339. package/lib/components/button/button-avatar.component.d.ts +19 -19
  340. package/lib/components/button/button-dropdown.component.d.ts +23 -23
  341. package/lib/components/button/button.component.d.ts +22 -22
  342. package/lib/components/button/button.module.d.ts +12 -12
  343. package/lib/components/button/index.d.ts +4 -4
  344. package/lib/components/checkbox/checkbox.component.d.ts +32 -32
  345. package/lib/components/checkbox/checkbox.module.d.ts +9 -9
  346. package/lib/components/checkbox/index.d.ts +2 -2
  347. package/lib/components/date-range-picker/date-range-picker.component.d.ts +69 -69
  348. package/lib/components/date-range-picker/date-range-picker.module.d.ts +11 -11
  349. package/lib/components/date-range-picker/index.d.ts +2 -2
  350. package/lib/components/expansion/expansion.component.d.ts +20 -20
  351. package/lib/components/expansion/expansion.module.d.ts +9 -9
  352. package/lib/components/expansion/index.d.ts +2 -2
  353. package/lib/components/file-upload/file-upload.component.d.ts +51 -51
  354. package/lib/components/file-upload/file-upload.module.d.ts +11 -11
  355. package/lib/components/file-upload/index.d.ts +2 -2
  356. package/lib/components/icon/icon-add-plus.component.d.ts +7 -7
  357. package/lib/components/icon/icon-arrow-down.component.d.ts +7 -7
  358. package/lib/components/icon/icon-arrow-left.component.d.ts +7 -7
  359. package/lib/components/icon/icon-arrow-line-right.component.d.ts +7 -7
  360. package/lib/components/icon/icon-arrow-right.component.d.ts +7 -7
  361. package/lib/components/icon/icon-arrow-up.component.d.ts +7 -7
  362. package/lib/components/icon/icon-arrows.component.d.ts +7 -7
  363. package/lib/components/icon/icon-auction.component.d.ts +7 -7
  364. package/lib/components/icon/icon-average-tax.d.ts +7 -7
  365. package/lib/components/icon/icon-bank-account.component.d.ts +7 -7
  366. package/lib/components/icon/icon-bank-agency.d.ts +7 -7
  367. package/lib/components/icon/icon-bank.component.d.ts +7 -7
  368. package/lib/components/icon/icon-banknote-search.component.d.ts +7 -7
  369. package/lib/components/icon/icon-bell.component.d.ts +7 -7
  370. package/lib/components/icon/icon-block.component.d.ts +7 -7
  371. package/lib/components/icon/icon-book-open-text.component.d.ts +7 -7
  372. package/lib/components/icon/icon-book.component.d.ts +7 -7
  373. package/lib/components/icon/icon-box.component.d.ts +7 -7
  374. package/lib/components/icon/icon-build-person.component.d.ts +7 -7
  375. package/lib/components/icon/icon-calendar.component.d.ts +7 -7
  376. package/lib/components/icon/icon-camera.component.d.ts +7 -7
  377. package/lib/components/icon/icon-card-machine.component.d.ts +7 -7
  378. package/lib/components/icon/icon-card.component.d.ts +7 -7
  379. package/lib/components/icon/icon-cash-banknote-invoice.d.ts +7 -7
  380. package/lib/components/icon/icon-chat.component.d.ts +7 -7
  381. package/lib/components/icon/icon-check-circle-out.component.d.ts +7 -7
  382. package/lib/components/icon/icon-check-circle.component.d.ts +7 -7
  383. package/lib/components/icon/icon-check-grey.component.d.ts +7 -7
  384. package/lib/components/icon/icon-check-white.component.d.ts +7 -7
  385. package/lib/components/icon/icon-check.component.d.ts +7 -7
  386. package/lib/components/icon/icon-clipboard.component.d.ts +7 -7
  387. package/lib/components/icon/icon-clock-closed.component.d.ts +7 -7
  388. package/lib/components/icon/icon-clock.component.d.ts +7 -7
  389. package/lib/components/icon/icon-close-circle.component.d.ts +7 -7
  390. package/lib/components/icon/icon-close.component.d.ts +7 -7
  391. package/lib/components/icon/icon-cnpj.component.d.ts +7 -7
  392. package/lib/components/icon/icon-codepen.component.d.ts +7 -7
  393. package/lib/components/icon/icon-company-name.component.d.ts +7 -7
  394. package/lib/components/icon/icon-contract-pen.component.d.ts +7 -7
  395. package/lib/components/icon/icon-contract.component.d.ts +7 -7
  396. package/lib/components/icon/icon-delete.component.d.ts +7 -7
  397. package/lib/components/icon/icon-document.component.d.ts +7 -7
  398. package/lib/components/icon/icon-dollar-sign-circle.component.d.ts +7 -7
  399. package/lib/components/icon/icon-dollar-sign.component.d.ts +7 -7
  400. package/lib/components/icon/icon-domain.component.d.ts +7 -7
  401. package/lib/components/icon/icon-dots-menu.component.d.ts +7 -7
  402. package/lib/components/icon/icon-double-arrow-left.component.d.ts +7 -7
  403. package/lib/components/icon/icon-double-arrow-right.component.d.ts +7 -7
  404. package/lib/components/icon/icon-download.component.d.ts +7 -7
  405. package/lib/components/icon/icon-drag-drop.component.d.ts +7 -0
  406. package/lib/components/icon/icon-edit-square.component.d.ts +7 -7
  407. package/lib/components/icon/icon-edit.component.d.ts +7 -7
  408. package/lib/components/icon/icon-email.component.d.ts +7 -7
  409. package/lib/components/icon/icon-empty-doc.component.d.ts +7 -7
  410. package/lib/components/icon/icon-error.component.d.ts +7 -7
  411. package/lib/components/icon/icon-eye-closed.component.d.ts +7 -7
  412. package/lib/components/icon/icon-eye-open.component.d.ts +7 -7
  413. package/lib/components/icon/icon-filter-add.component.d.ts +7 -7
  414. package/lib/components/icon/icon-filter.component.d.ts +7 -7
  415. package/lib/components/icon/icon-grid.component.d.ts +7 -7
  416. package/lib/components/icon/icon-hands-clap.component.d.ts +7 -7
  417. package/lib/components/icon/icon-help.component.d.ts +7 -7
  418. package/lib/components/icon/icon-hexagon.component.d.ts +7 -7
  419. package/lib/components/icon/icon-home.component.d.ts +7 -7
  420. package/lib/components/icon/icon-image.component.d.ts +7 -7
  421. package/lib/components/icon/icon-info.component.d.ts +7 -7
  422. package/lib/components/icon/icon-invoice.component.d.ts +7 -7
  423. package/lib/components/icon/icon-invoices-anticipated.component.d.ts +7 -7
  424. package/lib/components/icon/icon-invoices-approval.component.d.ts +7 -7
  425. package/lib/components/icon/icon-invoices-refused.component.d.ts +7 -7
  426. package/lib/components/icon/icon-list.component.d.ts +7 -7
  427. package/lib/components/icon/icon-location-pin.component.d.ts +7 -7
  428. package/lib/components/icon/icon-login.component.d.ts +7 -7
  429. package/lib/components/icon/icon-logout.component.d.ts +7 -7
  430. package/lib/components/icon/icon-medal.component.d.ts +7 -7
  431. package/lib/components/icon/icon-menu.component.d.ts +7 -7
  432. package/lib/components/icon/icon-money-cedule.component.d.ts +7 -7
  433. package/lib/components/icon/icon-money-discount.d.ts +7 -7
  434. package/lib/components/icon/icon-money-hand.component.d.ts +7 -7
  435. package/lib/components/icon/icon-money-net.d.ts +7 -7
  436. package/lib/components/icon/icon-money-new.d.ts +7 -7
  437. package/lib/components/icon/icon-money-sign.component.d.ts +7 -7
  438. package/lib/components/icon/icon-money.component.d.ts +7 -7
  439. package/lib/components/icon/icon-more-circle.component.d.ts +7 -7
  440. package/lib/components/icon/icon-more.component.d.ts +7 -7
  441. package/lib/components/icon/icon-new-company.component.d.ts +7 -7
  442. package/lib/components/icon/icon-offered.component.d.ts +7 -7
  443. package/lib/components/icon/icon-open-external.component.d.ts +7 -7
  444. package/lib/components/icon/icon-password.component.d.ts +7 -7
  445. package/lib/components/icon/icon-people.component.d.ts +7 -7
  446. package/lib/components/icon/icon-percent.component.d.ts +7 -7
  447. package/lib/components/icon/icon-person-document.component.d.ts +7 -7
  448. package/lib/components/icon/icon-person-sad.component.d.ts +7 -7
  449. package/lib/components/icon/icon-phone-call.component.d.ts +7 -7
  450. package/lib/components/icon/icon-phone.component.d.ts +7 -7
  451. package/lib/components/icon/icon-pin-navigation.component.d.ts +7 -7
  452. package/lib/components/icon/icon-pork.component.d.ts +7 -7
  453. package/lib/components/icon/icon-radio.component.d.ts +7 -7
  454. package/lib/components/icon/icon-refresh.component.d.ts +7 -7
  455. package/lib/components/icon/icon-registration.d.ts +7 -7
  456. package/lib/components/icon/icon-repeat.component.d.ts +7 -7
  457. package/lib/components/icon/icon-search.component.d.ts +7 -7
  458. package/lib/components/icon/icon-second-warning.component.d.ts +7 -7
  459. package/lib/components/icon/icon-settings.component.d.ts +7 -7
  460. package/lib/components/icon/icon-shield-chekmark.component.d.ts +7 -7
  461. package/lib/components/icon/icon-star.component.d.ts +7 -7
  462. package/lib/components/icon/icon-store.component.d.ts +7 -7
  463. package/lib/components/icon/icon-today.component.d.ts +7 -7
  464. package/lib/components/icon/icon-trash.component.d.ts +7 -7
  465. package/lib/components/icon/icon-trophy.component.d.ts +7 -7
  466. package/lib/components/icon/icon-unfold-more.component.d.ts +7 -7
  467. package/lib/components/icon/icon-upload.component.d.ts +7 -7
  468. package/lib/components/icon/icon-user-group.component.d.ts +7 -7
  469. package/lib/components/icon/icon-user.component.d.ts +7 -7
  470. package/lib/components/icon/icon-waiting.component.d.ts +7 -7
  471. package/lib/components/icon/icon-wallet.component.d.ts +7 -7
  472. package/lib/components/icon/icon-warning.component.d.ts +7 -7
  473. package/lib/components/icon/icon.component.d.ts +27 -27
  474. package/lib/components/icon/icon.module.d.ts +125 -124
  475. package/lib/components/icon/index.d.ts +108 -107
  476. package/lib/components/image-crop/image-crop.component.d.ts +77 -77
  477. package/lib/components/image-crop/image-crop.module.d.ts +12 -12
  478. package/lib/components/image-crop/index.d.ts +2 -2
  479. package/lib/components/index.d.ts +19 -19
  480. package/lib/components/input/index.d.ts +3 -3
  481. package/lib/components/input/input-filter.component.d.ts +55 -55
  482. package/lib/components/input/input.component.d.ts +64 -64
  483. package/lib/components/input/input.module.d.ts +12 -12
  484. package/lib/components/input-phone/index.d.ts +2 -2
  485. package/lib/components/input-phone/input-phone.component.d.ts +62 -62
  486. package/lib/components/input-phone/input-phone.module.d.ts +13 -13
  487. package/lib/components/modal/index.d.ts +2 -2
  488. package/lib/components/modal/modal.component.d.ts +24 -24
  489. package/lib/components/modal/modal.module.d.ts +10 -10
  490. package/lib/components/option/index.d.ts +2 -2
  491. package/lib/components/option/option.component.d.ts +22 -22
  492. package/lib/components/option/option.module.d.ts +8 -8
  493. package/lib/components/radiobutton/index.d.ts +2 -2
  494. package/lib/components/radiobutton/radiobutton.component.d.ts +39 -39
  495. package/lib/components/radiobutton/radiobutton.module.d.ts +9 -9
  496. package/lib/components/select/index.d.ts +5 -5
  497. package/lib/components/select/select-filter.component.d.ts +41 -41
  498. package/lib/components/select/select-multiple.component.d.ts +48 -48
  499. package/lib/components/select/select-search.component.d.ts +56 -56
  500. package/lib/components/select/select.component.d.ts +48 -48
  501. package/lib/components/select/select.module.d.ts +15 -15
  502. package/lib/components/stepper/index.d.ts +2 -2
  503. package/lib/components/stepper/stepper.component.d.ts +18 -18
  504. package/lib/components/stepper/stepper.module.d.ts +9 -9
  505. package/lib/components/tab/index.d.ts +2 -2
  506. package/lib/components/tab/tab.component.d.ts +24 -24
  507. package/lib/components/tab/tab.module.d.ts +10 -10
  508. package/lib/components/table/index.d.ts +3 -3
  509. package/lib/components/table/table-column.component.d.ts +5 -5
  510. package/lib/components/table/table.component.d.ts +59 -59
  511. package/lib/components/table/table.module.d.ts +12 -12
  512. package/lib/components/toggle/index.d.ts +2 -2
  513. package/lib/components/toggle/toggle.component.d.ts +18 -18
  514. package/lib/components/toggle/toggle.module.d.ts +8 -8
  515. package/lib/components/wizard/index.d.ts +2 -2
  516. package/lib/components/wizard/wizard.component.d.ts +18 -18
  517. package/lib/components/wizard/wizard.module.d.ts +9 -9
  518. package/lib/core/index.d.ts +3 -3
  519. package/lib/core/interfaces/index.d.ts +2 -2
  520. package/lib/core/interfaces/monkey-modal-settings.d.ts +58 -58
  521. package/lib/core/interfaces/monkey-style-settings.d.ts +59 -59
  522. package/lib/core/services/index.d.ts +3 -3
  523. package/lib/core/services/modal/index.d.ts +2 -2
  524. package/lib/core/services/modal/monkey-style-guide-modal-fixed.service.d.ts +16 -16
  525. package/lib/core/services/modal/monkey-style-guide-modal.service.d.ts +18 -18
  526. package/lib/core/services/monkey-style-guide.service.d.ts +10 -10
  527. package/lib/core/services/settings/index.d.ts +1 -1
  528. package/lib/core/services/settings/monkey-style-guide-settings.service.d.ts +15 -15
  529. package/lib/core/services/settings/monkey-style-guide-theme-settings.service.d.ts +12 -12
  530. package/lib/core/services/snackbar/index.d.ts +1 -1
  531. package/lib/core/services/snackbar/mokey-style-guide-snackbar.service.d.ts +58 -58
  532. package/lib/core/utils/index.d.ts +1 -1
  533. package/lib/core/utils/utils.d.ts +29 -29
  534. package/lib/monkey-style-guide.module.d.ts +8 -8
  535. package/monkey-style-guide-2.0.170.tgz +0 -0
  536. package/monkey-style-guide.d.ts +5 -5
  537. package/package.json +1 -1
  538. package/public-api.d.ts +8 -8
  539. package/monkey-style-guide-2.0.168.tgz +0 -0
@@ -1,53 +1,53 @@
1
- /**************************
2
- * Copyright Monkey Exchange. All Rights Reserved
3
- * This style guide was developed by Monkey Exchange Team
4
- * MIT Licence
5
- **************************/
6
- import { Component, ViewEncapsulation, Input } from '@angular/core';
7
- import { MonkeyUtils } from '../../core/utils';
8
- import * as i0 from "@angular/core";
9
- import * as i1 from "@angular/common";
10
- export class MonkeyButtonAvatarComponent {
11
- constructor() {
12
- this._id = `mecx-button-avatar-${MonkeyUtils.getRandomString(10)}`;
13
- this._disabled = false;
14
- this._handledValue = '';
15
- }
16
- ngOnInit() {
17
- const { label } = this;
18
- this._handledValue = label?.charAt(0);
19
- }
20
- }
21
- MonkeyButtonAvatarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyButtonAvatarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
22
- MonkeyButtonAvatarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: MonkeyButtonAvatarComponent, selector: "monkey-button-avatar", inputs: { label: "label", type: "type", size: "size", img: "img" }, ngImport: i0, template: `
23
- <div
24
- [ngClass]="'mecx-button-avatar mecx-button-avatar__' + type + ' mecx-button-avatar__' + size"
25
- >
26
- <img [src]="img" *ngIf="img" />
27
- <span *ngIf="!img && _handledValue">{{ _handledValue }}</span>
28
- </div>
29
- `, isInline: true, directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None });
30
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyButtonAvatarComponent, decorators: [{
31
- type: Component,
32
- args: [{
33
- selector: 'monkey-button-avatar',
34
- template: `
35
- <div
36
- [ngClass]="'mecx-button-avatar mecx-button-avatar__' + type + ' mecx-button-avatar__' + size"
37
- >
38
- <img [src]="img" *ngIf="img" />
39
- <span *ngIf="!img && _handledValue">{{ _handledValue }}</span>
40
- </div>
41
- `,
42
- encapsulation: ViewEncapsulation.None,
43
- }]
44
- }], propDecorators: { label: [{
45
- type: Input
46
- }], type: [{
47
- type: Input
48
- }], size: [{
49
- type: Input
50
- }], img: [{
51
- type: Input
52
- }] } });
53
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnV0dG9uLWF2YXRhci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9tb25rZXktc3R5bGUtZ3VpZGUvc3JjL2xpYi9jb21wb25lbnRzL2J1dHRvbi9idXR0b24tYXZhdGFyLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs0QkFJNEI7QUFDNUIsT0FBTyxFQUFFLFNBQVMsRUFBRSxpQkFBaUIsRUFBRSxLQUFLLEVBQVUsTUFBTSxlQUFlLENBQUM7QUFDNUUsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLGtCQUFrQixDQUFDOzs7QUFjL0MsTUFBTSxPQUFPLDJCQUEyQjtJQVp4QztRQWtCUyxRQUFHLEdBQUcsc0JBQXNCLFdBQVcsQ0FBQyxlQUFlLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQztRQUM5RCxjQUFTLEdBQUcsS0FBSyxDQUFDO1FBQ2xCLGtCQUFhLEdBQUcsRUFBRSxDQUFDO0tBTTNCO0lBSk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NdPVwiJ21lY3gtYnV0dG9uLWF2YXRhciBtZWN4LWJ1dHRvbi1hdmF0YXJfXycgKyB0eXBlICsgJyBtZWN4LWJ1dHRvbi1hdmF0YXJfXycgKyBzaXplXCJcbiAgICA+XG4gICAgICA8aW1nIFtzcmNdPVwiaW1nXCIgKm5nSWY9XCJpbWdcIiAvPlxuICAgICAgPHNwYW4gKm5nSWY9XCIhaW1nICYmIF9oYW5kbGVkVmFsdWVcIj57eyBfaGFuZGxlZFZhbHVlIH19PC9zcGFuPlxuICAgIDwvZGl2PlxuICBgLFxuICBlbmNhcHN1bGF0aW9uOiBWaWV3RW5jYXBzdWxhdGlvbi5Ob25lLFxufSlcbmV4cG9ydCBjbGFzcyBNb25rZXlCdXR0b25BdmF0YXJDb21wb25lbnQgaW1wbGVtZW50cyBPbkluaXQge1xuICBASW5wdXQoKSBsYWJlbDogc3RyaW5nO1xuICBASW5wdXQoKSB0eXBlOiBzdHJpbmc7XG4gIEBJbnB1dCgpIHNpemU6IHN0cmluZztcbiAgQElucHV0KCkgaW1nOiBzdHJpbmc7XG5cbiAgcHVibGljIF9pZCA9IGBtZWN4LWJ1dHRvbi1hdmF0YXItJHtNb25rZXlVdGlscy5nZXRSYW5kb21TdHJpbmcoMTApfWA7XG4gIHB1YmxpYyBfZGlzYWJsZWQgPSBmYWxzZTtcbiAgcHVibGljIF9oYW5kbGVkVmFsdWUgPSAnJztcblxuICBuZ09uSW5pdCgpIHtcbiAgICBjb25zdCB7IGxhYmVsIH0gPSB0aGlzO1xuICAgIHRoaXMuX2hhbmRsZWRWYWx1ZSA9IGxhYmVsPy5jaGFyQXQoMCk7XG4gIH1cbn1cbiJdfQ==
1
+ /**************************
2
+ * Copyright Monkey Exchange. All Rights Reserved
3
+ * This style guide was developed by Monkey Exchange Team
4
+ * MIT Licence
5
+ **************************/
6
+ import { Component, ViewEncapsulation, Input } from '@angular/core';
7
+ import { MonkeyUtils } from '../../core/utils';
8
+ import * as i0 from "@angular/core";
9
+ import * as i1 from "@angular/common";
10
+ export class MonkeyButtonAvatarComponent {
11
+ constructor() {
12
+ this._id = `mecx-button-avatar-${MonkeyUtils.getRandomString(10)}`;
13
+ this._disabled = false;
14
+ this._handledValue = '';
15
+ }
16
+ ngOnInit() {
17
+ const { label } = this;
18
+ this._handledValue = label?.charAt(0);
19
+ }
20
+ }
21
+ MonkeyButtonAvatarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyButtonAvatarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
22
+ MonkeyButtonAvatarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: MonkeyButtonAvatarComponent, selector: "monkey-button-avatar", inputs: { label: "label", type: "type", size: "size", img: "img" }, ngImport: i0, template: `
23
+ <div
24
+ [ngClass]="'mecx-button-avatar mecx-button-avatar__' + type + ' mecx-button-avatar__' + size"
25
+ >
26
+ <img [src]="img" *ngIf="img" />
27
+ <span *ngIf="!img && _handledValue">{{ _handledValue }}</span>
28
+ </div>
29
+ `, isInline: true, directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None });
30
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyButtonAvatarComponent, decorators: [{
31
+ type: Component,
32
+ args: [{
33
+ selector: 'monkey-button-avatar',
34
+ template: `
35
+ <div
36
+ [ngClass]="'mecx-button-avatar mecx-button-avatar__' + type + ' mecx-button-avatar__' + size"
37
+ >
38
+ <img [src]="img" *ngIf="img" />
39
+ <span *ngIf="!img && _handledValue">{{ _handledValue }}</span>
40
+ </div>
41
+ `,
42
+ encapsulation: ViewEncapsulation.None,
43
+ }]
44
+ }], propDecorators: { label: [{
45
+ type: Input
46
+ }], type: [{
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gYCxcclxuICBlbmNhcHN1bGF0aW9uOiBWaWV3RW5jYXBzdWxhdGlvbi5Ob25lLFxyXG59KVxyXG5leHBvcnQgY2xhc3MgTW9ua2V5QnV0dG9uQXZhdGFyQ29tcG9uZW50IGltcGxlbWVudHMgT25Jbml0IHtcclxuICBASW5wdXQoKSBsYWJlbDogc3RyaW5nO1xyXG4gIEBJbnB1dCgpIHR5cGU6IHN0cmluZztcclxuICBASW5wdXQoKSBzaXplOiBzdHJpbmc7XHJcbiAgQElucHV0KCkgaW1nOiBzdHJpbmc7XHJcblxyXG4gIHB1YmxpYyBfaWQgPSBgbWVjeC1idXR0b24tYXZhdGFyLSR7TW9ua2V5VXRpbHMuZ2V0UmFuZG9tU3RyaW5nKDEwKX1gO1xyXG4gIHB1YmxpYyBfZGlzYWJsZWQgPSBmYWxzZTtcclxuICBwdWJsaWMgX2hhbmRsZWRWYWx1ZSA9ICcnO1xyXG5cclxuICBuZ09uSW5pdCgpIHtcclxuICAgIGNvbnN0IHsgbGFiZWwgfSA9IHRoaXM7XHJcbiAgICB0aGlzLl9oYW5kbGVkVmFsdWUgPSBsYWJlbD8uY2hhckF0KDApO1xyXG4gIH1cclxufVxyXG4iXX0=
@@ -1,121 +1,121 @@
1
- /**************************
2
- * Copyright Monkey Exchange. All Rights Reserved
3
- * This style guide was developed by Monkey Exchange Team
4
- * MIT Licence
5
- **************************/
6
- import { Component, ViewEncapsulation, Input, HostListener, } from '@angular/core';
7
- import { MonkeyUtils } from '../../core/utils';
8
- import * as i0 from "@angular/core";
9
- import * as i1 from "../icon/icon.component";
10
- import * as i2 from "@angular/common";
11
- export class MonkeyButtonDropdownComponent {
12
- constructor(cdr) {
13
- this.cdr = cdr;
14
- this.type = 'filled';
15
- this.listenClicks = true;
16
- this._customClass = 'trigger';
17
- this._opened = false;
18
- this._id = `mecx-button-dropdown-${MonkeyUtils.getRandomString(10)}`;
19
- this._disabled = false;
20
- //not to do
21
- }
22
- clickout(event) {
23
- this.close();
24
- }
25
- clickon(event) {
26
- event.preventDefault();
27
- event.stopPropagation();
28
- if (this._opened && this.listenClicks) {
29
- this.close();
30
- }
31
- else {
32
- this._opened = true;
33
- this.cdr.detectChanges();
34
- }
35
- }
36
- close() {
37
- setTimeout(() => {
38
- this._opened = false;
39
- this.cdr.detectChanges();
40
- }, 20);
41
- }
42
- }
43
- MonkeyButtonDropdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyButtonDropdownComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
44
- MonkeyButtonDropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: MonkeyButtonDropdownComponent, selector: "monkey-button-dropdown", inputs: { label: "label", type: "type", listenClicks: "listenClicks" }, host: { listeners: { "document:click": "clickout($event)", "click": "clickon($event)" } }, ngImport: i0, template: `
45
- <mecx-button-dropdown
46
- [ngClass]="{
47
- trigger: type === 'filled',
48
- open: _opened
49
- }"
50
- >
51
- <mecx-button-dropdown__trigger>
52
- <ng-container *ngTemplateOutlet="label"></ng-container>
53
- <monkey-icon
54
- icon="arrow-down-16"
55
- [color]="'#4B4A53'"
56
- *ngIf="!_opened && type === 'filled'"
57
- ></monkey-icon>
58
- <monkey-icon
59
- icon="arrow-up-16"
60
- [color]="'#4B4A53'"
61
- *ngIf="_opened && type === 'filled'"
62
- ></monkey-icon>
63
- </mecx-button-dropdown__trigger>
64
- </mecx-button-dropdown>
65
- <mecx-button-dropdown-backdrop *ngIf="_opened" (click)="close()">
66
- </mecx-button-dropdown-backdrop>
67
- <mecx-button-dropdown [ngClass]="{ open: _opened }">
68
- <mecx-button-dropdown-options>
69
- <ng-content></ng-content>
70
- </mecx-button-dropdown-options>
71
- </mecx-button-dropdown>
72
- `, isInline: true, components: [{ type: i1.MonkeyIconComponent, selector: "monkey-icon", inputs: ["icon", "color", "contrast", "disabled"] }], directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None });
73
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyButtonDropdownComponent, decorators: [{
74
- type: Component,
75
- args: [{
76
- selector: 'monkey-button-dropdown',
77
- template: `
78
- <mecx-button-dropdown
79
- [ngClass]="{
80
- trigger: type === 'filled',
81
- open: _opened
82
- }"
83
- >
84
- <mecx-button-dropdown__trigger>
85
- <ng-container *ngTemplateOutlet="label"></ng-container>
86
- <monkey-icon
87
- icon="arrow-down-16"
88
- [color]="'#4B4A53'"
89
- *ngIf="!_opened && type === 'filled'"
90
- ></monkey-icon>
91
- <monkey-icon
92
- icon="arrow-up-16"
93
- [color]="'#4B4A53'"
94
- *ngIf="_opened && type === 'filled'"
95
- ></monkey-icon>
96
- </mecx-button-dropdown__trigger>
97
- </mecx-button-dropdown>
98
- <mecx-button-dropdown-backdrop *ngIf="_opened" (click)="close()">
99
- </mecx-button-dropdown-backdrop>
100
- <mecx-button-dropdown [ngClass]="{ open: _opened }">
101
- <mecx-button-dropdown-options>
102
- <ng-content></ng-content>
103
- </mecx-button-dropdown-options>
104
- </mecx-button-dropdown>
105
- `,
106
- encapsulation: ViewEncapsulation.None,
107
- }]
108
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { label: [{
109
- type: Input
110
- }], type: [{
111
- type: Input
112
- }], listenClicks: [{
113
- type: Input
114
- }], clickout: [{
115
- type: HostListener,
116
- args: ['document:click', ['$event']]
117
- }], clickon: [{
118
- type: HostListener,
119
- args: ['click', ['$event']]
120
- }] } });
121
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJm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Z2V0UmFuZG9tU3RyaW5nKDEwKX1gO1xuICBwdWJsaWMgX2Rpc2FibGVkOiBib29sZWFuID0gZmFsc2U7XG5cbiAgY29uc3RydWN0b3IocHJpdmF0ZSBjZHI6IENoYW5nZURldGVjdG9yUmVmKSB7XG4gICAgLy9ub3QgdG8gZG9cbiAgfVxuXG4gIEBIb3N0TGlzdGVuZXIoJ2RvY3VtZW50OmNsaWNrJywgWyckZXZlbnQnXSlcbiAgY2xpY2tvdXQoZXZlbnQ6IGFueSkge1xuICAgIHRoaXMuY2xvc2UoKTtcbiAgfVxuXG4gIEBIb3N0TGlzdGVuZXIoJ2NsaWNrJywgWyckZXZlbnQnXSlcbiAgY2xpY2tvbihldmVudDogYW55KSB7XG4gICAgZXZlbnQucHJldmVudERlZmF1bHQoKTtcbiAgICBldmVudC5zdG9wUHJvcGFnYXRpb24oKTtcbiAgICBpZiAodGhpcy5fb3BlbmVkICYmIHRoaXMubGlzdGVuQ2xpY2tzKSB7XG4gICAgICB0aGlzLmNsb3NlKCk7XG4gICAgfSBlbHNlIHtcbiAgICAgIHRoaXMuX29wZW5lZCA9IHRydWU7XG4gICAgICB0aGlzLmNkci5kZXRlY3RDaGFuZ2VzKCk7XG4gICAgfVxuICB9XG5cbiAgY2xvc2UoKSB7XG4gICAgc2V0VGltZW91dCgoKSA9PiB7XG4gICAgICB0aGlzLl9vcGVuZWQgPSBmYWxzZTtcbiAgICAgIHRoaXMuY2RyLmRldGVjdENoYW5nZXMoKTtcbiAgICB9LCAyMCk7XG4gIH1cbn1cbiJdfQ==
1
+ /**************************
2
+ * Copyright Monkey Exchange. All Rights Reserved
3
+ * This style guide was developed by Monkey Exchange Team
4
+ * MIT Licence
5
+ **************************/
6
+ import { Component, ViewEncapsulation, Input, HostListener, } from '@angular/core';
7
+ import { MonkeyUtils } from '../../core/utils';
8
+ import * as i0 from "@angular/core";
9
+ import * as i1 from "../icon/icon.component";
10
+ import * as i2 from "@angular/common";
11
+ export class MonkeyButtonDropdownComponent {
12
+ constructor(cdr) {
13
+ this.cdr = cdr;
14
+ this.type = 'filled';
15
+ this.listenClicks = true;
16
+ this._customClass = 'trigger';
17
+ this._opened = false;
18
+ this._id = `mecx-button-dropdown-${MonkeyUtils.getRandomString(10)}`;
19
+ this._disabled = false;
20
+ //not to do
21
+ }
22
+ clickout(event) {
23
+ this.close();
24
+ }
25
+ clickon(event) {
26
+ event.preventDefault();
27
+ event.stopPropagation();
28
+ if (this._opened && this.listenClicks) {
29
+ this.close();
30
+ }
31
+ else {
32
+ this._opened = true;
33
+ this.cdr.detectChanges();
34
+ }
35
+ }
36
+ close() {
37
+ setTimeout(() => {
38
+ this._opened = false;
39
+ this.cdr.detectChanges();
40
+ }, 20);
41
+ }
42
+ }
43
+ MonkeyButtonDropdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyButtonDropdownComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
44
+ MonkeyButtonDropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: MonkeyButtonDropdownComponent, selector: "monkey-button-dropdown", inputs: { label: "label", type: "type", listenClicks: "listenClicks" }, host: { listeners: { "document:click": "clickout($event)", "click": "clickon($event)" } }, ngImport: i0, template: `
45
+ <mecx-button-dropdown
46
+ [ngClass]="{
47
+ trigger: type === 'filled',
48
+ open: _opened
49
+ }"
50
+ >
51
+ <mecx-button-dropdown__trigger>
52
+ <ng-container *ngTemplateOutlet="label"></ng-container>
53
+ <monkey-icon
54
+ icon="arrow-down-16"
55
+ [color]="'#4B4A53'"
56
+ *ngIf="!_opened && type === 'filled'"
57
+ ></monkey-icon>
58
+ <monkey-icon
59
+ icon="arrow-up-16"
60
+ [color]="'#4B4A53'"
61
+ *ngIf="_opened && type === 'filled'"
62
+ ></monkey-icon>
63
+ </mecx-button-dropdown__trigger>
64
+ </mecx-button-dropdown>
65
+ <mecx-button-dropdown-backdrop *ngIf="_opened" (click)="close()">
66
+ </mecx-button-dropdown-backdrop>
67
+ <mecx-button-dropdown [ngClass]="{ open: _opened }">
68
+ <mecx-button-dropdown-options>
69
+ <ng-content></ng-content>
70
+ </mecx-button-dropdown-options>
71
+ </mecx-button-dropdown>
72
+ `, isInline: true, components: [{ type: i1.MonkeyIconComponent, selector: "monkey-icon", inputs: ["icon", "color", "contrast", "disabled"] }], directives: [{ type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None });
73
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: MonkeyButtonDropdownComponent, decorators: [{
74
+ type: Component,
75
+ args: [{
76
+ selector: 'monkey-button-dropdown',
77
+ template: `
78
+ <mecx-button-dropdown
79
+ [ngClass]="{
80
+ trigger: type === 'filled',
81
+ open: _opened
82
+ }"
83
+ >
84
+ <mecx-button-dropdown__trigger>
85
+ <ng-container *ngTemplateOutlet="label"></ng-container>
86
+ <monkey-icon
87
+ icon="arrow-down-16"
88
+ [color]="'#4B4A53'"
89
+ *ngIf="!_opened && type === 'filled'"
90
+ ></monkey-icon>
91
+ <monkey-icon
92
+ icon="arrow-up-16"
93
+ [color]="'#4B4A53'"
94
+ *ngIf="_opened && type === 'filled'"
95
+ ></monkey-icon>
96
+ </mecx-button-dropdown__trigger>
97
+ </mecx-button-dropdown>
98
+ <mecx-button-dropdown-backdrop *ngIf="_opened" (click)="close()">
99
+ </mecx-button-dropdown-backdrop>
100
+ <mecx-button-dropdown [ngClass]="{ open: _opened }">
101
+ <mecx-button-dropdown-options>
102
+ <ng-content></ng-content>
103
+ </mecx-button-dropdown-options>
104
+ </mecx-button-dropdown>
105
+ `,
106
+ encapsulation: ViewEncapsulation.None,
107
+ }]
108
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { label: [{
109
+ type: Input
110
+ }], type: [{
111
+ type: Input
112
+ }], listenClicks: [{
113
+ type: Input
114
+ }], clickout: [{
115
+ type: HostListener,
116
+ args: ['document:click', ['$event']]
117
+ }], clickon: [{
118
+ type: HostListener,
119
+ args: ['click', ['$event']]
120
+ }] } });
121
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnV0dG9uLWRyb3Bkb3duLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL21vbmtleS1zdHlsZS1ndWlkZS9zcmMvbGliL2NvbXBvbmVudHMvYnV0dG9uL2J1dHRvbi1kcm9wZG93bi5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7NEJBSTRCO0FBQzVCLE9BQU8sRUFDTCxTQUFTLEVBQ1QsaUJBQWlCLEVBQ2pCLEtBQUssRUFDTCxZQUFZLEdBRWIsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLGtCQUFrQixDQUFDOzs7O0FBbUMvQyxNQUFNLE9BQU8sNkJBQTZCO0lBVXhDLFlBQW9CLEdBQXNCO1FBQXRCLFFBQUcsR0FBSCxHQUFHLENBQW1CO1FBUmpDLFNBQUksR0FBMEIsUUFBUSxDQUFDO1FBQ3ZDLGlCQUFZLEdBQUcsSUFBSSxDQUFDO1FBRXRCLGlCQUFZLEdBQUcsU0FBUyxDQUFDO1FBQ3pCLFlBQU8sR0FBWSxLQUFLLENBQUM7UUFDekIsUUFBRyxHQUFXLHdCQUF3QixXQUFXLENBQUMsZUFBZSxDQUFDLEVBQUUsQ0FBQyxFQUFFLENBQUM7UU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