@dropi/ui-components 1.0.12 → 1.0.13

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 (255) hide show
  1. package/README.md +55 -36
  2. package/dist/README.md +58 -38
  3. package/dist/components-source/accordion/accordion-item/accordion-item.component.d.ts +31 -0
  4. package/dist/components-source/accordion/accordion.component.d.ts +26 -0
  5. package/dist/components-source/alert/alert.component.d.ts +32 -0
  6. package/dist/components-source/alert-modal/alert-modal.component.d.ts +78 -0
  7. package/dist/components-source/alert-validation/alert-validation.component.d.ts +21 -0
  8. package/dist/components-source/badge/badge.component.d.ts +12 -0
  9. package/dist/components-source/beta-tag/beta-tag.component.d.ts +5 -0
  10. package/dist/components-source/breadcrumb/breadcrumb.component.d.ts +11 -0
  11. package/dist/components-source/card-product/card-product.component.d.ts +204 -0
  12. package/dist/components-source/card-section/card-section.component.d.ts +31 -0
  13. package/dist/components-source/checkbox-selection-list/checkbox-selection-list.component.d.ts +26 -0
  14. package/dist/components-source/city-selector/city-selector.component.d.ts +17 -0
  15. package/dist/components-source/color-picker/color-picker.component.d.ts +73 -0
  16. package/dist/components-source/confirm-dialog/confirm-dialog.component.d.ts +10 -0
  17. package/dist/components-source/country-flags/country-flags.component.d.ts +12 -0
  18. package/dist/components-source/date-picker/date-picker.component.d.ts +27 -0
  19. package/dist/components-source/date-picker-range/date-picker-range.component.d.ts +26 -0
  20. package/dist/components-source/dropi-avatars/dropi-avatars.component.d.ts +11 -0
  21. package/dist/components-source/dropi-badge/dropi-badge.component.d.ts +29 -0
  22. package/dist/components-source/dropi-banner-external/dropi-banner-external.component.d.ts +19 -0
  23. package/dist/components-source/dropi-breadcrumb/dropi-breadcrumb.component.d.ts +22 -0
  24. package/dist/components-source/dropi-card-checkbox/dropi-card-checkbox.component.d.ts +20 -0
  25. package/dist/components-source/dropi-carousel/dropi-carousel.component.d.ts +52 -0
  26. package/dist/components-source/dropi-checkbox/dropi-checkbox.component.d.ts +11 -0
  27. package/dist/components-source/dropi-chips/dropi-chips.component.d.ts +17 -0
  28. package/dist/components-source/dropi-country-selector/countries.data.d.ts +6 -0
  29. package/dist/components-source/dropi-country-selector/dropi-country-selector.component.d.ts +90 -0
  30. package/dist/components-source/dropi-drawer/dropi-drawer.component.d.ts +20 -0
  31. package/dist/components-source/dropi-dropdown/dropi-dropdown.component.d.ts +20 -0
  32. package/dist/components-source/dropi-favorite-button/dropi-favorite-button.component.d.ts +12 -0
  33. package/dist/components-source/dropi-file-upload/card-view/card-view.component.d.ts +19 -0
  34. package/dist/components-source/dropi-file-upload/drop-zone/drop-zone.component.d.ts +38 -0
  35. package/dist/components-source/dropi-file-upload/dropi-file-upload.component.d.ts +18 -0
  36. package/dist/components-source/dropi-file-upload/file-list/file-list.component.d.ts +39 -0
  37. package/dist/components-source/dropi-file-upload/grid-view/grid-view.component.d.ts +15 -0
  38. package/dist/components-source/dropi-ilustration-icon/dropi-ilustration-icon.component.d.ts +20 -0
  39. package/dist/components-source/dropi-image-overlay/dropi-image-overlay.component.d.ts +8 -0
  40. package/dist/components-source/dropi-languages-selector/dropi-languages-selector.component.d.ts +18 -0
  41. package/dist/components-source/dropi-logo/dropi-logo.component.d.ts +12 -0
  42. package/dist/components-source/dropi-modal/dropi-modal.component.d.ts +34 -0
  43. package/dist/components-source/dropi-modal/p-template.directive.d.ts +9 -0
  44. package/dist/components-source/dropi-navbar/dropi-navbar.component.d.ts +20 -0
  45. package/dist/components-source/dropi-paginator/dropi-paginator.component.d.ts +21 -0
  46. package/dist/components-source/dropi-phone-input/dropi-phone-input.component.d.ts +55 -0
  47. package/dist/components-source/dropi-radio-button/dropi-radio-button.component.d.ts +17 -0
  48. package/dist/components-source/dropi-search/dropi-search.component.d.ts +40 -0
  49. package/dist/components-source/dropi-select/dropi-select.component.d.ts +34 -0
  50. package/dist/components-source/dropi-skeleton/dropi-skeleton.component.d.ts +14 -0
  51. package/dist/components-source/dropi-steps/dropi-steps.component.d.ts +64 -0
  52. package/dist/components-source/dropi-switch/dropi-switch.component.d.ts +11 -0
  53. package/dist/components-source/dropi-table/dropi-table.component.d.ts +82 -0
  54. package/dist/components-source/dropi-tag/dropi-tag.component.d.ts +15 -0
  55. package/dist/components-source/dropi-text-area/dropi-text-area.component.d.ts +14 -0
  56. package/dist/components-source/dropi-tooltip/dropi-tooltip.component.d.ts +28 -0
  57. package/dist/components-source/dropi-youtube-lazy-video/dropi-youtube-lazy-video.component.d.ts +16 -0
  58. package/dist/components-source/empty/empty.component.d.ts +9 -0
  59. package/dist/components-source/empty-state/empty-state.component.d.ts +17 -0
  60. package/dist/components-source/file-upload-progress-bar/file-upload-progress-bar.component.d.ts +30 -0
  61. package/dist/components-source/index.d.ts +85 -0
  62. package/dist/components-source/input/input.component.d.ts +33 -0
  63. package/dist/components-source/lottie-loader/lottie-loader.component.d.ts +9 -0
  64. package/dist/components-source/otp-send-code/otp-send-code.component.d.ts +83 -0
  65. package/dist/components-source/radio-selection-list/radio-selection-list.component.d.ts +30 -0
  66. package/dist/components-source/read-more/read-more.component.d.ts +60 -0
  67. package/dist/components-source/sidebar/sidebar.component.d.ts +27 -0
  68. package/dist/components-source/simple-stepper/simple-stepper.component.d.ts +21 -0
  69. package/dist/components-source/spinner/spinner.component.d.ts +9 -0
  70. package/dist/components-source/tabs/tabs.component.d.ts +27 -0
  71. package/dist/components-source/tag-type-product/tag-type-product.component.d.ts +5 -0
  72. package/dist/components-source/toast/toast.component.d.ts +21 -0
  73. package/dist/components-source/toggle/input-toggle.component.d.ts +11 -0
  74. package/dist/components-source/tooltip/tooltip.component.d.ts +15 -0
  75. package/dist/components-source/vertical-steps/vertical-steps.component.d.ts +27 -0
  76. package/dist/esm2022/components-source/accordion/accordion-item/accordion-item.component.mjs +51 -0
  77. package/dist/esm2022/components-source/accordion/accordion.component.mjs +46 -0
  78. package/dist/esm2022/components-source/alert/alert.component.mjs +114 -0
  79. package/dist/esm2022/components-source/alert-modal/alert-modal.component.mjs +247 -0
  80. package/dist/esm2022/components-source/alert-validation/alert-validation.component.mjs +53 -0
  81. package/dist/esm2022/components-source/badge/badge.component.mjs +23 -0
  82. package/dist/esm2022/components-source/beta-tag/beta-tag.component.mjs +11 -0
  83. package/dist/esm2022/components-source/breadcrumb/breadcrumb.component.mjs +26 -0
  84. package/dist/esm2022/components-source/card-product/card-product.component.mjs +534 -0
  85. package/dist/esm2022/components-source/card-section/card-section.component.mjs +91 -0
  86. package/dist/esm2022/components-source/checkbox-selection-list/checkbox-selection-list.component.mjs +79 -0
  87. package/dist/esm2022/components-source/city-selector/city-selector.component.mjs +53 -0
  88. package/dist/esm2022/components-source/color-picker/color-picker.component.mjs +320 -0
  89. package/dist/esm2022/components-source/confirm-dialog/confirm-dialog.component.mjs +27 -0
  90. package/dist/esm2022/components-source/country-flags/country-flags.component.mjs +27 -0
  91. package/dist/esm2022/components-source/date-picker/date-picker.component.mjs +73 -0
  92. package/dist/esm2022/components-source/date-picker-range/date-picker-range.component.mjs +67 -0
  93. package/dist/esm2022/components-source/dropi-avatars/dropi-avatars.component.mjs +31 -0
  94. package/dist/esm2022/components-source/dropi-badge/dropi-badge.component.mjs +45 -0
  95. package/dist/esm2022/components-source/dropi-banner-external/dropi-banner-external.component.mjs +39 -0
  96. package/dist/esm2022/components-source/dropi-breadcrumb/dropi-breadcrumb.component.mjs +45 -0
  97. package/dist/esm2022/components-source/dropi-card-checkbox/dropi-card-checkbox.component.mjs +53 -0
  98. package/dist/esm2022/components-source/dropi-carousel/dropi-carousel.component.mjs +243 -0
  99. package/dist/esm2022/components-source/dropi-checkbox/dropi-checkbox.component.mjs +31 -0
  100. package/dist/esm2022/components-source/dropi-chips/dropi-chips.component.mjs +38 -0
  101. package/dist/esm2022/components-source/dropi-country-selector/countries.data.mjs +254 -0
  102. package/dist/esm2022/components-source/dropi-country-selector/dropi-country-selector.component.mjs +183 -0
  103. package/dist/esm2022/components-source/dropi-drawer/dropi-drawer.component.mjs +69 -0
  104. package/dist/esm2022/components-source/dropi-dropdown/dropi-dropdown.component.mjs +59 -0
  105. package/dist/esm2022/components-source/dropi-favorite-button/dropi-favorite-button.component.mjs +33 -0
  106. package/dist/esm2022/components-source/dropi-file-upload/card-view/card-view.component.mjs +47 -0
  107. package/dist/esm2022/components-source/dropi-file-upload/drop-zone/drop-zone.component.mjs +115 -0
  108. package/dist/esm2022/components-source/dropi-file-upload/dropi-file-upload.component.mjs +66 -0
  109. package/dist/esm2022/components-source/dropi-file-upload/file-list/file-list.component.mjs +95 -0
  110. package/dist/esm2022/components-source/dropi-file-upload/grid-view/grid-view.component.mjs +37 -0
  111. package/dist/esm2022/components-source/dropi-ilustration-icon/dropi-ilustration-icon.component.mjs +59 -0
  112. package/dist/esm2022/components-source/dropi-image-overlay/dropi-image-overlay.component.mjs +31 -0
  113. package/dist/esm2022/components-source/dropi-languages-selector/dropi-languages-selector.component.mjs +38 -0
  114. package/dist/esm2022/components-source/dropi-logo/dropi-logo.component.mjs +27 -0
  115. package/dist/esm2022/components-source/dropi-modal/dropi-modal.component.mjs +92 -0
  116. package/dist/esm2022/components-source/dropi-modal/p-template.directive.mjs +22 -0
  117. package/dist/esm2022/components-source/dropi-navbar/dropi-navbar.component.mjs +51 -0
  118. package/dist/esm2022/components-source/dropi-paginator/dropi-paginator.component.mjs +89 -0
  119. package/dist/esm2022/components-source/dropi-phone-input/dropi-phone-input.component.mjs +155 -0
  120. package/dist/esm2022/components-source/dropi-radio-button/dropi-radio-button.component.mjs +48 -0
  121. package/dist/esm2022/components-source/dropi-search/dropi-search.component.mjs +104 -0
  122. package/dist/esm2022/components-source/dropi-select/dropi-select.component.mjs +96 -0
  123. package/dist/esm2022/components-source/dropi-skeleton/dropi-skeleton.component.mjs +39 -0
  124. package/dist/esm2022/components-source/dropi-steps/dropi-steps.component.mjs +97 -0
  125. package/dist/esm2022/components-source/dropi-switch/dropi-switch.component.mjs +22 -0
  126. package/dist/esm2022/components-source/dropi-table/dropi-table.component.mjs +333 -0
  127. package/dist/esm2022/components-source/dropi-tag/dropi-tag.component.mjs +36 -0
  128. package/dist/esm2022/components-source/dropi-text-area/dropi-text-area.component.mjs +53 -0
  129. package/dist/esm2022/components-source/dropi-tooltip/dropi-tooltip.component.mjs +78 -0
  130. package/dist/esm2022/components-source/dropi-youtube-lazy-video/dropi-youtube-lazy-video.component.mjs +46 -0
  131. package/dist/esm2022/components-source/empty/empty.component.mjs +18 -0
  132. package/dist/esm2022/components-source/empty-state/empty-state.component.mjs +62 -0
  133. package/dist/esm2022/components-source/file-upload-progress-bar/file-upload-progress-bar.component.mjs +91 -0
  134. package/dist/esm2022/components-source/index.mjs +107 -0
  135. package/dist/esm2022/components-source/input/input.component.mjs +104 -0
  136. package/dist/esm2022/components-source/lottie-loader/lottie-loader.component.mjs +25 -0
  137. package/dist/esm2022/components-source/otp-send-code/otp-send-code.component.mjs +201 -0
  138. package/dist/esm2022/components-source/radio-selection-list/radio-selection-list.component.mjs +89 -0
  139. package/dist/esm2022/components-source/read-more/read-more.component.mjs +91 -0
  140. package/dist/esm2022/components-source/sidebar/sidebar.component.mjs +88 -0
  141. package/dist/esm2022/components-source/simple-stepper/simple-stepper.component.mjs +60 -0
  142. package/dist/esm2022/components-source/spinner/spinner.component.mjs +19 -0
  143. package/dist/esm2022/components-source/tabs/tabs.component.mjs +83 -0
  144. package/dist/esm2022/components-source/tag-type-product/tag-type-product.component.mjs +11 -0
  145. package/dist/esm2022/components-source/toast/toast.component.mjs +47 -0
  146. package/dist/esm2022/components-source/toggle/input-toggle.component.mjs +36 -0
  147. package/dist/esm2022/components-source/tooltip/tooltip.component.mjs +34 -0
  148. package/dist/esm2022/components-source/vertical-steps/vertical-steps.component.mjs +75 -0
  149. package/dist/esm2022/lib/elements-registry.mjs +343 -2
  150. package/dist/esm2022/utilities/interfaces/ui/dropi-table.interface.mjs +2 -0
  151. package/dist/esm2022/utilities/interfaces/ui/input-interface.mjs +2 -0
  152. package/dist/esm2022/utilities/interfaces/ui/select-interface.mjs +2 -0
  153. package/dist/esm2022/utilities/interfaces/ui/selection-list-interface.mjs +2 -0
  154. package/dist/esm2022/utilities/interfaces/ui/upload.model.mjs +5 -0
  155. package/dist/fesm2022/dropi-ui-components.mjs +5913 -2
  156. package/dist/fesm2022/dropi-ui-components.mjs.map +1 -1
  157. package/dist/utilities/interfaces/ui/dropi-table.interface.d.ts +45 -0
  158. package/dist/utilities/interfaces/ui/input-interface.d.ts +33 -0
  159. package/dist/utilities/interfaces/ui/select-interface.d.ts +8 -0
  160. package/dist/utilities/interfaces/ui/selection-list-interface.d.ts +24 -0
  161. package/dist/utilities/interfaces/ui/upload.model.d.ts +30 -0
  162. package/package.json +18 -6
  163. package/src/components-source/alert/alert.component.ts +12 -129
  164. package/src/components-source/alert-modal/alert-modal.component.ts +84 -114
  165. package/src/components-source/alert-validation/alert-validation.component.html +8 -0
  166. package/src/components-source/alert-validation/alert-validation.component.scss +225 -0
  167. package/src/components-source/alert-validation/alert-validation.component.ts +43 -0
  168. package/src/components-source/beta-tag/beta-tag.component.html +1 -0
  169. package/src/components-source/beta-tag/beta-tag.component.scss +26 -0
  170. package/src/components-source/beta-tag/beta-tag.component.ts +11 -0
  171. package/src/components-source/breadcrumb/breadcrumb.component.html +13 -5
  172. package/src/components-source/breadcrumb/breadcrumb.component.scss +8 -1
  173. package/src/components-source/breadcrumb/breadcrumb.component.spec.ts +26 -26
  174. package/src/components-source/breadcrumb/breadcrumb.component.ts +10 -12
  175. package/src/components-source/card-product/card-product.component.spec.ts +9 -9
  176. package/src/components-source/card-product/card-product.component.stories.ts +2 -2
  177. package/src/components-source/card-product/card-product.component.ts +294 -818
  178. package/src/components-source/card-section/card-section.component.html +7 -7
  179. package/src/components-source/card-section/card-section.component.ts +41 -15
  180. package/src/components-source/checkbox-selection-list/checkbox-selection-list.component.ts +42 -179
  181. package/src/components-source/city-selector/city-selector.component.ts +37 -137
  182. package/src/components-source/confirm-dialog/confirm-dialog.component.html +26 -0
  183. package/src/components-source/confirm-dialog/confirm-dialog.component.scss +55 -0
  184. package/src/components-source/confirm-dialog/confirm-dialog.component.ts +22 -0
  185. package/src/components-source/country-flags/country-flags.component.ts +20 -12
  186. package/src/components-source/date-picker/date-picker.component.ts +32 -292
  187. package/src/components-source/date-picker-range/date-picker-range.component.html +15 -7
  188. package/src/components-source/date-picker-range/date-picker-range.component.ts +42 -235
  189. package/src/components-source/dropi-banner-external/dropi-banner-external.component.ts +24 -185
  190. package/src/components-source/dropi-breadcrumb/dropi-breadcrumb.component.html +21 -21
  191. package/src/components-source/dropi-breadcrumb/dropi-breadcrumb.component.spec.ts +9 -9
  192. package/src/components-source/dropi-breadcrumb/dropi-breadcrumb.component.ts +41 -23
  193. package/src/components-source/dropi-breadcrumb/dropi-breadcrumb.stories.ts +12 -12
  194. package/src/components-source/dropi-chips/dropi-chips.component.ts +22 -87
  195. package/src/components-source/dropi-country-selector/countries.data.ts +256 -236
  196. package/src/components-source/dropi-country-selector/dropi-country-selector.component.ts +37 -25
  197. package/src/components-source/dropi-drawer/dropi-drawer.component.ts +91 -78
  198. package/src/components-source/dropi-dropdown/dropi-dropdown.component.ts +44 -47
  199. package/src/components-source/dropi-file-upload/card-view/card-view.component.ts +33 -53
  200. package/src/components-source/dropi-file-upload/drop-zone/drop-zone.component.ts +52 -123
  201. package/src/components-source/dropi-file-upload/dropi-file-upload.component.ts +38 -294
  202. package/src/components-source/dropi-file-upload/file-list/file-list.component.ts +62 -43
  203. package/src/components-source/dropi-file-upload/grid-view/grid-view.component.ts +23 -22
  204. package/src/components-source/dropi-ilustration-icon/dropi-ilustration-icon.component.scss +6 -2
  205. package/src/components-source/dropi-image-overlay/dropi-image-overlay.component.ts +16 -71
  206. package/src/components-source/dropi-modal/dropi-modal.component.ts +56 -372
  207. package/src/components-source/dropi-navbar/dropi-navbar.component.ts +17 -17
  208. package/src/components-source/dropi-paginator/dropi-paginator.component.html +18 -7
  209. package/src/components-source/dropi-paginator/dropi-paginator.component.ts +40 -32
  210. package/src/components-source/dropi-phone-input/dropi-phone-input.component.html +78 -79
  211. package/src/components-source/dropi-phone-input/dropi-phone-input.component.ts +29 -85
  212. package/src/components-source/dropi-search/dropi-search.component.ts +59 -222
  213. package/src/components-source/dropi-select/dropi-select.component.html +82 -131
  214. package/src/components-source/dropi-select/dropi-select.component.ts +60 -423
  215. package/src/components-source/dropi-table/dropi-table.component.html +40 -23
  216. package/src/components-source/dropi-table/dropi-table.component.ts +130 -374
  217. package/src/components-source/dropi-tag/dropi-tag.component.ts +20 -90
  218. package/src/components-source/dropi-text-area/dropi-text-area.component.ts +22 -48
  219. package/src/components-source/dropi-tooltip/dropi-tooltip.component.ts +40 -129
  220. package/src/components-source/empty/empty.component.html +3 -0
  221. package/src/components-source/empty/empty.component.scss +0 -0
  222. package/src/components-source/empty/empty.component.ts +16 -0
  223. package/src/components-source/empty-state/empty-state.component.ts +47 -19
  224. package/src/components-source/index.ts +82 -37
  225. package/src/components-source/input/input.component.html +79 -63
  226. package/src/components-source/input/input.component.ts +51 -97
  227. package/src/components-source/lottie-loader/lottie-loader.component.ts +13 -16
  228. package/src/components-source/otp-send-code/otp-send-code.component.ts +60 -528
  229. package/src/components-source/radio-selection-list/radio-selection-list.component.ts +36 -97
  230. package/src/components-source/sidebar/sidebar.component.spec.ts +11 -11
  231. package/src/components-source/sidebar/sidebar.component.stories.ts +3 -3
  232. package/src/components-source/sidebar/sidebar.component.ts +51 -47
  233. package/src/components-source/simple-stepper/simple-stepper.component.ts +20 -35
  234. package/src/components-source/spinner/spinner.component.html +6 -0
  235. package/src/components-source/spinner/spinner.component.scss +15 -0
  236. package/src/components-source/spinner/spinner.component.ts +17 -0
  237. package/src/components-source/tabs/tabs.component.spec.ts +8 -8
  238. package/src/components-source/tabs/tabs.component.stories.ts +5 -5
  239. package/src/components-source/tabs/tabs.component.ts +41 -83
  240. package/src/components-source/toast/toast.component.ts +40 -46
  241. package/src/components-source/toggle/input-toggle.component.html +34 -0
  242. package/src/components-source/toggle/input-toggle.component.scss +0 -0
  243. package/src/components-source/toggle/input-toggle.component.ts +27 -0
  244. package/src/components-source/toggle/inputToggleConfig.ts +11 -0
  245. package/src/components-source/tooltip/tooltip.component.html +22 -11
  246. package/src/components-source/tooltip/tooltip.component.ts +28 -13
  247. package/src/components-source/vertical-steps/vertical-steps.component.ts +16 -78
  248. package/src/lib/elements-registry.ts +413 -1
  249. package/src/lib/router-stub.ts +7 -0
  250. package/src/libreria work space.code-workspace +11 -8
  251. package/src/utilities/interfaces/ui/dropi-table.interface.ts +60 -0
  252. package/src/utilities/interfaces/ui/input-interface.ts +34 -0
  253. package/src/utilities/interfaces/ui/select-interface.ts +8 -0
  254. package/src/utilities/interfaces/ui/selection-list-interface.ts +15 -0
  255. package/src/utilities/interfaces/ui/upload.model.ts +41 -0
