@sdcorejs/angular 19.3.2 → 19.3.4

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 (429) hide show
  1. package/assets/THEME.md +58 -6
  2. package/assets/scss/core/form.scss +291 -3
  3. package/assets/scss/themes/_component-tokens.scss +35 -6
  4. package/components/badge/index.d.ts +1 -0
  5. package/components/badge/src/badge.model.d.ts +19 -0
  6. package/components/query-bar/src/components/actions-bar/actions-bar.component.d.ts +6 -1
  7. package/components/query-bar/src/components/field-picker/field-picker.component.d.ts +21 -0
  8. package/components/query-bar/src/components/inline-chip/inline-chip.component.d.ts +7 -1
  9. package/components/query-bar/src/components/inline-value-chip/inline-value-chip.component.d.ts +7 -1
  10. package/components/query-bar/src/components/popover-chip/popover-chip.component.d.ts +16 -2
  11. package/components/query-bar/src/query-bar.component.d.ts +66 -8
  12. package/components/query-bar/src/query-bar.model.d.ts +44 -1
  13. package/components/section/index.d.ts +1 -0
  14. package/components/section/src/section-registry.d.ts +11 -0
  15. package/components/splitter/index.d.ts +1 -1
  16. package/components/tab-router/src/actions/tab-router.action.d.ts +1 -1
  17. package/components/tab-router/src/components/tab-router-item/tab-router-item.component.d.ts +4 -2
  18. package/components/tab-router/src/components/tab-router-nav/tab-router-nav.component.d.ts +31 -3
  19. package/components/tab-router/src/components/tab-router-outlet/tab-router-outlet.component.d.ts +6 -1
  20. package/components/tab-router/src/models/tab-router.model.d.ts +5 -0
  21. package/components/tab-router/src/pipes/tab-info.pipe.d.ts +7 -0
  22. package/components/tab-router/src/services/tab-router.service.d.ts +5 -0
  23. package/components/table/index.d.ts +2 -0
  24. package/components/table/src/components/config/config-width.util.d.ts +9 -0
  25. package/components/table/src/components/config/config.component.d.ts +58 -11
  26. package/components/table/src/components/filter/column-filter/column-filter.component.d.ts +5 -0
  27. package/components/table/src/components/filter/external-filter/external-filter.component.d.ts +5 -1
  28. package/components/table/src/components/mobile-cards/mobile-cards.component.d.ts +4 -0
  29. package/components/table/src/configurations/index.d.ts +1 -0
  30. package/components/table/src/configurations/table-layout.d.ts +16 -0
  31. package/components/table/src/configurations/table.configuration.d.ts +7 -1
  32. package/components/table/src/models/index.d.ts +1 -0
  33. package/components/table/src/models/table-column.model.d.ts +3 -10
  34. package/components/table/src/models/table-item.model.d.ts +4 -1
  35. package/components/table/src/models/table-option-loading.model.d.ts +42 -0
  36. package/components/table/src/models/table-option.model.d.ts +6 -0
  37. package/components/table/src/services/column-leaf.util.d.ts +6 -0
  38. package/components/table/src/services/config-custom.util.d.ts +14 -0
  39. package/components/table/src/services/table-filter/table-filter.model.d.ts +30 -0
  40. package/components/table/src/services/table-filter/table-query-bar.util.d.ts +110 -0
  41. package/components/table/src/services/table-loading/table-loading.util.d.ts +91 -0
  42. package/components/table/src/services/tree/tree.util.d.ts +2 -0
  43. package/components/table/src/table.component.d.ts +60 -1
  44. package/components/upload-file/src/components/file-type-icon/file-type-icon.component.d.ts +15 -0
  45. package/components/upload-file/src/components/preview/preview.component.d.ts +88 -10
  46. package/components/upload-file/src/configurations/upload-file.configuration.d.ts +1 -1
  47. package/components/upload-file/src/helpers/file-type.d.ts +25 -0
  48. package/components/upload-file/src/pipes/file-meta.pipe.d.ts +9 -0
  49. package/components/upload-file/src/pipes/file-reason.pipe.d.ts +11 -0
  50. package/components/upload-file/src/pipes/index.d.ts +2 -0
  51. package/components/upload-file/src/upload-file.component.d.ts +89 -8
  52. package/fesm2022/sdcorejs-angular-components-badge.mjs +2 -2
  53. package/fesm2022/sdcorejs-angular-components-badge.mjs.map +1 -1
  54. package/fesm2022/sdcorejs-angular-components-form-generic.mjs +3 -3
  55. package/fesm2022/sdcorejs-angular-components-form-generic.mjs.map +1 -1
  56. package/fesm2022/sdcorejs-angular-components-query-bar.mjs +455 -37
  57. package/fesm2022/sdcorejs-angular-components-query-bar.mjs.map +1 -1
  58. package/fesm2022/sdcorejs-angular-components-section.mjs +15 -3
  59. package/fesm2022/sdcorejs-angular-components-section.mjs.map +1 -1
  60. package/fesm2022/sdcorejs-angular-components-side-drawer.mjs +2 -2
  61. package/fesm2022/sdcorejs-angular-components-side-drawer.mjs.map +1 -1
  62. package/fesm2022/sdcorejs-angular-components-splitter.mjs.map +1 -1
  63. package/fesm2022/sdcorejs-angular-components-tab-router.mjs +390 -75
  64. package/fesm2022/sdcorejs-angular-components-tab-router.mjs.map +1 -1
  65. package/fesm2022/sdcorejs-angular-components-table.mjs +1667 -124
  66. package/fesm2022/sdcorejs-angular-components-table.mjs.map +1 -1
  67. package/fesm2022/sdcorejs-angular-components-upload-file.mjs +886 -173
  68. package/fesm2022/sdcorejs-angular-components-upload-file.mjs.map +1 -1
  69. package/fesm2022/sdcorejs-angular-forms-autocomplete.mjs +7 -2
  70. package/fesm2022/sdcorejs-angular-forms-autocomplete.mjs.map +1 -1
  71. package/fesm2022/sdcorejs-angular-forms-chip-calendar.mjs +5 -2
  72. package/fesm2022/sdcorejs-angular-forms-chip-calendar.mjs.map +1 -1
  73. package/fesm2022/sdcorejs-angular-forms-chip.mjs +421 -121
  74. package/fesm2022/sdcorejs-angular-forms-chip.mjs.map +1 -1
  75. package/fesm2022/sdcorejs-angular-forms-date-range.mjs +4 -0
  76. package/fesm2022/sdcorejs-angular-forms-date-range.mjs.map +1 -1
  77. package/fesm2022/sdcorejs-angular-forms-date.mjs +4 -0
  78. package/fesm2022/sdcorejs-angular-forms-date.mjs.map +1 -1
  79. package/fesm2022/sdcorejs-angular-forms-datetime.mjs +4 -0
  80. package/fesm2022/sdcorejs-angular-forms-datetime.mjs.map +1 -1
  81. package/fesm2022/sdcorejs-angular-forms-input-number.mjs +17 -2
  82. package/fesm2022/sdcorejs-angular-forms-input-number.mjs.map +1 -1
  83. package/fesm2022/sdcorejs-angular-forms-input.mjs +4 -0
  84. package/fesm2022/sdcorejs-angular-forms-input.mjs.map +1 -1
  85. package/fesm2022/sdcorejs-angular-forms-select.mjs +26 -20
  86. package/fesm2022/sdcorejs-angular-forms-select.mjs.map +1 -1
  87. package/fesm2022/sdcorejs-angular-forms-textarea.mjs +14 -1
  88. package/fesm2022/sdcorejs-angular-forms-textarea.mjs.map +1 -1
  89. package/fesm2022/sdcorejs-angular-i18n.mjs +350 -5
  90. package/fesm2022/sdcorejs-angular-i18n.mjs.map +1 -1
  91. package/fesm2022/{sdcorejs-angular-modules-generic-generic-configuration.page-BFxO3eHX.mjs → sdcorejs-angular-modules-generic-generic-configuration.page-Bk3PrEf3.mjs} +3 -3
  92. package/fesm2022/{sdcorejs-angular-modules-generic-generic-configuration.page-BFxO3eHX.mjs.map → sdcorejs-angular-modules-generic-generic-configuration.page-Bk3PrEf3.mjs.map} +1 -1
  93. package/fesm2022/{sdcorejs-angular-modules-generic-generic-form-host.page-Csy2fShj.mjs → sdcorejs-angular-modules-generic-generic-form-host.page-CwUegGgG.mjs} +3 -3
  94. package/fesm2022/{sdcorejs-angular-modules-generic-generic-form-host.page-Csy2fShj.mjs.map → sdcorejs-angular-modules-generic-generic-form-host.page-CwUegGgG.mjs.map} +1 -1
  95. package/fesm2022/{sdcorejs-angular-modules-generic-generic-list.page-BIIxNR6k.mjs → sdcorejs-angular-modules-generic-generic-list.page-lF2trhfp.mjs} +3 -3
  96. package/fesm2022/{sdcorejs-angular-modules-generic-generic-list.page-BIIxNR6k.mjs.map → sdcorejs-angular-modules-generic-generic-list.page-lF2trhfp.mjs.map} +1 -1
  97. package/fesm2022/{sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-DjDsau9C.mjs → sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-BbmeOduc.mjs} +4 -4
  98. package/fesm2022/{sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-DjDsau9C.mjs.map → sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-BbmeOduc.mjs.map} +1 -1
  99. package/fesm2022/sdcorejs-angular-modules-generic.mjs +1 -1
  100. package/fesm2022/sdcorejs-angular-modules-layout.mjs +347 -10
  101. package/fesm2022/sdcorejs-angular-modules-layout.mjs.map +1 -1
  102. package/fesm2022/sdcorejs-angular-modules-pattern-api-error-BBWwQ6h2.mjs +23 -0
  103. package/fesm2022/sdcorejs-angular-modules-pattern-api-error-BBWwQ6h2.mjs.map +1 -0
  104. package/fesm2022/sdcorejs-angular-modules-pattern-approval-inbox-BMwD6_FC.mjs +16 -0
  105. package/fesm2022/sdcorejs-angular-modules-pattern-approval-inbox-BMwD6_FC.mjs.map +1 -0
  106. package/fesm2022/sdcorejs-angular-modules-pattern-base-api.service-DK33LxHm.mjs +51 -0
  107. package/fesm2022/sdcorejs-angular-modules-pattern-base-api.service-DK33LxHm.mjs.map +1 -0
  108. package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-B1BUBiag.mjs +145 -0
  109. package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-B1BUBiag.mjs.map +1 -0
  110. package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-B27ZX8Co.mjs +144 -0
  111. package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-B27ZX8Co.mjs.map +1 -0
  112. package/fesm2022/sdcorejs-angular-modules-pattern-create.component-Bi2tMFHf.mjs +460 -0
  113. package/fesm2022/sdcorejs-angular-modules-pattern-create.component-Bi2tMFHf.mjs.map +1 -0
  114. package/fesm2022/sdcorejs-angular-modules-pattern-create.component-CPwGkrNk.mjs +142 -0
  115. package/fesm2022/sdcorejs-angular-modules-pattern-create.component-CPwGkrNk.mjs.map +1 -0
  116. package/fesm2022/sdcorejs-angular-modules-pattern-create.component-VCbA_FkZ.mjs +113 -0
  117. package/fesm2022/sdcorejs-angular-modules-pattern-create.component-VCbA_FkZ.mjs.map +1 -0
  118. package/fesm2022/sdcorejs-angular-modules-pattern-customer.model-C3fr4yNw.mjs +18 -0
  119. package/fesm2022/sdcorejs-angular-modules-pattern-customer.model-C3fr4yNw.mjs.map +1 -0
  120. package/fesm2022/sdcorejs-angular-modules-pattern-customer.service-CehsdBRP.mjs +66 -0
  121. package/fesm2022/sdcorejs-angular-modules-pattern-customer.service-CehsdBRP.mjs.map +1 -0
  122. package/fesm2022/sdcorejs-angular-modules-pattern-detail-side-drawer.component-CPhLTiyx.mjs +148 -0
  123. package/fesm2022/sdcorejs-angular-modules-pattern-detail-side-drawer.component-CPhLTiyx.mjs.map +1 -0
  124. package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-5kI7wGdX.mjs +484 -0
  125. package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-5kI7wGdX.mjs.map +1 -0
  126. package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CjAy-B9K.mjs +172 -0
  127. package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CjAy-B9K.mjs.map +1 -0
  128. package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CnL2FzCx.mjs +90 -0
  129. package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CnL2FzCx.mjs.map +1 -0
  130. package/fesm2022/sdcorejs-angular-modules-pattern-flow.component-DObN_wCR.mjs +514 -0
  131. package/fesm2022/sdcorejs-angular-modules-pattern-flow.component-DObN_wCR.mjs.map +1 -0
  132. package/fesm2022/sdcorejs-angular-modules-pattern-form-api-errors-DpnYSG2j.mjs +61 -0
  133. package/fesm2022/sdcorejs-angular-modules-pattern-form-api-errors-DpnYSG2j.mjs.map +1 -0
  134. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-C_ST-ld5.mjs +170 -0
  135. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-C_ST-ld5.mjs.map +1 -0
  136. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-D6eKR2cq.mjs +87 -0
  137. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-D6eKR2cq.mjs.map +1 -0
  138. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-FcJS3Nbd.mjs +232 -0
  139. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-FcJS3Nbd.mjs.map +1 -0
  140. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-view.component-BA-3FR1J.mjs +70 -0
  141. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-view.component-BA-3FR1J.mjs.map +1 -0
  142. package/fesm2022/sdcorejs-angular-modules-pattern-index.component-TTrWCXIT.mjs +100 -0
  143. package/fesm2022/sdcorejs-angular-modules-pattern-index.component-TTrWCXIT.mjs.map +1 -0
  144. package/fesm2022/sdcorejs-angular-modules-pattern-lines-table-form.component-B1qePLfk.mjs +812 -0
  145. package/fesm2022/sdcorejs-angular-modules-pattern-lines-table-form.component-B1qePLfk.mjs.map +1 -0
  146. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-BY5gjtNS.mjs +71 -0
  147. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-BY5gjtNS.mjs.map +1 -0
  148. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CJ38CJXg.mjs +629 -0
  149. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CJ38CJXg.mjs.map +1 -0
  150. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CdgPtSjJ.mjs +164 -0
  151. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CdgPtSjJ.mjs.map +1 -0
  152. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-DKIwrluh.mjs +118 -0
  153. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-DKIwrluh.mjs.map +1 -0
  154. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-W9vY7HrT.mjs +115 -0
  155. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-W9vY7HrT.mjs.map +1 -0
  156. package/fesm2022/sdcorejs-angular-modules-pattern-mock-backend.factory-CI0H_5a4.mjs +1069 -0
  157. package/fesm2022/sdcorejs-angular-modules-pattern-mock-backend.factory-CI0H_5a4.mjs.map +1 -0
  158. package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source-viewer-BqHwKfoc.mjs +193 -0
  159. package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source-viewer-BqHwKfoc.mjs.map +1 -0
  160. package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source.generated-CIiLOizq.mjs +99 -0
  161. package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source.generated-CIiLOizq.mjs.map +1 -0
  162. package/fesm2022/sdcorejs-angular-modules-pattern-product.model-BoHLJ8vf.mjs +12 -0
  163. package/fesm2022/sdcorejs-angular-modules-pattern-product.model-BoHLJ8vf.mjs.map +1 -0
  164. package/fesm2022/sdcorejs-angular-modules-pattern-product.service-D829aEk5.mjs +48 -0
  165. package/fesm2022/sdcorejs-angular-modules-pattern-product.service-D829aEk5.mjs.map +1 -0
  166. package/fesm2022/sdcorejs-angular-modules-pattern-profile.component-BEFVmSSj.mjs +295 -0
  167. package/fesm2022/sdcorejs-angular-modules-pattern-profile.component-BEFVmSSj.mjs.map +1 -0
  168. package/fesm2022/sdcorejs-angular-modules-pattern-routes-1kDb9T7_.mjs +74 -0
  169. package/fesm2022/sdcorejs-angular-modules-pattern-routes-1kDb9T7_.mjs.map +1 -0
  170. package/fesm2022/sdcorejs-angular-modules-pattern-routes-B-TJUSV_.mjs +66 -0
  171. package/fesm2022/sdcorejs-angular-modules-pattern-routes-B-TJUSV_.mjs.map +1 -0
  172. package/fesm2022/sdcorejs-angular-modules-pattern-routes-B6z7KO0P.mjs +45 -0
  173. package/fesm2022/sdcorejs-angular-modules-pattern-routes-B6z7KO0P.mjs.map +1 -0
  174. package/fesm2022/sdcorejs-angular-modules-pattern-routes-DS39vgzU.mjs +50 -0
  175. package/fesm2022/sdcorejs-angular-modules-pattern-routes-DS39vgzU.mjs.map +1 -0
  176. package/fesm2022/sdcorejs-angular-modules-pattern-routes-DVlcUUzh.mjs +43 -0
  177. package/fesm2022/sdcorejs-angular-modules-pattern-routes-DVlcUUzh.mjs.map +1 -0
  178. package/fesm2022/sdcorejs-angular-modules-pattern-routes-DxWDWUdo.mjs +165 -0
  179. package/fesm2022/sdcorejs-angular-modules-pattern-routes-DxWDWUdo.mjs.map +1 -0
  180. package/fesm2022/sdcorejs-angular-modules-pattern-routes-r9CTj-8C.mjs +74 -0
  181. package/fesm2022/sdcorejs-angular-modules-pattern-routes-r9CTj-8C.mjs.map +1 -0
  182. package/fesm2022/sdcorejs-angular-modules-pattern-routes-xI1XYRo6.mjs +99 -0
  183. package/fesm2022/sdcorejs-angular-modules-pattern-routes-xI1XYRo6.mjs.map +1 -0
  184. package/fesm2022/sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-nV5dVFx2.mjs +406 -0
  185. package/fesm2022/sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-nV5dVFx2.mjs.map +1 -0
  186. package/fesm2022/sdcorejs-angular-modules-pattern-shell.component-0rRaWsuo.mjs +317 -0
  187. package/fesm2022/sdcorejs-angular-modules-pattern-shell.component-0rRaWsuo.mjs.map +1 -0
  188. package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-6uH7sDEg.mjs +143 -0
  189. package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-6uH7sDEg.mjs.map +1 -0
  190. package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-DglN2sS_.mjs +132 -0
  191. package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-DglN2sS_.mjs.map +1 -0
  192. package/fesm2022/sdcorejs-angular-modules-pattern-update.component-BmsOgENL.mjs +359 -0
  193. package/fesm2022/sdcorejs-angular-modules-pattern-update.component-BmsOgENL.mjs.map +1 -0
  194. package/fesm2022/sdcorejs-angular-modules-pattern-update.component-DPZ_ucNB.mjs +138 -0
  195. package/fesm2022/sdcorejs-angular-modules-pattern-update.component-DPZ_ucNB.mjs.map +1 -0
  196. package/fesm2022/sdcorejs-angular-modules-pattern-update.component-DkAcDmsZ.mjs +100 -0
  197. package/fesm2022/sdcorejs-angular-modules-pattern-update.component-DkAcDmsZ.mjs.map +1 -0
  198. package/fesm2022/sdcorejs-angular-modules-pattern.mjs +2 -0
  199. package/fesm2022/sdcorejs-angular-modules-pattern.mjs.map +1 -0
  200. package/fesm2022/sdcorejs-angular-services-api.mjs +11 -11
  201. package/fesm2022/sdcorejs-angular-services-api.mjs.map +1 -1
  202. package/fesm2022/sdcorejs-angular-services-cache.mjs +7 -5
  203. package/fesm2022/sdcorejs-angular-services-cache.mjs.map +1 -1
  204. package/fesm2022/sdcorejs-angular-services-storage.mjs +6 -4
  205. package/fesm2022/sdcorejs-angular-services-storage.mjs.map +1 -1
  206. package/fesm2022/sdcorejs-angular-services-unsaved-changes.mjs +104 -4
  207. package/fesm2022/sdcorejs-angular-services-unsaved-changes.mjs.map +1 -1
  208. package/forms/chip/src/chip.component.d.ts +135 -19
  209. package/forms/chip/src/index.d.ts +0 -1
  210. package/i18n/src/en.d.ts +70 -1
  211. package/modules/layout/components/index.d.ts +2 -0
  212. package/modules/layout/components/page/page-form-leave.guard.d.ts +9 -0
  213. package/modules/layout/components/page/page.component.d.ts +38 -2
  214. package/modules/layout/components/page-list/page-list.component.d.ts +42 -0
  215. package/modules/layout/components/shared/context-switcher/context-switcher.component.d.ts +1 -1
  216. package/modules/pattern/README.md +76 -0
  217. package/modules/pattern/configurations/pattern.configuration.d.ts +30 -0
  218. package/modules/pattern/configurations/provide-sd-patterns.d.ts +19 -0
  219. package/modules/pattern/core/mock-api/mock-api.interceptor.d.ts +8 -0
  220. package/modules/pattern/core/mock-api/mock-api.model.d.ts +62 -0
  221. package/modules/pattern/core/mock-api/mock-api.state.d.ts +36 -0
  222. package/modules/pattern/core/mock-api/mock-backend.d.ts +18 -0
  223. package/modules/pattern/core/mock-api/mock-backend.factory.d.ts +3 -0
  224. package/modules/pattern/core/mock-api/prng.d.ts +4 -0
  225. package/modules/pattern/core/mock-api/resources/approval.resource.d.ts +14 -0
  226. package/modules/pattern/core/mock-api/resources/category.resource.d.ts +9 -0
  227. package/modules/pattern/core/mock-api/resources/customer.resource.d.ts +22 -0
  228. package/modules/pattern/core/mock-api/resources/index.d.ts +3 -0
  229. package/modules/pattern/core/mock-api/resources/names.d.ts +5 -0
  230. package/modules/pattern/core/mock-api/resources/order.resource.d.ts +44 -0
  231. package/modules/pattern/core/mock-api/resources/partner.resource.d.ts +16 -0
  232. package/modules/pattern/core/mock-api/resources/product.resource.d.ts +13 -0
  233. package/modules/pattern/core/mock-api/resources/settings.resource.d.ts +18 -0
  234. package/modules/pattern/core/pattern-shell/catalog/pattern-catalog.d.ts +24 -0
  235. package/modules/pattern/core/pattern-shell/index/index.component.d.ts +9 -0
  236. package/modules/pattern/core/pattern-shell/settings/pattern-settings.store.d.ts +57 -0
  237. package/modules/pattern/core/pattern-shell/settings/settings-button.component.d.ts +44 -0
  238. package/modules/pattern/core/pattern-shell/shell/pattern-source-viewer.d.ts +8 -0
  239. package/modules/pattern/core/pattern-shell/shell/shell.component.d.ts +13 -0
  240. package/modules/pattern/core/pattern-shell/source/pattern-source.generated.d.ts +1 -0
  241. package/modules/pattern/core/pattern-shell/source/source-drawer.component.d.ts +27 -0
  242. package/modules/pattern/core/pattern-shell/toolbar/toolbar.component.d.ts +24 -0
  243. package/modules/pattern/core/permission/pattern-permission.d.ts +15 -0
  244. package/modules/pattern/core/permission/pattern-role.store.d.ts +13 -0
  245. package/modules/pattern/core/session-state.d.ts +4 -0
  246. package/modules/pattern/docs/detail.md +237 -0
  247. package/modules/pattern/docs/drawer.md +484 -0
  248. package/modules/pattern/docs/flow.md +631 -0
  249. package/modules/pattern/docs/form.md +815 -0
  250. package/modules/pattern/docs/header-actions.md +344 -0
  251. package/modules/pattern/docs/list.md +247 -0
  252. package/modules/pattern/docs/relation.md +180 -0
  253. package/modules/pattern/docs/select.md +214 -0
  254. package/modules/pattern/docs/split.md +350 -0
  255. package/modules/pattern/docs/states.md +168 -0
  256. package/modules/pattern/features/approval/entity.resolver.d.ts +4 -0
  257. package/modules/pattern/features/approval/entity.resolver.ts +21 -0
  258. package/modules/pattern/features/approval/pages/detail/detail.component.d.ts +13 -0
  259. package/modules/pattern/features/approval/pages/detail/detail.component.ts +139 -0
  260. package/modules/pattern/features/approval/pages/list/approval-inbox.d.ts +7 -0
  261. package/modules/pattern/features/approval/pages/list/approval-inbox.ts +7 -0
  262. package/modules/pattern/features/approval/pages/list/list.component.d.ts +26 -0
  263. package/modules/pattern/features/approval/pages/list/list.component.html +20 -0
  264. package/modules/pattern/features/approval/pages/list/list.component.ts +149 -0
  265. package/modules/pattern/features/approval/routes.d.ts +3 -0
  266. package/modules/pattern/features/approval/routes.ts +30 -0
  267. package/modules/pattern/features/approval/services/approval.model.d.ts +37 -0
  268. package/modules/pattern/features/approval/services/approval.model.ts +38 -0
  269. package/modules/pattern/features/approval/services/approval.service.d.ts +12 -0
  270. package/modules/pattern/features/approval/services/approval.service.ts +23 -0
  271. package/modules/pattern/features/category/components/create-side-drawer/create-side-drawer.component.d.ts +23 -0
  272. package/modules/pattern/features/category/components/create-side-drawer/create-side-drawer.component.ts +130 -0
  273. package/modules/pattern/features/category/components/general-information-form/general-information-form.component.d.ts +20 -0
  274. package/modules/pattern/features/category/components/general-information-form/general-information-form.component.ts +61 -0
  275. package/modules/pattern/features/category/components/update-side-drawer/update-side-drawer.component.d.ts +23 -0
  276. package/modules/pattern/features/category/components/update-side-drawer/update-side-drawer.component.ts +134 -0
  277. package/modules/pattern/features/category/entity.resolver.d.ts +6 -0
  278. package/modules/pattern/features/category/entity.resolver.ts +27 -0
  279. package/modules/pattern/features/category/pages/list/list.component.d.ts +17 -0
  280. package/modules/pattern/features/category/pages/list/list.component.html +20 -0
  281. package/modules/pattern/features/category/pages/list/list.component.ts +105 -0
  282. package/modules/pattern/features/category/routes.d.ts +3 -0
  283. package/modules/pattern/features/category/routes.ts +42 -0
  284. package/modules/pattern/features/category/services/category.model.d.ts +34 -0
  285. package/modules/pattern/features/category/services/category.model.ts +39 -0
  286. package/modules/pattern/features/category/services/category.service.d.ts +17 -0
  287. package/modules/pattern/features/category/services/category.service.ts +36 -0
  288. package/modules/pattern/features/customer/components/create-side-drawer/create-side-drawer.component.d.ts +24 -0
  289. package/modules/pattern/features/customer/components/create-side-drawer/create-side-drawer.component.ts +138 -0
  290. package/modules/pattern/features/customer/components/customer-select/customer-select.component.d.ts +20 -0
  291. package/modules/pattern/features/customer/components/customer-select/customer-select.component.ts +72 -0
  292. package/modules/pattern/features/customer/components/customer-type-select/customer-type-select.component.d.ts +20 -0
  293. package/modules/pattern/features/customer/components/customer-type-select/customer-type-select.component.ts +30 -0
  294. package/modules/pattern/features/customer/components/debts-view/debts-view.component.d.ts +11 -0
  295. package/modules/pattern/features/customer/components/debts-view/debts-view.component.ts +28 -0
  296. package/modules/pattern/features/customer/components/detail-side-drawer/detail-side-drawer.component.d.ts +20 -0
  297. package/modules/pattern/features/customer/components/detail-side-drawer/detail-side-drawer.component.ts +106 -0
  298. package/modules/pattern/features/customer/components/documents-view/documents-view.component.d.ts +14 -0
  299. package/modules/pattern/features/customer/components/documents-view/documents-view.component.ts +50 -0
  300. package/modules/pattern/features/customer/components/general-information-form/general-information-form.component.d.ts +33 -0
  301. package/modules/pattern/features/customer/components/general-information-form/general-information-form.component.ts +140 -0
  302. package/modules/pattern/features/customer/components/general-information-view/general-information-view.component.d.ts +9 -0
  303. package/modules/pattern/features/customer/components/general-information-view/general-information-view.component.ts +39 -0
  304. package/modules/pattern/features/customer/components/orders-view/orders-view.component.d.ts +11 -0
  305. package/modules/pattern/features/customer/components/orders-view/orders-view.component.ts +35 -0
  306. package/modules/pattern/features/customer/components/summary-cards/summary-cards.component.d.ts +22 -0
  307. package/modules/pattern/features/customer/components/summary-cards/summary-cards.component.ts +101 -0
  308. package/modules/pattern/features/customer/components/update-side-drawer/update-side-drawer.component.d.ts +24 -0
  309. package/modules/pattern/features/customer/components/update-side-drawer/update-side-drawer.component.ts +127 -0
  310. package/modules/pattern/features/customer/entity.resolver.d.ts +4 -0
  311. package/modules/pattern/features/customer/entity.resolver.ts +21 -0
  312. package/modules/pattern/features/customer/pages/list/list.component.d.ts +19 -0
  313. package/modules/pattern/features/customer/pages/list/list.component.html +22 -0
  314. package/modules/pattern/features/customer/pages/list/list.component.ts +113 -0
  315. package/modules/pattern/features/customer/pages/profile/profile.component.d.ts +31 -0
  316. package/modules/pattern/features/customer/pages/profile/profile.component.ts +120 -0
  317. package/modules/pattern/features/customer/pipes/customer-detail.pipe.d.ts +14 -0
  318. package/modules/pattern/features/customer/pipes/customer-detail.pipe.ts +18 -0
  319. package/modules/pattern/features/customer/routes.d.ts +6 -0
  320. package/modules/pattern/features/customer/routes.ts +59 -0
  321. package/modules/pattern/features/customer/services/customer.model.d.ts +77 -0
  322. package/modules/pattern/features/customer/services/customer.model.ts +87 -0
  323. package/modules/pattern/features/customer/services/customer.service.d.ts +24 -0
  324. package/modules/pattern/features/customer/services/customer.service.ts +79 -0
  325. package/modules/pattern/features/import/components/mapping-form/mapping-form.component.d.ts +21 -0
  326. package/modules/pattern/features/import/components/mapping-form/mapping-form.component.ts +41 -0
  327. package/modules/pattern/features/import/components/preview-view/preview-view.component.d.ts +10 -0
  328. package/modules/pattern/features/import/components/preview-view/preview-view.component.ts +44 -0
  329. package/modules/pattern/features/import/pages/flow/flow.component.d.ts +43 -0
  330. package/modules/pattern/features/import/pages/flow/flow.component.ts +269 -0
  331. package/modules/pattern/features/import/routes.d.ts +2 -0
  332. package/modules/pattern/features/import/routes.ts +19 -0
  333. package/modules/pattern/features/import/services/import.model.d.ts +38 -0
  334. package/modules/pattern/features/import/services/import.model.ts +82 -0
  335. package/modules/pattern/features/import/services/import.service.d.ts +15 -0
  336. package/modules/pattern/features/import/services/import.service.ts +18 -0
  337. package/modules/pattern/features/order/components/approval-steps/approval-steps.component.d.ts +9 -0
  338. package/modules/pattern/features/order/components/approval-steps/approval-steps.component.ts +74 -0
  339. package/modules/pattern/features/order/components/bulk-result/bulk-result.component.d.ts +22 -0
  340. package/modules/pattern/features/order/components/bulk-result/bulk-result.component.ts +46 -0
  341. package/modules/pattern/features/order/components/general-information-form/general-information-form.component.d.ts +30 -0
  342. package/modules/pattern/features/order/components/general-information-form/general-information-form.component.ts +96 -0
  343. package/modules/pattern/features/order/components/lines-form/lines-form.component.d.ts +19 -0
  344. package/modules/pattern/features/order/components/lines-form/lines-form.component.ts +182 -0
  345. package/modules/pattern/features/order/components/lines-form/order-lines.d.ts +35 -0
  346. package/modules/pattern/features/order/components/lines-form/order-lines.ts +101 -0
  347. package/modules/pattern/features/order/components/lines-table-form/lines-table-form.component.d.ts +34 -0
  348. package/modules/pattern/features/order/components/lines-table-form/lines-table-form.component.ts +196 -0
  349. package/modules/pattern/features/order/components/lines-view/lines-view.component.d.ts +12 -0
  350. package/modules/pattern/features/order/components/lines-view/lines-view.component.ts +42 -0
  351. package/modules/pattern/features/order/components/summary-cards/summary-cards.component.d.ts +25 -0
  352. package/modules/pattern/features/order/components/summary-cards/summary-cards.component.ts +128 -0
  353. package/modules/pattern/features/order/entity.resolver.d.ts +9 -0
  354. package/modules/pattern/features/order/entity.resolver.ts +37 -0
  355. package/modules/pattern/features/order/pages/create/create.component.d.ts +18 -0
  356. package/modules/pattern/features/order/pages/create/create.component.ts +113 -0
  357. package/modules/pattern/features/order/pages/detail/detail.component.d.ts +27 -0
  358. package/modules/pattern/features/order/pages/detail/detail.component.ts +224 -0
  359. package/modules/pattern/features/order/pages/list/list.component.d.ts +29 -0
  360. package/modules/pattern/features/order/pages/list/list.component.html +38 -0
  361. package/modules/pattern/features/order/pages/list/list.component.ts +291 -0
  362. package/modules/pattern/features/order/pages/update/update.component.d.ts +22 -0
  363. package/modules/pattern/features/order/pages/update/update.component.ts +126 -0
  364. package/modules/pattern/features/order/routes.d.ts +7 -0
  365. package/modules/pattern/features/order/routes.ts +54 -0
  366. package/modules/pattern/features/order/services/order.model.d.ts +106 -0
  367. package/modules/pattern/features/order/services/order.model.ts +109 -0
  368. package/modules/pattern/features/order/services/order.service.d.ts +25 -0
  369. package/modules/pattern/features/order/services/order.service.ts +63 -0
  370. package/modules/pattern/features/partner/pages/create/create.component.d.ts +41 -0
  371. package/modules/pattern/features/partner/pages/create/create.component.ts +324 -0
  372. package/modules/pattern/features/partner/routes.d.ts +2 -0
  373. package/modules/pattern/features/partner/routes.ts +20 -0
  374. package/modules/pattern/features/partner/services/partner.model.d.ts +30 -0
  375. package/modules/pattern/features/partner/services/partner.model.ts +30 -0
  376. package/modules/pattern/features/partner/services/partner.service.d.ts +13 -0
  377. package/modules/pattern/features/partner/services/partner.service.ts +17 -0
  378. package/modules/pattern/features/product/components/general-information-form/general-information-form.component.d.ts +23 -0
  379. package/modules/pattern/features/product/components/general-information-form/general-information-form.component.ts +88 -0
  380. package/modules/pattern/features/product/components/product-select/product-select.component.d.ts +26 -0
  381. package/modules/pattern/features/product/components/product-select/product-select.component.ts +73 -0
  382. package/modules/pattern/features/product/components/product-status-select/product-status-select.component.d.ts +22 -0
  383. package/modules/pattern/features/product/components/product-status-select/product-status-select.component.ts +30 -0
  384. package/modules/pattern/features/product/entity.resolver.d.ts +4 -0
  385. package/modules/pattern/features/product/entity.resolver.ts +21 -0
  386. package/modules/pattern/features/product/pages/create/create.component.d.ts +15 -0
  387. package/modules/pattern/features/product/pages/create/create.component.ts +92 -0
  388. package/modules/pattern/features/product/pages/detail/detail.component.d.ts +10 -0
  389. package/modules/pattern/features/product/pages/detail/detail.component.ts +53 -0
  390. package/modules/pattern/features/product/pages/list/list.component.d.ts +15 -0
  391. package/modules/pattern/features/product/pages/list/list.component.html +30 -0
  392. package/modules/pattern/features/product/pages/list/list.component.ts +71 -0
  393. package/modules/pattern/features/product/pages/update/update.component.d.ts +16 -0
  394. package/modules/pattern/features/product/pages/update/update.component.ts +86 -0
  395. package/modules/pattern/features/product/pipes/product-detail.pipe.d.ts +14 -0
  396. package/modules/pattern/features/product/pipes/product-detail.pipe.ts +18 -0
  397. package/modules/pattern/features/product/routes.d.ts +3 -0
  398. package/modules/pattern/features/product/routes.ts +48 -0
  399. package/modules/pattern/features/product/services/product.model.d.ts +34 -0
  400. package/modules/pattern/features/product/services/product.model.ts +38 -0
  401. package/modules/pattern/features/product/services/product.service.d.ts +17 -0
  402. package/modules/pattern/features/product/services/product.service.ts +48 -0
  403. package/modules/pattern/features/settings/pages/update/update.component.d.ts +26 -0
  404. package/modules/pattern/features/settings/pages/update/update.component.ts +228 -0
  405. package/modules/pattern/features/settings/routes.d.ts +3 -0
  406. package/modules/pattern/features/settings/routes.ts +24 -0
  407. package/modules/pattern/features/settings/services/settings.model.d.ts +17 -0
  408. package/modules/pattern/features/settings/services/settings.model.ts +18 -0
  409. package/modules/pattern/features/settings/services/settings.service.d.ts +10 -0
  410. package/modules/pattern/features/settings/services/settings.service.ts +15 -0
  411. package/modules/pattern/features/settings/settings.resolver.d.ts +4 -0
  412. package/modules/pattern/features/settings/settings.resolver.ts +8 -0
  413. package/modules/pattern/index.d.ts +3 -0
  414. package/modules/pattern/routes.d.ts +6 -0
  415. package/modules/pattern/services/base-api.service.d.ts +16 -0
  416. package/modules/pattern/utils/api-error.d.ts +4 -0
  417. package/modules/pattern/utils/focus-first-invalid.d.ts +5 -0
  418. package/modules/pattern/utils/form-api-errors.d.ts +16 -0
  419. package/modules/pattern/utils/resource-url.d.ts +2 -0
  420. package/package.json +13 -9
  421. package/services/api/src/api-handler-registry.d.ts +3 -3
  422. package/services/api/src/api-route-configurations.d.ts +2 -2
  423. package/services/api/src/api.model.d.ts +2 -2
  424. package/services/cache/src/cache.model.d.ts +3 -1
  425. package/services/storage/src/storage.model.d.ts +2 -0
  426. package/services/unsaved-changes/src/unsaved-changes.adapters.d.ts +9 -0
  427. package/services/unsaved-changes/src/unsaved-changes.model.d.ts +2 -0
  428. package/forms/chip/src/pipes/index.d.ts +0 -1
  429. package/forms/chip/src/pipes/removable-chip.pipe.d.ts +0 -8
