@sdcorejs/angular 19.0.0 → 20.0.0-rc.2

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 (654) hide show
  1. package/components/anchor/index.d.ts +43 -1
  2. package/components/autoid-inspector/index.d.ts +199 -8
  3. package/components/avatar/index.d.ts +22 -1
  4. package/components/badge/index.d.ts +102 -1
  5. package/components/base/index.d.ts +11 -1
  6. package/components/button/index.d.ts +46 -1
  7. package/components/chart/index.d.ts +65 -4
  8. package/components/ckeditor-styles/index.d.ts +28 -1
  9. package/components/code-editor/index.d.ts +24 -1
  10. package/components/document-builder/index.d.ts +252 -4
  11. package/components/editor/index.d.ts +128 -3
  12. package/components/form-generic/index.d.ts +895 -4
  13. package/components/history/index.d.ts +23 -1
  14. package/components/import-excel/index.d.ts +160 -2
  15. package/components/inform/index.d.ts +70 -2
  16. package/components/mini-editor/index.d.ts +138 -2
  17. package/components/modal/index.d.ts +33 -1
  18. package/components/operator/index.d.ts +36 -1
  19. package/components/preview/index.d.ts +414 -4
  20. package/components/query-bar/index.d.ts +375 -2
  21. package/components/query-builder/index.d.ts +30 -1
  22. package/components/quick-action/index.d.ts +12 -1
  23. package/components/section/index.d.ts +28 -2
  24. package/components/side-drawer/index.d.ts +33 -1
  25. package/components/splitter/index.d.ts +58 -3
  26. package/components/stepper/index.d.ts +53 -2
  27. package/components/tab/index.d.ts +53 -2
  28. package/components/tab-router/index.d.ts +104 -4
  29. package/components/table/index.d.ts +1161 -11
  30. package/components/upload-file/index.d.ts +169 -2
  31. package/components/view/index.d.ts +20 -1
  32. package/configurations/index.d.ts +14 -1
  33. package/directives/index.d.ts +80 -6
  34. package/fesm2022/sdcorejs-angular-components-anchor.mjs +31 -31
  35. package/fesm2022/sdcorejs-angular-components-anchor.mjs.map +1 -1
  36. package/fesm2022/sdcorejs-angular-components-autoid-inspector.mjs +36 -36
  37. package/fesm2022/sdcorejs-angular-components-autoid-inspector.mjs.map +1 -1
  38. package/fesm2022/sdcorejs-angular-components-avatar.mjs +10 -10
  39. package/fesm2022/sdcorejs-angular-components-avatar.mjs.map +1 -1
  40. package/fesm2022/sdcorejs-angular-components-badge.mjs +34 -34
  41. package/fesm2022/sdcorejs-angular-components-badge.mjs.map +1 -1
  42. package/fesm2022/sdcorejs-angular-components-base.mjs +3 -3
  43. package/fesm2022/sdcorejs-angular-components-button.mjs +30 -30
  44. package/fesm2022/sdcorejs-angular-components-button.mjs.map +1 -1
  45. package/fesm2022/sdcorejs-angular-components-chart.mjs +32 -32
  46. package/fesm2022/sdcorejs-angular-components-chart.mjs.map +1 -1
  47. package/fesm2022/sdcorejs-angular-components-ckeditor-styles.mjs +4 -4
  48. package/fesm2022/sdcorejs-angular-components-ckeditor-styles.mjs.map +1 -1
  49. package/fesm2022/sdcorejs-angular-components-code-editor.mjs +12 -12
  50. package/fesm2022/sdcorejs-angular-components-code-editor.mjs.map +1 -1
  51. package/fesm2022/sdcorejs-angular-components-document-builder.mjs +6 -6
  52. package/fesm2022/sdcorejs-angular-components-document-builder.mjs.map +1 -1
  53. package/fesm2022/sdcorejs-angular-components-editor.mjs +49 -39
  54. package/fesm2022/sdcorejs-angular-components-editor.mjs.map +1 -1
  55. package/fesm2022/sdcorejs-angular-components-form-generic.mjs +214 -214
  56. package/fesm2022/sdcorejs-angular-components-form-generic.mjs.map +1 -1
  57. package/fesm2022/sdcorejs-angular-components-history.mjs +7 -7
  58. package/fesm2022/sdcorejs-angular-components-history.mjs.map +1 -1
  59. package/fesm2022/sdcorejs-angular-components-import-excel.mjs +11 -11
  60. package/fesm2022/sdcorejs-angular-components-import-excel.mjs.map +1 -1
  61. package/fesm2022/sdcorejs-angular-components-inform.mjs +40 -40
  62. package/fesm2022/sdcorejs-angular-components-inform.mjs.map +1 -1
  63. package/fesm2022/sdcorejs-angular-components-mini-editor.mjs +3 -3
  64. package/fesm2022/sdcorejs-angular-components-mini-editor.mjs.map +1 -1
  65. package/fesm2022/sdcorejs-angular-components-modal.mjs +21 -21
  66. package/fesm2022/sdcorejs-angular-components-modal.mjs.map +1 -1
  67. package/fesm2022/sdcorejs-angular-components-operator.mjs +12 -12
  68. package/fesm2022/sdcorejs-angular-components-operator.mjs.map +1 -1
  69. package/fesm2022/sdcorejs-angular-components-preview.mjs +121 -121
  70. package/fesm2022/sdcorejs-angular-components-preview.mjs.map +1 -1
  71. package/fesm2022/sdcorejs-angular-components-query-bar.mjs +150 -149
  72. package/fesm2022/sdcorejs-angular-components-query-bar.mjs.map +1 -1
  73. package/fesm2022/sdcorejs-angular-components-query-builder.mjs +3 -3
  74. package/fesm2022/sdcorejs-angular-components-query-builder.mjs.map +1 -1
  75. package/fesm2022/sdcorejs-angular-components-quick-action.mjs +5 -5
  76. package/fesm2022/sdcorejs-angular-components-quick-action.mjs.map +1 -1
  77. package/fesm2022/sdcorejs-angular-components-section.mjs +24 -22
  78. package/fesm2022/sdcorejs-angular-components-section.mjs.map +1 -1
  79. package/fesm2022/sdcorejs-angular-components-side-drawer.mjs +16 -16
  80. package/fesm2022/sdcorejs-angular-components-side-drawer.mjs.map +1 -1
  81. package/fesm2022/sdcorejs-angular-components-splitter.mjs +41 -41
  82. package/fesm2022/sdcorejs-angular-components-splitter.mjs.map +1 -1
  83. package/fesm2022/sdcorejs-angular-components-stepper.mjs +26 -26
  84. package/fesm2022/sdcorejs-angular-components-stepper.mjs.map +1 -1
  85. package/fesm2022/sdcorejs-angular-components-tab-router.mjs +25 -25
  86. package/fesm2022/sdcorejs-angular-components-tab-router.mjs.map +1 -1
  87. package/fesm2022/sdcorejs-angular-components-tab.mjs +25 -25
  88. package/fesm2022/sdcorejs-angular-components-tab.mjs.map +1 -1
  89. package/fesm2022/sdcorejs-angular-components-table.mjs +247 -247
  90. package/fesm2022/sdcorejs-angular-components-table.mjs.map +1 -1
  91. package/fesm2022/sdcorejs-angular-components-upload-file.mjs +107 -87
  92. package/fesm2022/sdcorejs-angular-components-upload-file.mjs.map +1 -1
  93. package/fesm2022/sdcorejs-angular-components-view.mjs +15 -15
  94. package/fesm2022/sdcorejs-angular-components-view.mjs.map +1 -1
  95. package/fesm2022/sdcorejs-angular-directives.mjs +32 -32
  96. package/fesm2022/sdcorejs-angular-directives.mjs.map +1 -1
  97. package/fesm2022/sdcorejs-angular-forms-autocomplete.mjs +77 -64
  98. package/fesm2022/sdcorejs-angular-forms-autocomplete.mjs.map +1 -1
  99. package/fesm2022/sdcorejs-angular-forms-checkbox.mjs +50 -39
  100. package/fesm2022/sdcorejs-angular-forms-checkbox.mjs.map +1 -1
  101. package/fesm2022/sdcorejs-angular-forms-chip-calendar.mjs +84 -73
  102. package/fesm2022/sdcorejs-angular-forms-chip-calendar.mjs.map +1 -1
  103. package/fesm2022/sdcorejs-angular-forms-chip.mjs +83 -72
  104. package/fesm2022/sdcorejs-angular-forms-chip.mjs.map +1 -1
  105. package/fesm2022/sdcorejs-angular-forms-date-range.mjs +62 -49
  106. package/fesm2022/sdcorejs-angular-forms-date-range.mjs.map +1 -1
  107. package/fesm2022/sdcorejs-angular-forms-date.mjs +70 -57
  108. package/fesm2022/sdcorejs-angular-forms-date.mjs.map +1 -1
  109. package/fesm2022/sdcorejs-angular-forms-datetime.mjs +93 -80
  110. package/fesm2022/sdcorejs-angular-forms-datetime.mjs.map +1 -1
  111. package/fesm2022/sdcorejs-angular-forms-directives.mjs +12 -12
  112. package/fesm2022/sdcorejs-angular-forms-input-color.mjs +20 -20
  113. package/fesm2022/sdcorejs-angular-forms-input-color.mjs.map +1 -1
  114. package/fesm2022/sdcorejs-angular-forms-input-number.mjs +72 -59
  115. package/fesm2022/sdcorejs-angular-forms-input-number.mjs.map +1 -1
  116. package/fesm2022/sdcorejs-angular-forms-input.mjs +74 -61
  117. package/fesm2022/sdcorejs-angular-forms-input.mjs.map +1 -1
  118. package/fesm2022/sdcorejs-angular-forms-label.mjs +3 -3
  119. package/fesm2022/sdcorejs-angular-forms-label.mjs.map +1 -1
  120. package/fesm2022/sdcorejs-angular-forms-models.mjs +2 -2
  121. package/fesm2022/sdcorejs-angular-forms-models.mjs.map +1 -1
  122. package/fesm2022/sdcorejs-angular-forms-radio.mjs +71 -60
  123. package/fesm2022/sdcorejs-angular-forms-radio.mjs.map +1 -1
  124. package/fesm2022/sdcorejs-angular-forms-select.mjs +86 -73
  125. package/fesm2022/sdcorejs-angular-forms-select.mjs.map +1 -1
  126. package/fesm2022/sdcorejs-angular-forms-switch.mjs +50 -39
  127. package/fesm2022/sdcorejs-angular-forms-switch.mjs.map +1 -1
  128. package/fesm2022/sdcorejs-angular-forms-textarea.mjs +78 -65
  129. package/fesm2022/sdcorejs-angular-forms-textarea.mjs.map +1 -1
  130. package/fesm2022/sdcorejs-angular-forms.mjs +4 -4
  131. package/fesm2022/sdcorejs-angular-handlers.mjs +3 -3
  132. package/fesm2022/sdcorejs-angular-i18n.mjs +9 -9
  133. package/fesm2022/sdcorejs-angular-i18n.mjs.map +1 -1
  134. package/fesm2022/sdcorejs-angular-interceptors.mjs +6 -6
  135. package/fesm2022/sdcorejs-angular-modules-auth.mjs +10 -10
  136. package/fesm2022/sdcorejs-angular-modules-auth.mjs.map +1 -1
  137. package/fesm2022/sdcorejs-angular-modules-authom.mjs +10 -10
  138. package/fesm2022/sdcorejs-angular-modules-authom.mjs.map +1 -1
  139. package/fesm2022/sdcorejs-angular-modules-keycloak.mjs +7 -7
  140. package/fesm2022/sdcorejs-angular-modules-layout.mjs +139 -139
  141. package/fesm2022/sdcorejs-angular-modules-layout.mjs.map +1 -1
  142. package/fesm2022/sdcorejs-angular-modules-permission.mjs +12 -12
  143. package/fesm2022/sdcorejs-angular-modules-permission.mjs.map +1 -1
  144. package/fesm2022/sdcorejs-angular-pipes.mjs +14 -14
  145. package/fesm2022/sdcorejs-angular-services-api.mjs +10 -10
  146. package/fesm2022/sdcorejs-angular-services-cache.mjs +3 -3
  147. package/fesm2022/sdcorejs-angular-services-confirm.mjs +6 -6
  148. package/fesm2022/sdcorejs-angular-services-docx.mjs +3 -3
  149. package/fesm2022/sdcorejs-angular-services-excel.mjs +3 -3
  150. package/fesm2022/sdcorejs-angular-services-license.mjs +3 -3
  151. package/fesm2022/sdcorejs-angular-services-loading.mjs +3 -3
  152. package/fesm2022/sdcorejs-angular-services-notify.mjs +12 -12
  153. package/fesm2022/sdcorejs-angular-services-notify.mjs.map +1 -1
  154. package/fesm2022/sdcorejs-angular-services-storage.mjs +3 -3
  155. package/forms/autocomplete/index.d.ts +95 -1
  156. package/forms/checkbox/index.d.ts +31 -1
  157. package/forms/chip/index.d.ts +80 -1
  158. package/forms/chip-calendar/index.d.ts +73 -1
  159. package/forms/date/index.d.ts +82 -1
  160. package/forms/date-range/index.d.ts +83 -1
  161. package/forms/datetime/index.d.ts +92 -1
  162. package/forms/directives/index.d.ts +41 -4
  163. package/forms/index.d.ts +17 -1
  164. package/forms/input/index.d.ts +87 -1
  165. package/forms/input-color/index.d.ts +35 -1
  166. package/forms/input-number/index.d.ts +97 -1
  167. package/forms/label/index.d.ts +16 -1
  168. package/forms/models/index.d.ts +85 -6
  169. package/forms/radio/index.d.ts +52 -1
  170. package/forms/select/index.d.ts +95 -1
  171. package/forms/switch/index.d.ts +35 -1
  172. package/forms/textarea/index.d.ts +68 -1
  173. package/handlers/index.d.ts +12 -1
  174. package/i18n/index.d.ts +508 -5
  175. package/index.d.ts +2 -5
  176. package/interceptors/index.d.ts +27 -2
  177. package/models/index.d.ts +2 -1
  178. package/modules/auth/index.d.ts +64 -3
  179. package/modules/authom/index.d.ts +70 -35
  180. package/modules/keycloak/index.d.ts +48 -4
  181. package/modules/layout/index.d.ts +223 -5
  182. package/modules/permission/index.d.ts +101 -4
  183. package/package.json +45 -45
  184. package/pipes/index.d.ts +43 -4
  185. package/services/api/index.d.ts +71 -4
  186. package/services/cache/index.d.ts +43 -2
  187. package/services/confirm/index.d.ts +103 -1
  188. package/services/docx/index.d.ts +28 -1
  189. package/services/excel/index.d.ts +54 -1
  190. package/services/license/index.d.ts +13 -1
  191. package/services/loading/index.d.ts +17 -1
  192. package/services/notify/index.d.ts +40 -2
  193. package/services/storage/index.d.ts +34 -2
  194. package/utilities/data-state/index.d.ts +13 -1
  195. package/utilities/extensions/index.d.ts +87 -6
  196. package/utilities/models/index.d.ts +87 -12
  197. package/components/anchor/src/components/anchor/anchor.component.d.ts +0 -22
  198. package/components/anchor/src/components/anchor-item/anchor-item.component.d.ts +0 -13
  199. package/components/anchor/src/components/anchor-nav/anchor-nav.component.d.ts +0 -21
  200. package/components/anchor/src/components/index.d.ts +0 -2
  201. package/components/anchor/src/index.d.ts +0 -2
  202. package/components/anchor/src/models/index.d.ts +0 -1
  203. package/components/anchor/src/models/sd-anchor.model.d.ts +0 -7
  204. package/components/autoid-inspector/src/autoid-inspector.component.d.ts +0 -55
  205. package/components/autoid-inspector/src/models/autoid-element.model.d.ts +0 -55
  206. package/components/autoid-inspector/src/models/autoid-export-format.model.d.ts +0 -6
  207. package/components/autoid-inspector/src/models/autoid-inspector-config.model.d.ts +0 -8
  208. package/components/autoid-inspector/src/services/autoid-audit.service.d.ts +0 -19
  209. package/components/autoid-inspector/src/services/autoid-export.service.d.ts +0 -21
  210. package/components/autoid-inspector/src/services/autoid-highlight.service.d.ts +0 -12
  211. package/components/autoid-inspector/src/services/autoid-scanner.service.d.ts +0 -23
  212. package/components/avatar/src/avatar.component.d.ts +0 -19
  213. package/components/badge/src/badge.component.d.ts +0 -98
  214. package/components/base/src/base-secure.component.d.ts +0 -8
  215. package/components/button/src/button.component.d.ts +0 -42
  216. package/components/chart/src/bar-chart.component.d.ts +0 -18
  217. package/components/chart/src/doughnut-chart.component.d.ts +0 -16
  218. package/components/chart/src/line-chart.component.d.ts +0 -18
  219. package/components/chart/src/pie-chart.component.d.ts +0 -16
  220. package/components/ckeditor-styles/src/ckeditor-styles.component.d.ts +0 -25
  221. package/components/code-editor/src/code-editor.component.d.ts +0 -25
  222. package/components/document-builder/src/components/header-footer-builder/header-footer-builder.component.d.ts +0 -16
  223. package/components/document-builder/src/components/header-footer-builder/plugins/page-number.plugin.d.ts +0 -4
  224. package/components/document-builder/src/components/index.d.ts +0 -1
  225. package/components/document-builder/src/document-builder.component.d.ts +0 -53
  226. package/components/document-builder/src/document-builder.config.d.ts +0 -21
  227. package/components/document-builder/src/document-builder.model.d.ts +0 -41
  228. package/components/document-builder/src/document-builder.utils.d.ts +0 -10
  229. package/components/document-builder/src/plugins/block-space/block-space.plugin.d.ts +0 -9
  230. package/components/document-builder/src/plugins/ck-comment/ck-comment.plugin.d.ts +0 -44
  231. package/components/document-builder/src/plugins/ck-comment/ck-comment.plugin.model.d.ts +0 -57
  232. package/components/document-builder/src/plugins/heading/heading.plugin.d.ts +0 -5
  233. package/components/document-builder/src/plugins/highlight-range/highlight-range.plugin.d.ts +0 -4
  234. package/components/document-builder/src/plugins/image-custom/image-custom.plugin.d.ts +0 -31
  235. package/components/document-builder/src/plugins/image-upload/image-upload.plugin.d.ts +0 -5
  236. package/components/document-builder/src/plugins/index.d.ts +0 -11
  237. package/components/document-builder/src/plugins/page-orientation/page-orientation.plugin.d.ts +0 -24
  238. package/components/document-builder/src/plugins/paste-handler/filters/bookmark.d.ts +0 -14
  239. package/components/document-builder/src/plugins/paste-handler/filters/br.d.ts +0 -15
  240. package/components/document-builder/src/plugins/paste-handler/filters/image.d.ts +0 -25
  241. package/components/document-builder/src/plugins/paste-handler/filters/list.d.ts +0 -29
  242. package/components/document-builder/src/plugins/paste-handler/filters/parse.d.ts +0 -35
  243. package/components/document-builder/src/plugins/paste-handler/filters/removeboldwrapper.d.ts +0 -15
  244. package/components/document-builder/src/plugins/paste-handler/filters/removegooglesheetstag.d.ts +0 -15
  245. package/components/document-builder/src/plugins/paste-handler/filters/removeinvalidtablewidth.d.ts +0 -15
  246. package/components/document-builder/src/plugins/paste-handler/filters/removemsattributes.d.ts +0 -15
  247. package/components/document-builder/src/plugins/paste-handler/filters/removestyleblock.d.ts +0 -15
  248. package/components/document-builder/src/plugins/paste-handler/filters/removexmlns.d.ts +0 -15
  249. package/components/document-builder/src/plugins/paste-handler/filters/replacemsfootnotes.d.ts +0 -54
  250. package/components/document-builder/src/plugins/paste-handler/filters/replacetabswithinprewithspaces.d.ts +0 -24
  251. package/components/document-builder/src/plugins/paste-handler/filters/space.d.ts +0 -27
  252. package/components/document-builder/src/plugins/paste-handler/filters/table.d.ts +0 -16
  253. package/components/document-builder/src/plugins/paste-handler/filters/utils.d.ts +0 -25
  254. package/components/document-builder/src/plugins/paste-handler/index.d.ts +0 -35
  255. package/components/document-builder/src/plugins/paste-handler/normalizers/googledocsnormalizer.d.ts +0 -31
  256. package/components/document-builder/src/plugins/paste-handler/normalizers/googlesheetsnormalizer.d.ts +0 -31
  257. package/components/document-builder/src/plugins/paste-handler/normalizers/mswordnormalizer.d.ts +0 -29
  258. package/components/document-builder/src/plugins/paste-handler/types.d.ts +0 -30
  259. package/components/document-builder/src/plugins/table-custom/index.d.ts +0 -34
  260. package/components/document-builder/src/plugins/variable/variable.plugin.d.ts +0 -51
  261. package/components/editor/src/configurations/editor.configuration.d.ts +0 -12
  262. package/components/editor/src/configurations/index.d.ts +0 -1
  263. package/components/editor/src/editor.component.d.ts +0 -52
  264. package/components/editor/src/models/editor.model.d.ts +0 -10
  265. package/components/editor/src/models/image-upload.plugin.model.d.ts +0 -51
  266. package/components/editor/src/models/index.d.ts +0 -2
  267. package/components/editor/src/plugins/image-upload/image-upload.plugin.d.ts +0 -22
  268. package/components/editor/src/plugins/image-upload/utils/batch.utils.d.ts +0 -14
  269. package/components/editor/src/plugins/image-upload/utils/index.d.ts +0 -3
  270. package/components/editor/src/plugins/image-upload/utils/style.utils.d.ts +0 -3
  271. package/components/editor/src/plugins/image-upload/utils/validate.utils.d.ts +0 -4
  272. package/components/form-generic/src/components/form-builder/components/attribute-expression/attribute-expression.component.d.ts +0 -23
  273. package/components/form-generic/src/components/form-builder/components/attribute-input/attribute-input.component.d.ts +0 -17
  274. package/components/form-generic/src/components/form-builder/components/attribute-input-number/attribute-input-number.component.d.ts +0 -14
  275. package/components/form-generic/src/components/form-builder/components/attribute-parameter/attribute-parameter.component.d.ts +0 -33
  276. package/components/form-generic/src/components/form-builder/components/attribute-select/attribute-select.component.d.ts +0 -26
  277. package/components/form-generic/src/components/form-builder/components/attribute-selection/attribute-selection.component.d.ts +0 -27
  278. package/components/form-generic/src/components/form-builder/components/attribute-selection/components/build-queries/build-queries.component.d.ts +0 -35
  279. package/components/form-generic/src/components/form-builder/components/attribute-selection/components/build-variables/build-variables.component.d.ts +0 -41
  280. package/components/form-generic/src/components/form-builder/components/attribute-switch/attribute-switch.component.d.ts +0 -14
  281. package/components/form-generic/src/components/form-builder/components/attribute-table/attribute-table.component.d.ts +0 -36
  282. package/components/form-generic/src/components/form-builder/components/attribute-template/attribute-template.component.d.ts +0 -15
  283. package/components/form-generic/src/components/form-builder/components/attribute-textarea/attribute-textarea.component.d.ts +0 -17
  284. package/components/form-generic/src/components/form-builder/components/checkbox/attribute/checkbox-attribute.component.d.ts +0 -21
  285. package/components/form-generic/src/components/form-builder/components/checkbox/control/checkbox-control.component.d.ts +0 -8
  286. package/components/form-generic/src/components/form-builder/components/checkbox/index.d.ts +0 -2
  287. package/components/form-generic/src/components/form-builder/components/chip-calendar/attribute/chip-calendar-attribute.component.d.ts +0 -22
  288. package/components/form-generic/src/components/form-builder/components/chip-calendar/control/chip-calendar-control.component.d.ts +0 -16
  289. package/components/form-generic/src/components/form-builder/components/chip-calendar/index.d.ts +0 -2
  290. package/components/form-generic/src/components/form-builder/components/chip-string/attribute/chip-string-attribute.component.d.ts +0 -22
  291. package/components/form-generic/src/components/form-builder/components/chip-string/control/chip-string-control.component.d.ts +0 -16
  292. package/components/form-generic/src/components/form-builder/components/chip-string/index.d.ts +0 -2
  293. package/components/form-generic/src/components/form-builder/components/configure-validation/configure-validation.component.d.ts +0 -31
  294. package/components/form-generic/src/components/form-builder/components/datetime/attribute/datetime-attribute.component.d.ts +0 -21
  295. package/components/form-generic/src/components/form-builder/components/datetime/control/datetime-control.component.d.ts +0 -18
  296. package/components/form-generic/src/components/form-builder/components/datetime/index.d.ts +0 -2
  297. package/components/form-generic/src/components/form-builder/components/expression-builder/expression-builder.component.d.ts +0 -47
  298. package/components/form-generic/src/components/form-builder/components/group/attribute/group-attribute.component.d.ts +0 -23
  299. package/components/form-generic/src/components/form-builder/components/group/index.d.ts +0 -1
  300. package/components/form-generic/src/components/form-builder/components/html/attribute/components/build-queries/build-queries.component.d.ts +0 -35
  301. package/components/form-generic/src/components/form-builder/components/html/attribute/html-attribute.component.d.ts +0 -30
  302. package/components/form-generic/src/components/form-builder/components/html/control/html-control.component.d.ts +0 -20
  303. package/components/form-generic/src/components/form-builder/components/html/index.d.ts +0 -2
  304. package/components/form-generic/src/components/form-builder/components/index.d.ts +0 -13
  305. package/components/form-generic/src/components/form-builder/components/number/attribute/number-attribute.component.d.ts +0 -22
  306. package/components/form-generic/src/components/form-builder/components/number/control/number-control.component.d.ts +0 -17
  307. package/components/form-generic/src/components/form-builder/components/number/index.d.ts +0 -2
  308. package/components/form-generic/src/components/form-builder/components/radio/attribute/radio-attribute.component.d.ts +0 -22
  309. package/components/form-generic/src/components/form-builder/components/radio/control/radio-control.component.d.ts +0 -16
  310. package/components/form-generic/src/components/form-builder/components/radio/index.d.ts +0 -2
  311. package/components/form-generic/src/components/form-builder/components/select/attribute/select-attribute.component.d.ts +0 -22
  312. package/components/form-generic/src/components/form-builder/components/select/control/select-control.component.d.ts +0 -16
  313. package/components/form-generic/src/components/form-builder/components/select/index.d.ts +0 -2
  314. package/components/form-generic/src/components/form-builder/components/table/attribute/table-attribute.component.d.ts +0 -22
  315. package/components/form-generic/src/components/form-builder/components/table/control/table-control.component.d.ts +0 -19
  316. package/components/form-generic/src/components/form-builder/components/table/index.d.ts +0 -2
  317. package/components/form-generic/src/components/form-builder/components/textarea/attribute/textarea-attribute.component.d.ts +0 -21
  318. package/components/form-generic/src/components/form-builder/components/textarea/control/textarea-control.component.d.ts +0 -16
  319. package/components/form-generic/src/components/form-builder/components/textarea/index.d.ts +0 -2
  320. package/components/form-generic/src/components/form-builder/components/textfield/attribute/textfield-attribute.component.d.ts +0 -21
  321. package/components/form-generic/src/components/form-builder/components/textfield/control/textfield-control.component.d.ts +0 -16
  322. package/components/form-generic/src/components/form-builder/components/textfield/index.d.ts +0 -2
  323. package/components/form-generic/src/components/form-builder/components/upload/attribute/upload-attribute.component.d.ts +0 -27
  324. package/components/form-generic/src/components/form-builder/components/upload/control/upload-control.component.d.ts +0 -16
  325. package/components/form-generic/src/components/form-builder/components/upload/index.d.ts +0 -2
  326. package/components/form-generic/src/components/form-builder/form-builder.component.d.ts +0 -120
  327. package/components/form-generic/src/components/form-builder/services/builder.service.d.ts +0 -11
  328. package/components/form-generic/src/components/form-builder/services/index.d.ts +0 -1
  329. package/components/form-generic/src/components/form-render/components/index.d.ts +0 -2
  330. package/components/form-generic/src/components/form-render/components/item/components/chip-calendar/chip-calendar.component.d.ts +0 -30
  331. package/components/form-generic/src/components/form-render/components/item/components/chip-string/chip-string.component.d.ts +0 -30
  332. package/components/form-generic/src/components/form-render/components/item/components/datetime/datetime.component.d.ts +0 -34
  333. package/components/form-generic/src/components/form-render/components/item/components/html/html.component.d.ts +0 -32
  334. package/components/form-generic/src/components/form-render/components/item/components/index.d.ts +0 -11
  335. package/components/form-generic/src/components/form-render/components/item/components/number/number.component.d.ts +0 -30
  336. package/components/form-generic/src/components/form-render/components/item/components/radio/radio.component.d.ts +0 -38
  337. package/components/form-generic/src/components/form-render/components/item/components/select/select.component.d.ts +0 -43
  338. package/components/form-generic/src/components/form-render/components/item/components/table/table.component.d.ts +0 -51
  339. package/components/form-generic/src/components/form-render/components/item/components/textarea/textarea.component.d.ts +0 -30
  340. package/components/form-generic/src/components/form-render/components/item/components/textfield/textfield.component.d.ts +0 -33
  341. package/components/form-generic/src/components/form-render/components/item/components/upload/upload.component.d.ts +0 -36
  342. package/components/form-generic/src/components/form-render/components/item/item.component.d.ts +0 -32
  343. package/components/form-generic/src/components/form-render/components/variable/variable.component.d.ts +0 -22
  344. package/components/form-generic/src/components/form-render/form-render.component.d.ts +0 -39
  345. package/components/form-generic/src/components/index.d.ts +0 -3
  346. package/components/form-generic/src/components/sd-feel-expression/sd-feel-expression.component.d.ts +0 -43
  347. package/components/form-generic/src/configurations/form-generic.configuration.d.ts +0 -6
  348. package/components/form-generic/src/configurations/form.configuration.d.ts +0 -12
  349. package/components/form-generic/src/configurations/index.d.ts +0 -2
  350. package/components/form-generic/src/models/form-generic-component.model.d.ts +0 -318
  351. package/components/form-generic/src/models/form-generic-definition-html.model.d.ts +0 -28
  352. package/components/form-generic/src/models/form-generic-definition-selection.model.d.ts +0 -49
  353. package/components/form-generic/src/models/form-generic-definition-table.model.d.ts +0 -6
  354. package/components/form-generic/src/models/form-generic-expression.model.d.ts +0 -74
  355. package/components/form-generic/src/models/form-generic-template.model.d.ts +0 -6
  356. package/components/form-generic/src/models/form-generic-validation.model.d.ts +0 -30
  357. package/components/form-generic/src/models/form-generic.model.d.ts +0 -7
  358. package/components/form-generic/src/models/form-render/form-render-args.model.d.ts +0 -7
  359. package/components/form-generic/src/models/form-render/form-render-entity.model.d.ts +0 -3
  360. package/components/form-generic/src/models/form-render/index.d.ts +0 -2
  361. package/components/form-generic/src/models/index.d.ts +0 -8
  362. package/components/form-generic/src/pipes/component-viewed.pipe.d.ts +0 -14
  363. package/components/form-generic/src/pipes/expression-feel.pipe.d.ts +0 -10
  364. package/components/form-generic/src/pipes/expression-query.pipe.d.ts +0 -10
  365. package/components/form-generic/src/pipes/expression-view.pipe.d.ts +0 -8
  366. package/components/form-generic/src/pipes/html.pipe.d.ts +0 -11
  367. package/components/form-generic/src/pipes/hyperlink.pipe.d.ts +0 -8
  368. package/components/form-generic/src/pipes/index.d.ts +0 -7
  369. package/components/form-generic/src/pipes/when-expression.pipe.d.ts +0 -13
  370. package/components/form-generic/src/services/form-generic.service.d.ts +0 -26
  371. package/components/form-generic/src/services/form-render.service.d.ts +0 -10
  372. package/components/form-generic/src/services/index.d.ts +0 -2
  373. package/components/history/models/history.model.d.ts +0 -13
  374. package/components/history/pipes/view-date.pipe.d.ts +0 -8
  375. package/components/history/src/history.component.d.ts +0 -7
  376. package/components/import-excel/src/import-excel.component.d.ts +0 -47
  377. package/components/import-excel/src/import-excel.model.d.ts +0 -102
  378. package/components/import-excel/src/pipes/columm-hidden.pipe.d.ts +0 -10
  379. package/components/import-excel/src/pipes/column-transform.pipe.d.ts +0 -11
  380. package/components/inform/src/inform-action.directive.d.ts +0 -9
  381. package/components/inform/src/inform.component.d.ts +0 -59
  382. package/components/mini-editor/src/mini-editor.component.d.ts +0 -91
  383. package/components/mini-editor/src/mini-editor.model.d.ts +0 -44
  384. package/components/modal/src/modal.component.d.ts +0 -30
  385. package/components/operator/src/operator.component.d.ts +0 -34
  386. package/components/preview/src/preview-image/preview-image.component.d.ts +0 -88
  387. package/components/preview/src/preview-image/preview-image.types.d.ts +0 -53
  388. package/components/preview/src/preview-pdf/preview-pdf.component.d.ts +0 -186
  389. package/components/preview/src/preview-pdf/preview-pdf.types.d.ts +0 -84
  390. package/components/query-bar/src/components/actions-bar/actions-bar.component.d.ts +0 -28
  391. package/components/query-bar/src/components/build-chip/build-chip.component.d.ts +0 -67
  392. package/components/query-bar/src/components/chip-popover/chip-popover.component.d.ts +0 -73
  393. package/components/query-bar/src/components/field-picker/field-picker.component.d.ts +0 -37
  394. package/components/query-bar/src/components/inline-chip/inline-chip.component.d.ts +0 -87
  395. package/components/query-bar/src/components/inline-value-chip/inline-value-chip.component.d.ts +0 -71
  396. package/components/query-bar/src/components/popover-chip/popover-chip.component.d.ts +0 -35
  397. package/components/query-bar/src/components/saved-filters-menu/saved-filters-menu.component.d.ts +0 -39
  398. package/components/query-bar/src/query-bar.component.d.ts +0 -137
  399. package/components/query-bar/src/query-bar.model.d.ts +0 -136
  400. package/components/query-builder/src/query-builder.component.d.ts +0 -26
  401. package/components/quick-action/src/quick-action.component.d.ts +0 -9
  402. package/components/section/src/section-item/section-item.component.d.ts +0 -7
  403. package/components/section/src/section.component.d.ts +0 -18
  404. package/components/side-drawer/src/side-drawer.component.d.ts +0 -30
  405. package/components/splitter/src/splitter-handle/splitter-handle.component.d.ts +0 -24
  406. package/components/splitter/src/splitter-panel/splitter-panel.component.d.ts +0 -16
  407. package/components/splitter/src/splitter-state.service.d.ts +0 -26
  408. package/components/splitter/src/splitter.component.d.ts +0 -28
  409. package/components/splitter/src/splitter.models.d.ts +0 -23
  410. package/components/stepper/src/step.component.d.ts +0 -17
  411. package/components/stepper/src/stepper.component.d.ts +0 -33
  412. package/components/tab/src/tab-group.component.d.ts +0 -37
  413. package/components/tab/src/tab.component.d.ts +0 -13
  414. package/components/tab-router/src/actions/tab-router.action.d.ts +0 -5
  415. package/components/tab-router/src/components/tab-router-item/tab-router-item.component.d.ts +0 -22
  416. package/components/tab-router/src/components/tab-router-nav/tab-router-nav.component.d.ts +0 -16
  417. package/components/tab-router/src/components/tab-router-outlet/tab-router-outlet.component.d.ts +0 -15
  418. package/components/tab-router/src/decorators/tab.decorator.d.ts +0 -16
  419. package/components/tab-router/src/events/tab-router.event.d.ts +0 -11
  420. package/components/tab-router/src/models/index.d.ts +0 -1
  421. package/components/tab-router/src/models/tab-router.model.d.ts +0 -21
  422. package/components/tab-router/src/pipes/tab-info.pipe.d.ts +0 -11
  423. package/components/tab-router/src/services/tab-decorator.service.d.ts +0 -9
  424. package/components/tab-router/src/services/tab-router.service.d.ts +0 -27
  425. package/components/table/src/components/column-title/column-title.component.d.ts +0 -10
  426. package/components/table/src/components/command/desktop-command.component.d.ts +0 -14
  427. package/components/table/src/components/command/pipes/command.pipe.d.ts +0 -30
  428. package/components/table/src/components/command/pipes/filter.pipe.d.ts +0 -35
  429. package/components/table/src/components/config/config.component.d.ts +0 -25
  430. package/components/table/src/components/desktop-cell/desktop-cell.component.d.ts +0 -24
  431. package/components/table/src/components/desktop-cell/view/view.component.d.ts +0 -24
  432. package/components/table/src/components/filter/column-filter/column-filter.component.d.ts +0 -32
  433. package/components/table/src/components/filter/external-filter/external-filter.component.d.ts +0 -27
  434. package/components/table/src/components/filter/index.d.ts +0 -3
  435. package/components/table/src/components/filter/mobile-filter/mobile-filter.component.d.ts +0 -42
  436. package/components/table/src/components/index.d.ts +0 -3
  437. package/components/table/src/components/popup-export/popup-export.component.d.ts +0 -51
  438. package/components/table/src/components/selector-action/action-filter.pipe.d.ts +0 -34
  439. package/components/table/src/components/selector-action/selector-action.component.d.ts +0 -16
  440. package/components/table/src/configurations/index.d.ts +0 -1
  441. package/components/table/src/configurations/table.configuration.d.ts +0 -35
  442. package/components/table/src/directives/index.d.ts +0 -6
  443. package/components/table/src/directives/sd-column-resize.directive.d.ts +0 -13
  444. package/components/table/src/directives/sd-table-cell-def.directive.d.ts +0 -16
  445. package/components/table/src/directives/sd-table-column-filter-def.directive.d.ts +0 -16
  446. package/components/table/src/directives/sd-table-expand-def.directive.d.ts +0 -13
  447. package/components/table/src/directives/sd-table-filter-def.directive.d.ts +0 -14
  448. package/components/table/src/directives/sd-table-footer-def.directive.d.ts +0 -16
  449. package/components/table/src/directives/sd-table-group-def.directive.d.ts +0 -44
  450. package/components/table/src/directives/sd-table-title-def.directive.d.ts +0 -14
  451. package/components/table/src/directives/sticky-shadow.directive.d.ts +0 -17
  452. package/components/table/src/models/index.d.ts +0 -5
  453. package/components/table/src/models/table-column.model.d.ts +0 -119
  454. package/components/table/src/models/table-command.model.d.ts +0 -25
  455. package/components/table/src/models/table-item.model.d.ts +0 -65
  456. package/components/table/src/models/table-option-config.model.d.ts +0 -42
  457. package/components/table/src/models/table-option-expand.model.d.ts +0 -6
  458. package/components/table/src/models/table-option-export.model.d.ts +0 -42
  459. package/components/table/src/models/table-option-group.model.d.ts +0 -21
  460. package/components/table/src/models/table-option-paginate.model.d.ts +0 -7
  461. package/components/table/src/models/table-option-reload.model.d.ts +0 -7
  462. package/components/table/src/models/table-option-selector.model.d.ts +0 -105
  463. package/components/table/src/models/table-option-sort.model.d.ts +0 -3
  464. package/components/table/src/models/table-option-style.model.d.ts +0 -11
  465. package/components/table/src/models/table-option-tree.model.d.ts +0 -12
  466. package/components/table/src/models/table-option.model.d.ts +0 -181
  467. package/components/table/src/pipes/filter-values.pipe.d.ts +0 -8
  468. package/components/table/src/pipes/index.d.ts +0 -2
  469. package/components/table/src/pipes/sd-group.pipe.d.ts +0 -23
  470. package/components/table/src/pipes/sd-tree.pipe.d.ts +0 -9
  471. package/components/table/src/pipes/selection-disabled.pipe.d.ts +0 -9
  472. package/components/table/src/pipes/selection-visible-select-all.pipe.d.ts +0 -9
  473. package/components/table/src/pipes/selection-visible.pipe.d.ts +0 -9
  474. package/components/table/src/services/column-width.util.d.ts +0 -7
  475. package/components/table/src/services/config.service.d.ts +0 -21
  476. package/components/table/src/services/index.d.ts +0 -3
  477. package/components/table/src/services/table-export/table-export.service.d.ts +0 -26
  478. package/components/table/src/services/table-filter/table-filter.model.d.ts +0 -150
  479. package/components/table/src/services/table-filter/table-filter.service.d.ts +0 -20
  480. package/components/table/src/services/table-format/table-format.service.d.ts +0 -16
  481. package/components/table/src/services/tree/tree.util.d.ts +0 -14
  482. package/components/table/src/table.component.d.ts +0 -137
  483. package/components/upload-file/src/components/preview/preview.component.d.ts +0 -23
  484. package/components/upload-file/src/configurations/index.d.ts +0 -1
  485. package/components/upload-file/src/configurations/upload-file.configuration.d.ts +0 -50
  486. package/components/upload-file/src/pipes/document.pipe.d.ts +0 -8
  487. package/components/upload-file/src/pipes/image.pipe.d.ts +0 -8
  488. package/components/upload-file/src/pipes/index.d.ts +0 -2
  489. package/components/upload-file/src/services/index.d.ts +0 -2
  490. package/components/upload-file/src/services/upload-file.model.d.ts +0 -12
  491. package/components/upload-file/src/services/upload-file.service.d.ts +0 -10
  492. package/components/upload-file/src/upload-file.component.d.ts +0 -85
  493. package/components/view/src/view.component.d.ts +0 -17
  494. package/configurations/src/sd-core.configuration.d.ts +0 -10
  495. package/directives/src/sd-desktop.directive.d.ts +0 -7
  496. package/directives/src/sd-hover-copy.directive.d.ts +0 -16
  497. package/directives/src/sd-href.directive.d.ts +0 -9
  498. package/directives/src/sd-mobile.directive.d.ts +0 -7
  499. package/directives/src/sd-scroll.directive.d.ts +0 -14
  500. package/directives/src/sd-tooltip.directive.d.ts +0 -26
  501. package/forms/autocomplete/src/autocomplete.component.d.ts +0 -93
  502. package/forms/checkbox/src/checkbox.component.d.ts +0 -28
  503. package/forms/chip/src/chip.component.d.ts +0 -71
  504. package/forms/chip/src/index.d.ts +0 -2
  505. package/forms/chip/src/pipes/index.d.ts +0 -1
  506. package/forms/chip/src/pipes/removable-chip.pipe.d.ts +0 -8
  507. package/forms/chip-calendar/src/chip-calendar.component.d.ts +0 -71
  508. package/forms/chip-calendar/src/pipes/index.d.ts +0 -1
  509. package/forms/chip-calendar/src/pipes/removable-chip.pipe.d.ts +0 -8
  510. package/forms/date/src/date.component.d.ts +0 -79
  511. package/forms/date-range/src/date-range.component.d.ts +0 -81
  512. package/forms/datetime/src/datetime.component.d.ts +0 -89
  513. package/forms/datetime/src/popup/sd-datetime-picker.component.d.ts +0 -37
  514. package/forms/datetime/src/popup/sd-time-spinner.component.d.ts +0 -41
  515. package/forms/directives/src/item-def.directive.d.ts +0 -13
  516. package/forms/directives/src/label-def.directive.d.ts +0 -9
  517. package/forms/directives/src/suffix-def.directive.d.ts +0 -9
  518. package/forms/directives/src/view-def.directive.d.ts +0 -14
  519. package/forms/input/src/input.component.d.ts +0 -84
  520. package/forms/input-color/src/input-color.component.d.ts +0 -32
  521. package/forms/input-number/src/input-number.component.d.ts +0 -95
  522. package/forms/label/src/label.component.d.ts +0 -13
  523. package/forms/models/src/form-control-state.d.ts +0 -23
  524. package/forms/models/src/sd-custom-validator.model.d.ts +0 -15
  525. package/forms/models/src/sd-form-control.model.d.ts +0 -21
  526. package/forms/models/src/sd-form.configuration.d.ts +0 -6
  527. package/forms/models/src/sd-search.model.d.ts +0 -7
  528. package/forms/models/src/sd-selection-data.model.d.ts +0 -7
  529. package/forms/radio/src/radio.component.d.ts +0 -49
  530. package/forms/select/src/select.component.d.ts +0 -93
  531. package/forms/src/forms.module.d.ts +0 -14
  532. package/forms/switch/src/switch.component.d.ts +0 -32
  533. package/forms/textarea/src/textarea.component.d.ts +0 -65
  534. package/handlers/global-error.handler.d.ts +0 -9
  535. package/i18n/src/en.d.ts +0 -449
  536. package/i18n/src/i18n.messages.d.ts +0 -2
  537. package/i18n/src/i18n.pipe.d.ts +0 -9
  538. package/i18n/src/i18n.service.d.ts +0 -14
  539. package/i18n/src/i18n.token.d.ts +0 -1
  540. package/i18n/src/i18n.types.d.ts +0 -31
  541. package/i18n/src/ja.d.ts +0 -2
  542. package/i18n/src/ko.d.ts +0 -2
  543. package/i18n/src/vi.d.ts +0 -2
  544. package/i18n/src/zh.d.ts +0 -2
  545. package/interceptors/no-internet/no-internet.interceptor.d.ts +0 -14
  546. package/interceptors/unauthorized/unauthorized.interceptor.d.ts +0 -12
  547. package/models/src/language.model.d.ts +0 -2
  548. package/modules/auth/configurations/auth.configuration.d.ts +0 -19
  549. package/modules/auth/configurations/index.d.ts +0 -1
  550. package/modules/auth/guards/auth.guard.d.ts +0 -11
  551. package/modules/auth/guards/index.d.ts +0 -2
  552. package/modules/auth/guards/portal.guard.d.ts +0 -11
  553. package/modules/auth/services/auth.model.d.ts +0 -8
  554. package/modules/auth/services/auth.service.d.ts +0 -17
  555. package/modules/auth/services/index.d.ts +0 -2
  556. package/modules/authom/authom.configuration.d.ts +0 -17
  557. package/modules/authom/authom.interceptor.d.ts +0 -3
  558. package/modules/authom/authom.module.d.ts +0 -16
  559. package/modules/authom/authom.service.d.ts +0 -32
  560. package/modules/keycloak/keycloak.configuration.d.ts +0 -11
  561. package/modules/keycloak/keycloak.interceptor.d.ts +0 -2
  562. package/modules/keycloak/keycloak.module.d.ts +0 -18
  563. package/modules/keycloak/keycloak.service.d.ts +0 -14
  564. package/modules/layout/components/index.d.ts +0 -4
  565. package/modules/layout/components/layout-main/layout-main.component.d.ts +0 -12
  566. package/modules/layout/components/page/page.component.d.ts +0 -10
  567. package/modules/layout/components/sidebar-mobile-v1/components/sidebar/sidebar.component.d.ts +0 -35
  568. package/modules/layout/components/sidebar-mobile-v1/components/user/user.component.d.ts +0 -24
  569. package/modules/layout/components/sidebar-mobile-v1/main.component.d.ts +0 -21
  570. package/modules/layout/components/sidebar-v1/components/sidebar/sidebar.component.d.ts +0 -55
  571. package/modules/layout/components/sidebar-v1/components/user/user.component.d.ts +0 -22
  572. package/modules/layout/components/sidebar-v1/main.component.d.ts +0 -24
  573. package/modules/layout/configurations/index.d.ts +0 -1
  574. package/modules/layout/configurations/layout.configuration.d.ts +0 -67
  575. package/modules/layout/layout.module.d.ts +0 -7
  576. package/modules/layout/layout.routing.d.ts +0 -2
  577. package/modules/layout/modules/forbidden/forbidden.module.d.ts +0 -8
  578. package/modules/layout/modules/forbidden/forbidden.routing.d.ts +0 -2
  579. package/modules/layout/modules/forbidden/index.d.ts +0 -1
  580. package/modules/layout/modules/forbidden/pages/root/root.component.d.ts +0 -10
  581. package/modules/layout/modules/home/components/home-page/home-page.component.d.ts +0 -33
  582. package/modules/layout/modules/home/guards/home-redirect.guard.d.ts +0 -11
  583. package/modules/layout/modules/home/home.module.d.ts +0 -8
  584. package/modules/layout/modules/home/home.routing.d.ts +0 -7
  585. package/modules/layout/modules/home/index.d.ts +0 -1
  586. package/modules/layout/modules/index.d.ts +0 -3
  587. package/modules/layout/modules/not-found/index.d.ts +0 -1
  588. package/modules/layout/modules/not-found/not-found.module.d.ts +0 -8
  589. package/modules/layout/modules/not-found/not-found.routing.d.ts +0 -2
  590. package/modules/layout/modules/not-found/pages/root/root.component.d.ts +0 -10
  591. package/modules/layout/pipes/high-light-search.pipe.d.ts +0 -10
  592. package/modules/layout/pipes/index.d.ts +0 -3
  593. package/modules/layout/pipes/menu-focus.pipe.d.ts +0 -10
  594. package/modules/layout/pipes/menu.pipe.d.ts +0 -13
  595. package/modules/layout/services/index.d.ts +0 -3
  596. package/modules/layout/services/layout.service.d.ts +0 -10
  597. package/modules/layout/services/menu/menu.model.d.ts +0 -24
  598. package/modules/layout/services/storage/storage.service.d.ts +0 -13
  599. package/modules/permission/src/configurations/index.d.ts +0 -1
  600. package/modules/permission/src/configurations/permission.configuration.d.ts +0 -63
  601. package/modules/permission/src/directives/index.d.ts +0 -1
  602. package/modules/permission/src/directives/permission.directive.d.ts +0 -9
  603. package/modules/permission/src/guards/index.d.ts +0 -1
  604. package/modules/permission/src/guards/permission.guard.d.ts +0 -14
  605. package/modules/permission/src/services/index.d.ts +0 -1
  606. package/modules/permission/src/services/permission.service.d.ts +0 -12
  607. package/pipes/src/empty.pipe.d.ts +0 -7
  608. package/pipes/src/format-number.pipe.d.ts +0 -11
  609. package/pipes/src/safe-html.pipe.d.ts +0 -11
  610. package/pipes/src/time-different.pipe.d.ts +0 -13
  611. package/public-api.d.ts +0 -10
  612. package/services/api/src/api.model.d.ts +0 -36
  613. package/services/api/src/api.module.d.ts +0 -6
  614. package/services/api/src/api.service.d.ts +0 -19
  615. package/services/api/src/interceptors/api.interceptor.d.ts +0 -9
  616. package/services/cache/src/cache.model.d.ts +0 -30
  617. package/services/cache/src/cache.service.d.ts +0 -9
  618. package/services/confirm/src/lib/components/dialog-confirm/dialog-confirm.component.d.ts +0 -46
  619. package/services/confirm/src/lib/confirm.service.d.ts +0 -55
  620. package/services/confirm/src/public-api.d.ts +0 -2
  621. package/services/docx/src/lib/docx.model.d.ts +0 -9
  622. package/services/docx/src/lib/docx.service.d.ts +0 -15
  623. package/services/docx/src/lib/pandoc-core.d.ts +0 -11
  624. package/services/docx/src/public-api.d.ts +0 -2
  625. package/services/excel/src/lib/excel.model.d.ts +0 -31
  626. package/services/excel/src/lib/excel.service.d.ts +0 -19
  627. package/services/excel/src/public-api.d.ts +0 -2
  628. package/services/license/src/license.service.d.ts +0 -10
  629. package/services/loading/src/loading.service.d.ts +0 -14
  630. package/services/notify/src/components/toast/toast.component.d.ts +0 -28
  631. package/services/notify/src/components/toast-container.component.d.ts +0 -8
  632. package/services/notify/src/notify.model.d.ts +0 -16
  633. package/services/notify/src/notify.service.d.ts +0 -20
  634. package/services/storage/src/storage.model.d.ts +0 -20
  635. package/services/storage/src/storage.service.d.ts +0 -10
  636. package/utilities/data-state/src/data-state.d.ts +0 -11
  637. package/utilities/extensions/src/array.extension.d.ts +0 -1
  638. package/utilities/extensions/src/color.extension.d.ts +0 -5
  639. package/utilities/extensions/src/date.extension.d.ts +0 -1
  640. package/utilities/extensions/src/number.extension.d.ts +0 -1
  641. package/utilities/extensions/src/string.extension.d.ts +0 -50
  642. package/utilities/extensions/src/utility.extension.d.ts +0 -31
  643. package/utilities/models/src/color.model.d.ts +0 -4
  644. package/utilities/models/src/empty.model.d.ts +0 -4
  645. package/utilities/models/src/filter.model.d.ts +0 -12
  646. package/utilities/models/src/icon.model.d.ts +0 -2
  647. package/utilities/models/src/maybe-async.model.d.ts +0 -10
  648. package/utilities/models/src/nested-key-of.model.d.ts +0 -4
  649. package/utilities/models/src/operator.model.d.ts +0 -13
  650. package/utilities/models/src/order.model.d.ts +0 -4
  651. package/utilities/models/src/paging.model.d.ts +0 -8
  652. package/utilities/models/src/pattern.model.d.ts +0 -21
  653. package/utilities/models/src/size.model.d.ts +0 -4
  654. package/utilities/models/src/unwrap-signal.model.d.ts +0 -6
