@unipin/angular-applet 18.9.7 → 21.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (275) hide show
  1. package/README.md +49 -10
  2. package/common/assets/sprites/flagGlobal.png +0 -0
  3. package/common/assets/sprites/flagSprite42.webp +0 -0
  4. package/common/assets/styles/freakflags.scss +263 -0
  5. package/common/assets/styles/theme.css +69 -0
  6. package/fesm2022/unipin-angular-applet-accordion.mjs +242 -0
  7. package/fesm2022/unipin-angular-applet-accordion.mjs.map +1 -0
  8. package/fesm2022/unipin-angular-applet-alert-dialog.mjs +267 -0
  9. package/fesm2022/unipin-angular-applet-alert-dialog.mjs.map +1 -0
  10. package/fesm2022/unipin-angular-applet-alert.mjs +94 -0
  11. package/fesm2022/unipin-angular-applet-alert.mjs.map +1 -0
  12. package/fesm2022/unipin-angular-applet-auth.mjs +707 -0
  13. package/fesm2022/unipin-angular-applet-auth.mjs.map +1 -0
  14. package/fesm2022/unipin-angular-applet-avatar.mjs +41 -0
  15. package/fesm2022/unipin-angular-applet-avatar.mjs.map +1 -0
  16. package/fesm2022/unipin-angular-applet-badge.mjs +50 -0
  17. package/fesm2022/unipin-angular-applet-badge.mjs.map +1 -0
  18. package/fesm2022/unipin-angular-applet-buttons.mjs +263 -0
  19. package/fesm2022/unipin-angular-applet-buttons.mjs.map +1 -0
  20. package/fesm2022/unipin-angular-applet-calendar.mjs +492 -0
  21. package/fesm2022/unipin-angular-applet-calendar.mjs.map +1 -0
  22. package/fesm2022/unipin-angular-applet-collapsible.mjs +97 -0
  23. package/fesm2022/unipin-angular-applet-collapsible.mjs.map +1 -0
  24. package/fesm2022/unipin-angular-applet-common.mjs +342 -0
  25. package/fesm2022/unipin-angular-applet-common.mjs.map +1 -0
  26. package/fesm2022/unipin-angular-applet-containers.mjs +472 -0
  27. package/fesm2022/unipin-angular-applet-containers.mjs.map +1 -0
  28. package/fesm2022/unipin-angular-applet-dialog.mjs +535 -0
  29. package/fesm2022/unipin-angular-applet-dialog.mjs.map +1 -0
  30. package/fesm2022/unipin-angular-applet-forms.mjs +1699 -0
  31. package/fesm2022/unipin-angular-applet-forms.mjs.map +1 -0
  32. package/fesm2022/unipin-angular-applet-froala.mjs +298 -0
  33. package/fesm2022/unipin-angular-applet-froala.mjs.map +1 -0
  34. package/fesm2022/unipin-angular-applet-grids.mjs +105 -0
  35. package/fesm2022/unipin-angular-applet-grids.mjs.map +1 -0
  36. package/fesm2022/unipin-angular-applet-infinite-scroll.mjs +86 -0
  37. package/fesm2022/unipin-angular-applet-infinite-scroll.mjs.map +1 -0
  38. package/fesm2022/unipin-angular-applet-json-viewer.mjs +71 -0
  39. package/fesm2022/unipin-angular-applet-json-viewer.mjs.map +1 -0
  40. package/fesm2022/unipin-angular-applet-loading-dialog.mjs +252 -0
  41. package/fesm2022/unipin-angular-applet-loading-dialog.mjs.map +1 -0
  42. package/fesm2022/unipin-angular-applet-markdown.mjs +703 -0
  43. package/fesm2022/unipin-angular-applet-markdown.mjs.map +1 -0
  44. package/fesm2022/unipin-angular-applet-micro-frontend.mjs +75 -0
  45. package/fesm2022/unipin-angular-applet-micro-frontend.mjs.map +1 -0
  46. package/fesm2022/unipin-angular-applet-popover.mjs +333 -0
  47. package/fesm2022/unipin-angular-applet-popover.mjs.map +1 -0
  48. package/fesm2022/unipin-angular-applet-progress-bar.mjs +38 -0
  49. package/fesm2022/unipin-angular-applet-progress-bar.mjs.map +1 -0
  50. package/fesm2022/unipin-angular-applet-skeleton.mjs +32 -0
  51. package/fesm2022/unipin-angular-applet-skeleton.mjs.map +1 -0
  52. package/fesm2022/unipin-angular-applet-spinner.mjs +144 -0
  53. package/fesm2022/unipin-angular-applet-spinner.mjs.map +1 -0
  54. package/fesm2022/unipin-angular-applet-swipeable.mjs +270 -0
  55. package/fesm2022/unipin-angular-applet-swipeable.mjs.map +1 -0
  56. package/fesm2022/unipin-angular-applet-tabs.mjs +142 -0
  57. package/fesm2022/unipin-angular-applet-tabs.mjs.map +1 -0
  58. package/fesm2022/unipin-angular-applet-tooltip.mjs +118 -0
  59. package/fesm2022/unipin-angular-applet-tooltip.mjs.map +1 -0
  60. package/fesm2022/unipin-angular-applet.mjs +5 -4617
  61. package/fesm2022/unipin-angular-applet.mjs.map +1 -1
  62. package/package.json +132 -29
  63. package/types/unipin-angular-applet-accordion.d.ts +60 -0
  64. package/types/unipin-angular-applet-alert-dialog.d.ts +35 -0
  65. package/types/unipin-angular-applet-alert.d.ts +34 -0
  66. package/types/unipin-angular-applet-auth.d.ts +225 -0
  67. package/types/unipin-angular-applet-avatar.d.ts +16 -0
  68. package/types/unipin-angular-applet-badge.d.ts +20 -0
  69. package/types/unipin-angular-applet-buttons.d.ts +37 -0
  70. package/types/unipin-angular-applet-calendar.d.ts +44 -0
  71. package/types/unipin-angular-applet-collapsible.d.ts +35 -0
  72. package/types/unipin-angular-applet-common.d.ts +94 -0
  73. package/types/unipin-angular-applet-containers.d.ts +179 -0
  74. package/types/unipin-angular-applet-dialog.d.ts +180 -0
  75. package/types/unipin-angular-applet-forms.d.ts +412 -0
  76. package/types/unipin-angular-applet-froala.d.ts +85 -0
  77. package/types/unipin-angular-applet-grids.d.ts +22 -0
  78. package/types/unipin-angular-applet-infinite-scroll.d.ts +51 -0
  79. package/types/unipin-angular-applet-json-viewer.d.ts +30 -0
  80. package/types/unipin-angular-applet-loading-dialog.d.ts +19 -0
  81. package/types/unipin-angular-applet-markdown.d.ts +119 -0
  82. package/types/unipin-angular-applet-micro-frontend.d.ts +11 -0
  83. package/types/unipin-angular-applet-popover.d.ts +58 -0
  84. package/types/unipin-angular-applet-progress-bar.d.ts +14 -0
  85. package/types/unipin-angular-applet-skeleton.d.ts +11 -0
  86. package/types/unipin-angular-applet-spinner.d.ts +12 -0
  87. package/types/unipin-angular-applet-swipeable.d.ts +66 -0
  88. package/types/unipin-angular-applet-tabs.d.ts +40 -0
  89. package/types/unipin-angular-applet-tooltip.d.ts +32 -0
  90. package/types/unipin-angular-applet.d.ts +3 -0
  91. package/esm2022/graphql/generated.mjs +0 -938
  92. package/esm2022/lib/components/approval/detail/approval-detail.component.mjs +0 -78
  93. package/esm2022/lib/components/approval/form/approval-form.component.mjs +0 -128
  94. package/esm2022/lib/components/approval/index.mjs +0 -5
  95. package/esm2022/lib/components/approval/list/approval-list.component.mjs +0 -114
  96. package/esm2022/lib/components/approval/list/provide-approval-entities.util.mjs +0 -9
  97. package/esm2022/lib/components/approval/services/approval.service.mjs +0 -46
  98. package/esm2022/lib/components/audit/detail/audit-detail.component.mjs +0 -123
  99. package/esm2022/lib/components/audit/index.mjs +0 -3
  100. package/esm2022/lib/components/audit/list/audit-list.component.mjs +0 -81
  101. package/esm2022/lib/components/audit/service/audit.service.mjs +0 -49
  102. package/esm2022/lib/components/audit/types/audit-detail-form.type.mjs +0 -2
  103. package/esm2022/lib/components/buttons/group/btn-group.component.mjs +0 -43
  104. package/esm2022/lib/components/buttons/group/interfaces/btn-group-config.interface.mjs +0 -2
  105. package/esm2022/lib/components/buttons/index.mjs +0 -3
  106. package/esm2022/lib/components/buttons/loading/btn-loading.component.mjs +0 -48
  107. package/esm2022/lib/components/containers/applet-container/applet-container.component.mjs +0 -55
  108. package/esm2022/lib/components/containers/applet-container/provide-applet-config.util.mjs +0 -9
  109. package/esm2022/lib/components/containers/colum-header-container/column-header-container.component.mjs +0 -23
  110. package/esm2022/lib/components/containers/column-container/column-container.component.mjs +0 -79
  111. package/esm2022/lib/components/containers/column-container/directives/lazy-route.directive.mjs +0 -57
  112. package/esm2022/lib/components/containers/index.mjs +0 -7
  113. package/esm2022/lib/components/containers/list-container/index.mjs +0 -3
  114. package/esm2022/lib/components/containers/list-container/interfaces/list-container-config.interface.mjs +0 -2
  115. package/esm2022/lib/components/containers/list-container/list-pagination-container/list-pagination-container.component.mjs +0 -58
  116. package/esm2022/lib/components/containers/list-container/list-snapshot-container/list-snapshot-container.component.mjs +0 -57
  117. package/esm2022/lib/components/containers/modal-container/modal-container.component.mjs +0 -40
  118. package/esm2022/lib/components/filter/filter.component.mjs +0 -222
  119. package/esm2022/lib/components/filter/index.mjs +0 -2
  120. package/esm2022/lib/components/filter/interfaces/filter-config.interface.mjs +0 -2
  121. package/esm2022/lib/components/filter/interfaces/filter-field.interface.mjs +0 -2
  122. package/esm2022/lib/components/filter/interfaces/filter-search-event.interface.mjs +0 -2
  123. package/esm2022/lib/components/forms/country-input/form-country-input.component.mjs +0 -122
  124. package/esm2022/lib/components/forms/currency-input/form-currency-input.component.mjs +0 -157
  125. package/esm2022/lib/components/forms/date/form-date.component.mjs +0 -117
  126. package/esm2022/lib/components/forms/image-picker/directives/drag-n-drop.directive.mjs +0 -49
  127. package/esm2022/lib/components/forms/image-picker/form-image-picker.component.mjs +0 -68
  128. package/esm2022/lib/components/forms/index.mjs +0 -12
  129. package/esm2022/lib/components/forms/input/form-input.component.mjs +0 -98
  130. package/esm2022/lib/components/forms/number/form-number.component.mjs +0 -97
  131. package/esm2022/lib/components/forms/number/pipes/locale-number.pipe.mjs +0 -33
  132. package/esm2022/lib/components/forms/password/form-password.component.mjs +0 -100
  133. package/esm2022/lib/components/forms/rate-group-code-input/form-rate-group-code-input.component.mjs +0 -135
  134. package/esm2022/lib/components/forms/searchable-select/form-searchable-select.component.mjs +0 -138
  135. package/esm2022/lib/components/forms/select/form-select.component.mjs +0 -119
  136. package/esm2022/lib/components/forms/textarea/form-textarea.component.mjs +0 -88
  137. package/esm2022/lib/components/grids/grid-pagination/grid-pagination.component.mjs +0 -111
  138. package/esm2022/lib/components/grids/grid-snapshot/grid-snapshot.component.mjs +0 -109
  139. package/esm2022/lib/components/grids/index.mjs +0 -4
  140. package/esm2022/lib/components/grids/interfaces/grid-config.interface.mjs +0 -2
  141. package/esm2022/lib/components/grids/services/grid.service.mjs +0 -25
  142. package/esm2022/lib/components/index.mjs +0 -9
  143. package/esm2022/lib/components/infinite-scroll/directive/infinite-scroll.directive.mjs +0 -43
  144. package/esm2022/lib/components/infinite-scroll/index.mjs +0 -3
  145. package/esm2022/lib/components/infinite-scroll/infinite-scroll.component.mjs +0 -36
  146. package/esm2022/lib/components/tabs/index.mjs +0 -3
  147. package/esm2022/lib/components/tabs/tab-content/tab-content.component.mjs +0 -37
  148. package/esm2022/lib/components/tabs/tab-group/tab-group.component.mjs +0 -47
  149. package/esm2022/lib/guards/auth/auth.guard.mjs +0 -10
  150. package/esm2022/lib/guards/index.mjs +0 -2
  151. package/esm2022/lib/interceptors/header/header.interceptor.mjs +0 -29
  152. package/esm2022/lib/interceptors/index.mjs +0 -3
  153. package/esm2022/lib/interceptors/refresh-token/refresh-token.interceptor.mjs +0 -83
  154. package/esm2022/lib/interfaces/index.mjs +0 -2
  155. package/esm2022/lib/interfaces/user/user.interface.mjs +0 -2
  156. package/esm2022/lib/modules/index.mjs +0 -3
  157. package/esm2022/lib/modules/micro-frontend/index.mjs +0 -2
  158. package/esm2022/lib/modules/micro-frontend/utils/mf-bootstrap.util.mjs +0 -55
  159. package/esm2022/lib/modules/micro-frontend/utils/mf-global-state.util.mjs +0 -14
  160. package/esm2022/lib/modules/permission/directive/permission.directive.mjs +0 -41
  161. package/esm2022/lib/modules/permission/guards/permission.guard.mjs +0 -26
  162. package/esm2022/lib/modules/permission/index.mjs +0 -7
  163. package/esm2022/lib/modules/permission/pages/401/unauthorized.page.mjs +0 -15
  164. package/esm2022/lib/modules/permission/pages/loading/loading.page.mjs +0 -65
  165. package/esm2022/lib/modules/permission/pages/loading/provide-loading-config.util.mjs +0 -9
  166. package/esm2022/lib/modules/permission/services/permission.service.mjs +0 -50
  167. package/esm2022/lib/resolvers/auth/auth.resolver.mjs +0 -87
  168. package/esm2022/lib/resolvers/index.mjs +0 -2
  169. package/esm2022/lib/services/auth/auth.service.mjs +0 -171
  170. package/esm2022/lib/services/country/country.service.mjs +0 -43
  171. package/esm2022/lib/services/currency/currency.service.mjs +0 -40
  172. package/esm2022/lib/services/index.mjs +0 -6
  173. package/esm2022/lib/services/profile/profile.service.mjs +0 -82
  174. package/esm2022/lib/services/rate-group-code/rate-group-code.service.mjs +0 -31
  175. package/esm2022/lib/utils/contrast-color-generator/contrast-color-generator.util.mjs +0 -16
  176. package/esm2022/lib/utils/form-error-message/form-error-message.util.mjs +0 -21
  177. package/esm2022/lib/utils/format-capitalize/format-capitalize.util.mjs +0 -18
  178. package/esm2022/lib/utils/index.mjs +0 -5
  179. package/esm2022/lib/utils/redirect-to-first-menu/redirect-to-first-menu.util.mjs +0 -9
  180. package/esm2022/public-api.mjs +0 -10
  181. package/esm2022/unipin-angular-applet.mjs +0 -2
  182. package/graphql/generated.d.ts +0 -16225
  183. package/index.d.ts +0 -2
  184. package/lib/components/approval/detail/approval-detail.component.d.ts +0 -26
  185. package/lib/components/approval/form/approval-form.component.d.ts +0 -33
  186. package/lib/components/approval/index.d.ts +0 -4
  187. package/lib/components/approval/list/approval-list.component.d.ts +0 -33
  188. package/lib/components/approval/list/provide-approval-entities.util.d.ts +0 -3
  189. package/lib/components/approval/services/approval.service.d.ts +0 -18
  190. package/lib/components/audit/detail/audit-detail.component.d.ts +0 -33
  191. package/lib/components/audit/index.d.ts +0 -2
  192. package/lib/components/audit/list/audit-list.component.d.ts +0 -31
  193. package/lib/components/audit/service/audit.service.d.ts +0 -15
  194. package/lib/components/audit/types/audit-detail-form.type.d.ts +0 -12
  195. package/lib/components/buttons/group/btn-group.component.d.ts +0 -18
  196. package/lib/components/buttons/group/interfaces/btn-group-config.interface.d.ts +0 -11
  197. package/lib/components/buttons/index.d.ts +0 -3
  198. package/lib/components/buttons/loading/btn-loading.component.d.ts +0 -19
  199. package/lib/components/containers/applet-container/applet-container.component.d.ts +0 -22
  200. package/lib/components/containers/applet-container/provide-applet-config.util.d.ts +0 -15
  201. package/lib/components/containers/colum-header-container/column-header-container.component.d.ts +0 -7
  202. package/lib/components/containers/column-container/column-container.component.d.ts +0 -26
  203. package/lib/components/containers/column-container/directives/lazy-route.directive.d.ts +0 -17
  204. package/lib/components/containers/index.d.ts +0 -6
  205. package/lib/components/containers/list-container/index.d.ts +0 -3
  206. package/lib/components/containers/list-container/interfaces/list-container-config.interface.d.ts +0 -9
  207. package/lib/components/containers/list-container/list-pagination-container/list-pagination-container.component.d.ts +0 -23
  208. package/lib/components/containers/list-container/list-snapshot-container/list-snapshot-container.component.d.ts +0 -23
  209. package/lib/components/containers/modal-container/modal-container.component.d.ts +0 -16
  210. package/lib/components/filter/filter.component.d.ts +0 -44
  211. package/lib/components/filter/index.d.ts +0 -4
  212. package/lib/components/filter/interfaces/filter-config.interface.d.ts +0 -5
  213. package/lib/components/filter/interfaces/filter-field.interface.d.ts +0 -24
  214. package/lib/components/filter/interfaces/filter-search-event.interface.d.ts +0 -4
  215. package/lib/components/forms/country-input/form-country-input.component.d.ts +0 -41
  216. package/lib/components/forms/currency-input/form-currency-input.component.d.ts +0 -52
  217. package/lib/components/forms/date/form-date.component.d.ts +0 -33
  218. package/lib/components/forms/image-picker/directives/drag-n-drop.directive.d.ts +0 -10
  219. package/lib/components/forms/image-picker/form-image-picker.component.d.ts +0 -21
  220. package/lib/components/forms/index.d.ts +0 -11
  221. package/lib/components/forms/input/form-input.component.d.ts +0 -31
  222. package/lib/components/forms/number/form-number.component.d.ts +0 -27
  223. package/lib/components/forms/number/pipes/locale-number.pipe.d.ts +0 -8
  224. package/lib/components/forms/password/form-password.component.d.ts +0 -27
  225. package/lib/components/forms/rate-group-code-input/form-rate-group-code-input.component.d.ts +0 -41
  226. package/lib/components/forms/searchable-select/form-searchable-select.component.d.ts +0 -42
  227. package/lib/components/forms/select/form-select.component.d.ts +0 -34
  228. package/lib/components/forms/textarea/form-textarea.component.d.ts +0 -26
  229. package/lib/components/grids/grid-pagination/grid-pagination.component.d.ts +0 -33
  230. package/lib/components/grids/grid-snapshot/grid-snapshot.component.d.ts +0 -36
  231. package/lib/components/grids/index.d.ts +0 -4
  232. package/lib/components/grids/interfaces/grid-config.interface.d.ts +0 -16
  233. package/lib/components/grids/services/grid.service.d.ts +0 -12
  234. package/lib/components/index.d.ts +0 -8
  235. package/lib/components/infinite-scroll/directive/infinite-scroll.directive.d.ts +0 -15
  236. package/lib/components/infinite-scroll/index.d.ts +0 -2
  237. package/lib/components/infinite-scroll/infinite-scroll.component.d.ts +0 -12
  238. package/lib/components/tabs/index.d.ts +0 -6
  239. package/lib/components/tabs/tab-content/tab-content.component.d.ts +0 -14
  240. package/lib/components/tabs/tab-group/tab-group.component.d.ts +0 -18
  241. package/lib/guards/auth/auth.guard.d.ts +0 -1
  242. package/lib/guards/index.d.ts +0 -1
  243. package/lib/interceptors/header/header.interceptor.d.ts +0 -9
  244. package/lib/interceptors/index.d.ts +0 -2
  245. package/lib/interceptors/refresh-token/refresh-token.interceptor.d.ts +0 -14
  246. package/lib/interfaces/index.d.ts +0 -1
  247. package/lib/interfaces/user/user.interface.d.ts +0 -27
  248. package/lib/modules/index.d.ts +0 -2
  249. package/lib/modules/micro-frontend/index.d.ts +0 -1
  250. package/lib/modules/micro-frontend/utils/mf-bootstrap.util.d.ts +0 -9
  251. package/lib/modules/micro-frontend/utils/mf-global-state.util.d.ts +0 -4
  252. package/lib/modules/permission/directive/permission.directive.d.ts +0 -16
  253. package/lib/modules/permission/guards/permission.guard.d.ts +0 -2
  254. package/lib/modules/permission/index.d.ts +0 -6
  255. package/lib/modules/permission/pages/401/unauthorized.page.d.ts +0 -5
  256. package/lib/modules/permission/pages/loading/loading.page.d.ts +0 -18
  257. package/lib/modules/permission/pages/loading/provide-loading-config.util.d.ts +0 -10
  258. package/lib/modules/permission/services/permission.service.d.ts +0 -21
  259. package/lib/resolvers/auth/auth.resolver.d.ts +0 -14
  260. package/lib/resolvers/index.d.ts +0 -1
  261. package/lib/services/auth/auth.service.d.ts +0 -39
  262. package/lib/services/country/country.service.d.ts +0 -16
  263. package/lib/services/currency/currency.service.d.ts +0 -16
  264. package/lib/services/index.d.ts +0 -5
  265. package/lib/services/profile/profile.service.d.ts +0 -12
  266. package/lib/services/rate-group-code/rate-group-code.service.d.ts +0 -14
  267. package/lib/utils/contrast-color-generator/contrast-color-generator.util.d.ts +0 -4
  268. package/lib/utils/form-error-message/form-error-message.util.d.ts +0 -2
  269. package/lib/utils/format-capitalize/format-capitalize.util.d.ts +0 -1
  270. package/lib/utils/index.d.ts +0 -4
  271. package/lib/utils/redirect-to-first-menu/redirect-to-first-menu.util.d.ts +0 -2
  272. package/public-api.d.ts +0 -11
  273. package/src/assets/scss/forms.scss +0 -65
  274. package/src/assets/scss/grid.scss +0 -7505
  275. package/src/assets/scss/select.scss +0 -328
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unipin-angular-applet-collapsible.mjs","sources":["../../../projects/unipin-angular/collapsible/directives/collapsible.directive.ts","../../../projects/unipin-angular/collapsible/directives/collapsible-trigger.directive.ts","../../../projects/unipin-angular/collapsible/directives/collapsible-content.directive.ts","../../../projects/unipin-angular/collapsible/unipin-angular-applet-collapsible.ts"],"sourcesContent":["import { Directive, input, model } from '@angular/core';\nimport { ClassValue } from 'clsx';\n\n@Directive({\n standalone: true,\n exportAs: 'upCollapsible',\n selector: '[upCollapsible]',\n host: {\n '[class]': 'inlineClass()',\n '[attr.data-state]': `isOpened()? 'open' : 'closed'`,\n }\n})\nexport class UpCollapsibleDirective {\n \n public readonly isOpened= model<boolean>(false);\n public readonly disabled = input<boolean>(false);\n public readonly inlineClass = input<ClassValue>('', { alias: 'class' });\n\n public setOpen(value: boolean): void{\n if (!this.disabled()) {\n this.isOpened.set(value);\n }\n }\n}\n","import { computed, Directive, input } from '@angular/core';\nimport { ClassValue } from 'clsx';\nimport { up } from '@unipin/angular-applet/common';\nimport { UpCollapsibleDirective } from './collapsible.directive';\n\n@Directive({\n standalone: true,\n exportAs: 'upCollapsibleTrigger',\n selector: '[upCollapsibleTrigger]',\n host: {\n '[class]': '_computedClass()',\n '[attr.disabled]': 'parent.disabled() || null',\n '[attr.data-state]': `parent.isOpened()? 'open' : 'closed'`,\n '(click)': 'toggleState()'\n }\n})\nexport class UpCollapsibleTriggerDirective {\n\n public readonly inlineClass = input<ClassValue>('', { alias: 'class' });\n\n protected readonly _computedClass = computed(\n () => {\n return up(\n 'cursor-pointer',\n this.inlineClass(),\n );\n }\n );\n\n constructor(\n protected readonly parent: UpCollapsibleDirective\n ) { }\n\n public toggleState(): void{\n this.parent.setOpen(\n !this.parent.isOpened()\n );\n }\n}\n","import { computed, Directive, ElementRef, input } from '@angular/core';\nimport { ClassValue } from 'clsx';\nimport { up } from '@unipin/angular-applet/common';\nimport { UpCollapsibleDirective } from './collapsible.directive';\n\n@Directive({\n standalone: true,\n exportAs: 'upCollapsibleContent',\n selector: '[upCollapsibleContent]',\n host: {\n '[class]': '_computedClass()',\n '[attr.data-disabled]': 'parent.disabled() || null',\n '[attr.data-state]': `parent.isOpened()? 'open' : 'closed'`,\n '[style.--up-collapsible-content-height]': '_contentHeight()',\n }\n})\nexport class UpCollapsibleContentDirective {\n\n public readonly inlineClass = input<ClassValue>('', { alias: 'class' });\n\n protected readonly _contentHeight = computed(\n () => {\n const element = this.elementRef.nativeElement as HTMLElement;\n return element? `${ element.scrollHeight }px` : '0px';\n }\n );\n\n protected readonly _computedClass = computed(\n () => {\n return up(\n 'overflow-hidden transition-all duration-300 ease-in-out',\n 'h-0 data-[state=\"open\"]:h-[var(--up-collapsible-content-height)]',\n 'invisible data-[state=\"open\"]:visible',\n this.inlineClass(),\n );\n }\n );\n\n constructor(\n protected readonly elementRef: ElementRef,\n protected readonly parent: UpCollapsibleDirective,\n ) { }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.UpCollapsibleDirective"],"mappings":";;;;MAYa,sBAAsB,CAAA;AATnC,IAAA,WAAA,GAAA;AAWkB,QAAA,IAAA,CAAA,QAAQ,GAAE,KAAK,CAAU,KAAK,oDAAC;AAC/B,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAU,KAAK,oDAAC;AAChC,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAa,EAAE,+CAA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AAA,EAAA,KAAA,EAAA,EAAA,CAAA,UAAA,EAAA,EAAA,EAAA,KAAA,EAAAA,sBAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAA7B,6BAA6B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,wBAAA,EAAA,MAAA,EAAA,EAAA,WAAA,EAAA,EAAA,iBAAA,EAAA,aAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,OAAA,EAAA,kBAAA,EAAA,oBAAA,EAAA,2BAAA,EAAA,iBAAA,EAAA,sCAAA,EAAA,uCAAA,EAAA,kBAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA,sBAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAA7B,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBAXzC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,sBAAsB;AAChC,oBAAA,QAAQ,EAAE,wBAAwB;AAClC,oBAAA,IAAI,EAAE;AACJ,wBAAA,SAAS,EAAE,kBAAkB;AAC7B,wBAAA,sBAAsB,EAAE,2BAA2B;AACnD,wBAAA,mBAAmB,EAAE,CAAA,oCAAA,CAAsC;AAC3D,wBAAA,yCAAyC,EAAE,kBAAkB;AAC9D;AACF,iBAAA;;;ACfD;;AAEG;;;;"}
@@ -0,0 +1,342 @@
1
+ import { clsx } from 'clsx';
2
+ import { twMerge } from 'tailwind-merge';
3
+ import * as i0 from '@angular/core';
4
+ import { Pipe, Injectable, input, output, HostListener, Directive } from '@angular/core';
5
+ import { formatNumber } from '@angular/common';
6
+ import * as i1 from '@angular/platform-browser';
7
+ import { of } from 'rxjs';
8
+ import { map, catchError } from 'rxjs/operators';
9
+ import * as i1$1 from '@unipin/angular-gql';
10
+
11
+ function up(...inputs) {
12
+ return twMerge(clsx(inputs));
13
+ }
14
+
15
+ function compressImage({ file, quality = 0.8, maxWidth = 800, maxHeight = 800 }) {
16
+ return new Promise((resolve, reject) => {
17
+ const img = new Image();
18
+ img.onload = () => {
19
+ let { width, height } = img;
20
+ const widthScale = maxWidth / width;
21
+ const heightScale = maxHeight / height;
22
+ const scale = Math.min(widthScale, heightScale, 1);
23
+ const targetWidth = Math.round(width * scale);
24
+ const targetHeight = Math.round(height * scale);
25
+ const canvas = document.createElement('canvas');
26
+ canvas.width = targetWidth;
27
+ canvas.height = targetHeight;
28
+ const ctx = canvas.getContext('2d');
29
+ if (!ctx) {
30
+ return reject(new Error('Canvas context is not available'));
31
+ }
32
+ ctx.drawImage(img, 0, 0, targetWidth, targetHeight);
33
+ canvas.toBlob((blob) => {
34
+ if (!blob) {
35
+ return reject(new Error('Failed To Compress Image'));
36
+ }
37
+ const compressedFile = new File([blob], file.name.replace(/\.[^.]+$/, ".jpg"), {
38
+ type: 'image/jpeg',
39
+ });
40
+ resolve(compressedFile);
41
+ }, 'image/jpeg', quality);
42
+ };
43
+ img.onerror = () => reject(new Error('Failed to load image'));
44
+ img.src = URL.createObjectURL(file);
45
+ });
46
+ }
47
+
48
+ function generateContrastColor(str) {
49
+ let hash = 0;
50
+ for (let i = 0; i < str.length; i++) {
51
+ hash = str.charCodeAt(i) + ((hash << 5) - hash);
52
+ hash = hash & hash;
53
+ }
54
+ const r = (hash >> 16) & 0xff;
55
+ const g = (hash >> 8) & 0xff;
56
+ const b = hash & 0xff;
57
+ const background = `#${((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1)}`;
58
+ const luminance = 0.299 * r + 0.587 * g + 0.114 * b;
59
+ const foreground = luminance > 186 ? '#000' : '#fff';
60
+ return { background, foreground };
61
+ }
62
+
63
+ class UpPricePipe {
64
+ transform(value, magnifyValue = 1, format = 'number') {
65
+ return formatPrice(+value, +magnifyValue, format);
66
+ }
67
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: UpPricePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
68
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.0.0", ngImport: i0, type: UpPricePipe, isStandalone: true, name: "upPrice" }); }
69
+ }
70
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: UpPricePipe, decorators: [{
71
+ type: Pipe,
72
+ args: [{
73
+ pure: true,
74
+ standalone: true,
75
+ name: 'upPrice'
76
+ }]
77
+ }] });
78
+ function formatPrice(value, magnifyValue = 1, format = 'number') {
79
+ if (!magnifyValue ||
80
+ magnifyValue === 1 ||
81
+ Math.log10(magnifyValue) % 1 !== 0) {
82
+ if (format === 'string') {
83
+ return formatNumber(value, 'en-US', `1.0-0`);
84
+ }
85
+ return value;
86
+ }
87
+ const floatPoint = Math.log10(magnifyValue);
88
+ if (format === 'string') {
89
+ return formatNumber(value / magnifyValue, 'en-US', `1.0-${floatPoint}`);
90
+ }
91
+ return +((value / magnifyValue).toFixed(floatPoint));
92
+ }
93
+
94
+ class UpInitialPipe {
95
+ transform(value) {
96
+ return formatInitial(value);
97
+ }
98
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: UpInitialPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
99
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.0.0", ngImport: i0, type: UpInitialPipe, isStandalone: true, name: "upInitial" }); }
100
+ }
101
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: UpInitialPipe, decorators: [{
102
+ type: Pipe,
103
+ args: [{
104
+ pure: true,
105
+ standalone: true,
106
+ name: 'upInitial'
107
+ }]
108
+ }] });
109
+ function formatInitial(value) {
110
+ if (!value)
111
+ return '';
112
+ const words = value.trim().replace(/\s+/g, ' ').split(' ');
113
+ if (words.length > 1) {
114
+ return (words[0][0] + words[words.length - 1][0]).toUpperCase();
115
+ }
116
+ return words[0].substring(0, 2).toUpperCase();
117
+ }
118
+
119
+ class UpLinkifyPipe {
120
+ constructor(sanitizer) {
121
+ this.sanitizer = sanitizer;
122
+ }
123
+ transform(value) {
124
+ return formatLinkify(value, this.sanitizer);
125
+ }
126
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: UpLinkifyPipe, deps: [{ token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe }); }
127
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.0.0", ngImport: i0, type: UpLinkifyPipe, isStandalone: true, name: "upLinkify" }); }
128
+ }
129
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: UpLinkifyPipe, decorators: [{
130
+ type: Pipe,
131
+ args: [{
132
+ pure: true,
133
+ standalone: true,
134
+ name: 'upLinkify'
135
+ }]
136
+ }], ctorParameters: () => [{ type: i1.DomSanitizer }] });
137
+ function formatLinkify(value, sanitizer) {
138
+ if (!value)
139
+ return '';
140
+ if (!/https?:\/\/(www\.)?[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)+([\/\w- .?%&=]*)?/.test(value)) {
141
+ return value;
142
+ }
143
+ return sanitizer.bypassSecurityTrustHtml(value.replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig, '<a target="_blank" style="word-break: break-all" href="$1">$1</a>'));
144
+ }
145
+
146
+ class UpCapitalizaPipe {
147
+ transform(value, onlyFirstWord = true) {
148
+ return formatCapitalize(value, onlyFirstWord);
149
+ }
150
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: UpCapitalizaPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
151
+ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.0.0", ngImport: i0, type: UpCapitalizaPipe, isStandalone: true, name: "upCapitalize" }); }
152
+ }
153
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: UpCapitalizaPipe, decorators: [{
154
+ type: Pipe,
155
+ args: [{
156
+ pure: true,
157
+ standalone: true,
158
+ name: 'upCapitalize',
159
+ }]
160
+ }] });
161
+ /**
162
+ * A function that create a capitalize word.
163
+ * @param {string | string[]} str - Word that want to be capitalized.
164
+ * @param {boolean} [onlyFirstWord=true] - Determine whether only the first word will be capitalize or not. If the first param is not array, this parameter will be ignored. Default to `true`.
165
+ * @returns {string} Capitalized word string
166
+ */
167
+ function formatCapitalize(str, onlyFirstWord = true) {
168
+ if (!str)
169
+ return str;
170
+ if (typeof str === 'string') {
171
+ str = str.toLowerCase().split(' ');
172
+ }
173
+ if (onlyFirstWord) {
174
+ str[0] = str[0].at(0).toUpperCase() + str[0].substring(1).toLowerCase();
175
+ }
176
+ else {
177
+ for (let i = 0; i < str.length; i++) {
178
+ if (!str[i]) {
179
+ continue;
180
+ }
181
+ str[i] = str[i].at(0).toUpperCase() + str[i].substring(1).toLowerCase();
182
+ }
183
+ }
184
+ return str.join(' ');
185
+ }
186
+
187
+ class CountryService {
188
+ constructor(gql) {
189
+ this.gql = gql;
190
+ }
191
+ query(input = { page: 0, pageSize: 300, sortBy: 'name', sortDirection: 'asc' }) {
192
+ return this.gql.query({
193
+ operationName: 'QueryCountry',
194
+ variables: {
195
+ input
196
+ },
197
+ query: `
198
+ query QueryCountry($input: CountryQueryCriteria!) {
199
+ webConfigMsCountry(input: $input) {
200
+ data {
201
+ code
202
+ defaultLangCode
203
+ guid
204
+ langCodes {
205
+ code
206
+ guid
207
+ }
208
+ name
209
+ phoneCodes {
210
+ code
211
+ }
212
+ }
213
+ }
214
+ }
215
+ `,
216
+ }).pipe(map((res) => {
217
+ return {
218
+ data: res.data ?? null,
219
+ errors: res.errors ?? []
220
+ };
221
+ }), catchError((err) => {
222
+ return of({
223
+ data: null,
224
+ errors: Array.isArray(err) ? err : [err]
225
+ });
226
+ }));
227
+ }
228
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: CountryService, deps: [{ token: i1$1.GqlParser }], target: i0.ɵɵFactoryTarget.Injectable }); }
229
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: CountryService, providedIn: 'root' }); }
230
+ }
231
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: CountryService, decorators: [{
232
+ type: Injectable,
233
+ args: [{
234
+ providedIn: 'root'
235
+ }]
236
+ }], ctorParameters: () => [{ type: i1$1.GqlParser }] });
237
+
238
+ class CurrencyService {
239
+ constructor(gql) {
240
+ this.gql = gql;
241
+ }
242
+ query(input = {
243
+ page: 0,
244
+ pageSize: 300,
245
+ sortBy: 'name',
246
+ sortDirection: 'asc'
247
+ }) {
248
+ return this.gql.query({
249
+ operationName: 'QueryCurrency',
250
+ variables: {
251
+ input
252
+ },
253
+ query: `
254
+ query QueryCurrency($input: CurrencyQueryCriteria!) {
255
+ webConfigMsCurrency(input: $input) {
256
+ data {
257
+ code
258
+ guid
259
+ magnifyValue
260
+ name
261
+ status
262
+ }
263
+ }
264
+ }
265
+ `,
266
+ }).pipe(map((res) => {
267
+ return {
268
+ data: res.data ?? null,
269
+ errors: res.errors ?? []
270
+ };
271
+ }), catchError((err) => {
272
+ return of({
273
+ data: null,
274
+ errors: Array.isArray(err) ? err : [err]
275
+ });
276
+ }));
277
+ }
278
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: CurrencyService, deps: [{ token: i1$1.GqlParser }], target: i0.ɵɵFactoryTarget.Injectable }); }
279
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: CurrencyService, providedIn: 'root' }); }
280
+ }
281
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: CurrencyService, decorators: [{
282
+ type: Injectable,
283
+ args: [{
284
+ providedIn: 'root'
285
+ }]
286
+ }], ctorParameters: () => [{ type: i1$1.GqlParser }] });
287
+
288
+ class UpFileDragNDropDirective {
289
+ constructor(el) {
290
+ this.el = el;
291
+ this.draggedClass = input('', ...(ngDevMode ? [{ debugName: "draggedClass" }] : []));
292
+ this.fileDropped = output();
293
+ }
294
+ ngOnInit() {
295
+ this.currentClass = this.el.nativeElement.classList.value;
296
+ }
297
+ dragOver(evt) {
298
+ evt.preventDefault();
299
+ evt.stopPropagation();
300
+ this.el.nativeElement.classList.value = up(this.currentClass, this.draggedClass());
301
+ }
302
+ leave(evt) {
303
+ evt.preventDefault();
304
+ evt.stopPropagation();
305
+ this.el.nativeElement.classList.value = this.currentClass;
306
+ }
307
+ drop(evt) {
308
+ evt.preventDefault();
309
+ evt.stopPropagation();
310
+ this.el.nativeElement.classList.value = this.currentClass;
311
+ const files = evt.dataTransfer.files;
312
+ if (files.length > 0) {
313
+ this.fileDropped.emit(files);
314
+ }
315
+ }
316
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: UpFileDragNDropDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
317
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.0.0", type: UpFileDragNDropDirective, isStandalone: true, selector: "[upFileDragNDrop]", inputs: { draggedClass: { classPropertyName: "draggedClass", publicName: "draggedClass", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { fileDropped: "fileDropped" }, host: { listeners: { "dragover": "dragOver($event)", "dragleave": "leave($event)", "drop": "drop($event)" } }, exportAs: ["upFileDragNDrop"], ngImport: i0 }); }
318
+ }
319
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0", ngImport: i0, type: UpFileDragNDropDirective, decorators: [{
320
+ type: Directive,
321
+ args: [{
322
+ standalone: true,
323
+ exportAs: 'upFileDragNDrop',
324
+ selector: '[upFileDragNDrop]'
325
+ }]
326
+ }], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { draggedClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "draggedClass", required: false }] }], fileDropped: [{ type: i0.Output, args: ["fileDropped"] }], dragOver: [{
327
+ type: HostListener,
328
+ args: ['dragover', ['$event']]
329
+ }], leave: [{
330
+ type: HostListener,
331
+ args: ['dragleave', ['$event']]
332
+ }], drop: [{
333
+ type: HostListener,
334
+ args: ['drop', ['$event']]
335
+ }] } });
336
+
337
+ /**
338
+ * Generated bundle index. Do not edit.
339
+ */
340
+
341
+ export { CountryService, CurrencyService, UpCapitalizaPipe, UpFileDragNDropDirective, UpInitialPipe, UpLinkifyPipe, UpPricePipe, compressImage, formatCapitalize, formatInitial, formatLinkify, formatPrice, generateContrastColor, up };
342
+ //# sourceMappingURL=unipin-angular-applet-common.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unipin-angular-applet-common.mjs","sources":["../../../projects/unipin-angular/common/utils/up.util.ts","../../../projects/unipin-angular/common/utils/image-compress/image-compress.util.ts","../../../projects/unipin-angular/common/utils/generate-contrast-color/generate-contrast-color.util.ts","../../../projects/unipin-angular/common/pipes/price/price.pipe.ts","../../../projects/unipin-angular/common/pipes/initial/initial.pipe.ts","../../../projects/unipin-angular/common/pipes/linkify/linkify.pipe.ts","../../../projects/unipin-angular/common/pipes/capitalize/capitalize.pipe.ts","../../../projects/unipin-angular/common/services/country.service.ts","../../../projects/unipin-angular/common/services/currency.service.ts","../../../projects/unipin-angular/common/directives/file-drag-n-drop.directive.ts","../../../projects/unipin-angular/common/unipin-angular-applet-common.ts"],"sourcesContent":["import { clsx, type ClassValue } from 'clsx';\nimport { twMerge } from 'tailwind-merge';\n\nexport function up(...inputs: ClassValue[]): string{\n \n return twMerge(\n clsx(inputs)\n );\n}\n","type ImageCompressionOptions = {\n file: File;\n quality?: number;\n maxWidth?: number;\n maxHeight?: number;\n}\n \nexport function compressImage(\n {\n file,\n quality = 0.8,\n maxWidth = 800,\n maxHeight = 800\n }: ImageCompressionOptions\n): Promise<File> {\n \n return new Promise(\n (resolve, reject) => {\n const img = new Image();\n\n img.onload = () => {\n let { width, height } = img;\n \n const widthScale = maxWidth / width;\n const heightScale = maxHeight / height;\n const scale = Math.min(widthScale, heightScale, 1);\n \n const targetWidth = Math.round(width * scale);\n const targetHeight = Math.round(height * scale);\n \n const canvas = document.createElement('canvas');\n canvas.width = targetWidth;\n canvas.height = targetHeight;\n \n const ctx = canvas.getContext('2d');\n if (!ctx) {\n return reject(new Error('Canvas context is not available'));\n }\n ctx.drawImage(img, 0, 0, targetWidth, targetHeight);\n \n canvas.toBlob(\n (blob) => {\n if (!blob) {\n return reject(new Error('Failed To Compress Image'));\n }\n \n const compressedFile = new File(\n [blob], \n file.name.replace(/\\.[^.]+$/, \".jpg\"), \n {\n type: 'image/jpeg',\n }\n );\n resolve(compressedFile);\n },\n 'image/jpeg',\n quality\n );\n };\n \n img.onerror = () => reject(new Error('Failed to load image'));\n img.src = URL.createObjectURL(file);\n }\n );\n}\n","export function generateContrastColor(str: string): { background: string, foreground: string }{\n \n let hash: number = 0;\n for (let i = 0; i < str.length; i++) {\n hash = str.charCodeAt(i) + ((hash << 5) - hash);\n hash = hash & hash;\n }\n\n const r: number = (hash >> 16) & 0xff;\n const g: number = (hash >> 8) & 0xff;\n const b: number = hash & 0xff;\n const background: string = `#${((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1)}`;\n\n const luminance: number = 0.299 * r + 0.587 * g + 0.114 * b;\n const foreground: string = luminance > 186 ? '#000' : '#fff';\n\n return { background, foreground };\n}\n","import { Pipe, PipeTransform } from '@angular/core';\nimport { formatNumber } from '@angular/common';\n\n@Pipe({\n pure: true,\n standalone: true,\n name: 'upPrice'\n})\nexport class UpPricePipe implements PipeTransform {\n \n public transform(value: string, magnifyValue: string | number = 1, format: 'string' | 'number' = 'number'): string | number{\n return formatPrice(+value, +magnifyValue, format);\n }\n}\n\nexport function formatPrice(value: number, magnifyValue: number = 1, format: 'string' | 'number' = 'number'): string | number{\n if (\n !magnifyValue ||\n magnifyValue === 1 ||\n Math.log10(magnifyValue) % 1 !== 0\n ) {\n if (format === 'string') {\n return formatNumber(value, 'en-US', `1.0-0`);\n }\n return value;\n }\n\n const floatPoint = Math.log10(magnifyValue);\n if (format === 'string') {\n return formatNumber(value / magnifyValue, 'en-US', `1.0-${floatPoint}`);\n }\n return +((value / magnifyValue).toFixed(floatPoint));\n}\n","import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n pure: true,\n standalone: true,\n name: 'upInitial'\n})\nexport class UpInitialPipe implements PipeTransform {\n \n public transform(value: string): string{\n return formatInitial(value);\n }\n}\n\nexport function formatInitial(value: string): string{\n if (!value) return '';\n\n const words = value.trim().replace(/\\s+/g, ' ').split(' ');\n if (words.length > 1) {\n return (words[0][0] + words[words.length - 1][0]).toUpperCase();\n }\n return words[0].substring(0, 2).toUpperCase();\n}\n","import { Pipe } from '@angular/core';\nimport { DomSanitizer, SafeHtml } from '@angular/platform-browser';\n\n@Pipe({\n pure: true,\n standalone: true,\n name: 'upLinkify'\n})\nexport class UpLinkifyPipe {\n\n constructor(\n protected readonly sanitizer: DomSanitizer\n ) { }\n\n public transform(value: any): SafeHtml{\n return formatLinkify(value, this.sanitizer);\n }\n}\n\nexport function formatLinkify(value: string, sanitizer: DomSanitizer): SafeHtml{\n if (!value) return '';\n if (\n !/https?:\\/\\/(www\\.)?[a-zA-Z0-9-]+(\\.[a-zA-Z0-9-]+)+([\\/\\w- .?%&=]*)?/.test(value)\n ) {\n return value;\n }\n\n return sanitizer.bypassSecurityTrustHtml(\n value.replace(\n /(\\b(https?|ftp|file):\\/\\/[-A-Z0-9+&@#\\/%?=~_|!:,.;]*[-A-Z0-9+&@#\\/%=~_|])/ig,\n '<a target=\"_blank\" style=\"word-break: break-all\" href=\"$1\">$1</a>'\n )\n );\n}\n","import { Pipe } from '@angular/core';\n\n@Pipe({\n pure: true,\n standalone: true,\n name: 'upCapitalize',\n})\nexport class UpCapitalizaPipe {\n\n public transform(value: string | string[], onlyFirstWord: boolean = true): string{\n return formatCapitalize(value, onlyFirstWord);\n }\n}\n\n/**\n * A function that create a capitalize word.\n * @param {string | string[]} str - Word that want to be capitalized.\n * @param {boolean} [onlyFirstWord=true] - Determine whether only the first word will be capitalize or not. If the first param is not array, this parameter will be ignored. Default to `true`.\n * @returns {string} Capitalized word string\n */\nexport function formatCapitalize(str: string | string[], onlyFirstWord: boolean = true): string{\n if (!str) return str;\n \n if (typeof str === 'string') {\n str = str.toLowerCase().split(' ');\n }\n\n if (onlyFirstWord) {\n str[0] = str[0].at(0)!.toUpperCase() + str[0].substring(1).toLowerCase();\n } else {\n for (let i = 0; i < str.length; i++) {\n if (!str[i]) {\n continue;\n }\n str[i] = str[i].at(0)!.toUpperCase() + str[i].substring(1).toLowerCase();\n }\n }\n return str.join(' ');\n}\n","import { Injectable } from '@angular/core';\nimport { Observable, of } from 'rxjs';\nimport { catchError, map } from 'rxjs/operators';\nimport { GqlParser, QueryResult } from '@unipin/angular-gql';\nimport { CountryQueryCriteria, CountryResult } from '@unipin/graphql-schema';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class CountryService {\n\n constructor(\n protected readonly gql: GqlParser\n ) { }\n\n public query(\n input: CountryQueryCriteria = { page: 0, pageSize: 300, sortBy: 'name', sortDirection: 'asc' }\n ): Observable<QueryResult<{ webConfigMsCountry: CountryResult }>>{\n \n return this.gql.query<{ webConfigMsCountry: CountryResult }>({\n operationName: 'QueryCountry',\n variables: { \n input \n },\n query: `\n query QueryCountry($input: CountryQueryCriteria!) {\n webConfigMsCountry(input: $input) {\n data {\n code\n defaultLangCode\n guid\n langCodes {\n code\n guid\n }\n name\n phoneCodes {\n code\n }\n }\n }\n }\n `,\n }).pipe(\n map(\n (res) => {\n return {\n data: res.data?? null,\n errors: res.errors?? []\n };\n }\n ),\n catchError(\n (err) => {\n return of(\n {\n data: null as any,\n errors: Array.isArray(err)? err : [err]\n }\n );\n }\n )\n );\n }\n}\n","import { Injectable } from '@angular/core';\nimport { Observable, of } from 'rxjs';\nimport { catchError, map } from 'rxjs/operators';\nimport { GqlParser, QueryResult } from '@unipin/angular-gql';\nimport { CurrencyQueryCriteria, CurrencyResult } from '@unipin/graphql-schema';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class CurrencyService {\n\n constructor(\n protected readonly gql: GqlParser\n ) { }\n\n public query(\n input: CurrencyQueryCriteria = { \n page: 0, \n pageSize: 300, \n sortBy: 'name', \n sortDirection: 'asc' \n }\n ): Observable<QueryResult<{ webConfigMsCurrency: CurrencyResult }>>{\n \n return this.gql.query<{ webConfigMsCurrency: CurrencyResult }>({\n operationName: 'QueryCurrency',\n variables: { \n input \n },\n query: `\n query QueryCurrency($input: CurrencyQueryCriteria!) {\n webConfigMsCurrency(input: $input) {\n data {\n code\n guid\n magnifyValue\n name\n status\n }\n }\n }\n `,\n }).pipe(\n map(\n (res) => {\n return {\n data: res.data?? null,\n errors: res.errors?? []\n };\n }\n ),\n catchError(\n (err) => {\n return of(\n {\n data: null as any,\n errors: Array.isArray(err)? err : [err]\n }\n );\n }\n )\n );\n }\n}\n","import { Directive, HostListener, ElementRef, output, input, OnInit } from '@angular/core';\nimport { ClassValue } from 'clsx';\nimport { up } from '../utils/up.util';\n\n@Directive({\n standalone: true,\n exportAs: 'upFileDragNDrop',\n selector: '[upFileDragNDrop]'\n})\nexport class UpFileDragNDropDirective implements OnInit {\n\n public readonly draggedClass = input<ClassValue>('');\n public readonly fileDropped = output<File>();\n\n protected currentClass!: ClassValue;\n \n constructor(\n protected readonly el: ElementRef\n ) { }\n\n public ngOnInit(): void{\n this.currentClass = this.el.nativeElement.classList.value;\n }\n \n @HostListener('dragover', [ '$event' ]) \n public dragOver(evt: any): void{\n evt.preventDefault();\n evt.stopPropagation();\n\n this.el.nativeElement.classList.value = up(\n this.currentClass,\n this.draggedClass(),\n );\n }\n\n @HostListener('dragleave', [ '$event' ]) \n public leave(evt: any): void{\n evt.preventDefault();\n\n evt.stopPropagation();\n this.el.nativeElement.classList.value = this.currentClass;\n }\n\n @HostListener('drop', [ '$event' ]) \n public drop(evt: any): void{\n evt.preventDefault();\n evt.stopPropagation();\n\n this.el.nativeElement.classList.value = this.currentClass;\n\n const files = evt.dataTransfer.files;\n if (files.length > 0) {\n this.fileDropped.emit(files);\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1"],"mappings":";;;;;;;;;;AAGM,SAAU,EAAE,CAAC,GAAG,MAAoB,EAAA;AAExC,IAAA,OAAO,OAAO,CACZ,IAAI,CAAC,MAAM,CAAC,CACb;AACH;;SCDgB,aAAa,CAC3B,EACE,IAAI,EACJ,OAAO,GAAG,GAAG,EACb,QAAQ,GAAG,GAAG,EACd,SAAS,GAAG,GAAG,EACS,EAAA;IAG1B,OAAO,IAAI,OAAO,CAChB,CAAC,OAAO,EAAE,MAAM,KAAI;AAClB,QAAA,MAAM,GAAG,GAAG,IAAI,KAAK,EAAE;AAEvB,QAAA,GAAG,CAAC,MAAM,GAAG,MAAK;AAChB,YAAA,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,GAAG;AAE3B,YAAA,MAAM,UAAU,GAAG,QAAQ,GAAG,KAAK;AACnC,YAAA,MAAM,WAAW,GAAG,SAAS,GAAG,MAAM;AACtC,YAAA,MAAM,KAAK,GAAG,IAAI,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