@sdcorejs/angular 21.3.1 → 21.3.3

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 (386) hide show
  1. package/assets/STYLE-GUIDE.md +25 -5
  2. package/assets/THEME.md +289 -5
  3. package/assets/licenses/tiptap-oss-NOTICES.txt +332 -0
  4. package/assets/scss/ckeditor5.scss +2 -88
  5. package/assets/scss/core/_control.scss +39 -0
  6. package/assets/scss/core/form.scss +444 -45
  7. package/assets/scss/core/view.scss +24 -0
  8. package/assets/scss/editor-content.scss +173 -0
  9. package/assets/scss/sd-core.scss +1 -0
  10. package/assets/scss/themes/_component-tokens.scss +123 -32
  11. package/assets/scss/themes/_material-tokens.scss +112 -0
  12. package/assets/scss/themes/_presets.scss +25 -0
  13. package/assets/scss/themes/_scales.scss +10 -0
  14. package/assets/scss/themes/_semantic.scss +13 -0
  15. package/assets/scss/themes/default.scss +8 -2
  16. package/fesm2022/sdcorejs-angular-components-api-contract-builder.mjs +5 -5
  17. package/fesm2022/sdcorejs-angular-components-api-contract-builder.mjs.map +1 -1
  18. package/fesm2022/sdcorejs-angular-components-avatar.mjs +142 -11
  19. package/fesm2022/sdcorejs-angular-components-avatar.mjs.map +1 -1
  20. package/fesm2022/sdcorejs-angular-components-badge.mjs +542 -24
  21. package/fesm2022/sdcorejs-angular-components-badge.mjs.map +1 -1
  22. package/fesm2022/sdcorejs-angular-components-button.mjs +31 -3
  23. package/fesm2022/sdcorejs-angular-components-button.mjs.map +1 -1
  24. package/fesm2022/sdcorejs-angular-components-ckeditor-styles.mjs +5 -20
  25. package/fesm2022/sdcorejs-angular-components-ckeditor-styles.mjs.map +1 -1
  26. package/fesm2022/sdcorejs-angular-components-data-state.mjs +1 -1
  27. package/fesm2022/sdcorejs-angular-components-data-state.mjs.map +1 -1
  28. package/fesm2022/sdcorejs-angular-components-editor-engine.mjs +1872 -0
  29. package/fesm2022/sdcorejs-angular-components-editor-engine.mjs.map +1 -0
  30. package/fesm2022/sdcorejs-angular-components-editor.mjs +457 -756
  31. package/fesm2022/sdcorejs-angular-components-editor.mjs.map +1 -1
  32. package/fesm2022/sdcorejs-angular-components-file-explorer.mjs +68 -37
  33. package/fesm2022/sdcorejs-angular-components-file-explorer.mjs.map +1 -1
  34. package/fesm2022/sdcorejs-angular-components-form-generic.mjs +2118 -1159
  35. package/fesm2022/sdcorejs-angular-components-form-generic.mjs.map +1 -1
  36. package/fesm2022/sdcorejs-angular-components-history.mjs +5 -2
  37. package/fesm2022/sdcorejs-angular-components-history.mjs.map +1 -1
  38. package/fesm2022/sdcorejs-angular-components-image-editor.mjs +1 -1
  39. package/fesm2022/sdcorejs-angular-components-image-editor.mjs.map +1 -1
  40. package/fesm2022/sdcorejs-angular-components-import-excel.mjs +21 -6
  41. package/fesm2022/sdcorejs-angular-components-import-excel.mjs.map +1 -1
  42. package/fesm2022/sdcorejs-angular-components-inform.mjs +1 -1
  43. package/fesm2022/sdcorejs-angular-components-inform.mjs.map +1 -1
  44. package/fesm2022/sdcorejs-angular-components-kanban.mjs +12 -2
  45. package/fesm2022/sdcorejs-angular-components-kanban.mjs.map +1 -1
  46. package/fesm2022/sdcorejs-angular-components-mini-editor.mjs +177 -283
  47. package/fesm2022/sdcorejs-angular-components-mini-editor.mjs.map +1 -1
  48. package/fesm2022/sdcorejs-angular-components-modal-resizable.mjs +1 -308
  49. package/fesm2022/sdcorejs-angular-components-modal-resizable.mjs.map +1 -1
  50. package/fesm2022/sdcorejs-angular-components-modal.mjs +2 -2
  51. package/fesm2022/sdcorejs-angular-components-modal.mjs.map +1 -1
  52. package/fesm2022/sdcorejs-angular-components-operator.mjs +260 -43
  53. package/fesm2022/sdcorejs-angular-components-operator.mjs.map +1 -1
  54. package/fesm2022/sdcorejs-angular-components-query-bar.mjs +12 -12
  55. package/fesm2022/sdcorejs-angular-components-query-bar.mjs.map +1 -1
  56. package/fesm2022/sdcorejs-angular-components-query-builder.mjs +1 -1
  57. package/fesm2022/sdcorejs-angular-components-query-builder.mjs.map +1 -1
  58. package/fesm2022/sdcorejs-angular-components-section.mjs +17 -5
  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 +559 -94
  64. package/fesm2022/sdcorejs-angular-components-tab-router.mjs.map +1 -1
  65. package/fesm2022/sdcorejs-angular-components-table.mjs +1001 -119
  66. package/fesm2022/sdcorejs-angular-components-table.mjs.map +1 -1
  67. package/fesm2022/sdcorejs-angular-components-tree.mjs +1 -1
  68. package/fesm2022/sdcorejs-angular-components-tree.mjs.map +1 -1
  69. package/fesm2022/sdcorejs-angular-components-upload-file.mjs +887 -174
  70. package/fesm2022/sdcorejs-angular-components-upload-file.mjs.map +1 -1
  71. package/fesm2022/sdcorejs-angular-components-view.mjs +2 -2
  72. package/fesm2022/sdcorejs-angular-components-view.mjs.map +1 -1
  73. package/fesm2022/sdcorejs-angular-components-window.mjs +484 -0
  74. package/fesm2022/sdcorejs-angular-components-window.mjs.map +1 -0
  75. package/fesm2022/sdcorejs-angular-components.mjs +1 -0
  76. package/fesm2022/sdcorejs-angular-components.mjs.map +1 -1
  77. package/fesm2022/sdcorejs-angular-configurations.mjs.map +1 -1
  78. package/fesm2022/sdcorejs-angular-directives.mjs +18 -1
  79. package/fesm2022/sdcorejs-angular-directives.mjs.map +1 -1
  80. package/fesm2022/sdcorejs-angular-forms-autocomplete.mjs +20 -2
  81. package/fesm2022/sdcorejs-angular-forms-autocomplete.mjs.map +1 -1
  82. package/fesm2022/sdcorejs-angular-forms-checkbox.mjs +2 -2
  83. package/fesm2022/sdcorejs-angular-forms-checkbox.mjs.map +1 -1
  84. package/fesm2022/sdcorejs-angular-forms-chip-calendar.mjs +457 -125
  85. package/fesm2022/sdcorejs-angular-forms-chip-calendar.mjs.map +1 -1
  86. package/fesm2022/sdcorejs-angular-forms-chip.mjs +414 -122
  87. package/fesm2022/sdcorejs-angular-forms-chip.mjs.map +1 -1
  88. package/fesm2022/sdcorejs-angular-forms-date-range.mjs +79 -13
  89. package/fesm2022/sdcorejs-angular-forms-date-range.mjs.map +1 -1
  90. package/fesm2022/sdcorejs-angular-forms-date.mjs +75 -18
  91. package/fesm2022/sdcorejs-angular-forms-date.mjs.map +1 -1
  92. package/fesm2022/sdcorejs-angular-forms-datetime.mjs +79 -16
  93. package/fesm2022/sdcorejs-angular-forms-datetime.mjs.map +1 -1
  94. package/fesm2022/sdcorejs-angular-forms-directives.mjs +82 -2
  95. package/fesm2022/sdcorejs-angular-forms-directives.mjs.map +1 -1
  96. package/fesm2022/sdcorejs-angular-forms-entity-picker.mjs +2 -2
  97. package/fesm2022/sdcorejs-angular-forms-entity-picker.mjs.map +1 -1
  98. package/fesm2022/sdcorejs-angular-forms-input-color.mjs +1 -1
  99. package/fesm2022/sdcorejs-angular-forms-input-color.mjs.map +1 -1
  100. package/fesm2022/sdcorejs-angular-forms-input-number.mjs +56 -6
  101. package/fesm2022/sdcorejs-angular-forms-input-number.mjs.map +1 -1
  102. package/fesm2022/sdcorejs-angular-forms-input.mjs +54 -7
  103. package/fesm2022/sdcorejs-angular-forms-input.mjs.map +1 -1
  104. package/fesm2022/sdcorejs-angular-forms-models.mjs +88 -5
  105. package/fesm2022/sdcorejs-angular-forms-models.mjs.map +1 -1
  106. package/fesm2022/sdcorejs-angular-forms-radio.mjs +2 -2
  107. package/fesm2022/sdcorejs-angular-forms-radio.mjs.map +1 -1
  108. package/fesm2022/sdcorejs-angular-forms-segmented.mjs +5 -4
  109. package/fesm2022/sdcorejs-angular-forms-segmented.mjs.map +1 -1
  110. package/fesm2022/sdcorejs-angular-forms-select.mjs +87 -33
  111. package/fesm2022/sdcorejs-angular-forms-select.mjs.map +1 -1
  112. package/fesm2022/sdcorejs-angular-forms-switch.mjs +2 -2
  113. package/fesm2022/sdcorejs-angular-forms-switch.mjs.map +1 -1
  114. package/fesm2022/sdcorejs-angular-forms-textarea.mjs +16 -3
  115. package/fesm2022/sdcorejs-angular-forms-textarea.mjs.map +1 -1
  116. package/fesm2022/sdcorejs-angular-forms-time.mjs +2 -2
  117. package/fesm2022/sdcorejs-angular-forms-time.mjs.map +1 -1
  118. package/fesm2022/sdcorejs-angular-forms-tree-select.mjs +1 -1
  119. package/fesm2022/sdcorejs-angular-forms-tree-select.mjs.map +1 -1
  120. package/fesm2022/sdcorejs-angular-i18n.mjs +1745 -22
  121. package/fesm2022/sdcorejs-angular-i18n.mjs.map +1 -1
  122. package/fesm2022/sdcorejs-angular-interceptors.mjs +1 -1
  123. package/fesm2022/sdcorejs-angular-interceptors.mjs.map +1 -1
  124. package/fesm2022/sdcorejs-angular-modules-generic-generic-configuration.page-BR6jxyYd.mjs +478 -0
  125. package/fesm2022/sdcorejs-angular-modules-generic-generic-configuration.page-BR6jxyYd.mjs.map +1 -0
  126. package/fesm2022/sdcorejs-angular-modules-generic-generic-form-host.page-BsEL-y-M.mjs +214 -0
  127. package/fesm2022/sdcorejs-angular-modules-generic-generic-form-host.page-BsEL-y-M.mjs.map +1 -0
  128. package/fesm2022/sdcorejs-angular-modules-generic-generic-list.page-qTFKh4UG.mjs +277 -0
  129. package/fesm2022/sdcorejs-angular-modules-generic-generic-list.page-qTFKh4UG.mjs.map +1 -0
  130. package/fesm2022/sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-Cq0GFfo1.mjs +1556 -0
  131. package/fesm2022/sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-Cq0GFfo1.mjs.map +1 -0
  132. package/fesm2022/sdcorejs-angular-modules-generic.mjs +2 -0
  133. package/fesm2022/sdcorejs-angular-modules-generic.mjs.map +1 -0
  134. package/fesm2022/sdcorejs-angular-modules-icon.mjs +96 -3
  135. package/fesm2022/sdcorejs-angular-modules-icon.mjs.map +1 -1
  136. package/fesm2022/sdcorejs-angular-modules-layout.mjs +2055 -37
  137. package/fesm2022/sdcorejs-angular-modules-layout.mjs.map +1 -1
  138. package/fesm2022/sdcorejs-angular-modules-pattern-api-error-BBWwQ6h2.mjs +23 -0
  139. package/fesm2022/sdcorejs-angular-modules-pattern-api-error-BBWwQ6h2.mjs.map +1 -0
  140. package/fesm2022/sdcorejs-angular-modules-pattern-approval-inbox-BMwD6_FC.mjs +16 -0
  141. package/fesm2022/sdcorejs-angular-modules-pattern-approval-inbox-BMwD6_FC.mjs.map +1 -0
  142. package/fesm2022/sdcorejs-angular-modules-pattern-base-api.service-p8-V_Ol9.mjs +51 -0
  143. package/fesm2022/sdcorejs-angular-modules-pattern-base-api.service-p8-V_Ol9.mjs.map +1 -0
  144. package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-DTcpSsbe.mjs +130 -0
  145. package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-DTcpSsbe.mjs.map +1 -0
  146. package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-T2ox0oMZ.mjs +131 -0
  147. package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-T2ox0oMZ.mjs.map +1 -0
  148. package/fesm2022/sdcorejs-angular-modules-pattern-create.component-DAjVXHXc.mjs +99 -0
  149. package/fesm2022/sdcorejs-angular-modules-pattern-create.component-DAjVXHXc.mjs.map +1 -0
  150. package/fesm2022/sdcorejs-angular-modules-pattern-create.component-DkHR_ix2.mjs +118 -0
  151. package/fesm2022/sdcorejs-angular-modules-pattern-create.component-DkHR_ix2.mjs.map +1 -0
  152. package/fesm2022/sdcorejs-angular-modules-pattern-create.component-DxWuy1ul.mjs +460 -0
  153. package/fesm2022/sdcorejs-angular-modules-pattern-create.component-DxWuy1ul.mjs.map +1 -0
  154. package/fesm2022/sdcorejs-angular-modules-pattern-customer.model-C3fr4yNw.mjs +18 -0
  155. package/fesm2022/sdcorejs-angular-modules-pattern-customer.model-C3fr4yNw.mjs.map +1 -0
  156. package/fesm2022/sdcorejs-angular-modules-pattern-customer.service-Cbs05A2j.mjs +66 -0
  157. package/fesm2022/sdcorejs-angular-modules-pattern-customer.service-Cbs05A2j.mjs.map +1 -0
  158. package/fesm2022/sdcorejs-angular-modules-pattern-detail-side-drawer.component-Bkk3_Lf0.mjs +148 -0
  159. package/fesm2022/sdcorejs-angular-modules-pattern-detail-side-drawer.component-Bkk3_Lf0.mjs.map +1 -0
  160. package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-BIuEchUV.mjs +467 -0
  161. package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-BIuEchUV.mjs.map +1 -0
  162. package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CH21RSWx.mjs +172 -0
  163. package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CH21RSWx.mjs.map +1 -0
  164. package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CX4WWzER.mjs +90 -0
  165. package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CX4WWzER.mjs.map +1 -0
  166. package/fesm2022/sdcorejs-angular-modules-pattern-flow.component-D1kpfcf_.mjs +514 -0
  167. package/fesm2022/sdcorejs-angular-modules-pattern-flow.component-D1kpfcf_.mjs.map +1 -0
  168. package/fesm2022/sdcorejs-angular-modules-pattern-form-api-errors-DYyFPZUU.mjs +61 -0
  169. package/fesm2022/sdcorejs-angular-modules-pattern-form-api-errors-DYyFPZUU.mjs.map +1 -0
  170. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-B9vCzIT6.mjs +232 -0
  171. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-B9vCzIT6.mjs.map +1 -0
  172. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-BnROr-Wg.mjs +87 -0
  173. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-BnROr-Wg.mjs.map +1 -0
  174. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-qs8Yoxn0.mjs +170 -0
  175. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-qs8Yoxn0.mjs.map +1 -0
  176. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-view.component-Cbwdhc0Z.mjs +70 -0
  177. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-view.component-Cbwdhc0Z.mjs.map +1 -0
  178. package/fesm2022/sdcorejs-angular-modules-pattern-index.component-DYphTR6C.mjs +100 -0
  179. package/fesm2022/sdcorejs-angular-modules-pattern-index.component-DYphTR6C.mjs.map +1 -0
  180. package/fesm2022/sdcorejs-angular-modules-pattern-lines-form.component-C692P-z0.mjs +522 -0
  181. package/fesm2022/sdcorejs-angular-modules-pattern-lines-form.component-C692P-z0.mjs.map +1 -0
  182. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-5sLtmhG1.mjs +71 -0
  183. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-5sLtmhG1.mjs.map +1 -0
  184. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-BIFg9bUW.mjs +629 -0
  185. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-BIFg9bUW.mjs.map +1 -0
  186. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CZ1NoLIo.mjs +115 -0
  187. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CZ1NoLIo.mjs.map +1 -0
  188. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CmZeYoF7.mjs +118 -0
  189. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CmZeYoF7.mjs.map +1 -0
  190. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-Dy2Rkh8f.mjs +164 -0
  191. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-Dy2Rkh8f.mjs.map +1 -0
  192. package/fesm2022/sdcorejs-angular-modules-pattern-mock-backend.factory-BdxQkZXW.mjs +1069 -0
  193. package/fesm2022/sdcorejs-angular-modules-pattern-mock-backend.factory-BdxQkZXW.mjs.map +1 -0
  194. package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source-viewer-BpLQaYP5.mjs +186 -0
  195. package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source-viewer-BpLQaYP5.mjs.map +1 -0
  196. package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source.generated-BrejHvB2.mjs +97 -0
  197. package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source.generated-BrejHvB2.mjs.map +1 -0
  198. package/fesm2022/sdcorejs-angular-modules-pattern-product.model-BoHLJ8vf.mjs +12 -0
  199. package/fesm2022/sdcorejs-angular-modules-pattern-product.model-BoHLJ8vf.mjs.map +1 -0
  200. package/fesm2022/sdcorejs-angular-modules-pattern-product.service-BpSTfkeT.mjs +48 -0
  201. package/fesm2022/sdcorejs-angular-modules-pattern-product.service-BpSTfkeT.mjs.map +1 -0
  202. package/fesm2022/sdcorejs-angular-modules-pattern-profile.component-D3QP1i9v.mjs +293 -0
  203. package/fesm2022/sdcorejs-angular-modules-pattern-profile.component-D3QP1i9v.mjs.map +1 -0
  204. package/fesm2022/sdcorejs-angular-modules-pattern-routes-BA64XAgv.mjs +74 -0
  205. package/fesm2022/sdcorejs-angular-modules-pattern-routes-BA64XAgv.mjs.map +1 -0
  206. package/fesm2022/sdcorejs-angular-modules-pattern-routes-CWTlhZzo.mjs +50 -0
  207. package/fesm2022/sdcorejs-angular-modules-pattern-routes-CWTlhZzo.mjs.map +1 -0
  208. package/fesm2022/sdcorejs-angular-modules-pattern-routes-ClRXOw9g.mjs +165 -0
  209. package/fesm2022/sdcorejs-angular-modules-pattern-routes-ClRXOw9g.mjs.map +1 -0
  210. package/fesm2022/sdcorejs-angular-modules-pattern-routes-DYT6cDVo.mjs +45 -0
  211. package/fesm2022/sdcorejs-angular-modules-pattern-routes-DYT6cDVo.mjs.map +1 -0
  212. package/fesm2022/sdcorejs-angular-modules-pattern-routes-Dww3V1b9.mjs +43 -0
  213. package/fesm2022/sdcorejs-angular-modules-pattern-routes-Dww3V1b9.mjs.map +1 -0
  214. package/fesm2022/sdcorejs-angular-modules-pattern-routes-HwJm344-.mjs +74 -0
  215. package/fesm2022/sdcorejs-angular-modules-pattern-routes-HwJm344-.mjs.map +1 -0
  216. package/fesm2022/sdcorejs-angular-modules-pattern-routes-ZkBSRFv_.mjs +99 -0
  217. package/fesm2022/sdcorejs-angular-modules-pattern-routes-ZkBSRFv_.mjs.map +1 -0
  218. package/fesm2022/sdcorejs-angular-modules-pattern-routes-px1VU73r.mjs +66 -0
  219. package/fesm2022/sdcorejs-angular-modules-pattern-routes-px1VU73r.mjs.map +1 -0
  220. package/fesm2022/sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-BSDQaT9e.mjs +406 -0
  221. package/fesm2022/sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-BSDQaT9e.mjs.map +1 -0
  222. package/fesm2022/sdcorejs-angular-modules-pattern-shell.component-2EN7PuIE.mjs +317 -0
  223. package/fesm2022/sdcorejs-angular-modules-pattern-shell.component-2EN7PuIE.mjs.map +1 -0
  224. package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-Crg1J2V5.mjs +132 -0
  225. package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-Crg1J2V5.mjs.map +1 -0
  226. package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-LIBiOZLn.mjs +143 -0
  227. package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-LIBiOZLn.mjs.map +1 -0
  228. package/fesm2022/sdcorejs-angular-modules-pattern-update.component-4Mm8-ehz.mjs +128 -0
  229. package/fesm2022/sdcorejs-angular-modules-pattern-update.component-4Mm8-ehz.mjs.map +1 -0
  230. package/fesm2022/sdcorejs-angular-modules-pattern-update.component-ClEGOr5D.mjs +357 -0
  231. package/fesm2022/sdcorejs-angular-modules-pattern-update.component-ClEGOr5D.mjs.map +1 -0
  232. package/fesm2022/sdcorejs-angular-modules-pattern-update.component-CoGA7wxY.mjs +100 -0
  233. package/fesm2022/sdcorejs-angular-modules-pattern-update.component-CoGA7wxY.mjs.map +1 -0
  234. package/fesm2022/sdcorejs-angular-modules-pattern.mjs +2 -0
  235. package/fesm2022/sdcorejs-angular-modules-pattern.mjs.map +1 -0
  236. package/fesm2022/sdcorejs-angular-modules.mjs +1 -0
  237. package/fesm2022/sdcorejs-angular-modules.mjs.map +1 -1
  238. package/fesm2022/sdcorejs-angular-pipes.mjs +27 -7
  239. package/fesm2022/sdcorejs-angular-pipes.mjs.map +1 -1
  240. package/fesm2022/sdcorejs-angular-services-confirm.mjs +1 -1
  241. package/fesm2022/sdcorejs-angular-services-confirm.mjs.map +1 -1
  242. package/fesm2022/sdcorejs-angular-services-date-time.mjs +143 -0
  243. package/fesm2022/sdcorejs-angular-services-date-time.mjs.map +1 -0
  244. package/fesm2022/sdcorejs-angular-services-storage.mjs +44 -8
  245. package/fesm2022/sdcorejs-angular-services-storage.mjs.map +1 -1
  246. package/fesm2022/sdcorejs-angular-services-unsaved-changes.mjs +104 -4
  247. package/fesm2022/sdcorejs-angular-services-unsaved-changes.mjs.map +1 -1
  248. package/fesm2022/sdcorejs-angular-services.mjs +1 -0
  249. package/fesm2022/sdcorejs-angular-services.mjs.map +1 -1
  250. package/fesm2022/sdcorejs-angular-utilities-read-state.mjs +4 -0
  251. package/fesm2022/sdcorejs-angular-utilities-read-state.mjs.map +1 -1
  252. package/fesm2022/sdcorejs-angular-utilities-theme.mjs +10 -0
  253. package/fesm2022/sdcorejs-angular-utilities-theme.mjs.map +1 -1
  254. package/modules/pattern/README.md +76 -0
  255. package/modules/pattern/docs/detail.md +237 -0
  256. package/modules/pattern/docs/drawer.md +484 -0
  257. package/modules/pattern/docs/flow.md +631 -0
  258. package/modules/pattern/docs/form.md +518 -0
  259. package/modules/pattern/docs/header-actions.md +342 -0
  260. package/modules/pattern/docs/list.md +247 -0
  261. package/modules/pattern/docs/relation.md +180 -0
  262. package/modules/pattern/docs/select.md +206 -0
  263. package/modules/pattern/docs/split.md +350 -0
  264. package/modules/pattern/docs/states.md +168 -0
  265. package/modules/pattern/features/approval/entity.resolver.ts +21 -0
  266. package/modules/pattern/features/approval/pages/detail/detail.component.ts +139 -0
  267. package/modules/pattern/features/approval/pages/list/approval-inbox.ts +7 -0
  268. package/modules/pattern/features/approval/pages/list/list.component.html +20 -0
  269. package/modules/pattern/features/approval/pages/list/list.component.ts +149 -0
  270. package/modules/pattern/features/approval/routes.ts +30 -0
  271. package/modules/pattern/features/approval/services/approval.model.ts +38 -0
  272. package/modules/pattern/features/approval/services/approval.service.ts +23 -0
  273. package/modules/pattern/features/category/components/create-side-drawer/create-side-drawer.component.ts +123 -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.ts +134 -0
  276. package/modules/pattern/features/category/entity.resolver.ts +27 -0
  277. package/modules/pattern/features/category/pages/list/list.component.html +20 -0
  278. package/modules/pattern/features/category/pages/list/list.component.ts +105 -0
  279. package/modules/pattern/features/category/routes.ts +42 -0
  280. package/modules/pattern/features/category/services/category.model.ts +39 -0
  281. package/modules/pattern/features/category/services/category.service.ts +36 -0
  282. package/modules/pattern/features/customer/components/create-side-drawer/create-side-drawer.component.ts +131 -0
  283. package/modules/pattern/features/customer/components/customer-select/customer-select.component.ts +72 -0
  284. package/modules/pattern/features/customer/components/customer-type-select/customer-type-select.component.ts +30 -0
  285. package/modules/pattern/features/customer/components/debts-view/debts-view.component.ts +28 -0
  286. package/modules/pattern/features/customer/components/detail-side-drawer/detail-side-drawer.component.ts +106 -0
  287. package/modules/pattern/features/customer/components/documents-view/documents-view.component.ts +50 -0
  288. package/modules/pattern/features/customer/components/general-information-form/general-information-form.component.ts +140 -0
  289. package/modules/pattern/features/customer/components/general-information-view/general-information-view.component.ts +39 -0
  290. package/modules/pattern/features/customer/components/orders-view/orders-view.component.ts +35 -0
  291. package/modules/pattern/features/customer/components/summary-cards/summary-cards.component.ts +101 -0
  292. package/modules/pattern/features/customer/components/update-side-drawer/update-side-drawer.component.ts +127 -0
  293. package/modules/pattern/features/customer/entity.resolver.ts +21 -0
  294. package/modules/pattern/features/customer/pages/list/list.component.html +22 -0
  295. package/modules/pattern/features/customer/pages/list/list.component.ts +113 -0
  296. package/modules/pattern/features/customer/pages/profile/profile.component.ts +120 -0
  297. package/modules/pattern/features/customer/pipes/customer-detail.pipe.ts +18 -0
  298. package/modules/pattern/features/customer/routes.ts +59 -0
  299. package/modules/pattern/features/customer/services/customer.model.ts +87 -0
  300. package/modules/pattern/features/customer/services/customer.service.ts +79 -0
  301. package/modules/pattern/features/import/components/mapping-form/mapping-form.component.ts +41 -0
  302. package/modules/pattern/features/import/components/preview-view/preview-view.component.ts +44 -0
  303. package/modules/pattern/features/import/pages/flow/flow.component.ts +269 -0
  304. package/modules/pattern/features/import/routes.ts +19 -0
  305. package/modules/pattern/features/import/services/import.model.ts +82 -0
  306. package/modules/pattern/features/import/services/import.service.ts +18 -0
  307. package/modules/pattern/features/order/components/approval-steps/approval-steps.component.ts +74 -0
  308. package/modules/pattern/features/order/components/bulk-result/bulk-result.component.ts +46 -0
  309. package/modules/pattern/features/order/components/general-information-form/general-information-form.component.ts +96 -0
  310. package/modules/pattern/features/order/components/lines-form/lines-form.component.ts +205 -0
  311. package/modules/pattern/features/order/components/lines-view/lines-view.component.ts +42 -0
  312. package/modules/pattern/features/order/components/summary-cards/summary-cards.component.ts +128 -0
  313. package/modules/pattern/features/order/entity.resolver.ts +37 -0
  314. package/modules/pattern/features/order/pages/create/create.component.ts +99 -0
  315. package/modules/pattern/features/order/pages/detail/detail.component.ts +222 -0
  316. package/modules/pattern/features/order/pages/list/list.component.html +38 -0
  317. package/modules/pattern/features/order/pages/list/list.component.ts +291 -0
  318. package/modules/pattern/features/order/pages/update/update.component.ts +119 -0
  319. package/modules/pattern/features/order/routes.ts +54 -0
  320. package/modules/pattern/features/order/services/order.model.ts +109 -0
  321. package/modules/pattern/features/order/services/order.service.ts +63 -0
  322. package/modules/pattern/features/partner/pages/create/create.component.ts +324 -0
  323. package/modules/pattern/features/partner/routes.ts +20 -0
  324. package/modules/pattern/features/partner/services/partner.model.ts +30 -0
  325. package/modules/pattern/features/partner/services/partner.service.ts +17 -0
  326. package/modules/pattern/features/product/components/general-information-form/general-information-form.component.ts +88 -0
  327. package/modules/pattern/features/product/components/product-select/product-select.component.ts +65 -0
  328. package/modules/pattern/features/product/components/product-status-select/product-status-select.component.ts +30 -0
  329. package/modules/pattern/features/product/entity.resolver.ts +21 -0
  330. package/modules/pattern/features/product/pages/create/create.component.ts +85 -0
  331. package/modules/pattern/features/product/pages/detail/detail.component.ts +53 -0
  332. package/modules/pattern/features/product/pages/list/list.component.html +30 -0
  333. package/modules/pattern/features/product/pages/list/list.component.ts +71 -0
  334. package/modules/pattern/features/product/pages/update/update.component.ts +86 -0
  335. package/modules/pattern/features/product/pipes/product-detail.pipe.ts +18 -0
  336. package/modules/pattern/features/product/routes.ts +48 -0
  337. package/modules/pattern/features/product/services/product.model.ts +38 -0
  338. package/modules/pattern/features/product/services/product.service.ts +48 -0
  339. package/modules/pattern/features/settings/pages/update/update.component.ts +227 -0
  340. package/modules/pattern/features/settings/routes.ts +24 -0
  341. package/modules/pattern/features/settings/services/settings.model.ts +18 -0
  342. package/modules/pattern/features/settings/services/settings.service.ts +15 -0
  343. package/modules/pattern/features/settings/settings.resolver.ts +8 -0
  344. package/package.json +44 -7
  345. package/types/sdcorejs-angular-components-avatar.d.ts +67 -2
  346. package/types/sdcorejs-angular-components-badge.d.ts +206 -6
  347. package/types/sdcorejs-angular-components-button.d.ts +20 -1
  348. package/types/sdcorejs-angular-components-ckeditor-styles.d.ts +3 -18
  349. package/types/sdcorejs-angular-components-editor-engine.d.ts +246 -0
  350. package/types/sdcorejs-angular-components-editor.d.ts +20 -17
  351. package/types/sdcorejs-angular-components-file-explorer.d.ts +4 -2
  352. package/types/sdcorejs-angular-components-form-generic.d.ts +246 -35
  353. package/types/sdcorejs-angular-components-mini-editor.d.ts +33 -70
  354. package/types/sdcorejs-angular-components-modal-resizable.d.ts +1 -124
  355. package/types/sdcorejs-angular-components-operator.d.ts +137 -8
  356. package/types/sdcorejs-angular-components-section.d.ts +13 -1
  357. package/types/sdcorejs-angular-components-splitter.d.ts +1 -1
  358. package/types/sdcorejs-angular-components-tab-router.d.ts +74 -19
  359. package/types/sdcorejs-angular-components-table.d.ts +210 -18
  360. package/types/sdcorejs-angular-components-upload-file.d.ts +181 -21
  361. package/types/sdcorejs-angular-components-window.d.ts +81 -0
  362. package/types/sdcorejs-angular-components.d.ts +1 -0
  363. package/types/sdcorejs-angular-configurations.d.ts +8 -1
  364. package/types/sdcorejs-angular-forms-autocomplete.d.ts +5 -0
  365. package/types/sdcorejs-angular-forms-chip-calendar.d.ts +163 -18
  366. package/types/sdcorejs-angular-forms-chip.d.ts +136 -26
  367. package/types/sdcorejs-angular-forms-date-range.d.ts +24 -2
  368. package/types/sdcorejs-angular-forms-date.d.ts +23 -2
  369. package/types/sdcorejs-angular-forms-directives.d.ts +47 -2
  370. package/types/sdcorejs-angular-forms-input-number.d.ts +23 -2
  371. package/types/sdcorejs-angular-forms-input.d.ts +23 -2
  372. package/types/sdcorejs-angular-forms-models.d.ts +38 -3
  373. package/types/sdcorejs-angular-forms-select.d.ts +32 -2
  374. package/types/sdcorejs-angular-i18n.d.ts +344 -2
  375. package/types/sdcorejs-angular-modules-generic.d.ts +316 -0
  376. package/types/sdcorejs-angular-modules-icon.d.ts +37 -6
  377. package/types/sdcorejs-angular-modules-layout.d.ts +622 -89
  378. package/types/sdcorejs-angular-modules-pattern.d.ts +50 -0
  379. package/types/sdcorejs-angular-modules.d.ts +1 -0
  380. package/types/sdcorejs-angular-pipes.d.ts +2 -0
  381. package/types/sdcorejs-angular-services-date-time.d.ts +57 -0
  382. package/types/sdcorejs-angular-services-storage.d.ts +8 -1
  383. package/types/sdcorejs-angular-services-unsaved-changes.d.ts +11 -0
  384. package/types/sdcorejs-angular-services.d.ts +1 -0
  385. package/types/sdcorejs-angular-utilities-read-state.d.ts +2 -0
  386. package/types/sdcorejs-angular-utilities-theme.d.ts +1 -1