@@ -129,10 +129,10 @@ class SdNoInternetInterceptor {
129
129
  this.#pollInterval = null;
130
130
  }
131
131
  };
132
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdNoInternetInterceptor, deps: [{ token: i1.MatSnackBar }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
133
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdNoInternetInterceptor });
132
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: SdNoInternetInterceptor, deps: [{ token: i1.MatSnackBar }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
133
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: SdNoInternetInterceptor });
134
134
  }
135
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdNoInternetInterceptor, decorators: [{
135
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: SdNoInternetInterceptor, decorators: [{
136
136
  type: Injectable
137
137
  }], ctorParameters: () => [{ type: i1.MatSnackBar }, { type: i0.Injector }] });
138
138
 
@@ -151,10 +151,10 @@ class SdUnauthorizedInterceptor {
151
151
  return throwError(() => error);
152
152
  }));
153
153
  }
154
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdUnauthorizedInterceptor, deps: [{ token: i1$1.SdAuthService }], target: i0.ɵɵFactoryTarget.Injectable });
155
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdUnauthorizedInterceptor });
154
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: SdUnauthorizedInterceptor, deps: [{ token: i1$1.SdAuthService }], target: i0.ɵɵFactoryTarget.Injectable });
155
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: SdUnauthorizedInterceptor });
156
156
  }