@@ -0,0 +1,113 @@
1
+ import { ChangeDetectionStrategy, Component, effect, inject, signal, untracked, viewChild } from '@angular/core';
2
+ import { toSignal } from '@angular/core/rxjs-interop';
3
+ import { ActivatedRoute, NavigationEnd, Router, RouterLink } from '@angular/router';
4
+ import { filter, firstValueFrom, map, startWith } from 'rxjs';
5
+ import { SdButton } from '@sdcorejs/angular/components/button';
6
+ import { SdTable, SdTableCellDefDirective, type SdTableOption } from '@sdcorejs/angular/components/table';
7
+ import { SdPageList, type SdPageListDetail } from '@sdcorejs/angular/modules/layout';
8
+ import { SdPermissionDirective, SdPermissionService } from '@sdcorejs/angular/modules/permission';
9
+ import type { Filter } from '@sdcorejs/utils/models';
10
+ import { SummaryCardsComponent } from '../../components/summary-cards/summary-cards.component';
11
+ import { CustomerService } from '../../services/customer.service';
12
+ import {
13
+ CUSTOMER_STATUS_OPTIONS,
14
+ CUSTOMER_TYPE_OPTIONS,
15
+ customerStatusBadge,
16
+ type CustomerCounts,
17
+ type CustomerDto,
18
+ type CustomerSegment,
19
+ } from '../../services/customer.model';
20
+
21
+ /** Điều kiện của nhóm khách đang chọn trên score card. */
22
+ const SEGMENT_FILTER: Readonly<Record<CustomerSegment, Filter<CustomerDto>>> = {
23
+ individual: { field: 'type', operator: 'EQUAL', data: 'individual' },
24
+ business: { field: 'type', operator: 'EQUAL', data: 'business' },
25
+ vip: { field: 'tier', operator: 'EQUAL', data: 'vip' },
26
+ };
27
+
28
+ @Component({
29
+ selector: 'list',
30
+ standalone: true,
31
+ templateUrl: './list.component.html',
32
+ changeDetection: ChangeDetectionStrategy.OnPush,
33
+ imports: [RouterLink, SdPageList, SdButton, SdTable, SdTableCellDefDirective, SdPermissionDirective, SummaryCardsComponent],
34
+ })
35
+ export class ListComponent {
36
+ readonly #customerService = inject(CustomerService);
37
+ readonly #router = inject(Router);
38
+ readonly #route = inject(ActivatedRoute);
39
+ private readonly pageList = viewChild.required(SdPageList);
40
+ private readonly table = viewChild.required(SdTable);
41
+ protected readonly canOpenDetail = inject(SdPermissionService).hasPermission('PATTERN_CUSTOMER_R_DETAIL');
42
+
43
+ /** Một state cho score card và request: đổi nhóm thì đọc lại từ trang 1. */
44
+ protected readonly segment = signal<CustomerSegment | null>(null);
45
+ protected readonly counts = signal<CustomerCounts | null>(null);
46
+ /** Detail, create, update mở trong drawer; hồ sơ 360° (`data.detail: 'page'`) thay chỗ danh sách. */
47
+ protected readonly detailMode = toSignal(
48
+ this.#router.events.pipe(
49
+ filter(event => event instanceof NavigationEnd),
50
+ startWith(null),
51
+ map((): SdPageListDetail => (this.#route.firstChild?.snapshot.data['detail'] === 'page' ? 'page' : 'drawer'))
52
+ ),
53
+ { requireSync: true }
54
+ );
55
+
56
+ protected readonly tableOption: SdTableOption<CustomerDto> = {
57
+ type: 'server',
58
+ rowKey: 'id',
59
+ items: async (_, req) => {
60
+ const segment = untracked(this.segment);
61
+ // Số trên thẻ theo cùng bộ lọc của bảng, chưa tính nhóm đang chọn.
62
+ void firstValueFrom(this.#customerService.counts(req.filters ?? [])).then(counts => this.counts.set(counts));
63
+ const filters = segment ? [...(req.filters ?? []), SEGMENT_FILTER[segment]] : req.filters;
64
+ return firstValueFrom(this.#customerService.list({ ...req, filters }));
65
+ },
66
+ sort: { enable: true },
67
+ filter: {
68
+ quickSearch: { containFields: ['code', 'name', 'phone'], placeholder: 'Tìm theo mã, tên hoặc số điện thoại' },
69
+ },
70
+ columns: [
71
+ { field: 'code', title: 'Mã khách hàng', type: 'string', width: '150px', sortable: true },
72
+ { field: 'name', title: 'Tên khách hàng', type: 'string', minWidth: '220px', sortable: true },
73
+ {
74
+ field: 'type',
75
+ title: 'Loại',
76
+ type: 'values',
77
+ width: '140px',
78
+ option: { items: CUSTOMER_TYPE_OPTIONS, valueField: 'id', displayField: 'name' },
79
+ // Score card là chỗ lọc theo loại khách: mỗi field chỉ một chỗ lọc (E6).
80
+ filter: { disabled: true },
81
+ },
82
+ { field: 'phone', title: 'Điện thoại', type: 'string', width: '140px' },
83
+ { field: 'email', title: 'Email', type: 'string', minWidth: '200px' },
84
+ { field: 'debt', title: 'Công nợ (₫)', type: 'number', width: '150px', align: 'right', sortable: true },
85
+ {
86
+ field: 'status',
87
+ title: 'Trạng thái',
88
+ type: 'values',
89
+ width: '170px',
90
+ option: { items: CUSTOMER_STATUS_OPTIONS, valueField: 'id', displayField: 'name' },
91
+ useBadge: status => customerStatusBadge(status),
92
+ },
93
+ ],
94
+ };
95
+
96
+ constructor() {
97
+ let segment = this.segment();
98
+ effect(() => {
99
+ const next = this.segment();
100
+ if (next === segment) return;
101
+ segment = next;
102
+ untracked(() => void this.table().reloadFirstPage());
103
+ });
104
+ // Chỉ tải lại danh sách khi drawer/trang con đã lưu thành công, không phải mỗi lần đóng.
105
+ let changes = this.#customerService.changes();
106
+ effect(() => {
107
+ const next = this.#customerService.changes();
108
+ if (this.pageList().childActive() || next === changes) return;
109
+ changes = next;
110
+ untracked(() => void this.table().reload(true, false));
111
+ });
112
+ }
113
+ }
@@ -0,0 +1,31 @@
1
+ import { type CustomerDto } from '../../services/customer.model';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Hồ sơ 360° (`:id/360`): thông tin chung và các quan hệ của khách hàng theo tab. Tab ghi trên URL (`?tab=`);
5
+ * mở tab nào mới tải tab đó, mỗi tab tự có trạng thái đang tải, rỗng và lỗi.
6
+ */
7
+ export declare class ProfileComponent {
8
+ #private;
9
+ protected readonly tabs: readonly [{
10
+ readonly key: "info";
11
+ readonly label: "Thông tin";
12
+ }, {
13
+ readonly key: "orders";
14
+ readonly label: "Đơn hàng";
15
+ }, {
16
+ readonly key: "debts";
17
+ readonly label: "Công nợ";
18
+ }, {
19
+ readonly key: "documents";
20
+ readonly label: "Tài liệu";
21
+ }];
22
+ protected readonly entity: import("@angular/core").Signal<CustomerDto>;
23
+ protected readonly badges: import("@angular/core").Signal<import("@sdcorejs/angular/components/badge").SdBadgeData[]>;
24
+ protected readonly typeName: import("@angular/core").Signal<string>;
25
+ protected readonly tabIndex: import("@angular/core").Signal<number>;
26
+ /** Tab đã mở ít nhất một lần: giữ lại khi chuyển tab, không tải lại. Đổi khách hàng thì bắt đầu lại. */
27
+ protected readonly opened: import("@angular/core").WritableSignal<ReadonlySet<"orders" | "debts" | "documents" | "info">>;
28
+ protected selectTab(index: number): void;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProfileComponent, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<ProfileComponent, "profile", never, {}, {}, never, never, true, never>;
31
+ }
@@ -0,0 +1,120 @@
1
+ import { ChangeDetectionStrategy, Component, computed, inject, linkedSignal, untracked } from '@angular/core';
2
+ import { toSignal } from '@angular/core/rxjs-interop';
3
+ import { ActivatedRoute, Router, RouterLink } from '@angular/router';
4
+ import { map } from 'rxjs';
5
+ import { SdButton } from '@sdcorejs/angular/components/button';
6
+ import { SdTab, SdTabGroup } from '@sdcorejs/angular/components/tab';
7
+ import { SdPageComponent } from '@sdcorejs/angular/modules/layout';
8
+ import { SdPermissionDirective } from '@sdcorejs/angular/modules/permission';
9
+ import { DebtsViewComponent } from '../../components/debts-view/debts-view.component';
10
+ import { DocumentsViewComponent } from '../../components/documents-view/documents-view.component';
11
+ import { GeneralInformationViewComponent } from '../../components/general-information-view/general-information-view.component';
12
+ import { OrdersViewComponent } from '../../components/orders-view/orders-view.component';
13
+ import { customerStatusBadge, customerTypeName, type CustomerDto } from '../../services/customer.model';
14
+
15
+ const TABS = [
16
+ { key: 'info', label: 'Thông tin' },
17
+ { key: 'orders', label: 'Đơn hàng' },
18
+ { key: 'debts', label: 'Công nợ' },
19
+ { key: 'documents', label: 'Tài liệu' },
20
+ ] as const;
21
+ type TabKey = (typeof TABS)[number]['key'];
22
+
23
+ /**
24
+ * Hồ sơ 360° (`:id/360`): thông tin chung và các quan hệ của khách hàng theo tab. Tab ghi trên URL (`?tab=`);
25
+ * mở tab nào mới tải tab đó, mỗi tab tự có trạng thái đang tải, rỗng và lỗi.
26
+ */
27
+ @Component({
28
+ selector: 'profile',
29
+ standalone: true,
30
+ imports: [
31
+ RouterLink,
32
+ SdPageComponent,
33
+ SdButton,
34
+ SdTabGroup,
35
+ SdTab,
36
+ SdPermissionDirective,
37
+ GeneralInformationViewComponent,
38
+ OrdersViewComponent,
39
+ DebtsViewComponent,
40
+ DocumentsViewComponent,
41
+ ],
42
+ changeDetection: ChangeDetectionStrategy.OnPush,
43
+ template: `
44
+ @let customer = entity();
45
+ <sd-page-detail
46
+ [title]="'Hồ sơ khách hàng #' + customer.code"
47
+ [description]="customer.name + ' · ' + typeName()"
48
+ [badges]="badges()"
49
+ [backLink]="['../..']">
50
+ <sd-button
51
+ headerRight
52
+ *sdPermission="'PATTERN_CUSTOMER_U_UPDATE'"
53
+ title="Cập nhật khách hàng"
54
+ prefixIcon="edit"
55
+ type="fill"
56
+ color="primary"
57
+ autoId="customer-profile-update"
58
+ [routerLink]="['../update']" />
59
+ <sd-tab-group sdSubheader [selectedIndex]="tabIndex()" (selectedIndexChange)="selectTab($event)">
60
+ @for (tab of tabs; track tab.key) {
61
+ <sd-tab [label]="tab.label" />
62
+ }
63
+ </sd-tab-group>
64
+ <div class="py-16">
65
+ @for (tab of tabs; track tab.key; let index = $index) {
66
+ @if (opened().has(tab.key)) {
67
+ <div [hidden]="tabIndex() !== index" [attr.data-customer-tab]="tab.key">
68
+ @switch (tab.key) {
69
+ @case ('info') {
70
+ <general-information-view [customer]="customer" />
71
+ }
72
+ @case ('orders') {
73
+ <orders-view [customerId]="customer.id" />
74
+ }
75
+ @case ('debts') {
76
+ <debts-view [customerId]="customer.id" />
77
+ }
78
+ @case ('documents') {
79
+ <documents-view [customerId]="customer.id" />
80
+ }
81
+ }
82
+ </div>
83
+ }
84
+ }
85
+ </div>
86
+ </sd-page-detail>
87
+ `,
88
+ })
89
+ export class ProfileComponent {
90
+ readonly #router = inject(Router);
91
+ readonly #route = inject(ActivatedRoute);
92
+ protected readonly tabs = TABS;
93
+ protected readonly entity = toSignal(this.#route.data.pipe(map(data => data['entity'] as CustomerDto)), { requireSync: true });
94
+ protected readonly badges = computed(() => [customerStatusBadge(this.entity().status)]);
95
+ protected readonly typeName = computed(() => customerTypeName(this.entity().type));
96
+ readonly #tabParam = toSignal(this.#route.queryParamMap.pipe(map(params => params.get('tab'))), { requireSync: true });
97
+ protected readonly tabIndex = computed(() =>
98
+ Math.max(
99
+ 0,
100
+ TABS.findIndex(tab => tab.key === this.#tabParam())
101
+ )
102
+ );
103
+ /** Tab đã mở ít nhất một lần: giữ lại khi chuyển tab, không tải lại. Đổi khách hàng thì bắt đầu lại. */
104
+ protected readonly opened = linkedSignal<CustomerDto, ReadonlySet<TabKey>>({
105
+ source: this.entity,
106
+ // untracked: đổi tab không được đặt lại các tab đã mở; chỉ đổi khách hàng mới bắt đầu lại.
107
+ computation: () => new Set<TabKey>([TABS[untracked(this.tabIndex)].key]),
108
+ });
109
+
110
+ protected selectTab(index: number): void {
111
+ const key = TABS[index]?.key ?? 'info';
112
+ this.opened.update(opened => new Set([...opened, key]));
113
+ void this.#router.navigate([], {
114
+ relativeTo: this.#route,
115
+ queryParams: { tab: key === 'info' ? null : key },
116
+ queryParamsHandling: 'merge',
117
+ replaceUrl: true,
118
+ });
119
+ }
120
+ }
@@ -0,0 +1,14 @@
1
+ import { type PipeTransform } from '@angular/core';
2
+ import { type Observable } from 'rxjs';
3
+ import type { CustomerDto } from '../services/customer.model';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * Relation khách hàng theo ID: `@let customer = order.customerId | customerDetail | async;`.
7
+ * CustomerService cache và chia sẻ request theo ID; nơi dùng pipe phải có CustomerService trong injector.
8
+ */
9
+ export declare class CustomerDetailPipe implements PipeTransform {
10
+ #private;
11
+ transform(id: CustomerDto['id'] | null | undefined): Observable<CustomerDto | null>;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<CustomerDetailPipe, never>;
13
+ static ɵpipe: i0.ɵɵPipeDeclaration<CustomerDetailPipe, "customerDetail", true>;
14
+ }
@@ -0,0 +1,18 @@
1
+ import { inject, Pipe, type PipeTransform } from '@angular/core';
2
+ import { of, type Observable } from 'rxjs';
3
+ import { CustomerService } from '../services/customer.service';
4
+ import type { CustomerDto } from '../services/customer.model';
5
+
6
+ /**
7
+ * Relation khách hàng theo ID: `@let customer = order.customerId | customerDetail | async;`.
8
+ * CustomerService cache và chia sẻ request theo ID; nơi dùng pipe phải có CustomerService trong injector.
9
+ */
10
+ @Pipe({ name: 'customerDetail', standalone: true })
11
+ export class CustomerDetailPipe implements PipeTransform {
12
+ readonly #customerService = inject(CustomerService);
13
+
14
+ transform(id: CustomerDto['id'] | null | undefined): Observable<CustomerDto | null> {
15
+ if (id === null || id === undefined || id === '') return of(null);
16
+ return this.#customerService.cachedDetail(id);
17
+ }
18
+ }
@@ -0,0 +1,6 @@
1
+ import type { Routes } from '@angular/router';
2
+ /**
3
+ * Chi tiết, tạo và cập nhật mở trong drawer (route con của danh sách); hồ sơ 360° là trang thay chỗ danh sách
4
+ * (`data.detail: 'page'`). Đóng drawer hay quay lại đều giữ bộ lọc, trang và vị trí cuộn của danh sách.
5
+ */
6
+ export declare const routes: Routes;
@@ -0,0 +1,59 @@
1
+ import type { Routes } from '@angular/router';
2
+ import { sdPageFormLeaveGuard } from '@sdcorejs/angular/modules/layout';
3
+ import { SdPermissionGuard } from '@sdcorejs/angular/modules/permission';
4
+ import { entityResolver } from './entity.resolver';
5
+ import { CustomerService } from './services/customer.service';
6
+
7
+ /**
8
+ * Chi tiết, tạo và cập nhật mở trong drawer (route con của danh sách); hồ sơ 360° là trang thay chỗ danh sách
9
+ * (`data.detail: 'page'`). Đóng drawer hay quay lại đều giữ bộ lọc, trang và vị trí cuộn của danh sách.
10
+ */
11
+ export const routes: Routes = [
12
+ {
13
+ path: '',
14
+ providers: [CustomerService],
15
+ canActivateChild: [SdPermissionGuard],
16
+ children: [
17
+ {
18
+ path: '',
19
+ title: 'Khách hàng',
20
+ data: { permission: 'PATTERN_CUSTOMER_R_LIST' },
21
+ loadComponent: () => import('./pages/list/list.component').then(module => module.ListComponent),
22
+ children: [
23
+ {
24
+ path: 'create',
25
+ data: { permission: 'PATTERN_CUSTOMER_C_CREATE' },
26
+ canDeactivate: [sdPageFormLeaveGuard],
27
+ loadComponent: () =>
28
+ import('./components/create-side-drawer/create-side-drawer.component').then(module => module.CreateSideDrawerComponent),
29
+ },
30
+ {
31
+ path: ':id/detail',
32
+ data: { permission: 'PATTERN_CUSTOMER_R_DETAIL' },
33
+ resolve: { entity: entityResolver },
34
+ runGuardsAndResolvers: 'paramsChange',
35
+ loadComponent: () =>
36
+ import('./components/detail-side-drawer/detail-side-drawer.component').then(module => module.DetailSideDrawerComponent),
37
+ },
38
+ {
39
+ path: ':id/update',
40
+ data: { permission: 'PATTERN_CUSTOMER_U_UPDATE' },
41
+ resolve: { entity: entityResolver },
42
+ runGuardsAndResolvers: 'paramsChange',
43
+ canDeactivate: [sdPageFormLeaveGuard],
44
+ loadComponent: () =>
45
+ import('./components/update-side-drawer/update-side-drawer.component').then(module => module.UpdateSideDrawerComponent),
46
+ },
47
+ {
48
+ path: ':id/360',
49
+ title: 'Hồ sơ khách hàng',
50
+ data: { permission: 'PATTERN_CUSTOMER_R_DETAIL', detail: 'page' },
51
+ resolve: { entity: entityResolver },
52
+ runGuardsAndResolvers: 'paramsChange',
53
+ loadComponent: () => import('./pages/profile/profile.component').then(module => module.ProfileComponent),
54
+ },
55
+ ],
56
+ },
57
+ ],
58
+ },
59
+ ];
@@ -0,0 +1,77 @@
1
+ import type { SdBadgeData } from '@sdcorejs/angular/components/badge';
2
+ import type { PagingReq, PagingRes } from '@sdcorejs/utils/models';
3
+ export type CustomerType = 'individual' | 'business';
4
+ export type CustomerTier = 'standard' | 'vip';
5
+ export type CustomerStatus = 'active' | 'inactive';
6
+ export declare const CUSTOMER_TYPE_OPTIONS: ({
7
+ id: "individual";
8
+ name: string;
9
+ } | {
10
+ id: "business";
11
+ name: string;
12
+ })[];
13
+ export declare const CUSTOMER_STATUS_OPTIONS: ({
14
+ id: "active";
15
+ name: string;
16
+ color: "success";
17
+ } | {
18
+ id: "inactive";
19
+ name: string;
20
+ color: "secondary";
21
+ })[];
22
+ /** Nhóm khách của score card; `null` là tất cả. */
23
+ export type CustomerSegment = 'individual' | 'business' | 'vip';
24
+ export interface CustomerDto {
25
+ readonly id: string;
26
+ readonly code: string;
27
+ readonly name: string;
28
+ readonly type: CustomerType;
29
+ readonly tier: CustomerTier;
30
+ readonly email: string;
31
+ readonly phone: string;
32
+ readonly address: string;
33
+ readonly taxCode: string | null;
34
+ readonly status: CustomerStatus;
35
+ /** Công nợ hiện tại (₫). */
36
+ readonly debt: number;
37
+ readonly createdAt: string;
38
+ readonly note: string | null;
39
+ }
40
+ export type CustomerListReq = PagingReq<CustomerDto>;
41
+ export type CustomerListRes = PagingRes<CustomerDto>;
42
+ /** Số khách theo nhóm, cùng bộ lọc với danh sách (trừ nhóm đang chọn). */
43
+ export type CustomerCounts = Record<'all' | CustomerSegment, number>;
44
+ export interface CustomerSaveReq {
45
+ readonly name: string;
46
+ readonly type: CustomerType;
47
+ readonly tier: CustomerTier;
48
+ readonly email: string;
49
+ readonly phone: string;
50
+ readonly address: string;
51
+ readonly taxCode: string | null;
52
+ readonly status: CustomerStatus;
53
+ readonly note: string | null;
54
+ }
55
+ /** Dòng của tab Đơn hàng trong hồ sơ 360°. */
56
+ export interface CustomerOrderDto {
57
+ readonly id: string;
58
+ readonly code: string;
59
+ readonly createdAt: string;
60
+ readonly total: number;
61
+ readonly status: string;
62
+ }
63
+ /** Dòng của tab Công nợ. */
64
+ export interface CustomerDebtDto {
65
+ readonly id: string;
66
+ readonly orderCode: string;
67
+ readonly dueDate: string;
68
+ readonly amount: number;
69
+ }
70
+ /** Dòng của tab Tài liệu. */
71
+ export interface CustomerDocumentDto {
72
+ readonly id: string;
73
+ readonly name: string;
74
+ readonly size: number;
75
+ }
76
+ export declare function customerStatusBadge(status: CustomerStatus): SdBadgeData;
77
+ export declare function customerTypeName(type: CustomerType): string;
@@ -0,0 +1,87 @@
1
+ import type { SdBadgeData } from '@sdcorejs/angular/components/badge';
2
+ import type { PagingReq, PagingRes } from '@sdcorejs/utils/models';
3
+
4
+ export type CustomerType = 'individual' | 'business';
5
+ export type CustomerTier = 'standard' | 'vip';
6
+ export type CustomerStatus = 'active' | 'inactive';
7
+
8
+ export const CUSTOMER_TYPE_OPTIONS = [
9
+ { id: 'individual', name: 'Cá nhân' },
10
+ { id: 'business', name: 'Doanh nghiệp' },
11
+ ] satisfies { id: CustomerType; name: string }[];
12
+
13
+ export const CUSTOMER_STATUS_OPTIONS = [
14
+ { id: 'active', name: 'Đang hoạt động', color: 'success' },
15
+ { id: 'inactive', name: 'Ngừng hoạt động', color: 'secondary' },
16
+ ] satisfies { id: CustomerStatus; name: string; color: SdBadgeData['color'] }[];
17
+
18
+ /** Nhóm khách của score card; `null` là tất cả. */
19
+ export type CustomerSegment = 'individual' | 'business' | 'vip';
20
+
21
+ export interface CustomerDto {
22
+ readonly id: string;
23
+ readonly code: string;
24
+ readonly name: string;
25
+ readonly type: CustomerType;
26
+ readonly tier: CustomerTier;
27
+ readonly email: string;
28
+ readonly phone: string;
29
+ readonly address: string;
30
+ readonly taxCode: string | null;
31
+ readonly status: CustomerStatus;
32
+ /** Công nợ hiện tại (₫). */
33
+ readonly debt: number;
34
+ readonly createdAt: string;
35
+ readonly note: string | null;
36
+ }
37
+
38
+ export type CustomerListReq = PagingReq<CustomerDto>;
39
+ export type CustomerListRes = PagingRes<CustomerDto>;
40
+
41
+ /** Số khách theo nhóm, cùng bộ lọc với danh sách (trừ nhóm đang chọn). */
42
+ export type CustomerCounts = Record<'all' | CustomerSegment, number>;
43
+
44
+ export interface CustomerSaveReq {
45
+ readonly name: string;
46
+ readonly type: CustomerType;
47
+ readonly tier: CustomerTier;
48
+ readonly email: string;
49
+ readonly phone: string;
50
+ readonly address: string;
51
+ readonly taxCode: string | null;
52
+ readonly status: CustomerStatus;
53
+ readonly note: string | null;
54
+ }
55
+
56
+ /** Dòng của tab Đơn hàng trong hồ sơ 360°. */
57
+ export interface CustomerOrderDto {
58
+ readonly id: string;
59
+ readonly code: string;
60
+ readonly createdAt: string;
61
+ readonly total: number;
62
+ readonly status: string;
63
+ }
64
+
65
+ /** Dòng của tab Công nợ. */
66
+ export interface CustomerDebtDto {
67
+ readonly id: string;
68
+ readonly orderCode: string;
69
+ readonly dueDate: string;
70
+ readonly amount: number;
71
+ }
72
+
73
+ /** Dòng của tab Tài liệu. */
74
+ export interface CustomerDocumentDto {
75
+ readonly id: string;
76
+ readonly name: string;
77
+ readonly size: number;
78
+ }
79
+
80
+ export function customerStatusBadge(status: CustomerStatus): SdBadgeData {
81
+ const option = CUSTOMER_STATUS_OPTIONS.find(item => item.id === status);
82
+ return { type: 'round', title: option?.name ?? status, color: option?.color };
83
+ }
84
+
85
+ export function customerTypeName(type: CustomerType): string {
86
+ return CUSTOMER_TYPE_OPTIONS.find(item => item.id === type)?.name ?? type;
87
+ }
@@ -0,0 +1,24 @@
1
+ import { type Observable } from 'rxjs';
2
+ import type { Filter, PagingRes } from '@sdcorejs/utils/models';
3
+ import { BaseApiService } from '../../../services/base-api.service';
4
+ import type { CustomerCounts, CustomerDebtDto, CustomerDocumentDto, CustomerDto, CustomerListReq, CustomerListRes, CustomerOrderDto, CustomerSaveReq } from './customer.model';
5
+ import * as i0 from "@angular/core";
6
+ export declare class CustomerService extends BaseApiService {
7
+ #private;
8
+ /** Tăng sau mỗi lần tạo, cập nhật hoặc xoá thành công: danh sách chỉ tải lại khi có thay đổi. */
9
+ readonly changes: import("@angular/core").Signal<number>;
10
+ list(req: CustomerListReq): Observable<CustomerListRes>;
11
+ /** Số khách theo nhóm cho score card, theo cùng bộ lọc của danh sách. */
12
+ counts(filters: Filter<CustomerDto>[]): Observable<CustomerCounts>;
13
+ detail(id: string): Observable<CustomerDto>;
14
+ /** `detail(id)` có cache, cho relation (`customerDetail`) và giá trị đã chọn của `customer-select`. */
15
+ cachedDetail(id: string): Observable<CustomerDto>;
16
+ create(req: CustomerSaveReq): Observable<CustomerDto>;
17
+ update(id: string, req: CustomerSaveReq): Observable<CustomerDto>;
18
+ delete(id: string): Observable<void>;
19
+ orders(id: string): Observable<PagingRes<CustomerOrderDto>>;
20
+ debts(id: string): Observable<PagingRes<CustomerDebtDto>>;
21
+ documents(id: string): Observable<PagingRes<CustomerDocumentDto>>;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<CustomerService, never>;
23
+ static ɵprov: i0.ɵɵInjectableDeclaration<CustomerService>;
24
+ }
@@ -0,0 +1,79 @@
1
+ import { HttpParams } from '@angular/common/http';
2
+ import { Injectable, signal } from '@angular/core';
3
+ import { shareReplay, tap, type Observable } from 'rxjs';
4
+ import type { Filter, PagingRes } from '@sdcorejs/utils/models';
5
+ import { BaseApiService } from '../../../services/base-api.service';
6
+ import type {
7
+ CustomerCounts,
8
+ CustomerDebtDto,
9
+ CustomerDocumentDto,
10
+ CustomerDto,
11
+ CustomerListReq,
12
+ CustomerListRes,
13
+ CustomerOrderDto,
14
+ CustomerSaveReq,
15
+ } from './customer.model';
16
+
17
+ @Injectable()
18
+ export class CustomerService extends BaseApiService {
19
+ readonly #details = new Map<string, Observable<CustomerDto>>();
20
+ readonly #changes = signal(0);
21
+ /** Tăng sau mỗi lần tạo, cập nhật hoặc xoá thành công: danh sách chỉ tải lại khi có thay đổi. */
22
+ readonly changes = this.#changes.asReadonly();
23
+
24
+ list(req: CustomerListReq): Observable<CustomerListRes> {
25
+ return this.http.get<CustomerListRes>(this.apiUrl('customers'), { params: this.buildPagingReq(req) });
26
+ }
27
+
28
+ /** Số khách theo nhóm cho score card, theo cùng bộ lọc của danh sách. */
29
+ counts(filters: Filter<CustomerDto>[]): Observable<CustomerCounts> {
30
+ return this.http.get<CustomerCounts>(this.apiUrl('customers', 'counts'), {
31
+ params: new HttpParams().set('filters', JSON.stringify(filters)),
32
+ });
33
+ }
34
+
35
+ detail(id: string): Observable<CustomerDto> {
36
+ return this.http.get<CustomerDto>(this.apiUrl('customers', id));
37
+ }
38
+
39
+ /** `detail(id)` có cache, cho relation (`customerDetail`) và giá trị đã chọn của `customer-select`. */
40
+ cachedDetail(id: string): Observable<CustomerDto> {
41
+ let detail = this.#details.get(id);
42
+ if (!detail) {
43
+ detail = this.detail(id).pipe(shareReplay({ bufferSize: 1, refCount: false }));
44
+ this.#details.set(id, detail);
45
+ // Lỗi tra cứu không được cache: lần gọi sau hỏi lại.
46
+ detail.subscribe({ error: () => this.#details.delete(id) });
47
+ }
48
+ return detail;
49
+ }
50
+
51
+ create(req: CustomerSaveReq): Observable<CustomerDto> {
52
+ return this.http.post<CustomerDto>(this.apiUrl('customers'), req).pipe(tap(() => this.#changed()));
53
+ }
54
+
55
+ update(id: string, req: CustomerSaveReq): Observable<CustomerDto> {
56
+ return this.http.put<CustomerDto>(this.apiUrl('customers', id), req).pipe(tap(() => this.#changed(id)));
57
+ }
58
+
59
+ delete(id: string): Observable<void> {
60
+ return this.http.delete<void>(this.apiUrl('customers', id)).pipe(tap(() => this.#changed(id)));
61
+ }
62
+
63
+ orders(id: string): Observable<PagingRes<CustomerOrderDto>> {
64
+ return this.http.get<PagingRes<CustomerOrderDto>>(this.apiUrl('customers', id, 'orders'));
65
+ }
66
+
67
+ debts(id: string): Observable<PagingRes<CustomerDebtDto>> {
68
+ return this.http.get<PagingRes<CustomerDebtDto>>(this.apiUrl('customers', id, 'debts'));
69
+ }
70
+
71
+ documents(id: string): Observable<PagingRes<CustomerDocumentDto>> {
72
+ return this.http.get<PagingRes<CustomerDocumentDto>>(this.apiUrl('customers', id, 'documents'));
73
+ }
74
+
75
+ #changed(id?: string): void {
76
+ if (id) this.#details.delete(id);
77
+ this.#changes.update(count => count + 1);
78
+ }
79
+ }
@@ -0,0 +1,21 @@
1
+ import { type ImportField, type ImportMapping } from '../../services/import.model';
2
+ import * as i0 from "@angular/core";
3
+ /** Bước "Nhận diện & ánh xạ": chọn cột của nguồn cho từng field; mã và tên là bắt buộc. */
4
+ export declare class MappingFormComponent {
5
+ readonly sourceColumns: import("@angular/core").InputSignal<readonly string[]>;
6
+ readonly mapping: import("@angular/core").InputSignal<ImportMapping>;
7
+ readonly showErrors: import("@angular/core").InputSignal<boolean>;
8
+ readonly mappingChange: import("@angular/core").OutputEmitterRef<ImportMapping>;
9
+ protected readonly fields: readonly {
10
+ readonly field: ImportField;
11
+ readonly label: string;
12
+ readonly required: boolean;
13
+ readonly aliases: readonly string[];
14
+ }[];
15
+ protected readonly columns: import("@angular/core").Signal<{
16
+ value: string;
17
+ }[]>;
18
+ protected change(field: ImportField, value: unknown): void;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<MappingFormComponent, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<MappingFormComponent, "mapping-form", never, { "sourceColumns": { "alias": "sourceColumns"; "required": true; "isSignal": true; }; "mapping": { "alias": "mapping"; "required": true; "isSignal": true; }; "showErrors": { "alias": "showErrors"; "required": false; "isSignal": true; }; }, { "mappingChange": "mappingChange"; }, never, never, true, never>;
21
+ }