@@ -0,0 +1,277 @@
1
+ import * as i0 from '@angular/core';
2
+ import { input, output, inject, viewChild, computed, ChangeDetectionStrategy, Component, signal, Injector, afterNextRender, forwardRef } from '@angular/core';
3
+ import { toSignal } from '@angular/core/rxjs-interop';
4
+ import { ActivatedRoute, Router, RouterOutlet } from '@angular/router';
5
+ import { SdButton } from '@sdcorejs/angular/components/button';
6
+ import { SdInform } from '@sdcorejs/angular/components/inform';
7
+ import { SdTable } from '@sdcorejs/angular/components/table';
8
+ import { I18nService, SdTranslatePipe } from '@sdcorejs/angular/i18n';
9
+ import { SdPageComponent } from '@sdcorejs/angular/modules/layout';
10
+ import { SdConfirmService } from '@sdcorejs/angular/services/confirm';
11
+ import { SdNotifyService } from '@sdcorejs/angular/services/notify';
12
+ import { map } from 'rxjs';
13
+ import { SdImportExcel } from '@sdcorejs/angular/components/import-excel';
14
+ import { o as SdGenericImportService, S as SdGenericDataService, a as SdGenericPermissionService, b as SD_GENERIC_SCOPE, d as sdGenericRenderTitle, p as sdGenericPrimaryKey, m as sdGenericPageSize, q as sdGenericExternalFilters, r as sdGenericTableColumns, c as SD_GENERIC_LIST_HOST } from './sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-Cq0GFfo1.mjs';
15
+
16
+ const HTML_ESCAPES = { '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' };
17
+ /** sd-import-excel renders row messages as HTML; spreadsheet and backend text must stay text (ST-002). */
18
+ const escapeHtml = (text) => text.replace(/[&<>"']/g, character => HTML_ESCAPES[character]);
19
+ const CELL_MESSAGES = {
20
+ 'relation-not-found': 'core.module.generic.import.not-found',
21
+ 'enum-unknown': 'core.module.generic.import.enum-unknown',
22
+ 'number-invalid': 'core.module.generic.import.number-invalid',
23
+ 'match-ambiguous': 'core.module.generic.import.match-ambiguous',
24
+ };
25
+ /** Excel import of one entity: template from the import columns, rows saved through `SdGenericImportService`. */
26
+ class GenericImportDialog {
27
+ schema = input.required(...(ngDevMode ? [{ debugName: "schema" }] : /* istanbul ignore next */ []));
28
+ /** Emitted after an import saved at least one row. */
29
+ imported = output();
30
+ #importer = inject(SdGenericImportService);
31
+ #notify = inject(SdNotifyService);
32
+ #i18n = inject(I18nService);
33
+ excel = viewChild(SdImportExcel, ...(ngDevMode ? [{ debugName: "excel" }] : /* istanbul ignore next */ []));
34
+ option = computed(() => {
35
+ const schema = this.schema();
36
+ return {
37
+ title: this.#i18n.t('core.module.generic.import.title', { label: schema.general.label }),
38
+ fileName: `${schema.module}-${schema.entity}`,
39
+ columns: this.#importer.columns(schema).map(column => ({
40
+ field: column.key,
41
+ title: column.property.label,
42
+ type: column.property.dataType === 'number' ? 'number' : 'string',
43
+ required: !!column.property.validation?.required,
44
+ ...(column.property.dataType === 'enum'
45
+ ? { description: (column.property.enums ?? []).map(option => option.label).join(', ') }
46
+ : {}),
47
+ })),
48
+ accept: items => this.#accept(schema, items),
49
+ };
50
+ }, ...(ngDevMode ? [{ debugName: "option" }] : /* istanbul ignore next */ []));
51
+ open() {
52
+ this.excel()?.open();
53
+ }
54
+ async #accept(schema, items) {
55
+ let validations;
56
+ try {
57
+ const results = await this.#importer.run(schema, items);
58
+ const saved = results.filter(result => result.status !== 'error');
59
+ if (saved.length) {
60
+ const created = saved.filter(result => result.status === 'created').length;
61
+ const updated = saved.length - created;
62
+ this.#notify.success(`${this.#i18n.t('core.module.generic.import.created')}: ${created} · ${this.#i18n.t('core.module.generic.import.updated')}: ${updated}`);
63
+ this.imported.emit();
64
+ }
65
+ validations = results
66
+ .filter(result => result.status === 'error')
67
+ .map(result => ({
68
+ idx: result.index,
69
+ errorMessage: escapeHtml(result.message ?? result.errors.map(error => this.#cellError(schema, error)).join('; ')),
70
+ }));
71
+ }
72
+ catch (error) {
73
+ this.#notify.error(error instanceof Error ? error.message : String(error));
74
+ return [];
75
+ }
76
+ // why: sd-import-excel ignores the value returned by `accept`; the row results only show through setValidation.
77
+ this.excel()?.setValidation(validations);
78
+ return validations;
79
+ }
80
+ #cellError(schema, error) {
81
+ const label = schema.general.properties.find(property => property.key === error.key)?.label ?? error.key;
82
+ return this.#i18n.t(CELL_MESSAGES[error.code], { label, value: String(error.value) });
83
+ }
84
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: GenericImportDialog, deps: [], target: i0.ɵɵFactoryTarget.Component });
85
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.17", type: GenericImportDialog, isStandalone: true, selector: "sd-generic-import-dialog", inputs: { schema: { classPropertyName: "schema", publicName: "schema", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { imported: "imported" }, providers: [SdGenericImportService], viewQueries: [{ propertyName: "excel", first: true, predicate: SdImportExcel, descendants: true, isSignal: true }], ngImport: i0, template: "<sd-import-excel [option]=\"option()\"></sd-import-excel>\n", dependencies: [{ kind: "component", type: SdImportExcel, selector: "sd-import-excel", inputs: ["option"], outputs: ["sdClosed"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
86
+ }
87
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: GenericImportDialog, decorators: [{
88
+ type: Component,
89
+ args: [{ selector: 'sd-generic-import-dialog', changeDetection: ChangeDetectionStrategy.OnPush, imports: [SdImportExcel], providers: [SdGenericImportService], template: "<sd-import-excel [option]=\"option()\"></sd-import-excel>\n" }]
90
+ }], propDecorators: { schema: [{ type: i0.Input, args: [{ isSignal: true, alias: "schema", required: true }] }], imported: [{ type: i0.Output, args: ["imported"] }], excel: [{ type: i0.ViewChild, args: [i0.forwardRef(() => SdImportExcel), { isSignal: true }] }] } });
91
+
92
+ const message = (error) => (error instanceof Error ? error.message : String(error));
93
+ /**
94
+ * List of one entity: sd-table driven by the effective schema, built-in and custom actions, and an outlet for
95
+ * create / detail / update. The page stays mounted while a side drawer is open, so sd-table keeps its filters.
96
+ */
97
+ class GenericListPage {
98
+ #route = inject(ActivatedRoute);
99
+ #router = inject(Router);
100
+ #data = inject(SdGenericDataService);
101
+ #permission = inject(SdGenericPermissionService);
102
+ #scope = inject(SD_GENERIC_SCOPE);
103
+ #confirm = inject(SdConfirmService);
104
+ #notify = inject(SdNotifyService);
105
+ #i18n = inject(I18nService);
106
+ generic = toSignal(this.#route.data.pipe(map(data => data['generic'])), {
107
+ initialValue: this.#route.snapshot.data['generic'],
108
+ });
109
+ schema = computed(() => this.generic()?.resolved?.schema ?? null, ...(ngDevMode ? [{ debugName: "schema" }] : /* istanbul ignore next */ []));
110
+ error = computed(() => this.generic()?.error ?? null, ...(ngDevMode ? [{ debugName: "error" }] : /* istanbul ignore next */ []));
111
+ #entityConfig = computed(() => {
112
+ const generic = this.generic();
113
+ return generic ? this.#scope.entity(generic.module, generic.entity) : undefined;
114
+ }, ...(ngDevMode ? [{ debugName: "#entityConfig" }] : /* istanbul ignore next */ []));
115
+ title = computed(() => {
116
+ const schema = this.schema();
117
+ if (!schema)
118
+ return this.generic()?.entity ?? '';
119
+ return schema.list?.title
120
+ ? sdGenericRenderTitle(schema.list.title)
121
+ : this.#i18n.t('core.module.generic.title.list', { label: schema.general.label });
122
+ }, ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
123
+ canCreate = computed(() => this.#allowed('create'), ...(ngDevMode ? [{ debugName: "canCreate" }] : /* istanbul ignore next */ []));
124
+ canImport = computed(() => this.#allowed('import'), ...(ngDevMode ? [{ debugName: "canImport" }] : /* istanbul ignore next */ []));
125
+ canConfigure = computed(() => {
126
+ const generic = this.generic();
127
+ return !!generic && this.#permission.can(generic.module, generic.entity, 'configuration');
128
+ }, ...(ngDevMode ? [{ debugName: "canConfigure" }] : /* istanbul ignore next */ []));
129
+ /** Shown only to users who can fix the configuration (AC-007). */
130
+ showInvalidBanner = computed(() => !!this.generic()?.resolved?.invalid && this.canConfigure(), ...(ngDevMode ? [{ debugName: "showInvalidBanner" }] : /* istanbul ignore next */ []));
131
+ listActions = computed(() => {
132
+ const schema = this.schema();
133
+ return schema ? this.#visibleActions(this.#entityConfig()?.listActions, { schema, reload: () => this.reload() }) : [];
134
+ }, ...(ngDevMode ? [{ debugName: "listActions" }] : /* istanbul ignore next */ []));
135
+ /** A form shown as a full page takes the place of the list; the list stays mounted (filters, sort, page). */
136
+ pageChildActive = signal(false, ...(ngDevMode ? [{ debugName: "pageChildActive" }] : /* istanbul ignore next */ []));
137
+ tableOption = computed(() => {
138
+ const schema = this.schema();
139
+ return schema ? this.#tableOption(schema) : null;
140
+ }, ...(ngDevMode ? [{ debugName: "tableOption" }] : /* istanbul ignore next */ []));
141
+ table = viewChild(SdTable, ...(ngDevMode ? [{ debugName: "table" }] : /* istanbul ignore next */ []));
142
+ importDialog = viewChild(GenericImportDialog, ...(ngDevMode ? [{ debugName: "importDialog" }] : /* istanbul ignore next */ []));
143
+ heading = viewChild('heading', ...(ngDevMode ? [{ debugName: "heading" }] : /* istanbul ignore next */ []));
144
+ #injector = inject(Injector);
145
+ reload() {
146
+ void this.table()?.reload(true, false);
147
+ }
148
+ setFormDisplay(display) {
149
+ this.pageChildActive.set(display === 'page');
150
+ }
151
+ onDeactivate() {
152
+ this.pageChildActive.set(false);
153
+ // why: the closed form held the focus; hand it to the list heading instead of losing it to <body>.
154
+ afterNextRender(() => this.heading()?.nativeElement.focus(), { injector: this.#injector });
155
+ }
156
+ create() {
157
+ void this.#router.navigate(['create'], { relativeTo: this.#route });
158
+ }
159
+ openImport() {
160
+ this.importDialog()?.open();
161
+ }
162
+ openConfiguration() {
163
+ void this.#router.navigate(['configuration'], { relativeTo: this.#route });
164
+ }
165
+ async runAction(action, context = {}) {
166
+ const schema = this.schema();
167
+ if (!schema)
168
+ return;
169
+ try {
170
+ await action.run({ ...context, schema, reload: () => this.reload() });
171
+ }
172
+ catch (error) {
173
+ this.#notify.error(message(error));
174
+ }
175
+ }
176
+ #allowed(action) {
177
+ const generic = this.generic();
178
+ return !!generic && this.#permission.allows(generic.module, generic.entity, action);
179
+ }
180
+ #visibleActions(actions, context) {
181
+ return (actions ?? []).filter(action => this.#permission.canCode(action.permission) && (action.visible?.(context) ?? true));
182
+ }
183
+ #open(row, schema, action) {
184
+ void this.#router.navigate([String(row[sdGenericPrimaryKey(schema)]), action], { relativeTo: this.#route });
185
+ }
186
+ async #delete(schema, rows) {
187
+ const confirmMessage = rows.length === 1
188
+ ? this.#i18n.t('core.module.generic.delete.confirm')
189
+ : this.#i18n.t('core.module.generic.delete.confirm-many', { count: rows.length });
190
+ try {
191
+ await this.#confirm.confirm(confirmMessage, { title: this.#i18n.t('core.module.generic.delete.title'), yesButtonColor: 'error' });
192
+ }
193
+ catch {
194
+ return;
195
+ }
196
+ const primaryKey = sdGenericPrimaryKey(schema);
197
+ const failures = [];
198
+ // why: one request at a time, so a backend never receives a burst of deletes (R-012).
199
+ for (const row of rows) {
200
+ try {
201
+ await this.#data.delete(schema.module, schema.entity, String(row[primaryKey]));
202
+ }
203
+ catch (error) {
204
+ failures.push(message(error));
205
+ }
206
+ }
207
+ if (failures.length)
208
+ this.#notify.error(failures);
209
+ else
210
+ this.#notify.success(this.#i18n.t('core.module.generic.delete.success'));
211
+ this.reload();
212
+ }
213
+ #tableOption(schema) {
214
+ const deps = this.#data.columnDeps(schema);
215
+ const t = (key) => this.#i18n.t(`core.module.generic.action.${key}`);
216
+ const context = (row, rows) => ({
217
+ schema,
218
+ row,
219
+ rows,
220
+ reload: () => this.reload(),
221
+ });
222
+ // why: a row opens its detail through a link on its first column (update when detail is not allowed); edit
223
+ // lives in the detail screen and delete in the selector, so built-in row commands would only repeat them.
224
+ const target = this.#allowed('detail') ? 'detail' : this.#allowed('update') ? 'update' : null;
225
+ const commands = [];
226
+ for (const action of (this.#entityConfig()?.rowCommands ?? []).filter(item => this.#permission.canCode(item.permission))) {
227
+ commands.push({
228
+ icon: action.icon ?? 'more_horiz',
229
+ title: action.label,
230
+ hidden: row => !(action.visible?.(context(row)) ?? true),
231
+ click: row => void this.runAction(action, { row }),
232
+ });
233
+ }
234
+ const bulk = [];
235
+ if (this.#allowed('delete'))
236
+ bulk.push({
237
+ icon: 'delete',
238
+ color: 'error',
239
+ title: t('delete'),
240
+ click: (rows) => void this.#delete(schema, rows ?? []),
241
+ });
242
+ for (const action of this.#visibleActions(this.#entityConfig()?.bulkActions, context(undefined, []))) {
243
+ bulk.push({
244
+ icon: action.icon,
245
+ title: action.label,
246
+ click: (rows) => void this.runAction(action, { rows: rows ?? [] }),
247
+ });
248
+ }
249
+ return {
250
+ type: 'server',
251
+ key: `sd-generic.${schema.module}.${schema.entity}`,
252
+ rowKey: sdGenericPrimaryKey(schema),
253
+ columns: sdGenericTableColumns(schema, deps, target ? row => this.#open(row, schema, target) : undefined),
254
+ filter: { externalFilters: sdGenericExternalFilters(schema, deps), hideExternalFilterToolbar: true },
255
+ paginate: { pageSize: sdGenericPageSize(schema) },
256
+ ...(schema.list?.export && !this.#permission.hides(schema.module, schema.entity, 'export')
257
+ ? { export: { visible: 'EXCEL', fileName: `${schema.module}-${schema.entity}` } }
258
+ : {}),
259
+ ...(bulk.length ? { selector: { visible: true, actions: bulk } } : {}),
260
+ commands,
261
+ items: async (_filterRequest, pagingReq) => {
262
+ const orders = pagingReq.orders?.length ? pagingReq.orders : (schema.list?.orders ?? []);
263
+ const page = await this.#data.query(schema.module, schema.entity, { ...pagingReq, orders });
264
+ return { items: page.items, total: page.total };
265
+ },
266
+ };
267
+ }
268
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: GenericListPage, deps: [], target: i0.ɵɵFactoryTarget.Component });
269
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: GenericListPage, isStandalone: true, selector: "sd-generic-list-page", providers: [{ provide: SD_GENERIC_LIST_HOST, useExisting: forwardRef(() => GenericListPage) }], viewQueries: [{ propertyName: "table", first: true, predicate: SdTable, descendants: true, isSignal: true }, { propertyName: "importDialog", first: true, predicate: GenericImportDialog, descendants: true, isSignal: true }, { propertyName: "heading", first: true, predicate: ["heading"], descendants: true, isSignal: true }], ngImport: i0, template: "@let current = schema();\n<!-- A page form takes the place of the list, which stays mounted so sd-table keeps its filters, sort and page. -->\n<sd-page class=\"sd-generic-list\" [style.display]=\"pageChildActive() ? 'none' : null\">\n <div headerLeft class=\"d-flex flex-column\">\n <h1 #heading class=\"T20M m-0\" tabindex=\"-1\">{{ title() }}</h1>\n </div>\n <div headerRight class=\"d-flex align-items-center gap-8 flex-wrap\">\n @if (current) {\n @for (action of listActions(); track action.id) {\n <sd-button [title]=\"action.label\" [prefixIcon]=\"action.icon\" (click)=\"runAction(action)\"></sd-button>\n }\n @if (canConfigure()) {\n <sd-button\n data-autoId=\"generic-configuration\"\n type=\"text\"\n prefixIcon=\"settings\"\n [title]=\"'core.module.generic.action.configuration' | sdTranslate\"\n (click)=\"openConfiguration()\"></sd-button>\n }\n @if (canImport()) {\n <sd-button\n data-autoId=\"generic-import\"\n prefixIcon=\"upload_file\"\n [title]=\"'core.module.generic.action.import' | sdTranslate\"\n (click)=\"openImport()\"></sd-button>\n }\n @if (canCreate()) {\n <sd-button\n data-autoId=\"generic-create\"\n type=\"fill\"\n color=\"primary\"\n prefixIcon=\"add\"\n [title]=\"'core.module.generic.action.create' | sdTranslate\"\n (click)=\"create()\"></sd-button>\n }\n }\n </div>\n <div class=\"d-flex flex-column gap-16 p-16\">\n @if (error(); as error) {\n <sd-inform error [title]=\"error\"></sd-inform>\n }\n @if (current) {\n @if (showInvalidBanner()) {\n <sd-inform\n warning\n data-autoId=\"generic-invalid-configuration\"\n [title]=\"'core.module.generic.configuration.invalid' | sdTranslate\"\n [actionLabel]=\"'core.module.generic.configuration.open' | sdTranslate\"\n (sdAction)=\"openConfiguration()\"></sd-inform>\n }\n @if (tableOption(); as option) {\n <sd-table [option]=\"option\"></sd-table>\n }\n }\n </div>\n</sd-page>\n@if (current && canImport()) {\n <sd-generic-import-dialog [schema]=\"current\" (imported)=\"reload()\"></sd-generic-import-dialog>\n}\n<router-outlet (deactivate)=\"onDeactivate()\"></router-outlet>\n", styles: [":host{display:block}h1:focus:not(:focus-visible){outline:none}\n"], dependencies: [{ kind: "directive", type: RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }, { kind: "component", type: SdButton, selector: "sd-button", inputs: ["autoId", "type", "color", "size", "fontSet", "title", "width", "tooltip", "prefixIcon", "suffixIcon", "disabled", "openOnHover", "loading", "block", "htmlType", "indicator", "indicatorColor", "indicatorMax", "indicatorLabel"], outputs: ["click"] }, { kind: "component", type: SdInform, selector: "sd-inform", inputs: ["type", "color", "primary", "secondary", "info", "success", "warning", "error", "title", "description", "icon", "hideIcon", "iconShape", "fontSet", "closable", "actionLabel", "lineClamp", "autoId"], outputs: ["sdClosed", "sdAction"] }, { kind: "component", type: SdPageComponent, selector: "sd-page, sd-page-detail, sd-page-form", inputs: ["title", "description", "noHeader", "backLink", "badges", "width", "aside", "toc"] }, { kind: "component", type: SdTable, selector: "sd-table", inputs: ["autoId", "option", "hideReadError"], outputs: ["sdReadStateChange"] }, { kind: "component", type: GenericImportDialog, selector: "sd-generic-import-dialog", inputs: ["schema"], outputs: ["imported"] }, { kind: "pipe", type: SdTranslatePipe, name: "sdTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
270
+ }
271
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: GenericListPage, decorators: [{
272
+ type: Component,
273
+ args: [{ selector: 'sd-generic-list-page', changeDetection: ChangeDetectionStrategy.OnPush, imports: [RouterOutlet, SdButton, SdInform, SdPageComponent, SdTable, SdTranslatePipe, GenericImportDialog], providers: [{ provide: SD_GENERIC_LIST_HOST, useExisting: forwardRef(() => GenericListPage) }], template: "@let current = schema();\n<!-- A page form takes the place of the list, which stays mounted so sd-table keeps its filters, sort and page. -->\n<sd-page class=\"sd-generic-list\" [style.display]=\"pageChildActive() ? 'none' : null\">\n <div headerLeft class=\"d-flex flex-column\">\n <h1 #heading class=\"T20M m-0\" tabindex=\"-1\">{{ title() }}</h1>\n </div>\n <div headerRight class=\"d-flex align-items-center gap-8 flex-wrap\">\n @if (current) {\n @for (action of listActions(); track action.id) {\n <sd-button [title]=\"action.label\" [prefixIcon]=\"action.icon\" (click)=\"runAction(action)\"></sd-button>\n }\n @if (canConfigure()) {\n <sd-button\n data-autoId=\"generic-configuration\"\n type=\"text\"\n prefixIcon=\"settings\"\n [title]=\"'core.module.generic.action.configuration' | sdTranslate\"\n (click)=\"openConfiguration()\"></sd-button>\n }\n @if (canImport()) {\n <sd-button\n data-autoId=\"generic-import\"\n prefixIcon=\"upload_file\"\n [title]=\"'core.module.generic.action.import' | sdTranslate\"\n (click)=\"openImport()\"></sd-button>\n }\n @if (canCreate()) {\n <sd-button\n data-autoId=\"generic-create\"\n type=\"fill\"\n color=\"primary\"\n prefixIcon=\"add\"\n [title]=\"'core.module.generic.action.create' | sdTranslate\"\n (click)=\"create()\"></sd-button>\n }\n }\n </div>\n <div class=\"d-flex flex-column gap-16 p-16\">\n @if (error(); as error) {\n <sd-inform error [title]=\"error\"></sd-inform>\n }\n @if (current) {\n @if (showInvalidBanner()) {\n <sd-inform\n warning\n data-autoId=\"generic-invalid-configuration\"\n [title]=\"'core.module.generic.configuration.invalid' | sdTranslate\"\n [actionLabel]=\"'core.module.generic.configuration.open' | sdTranslate\"\n (sdAction)=\"openConfiguration()\"></sd-inform>\n }\n @if (tableOption(); as option) {\n <sd-table [option]=\"option\"></sd-table>\n }\n }\n </div>\n</sd-page>\n@if (current && canImport()) {\n <sd-generic-import-dialog [schema]=\"current\" (imported)=\"reload()\"></sd-generic-import-dialog>\n}\n<router-outlet (deactivate)=\"onDeactivate()\"></router-outlet>\n", styles: [":host{display:block}h1:focus:not(:focus-visible){outline:none}\n"] }]
274
+ }], propDecorators: { table: [{ type: i0.ViewChild, args: [i0.forwardRef(() => SdTable), { isSignal: true }] }], importDialog: [{ type: i0.ViewChild, args: [i0.forwardRef(() => GenericImportDialog), { isSignal: true }] }], heading: [{ type: i0.ViewChild, args: ['heading', { isSignal: true }] }] } });
275
+
276
+ export { GenericListPage };
277
+ //# sourceMappingURL=sdcorejs-angular-modules-generic-generic-list.page-qTFKh4UG.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sdcorejs-angular-modules-generic-generic-list.page-qTFKh4UG.mjs","sources":["../../../projects/sdcorejs-angular/modules/generic/src/components/import-dialog/generic-import-dialog.component.ts","../../../projects/sdcorejs-angular/modules/generic/src/components/import-dialog/generic-import-dialog.component.html","../../../projects/sdcorejs-angular/modules/generic/src/pages/list/generic-list.page.ts","../../../projects/sdcorejs-angular/modules/generic/src/pages/list/generic-list.page.html"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, inject, input, output, viewChild } from '@angular/core';\nimport { SdImportExcel, type SdImportExcelOption, type SdImportExcelValidation } from '@sdcorejs/angular/components/import-excel';\nimport { I18nService } from '@sdcorejs/angular/i18n';\nimport { SdNotifyService } from '@sdcorejs/angular/services/notify';\nimport type { SdGenericImportCellError } from '../../core';\nimport type { SdGenericSchema } from '../../models';\nimport { SdGenericImportService } from '../../services';\n\nconst HTML_ESCAPES: Record<string, string> = { '&': '&amp;', '<': '&lt;', '>': '&gt;', '\"': '&quot;', \"'\": '&#39;' };\n\n/** sd-import-excel renders row messages as HTML; spreadsheet and backend text must stay text (ST-002). */\nconst escapeHtml = (text: string): string => text.replace(/[&<>\"']/g, character => HTML_ESCAPES[character]);\n\nconst CELL_MESSAGES: Record<SdGenericImportCellError['code'], string> = {\n 'relation-not-found': 'core.module.generic.import.not-found',\n 'enum-unknown': 'core.module.generic.import.enum-unknown',\n 'number-invalid': 'core.module.generic.import.number-invalid',\n 'match-ambiguous': 'core.module.generic.import.match-ambiguous',\n};\n\n/** Excel import of one entity: template from the import columns, rows saved through `SdGenericImportService`. */\n@Component({\n selector: 'sd-generic-import-dialog',\n templateUrl: './generic-import-dialog.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [SdImportExcel],\n providers: [SdGenericImportService],\n})\nexport class GenericImportDialog {\n readonly schema = input.required<SdGenericSchema>();\n /** Emitted after an import saved at least one row. */\n readonly imported = output<void>();\n\n readonly #importer = inject(SdGenericImportService);\n readonly #notify = inject(SdNotifyService);\n readonly #i18n = inject(I18nService);\n readonly excel = viewChild(SdImportExcel);\n\n readonly option = computed<SdImportExcelOption<Record<string, unknown>>>(() => {\n const schema = this.schema();\n return {\n title: this.#i18n.t('core.module.generic.import.title', { label: schema.general.label }),\n fileName: `${schema.module}-${schema.entity}`,\n columns: this.#importer.columns(schema).map(column => ({\n field: column.key,\n title: column.property.label,\n type: column.property.dataType === 'number' ? ('number' as const) : ('string' as const),\n required: !!column.property.validation?.required,\n ...(column.property.dataType === 'enum'\n ? { description: (column.property.enums ?? []).map(option => option.label).join(', ') }\n : {}),\n })),\n accept: items => this.#accept(schema, items),\n };\n });\n\n open(): void {\n this.excel()?.open();\n }\n\n async #accept(schema: SdGenericSchema, items: Record<string, unknown>[]): Promise<SdImportExcelValidation[]> {\n let validations: SdImportExcelValidation[];\n try {\n const results = await this.#importer.run(schema, items);\n const saved = results.filter(result => result.status !== 'error');\n if (saved.length) {\n const created = saved.filter(result => result.status === 'created').length;\n const updated = saved.length - created;\n this.#notify.success(\n `${this.#i18n.t('core.module.generic.import.created')}: ${created} · ${this.#i18n.t('core.module.generic.import.updated')}: ${updated}`\n );\n this.imported.emit();\n }\n validations = results\n .filter(result => result.status === 'error')\n .map(result => ({\n idx: result.index,\n errorMessage: escapeHtml(result.message ?? result.errors.map(error => this.#cellError(schema, error)).join('; ')),\n }));\n } catch (error) {\n this.#notify.error(error instanceof Error ? error.message : String(error));\n return [];\n }\n // why: sd-import-excel ignores the value returned by `accept`; the row results only show through setValidation.\n this.excel()?.setValidation(validations);\n return validations;\n }\n\n #cellError(schema: SdGenericSchema, error: SdGenericImportCellError): string {\n const label = schema.general.properties.find(property => property.key === error.key)?.label ?? error.key;\n return this.#i18n.t(CELL_MESSAGES[error.code], { label, value: String(error.value) });\n }\n}\n","<sd-import-excel [option]=\"option()\"></sd-import-excel>\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n afterNextRender,\n computed,\n forwardRef,\n inject,\n Injector,\n signal,\n viewChild,\n} from '@angular/core';\nimport { toSignal } from '@angular/core/rxjs-interop';\nimport { ActivatedRoute, Router, RouterOutlet } from '@angular/router';\nimport { SdButton } from '@sdcorejs/angular/components/button';\nimport { SdInform } from '@sdcorejs/angular/components/inform';\nimport { SdTable, type SdTableCommand, type SdTableOption } from '@sdcorejs/angular/components/table';\nimport { I18nService, SdTranslatePipe } from '@sdcorejs/angular/i18n';\nimport { SdPageComponent } from '@sdcorejs/angular/modules/layout';\nimport { SdConfirmService } from '@sdcorejs/angular/services/confirm';\nimport { SdNotifyService } from '@sdcorejs/angular/services/notify';\nimport { map } from 'rxjs';\nimport { GenericImportDialog } from '../../components/import-dialog/generic-import-dialog.component';\nimport { sdGenericExternalFilters, sdGenericPageSize, sdGenericPrimaryKey, sdGenericRenderTitle, sdGenericTableColumns } from '../../core';\nimport type {\n SdGenericActionContext,\n SdGenericCustomAction,\n SdGenericDisplay,\n SdGenericFormAction,\n SdGenericRecord,\n SdGenericSchema,\n} from '../../models';\nimport { SD_GENERIC_LIST_HOST, SD_GENERIC_SCOPE, type SdGenericListHost } from '../../registry';\nimport type { SdGenericRouteData } from '../../routes/generic-route.guards';\nimport { SdGenericDataService, SdGenericPermissionService } from '../../services';\n\ntype SelectorAction = NonNullable<NonNullable<SdTableOption<SdGenericRecord>['selector']>['actions']>[number];\n\nconst message = (error: unknown) => (error instanceof Error ? error.message : String(error));\n\n/**\n * List of one entity: sd-table driven by the effective schema, built-in and custom actions, and an outlet for\n * create / detail / update. The page stays mounted while a side drawer is open, so sd-table keeps its filters.\n */\n@Component({\n selector: 'sd-generic-list-page',\n templateUrl: './generic-list.page.html',\n styleUrl: './generic-list.page.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [RouterOutlet, SdButton, SdInform, SdPageComponent, SdTable, SdTranslatePipe, GenericImportDialog],\n providers: [{ provide: SD_GENERIC_LIST_HOST, useExisting: forwardRef(() => GenericListPage) }],\n})\nexport class GenericListPage implements SdGenericListHost {\n readonly #route = inject(ActivatedRoute);\n readonly #router = inject(Router);\n readonly #data = inject(SdGenericDataService);\n readonly #permission = inject(SdGenericPermissionService);\n readonly #scope = inject(SD_GENERIC_SCOPE);\n readonly #confirm = inject(SdConfirmService);\n readonly #notify = inject(SdNotifyService);\n readonly #i18n = inject(I18nService);\n\n readonly generic = toSignal(this.#route.data.pipe(map(data => data['generic'] as SdGenericRouteData | undefined)), {\n initialValue: this.#route.snapshot.data['generic'] as SdGenericRouteData | undefined,\n });\n readonly schema = computed(() => this.generic()?.resolved?.schema ?? null);\n readonly error = computed(() => this.generic()?.error ?? null);\n readonly #entityConfig = computed(() => {\n const generic = this.generic();\n return generic ? this.#scope.entity(generic.module, generic.entity) : undefined;\n });\n readonly title = computed(() => {\n const schema = this.schema();\n if (!schema) return this.generic()?.entity ?? '';\n return schema.list?.title\n ? sdGenericRenderTitle(schema.list.title)\n : this.#i18n.t('core.module.generic.title.list', { label: schema.general.label });\n });\n readonly canCreate = computed(() => this.#allowed('create'));\n readonly canImport = computed(() => this.#allowed('import'));\n readonly canConfigure = computed(() => {\n const generic = this.generic();\n return !!generic && this.#permission.can(generic.module, generic.entity, 'configuration');\n });\n /** Shown only to users who can fix the configuration (AC-007). */\n readonly showInvalidBanner = computed(() => !!this.generic()?.resolved?.invalid && this.canConfigure());\n readonly listActions = computed(() => {\n const schema = this.schema();\n return schema ? this.#visibleActions(this.#entityConfig()?.listActions, { schema, reload: () => this.reload() }) : [];\n });\n /** A form shown as a full page takes the place of the list; the list stays mounted (filters, sort, page). */\n readonly pageChildActive = signal(false);\n readonly tableOption = computed(() => {\n const schema = this.schema();\n return schema ? this.#tableOption(schema) : null;\n });\n readonly table = viewChild(SdTable);\n readonly importDialog = viewChild(GenericImportDialog);\n readonly heading = viewChild<ElementRef<HTMLElement>>('heading');\n readonly #injector = inject(Injector);\n\n reload(): void {\n void this.table()?.reload(true, false);\n }\n\n setFormDisplay(display: SdGenericDisplay): void {\n this.pageChildActive.set(display === 'page');\n }\n\n onDeactivate(): void {\n this.pageChildActive.set(false);\n // why: the closed form held the focus; hand it to the list heading instead of losing it to <body>.\n afterNextRender(() => this.heading()?.nativeElement.focus(), { injector: this.#injector });\n }\n\n create(): void {\n void this.#router.navigate(['create'], { relativeTo: this.#route });\n }\n\n openImport(): void {\n this.importDialog()?.open();\n }\n\n openConfiguration(): void {\n void this.#router.navigate(['configuration'], { relativeTo: this.#route });\n }\n\n async runAction(action: SdGenericCustomAction, context: Omit<SdGenericActionContext, 'schema' | 'reload'> = {}): Promise<void> {\n const schema = this.schema();\n if (!schema) return;\n try {\n await action.run({ ...context, schema, reload: () => this.reload() });\n } catch (error) {\n this.#notify.error(message(error));\n }\n }\n\n #allowed(action: 'create' | 'import' | 'detail' | 'update' | 'delete'): boolean {\n const generic = this.generic();\n return !!generic && this.#permission.allows(generic.module, generic.entity, action);\n }\n\n #visibleActions(actions: SdGenericCustomAction[] | undefined, context: SdGenericActionContext): SdGenericCustomAction[] {\n return (actions ?? []).filter(action => this.#permission.canCode(action.permission) && (action.visible?.(context) ?? true));\n }\n\n #open(row: SdGenericRecord, schema: SdGenericSchema, action: SdGenericFormAction): void {\n void this.#router.navigate([String(row[sdGenericPrimaryKey(schema)]), action], { relativeTo: this.#route });\n }\n\n async #delete(schema: SdGenericSchema, rows: SdGenericRecord[]): Promise<void> {\n const confirmMessage =\n rows.length === 1\n ? this.#i18n.t('core.module.generic.delete.confirm')\n : this.#i18n.t('core.module.generic.delete.confirm-many', { count: rows.length });\n try {\n await this.#confirm.confirm(confirmMessage, { title: this.#i18n.t('core.module.generic.delete.title'), yesButtonColor: 'error' });\n } catch {\n return;\n }\n const primaryKey = sdGenericPrimaryKey(schema);\n const failures: string[] = [];\n // why: one request at a time, so a backend never receives a burst of deletes (R-012).\n for (const row of rows) {\n try {\n await this.#data.delete(schema.module, schema.entity, String(row[primaryKey]));\n } catch (error) {\n failures.push(message(error));\n }\n }\n if (failures.length) this.#notify.error(failures);\n else this.#notify.success(this.#i18n.t('core.module.generic.delete.success'));\n this.reload();\n }\n\n #tableOption(schema: SdGenericSchema): SdTableOption<SdGenericRecord> {\n const deps = this.#data.columnDeps(schema);\n const t = (key: string) => this.#i18n.t(`core.module.generic.action.${key}`);\n const context = (row?: SdGenericRecord, rows?: SdGenericRecord[]): SdGenericActionContext => ({\n schema,\n row,\n rows,\n reload: () => this.reload(),\n });\n // why: a row opens its detail through a link on its first column (update when detail is not allowed); edit\n // lives in the detail screen and delete in the selector, so built-in row commands would only repeat them.\n const target: SdGenericFormAction | null = this.#allowed('detail') ? 'detail' : this.#allowed('update') ? 'update' : null;\n const commands: SdTableCommand<SdGenericRecord>[] = [];\n for (const action of (this.#entityConfig()?.rowCommands ?? []).filter(item => this.#permission.canCode(item.permission))) {\n commands.push({\n icon: action.icon ?? 'more_horiz',\n title: action.label,\n hidden: row => !(action.visible?.(context(row)) ?? true),\n click: row => void this.runAction(action, { row }),\n });\n }\n const bulk: SelectorAction[] = [];\n if (this.#allowed('delete'))\n bulk.push({\n icon: 'delete',\n color: 'error',\n title: t('delete'),\n click: (rows?: SdGenericRecord[]) => void this.#delete(schema, rows ?? []),\n });\n for (const action of this.#visibleActions(this.#entityConfig()?.bulkActions, context(undefined, []))) {\n bulk.push({\n icon: action.icon,\n title: action.label,\n click: (rows?: SdGenericRecord[]) => void this.runAction(action, { rows: rows ?? [] }),\n });\n }\n return {\n type: 'server',\n key: `sd-generic.${schema.module}.${schema.entity}`,\n rowKey: sdGenericPrimaryKey(schema),\n columns: sdGenericTableColumns(schema, deps, target ? row => this.#open(row, schema, target) : undefined),\n filter: { externalFilters: sdGenericExternalFilters(schema, deps), hideExternalFilterToolbar: true },\n paginate: { pageSize: sdGenericPageSize(schema) },\n ...(schema.list?.export && !this.#permission.hides(schema.module, schema.entity, 'export')\n ? { export: { visible: 'EXCEL' as const, fileName: `${schema.module}-${schema.entity}` } }\n : {}),\n ...(bulk.length ? { selector: { visible: true, actions: bulk } } : {}),\n commands,\n items: async (_filterRequest, pagingReq) => {\n const orders = pagingReq.orders?.length ? pagingReq.orders : (schema.list?.orders ?? []);\n const page = await this.#data.query(schema.module, schema.entity, { ...pagingReq, orders });\n return { items: page.items, total: page.total };\n },\n };\n }\n}\n","@let current = schema();\n<!-- A page form takes the place of the list, which stays mounted so sd-table keeps its filters, sort and page. -->\n<sd-page class=\"sd-generic-list\" [style.display]=\"pageChildActive() ? 'none' : null\">\n <div headerLeft class=\"d-flex flex-column\">\n <h1 #heading class=\"T20M m-0\" tabindex=\"-1\">{{ title() }}</h1>\n </div>\n <div headerRight class=\"d-flex align-items-center gap-8 flex-wrap\">\n @if (current) {\n @for (action of listActions(); track action.id) {\n <sd-button [title]=\"action.label\" [prefixIcon]=\"action.icon\" (click)=\"runAction(action)\"></sd-button>\n }\n @if (canConfigure()) {\n <sd-button\n data-autoId=\"generic-configuration\"\n type=\"text\"\n prefixIcon=\"settings\"\n [title]=\"'core.module.generic.action.configuration' | sdTranslate\"\n (click)=\"openConfiguration()\"></sd-button>\n }\n @if (canImport()) {\n <sd-button\n data-autoId=\"generic-import\"\n prefixIcon=\"upload_file\"\n [title]=\"'core.module.generic.action.import' | sdTranslate\"\n (click)=\"openImport()\"></sd-button>\n }\n @if (canCreate()) {\n <sd-button\n data-autoId=\"generic-create\"\n type=\"fill\"\n color=\"primary\"\n prefixIcon=\"add\"\n [title]=\"'core.module.generic.action.create' | sdTranslate\"\n (click)=\"create()\"></sd-button>\n }\n }\n </div>\n <div class=\"d-flex flex-column gap-16 p-16\">\n @if (error(); as error) {\n <sd-inform error [title]=\"error\"></sd-inform>\n }\n @if (current) {\n @if (showInvalidBanner()) {\n <sd-inform\n warning\n data-autoId=\"generic-invalid-configuration\"\n [title]=\"'core.module.generic.configuration.invalid' | sdTranslate\"\n [actionLabel]=\"'core.module.generic.configuration.open' | sdTranslate\"\n (sdAction)=\"openConfiguration()\"></sd-inform>\n }\n @if (tableOption(); as option) {\n <sd-table [option]=\"option\"></sd-table>\n }\n }\n </div>\n</sd-page>\n@if (current && canImport()) {\n <sd-generic-import-dialog [schema]=\"current\" (imported)=\"reload()\"></sd-generic-import-dialog>\n}\n<router-outlet (deactivate)=\"onDeactivate()\"></router-outlet>\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAQA,MAAM,YAAY,GAA2B,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,EAAE,OAAO,EAAE;AAEpH;AACA,MAAM,UAAU,GAAG,CAAC,IAAY,KAAa,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,SAAS,IAAI,YAAY,CAAC,SAAS,CAAC,CAAC;AAE3G,MAAM,aAAa,GAAqD;AACtE,IAAA,oBAAoB,EAAE,sCAAsC;AAC5D,IAAA,cAAc,EAAE,yCAAyC;AACzD,IAAA,gBAAgB,EAAE,2CAA2C;AAC7D,IAAA,iBAAiB,EAAE,4CAA4C;CAChE;AAED;MAQa,mBAAmB,CAAA;AACrB,IAAA,MAAM,GAAG,KAAK,CAAC,QAAQ,4EAAmB;;IAE1C,QAAQ,GAAG,MAAM,EAAQ;AAEzB,IAAA,SAAS,GAAG,MAAM,CAAC,sBAAsB,CAAC;AAC1C,IAAA,OAAO,GAAG,MAAM,CAAC,eAAe,CAAC;AACjC,IAAA,KAAK,GAAG,MAAM,CAAC,WAAW,CAAC;AAC3B,IAAA,KAAK,GAAG,SAAS,CAAC,aAAa,4EAAC;AAEhC,IAAA,MAAM,GAAG,QAAQ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