157
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdUnauthorizedInterceptor, decorators: [{
157
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: SdUnauthorizedInterceptor, decorators: [{
158
158
  type: Injectable
159
159
  }], ctorParameters: () => [{ type: i1$1.SdAuthService }] });
160
160
 
@@ -36,7 +36,7 @@ class SdAuthService {
36
36
  });
37
37
  }
38
38
  else {
39
- this.getAuthInfo = signal(defaultUser);
39
+ this.getAuthInfo = signal(defaultUser, ...(ngDevMode ? [{ debugName: "getAuthInfo" }] : []));
40
40
  }
41
41
  }
42
42
  // #handleSignin = () => {
@@ -62,10 +62,10 @@ class SdAuthService {
62
62
  });
63
63
  }
64
64
  };
65
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdAuthService, deps: [{ token: SD_AUTH_CONFIGURATION, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
66
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdAuthService, providedIn: 'root' });
65
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: SdAuthService, deps: [{ token: SD_AUTH_CONFIGURATION, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
66
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: SdAuthService, providedIn: 'root' });
67
67
  }
68
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdAuthService, decorators: [{
68
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: SdAuthService, decorators: [{
69
69
  type: Injectable,
70
70
  args: [{ providedIn: 'root' }]
71
71
  }], ctorParameters: () => [{ type: undefined, decorators: [{
@@ -89,10 +89,10 @@ class SdAuthGuard {
89
89
  // Nếu chưa tích hợp Auth Guard thì pass canActive
90
90
  return true;
91
91
  };
92
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdAuthGuard, deps: [{ token: SD_AUTH_CONFIGURATION, optional: true }, { token: i1.Router }], target: i0.ɵɵFactoryTarget.Injectable });
93
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdAuthGuard, providedIn: 'root' });
92
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: SdAuthGuard, deps: [{ token: SD_AUTH_CONFIGURATION, optional: true }, { token: i1.Router }], target: i0.ɵɵFactoryTarget.Injectable });
93
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: SdAuthGuard, providedIn: 'root' });
94
94
  }