@@ -7,73 +7,46 @@ import {
7
7
  OnChanges,
8
8
  SimpleChanges,
9
9
  NO_ERRORS_SCHEMA,
10
- ComponentFactoryResolver,
11
10
  ViewChild,
12
11
  ViewContainerRef,
13
12
  TemplateRef,
14
13
  OnDestroy,
15
- } from '@angular/core';
16
- import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
17
- import { NgIf } from '@angular/common';
18
- import { ProgressBarModule } from 'primeng/progressbar';
19
- import { DropiModalComponent } from '../dropi-modal/dropi-modal.component';
20
- import { PTemplateDirective } from '../dropi-modal/p-template.directive';
21
- import {
22
- TranslateLoader,
23
- TranslateModule,
24
- TranslateService,
25
- TranslateStore,
26
- } from '@ngx-translate/core';
27
- import { NgPrimeModule } from '@app/ngprime.module';
28
- import { LoadingType } from '@app/utilities/enums/ui/alert-modal.enum';
29
- import { Subject, Subscription } from 'rxjs';
30
- import { TemplateAlertModalService } from '@app/ui/alert-modal/services/template-alert-modal.service';
31
- import { takeUntil } from 'rxjs/operators';
32
- import { TranslateHttpLoader } from '@ngx-translate/http-loader';
33
- import { HttpClient } from '@angular/common/http';
34
- import { SettingsService } from '@app/services/setting.service';
35
- import { ButtonComponent } from '../dropi-button/dropi-button.component';
14
+ Inject,
15
+ } from "@angular/core";
16
+ import { NgIf } from "@angular/common";
17
+ import { ProgressBarModule } from "primeng/progressbar";
18
+ import { DropiModalComponent } from "../dropi-modal/dropi-modal.component";
19
+ import { PTemplateDirective } from "../dropi-modal/p-template.directive";
20
+ import { TranslateModule, TranslateService } from "@ngx-translate/core";
21
+ import { Subject } from "rxjs";
22
+ import { takeUntil } from "rxjs/operators";
23
+ import { ButtonComponent } from "../dropi-button/dropi-button.component";
36
24
 
