@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
@@ -1,14 +0,0 @@
1
- import { HttpEvent, HttpHandler, HttpInterceptor, HttpInterceptorFn, HttpRequest } from '@angular/common/http';
2
- import { Router } from '@angular/router';
3
- import { Observable } from 'rxjs';
4
- import { AuthService } from '../../services';
5
- import * as i0 from "@angular/core";
6
- export declare const refreshTokenInterceptor: HttpInterceptorFn;
7
- export declare class RefreshTokenInterceptor implements HttpInterceptor {
8
- protected readonly router: Router;
9
- protected readonly authService: AuthService;
10
- constructor(router: Router, authService: AuthService);
11
- intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<RefreshTokenInterceptor, never>;
13
- static ɵprov: i0.ɵɵInjectableDeclaration<RefreshTokenInterceptor>;
14
- }
@@ -1 +0,0 @@
1
- export { User } from './user/user.interface';
@@ -1,27 +0,0 @@
1
- export interface User {
2
- birthday: string;
3
- category?: string | null;
4
- email: string;
5
- gender: string;
6
- guid: string;
7
- mobileNumber?: string | null;
8
- name: string;
9
- photo: string;
10
- roles: {
11
- guid: string;
12
- code: string;
13
- name: string;
14
- status: string;
15
- isInternal: boolean;
16
- }[];
17
- departments: {
18
- department: {
19
- guid: string;
20
- hierarchyCode: string;
21
- hierarchyPath: string;
22
- name: string;
23
- status: string;
24
- };
25
- isLead: boolean;
26
- }[];
27
- }
@@ -1,2 +0,0 @@
1
- export { bootstrap } from './micro-frontend';
2
- export { PermissionDirective, PermissionGuard, PermissionService, UnauthorizedPage, LoadingConfig, provideLoadingConfig, LoadingPage, } from './permission';
@@ -1 +0,0 @@
1
- export { bootstrap } from './utils/mf-bootstrap.util';
@@ -1,9 +0,0 @@
1
- import { ApplicationConfig, NgZone, Type } from '@angular/core';
2
- export type AppType = 'shell' | 'microfrontend';
3
- export type Options = {
4
- production: boolean;
5
- appType: AppType;
6
- elementName?: string;
7
- };
8
- export declare function shareNgZone(zone: NgZone): void;
9
- export declare function bootstrap<M>(component: Type<M>, options: Options, config: ApplicationConfig): void;
@@ -1,4 +0,0 @@
1
- export declare const packageNamespace = "@angular-architects/module-federation-tools";
2
- export declare function getGlobalStateSlice<T>(): T;
3
- export declare function getGlobalStateSlice<T, R>(selector: (globalState: T) => R): R;
4
- export declare function setGlobalStateSlice<T extends object>(slice: T): T;
@@ -1,16 +0,0 @@
1
- import { TemplateRef, ViewContainerRef } from '@angular/core';
2
- import { PermissionService } from '../services/permission.service';
3
- import * as i0 from "@angular/core";
4
- export declare class PermissionDirective {
5
- protected readonly templateRef: TemplateRef<any>;
6
- protected readonly viewContainer: ViewContainerRef;
7
- protected readonly permissionService: PermissionService;
8
- protected module: string;
9
- protected scope: string;
10
- set hasPermission(m: string);
11
- set hasPermissionScope(s: string);
12
- set hasPermissionType(t: string);
13
- constructor(templateRef: TemplateRef<any>, viewContainer: ViewContainerRef, permissionService: PermissionService);
14
- static ɵfac: i0.ɵɵFactoryDeclaration<PermissionDirective, never>;
15
- static ɵdir: i0.ɵɵDirectiveDeclaration<PermissionDirective, "[hasPermission]", never, { "hasPermission": { "alias": "hasPermission"; "required": false; }; "hasPermissionScope": { "alias": "hasPermissionScope"; "required": false; }; "hasPermissionType": { "alias": "hasPermissionType"; "required": false; }; }, {}, never, never, true, never>;
16
- }
@@ -1,2 +0,0 @@
1
- import { CanActivateFn } from '@angular/router';
2
- export declare const PermissionGuard: CanActivateFn;
@@ -1,6 +0,0 @@
1
- export { provideLoadingConfig, LoadingConfig } from './pages/loading/provide-loading-config.util';
2
- export { LoadingPage } from './pages/loading/loading.page';
3
- export { PermissionDirective } from './directive/permission.directive';
4
- export { PermissionGuard } from './guards/permission.guard';
5
- export { PermissionService } from './services/permission.service';
6
- export { UnauthorizedPage } from './pages/401/unauthorized.page';
@@ -1,5 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class UnauthorizedPage {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<UnauthorizedPage, never>;
4
- static ɵcmp: i0.ɵɵComponentDeclaration<UnauthorizedPage, "up-unauthorized", never, {}, {}, never, never, true, never>;
5
- }
@@ -1,18 +0,0 @@
1
- import { OnDestroy, OnInit } from '@angular/core';
2
- import { ActivatedRoute, Router } from '@angular/router';
3
- import { Subscription } from 'rxjs';
4
- import { PermissionService } from '../../services/permission.service';
5
- import { LoadingConfig } from './provide-loading-config.util';
6
- import * as i0 from "@angular/core";
7
- export declare class LoadingPage implements OnInit, OnDestroy {
8
- readonly config: LoadingConfig;
9
- protected readonly router: Router;
10
- protected readonly route: ActivatedRoute;
11
- protected readonly permissionService: PermissionService;
12
- protected sub?: Subscription;
13
- constructor(config: LoadingConfig, router: Router, route: ActivatedRoute, permissionService: PermissionService);
14
- ngOnInit(): void;
15
- ngOnDestroy(): void;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<LoadingPage, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<LoadingPage, "up-loading", never, {}, {}, never, never, true, never>;
18
- }
@@ -1,10 +0,0 @@
1
- import { InjectionToken, Provider } from '@angular/core';
2
- import { FetchPolicy } from '@apollo/client/core';
3
- export declare const LOADING_CONFIG: InjectionToken<LoadingConfig>;
4
- export interface LoadingConfig {
5
- permTypes: string[];
6
- permModules: string[];
7
- fetchPolicy?: FetchPolicy;
8
- subjectGuidStorageKey?: string;
9
- }
10
- export declare function provideLoadingConfig(config: LoadingConfig): Provider;
@@ -1,21 +0,0 @@
1
- import { BehaviorSubject, Observable } from 'rxjs';
2
- import { ApolloQueryResult, FetchPolicy } from '@apollo/client/core';
3
- import { Apollo } from 'apollo-angular';
4
- import { AppPermDfn, PermissionFilter } from '../../../../graphql/generated';
5
- import * as i0 from "@angular/core";
6
- export declare class PermissionService {
7
- protected readonly apollo: Apollo;
8
- readonly permModules: BehaviorSubject<string[]>;
9
- isInitiated: boolean;
10
- protected permissions: Map<string, boolean>;
11
- constructor(apollo: Apollo);
12
- setPermission(permCodes: string[], permModules?: string[]): void;
13
- checkPermission(scope: string, module: string, type: string): boolean;
14
- getPermissions(filter: PermissionFilter, fetchPolicy?: FetchPolicy): Observable<ApolloQueryResult<{
15
- authMsPermission: {
16
- data: AppPermDfn[];
17
- };
18
- }>>;
19
- static ɵfac: i0.ɵɵFactoryDeclaration<PermissionService, never>;
20
- static ɵprov: i0.ɵɵInjectableDeclaration<PermissionService>;
21
- }
@@ -1,14 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class AuthResolver {
3
- isUserLoggedIn(): boolean;
4
- getAuthToken(): string | null;
5
- protected resolveUserAuthToken(): void;
6
- protected isTokenExpired(token: string | null): boolean;
7
- protected getTokenExpirationDate(token: string | null): Date | null;
8
- protected decodeToken(token: string | null): string | null;
9
- protected urlBase64Decode(str: string): string;
10
- protected b64DecodeUnicode(str: string): string;
11
- protected b64decode(str: string): string;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<AuthResolver, never>;
13
- static ɵprov: i0.ɵɵInjectableDeclaration<AuthResolver>;
14
- }
@@ -1 +0,0 @@
1
- export { AuthResolver } from './auth/auth.resolver';
@@ -1,39 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { Apollo, MutationResult } from 'apollo-angular';
3
- import { FetchPolicy } from '@apollo/client/core';
4
- import { AppLoginSubject, ChangePassRq, LoginResponse, LoginRq, MutationAuthMsRefreshAccessTokenArgs, Token } from '../../../graphql/generated';
5
- import { User } from '../../interfaces';
6
- import { ProfileService } from '../profile/profile.service';
7
- import * as i0 from "@angular/core";
8
- export declare class AuthService {
9
- protected readonly apollo: Apollo;
10
- protected readonly profileService: ProfileService;
11
- static authToken: string;
12
- static refreshToken: string;
13
- user?: User;
14
- constructor(apollo: Apollo, profileService: ProfileService);
15
- login(input: LoginRq): Observable<MutationResult<{
16
- authMsLogin: LoginResponse;
17
- }>>;
18
- refreshToken(variables: MutationAuthMsRefreshAccessTokenArgs): Observable<MutationResult<{
19
- authMsRefreshAccessToken: Token;
20
- }>>;
21
- getProfile(fetchPolicy?: FetchPolicy): Observable<AppLoginSubject | null>;
22
- initForgotPassword(email: string): Observable<MutationResult<any>>;
23
- initOtpCode(email: string): Observable<MutationResult<any>>;
24
- createNewPassword({ newPassword, principalId, sourcePlatform, verifCode }: {
25
- confirm: string;
26
- newPassword: string;
27
- principalId: string;
28
- verifCode: string;
29
- sourcePlatform: string;
30
- }): Observable<MutationResult<any>>;
31
- updatePassword(input: {
32
- oldPassword: string;
33
- newPassword: string;
34
- }): Observable<MutationResult<{
35
- authMsChangePassword: ChangePassRq;
36
- }>>;
37
- static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
38
- static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
39
- }
@@ -1,16 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { ApolloQueryResult } from '@apollo/client/core';
3
- import { Apollo } from 'apollo-angular';
4
- import { Country, CountryQueryCriteria } from '../../../graphql/generated';
5
- import * as i0 from "@angular/core";
6
- export declare class CountryService {
7
- protected readonly apollo: Apollo;
8
- constructor(apollo: Apollo);
9
- query(input?: CountryQueryCriteria): Observable<ApolloQueryResult<{
10
- webConfigMsCountry: {
11
- data: Country[];
12
- };
13
- }>>;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<CountryService, never>;
15
- static ɵprov: i0.ɵɵInjectableDeclaration<CountryService>;
16
- }
@@ -1,16 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { ApolloQueryResult } from '@apollo/client/core';
3
- import { Apollo } from 'apollo-angular';
4
- import { Currency } from '../../../graphql/generated';
5
- import * as i0 from "@angular/core";
6
- export declare class CurrencyService {
7
- protected readonly apollo: Apollo;
8
- constructor(apollo: Apollo);
9
- query(keyword?: string): Observable<ApolloQueryResult<{
10
- webConfigMsCurrency: {
11
- data: Currency[];
12
- };
13
- }>>;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<CurrencyService, never>;
15
- static ɵprov: i0.ɵɵInjectableDeclaration<CurrencyService>;
16
- }
@@ -1,5 +0,0 @@
1
- export { AuthService } from './auth/auth.service';
2
- export { CurrencyService } from './currency/currency.service';
3
- export { CountryService } from './country/country.service';
4
- export { RateGroupCodeService } from './rate-group-code/rate-group-code.service';
5
- export { ProfileService } from './profile/profile.service';
@@ -1,12 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { FetchPolicy } from '@apollo/client/core';
3
- import { Apollo } from 'apollo-angular';
4
- import { AppLoginSubject } from '../../../graphql/generated';
5
- import * as i0 from "@angular/core";
6
- export declare class ProfileService {
7
- protected readonly apollo: Apollo;
8
- constructor(apollo: Apollo);
9
- getMyProfile(fetchPolicy?: FetchPolicy): Observable<AppLoginSubject | null>;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<ProfileService, never>;
11
- static ɵprov: i0.ɵɵInjectableDeclaration<ProfileService>;
12
- }
@@ -1,14 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { ApolloQueryResult, FetchPolicy } from '@apollo/client/core';
3
- import { Apollo } from 'apollo-angular';
4
- import { RateGroupCodeCriteria, RateGroupCodeRs } from '../../../graphql/generated';
5
- import * as i0 from "@angular/core";
6
- export declare class RateGroupCodeService {
7
- protected readonly apollo: Apollo;
8
- constructor(apollo: Apollo);
9
- query(input: RateGroupCodeCriteria, fetchPolicy?: FetchPolicy): Observable<ApolloQueryResult<{
10
- productMsSearchRateGroupCodes: RateGroupCodeRs;
11
- }>>;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<RateGroupCodeService, never>;
13
- static ɵprov: i0.ɵɵInjectableDeclaration<RateGroupCodeService>;
14
- }
@@ -1,4 +0,0 @@
1
- export declare function generateContrastColor(str: string): {
2
- background: `#${string}`;
3
- color: `#${string}`;
4
- };
@@ -1,2 +0,0 @@
1
- import { ValidationErrors } from '@angular/forms';
2
- export declare function getFormErrorMessage(err: ValidationErrors | null, label?: string): string;
@@ -1 +0,0 @@
1
- export declare function formatCapitalize(str: string | string[], eachWord?: boolean, separator?: string): string;
@@ -1,4 +0,0 @@
1
- export { formatCapitalize } from './format-capitalize/format-capitalize.util';
2
- export { getFormErrorMessage } from './form-error-message/form-error-message.util';
3
- export { generateContrastColor } from './contrast-color-generator/contrast-color-generator.util';
4
- export { redirectToFirstMenu } from './redirect-to-first-menu/redirect-to-first-menu.util';
@@ -1,2 +0,0 @@
1
- import { RedirectFunction } from '@angular/router';
2
- export declare function redirectToFirstMenu(): ReturnType<RedirectFunction>;
package/public-api.d.ts DELETED
@@ -1,11 +0,0 @@
1
- export { ButtonGroupConfig, ButtonGroupComponent, ButtonLoadingComponent, FormDateComponent, FormInputComponent, FormNumberComponent, FormPasswordComponent, FormSearchableSelectComponent, FormSelectComponent, FormTextareaComponent, FormImagePickerComponent, FormCurrencyInputComponent, FormCountryInputComponent, FormRateGroupCodeInputComponent, FilterConfig, FilterField, FilterSearchEvent, FilterComponent, GridConfig, GridService, GridPaginationComponent, GridSnapshotComponent, AppletConfig, APPLET_CONFIG, provideAppletConfig, AppletContainerComponent, ColumnContainerComponent, ColumnHeaderContainerComponent, ListContainerConfig, ListPaginationContainerComponent, ListSnapshotContainerComponent, ModalContainerComponent, TabContentComponent, TabGroupComponent, TabsChangedEvent, AuditListComponent, AuditDetailComponent, APPROVAL_ENTITIES, provideApprovalEntities, ApprovalService, ApprovalListComponent, ApprovalDetailComponent } from './lib/components';
2
- export { InfiniteScrollDirective, InfiniteScrollComponent } from './lib/components/infinite-scroll';
3
- export { AuthGuard } from './lib/guards';
4
- export { headerInterceptor, HeaderInterceptor, refreshTokenInterceptor, RefreshTokenInterceptor } from './lib/interceptors';
5
- export { User } from './lib/interfaces';
6
- export { bootstrap, LoadingConfig, provideLoadingConfig, LoadingPage, UnauthorizedPage, PermissionDirective, PermissionGuard, PermissionService, } from './lib/modules';
7
- export { AuthResolver } from './lib/resolvers';
8
- export { AuthService, CurrencyService, CountryService, RateGroupCodeService, ProfileService, } from './lib/services';
9
- export { formatCapitalize, generateContrastColor, getFormErrorMessage, redirectToFirstMenu } from './lib/utils';
10
- export { GridApi, GridReadyEvent, ICellRendererParams, ValueFormatterParams, SelectionChangedEvent } from '@ag-grid-community/core';
11
- export { ICellRendererAngularComp } from '@ag-grid-community/angular';
@@ -1,65 +0,0 @@
1
- .form-label {
2
- margin-bottom: 0.5rem;
3
- color: #616161;
4
- &:has(+ .form-control:required):before, &.required:before {
5
- content: '*';
6
- color: #FF3B30;
7
- padding-right: 8px;
8
- }
9
- }
10
- .form-control {
11
- display: block;
12
- width: 100%;
13
- padding: 8px 10px 6px;
14
- font-size: 1rem;
15
- color: #424242;
16
- background-color: #fff;
17
- background-clip: padding-box;
18
- border: 2px solid #e0e0e0;
19
- -webkit-appearance: none;
20
- -moz-appearance: none;
21
- appearance: none;
22
- border-radius: 0.375rem;
23
- transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
24
-
25
- &[type="file"] {
26
- overflow: hidden; // prevent pseudo element button overlap
27
- &:not(:disabled):not([readonly]) {
28
- cursor: pointer;
29
- }
30
- }
31
-
32
- // Customize the `:focus` state to imitate native WebKit styles.
33
- &:focus {
34
- border-bottom-color: #ED6B26;
35
- outline: 0;
36
- }
37
-
38
- // Placeholder
39
- &::placeholder {
40
- color: #6c757d;
41
- // Override Firefox's unusual default opacity; see https://github.com/twbs/bootstrap/pull/11526.
42
- opacity: 1;
43
- }
44
-
45
- // Disabled inputs
46
- //
47
- // HTML5 says that controls under a fieldset > legend:first-child won't be
48
- // disabled if the fieldset is disabled. Due to implementation difficulty, we
49
- // don't honor that edge case; we style them as disabled anyway.
50
- &:disabled {
51
- background-color: #e9ecef;
52
- opacity: 1;
53
- }
54
-
55
- &:autofill, &:-webkit-autofill {
56
- box-shadow: 0 0 0 1000px white inset;
57
- -webkit-text-fill-color: #424242;
58
- }
59
- }
60
- label.is-invalid{
61
- color: #FF3B30;
62
- font-weight: 500;
63
- font-size: .8571rem;
64
- margin-top: 0.5rem;
65
- }