95
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdAuthGuard, decorators: [{
95
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: SdAuthGuard, decorators: [{
96
96
  type: Injectable,
97
97
  args: [{ providedIn: 'root' }]
98
98
  }], ctorParameters: () => [{ type: undefined, decorators: [{
@@ -116,10 +116,10 @@ class SdPortalGuard {
116
116
  // Nếu chưa tích hợp Portal Guard thì pass canActive
117
117
  return true;
118
118
  };
119
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdPortalGuard, deps: [{ token: SD_AUTH_CONFIGURATION, optional: true }, { token: i1.Router }], target: i0.ɵɵFactoryTarget.Injectable });
120
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdPortalGuard, providedIn: 'root' });
119
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: SdPortalGuard, deps: [{ token: SD_AUTH_CONFIGURATION, optional: true }, { token: i1.Router }], target: i0.ɵɵFactoryTarget.Injectable });
120
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: SdPortalGuard, providedIn: 'root' });
121
121
  }
122
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdPortalGuard, decorators: [{
122
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: SdPortalGuard, decorators: [{
123
123
  type: Injectable,
124
124
  args: [{ providedIn: 'root' }]
125
125
  }], ctorParameters: () => [{ type: undefined, decorators: [{
@@ -1 +1 @@
1
- {"version":3,"file":"sdcorejs-angular-modules-auth.mjs","sources":["../../../projects/sdcorejs-angular/modules/auth/configurations/auth.configuration.ts","../../../projects/sdcorejs-angular/modules/auth/services/auth.service.ts","../../../projects/sdcorejs-angular/modules/auth/guards/auth.guard.ts","../../../projects/sdcorejs-angular/modules/auth/guards/portal.guard.ts","../../../projects/sdcorejs-angular/modules/auth/sdcorejs-angular-modules-auth.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nimport { CanActivate } from '@angular/router';\nimport { MaybeAsync } from '@sdcorejs/utils/models';\nimport { SdAuthInfo } from '../services';\n\nexport interface ISdAuthConfiguration {\n action?: IAuthConfigurationAction;\n guard?: IAuthConfigurationGuard;\n}\n\nexport const SD_AUTH_CONFIGURATION = new InjectionToken<ISdAuthConfiguration>('sd.auth.configuration');\n\ninterface IAuthConfigurationAction {\n signout: () => MaybeAsync<void>;\n changePassword?: () => MaybeAsync<void>;\n}\n\ninterface IAuthConfigurationGuard {\n auth?: CanActivate['canActivate'];\n portal?: CanActivate['canActivate'];\n authInfo: () => MaybeAsync<SdAuthInfo>;\n}\n","import { Inject, Injectable, Optional, signal, Signal } from '@angular/core';\nimport { from, Observable, Subject } from 'rxjs';\nimport { ISdAuthConfiguration, SD_AUTH_CONFIGURATION } from '../configurations';\nimport { normalizeAsync, resolveMaybeAsync } from '@sdcorejs/utils/models';\nimport { SdAuthInfo } from './auth.model';\nimport { toSignal } from '@angular/core/rxjs-interop';\n\n@Injectable({ providedIn: 'root' })\nexport class SdAuthService {\n // Đăng nhập\n // #signin = new Subject<void>();\n // signin$?: Observable<void>;\n getAuthInfo?: Signal<SdAuthInfo | undefined>;\n\n // Đăng xuất\n #signout = new Subject<void>();\n signout$?: Observable<void>;\n\n // Thay đổi mật khẩu\n #changePassword = new Subject<void>();\n changePassword$?: Observable<void>;\n\n constructor(@Optional() @Inject(SD_AUTH_CONFIGURATION) private authConfiguration: ISdAuthConfiguration) {\n // this.#handleSignin();\n this.#handleSignout();\n this.#handleChangePassword();\n const defaultUser = {\n id: 'guest-id',\n username: 'guest',\n firstName: 'Guest',\n email: 'guest@gmail.com',\n };\n if (this.authConfiguration?.guard?.authInfo) {\n this.getAuthInfo = toSignal(normalizeAsync(this.authConfiguration.guard?.authInfo()), {\n initialValue: defaultUser,\n });\n } else {\n this.getAuthInfo = signal(defaultUser);\n }\n }\n\n // #handleSignin = () => {\n // this.signin$ = this.#signin.asObservable();\n // };\n\n #handleSignout = () => {\n this.signout$ = this.#signout.asObservable();\n };\n\n #handleChangePassword = () => {\n this.changePassword$ = this.#changePassword.asObservable();\n };\n signout = () => {\n if (this.authConfiguration?.action?.signout) {\n resolveMaybeAsync(this.authConfiguration.action.signout()).then(() => {\n this.#signout.next();\n });\n }\n };\n\n changePassword = () => {\n if (this.authConfiguration?.action?.changePassword) {\n resolveMaybeAsync(this.authConfiguration.action.changePassword()).then(() => {\n this.#changePassword.next();\n });\n }\n };\n}\n","import { Inject, Injectable, Optional } from '@angular/core';\nimport { ActivatedRouteSnapshot, CanActivate, Router, RouterStateSnapshot } from '@angular/router';\nimport { ISdAuthConfiguration, SD_AUTH_CONFIGURATION } from '../configurations';\n\n@Injectable({ providedIn: 'root' })\nexport class SdAuthGuard implements CanActivate {\n constructor(\n @Optional() @Inject(SD_AUTH_CONFIGURATION) private authConfiguration: ISdAuthConfiguration,\n protected readonly router: Router\n ) {}\n\n canActivate = (route: ActivatedRouteSnapshot, state: RouterStateSnapshot) => {\n if (this.authConfiguration?.guard?.auth) {\n return this.authConfiguration.guard.auth(route, state);\n }\n // Nếu chưa tích hợp Auth Guard thì pass canActive\n return true;\n };\n}\n","import { Inject, Injectable, Optional } from '@angular/core';\nimport { ActivatedRouteSnapshot, CanActivate, Router, RouterStateSnapshot } from '@angular/router';\nimport { ISdAuthConfiguration, SD_AUTH_CONFIGURATION } from '../configurations';\n\n@Injectable({ providedIn: 'root' })\nexport class SdPortalGuard implements CanActivate {\n constructor(\n @Optional() @Inject(SD_AUTH_CONFIGURATION) private authConfiguration: ISdAuthConfiguration,\n protected readonly router: Router\n ) {}\n\n canActivate = (route: ActivatedRouteSnapshot, state: RouterStateSnapshot) => {\n if (this.authConfiguration?.guard?.portal) {\n return this.authConfiguration.guard.portal(route, state);\n }\n // Nếu chưa tích hợp Portal Guard thì pass canActive\n return true;\n };\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAUa,qBAAqB,GAAG,IAAI,cAAc,CAAuB,uBAAuB;;MCFxF,aAAa,CAAA;AAcuC,IAAA,iBAAA;;;;AAV/D,IAAA,WAAW;;AAGX,IAAA,QAAQ,GAAG,IAAI,OAAO,EAAQ;AAC9B,IAAA,QAAQ;;AAGR,IAAA,eAAe,GAAG,IAAI,OAAO,EAAQ;AACrC,IAAA,eAAe;AAEf,IAAA,WAAA,CAA+D,iBAAuC,EAAA;QAAvC,IAAA,CAAA,iBAAiB,GAAjB,iBAAiB;;QAE9E,IAAI,CAAC,cAAc,EAAE;QACrB,IAAI,CAAC,qBAAqB,EAAE;AAC5B,QAAA,MAAM,WAAW,GAAG;AAClB,YAAA,EAAE,EAAE,UAAU;AACd,YAAA,QAAQ,EAAE,OAAO;AACjB,YAAA,SAAS,EAAE,OAAO;AAClB,YAAA,KAAK,EAAE,iBAAiB;SACzB;QACD,IAAI,IAAI,CAAC,iBAAiB,EAAE,KAAK,EAAE,QAAQ,EAAE;AAC3C,YAAA,IAAI,CAAC,WAAW,GAAG,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,iBAAiB,CAAC,KAA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;;;;"}
1
+ {"version":3,"file":"sdcorejs-angular-modules-auth.mjs","sources":["../../../projects/sdcorejs-angular/modules/auth/configurations/auth.configuration.ts","../../../projects/sdcorejs-angular/modules/auth/services/auth.service.ts","../../../projects/sdcorejs-angular/modules/auth/guards/auth.guard.ts","../../../projects/sdcorejs-angular/modules/auth/guards/portal.guard.ts","../../../projects/sdcorejs-angular/modules/auth/sdcorejs-angular-modules-auth.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nimport { CanActivate } from '@angular/router';\nimport { MaybeAsync } from '@sdcorejs/utils/models';\nimport { SdAuthInfo } from '../services';\n\nexport interface ISdAuthConfiguration {\n action?: IAuthConfigurationAction;\n guard?: IAuthConfigurationGuard;\n}\n\nexport const SD_AUTH_CONFIGURATION = new InjectionToken<ISdAuthConfiguration>('sd.auth.configuration');\n\ninterface IAuthConfigurationAction {\n signout: () => MaybeAsync<void>;\n changePassword?: () => MaybeAsync<void>;\n}\n\ninterface IAuthConfigurationGuard {\n auth?: CanActivate['canActivate'];\n portal?: CanActivate['canActivate'];\n authInfo: () => MaybeAsync<SdAuthInfo>;\n}\n","import { Inject, Injectable, Optional, signal, Signal } from '@angular/core';\nimport { from, Observable, Subject } from 'rxjs';\nimport { ISdAuthConfiguration, SD_AUTH_CONFIGURATION } from '../configurations';\nimport { normalizeAsync, resolveMaybeAsync } from '@sdcorejs/utils/models';\nimport { SdAuthInfo } from './auth.model';\nimport { toSignal } from '@angular/core/rxjs-interop';\n\n@Injectable({ providedIn: 'root' })\nexport class SdAuthService {\n // Đăng nhập\n // #signin = new Subject<void>();\n // signin$?: Observable<void>;\n getAuthInfo?: Signal<SdAuthInfo | undefined>;\n\n // Đăng xuất\n #signout = new Subject<void>();\n signout$?: Observable<void>;\n\n // Thay đổi mật khẩu\n #changePassword = new Subject<void>();\n changePassword$?: Observable<void>;\n\n constructor(@Optional() @Inject(SD_AUTH_CONFIGURATION) private authConfiguration: ISdAuthConfiguration) {\n // this.#handleSignin();\n this.#handleSignout();\n this.#handleChangePassword();\n const defaultUser = {\n id: 'guest-id',\n username: 'guest',\n firstName: 'Guest',\n email: 'guest@gmail.com',\n };\n if (this.authConfiguration?.guard?.authInfo) {\n this.getAuthInfo = toSignal(normalizeAsync(this.authConfiguration.guard?.authInfo()), {\n initialValue: defaultUser,\n });\n } else {\n this.getAuthInfo = signal(defaultUser);\n }\n }\n\n // #handleSignin = () => {\n // this.signin$ = this.#signin.asObservable();\n // };\n\n #handleSignout = () => {\n this.signout$ = this.#signout.asObservable();\n };\n\n #handleChangePassword = () => {\n this.changePassword$ = this.#changePassword.asObservable();\n };\n signout = () => {\n if (this.authConfiguration?.action?.signout) {\n resolveMaybeAsync(this.authConfiguration.action.signout()).then(() => {\n this.#signout.next();\n });\n }\n };\n\n changePassword = () => {\n if (this.authConfiguration?.action?.changePassword) {\n resolveMaybeAsync(this.authConfiguration.action.changePassword()).then(() => {\n this.#changePassword.next();\n });\n }\n };\n}\n","import { Inject, Injectable, Optional } from '@angular/core';\nimport { ActivatedRouteSnapshot, CanActivate, Router, RouterStateSnapshot } from '@angular/router';\nimport { ISdAuthConfiguration, SD_AUTH_CONFIGURATION } from '../configurations';\n\n@Injectable({ providedIn: 'root' })\nexport class SdAuthGuard implements CanActivate {\n constructor(\n @Optional() @Inject(SD_AUTH_CONFIGURATION) private authConfiguration: ISdAuthConfiguration,\n protected readonly router: Router\n ) {}\n\n canActivate = (route: ActivatedRouteSnapshot, state: RouterStateSnapshot) => {\n if (this.authConfiguration?.guard?.auth) {\n return this.authConfiguration.guard.auth(route, state);\n }\n // Nếu chưa tích hợp Auth Guard thì pass canActive\n return true;\n };\n}\n","import { Inject, Injectable, Optional } from '@angular/core';\nimport { ActivatedRouteSnapshot, CanActivate, Router, RouterStateSnapshot } from '@angular/router';\nimport { ISdAuthConfiguration, SD_AUTH_CONFIGURATION } from '../configurations';\n\n@Injectable({ providedIn: 'root' })\nexport class SdPortalGuard implements CanActivate {\n constructor(\n @Optional() @Inject(SD_AUTH_CONFIGURATION) private authConfiguration: ISdAuthConfiguration,\n protected readonly router: Router\n ) {}\n\n canActivate = (route: ActivatedRouteSnapshot, state: RouterStateSnapshot) => {\n if (this.authConfiguration?.guard?.portal) {\n return this.authConfiguration.guard.portal(route, state);\n }\n // Nếu chưa tích hợp Portal Guard thì pass canActive\n return true;\n };\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAUa,qBAAqB,GAAG,IAAI,cAAc,CAAuB,uBAAuB;;MCFxF,aAAa,CAAA;AAcuC,IAAA,iBAAA;;;;AAV/D,IAAA,WAAW;;AAGX,IAAA,QAAQ,GAAG,IAAI,OAAO,EAAQ;AAC9B,IAAA,QAAQ;;AAGR,IAAA,eAAe,GAAG,IAAI,OAAO,EAAQ;AACrC,IAAA,eAAe;AAEf,IAAA,WAAA,CAA+D,iBAAuC,EAAA;QAAvC,IAAA,CAAA,iBAAiB,GAAjB,iBAAiB;;QAE9E,IAAI,CAAC,cAAc,EAAE;QACrB,IAAI,CAAC,qBAAqB,EAAE;AAC5B,QAAA,MAAM,WAAW,GAAG;AAClB,YAAA,EAAE,EAAE,UAAU;AACd,YAAA,QAAQ,EAAE,OAAO;AACjB,YAAA,SAAS,EAAE,OAAO;AAClB,YAAA,KAAK,EAAE,iBAAiB;SACzB;QACD,IAAI,IAAI,CAAC,iBAAiB,EAAE,KAAK,EAAE,QAAQ,EAAE;AAC3C,YAAA,IAAI,CAAC,WAAW,GAAG,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,iBAAiB,CAAC,KAAK,EAAE,QAAQ,EAAE,CAAC,EAAE;AACpF,gBAAA,YAAY,EAAE,WAAW;AAC1B,aAAA,CAAC;QACJ;aAAO;AACL,YAAA,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC,WAAW,uDAAC;QACxC;IACF;;;;IAMA,cAAc,GAAG,MAAK;QACpB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CA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,EAAA;QADkB,IAAA,CAAA,iBAAiB,GAAjB,iBAAiB;QACjD,IAAA,CAAA,MAAM,GAAN,MAAM;IACxB;AAEH,IAAA,WAAW,GAAG,CAAC,KAA6B,EAAE,KAA0B,KAAI;QAC1E,IAAI,IAAI,CAAC,iBAAiB,EAAE,KAAK,EAAE,MAAM,EAAE;AACzC,YAAA,OAAO,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC;QAC1D;;AAEA,QAAA,OAAO,IAAI;AACb,IAAA,CAAC;AAZU,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,kBAEF,qBAAqB,EAAA,QAAA,EAAA,IAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,MAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAFhC,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,aAAa,cADA,MAAM,EAAA,CAAA;;4FACnB,aAAa,EAAA,UAAA,EAAA,CAAA;kBADzB,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;0BAG7B;;0BAAY,MAAM;2BAAC,qBAAqB;;;ACP7C;;AAEG;;;;"}
@@ -14,9 +14,9 @@ const DEFAULT_AUTHORIZE_TIMEOUT_SECONDS = 5;
14
14
  class SdAuthOmService {
15
15
  platformId = inject(PLATFORM_ID);
16
16
  isBrowser = isPlatformBrowser(this.platformId);
17
- accessToken = signal(null);
18
- idTokenClaims = signal(null);
19
- isAuthenticated = computed(() => this.accessToken() !== null);
17
+ accessToken = signal(null, ...(ngDevMode ? [{ debugName: "accessToken" }] : []));
18
+ idTokenClaims = signal(null, ...(ngDevMode ? [{ debugName: "idTokenClaims" }] : []));
19
+ isAuthenticated = computed(() => this.accessToken() !== null, ...(ngDevMode ? [{ debugName: "isAuthenticated" }] : []));
20
20
  config;
21
21
  refreshTimer = null;
22
22
  getAccessToken() {
@@ -247,10 +247,10 @@ class SdAuthOmService {
247
247
  }
248
248
  return this.silentRefresh();
249
249
  }
250
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdAuthOmService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
251
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdAuthOmService, providedIn: 'root' });
250
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: SdAuthOmService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
251
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: SdAuthOmService, providedIn: 'root' });
252
252
  }
253
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdAuthOmService, decorators: [{
253
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: SdAuthOmService, decorators: [{
254
254
  type: Injectable,
255
255
  args: [{ providedIn: 'root' }]
256
256
  }] });
@@ -311,11 +311,11 @@ class SdAuthOmModule {
311
311
  ],
312
312
  };
313
313
  }
314
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdAuthOmModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
315
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.21", ngImport: i0, type: SdAuthOmModule });
316
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdAuthOmModule });
314
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: SdAuthOmModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
315
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: SdAuthOmModule });
316
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: SdAuthOmModule });
317
317
  }