37
- // Función de carga de traducciones
38
- export function HttpLoaderFactory(http: HttpClient) {
39
- return new TranslateHttpLoader(http, '/assets/i18n/', '.json');
25
+ export enum LoadingType {
26
+ Bowling = "bowling",
27
+ Heart = "heart",
40
28
  }
41
- // Definición de la interfaz ModalParams
29
+
42
30
  export interface ModalParams {
43
31
  tittle: string;
44
- type?: 'question' | 'warning' | 'success' | 'error' | 'loading'; // Tipos predefinidos de modal
32
+ type?: "question" | "warning" | "success" | "error" | "loading";
45
33
  message: string;
46
- primaryButton?: string; // Opcional, con un valor por defecto si no se define
34
+ primaryButton?: string;
47
35
  secondaryButton?: string;
48
- loadingType?: LoadingType; // Tipo de animación cuando el loading es true
49
- loadingTitle?: string; // Título mostrado cuando el modal está en estado de carga
50
- loadingMessage?: string; // Mensaje mostrado cuando el modal está en estado de carga
51
- withLoadingProgressBar?: boolean; // Si se muestra una barra de progreso cuando el loading es true
52
- closable?: boolean; // Si el modal se puede cerrar manualmente
53
- displayButtons?: boolean; // Si se muestran los botones
54
- applyCountRegresive?: boolean; // Si se muestra un número que disminuye regresivamente en segundos
55
- timer?: number; // Valor en el que iniciara la cuenta regresiva
36
+ loadingType?: LoadingType;
37
+ loadingTitle?: string;
38
+ loadingMessage?: string;
39
+ withLoadingProgressBar?: boolean;
40
+ closable?: boolean;
41
+ displayButtons?: boolean;
42
+ applyCountRegresive?: boolean;
43
+ timer?: number;
56
44
  }
57
45
 
58
- // Ejemplo de uso del componente AlertModalComponent:
59
- // <app-alert-modal
60
- // [visible]="true"
61
- // [loading]="false" // definir y manejar el estado de carga cuando tiene espera
62
- // [params]="{
63
- // tittle: 'Título',
64
- // message: 'Mensaje',
65
- // type: 'question',
66
- // secondaryButton: 'Cancelar'
67
- // }"
68
- // (primaryButtonEvent)="orderSuccess($event)" // funcion cuando se presiona el botón primario
69
- // (secondaryButtonEvent)="cancel($event)" // funcion cuando se presiona el botón secundario
70
- // (modalOpenChange)="restartAlertParams($event)" // función cuando se cierra el modal
71
- // ></app-alert-modal>
72
-
73
46
  @Component({
74
- selector: 'app-alert-modal',
75
- templateUrl: './alert-modal.component.html',
76
- styleUrls: ['./alert-modal.component.scss'],
47
+ selector: "app-alert-modal",
48
+ templateUrl: "./alert-modal.component.html",
49
+ styleUrls: ["./alert-modal.component.scss"],
77
50
  standalone: true,
78
51
  imports: [
79
52
  DropiModalComponent,
@@ -94,7 +67,7 @@ export class AlertModalComponent implements OnInit, OnChanges, OnDestroy {
94
67
  @Input() baseZIndex: number = 0;
95
68
  @Output() modalOpenChange = new EventEmitter<boolean>();
96
69
  @Output() primaryButtonEvent = new EventEmitter<boolean>();
97
- @ViewChild('modalContainer', { read: ViewContainerRef, static: true })
70
+ @ViewChild("modalContainer", { read: ViewContainerRef, static: true })
98
71
  modalContainer!: ViewContainerRef;
99
72
  @Output() secondaryButtonEvent = new EventEmitter<boolean>();
100
73
  @Output() onHide = new EventEmitter();
@@ -111,34 +84,29 @@ export class AlertModalComponent implements OnInit, OnChanges, OnDestroy {
111
84
  secondaryButton: string;
112
85
  sourceAnimation: string;
113
86
  loadingType: LoadingType = LoadingType.Bowling;
114
- loadingTitle: string = 'Cargando...';
115
- loadingMessage: string = 'Por favor, espere un momento';
87
+ loadingTitle: string = "Cargando...";
88
+ loadingMessage: string = "Por favor, espere un momento";
116
89
  withLoadingProgressBar: boolean = false;
117
90
  loadingAnimation = {
118
- path: '/assets/lottie-files/loading.json',
119
- width: '300px',
120
- height: '300px',
121
- marginBottom: '0px',
91
+ path: "/assets/lottie-files/loading.json",
92
+ width: "300px",
93
+ height: "300px",
94
+ marginBottom: "0px",
122
95
  };
123
96
 
124
- configurationsJson: string = localStorage.getItem('DROPI_LoginResult');
125
- brandName: string;
126
-
97
+ brandName: string = "dropi";
127
98
  imageWhiteBrand: string;
128
-
129
99
  interval: any;
130
100
  countRegresive: number = 0;
131
101
 
132
102
  constructor(
133
- private templateService: TemplateAlertModalService,
134
- private settingService: SettingsService,
135
- private translateService: TranslateService,
103
+ @Inject("TemplateAlertModalService") private templateService: any,
104
+ @Inject("SettingsService") private settingService: any,
105
+ @Inject(TranslateService) private translateService: TranslateService,
136
106
  ) {
137
- this.brandName = this.settingService.getBrandInfo()
107
+ this.brandName = this.settingService?.getBrandInfo()
138
108
  ? this.settingService.getBrandInfo()?.name.toLowerCase()
139
- : 'dropi';
140
- // private sanitizer: DomSanitizer,
141
- // private componentFactoryResolver: ComponentFactoryResolver,
109
+ : "dropi";
142
110
  }
143
111
 
144
112
  ngOnInit(): void {
@@ -146,9 +114,9 @@ export class AlertModalComponent implements OnInit, OnChanges, OnDestroy {
146
114
  this.decideAnimation();
147
115
  this.decideLoadingAnimation();
148
116
 
149
- this.templateService.currentTemplate$
150
- .pipe(takeUntil(this.destroy$))
151
- .subscribe(({ template, context }) => {
117
+ this.templateService?.currentTemplate$
118
+ ?.pipe(takeUntil(this.destroy$))
119
+ ?.subscribe(({ template, context }) => {
152
120
  this.alertTemplate = template;
153
121
  this.contextTemplate = context;
154
122
  });
@@ -166,14 +134,20 @@ export class AlertModalComponent implements OnInit, OnChanges, OnDestroy {
166
134
  this.tittle = this.params.tittle;
167
135
  this.type = this.params.type;
168
136
  this.message = this.params.message;
169
- this.primaryButton = this.params.primaryButton ? this.params.primaryButton : 'Aceptar';
137
+ this.primaryButton = this.params.primaryButton
138
+ ? this.params.primaryButton
139
+ : "Aceptar";
170
140
  this.secondaryButton = this.params?.secondaryButton;
171
141
  this.displayButtons = this.params?.displayButtons == false ? false : true;
172
- this.loadingType = this.params.loadingType ? this.params.loadingType : LoadingType.Bowling;
173
- this.loadingTitle = this.params.loadingTitle ? this.params.loadingTitle : 'Cargando...';
142
+ this.loadingType = this.params.loadingType
143
+ ? this.params.loadingType
144
+ : LoadingType.Bowling;
145
+ this.loadingTitle = this.params.loadingTitle
146
+ ? this.params.loadingTitle
147
+ : "Cargando...";
174
148
  this.loadingMessage = this.params.loadingMessage
175
149
  ? this.params.loadingMessage
176
- : 'Por favor, espere un momento';
150
+ : "Por favor, espere un momento";
177
151
  this.withLoadingProgressBar = this.params.withLoadingProgressBar
178
152
  ? this.params.withLoadingProgressBar
179
153
  : false;
@@ -184,8 +158,7 @@ export class AlertModalComponent implements OnInit, OnChanges, OnDestroy {
184
158
  }
185
159
 
186
160
  closeModal(): void {
187
- this.visible = false; // Inicia animación interna en dropi-modal
188
- // No emitimos modalOpenChange todavía para evitar que el padre destruya el componente (si usa *ngIf)
161
+ this.visible = false;
189
162
  }
190
163
 
191
164
  primaryButtonAction(): void {
@@ -202,20 +175,20 @@ export class AlertModalComponent implements OnInit, OnChanges, OnDestroy {
202
175
 
203
176
  decideAnimation() {
204
177
  switch (this.type) {
205
- case 'question':
206
- this.sourceAnimation = '/assets/lottie-files/question.json';
178
+ case "question":
179
+ this.sourceAnimation = "/assets/lottie-files/question.json";
207
180
  break;
208
- case 'warning':
209
- this.sourceAnimation = '/assets/lottie-files/warning.json';
181
+ case "warning":
182
+ this.sourceAnimation = "/assets/lottie-files/warning.json";
210
183
  break;
211
- case 'success':
212
- this.sourceAnimation = '/assets/lottie-files/success.json';
184
+ case "success":
185
+ this.sourceAnimation = "/assets/lottie-files/success.json";
213
186
  break;
214
- case 'error':
215
- this.sourceAnimation = '/assets/lottie-files/failure.json';
187
+ case "error":
188
+ this.sourceAnimation = "/assets/lottie-files/failure.json";
216
189
  break;
217
190
  default:
218
- this.sourceAnimation = '';
191
+ this.sourceAnimation = "";
219
192
  break;
220
193
  }
221
194
  }
@@ -224,70 +197,67 @@ export class AlertModalComponent implements OnInit, OnChanges, OnDestroy {
224
197
  switch (this.loadingType) {
225
198
  case LoadingType.Bowling:
226
199
  const path =
227
- this.brandName.toLowerCase() === 'dropi'
228
- ? '/assets/lottie-files/loading.json'
229
- : '/assets/lottie-files/loading-mb.json';
200
+ this.brandName.toLowerCase() === "dropi"
201
+ ? "/assets/lottie-files/loading.json"
202
+ : "/assets/lottie-files/loading-mb.json";
230
203
  this.loadingAnimation = {
231
204
  path,
232
- width: '300px',
233
- height: '300px',
234
- marginBottom: '0px',
205
+ width: "300px",
206
+ height: "300px",
207
+ marginBottom: "0px",
235
208
  };
236
209
  break;
237
210
  case LoadingType.Heart:
238
211
  this.loadingAnimation = {
239
- path: '/assets/lottie-files/heart.json',
240
- width: '180px',
241
- height: '180px',
242
- marginBottom: '15px',
212
+ path: "/assets/lottie-files/heart.json",
213
+ width: "180px",
214
+ height: "180px",
215
+ marginBottom: "15px",
243
216
  };
244
217
  break;
245
218
  }
246
219
  }
247
220
 
248
- // src\assets\img\white-brands-events
249
221
  decideImgWhiteBrand() {
250
222
  switch (this.type) {
251
- case 'question':
223
+ case "question":
252
224
  return `/assets/img/white-brands-events/info.png`;
253
- case 'warning':
225
+ case "warning":
254
226
  return `/assets/img/white-brands-events/warning.png`;
255
- case 'success':
227
+ case "success":
256
228
  return `/assets/img/white-brands-events/success.png`;
257
- case 'error':
229
+ case "error":
258
230
  return `/assets/img/white-brands-events/error.png`;
259
231
  default:
260
- return '';
232
+ return "";
261
233
  }
262
234
  }
263
235
 
264
236
  startCountRegresive() {
265
237
  if (this.interval) {
266
- clearInterval(this.interval); // Asegura que no haya un intervalo activo
238
+ clearInterval(this.interval);
267
239
  }
268
240
 
269
- this.countRegresive = this.params.timer; // Reinicia la cuenta regresiva
241
+ this.countRegresive = this.params.timer;
270
242
 
271
243
  this.interval = setInterval(() => {
272
- console.log('Regresiva:', this.countRegresive); // Depuración
273
244
  this.countRegresive--;
274
245
  if (this.countRegresive <= 0) {
275
- clearInterval(this.interval); // Limpia el intervalo
246
+ clearInterval(this.interval);
276
247
  }
277
248
  }, 1000);
278
249
  }
279
250
 
280
251
  ngOnDestroy() {
281
- this.destroy$.next(); // 🔹 Cancela todas las suscripciones que usan takeUntil(this.destroy$)
282
- this.destroy$.complete(); // 🔹 Evita más emisiones en this.destroy$
252
+ this.destroy$.next();
253
+ this.destroy$.complete();
283
254
  }
284
255
 
285
256
  onHideModal() {
286
- this.modalOpenChange.emit(false); // Sincroniza estado con el padre al finalizar animación
257
+ this.modalOpenChange.emit(false);
287
258
  this.onHide.emit();
288
259
  }
289
260
 
290
- //metodo para validar si llega un sólo mensaje string o un array de strings
291
261
  isArray(value: any): boolean {
292
262
  return Array.isArray(value);
293
263
  }
@@ -0,0 +1,8 @@
1
+ <div class="alert-validation-container" *ngIf="visible">
2
+ <div class="alert-content">
3
+ <span class="message">{{ message }}</span>
4
+ <button *ngIf="routeLink" (click)="navigate()" class="nav-btn">
5
+ Ir al link
6
+ </button>
7
+ </div>
8
+ </div>
@@ -0,0 +1,225 @@
1
+ .alertx-warning {
2
+ color: #664d03;
3
+ background-color: #ffecb5;
4
+ border-color: #fbe9c9;
5
+ }
6
+
7
+ .alertx {
8
+ position: relative;
9
+ padding: 0.75rem 0.5rem;
10
+ margin-bottom: 1rem;
11
+ border: 1px solid transparent;
12
+ border-radius: 0.25rem;
13
+ display: flex;
14
+ flex-direction: row;
15
+ align-items: center;
16
+ flex-wrap: wrap;
17
+ }
18
+
19
+ .alertx-text {
20
+ font-weight: 500;
21
+ margin-right: 0.3rem;
22
+ font-size: 14px;
23
+ }
24
+
25
+ .alertx-text-underline {
26
+ font-weight: 300;
27
+ margin-right: 1.3rem;
28
+ font-size: 14px;
29
+ text-decoration: underline;
30
+ cursor: pointer;
31
+ }
32
+
33
+ .alertx-text-underline2 {
34
+ font-weight: 300;
35
+ font-size: 14px;
36
+ text-decoration: underline;
37
+ cursor: pointer;
38
+ }
39
+
40
+ .alertx-failed {
41
+ color: #842029;
42
+ background-color: #f8d7da;
43
+ border-color: #f5c2c7;
44
+ }
45
+
46
+ .alertx.alertx-warning {
47
+ border-radius: 8px;
48
+ border: 1px solid var(--Warning-warning-400, #f4c370);
49
+ background: var(--Warning-warning-50, #fef8ed);
50
+ }
51
+ .alertx {
52
+ position: relative;
53
+ padding: 8px 12px;
54
+ margin-bottom: 1rem;
55
+ border: 1px solid transparent;
56
+ border-radius: 0.25rem;
57
+ display: flex;
58
+ flex-direction: row;
59
+ align-items: center;
60
+ flex-wrap: wrap;
61
+ }
62
+
63
+ .alertx-text-gray {
64
+ font-weight: 500;
65
+ margin-right: 0.3rem;
66
+ font-size: 14px;
67
+ color: #7b8190;
68
+ }
69
+
70
+ .alertx-text2 {
71
+ font-weight: 400;
72
+ font-size: 14px;
73
+ }
74
+
75
+ .btnx-warning {
76
+ color: #fff;
77
+ background-color: #f1b44c;
78
+ border-color: #f1b44c;
79
+ font-weight: 500;
80
+ }
81
+
82
+ .contentcustom {
83
+ display: flex;
84
+ align-items: center;
85
+ flex-wrap: wrap;
86
+ justify-content: space-between;
87
+ gap: 10px;
88
+ }
89
+
90
+ .imgTutorial {
91
+ object-fit: contain;
92
+ }
93
+
94
+ @media (max-width: 550px) {
95
+ .btnx-warning {
96
+ margin-top: 0.5rem;
97
+ }
98
+
99
+ .contentcustom {
100
+ display: flex;
101
+ flex-direction: column;
102
+ align-items: flex-end;
103
+ }
104
+ }
105
+
106
+ .disabledElement {
107
+ opacity: 0.4;
108
+ pointer-events: none;
109
+ }
110
+
111
+ .alertx-warning1 {
112
+ color: #664d03;
113
+ background-color: #ffecb5;
114
+ border-color: #fbe9c9;
115
+ }
116
+
117
+ .alertx-gray {
118
+ color: #495057;
119
+ background-color: #f5f6f8;
120
+ border-color: #ced4da;
121
+ }
122
+
123
+ .alertx1 {
124
+ position: relative;
125
+ padding: 0.75rem 0.5rem;
126
+ margin-bottom: 1rem;
127
+ border: 1px solid transparent;
128
+ border-radius: 0.25rem;
129
+ display: flex;
130
+ flex-direction: row;
131
+ align-items: center;
132
+ flex-wrap: wrap;
133
+ }
134
+
135
+ .alertx-text1 {
136
+ font-weight: 500;
137
+ margin-left: 0.6rem;
138
+ margin-right: 1.3rem;
139
+ font-size: 14px;
140
+ }
141
+
142
+ .btnx-warning1 {
143
+ color: #fff;
144
+ font-weight: 500;
145
+ border-radius: 8px;
146
+ background: var(--Warning-warning-500, #f1b44c);
147
+ padding: 6px 10px;
148
+ font-size: 13px;
149
+ }
150
+
151
+ .btnx-gray {
152
+ color: #fff;
153
+ background-color: #74788d;
154
+ border-color: #74788d;
155
+ font-weight: 500;
156
+ }
157
+
158
+ .iframeVideo {
159
+ border-radius: 15px;
160
+ margin-top: 1rem;
161
+ width: 100%;
162
+ height: 100%;
163
+ }
164
+
165
+ :host ::ng-deep .alert-modal-yt {
166
+ .p-dialog {
167
+ background-color: white !important;
168
+ box-shadow: 0px 20px 25px 0px rgba(0, 0, 0, 0.1);
169
+ border-radius: 8px !important;
170
+ width: 70dvw;
171
+ box-sizing: border-box;
172
+ padding: 32px;
173
+ margin: 0 20px;
174
+ transition: all 0.3s ease-in-out;
175
+ height: auto;
176
+ }
177
+ .p-dialog-content {
178
+ padding: 0px;
179
+ overflow: hidden;
180
+ }
181
+ .p-dialog-header {
182
+ position: absolute;
183
+ right: -10px;
184
+ top: -10px;
185
+ background: transparent;
186
+ }
187
+ }
188
+
189
+ :host ::ng-deep .alert-modal2 {
190
+ .p-dialog {
191
+ background-color: white !important;
192
+ box-shadow: 0px 20px 25px 0px rgba(0, 0, 0, 0.1);
193
+ border-radius: 8px !important;
194
+ width: 70dvw;
195
+ box-sizing: border-box;
196
+ padding: 32px;
197
+ margin: 0 20px;
198
+ transition: all 0.3s ease-in-out;
199
+ height: auto;
200
+ }
201
+ .p-dialog-content {
202
+ padding: 0px;
203
+ overflow: hidden;
204
+ }
205
+ .p-dialog-header {
206
+ position: absolute;
207
+ right: -10px;
208
+ top: -10px;
209
+ background: transparent;
210
+ }
211
+ }
212
+
213
+ @media (max-width: 550px) {
214
+ .alert-reason1 {
215
+ margin-right: 2rem;
216
+ margin-left: 2rem;
217
+ }
218
+ .btnx-warning1 {
219
+ margin-top: 0.5rem;
220
+ }
221
+
222
+ .btnx-gray {
223
+ margin-top: 0.5rem;
224
+ }
225
+ }
@@ -0,0 +1,43 @@
1
+ import {
2
+ Component,
3
+ Input,
4
+ Output,
5
+ EventEmitter,
6
+ OnInit,
7
+ Inject,
8
+ CUSTOM_ELEMENTS_SCHEMA,
9
+ } from "@angular/core";
10
+ import { CommonModule } from "@angular/common";
11
+
12
+ @Component({
13
+ selector: "app-alert-validation",
14
+ standalone: true,
15
+ imports: [CommonModule],
16
+ schemas: [CUSTOM_ELEMENTS_SCHEMA],
17
+ templateUrl: "./alert-validation.component.html",
18
+ styleUrls: ["./alert-validation.component.scss"],
19
+ })
20
+ export class AlertValidationComponent implements OnInit {
21
+ @Input() public visible: boolean = false;
22
+ @Input() public visibleSupport: boolean = false;
23
+ @Input() public message: string = "";
24
+ @Input() public routeLink?: string;
25
+ @Input() public status: any;
26
+ @Input() public isBillingDataCompleted: boolean = true;
27
+ @Input() public messageAlertObject: any;
28
+ @Input() public visibleTutorial: boolean = false;
29
+
30
+ constructor(@Inject("Router") private router: any) {}
31
+
32
+ ngOnInit(): void {}
33
+
34
+ public navigate(): void {
35
+ if (this.routeLink && this.router) {
36
+ this.router.navigate([this.routeLink]);
37
+ }
38
+ }
39
+
40
+ public goValidate(): void {}
41
+ public openModal2(): void {}
42
+ public closeModal(): void {}
43
+ }
@@ -0,0 +1 @@
1
+ <div class="betta-tag pulse">Beta</div>
@@ -0,0 +1,26 @@
1
+ .betta-tag {
2
+ position: absolute;
3
+ background-color: #34c38f;
4
+ padding: 1px 4px;
5
+ border-radius: 4px;
6
+ border: 1px solid #ffffff;
7
+ font-size: 10px;
8
+ color: #ffffff;
9
+ z-index: 9;
10
+ right: -6px;
11
+ top: -10px;
12
+ font-weight: 600;
13
+ animation: pulse 1s infinite;
14
+ }
15
+
16
+ @keyframes pulse {
17
+ 0% {
18
+ transform: scale(1);
19
+ }
20
+ 50% {
21
+ transform: scale(1.1);
22
+ }
23
+ 100% {
24
+ transform: scale(1);
25
+ }
26
+ }
@@ -0,0 +1,11 @@
1
+ import { Component } from '@angular/core';
2
+
3
+ @Component({
4
+ selector: 'app-beta-tag',
5
+ templateUrl: './beta-tag.component.html',
6
+ styleUrls: ['./beta-tag.component.scss'],
7
+ standalone: true
8
+ })
9
+ export class BetaTagComponent {
10
+
11
+ }
@@ -1,5 +1,13 @@
1
- <p-breadcrumb
2
- class="max-w-full breadcumb-list mb-4 mt-4"
3
- [model]="items"
4
- [home]="home"
5
- ></p-breadcrumb>
1
+ <div class="breadcrumb-container">
2
+ <ul class="breadcrumb-list">
3
+ <li class="breadcrumb-item home" *ngIf="home">
4
+ <a [href]="home.routerLink">
5
+ <i [class]="home.icon"></i>
6
+ </a>
7
+ </li>
8
+ <li class="breadcrumb-item" *ngFor="let item of items">
9
+ <span class="separator">/</span>
10
+ <a [href]="item.routerLink">{{ item.label }}</a>
11
+ </li>
12
+ </ul>
13
+ </div>
@@ -28,6 +28,7 @@
28
28
  width: 12px;
29
29
  }
30
30
 
31
+ /*
31
32
  :host ::ng-deep .card-icon {
32
33
  background-image: url('../../../assets/img/icons/card.svg');
33
34
  width: 20px;
@@ -39,8 +40,14 @@
39
40
  display: none;
40
41
  }
41
42
  }
43
+ */
42
44
 
43
45
  // color #A3A6B8 breadcrum disable color
44
- :host ::ng-deep .breadcumb-list .p-breadcrumb li.p-disabled span.p-menuitem-text {
46
+ :host
47
+ ::ng-deep
48
+ .breadcumb-list
49
+ .p-breadcrumb
50
+ li.p-disabled
51
+ span.p-menuitem-text {
45
52
  color: #a3a6b8;
46
53
  }