318
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdAuthOmModule, decorators: [{
318
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: SdAuthOmModule, decorators: [{
319
319
  type: NgModule,
320
320
  args: [{}]
321
321
  }] });
@@ -1 +1 @@
1
- {"version":3,"file":"sdcorejs-angular-modules-authom.mjs","sources":["../../../projects/sdcorejs-angular/modules/authom/authom.configuration.ts","../../../projects/sdcorejs-angular/modules/authom/authom.service.ts","../../../projects/sdcorejs-angular/modules/authom/authom.interceptor.ts","../../../projects/sdcorejs-angular/modules/authom/authom.module.ts","../../../projects/sdcorejs-angular/modules/authom/index.ts","../../../projects/sdcorejs-angular/modules/authom/sdcorejs-angular-modules-authom.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\n\nexport interface SdAuthOmTenantConfig {\n domain: string;\n clientId: string;\n\n redirectUri?: string;\n audience?: string;\n organization?: string;\n scope?: string;\n\n secureRoutes?: string[];\n\n silentRefreshRedirectUri?: string;\n refreshThresholdSeconds?: number;\n authorizeTimeoutInSeconds?: number;\n}\n\nexport interface ISdAuthOmConfiguration {\n loadTenantConfig: () => Promise<SdAuthOmTenantConfig>;\n}\n\nexport const SD_AUTHOM_CONFIGURATION = new InjectionToken<ISdAuthOmConfiguration>('sd-authom.configuration');\n","import { Injectable, PLATFORM_ID, computed, inject, signal } from '@angular/core';\nimport { isPlatformBrowser } from '@angular/common';\nimport { SdAuthOmTenantConfig } from './authom.configuration';\nimport { StringUtilities } from '@sdcorejs/utils/fns';\n\nconst STORAGE_KEY_STATE = 'authom_state';\nconst STORAGE_KEY_CODE_VERIFIER = 'authom_code_verifier';\nconst STORAGE_KEY_RETURN_TO = 'authom_return_to';\n\nconst DEFAULT_SCOPE = 'openid profile email';\nconst DEFAULT_REFRESH_THRESHOLD_SECONDS = 30;\nconst DEFAULT_AUTHORIZE_TIMEOUT_SECONDS = 5;\n\n@Injectable({ providedIn: 'root' })\nexport class SdAuthOmService {\n private readonly platformId = inject(PLATFORM_ID);\n private readonly isBrowser = isPlatformBrowser(this.platformId);\n\n readonly accessToken = signal<string | null>(null);\n readonly idTokenClaims = signal<Record<string, unknown> | null>(null);\n readonly isAuthenticated = computed(() => this.accessToken() !== null);\n\n config!: SdAuthOmTenantConfig;\n private refreshTimer: ReturnType<typeof setTimeout> | null = null;\n\n getAccessToken(): string | null {\n return this.accessToken();\n }\n\n private base64UrlEncode(bytes: Uint8Array): string {\n let binary = '';\n for (let i = 0; i < bytes.length; i++) binary += String.fromCharCode(bytes[i]);\n return btoa(binary).replace(/\\+/g, '-').replace(/\\//g, '_').replace(/=+$/, '');\n }\n\n private generateCodeVerifier(): string {\n const bytes = new Uint8Array(32);\n crypto.getRandomValues(bytes);\n return this.base64UrlEncode(bytes);\n }\n\n private async generateCodeChallenge(verifier: string): Promise<string> {\n return StringUtilities.sha256(verifier);\n }\n\n private buildAuthorizeUrl(params: {\n state: string;\n codeChallenge: string;\n redirectUri: string;\n prompt?: 'none';\n }): string {\n const search = new URLSearchParams({\n response_type: 'code',\n client_id: this.config.clientId,\n redirect_uri: params.redirectUri,\n state: params.state,\n code_challenge: params.codeChallenge,\n code_challenge_method: 'S256',\n scope: this.config.scope || DEFAULT_SCOPE,\n });\n if (this.config.audience) search.set('audience', this.config.audience);\n if (this.config.organization) search.set('organization', this.config.organization);\n if (params.prompt) search.set('prompt', params.prompt);\n return `https://${this.config.domain}/authorize?${search.toString()}`;\n }\n\n private getDefaultRedirectUri(): string {\n return this.config.redirectUri || window.location.origin;\n }\n\n private getSilentRedirectUri(): string {\n return this.config.silentRefreshRedirectUri || `${window.location.origin}/silent-authom.html`;\n }\n\n private decodeJwtPayload(token: string): Record<string, unknown> | null {\n try {\n const parts = token.split('.');\n if (parts.length !== 3) return null;\n const padded = parts[1].replace(/-/g, '+').replace(/_/g, '/');\n const json = atob(padded + '==='.slice((padded.length + 3) % 4));\n return JSON.parse(json);\n } catch {\n return null;\n }\n }\n\n async login(options?: { returnTo?: string }): Promise<void> {\n if (!this.isBrowser) return;\n\n const state = crypto.randomUUID();\n const codeVerifier = this.generateCodeVerifier();\n const codeChallenge = await this.generateCodeChallenge(codeVerifier);\n const returnTo = options?.returnTo || (window.location.pathname + window.location.search);\n\n sessionStorage.setItem(STORAGE_KEY_STATE, state);\n sessionStorage.setItem(STORAGE_KEY_CODE_VERIFIER, codeVerifier);\n sessionStorage.setItem(STORAGE_KEY_RETURN_TO, returnTo);\n\n window.location.href = this.buildAuthorizeUrl({\n state,\n codeChallenge,\n redirectUri: this.getDefaultRedirectUri(),\n });\n }\n\n logout(options?: { returnTo?: string }): void {\n if (!this.isBrowser) return;\n\n this.accessToken.set(null);\n this.idTokenClaims.set(null);\n if (this.refreshTimer) {\n clearTimeout(this.refreshTimer);\n this.refreshTimer = null;\n }\n\n const returnTo = options?.returnTo || window.location.origin;\n const search = new URLSearchParams({\n client_id: this.config.clientId,\n returnTo,\n });\n window.location.href = `https://${this.config.domain}/v2/logout?${search.toString()}`;\n }\n\n private async exchangeCode(code: string, codeVerifier: string, redirectUri: string): Promise<boolean> {\n try {\n const body = new URLSearchParams({\n grant_type: 'authorization_code',\n code,\n code_verifier: codeVerifier,\n redirect_uri: redirectUri,\n client_id: this.config.clientId,\n });\n const res = await fetch(`https://${this.config.domain}/oauth/token`, {\n method: 'POST',\n headers: { 'Content-Type': 'application/x-www-form-urlencoded' },\n body: body.toString(),\n });\n if (!res.ok) return false;\n const data = await res.json() as { access_token?: string; id_token?: string };\n if (!data.access_token) return false;\n\n this.accessToken.set(data.access_token);\n if (data.id_token) {\n this.idTokenClaims.set(this.decodeJwtPayload(data.id_token));\n }\n this.scheduleRefresh(data.access_token);\n return true;\n } catch {\n return false;\n }\n }\n\n private scheduleRefresh(token: string): void {\n if (this.refreshTimer) {\n clearTimeout(this.refreshTimer);\n this.refreshTimer = null;\n }\n const claims = this.decodeJwtPayload(token);\n const exp = claims?.['exp'];\n if (typeof exp !== 'number') {\n // @i18n-ignore — dev console warning\n console.warn('[SdAuthOmService] Token không có exp — bỏ qua auto-refresh');\n return;\n }\n const threshold = this.config.refreshThresholdSeconds ?? DEFAULT_REFRESH_THRESHOLD_SECONDS;\n const nowSeconds = Math.floor(Date.now() / 1000);\n const delayMs = Math.max(0, (exp - nowSeconds - threshold) * 1000);\n this.refreshTimer = setTimeout(() => {\n this.silentRefresh();\n }, delayMs);\n }\n\n silentRefresh(): Promise<boolean> {\n if (!this.isBrowser) return Promise.resolve(false);\n\n return new Promise(async (resolve) => {\n const state = crypto.randomUUID();\n const codeVerifier = this.generateCodeVerifier();\n const codeChallenge = await this.generateCodeChallenge(codeVerifier);\n const redirectUri = this.getSilentRedirectUri();\n const timeoutMs = (this.config.authorizeTimeoutInSeconds ?? DEFAULT_AUTHORIZE_TIMEOUT_SECONDS) * 1000;\n\n const iframe = document.createElement('iframe');\n iframe.style.display = 'none';\n\n let done = false;\n const finish = (success: boolean) => {\n if (done) return;\n done = true;\n clearTimeout(timer);\n iframe.remove();\n window.removeEventListener('message', onMessage);\n resolve(success);\n };\n\n const timer = setTimeout(() => finish(false), timeoutMs);\n\n const onMessage = async (event: MessageEvent) => {\n if (event.origin !== window.location.origin) return;\n const data = event.data as { type?: string; code?: string; state?: string } | null;\n if (!data || typeof data !== 'object') return;\n\n if (data.type === 'AUTHOM_SILENT_SUCCESS' && data.code && data.state === state) {\n const ok = await this.exchangeCode(data.code, codeVerifier, redirectUri);\n if (!ok) {\n this.accessToken.set(null);\n this.idTokenClaims.set(null);\n }\n finish(ok);\n } else if (data.type === 'AUTHOM_SILENT_ERROR') {\n this.accessToken.set(null);\n this.idTokenClaims.set(null);\n finish(false);\n }\n };\n\n window.addEventListener('message', onMessage);\n\n iframe.src = this.buildAuthorizeUrl({\n state,\n codeChallenge,\n redirectUri,\n prompt: 'none',\n });\n document.body.appendChild(iframe);\n });\n }\n\n async handleCallback(): Promise<boolean> {\n if (!this.isBrowser) return false;\n\n const params = new URLSearchParams(window.location.search);\n const code = params.get('code');\n const state = params.get('state');\n if (!code) return false;\n\n const savedState = sessionStorage.getItem(STORAGE_KEY_STATE);\n const codeVerifier = sessionStorage.getItem(STORAGE_KEY_CODE_VERIFIER);\n const returnTo = sessionStorage.getItem(STORAGE_KEY_RETURN_TO);\n sessionStorage.removeItem(STORAGE_KEY_STATE);\n sessionStorage.removeItem(STORAGE_KEY_CODE_VERIFIER);\n\n if (state !== savedState || !codeVerifier) {\n window.history.replaceState({}, '', window.location.pathname);\n sessionStorage.removeItem(STORAGE_KEY_RETURN_TO);\n return false;\n }\n\n const redirectUri = this.getDefaultRedirectUri();\n const ok = await this.exchangeCode(code, codeVerifier, redirectUri);\n\n if (returnTo) {\n sessionStorage.removeItem(STORAGE_KEY_RETURN_TO);\n window.history.replaceState({}, '', returnTo);\n } else {\n window.history.replaceState({}, '', window.location.pathname);\n }\n\n return ok;\n }\n\n async init(config: SdAuthOmTenantConfig): Promise<boolean> {\n this.config = config;\n if (!this.isBrowser) return false;\n\n const hasCode = new URLSearchParams(window.location.search).has('code');\n if (hasCode) {\n const ok = await this.handleCallback();\n if (ok) return true;\n }\n\n return this.silentRefresh();\n }\n}\n","import { HttpInterceptorFn } from '@angular/common/http';\nimport { inject } from '@angular/core';\nimport { SdAuthOmService } from './authom.service';\n\nconst escapeRegExp = (str: string): string => str.replace(/[.+?^${}()|[\\]\\\\]/g, '\\\\$&');\n\nexport const matchGlob = (pattern: string, url: string): boolean => {\n const regexBody = pattern.split('*').map(escapeRegExp).join('.*');\n return new RegExp(`^${regexBody}$`).test(url);\n};\n\nexport const SdAuthOmInterceptor: HttpInterceptorFn = (req, next) => {\n const authom = inject(SdAuthOmService);\n const token = authom.getAccessToken();\n const config = authom.config;\n\n if (!token || !config) return next(req);\n\n const isSecure = config.secureRoutes?.some(pattern => matchGlob(pattern, req.url));\n if (!isSecure) return next(req);\n\n const authReq = req.clone({\n headers: req.headers.set('Authorization', `Bearer ${token}`),\n });\n return next(authReq);\n};\n","import {\n ModuleWithProviders,\n NgModule,\n Provider,\n Type,\n EnvironmentProviders,\n makeEnvironmentProviders,\n provideAppInitializer,\n inject,\n APP_INITIALIZER,\n} from '@angular/core';\nimport { ISdAuthOmConfiguration, SD_AUTHOM_CONFIGURATION } from './authom.configuration';\nimport { SdAuthOmService } from './authom.service';\n\ninterface ProvideOptions {\n useClass?: Type<ISdAuthOmConfiguration>;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n useFactory?: (...args: any[]) => ISdAuthOmConfiguration;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n deps?: any[];\n}\n\nexport function provideSdAuthOm(options: ProvideOptions): EnvironmentProviders {\n const providers: Array<Provider | EnvironmentProviders> = [SdAuthOmService];\n\n if (options.useFactory) {\n providers.push({ provide: SD_AUTHOM_CONFIGURATION, useFactory: options.useFactory, deps: options.deps || [] });\n } else if (options.useClass) {\n providers.push({ provide: SD_AUTHOM_CONFIGURATION, useClass: options.useClass });\n }\n\n providers.push(\n provideAppInitializer(() => {\n const configLoader = inject(SD_AUTHOM_CONFIGURATION);\n const authom = inject(SdAuthOmService);\n return configLoader.loadTenantConfig().then((config) => authom.init(config));\n })\n );\n\n return makeEnvironmentProviders(providers);\n}\n\n@NgModule({})\nexport class SdAuthOmModule {\n static forRoot(options: ProvideOptions): ModuleWithProviders<SdAuthOmModule> {\n return {\n ngModule: SdAuthOmModule,\n providers: [\n SdAuthOmService,\n ...(options.useFactory\n ? [{ provide: SD_AUTHOM_CONFIGURATION, useFactory: options.useFactory, deps: options.deps || [] }]\n : [{ provide: SD_AUTHOM_CONFIGURATION, useClass: options.useClass! }]\n ),\n {\n provide: APP_INITIALIZER,\n multi: true,\n useFactory: () => {\n const configLoader = inject(SD_AUTHOM_CONFIGURATION);\n const authom = inject(SdAuthOmService);\n return () => configLoader.loadTenantConfig().then((config) => authom.init(config));\n },\n },\n ],\n };\n }\n}\n","/**\n * Module `authom` — OAuth 2.0 + PKCE authentication client cho AuthOM (Auth0-based).\n *\n * Cách dùng (standalone):\n * ```ts\n * import { provideHttpClient, withInterceptors } from '@angular/common/http';\n * import { provideSdAuthOm, SdAuthOmInterceptor } from '@sdcorejs/angular/modules/authom';\n *\n * export const appConfig: ApplicationConfig = {\n * providers: [\n * provideHttpClient(withInterceptors([SdAuthOmInterceptor])),\n * provideSdAuthOm({\n * useFactory: () => ({\n * loadTenantConfig: () => Promise.resolve({\n * domain: 'login.example.com',\n * clientId: 'YOUR_CLIENT_ID',\n * audience: 'https://api.example.com',\n * organization: 'org_xxx',\n * scope: 'openid profile email offline_access',\n * secureRoutes: ['https://api.example.com/*'],\n * }),\n * }),\n * }),\n * ],\n * };\n * ```\n *\n * Yêu cầu setup thêm:\n * 1. Copy file `silent-authom.html` từ source module này vào thư mục `public/` của app.\n * 2. App phải chạy trên HTTPS (hoặc localhost) — Web Crypto API yêu cầu secure context.\n */\nexport * from './authom.configuration';\nexport * from './authom.service';\nexport * from './authom.interceptor';\nexport * from './authom.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAsBa,uBAAuB,GAAG,IAAI,cAAc,CAAyB,yBAAyB;;ACjB3G,MAAM,iBAAiB,GAAG,cAAc;AACxC,MAAM,yBAAyB,GAAG,sBAAsB;AACxD,MAAM,qBAAqB,GAAG,kBAAkB;AAEhD,MAAM,aAAa,GAAG,sBAAsB;AAC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A,CAAA;;4FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAD1B,QAAQ;mBAAC,EAAE;;;AC1CZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BG;;AC9BH;;AAEG;;;;"}
1
+ {"version":3,"file":"sdcorejs-angular-modules-authom.mjs","sources":["../../../projects/sdcorejs-angular/modules/authom/authom.configuration.ts","../../../projects/sdcorejs-angular/modules/authom/authom.service.ts","../../../projects/sdcorejs-angular/modules/authom/authom.interceptor.ts","../../../projects/sdcorejs-angular/modules/authom/authom.module.ts","../../../projects/sdcorejs-angular/modules/authom/index.ts","../../../projects/sdcorejs-angular/modules/authom/sdcorejs-angular-modules-authom.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\n\nexport interface SdAuthOmTenantConfig {\n domain: string;\n clientId: string;\n\n redirectUri?: string;\n audience?: string;\n organization?: string;\n scope?: string;\n\n secureRoutes?: string[];\n\n silentRefreshRedirectUri?: string;\n refreshThresholdSeconds?: number;\n authorizeTimeoutInSeconds?: number;\n}\n\nexport interface ISdAuthOmConfiguration {\n loadTenantConfig: () => Promise<SdAuthOmTenantConfig>;\n}\n\nexport const SD_AUTHOM_CONFIGURATION = new InjectionToken<ISdAuthOmConfiguration>('sd-authom.configuration');\n","import { Injectable, PLATFORM_ID, computed, inject, signal } from '@angular/core';\nimport { isPlatformBrowser } from '@angular/common';\nimport { SdAuthOmTenantConfig } from './authom.configuration';\nimport { StringUtilities } from '@sdcorejs/utils/fns';\n\nconst STORAGE_KEY_STATE = 'authom_state';\nconst STORAGE_KEY_CODE_VERIFIER = 'authom_code_verifier';\nconst STORAGE_KEY_RETURN_TO = 'authom_return_to';\n\nconst DEFAULT_SCOPE = 'openid profile email';\nconst DEFAULT_REFRESH_THRESHOLD_SECONDS = 30;\nconst DEFAULT_AUTHORIZE_TIMEOUT_SECONDS = 5;\n\n@Injectable({ providedIn: 'root' })\nexport class SdAuthOmService {\n private readonly platformId = inject(PLATFORM_ID);\n private readonly isBrowser = isPlatformBrowser(this.platformId);\n\n readonly accessToken = signal<string | null>(null);\n readonly idTokenClaims = signal<Record<string, unknown> | null>(null);\n readonly isAuthenticated = computed(() => this.accessToken() !== null);\n\n config!: SdAuthOmTenantConfig;\n private refreshTimer: ReturnType<typeof setTimeout> | null = null;\n\n getAccessToken(): string | null {\n return this.accessToken();\n }\n\n private base64UrlEncode(bytes: Uint8Array): string {\n let binary = '';\n for (let i = 0; i < bytes.length; i++) binary += String.fromCharCode(bytes[i]);\n return btoa(binary).replace(/\\+/g, '-').replace(/\\//g, '_').replace(/=+$/, '');\n }\n\n private generateCodeVerifier(): string {\n const bytes = new Uint8Array(32);\n crypto.getRandomValues(bytes);\n return this.base64UrlEncode(bytes);\n }\n\n private async generateCodeChallenge(verifier: string): Promise<string> {\n return StringUtilities.sha256(verifier);\n }\n\n private buildAuthorizeUrl(params: {\n state: string;\n codeChallenge: string;\n redirectUri: string;\n prompt?: 'none';\n }): string {\n const search = new URLSearchParams({\n response_type: 'code',\n client_id: this.config.clientId,\n redirect_uri: params.redirectUri,\n state: params.state,\n code_challenge: params.codeChallenge,\n code_challenge_method: 'S256',\n scope: this.config.scope || DEFAULT_SCOPE,\n });\n if (this.config.audience) search.set('audience', this.config.audience);\n if (this.config.organization) search.set('organization', this.config.organization);\n if (params.prompt) search.set('prompt', params.prompt);\n return `https://${this.config.domain}/authorize?${search.toString()}`;\n }\n\n private getDefaultRedirectUri(): string {\n return this.config.redirectUri || window.location.origin;\n }\n\n private getSilentRedirectUri(): string {\n return this.config.silentRefreshRedirectUri || `${window.location.origin}/silent-authom.html`;\n }\n\n private decodeJwtPayload(token: string): Record<string, unknown> | null {\n try {\n const parts = token.split('.');\n if (parts.length !== 3) return null;\n const padded = parts[1].replace(/-/g, '+').replace(/_/g, '/');\n const json = atob(padded + '==='.slice((padded.length + 3) % 4));\n return JSON.parse(json);\n } catch {\n return null;\n }\n }\n\n async login(options?: { returnTo?: string }): Promise<void> {\n if (!this.isBrowser) return;\n\n const state = crypto.randomUUID();\n const codeVerifier = this.generateCodeVerifier();\n const codeChallenge = await this.generateCodeChallenge(codeVerifier);\n const returnTo = options?.returnTo || (window.location.pathname + window.location.search);\n\n sessionStorage.setItem(STORAGE_KEY_STATE, state);\n sessionStorage.setItem(STORAGE_KEY_CODE_VERIFIER, codeVerifier);\n sessionStorage.setItem(STORAGE_KEY_RETURN_TO, returnTo);\n\n window.location.href = this.buildAuthorizeUrl({\n state,\n codeChallenge,\n redirectUri: this.getDefaultRedirectUri(),\n });\n }\n\n logout(options?: { returnTo?: string }): void {\n if (!this.isBrowser) return;\n\n this.accessToken.set(null);\n this.idTokenClaims.set(null);\n if (this.refreshTimer) {\n clearTimeout(this.refreshTimer);\n this.refreshTimer = null;\n }\n\n const returnTo = options?.returnTo || window.location.origin;\n const search = new URLSearchParams({\n client_id: this.config.clientId,\n returnTo,\n });\n window.location.href = `https://${this.config.domain}/v2/logout?${search.toString()}`;\n }\n\n private async exchangeCode(code: string, codeVerifier: string, redirectUri: string): Promise<boolean> {\n try {\n const body = new URLSearchParams({\n grant_type: 'authorization_code',\n code,\n code_verifier: codeVerifier,\n redirect_uri: redirectUri,\n client_id: this.config.clientId,\n });\n const res = await fetch(`https://${this.config.domain}/oauth/token`, {\n method: 'POST',\n headers: { 'Content-Type': 'application/x-www-form-urlencoded' },\n body: body.toString(),\n });\n if (!res.ok) return false;\n const data = await res.json() as { access_token?: string; id_token?: string };\n if (!data.access_token) return false;\n\n this.accessToken.set(data.access_token);\n if (data.id_token) {\n this.idTokenClaims.set(this.decodeJwtPayload(data.id_token));\n }\n this.scheduleRefresh(data.access_token);\n return true;\n } catch {\n return false;\n }\n }\n\n private scheduleRefresh(token: string): void {\n if (this.refreshTimer) {\n clearTimeout(this.refreshTimer);\n this.refreshTimer = null;\n }\n const claims = this.decodeJwtPayload(token);\n const exp = claims?.['exp'];\n if (typeof exp !== 'number') {\n // @i18n-ignore — dev console warning\n console.warn('[SdAuthOmService] Token không có exp — bỏ qua auto-refresh');\n return;\n }\n const threshold = this.config.refreshThresholdSeconds ?? DEFAULT_REFRESH_THRESHOLD_SECONDS;\n const nowSeconds = Math.floor(Date.now() / 1000);\n const delayMs = Math.max(0, (exp - nowSeconds - threshold) * 1000);\n this.refreshTimer = setTimeout(() => {\n this.silentRefresh();\n }, delayMs);\n }\n\n silentRefresh(): Promise<boolean> {\n if (!this.isBrowser) return Promise.resolve(false);\n\n return new Promise(async (resolve) => {\n const state = crypto.randomUUID();\n const codeVerifier = this.generateCodeVerifier();\n const codeChallenge = await this.generateCodeChallenge(codeVerifier);\n const redirectUri = this.getSilentRedirectUri();\n const timeoutMs = (this.config.authorizeTimeoutInSeconds ?? DEFAULT_AUTHORIZE_TIMEOUT_SECONDS) * 1000;\n\n const iframe = document.createElement('iframe');\n iframe.style.display = 'none';\n\n let done = false;\n const finish = (success: boolean) => {\n if (done) return;\n done = true;\n clearTimeout(timer);\n iframe.remove();\n window.removeEventListener('message', onMessage);\n resolve(success);\n };\n\n const timer = setTimeout(() => finish(false), timeoutMs);\n\n const onMessage = async (event: MessageEvent) => {\n if (event.origin !== window.location.origin) return;\n const data = event.data as { type?: string; code?: string; state?: string } | null;\n if (!data || typeof data !== 'object') return;\n\n if (data.type === 'AUTHOM_SILENT_SUCCESS' && data.code && data.state === state) {\n const ok = await this.exchangeCode(data.code, codeVerifier, redirectUri);\n if (!ok) {\n this.accessToken.set(null);\n this.idTokenClaims.set(null);\n }\n finish(ok);\n } else if (data.type === 'AUTHOM_SILENT_ERROR') {\n this.accessToken.set(null);\n this.idTokenClaims.set(null);\n finish(false);\n }\n };\n\n window.addEventListener('message', onMessage);\n\n iframe.src = this.buildAuthorizeUrl({\n state,\n codeChallenge,\n redirectUri,\n prompt: 'none',\n });\n document.body.appendChild(iframe);\n });\n }\n\n async handleCallback(): Promise<boolean> {\n if (!this.isBrowser) return false;\n\n const params = new URLSearchParams(window.location.search);\n const code = params.get('code');\n const state = params.get('state');\n if (!code) return false;\n\n const savedState = sessionStorage.getItem(STORAGE_KEY_STATE);\n const codeVerifier = sessionStorage.getItem(STORAGE_KEY_CODE_VERIFIER);\n const returnTo = sessionStorage.getItem(STORAGE_KEY_RETURN_TO);\n sessionStorage.removeItem(STORAGE_KEY_STATE);\n sessionStorage.removeItem(STORAGE_KEY_CODE_VERIFIER);\n\n if (state !== savedState || !codeVerifier) {\n window.history.replaceState({}, '', window.location.pathname);\n sessionStorage.removeItem(STORAGE_KEY_RETURN_TO);\n return false;\n }\n\n const redirectUri = this.getDefaultRedirectUri();\n const ok = await this.exchangeCode(code, codeVerifier, redirectUri);\n\n if (returnTo) {\n sessionStorage.removeItem(STORAGE_KEY_RETURN_TO);\n window.history.replaceState({}, '', returnTo);\n } else {\n window.history.replaceState({}, '', window.location.pathname);\n }\n\n return ok;\n }\n\n async init(config: SdAuthOmTenantConfig): Promise<boolean> {\n this.config = config;\n if (!this.isBrowser) return false;\n\n const hasCode = new URLSearchParams(window.location.search).has('code');\n if (hasCode) {\n const ok = await this.handleCallback();\n if (ok) return true;\n }\n\n return this.silentRefresh();\n }\n}\n","import { HttpInterceptorFn } from '@angular/common/http';\nimport { inject } from '@angular/core';\nimport { SdAuthOmService } from './authom.service';\n\nconst escapeRegExp = (str: string): string => str.replace(/[.+?^${}()|[\\]\\\\]/g, '\\\\$&');\n\nexport const matchGlob = (pattern: string, url: string): boolean => {\n const regexBody = pattern.split('*').map(escapeRegExp).join('.*');\n return new RegExp(`^${regexBody}$`).test(url);\n};\n\nexport const SdAuthOmInterceptor: HttpInterceptorFn = (req, next) => {\n const authom = inject(SdAuthOmService);\n const token = authom.getAccessToken();\n const config = authom.config;\n\n if (!token || !config) return next(req);\n\n const isSecure = config.secureRoutes?.some(pattern => matchGlob(pattern, req.url));\n if (!isSecure) return next(req);\n\n const authReq = req.clone({\n headers: req.headers.set('Authorization', `Bearer ${token}`),\n });\n return next(authReq);\n};\n","import {\n ModuleWithProviders,\n NgModule,\n Provider,\n Type,\n EnvironmentProviders,\n makeEnvironmentProviders,\n provideAppInitializer,\n inject,\n APP_INITIALIZER,\n} from '@angular/core';\nimport { ISdAuthOmConfiguration, SD_AUTHOM_CONFIGURATION } from './authom.configuration';\nimport { SdAuthOmService } from './authom.service';\n\ninterface ProvideOptions {\n useClass?: Type<ISdAuthOmConfiguration>;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n useFactory?: (...args: any[]) => ISdAuthOmConfiguration;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n deps?: any[];\n}\n\nexport function provideSdAuthOm(options: ProvideOptions): EnvironmentProviders {\n const providers: Array<Provider | EnvironmentProviders> = [SdAuthOmService];\n\n if (options.useFactory) {\n providers.push({ provide: SD_AUTHOM_CONFIGURATION, useFactory: options.useFactory, deps: options.deps || [] });\n } else if (options.useClass) {\n providers.push({ provide: SD_AUTHOM_CONFIGURATION, useClass: options.useClass });\n }\n\n providers.push(\n provideAppInitializer(() => {\n const configLoader = inject(SD_AUTHOM_CONFIGURATION);\n const authom = inject(SdAuthOmService);\n return configLoader.loadTenantConfig().then((config) => authom.init(config));\n })\n );\n\n return makeEnvironmentProviders(providers);\n}\n\n@NgModule({})\nexport class SdAuthOmModule {\n static forRoot(options: ProvideOptions): ModuleWithProviders<SdAuthOmModule> {\n return {\n ngModule: SdAuthOmModule,\n providers: [\n SdAuthOmService,\n ...(options.useFactory\n ? [{ provide: SD_AUTHOM_CONFIGURATION, useFactory: options.useFactory, deps: options.deps || [] }]\n : [{ provide: SD_AUTHOM_CONFIGURATION, useClass: options.useClass! }]\n ),\n {\n provide: APP_INITIALIZER,\n multi: true,\n useFactory: () => {\n const configLoader = inject(SD_AUTHOM_CONFIGURATION);\n const authom = inject(SdAuthOmService);\n return () => configLoader.loadTenantConfig().then((config) => authom.init(config));\n },\n },\n ],\n };\n }\n}\n","/**\n * Module `authom` — OAuth 2.0 + PKCE authentication client cho AuthOM (Auth0-based).\n *\n * Cách dùng (standalone):\n * ```ts\n * import { provideHttpClient, withInterceptors } from '@angular/common/http';\n * import { provideSdAuthOm, SdAuthOmInterceptor } from '@sdcorejs/angular/modules/authom';\n *\n * export const appConfig: ApplicationConfig = {\n * providers: [\n * provideHttpClient(withInterceptors([SdAuthOmInterceptor])),\n * provideSdAuthOm({\n * useFactory: () => ({\n * loadTenantConfig: () => Promise.resolve({\n * domain: 'login.example.com',\n * clientId: 'YOUR_CLIENT_ID',\n * audience: 'https://api.example.com',\n * organization: 'org_xxx',\n * scope: 'openid profile email offline_access',\n * secureRoutes: ['https://api.example.com/*'],\n * }),\n * }),\n * }),\n * ],\n * };\n * ```\n *\n * Yêu cầu setup thêm:\n * 1. Copy file `silent-authom.html` từ source module này vào thư mục `public/` của app.\n * 2. App phải chạy trên HTTPS (hoặc localhost) — Web Crypto API yêu cầu secure context.\n */\nexport * from './authom.configuration';\nexport * from './authom.service';\nexport * from './authom.interceptor';\nexport * from './authom.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAsBa,uBAAuB,GAAG,IAAI,cAAc,CAAyB,yBAAyB;;ACjB3G,MAAM,iBAAiB,GAAG,cAAc;AACxC,MAAM,yBAAyB,GAAG,sBAAsB;AACxD,MAAM,qBAAqB,GAAG,kBAAkB;AAEhD,MAAM,aAAa,GAAG,sBAAsB;AAC5C,MAAM,iCAAiC,GAAG,EAAE;AAC5C,MAAM,iCAAiC,GAAG,CAAC;MAG9B,eAAe,CAAA;AACT,IAAA,UAAU,GAAG,MAAM,CAAC,WAAW,CAAC;AAChC,IAAA,SAAS,GAAG,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC;AAEtD,IAAA,WAAW,GAAG,MAAM,CAAgB,IAAI,uDAAC;AACzC,IAAA,aAAa,GAAG,MAAM,CAAiC,IAAI,yDAAC;AAC5D,IAAA,eAAe,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,WAAW,EAAE,KAAK,IAAI,2DAAC;AAEtE,IAAA,MAAM;IACE,YAAY,GAAyC,IAAI;IA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ACxB,YAAA,SAAS,EAAE;gBACT,eAAe;gBACf,IAAI,OAAO,CAAC;sBACR,CAAC,EAAE,OAAO,EAAE,uBAAuB,EAAE,UAAU,EAAE,OAAO,CAAC,UAAU,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,IAAI,EAAE,EAAE;AACjG,sBAAE,CAAC,EAAE,OAAO,EAAE,uBAAuB,EAAE,QAAQ,EAAE,OAAO,CAAC,QAAS,EAAE,CAAC,CACtE;AACD,gBAAA;AACE,oBAAA,OAAO,EAAE,eAAe;AACxB,oBAAA,KAAK,EAAE,IAAI;oBACX,UAAU,EAAE,MAAK;AACf,wBAAA,MAAM,YAAY,GAAG,MAAM,CAAC,uBAAuB,CAAC;AACpD,wBAAA,MAAM,MAAM,GAAG,MAAM,CAAC,eAAe,CAAC;wBACtC,OAAO,MAAM,YAAY,CAAC,gBAAgB,EAAE,CAAC,IAAI,CAAC,CAAC,MAAM,KAAK,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;oBACpF,CAAC;AACF,iBAAA;AACF,aAAA;SACF;IACH;wGArBW,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;yGAAd,cAAc,EAAA,CAAA;yGAAd,cAAc,EAAA,CAAA;;4FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAD1B,QAAQ;mBAAC,EAAE;;;AC1CZ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BG;;AC9BH;;AAEG;;;;"}
@@ -36,10 +36,10 @@ class SdKeycloakService {
36
36
  logout() { return this.keycloak.logout({ redirectUri: window.location.origin }); }
37
37
  getToken() { return this.keycloak.token; }
38
38
  getIsAuthenticated() { return this.keycloak.authenticated; }
39
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdKeycloakService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
40
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdKeycloakService, providedIn: 'root' });
39
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: SdKeycloakService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
40
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: SdKeycloakService, providedIn: 'root' });
41
41
  }
42
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdKeycloakService, decorators: [{
42
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: SdKeycloakService, decorators: [{
43
43
  type: Injectable,
44
44
  args: [{ providedIn: 'root' }]
45
45
  }] });
@@ -110,11 +110,11 @@ class SdKeycloakModule {
110
110
  ]
111
111
  };
112
112
  }
113
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdKeycloakModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
114
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.21", ngImport: i0, type: SdKeycloakModule });
115
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdKeycloakModule });
113
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: SdKeycloakModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
114
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.23", ngImport: i0, type: SdKeycloakModule });
115
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: SdKeycloakModule });
116
116
  }
117
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: SdKeycloakModule, decorators: [{
117
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.23", ngImport: i0, type: SdKeycloakModule, decorators: [{
118
118
  type: NgModule,
119
119
  args: [{}]
120
120
  }] });