@sdcorejs/angular 22.3.5 → 22.3.6

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 (235) hide show
  1. package/assets/STYLE-GUIDE.md +78 -1
  2. package/assets/THEME.md +45 -3
  3. package/assets/scss/core/_popover-panel.scss +90 -0
  4. package/assets/scss/core/form.scss +5 -2
  5. package/assets/scss/core/utilities/_grid.scss +15 -0
  6. package/assets/scss/core/utilities/_sizing.scss +4 -0
  7. package/assets/scss/themes/_component-tokens.scss +9 -4
  8. package/assets/scss/themes/_semantic.scss +6 -5
  9. package/fesm2022/sdcorejs-angular-components-anchor.mjs +64 -3
  10. package/fesm2022/sdcorejs-angular-components-anchor.mjs.map +1 -1
  11. package/fesm2022/sdcorejs-angular-components-button.mjs +14 -6
  12. package/fesm2022/sdcorejs-angular-components-button.mjs.map +1 -1
  13. package/fesm2022/sdcorejs-angular-components-calendar.mjs +2565 -0
  14. package/fesm2022/sdcorejs-angular-components-calendar.mjs.map +1 -0
  15. package/fesm2022/sdcorejs-angular-components-card.mjs +521 -23
  16. package/fesm2022/sdcorejs-angular-components-card.mjs.map +1 -1
  17. package/fesm2022/sdcorejs-angular-components-editor-engine.mjs +1 -1
  18. package/fesm2022/sdcorejs-angular-components-editor-engine.mjs.map +1 -1
  19. package/fesm2022/sdcorejs-angular-components-file-explorer.mjs +4 -18
  20. package/fesm2022/sdcorejs-angular-components-file-explorer.mjs.map +1 -1
  21. package/fesm2022/sdcorejs-angular-components-form-generic.mjs +7 -7
  22. package/fesm2022/sdcorejs-angular-components-form-generic.mjs.map +1 -1
  23. package/fesm2022/sdcorejs-angular-components-import-excel.mjs +1 -1
  24. package/fesm2022/sdcorejs-angular-components-import-excel.mjs.map +1 -1
  25. package/fesm2022/sdcorejs-angular-components-kanban.mjs +849 -157
  26. package/fesm2022/sdcorejs-angular-components-kanban.mjs.map +1 -1
  27. package/fesm2022/sdcorejs-angular-components-modal.mjs +23 -7
  28. package/fesm2022/sdcorejs-angular-components-modal.mjs.map +1 -1
  29. package/fesm2022/sdcorejs-angular-components-query-bar.mjs +1362 -229
  30. package/fesm2022/sdcorejs-angular-components-query-bar.mjs.map +1 -1
  31. package/fesm2022/sdcorejs-angular-components-quick-action.mjs +78 -2
  32. package/fesm2022/sdcorejs-angular-components-quick-action.mjs.map +1 -1
  33. package/fesm2022/sdcorejs-angular-components-scheduler.mjs +2006 -0
  34. package/fesm2022/sdcorejs-angular-components-scheduler.mjs.map +1 -0
  35. package/fesm2022/sdcorejs-angular-components-side-drawer.mjs +2 -2
  36. package/fesm2022/sdcorejs-angular-components-side-drawer.mjs.map +1 -1
  37. package/fesm2022/sdcorejs-angular-components-tab-router.mjs +126 -26
  38. package/fesm2022/sdcorejs-angular-components-tab-router.mjs.map +1 -1
  39. package/fesm2022/sdcorejs-angular-components-tab.mjs +31 -2
  40. package/fesm2022/sdcorejs-angular-components-tab.mjs.map +1 -1
  41. package/fesm2022/sdcorejs-angular-components-table.mjs +619 -108
  42. package/fesm2022/sdcorejs-angular-components-table.mjs.map +1 -1
  43. package/fesm2022/sdcorejs-angular-components-timeline.mjs +501 -0
  44. package/fesm2022/sdcorejs-angular-components-timeline.mjs.map +1 -0
  45. package/fesm2022/sdcorejs-angular-components-tree.mjs +613 -36
  46. package/fesm2022/sdcorejs-angular-components-tree.mjs.map +1 -1
  47. package/fesm2022/sdcorejs-angular-components-upload-file.mjs +2 -4
  48. package/fesm2022/sdcorejs-angular-components-upload-file.mjs.map +1 -1
  49. package/fesm2022/sdcorejs-angular-components.mjs +3 -1
  50. package/fesm2022/sdcorejs-angular-components.mjs.map +1 -1
  51. package/fesm2022/sdcorejs-angular-directives.mjs +110 -22
  52. package/fesm2022/sdcorejs-angular-directives.mjs.map +1 -1
  53. package/fesm2022/sdcorejs-angular-forms-date.mjs +142 -43
  54. package/fesm2022/sdcorejs-angular-forms-date.mjs.map +1 -1
  55. package/fesm2022/sdcorejs-angular-forms-datetime.mjs +71 -22
  56. package/fesm2022/sdcorejs-angular-forms-datetime.mjs.map +1 -1
  57. package/fesm2022/sdcorejs-angular-forms-directives.mjs +4 -3
  58. package/fesm2022/sdcorejs-angular-forms-directives.mjs.map +1 -1
  59. package/fesm2022/sdcorejs-angular-forms-entity-picker.mjs +1 -1
  60. package/fesm2022/sdcorejs-angular-forms-entity-picker.mjs.map +1 -1
  61. package/fesm2022/sdcorejs-angular-forms-tree-select.mjs +1 -1
  62. package/fesm2022/sdcorejs-angular-forms-tree-select.mjs.map +1 -1
  63. package/fesm2022/sdcorejs-angular-i18n.mjs +622 -52
  64. package/fesm2022/sdcorejs-angular-i18n.mjs.map +1 -1
  65. package/fesm2022/{sdcorejs-angular-modules-generic-generic-configuration.page-SJIWI1dX.mjs → sdcorejs-angular-modules-generic-generic-configuration.page-j_thIw4L.mjs} +3 -3
  66. package/fesm2022/{sdcorejs-angular-modules-generic-generic-configuration.page-SJIWI1dX.mjs.map → sdcorejs-angular-modules-generic-generic-configuration.page-j_thIw4L.mjs.map} +1 -1
  67. package/fesm2022/{sdcorejs-angular-modules-generic-generic-form-host.page-BPhMLVbv.mjs → sdcorejs-angular-modules-generic-generic-form-host.page-DLsJ_8NR.mjs} +2 -2
  68. package/fesm2022/{sdcorejs-angular-modules-generic-generic-form-host.page-BPhMLVbv.mjs.map → sdcorejs-angular-modules-generic-generic-form-host.page-DLsJ_8NR.mjs.map} +1 -1
  69. package/fesm2022/{sdcorejs-angular-modules-generic-generic-list.page-aGhowe9Y.mjs → sdcorejs-angular-modules-generic-generic-list.page-CkYR7Y-b.mjs} +3 -3
  70. package/fesm2022/{sdcorejs-angular-modules-generic-generic-list.page-aGhowe9Y.mjs.map → sdcorejs-angular-modules-generic-generic-list.page-CkYR7Y-b.mjs.map} +1 -1
  71. package/fesm2022/{sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-N8_oGpqD.mjs → sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-Ddytu3Gb.mjs} +4 -4
  72. package/fesm2022/{sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-N8_oGpqD.mjs.map → sdcorejs-angular-modules-generic-sdcorejs-angular-modules-generic-Ddytu3Gb.mjs.map} +1 -1
  73. package/fesm2022/sdcorejs-angular-modules-generic.mjs +1 -1
  74. package/fesm2022/sdcorejs-angular-modules-layout.mjs +7 -2
  75. package/fesm2022/sdcorejs-angular-modules-layout.mjs.map +1 -1
  76. package/fesm2022/{sdcorejs-angular-modules-pattern-base-api.service-C2o5xPVB.mjs → sdcorejs-angular-modules-pattern-base-api.service-vMdkWmw-.mjs} +2 -2
  77. package/fesm2022/{sdcorejs-angular-modules-pattern-base-api.service-C2o5xPVB.mjs.map → sdcorejs-angular-modules-pattern-base-api.service-vMdkWmw-.mjs.map} +1 -1
  78. package/fesm2022/{sdcorejs-angular-modules-pattern-create.component-RBvVv88D.mjs → sdcorejs-angular-modules-pattern-create.component--cdb_2ub.mjs} +11 -7
  79. package/fesm2022/sdcorejs-angular-modules-pattern-create.component--cdb_2ub.mjs.map +1 -0
  80. package/fesm2022/{sdcorejs-angular-modules-pattern-create.component-CxicczH7.mjs → sdcorejs-angular-modules-pattern-create.component-BmKRynOI.mjs} +2 -2
  81. package/fesm2022/{sdcorejs-angular-modules-pattern-create.component-CxicczH7.mjs.map → sdcorejs-angular-modules-pattern-create.component-BmKRynOI.mjs.map} +1 -1
  82. package/fesm2022/{sdcorejs-angular-modules-pattern-create.component-D3MzNJ3F.mjs → sdcorejs-angular-modules-pattern-create.component-DoilYt0j.mjs} +2 -2
  83. package/fesm2022/{sdcorejs-angular-modules-pattern-create.component-D3MzNJ3F.mjs.map → sdcorejs-angular-modules-pattern-create.component-DoilYt0j.mjs.map} +1 -1
  84. package/fesm2022/{sdcorejs-angular-modules-pattern-customer.service-3hWkJClX.mjs → sdcorejs-angular-modules-pattern-customer.service-DpPC-tV2.mjs} +2 -2
  85. package/fesm2022/{sdcorejs-angular-modules-pattern-customer.service-3hWkJClX.mjs.map → sdcorejs-angular-modules-pattern-customer.service-DpPC-tV2.mjs.map} +1 -1
  86. package/fesm2022/{sdcorejs-angular-modules-pattern-detail.component-CcpYULut.mjs → sdcorejs-angular-modules-pattern-detail.component-Bh_rvQnq.mjs} +61 -55
  87. package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-Bh_rvQnq.mjs.map +1 -0
  88. package/fesm2022/{sdcorejs-angular-modules-pattern-detail.component-CEhbU12j.mjs → sdcorejs-angular-modules-pattern-detail.component-Dk1bomUT.mjs} +2 -2
  89. package/fesm2022/{sdcorejs-angular-modules-pattern-detail.component-CEhbU12j.mjs.map → sdcorejs-angular-modules-pattern-detail.component-Dk1bomUT.mjs.map} +1 -1
  90. package/fesm2022/{sdcorejs-angular-modules-pattern-flow.component-G5lHfG81.mjs → sdcorejs-angular-modules-pattern-flow.component-BarNCjsh.mjs} +3 -3
  91. package/fesm2022/{sdcorejs-angular-modules-pattern-flow.component-G5lHfG81.mjs.map → sdcorejs-angular-modules-pattern-flow.component-BarNCjsh.mjs.map} +1 -1
  92. package/fesm2022/{sdcorejs-angular-modules-pattern-index.component-CosbQK0W.mjs → sdcorejs-angular-modules-pattern-index.component--rIi-QIQ.mjs} +2 -2
  93. package/fesm2022/{sdcorejs-angular-modules-pattern-index.component-CosbQK0W.mjs.map → sdcorejs-angular-modules-pattern-index.component--rIi-QIQ.mjs.map} +1 -1
  94. package/fesm2022/{sdcorejs-angular-modules-pattern-lines-table-form.component-DmmVKrgM.mjs → sdcorejs-angular-modules-pattern-lines-table-form.component-G9Li--QF.mjs} +5 -5
  95. package/fesm2022/{sdcorejs-angular-modules-pattern-lines-table-form.component-DmmVKrgM.mjs.map → sdcorejs-angular-modules-pattern-lines-table-form.component-G9Li--QF.mjs.map} +1 -1
  96. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-2AZxTu9a.mjs +522 -0
  97. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-2AZxTu9a.mjs.map +1 -0
  98. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CDM4V05g.mjs +520 -0
  99. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CDM4V05g.mjs.map +1 -0
  100. package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-C_pVqRcC.mjs → sdcorejs-angular-modules-pattern-list.component-DS9DROp-.mjs} +3 -3
  101. package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-C_pVqRcC.mjs.map → sdcorejs-angular-modules-pattern-list.component-DS9DROp-.mjs.map} +1 -1
  102. package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-CNVqk3JC.mjs → sdcorejs-angular-modules-pattern-list.component-DbF9z3da.mjs} +30 -39
  103. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-DbF9z3da.mjs.map +1 -0
  104. package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-EaNDEtCn.mjs → sdcorejs-angular-modules-pattern-list.component-DlF3i6ai.mjs} +3 -3
  105. package/fesm2022/{sdcorejs-angular-modules-pattern-list.component-EaNDEtCn.mjs.map → sdcorejs-angular-modules-pattern-list.component-DlF3i6ai.mjs.map} +1 -1
  106. package/fesm2022/{sdcorejs-angular-modules-pattern-mock-backend.factory-CFljqhjv.mjs → sdcorejs-angular-modules-pattern-mock-backend.factory-BpECki9p.mjs} +2 -2
  107. package/fesm2022/{sdcorejs-angular-modules-pattern-mock-backend.factory-CFljqhjv.mjs.map → sdcorejs-angular-modules-pattern-mock-backend.factory-BpECki9p.mjs.map} +1 -1
  108. package/fesm2022/{sdcorejs-angular-modules-pattern-pattern-source-viewer-BqHwKfoc.mjs → sdcorejs-angular-modules-pattern-pattern-source-viewer-DuhyXsGn.mjs} +4 -22
  109. package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source-viewer-DuhyXsGn.mjs.map +1 -0
  110. package/fesm2022/{sdcorejs-angular-modules-pattern-pattern-source.generated-CIiLOizq.mjs → sdcorejs-angular-modules-pattern-pattern-source.generated-bfpj85ke.mjs} +26 -27
  111. package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source.generated-bfpj85ke.mjs.map +1 -0
  112. package/fesm2022/{sdcorejs-angular-modules-pattern-product.service-DitXmlr1.mjs → sdcorejs-angular-modules-pattern-product.service-DEAQ4oro.mjs} +2 -2
  113. package/fesm2022/{sdcorejs-angular-modules-pattern-product.service-DitXmlr1.mjs.map → sdcorejs-angular-modules-pattern-product.service-DEAQ4oro.mjs.map} +1 -1
  114. package/fesm2022/{sdcorejs-angular-modules-pattern-profile.component-Dxw7Ix9d.mjs → sdcorejs-angular-modules-pattern-profile.component-D-dJk5vb.mjs} +27 -14
  115. package/fesm2022/sdcorejs-angular-modules-pattern-profile.component-D-dJk5vb.mjs.map +1 -0
  116. package/fesm2022/{sdcorejs-angular-modules-pattern-routes-BxXgJVsW.mjs → sdcorejs-angular-modules-pattern-routes-Brr61WQo.mjs} +4 -4
  117. package/fesm2022/{sdcorejs-angular-modules-pattern-routes-BxXgJVsW.mjs.map → sdcorejs-angular-modules-pattern-routes-Brr61WQo.mjs.map} +1 -1
  118. package/fesm2022/{sdcorejs-angular-modules-pattern-routes-CWixJ2If.mjs → sdcorejs-angular-modules-pattern-routes-CPVcXcfq.mjs} +3 -3
  119. package/fesm2022/{sdcorejs-angular-modules-pattern-routes-CWixJ2If.mjs.map → sdcorejs-angular-modules-pattern-routes-CPVcXcfq.mjs.map} +1 -1
  120. package/fesm2022/{sdcorejs-angular-modules-pattern-routes-w4VY9P_H.mjs → sdcorejs-angular-modules-pattern-routes-CWCtuZ4z.mjs} +8 -8
  121. package/fesm2022/{sdcorejs-angular-modules-pattern-routes-w4VY9P_H.mjs.map → sdcorejs-angular-modules-pattern-routes-CWCtuZ4z.mjs.map} +1 -1
  122. package/fesm2022/{sdcorejs-angular-modules-pattern-routes-BOiWZHqg.mjs → sdcorejs-angular-modules-pattern-routes-CfXmYmCp.mjs} +3 -3
  123. package/fesm2022/{sdcorejs-angular-modules-pattern-routes-BOiWZHqg.mjs.map → sdcorejs-angular-modules-pattern-routes-CfXmYmCp.mjs.map} +1 -1
  124. package/fesm2022/sdcorejs-angular-modules-pattern-routes-CuDWVZ4I.mjs +56 -0
  125. package/fesm2022/sdcorejs-angular-modules-pattern-routes-CuDWVZ4I.mjs.map +1 -0
  126. package/fesm2022/{sdcorejs-angular-modules-pattern-routes-CJ-RAMa5.mjs → sdcorejs-angular-modules-pattern-routes-D8W_NHEH.mjs} +5 -5
  127. package/fesm2022/{sdcorejs-angular-modules-pattern-routes-CJ-RAMa5.mjs.map → sdcorejs-angular-modules-pattern-routes-D8W_NHEH.mjs.map} +1 -1
  128. package/fesm2022/sdcorejs-angular-modules-pattern-routes-Db0ceW1C.mjs +66 -0
  129. package/fesm2022/sdcorejs-angular-modules-pattern-routes-Db0ceW1C.mjs.map +1 -0
  130. package/fesm2022/{sdcorejs-angular-modules-pattern-routes-C43Q4Wtq.mjs → sdcorejs-angular-modules-pattern-routes-DdmOGRpF.mjs} +3 -3
  131. package/fesm2022/{sdcorejs-angular-modules-pattern-routes-C43Q4Wtq.mjs.map → sdcorejs-angular-modules-pattern-routes-DdmOGRpF.mjs.map} +1 -1
  132. package/fesm2022/{sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-BQCWgQsr.mjs → sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-JWx3RaLo.mjs} +12 -12
  133. package/fesm2022/{sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-BQCWgQsr.mjs.map → sdcorejs-angular-modules-pattern-sdcorejs-angular-modules-pattern-JWx3RaLo.mjs.map} +1 -1
  134. package/fesm2022/{sdcorejs-angular-modules-pattern-shell.component-BOjJteMd.mjs → sdcorejs-angular-modules-pattern-shell.component-DMJpUhpn.mjs} +4 -4
  135. package/fesm2022/{sdcorejs-angular-modules-pattern-shell.component-BOjJteMd.mjs.map → sdcorejs-angular-modules-pattern-shell.component-DMJpUhpn.mjs.map} +1 -1
  136. package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-BHDd7D8y.mjs +498 -0
  137. package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-BHDd7D8y.mjs.map +1 -0
  138. package/fesm2022/{sdcorejs-angular-modules-pattern-update.component-lGwicZKW.mjs → sdcorejs-angular-modules-pattern-update.component-Bx2zgc86.mjs} +2 -2
  139. package/fesm2022/{sdcorejs-angular-modules-pattern-update.component-lGwicZKW.mjs.map → sdcorejs-angular-modules-pattern-update.component-Bx2zgc86.mjs.map} +1 -1
  140. package/fesm2022/{sdcorejs-angular-modules-pattern-update.component-CS3jlV-R.mjs → sdcorejs-angular-modules-pattern-update.component-Cb29tp1H.mjs} +2 -2
  141. package/fesm2022/{sdcorejs-angular-modules-pattern-update.component-CS3jlV-R.mjs.map → sdcorejs-angular-modules-pattern-update.component-Cb29tp1H.mjs.map} +1 -1
  142. package/fesm2022/{sdcorejs-angular-modules-pattern-update.component-CUgQPcR4.mjs → sdcorejs-angular-modules-pattern-update.component-e5BaHrDk.mjs} +9 -6
  143. package/fesm2022/sdcorejs-angular-modules-pattern-update.component-e5BaHrDk.mjs.map +1 -0
  144. package/fesm2022/sdcorejs-angular-modules-pattern.mjs +1 -1
  145. package/fesm2022/sdcorejs-angular-services-confirm.mjs +171 -158
  146. package/fesm2022/sdcorejs-angular-services-confirm.mjs.map +1 -1
  147. package/fesm2022/sdcorejs-angular-services-query-params.mjs +227 -0
  148. package/fesm2022/sdcorejs-angular-services-query-params.mjs.map +1 -0
  149. package/fesm2022/sdcorejs-angular-utilities-extensions.mjs +24 -1
  150. package/fesm2022/sdcorejs-angular-utilities-extensions.mjs.map +1 -1
  151. package/modules/pattern/README.md +5 -4
  152. package/modules/pattern/docs/detail.md +18 -9
  153. package/modules/pattern/docs/drawer.md +185 -83
  154. package/modules/pattern/docs/header-actions.md +1 -1
  155. package/modules/pattern/docs/list.md +3 -3
  156. package/modules/pattern/docs/states.md +1 -1
  157. package/modules/pattern/features/category/components/create-side-drawer/create-side-drawer.component.ts +12 -16
  158. package/modules/pattern/features/category/components/update-side-drawer/update-side-drawer.component.ts +58 -29
  159. package/modules/pattern/features/category/pages/list/list.component.html +11 -3
  160. package/modules/pattern/features/category/pages/list/list.component.ts +36 -10
  161. package/modules/pattern/features/category/routes.ts +5 -22
  162. package/modules/pattern/features/customer/components/create-side-drawer/create-side-drawer.component.ts +7 -11
  163. package/modules/pattern/features/customer/components/detail-side-drawer/detail-side-drawer.component.ts +70 -27
  164. package/modules/pattern/features/customer/components/summary-cards/summary-cards.component.ts +9 -53
  165. package/modules/pattern/features/customer/components/update-side-drawer/update-side-drawer.component.ts +53 -19
  166. package/modules/pattern/features/customer/entity.resolver.ts +1 -1
  167. package/modules/pattern/features/customer/pages/list/list.component.html +18 -3
  168. package/modules/pattern/features/customer/pages/list/list.component.ts +43 -16
  169. package/modules/pattern/features/customer/pages/profile/profile.component.ts +17 -8
  170. package/modules/pattern/features/customer/routes.ts +6 -27
  171. package/modules/pattern/features/order/components/approval-steps/approval-steps.component.ts +37 -56
  172. package/modules/pattern/features/order/components/summary-cards/summary-cards.component.ts +14 -76
  173. package/modules/pattern/features/order/pages/create/create.component.ts +7 -3
  174. package/modules/pattern/features/order/pages/detail/detail.component.ts +1 -1
  175. package/modules/pattern/features/order/pages/update/update.component.ts +5 -2
  176. package/package.json +17 -5
  177. package/types/sdcorejs-angular-components-anchor.d.ts +6 -1
  178. package/types/sdcorejs-angular-components-button.d.ts +7 -1
  179. package/types/sdcorejs-angular-components-calendar.d.ts +1092 -0
  180. package/types/sdcorejs-angular-components-card.d.ts +247 -9
  181. package/types/sdcorejs-angular-components-kanban.d.ts +191 -74
  182. package/types/sdcorejs-angular-components-modal.d.ts +10 -1
  183. package/types/sdcorejs-angular-components-query-bar.d.ts +176 -36
  184. package/types/sdcorejs-angular-components-quick-action.d.ts +65 -1
  185. package/types/sdcorejs-angular-components-scheduler.d.ts +544 -0
  186. package/types/sdcorejs-angular-components-tab.d.ts +6 -1
  187. package/types/sdcorejs-angular-components-table.d.ts +56 -7
  188. package/types/sdcorejs-angular-components-timeline.d.ts +216 -0
  189. package/types/sdcorejs-angular-components-tree.d.ts +119 -6
  190. package/types/sdcorejs-angular-components.d.ts +3 -1
  191. package/types/sdcorejs-angular-directives.d.ts +4 -2
  192. package/types/sdcorejs-angular-forms-date.d.ts +2 -0
  193. package/types/sdcorejs-angular-forms-directives.d.ts +1 -1
  194. package/types/sdcorejs-angular-i18n.d.ts +121 -9
  195. package/types/sdcorejs-angular-modules-layout.d.ts +2 -1
  196. package/types/sdcorejs-angular-services-confirm.d.ts +22 -81
  197. package/types/sdcorejs-angular-services-query-params.d.ts +67 -0
  198. package/types/sdcorejs-angular-utilities-extensions.d.ts +10 -1
  199. package/fesm2022/sdcorejs-angular-components-history.mjs +0 -54
  200. package/fesm2022/sdcorejs-angular-components-history.mjs.map +0 -1
  201. package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-CRc9T7rb.mjs +0 -146
  202. package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-CRc9T7rb.mjs.map +0 -1
  203. package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-Cz-MjRG0.mjs +0 -148
  204. package/fesm2022/sdcorejs-angular-modules-pattern-create-side-drawer.component-Cz-MjRG0.mjs.map +0 -1
  205. package/fesm2022/sdcorejs-angular-modules-pattern-create.component-RBvVv88D.mjs.map +0 -1
  206. package/fesm2022/sdcorejs-angular-modules-pattern-customer.model-C3fr4yNw.mjs +0 -18
  207. package/fesm2022/sdcorejs-angular-modules-pattern-customer.model-C3fr4yNw.mjs.map +0 -1
  208. package/fesm2022/sdcorejs-angular-modules-pattern-detail-side-drawer.component-DzDAX3B7.mjs +0 -152
  209. package/fesm2022/sdcorejs-angular-modules-pattern-detail-side-drawer.component-DzDAX3B7.mjs.map +0 -1
  210. package/fesm2022/sdcorejs-angular-modules-pattern-detail.component-CcpYULut.mjs.map +0 -1
  211. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-D8-WXUAE.mjs +0 -92
  212. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-D8-WXUAE.mjs.map +0 -1
  213. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-DHTxzjRN.mjs +0 -242
  214. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-form.component-DHTxzjRN.mjs.map +0 -1
  215. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-view.component-CTgHdGeQ.mjs +0 -72
  216. package/fesm2022/sdcorejs-angular-modules-pattern-general-information-view.component-CTgHdGeQ.mjs.map +0 -1
  217. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-BjehcQEk.mjs +0 -172
  218. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-BjehcQEk.mjs.map +0 -1
  219. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-CNVqk3JC.mjs.map +0 -1
  220. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-jB3E20UF.mjs +0 -120
  221. package/fesm2022/sdcorejs-angular-modules-pattern-list.component-jB3E20UF.mjs.map +0 -1
  222. package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source-viewer-BqHwKfoc.mjs.map +0 -1
  223. package/fesm2022/sdcorejs-angular-modules-pattern-pattern-source.generated-CIiLOizq.mjs.map +0 -1
  224. package/fesm2022/sdcorejs-angular-modules-pattern-profile.component-Dxw7Ix9d.mjs.map +0 -1
  225. package/fesm2022/sdcorejs-angular-modules-pattern-routes-BWZxOMhB.mjs +0 -74
  226. package/fesm2022/sdcorejs-angular-modules-pattern-routes-BWZxOMhB.mjs.map +0 -1
  227. package/fesm2022/sdcorejs-angular-modules-pattern-routes-CophQH_L.mjs +0 -100
  228. package/fesm2022/sdcorejs-angular-modules-pattern-routes-CophQH_L.mjs.map +0 -1
  229. package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-BT2PzXTG.mjs +0 -135
  230. package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-BT2PzXTG.mjs.map +0 -1
  231. package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-qmGn2tCI.mjs +0 -146
  232. package/fesm2022/sdcorejs-angular-modules-pattern-update-side-drawer.component-qmGn2tCI.mjs.map +0 -1
  233. package/fesm2022/sdcorejs-angular-modules-pattern-update.component-CUgQPcR4.mjs.map +0 -1
  234. package/modules/pattern/features/category/entity.resolver.ts +0 -27
  235. package/types/sdcorejs-angular-components-history.d.ts +0 -23
@@ -0,0 +1,544 @@
1
+ import * as _sdcorejs_angular_components_calendar from '@sdcorejs/angular/components/calendar';
2
+ import { SdCalendarEvent, SdCalendarState, SdCalendarRange, SdCalendarWorkingHours, SdCalendarMoveSource, SdCalendarMoveScope, SdCalendarHoliday, SdCalendarDateInput, ɵSdCalendarScopeBar as _SdCalendarScopeBar, ɵSdCalendarPlacement as _SdCalendarPlacement, ɵSdCalendarTarget as _SdCalendarTarget } from '@sdcorejs/angular/components/calendar';
3
+ import * as _sdcorejs_angular_types_sdcorejs_angular_forms_time_range from '@sdcorejs/angular/types/sdcorejs-angular-forms-time-range';
4
+ import * as _angular_core from '@angular/core';
5
+ import { TemplateRef, ElementRef } from '@angular/core';
6
+ import { CdkDragStart, CdkDragEnd } from '@angular/cdk/drag-drop';
7
+ import { SdTemporalValueTransform } from '@sdcorejs/angular/forms/models';
8
+
9
+ /** Layout of `sd-scheduler`: one day on an hour axis, or a week or a month on a day axis. */
10
+ type SdSchedulerView = 'day' | 'week' | 'month';
11
+ /** What a move may change: both the time and the resource, only the time, or only the resource. */
12
+ type SdSchedulerMoveAxis = 'both' | 'time' | 'resource';
13
+ /** One row of the scheduler: a room, a vehicle, a person. */
14
+ interface SdSchedulerResource<R = unknown> {
15
+ /** Unique within `resources`. */
16
+ id: string;
17
+ /** Not empty; the name read by screen readers. */
18
+ title: string;
19
+ description?: string;
20
+ /** Group label. The same string is the same group; groups keep the order of their first resource. */
21
+ group?: string;
22
+ /** Material Symbols name. Ignored when `avatar` is set. */
23
+ icon?: string;
24
+ /** Image URL shown with `sd-avatar` (initials of `title` when the image fails). */
25
+ avatar?: string;
26
+ /** Overrides the component's `workingHours` for this resource. `null`: no off-hours shading. */
27
+ workingHours?: SdCalendarWorkingHours | null;
28
+ /** Caller-owned DTO, kept by reference and never serialized. */
29
+ data?: R;
30
+ }
31
+ /** One event of the scheduler: an `SdCalendarEvent` on one resource. */
32
+ interface SdSchedulerEvent<T = unknown> extends SdCalendarEvent<T> {
33
+ /** Exactly one resource. An id that is not in `resources` leaves the event out, with a dev-mode warning. */
34
+ resourceId: string;
35
+ }
36
+ /** A span on one resource, in the form the scheduler emits. */
37
+ interface SdSchedulerRange extends SdCalendarRange {
38
+ readonly resourceId: string;
39
+ }
40
+ /** Days on screen, both ends included, and the view. A week with `hideWeekends` still spans the whole week. */
41
+ interface SdSchedulerVisibleRange {
42
+ /** `'yyyy/MM/dd'`. */
43
+ readonly from: string;
44
+ /** `'yyyy/MM/dd'`. */
45
+ readonly to: string;
46
+ readonly view: SdSchedulerView;
47
+ }
48
+ /** Arguments of `dataSource.onLoad`. */
49
+ interface SdSchedulerLoadArgs extends SdSchedulerVisibleRange {
50
+ /** Ids of `resources`, in their order, collapsed groups included. */
51
+ readonly resourceIds: readonly string[];
52
+ /** Aborted when the range, `resources` or `option` changes, on `reload()` and when the scheduler is destroyed. */
53
+ readonly signal: AbortSignal;
54
+ }
55
+ /** Context of `create.creatable`: the span about to be created and its resource. */
56
+ interface SdSchedulerCreateContext<R = unknown> extends SdSchedulerRange {
57
+ readonly resource: SdSchedulerResource<R>;
58
+ }
59
+ /** Arguments of `create.onCreate`. */
60
+ interface SdSchedulerCreateArgs<R = unknown> extends SdSchedulerCreateContext<R> {
61
+ /** Aborted when `option` or `resources` changes or the scheduler is destroyed. */
62
+ readonly signal: AbortSignal;
63
+ }
64
+ /** Context of `move.droppable`: where the event would land. */
65
+ interface SdSchedulerDropContext<T = unknown, R = unknown> {
66
+ readonly event: SdSchedulerEvent<T>;
67
+ readonly to: SdSchedulerRange;
68
+ readonly resource: SdSchedulerResource<R>;
69
+ }
70
+ /** Proposal passed to `move.onMove`. Nothing changes on screen until it is accepted. */
71
+ interface SdSchedulerMoveRequest<T = unknown, R = unknown> {
72
+ readonly event: SdSchedulerEvent<T>;
73
+ readonly from: SdSchedulerRange;
74
+ readonly to: SdSchedulerRange;
75
+ /** Target resource; the event's own resource when only the time changes. */
76
+ readonly resource: SdSchedulerResource<R>;
77
+ readonly source: SdCalendarMoveSource;
78
+ /** `null` when the event is not an occurrence of a recurring series. */
79
+ readonly scope: SdCalendarMoveScope | null;
80
+ /**
81
+ * Aborted when the range, `resources` or `option` changes, on `reload()`, when `disabled` or `readonly` turns on,
82
+ * or when the scheduler is destroyed. Cooperative: it does not undo a backend change that already happened.
83
+ */
84
+ readonly signal: AbortSignal;
85
+ }
86
+ /** Payload of `sdMoveError`. A `'cancel'` result emits nothing. */
87
+ interface SdSchedulerMoveError<T = unknown, R = unknown> {
88
+ readonly request: SdSchedulerMoveRequest<T, R>;
89
+ readonly reason: 'rejected' | 'error';
90
+ readonly error?: unknown;
91
+ }
92
+ /** Payload of `sdCellSelect` (cell template only): a cell that holds at least one event was activated. */
93
+ interface SdSchedulerCellSelect<T = unknown, R = unknown> {
94
+ readonly resource: SdSchedulerResource<R>;
95
+ /** `'yyyy/MM/dd'`. */
96
+ readonly date: string;
97
+ readonly events: readonly SdSchedulerEvent<T>[];
98
+ }
99
+ /** Configuration of `<sd-scheduler>`: the data source and the capabilities it switches on. */
100
+ interface SdSchedulerOption<T = unknown, R = unknown> {
101
+ /** Required. */
102
+ dataSource: {
103
+ /**
104
+ * Returns the events of the visible range for `resourceIds`. Called on init, whenever the range, `resources` or
105
+ * `option` changes and on `reload()`. Throw or reject to show the load error with a retry button.
106
+ */
107
+ onLoad: (args: SdSchedulerLoadArgs) => readonly SdSchedulerEvent<T>[] | Promise<readonly SdSchedulerEvent<T>[]>;
108
+ };
109
+ /** Turns on creating by sweep, click, tap and `Enter` on one resource row. */
110
+ create?: {
111
+ /** Defaults to `true`. Evaluated while sweeping and again right before `onCreate`. */
112
+ creatable?: SdCalendarState<SdSchedulerCreateContext<R>>;
113
+ /** Opens your form. Return the created event to insert it; return nothing when the user cancels; throw to fail. */
114
+ onCreate: (args: SdSchedulerCreateArgs<R>) => SdSchedulerEvent<T> | void | Promise<SdSchedulerEvent<T> | void>;
115
+ };
116
+ /** Turns on dragging on two axes, resizing the end and `Alt` + arrow keys. */
117
+ move?: {
118
+ /** Defaults to `true`. `false`, or a predicate returning `false`, locks the event. */
119
+ movable?: SdCalendarState<SdSchedulerEvent<T>>;
120
+ /** `'time'`: only the time changes. `'resource'`: only the resource changes (no horizontal drag, no resize). Defaults to `'both'`. */
121
+ axis?: SdSchedulerMoveAxis;
122
+ /**
123
+ * Runs synchronously while dragging, whenever the target row or slot changes, and right before `onMove`. Do not
124
+ * call an API here; `onMove` stays the final check.
125
+ */
126
+ droppable?: SdCalendarState<SdSchedulerDropContext<T, R>>;
127
+ /** `true` or nothing: accepted. `false`: rejected. `'cancel'`: cancelled in your flow, no error. Throw or reject: error. */
128
+ onMove: (request: SdSchedulerMoveRequest<T, R>) => boolean | 'cancel' | void | Promise<boolean | 'cancel' | void>;
129
+ };
130
+ }
131
+
132
+ /** Context of `sdSchedulerEventTemplate`. */
133
+ interface SdSchedulerEventTemplateContext<T = unknown, R = unknown> {
134
+ $implicit: SdSchedulerEvent<T>;
135
+ event: SdSchedulerEvent<T>;
136
+ /** Where the block is drawn: the proposed span while a move waits, otherwise the event's own span. */
137
+ range: SdSchedulerRange;
138
+ resource: SdSchedulerResource<R>;
139
+ view: SdSchedulerView;
140
+ /** The block is narrower than 48px and shows its colour dot only. */
141
+ compact: boolean;
142
+ /** A move of this event is waiting for your callback. */
143
+ pending: boolean;
144
+ }
145
+ /** Context of `sdSchedulerResourceTemplate`. */
146
+ interface SdSchedulerResourceTemplateContext<R = unknown> {
147
+ $implicit: SdSchedulerResource<R>;
148
+ resource: SdSchedulerResource<R>;
149
+ group: string | null;
150
+ /** The host is narrower than 600px. */
151
+ compact: boolean;
152
+ }
153
+ /** Context of `sdSchedulerCellTemplate` (week and month views, one cell per resource and day). */
154
+ interface SdSchedulerCellTemplateContext<T = unknown, R = unknown> {
155
+ /** `'yyyy/MM/dd'`. */
156
+ $implicit: string;
157
+ date: string;
158
+ resource: SdSchedulerResource<R>;
159
+ events: readonly SdSchedulerEvent<T>[];
160
+ holiday: SdCalendarHoliday | null;
161
+ today: boolean;
162
+ /** Day off for this resource: no working hours that weekday, or an `off` holiday. */
163
+ off: boolean;
164
+ }
165
+ /** Context of `sdSchedulerEmptyTemplate` (no resources). */
166
+ interface SdSchedulerEmptyTemplateContext {
167
+ $implicit: SdSchedulerVisibleRange;
168
+ }
169
+ /** Views a cell template applies to. */
170
+ type SdSchedulerCellView = Exclude<SdSchedulerView, 'day'>;
171
+ /** Replaces the content of an event block; frame, colour, handle and states stay. `let-event`. */
172
+ declare class SdSchedulerEventTemplateDirective<T = unknown, R = unknown> {
173
+ readonly template: TemplateRef<SdSchedulerEventTemplateContext<T, R>>;
174
+ static ngTemplateContextGuard<T, R>(_directive: SdSchedulerEventTemplateDirective<T, R>, _context: unknown): _context is SdSchedulerEventTemplateContext<T, R>;
175
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdSchedulerEventTemplateDirective<any, any>, never>;
176
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SdSchedulerEventTemplateDirective<any, any>, "ng-template[sdSchedulerEventTemplate]", never, {}, {}, never, never, true, never>;
177
+ }
178
+ /** Replaces the content of a resource cell; its frame, width and sticky position stay. `let-resource`. */
179
+ declare class SdSchedulerResourceTemplateDirective<R = unknown> {
180
+ readonly template: TemplateRef<SdSchedulerResourceTemplateContext<R>>;
181
+ static ngTemplateContextGuard<R>(_directive: SdSchedulerResourceTemplateDirective<R>, _context: unknown): _context is SdSchedulerResourceTemplateContext<R>;
182
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdSchedulerResourceTemplateDirective<any>, never>;
183
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SdSchedulerResourceTemplateDirective<any>, "ng-template[sdSchedulerResourceTemplate]", never, {}, {}, never, never, true, never>;
184
+ }
185
+ /**
186
+ * Draws one cell per resource and day instead of event blocks (a timesheet). In the views it applies to there are
187
+ * no blocks, no drag and no resize: a cell with events emits `sdCellSelect`, an empty one creates. `let-date`.
188
+ */
189
+ declare class SdSchedulerCellTemplateDirective<T = unknown, R = unknown> {
190
+ readonly template: TemplateRef<SdSchedulerCellTemplateContext<T, R>>;
191
+ /** Views the template applies to. Defaults to week and month; the day view always draws blocks. */
192
+ readonly views: _angular_core.InputSignal<readonly SdSchedulerCellView[]>;
193
+ static ngTemplateContextGuard<T, R>(_directive: SdSchedulerCellTemplateDirective<T, R>, _context: unknown): _context is SdSchedulerCellTemplateContext<T, R>;
194
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdSchedulerCellTemplateDirective<any, any>, never>;
195
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SdSchedulerCellTemplateDirective<any, any>, "ng-template[sdSchedulerCellTemplate]", never, { "views": { "alias": "views"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
196
+ }
197
+ /** Replaces the "No resources" state. `let-range`. */
198
+ declare class SdSchedulerEmptyTemplateDirective {
199
+ readonly template: TemplateRef<SdSchedulerEmptyTemplateContext>;
200
+ static ngTemplateContextGuard(_directive: SdSchedulerEmptyTemplateDirective, _context: unknown): _context is SdSchedulerEmptyTemplateContext;
201
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdSchedulerEmptyTemplateDirective, never>;
202
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SdSchedulerEmptyTemplateDirective, "ng-template[sdSchedulerEmptyTemplate]", never, {}, {}, never, never, true, never>;
203
+ }
204
+
205
+ /** @internal A day of the axis. */
206
+ interface SdSchedulerDayView {
207
+ readonly day: string;
208
+ readonly dayNumber: number;
209
+ readonly weekdayShort: string;
210
+ readonly label: string;
211
+ readonly openLabel: string;
212
+ readonly today: boolean;
213
+ readonly holiday: SdCalendarHoliday | null;
214
+ }
215
+ /** @internal An event block. */
216
+ interface SdSchedulerBlockView<T, R> {
217
+ readonly key: string;
218
+ readonly event: SdSchedulerEvent<T>;
219
+ readonly placement: _SdCalendarPlacement;
220
+ readonly range: SdSchedulerRange;
221
+ readonly label: string;
222
+ readonly title: string;
223
+ readonly autoId: string | null;
224
+ readonly color: string;
225
+ readonly customColor: string | null;
226
+ readonly recurring: boolean;
227
+ readonly past: boolean;
228
+ readonly pending: boolean;
229
+ readonly saving: boolean;
230
+ readonly movable: boolean;
231
+ /** The end handle is drawn: movable, not `axis: 'resource'`, a timed event of the day (day view) or an all-day one. */
232
+ readonly resizable: boolean;
233
+ readonly start: string;
234
+ readonly size: string;
235
+ readonly top: string;
236
+ /** `lg` ≥ 120px: dot, title and time; `md` 48–119px: dot and title; `sm` < 48px: dot only (§8.2). */
237
+ readonly tier: 'lg' | 'md' | 'sm';
238
+ /** Week and month: the start time leads the title on timed blocks of at least 96px (§8.2). */
239
+ readonly leadTime: string | null;
240
+ readonly timeText: string;
241
+ readonly clippedStart: boolean;
242
+ readonly clippedEnd: boolean;
243
+ readonly context: SdSchedulerEventTemplateContext<T, R>;
244
+ }
245
+ /** @internal A shaded span of one row: off hours or days off. */
246
+ interface SdSchedulerShade {
247
+ readonly key: string;
248
+ readonly start: string;
249
+ readonly size: string;
250
+ }
251
+ /** @internal A resource row. */
252
+ interface SdSchedulerResourceRow<T, R> {
253
+ readonly kind: 'resource';
254
+ readonly key: string;
255
+ readonly resource: SdSchedulerResource<R>;
256
+ readonly group: string | null;
257
+ readonly height: number;
258
+ readonly headerId: string;
259
+ /** Id of the time area: what `aria-activedescendant` points at while the cursor is on this row (§9.7). */
260
+ readonly trackId: string;
261
+ readonly autoId: string | null;
262
+ readonly token: string;
263
+ readonly blocks: readonly SdSchedulerBlockView<T, R>[];
264
+ readonly shades: readonly SdSchedulerShade[];
265
+ /** Cells of a cell template on the week and month views (§8.5); `null` when blocks are drawn. */
266
+ readonly cells: readonly SdSchedulerCell<T, R>[] | null;
267
+ readonly context: SdSchedulerResourceTemplateContext<R>;
268
+ }
269
+ /** @internal One cell of a cell template. */
270
+ interface SdSchedulerCell<T, R> {
271
+ readonly day: string;
272
+ readonly label: string;
273
+ readonly events: readonly SdSchedulerEvent<T>[];
274
+ readonly off: boolean;
275
+ readonly today: boolean;
276
+ readonly context: SdSchedulerCellTemplateContext<T, R>;
277
+ }
278
+ /** @internal A group row. */
279
+ interface SdSchedulerGroupRow {
280
+ readonly kind: 'group';
281
+ readonly key: string;
282
+ readonly headerId: string;
283
+ readonly name: string;
284
+ readonly count: number;
285
+ readonly collapsed: boolean;
286
+ readonly label: string;
287
+ readonly hint: string;
288
+ readonly countText: string;
289
+ }
290
+ type SdSchedulerRowView<T, R> = SdSchedulerResourceRow<T, R> | SdSchedulerGroupRow;
291
+ /** Where an event should go: its wall clock and its resource. */
292
+ type SdSchedulerTarget = _SdCalendarTarget & {
293
+ readonly resourceId: string;
294
+ };
295
+ /** @internal Where a dragged block would land (§9.3). */
296
+ interface SdSchedulerDragProposal {
297
+ readonly id: string;
298
+ readonly target: SdSchedulerTarget;
299
+ /** The pointer is over a group row: dropping there cancels. */
300
+ readonly onGroup: boolean;
301
+ /** `droppable` refused the target row and slot. */
302
+ readonly blocked: boolean;
303
+ readonly outside: boolean;
304
+ /** Floating label: "{resource} · 10:00 – 11:30" across rows, "10:00 – 11:30" in the same row (§8.3). */
305
+ readonly label: string;
306
+ /** No room for the label after the block: it goes before it (§8.3). */
307
+ readonly flip: boolean;
308
+ /** The dragged block's look, drawn at the proposed place (calendar §8.3). */
309
+ readonly title: string;
310
+ readonly color: string;
311
+ readonly customColor: string | null;
312
+ readonly tier: 'lg' | 'md' | 'sm';
313
+ }
314
+ /** @internal The dashed block of a create: `[start, end)` minutes on the day view, `[start, end]` columns otherwise. */
315
+ interface SdSchedulerGhost {
316
+ readonly resourceId: string;
317
+ readonly start: number;
318
+ readonly end: number;
319
+ readonly pending: boolean;
320
+ readonly blocked: boolean;
321
+ }
322
+ declare class SdScheduler<T = unknown, R = unknown> {
323
+ #private;
324
+ protected readonly baseId: string;
325
+ /** Data source and capabilities. A new object is the signal to load again. */
326
+ readonly option: _angular_core.InputSignal<SdSchedulerOption<T, R>>;
327
+ /** Rows, in this order (grouped by `group`). A new array loads again; an empty one shows the empty state. */
328
+ readonly resources: _angular_core.InputSignal<readonly SdSchedulerResource<R>[]>;
329
+ /** Layout on screen; one of `views`, otherwise the first of `views`. */
330
+ readonly view: _angular_core.ModelSignal<SdSchedulerView>;
331
+ /** Anchor day; the scheduler writes back `'yyyy/MM/dd'`. Defaults to today in the zone. */
332
+ readonly date: _angular_core.ModelSignal<SdCalendarDateInput | null | undefined>;
333
+ /** Id of the selected event; back to `null` when the event is no longer loaded. */
334
+ readonly selectedId: _angular_core.ModelSignal<string | null>;
335
+ /** Views offered by the switcher, in this order. */
336
+ readonly views: _angular_core.InputSignal<readonly SdSchedulerView[]>;
337
+ /** Text of the corner cell; defaults to the translated "Resources". */
338
+ readonly resourceLabel: _angular_core.InputSignal<string | null | undefined>;
339
+ /** Minutes of one slot of the day view, a divisor of 60. Configuration, then 30. */
340
+ readonly step: _angular_core.InputSignal<number | undefined>;
341
+ /** 0–6, 0 is Sunday. Configuration, then 1. */
342
+ readonly firstDayOfWeek: _angular_core.InputSignal<number | undefined>;
343
+ /** Hides Saturday and Sunday in the week and month views; `from`/`to` still span the whole week or month. */
344
+ readonly hideWeekends: _angular_core.InputSignalWithTransform<boolean, unknown>;
345
+ /** `null` turns the off-hours shading off. Configuration, then Monday–Friday. A resource can override it. */
346
+ readonly workingHours: _angular_core.InputSignal<Partial<Record<0 | 1 | 2 | 3 | 4 | 5 | 6, readonly _sdcorejs_angular_types_sdcorejs_angular_forms_time_range.SdTimeRangeValue[]>> | null | undefined>;
347
+ /** Configuration, then none. */
348
+ readonly holidays: _angular_core.InputSignal<readonly SdCalendarHoliday[] | undefined>;
349
+ /** First day that can be shown and edited, compared as a calendar day in the zone. */
350
+ readonly minDate: _angular_core.InputSignal<SdCalendarDateInput | null | undefined>;
351
+ /** Last day that can be shown and edited, compared as a calendar day in the zone. */
352
+ readonly maxDate: _angular_core.InputSignal<SdCalendarDateInput | null | undefined>;
353
+ /** `'HH:mm'` the day view scrolls to. Configuration, then the earliest working hour, then 08:00. */
354
+ readonly scrollTime: _angular_core.InputSignal<string | undefined>;
355
+ /** Fades events that have ended. */
356
+ readonly dimPast: _angular_core.InputSignalWithTransform<boolean, unknown>;
357
+ /** Serialization of the values the scheduler emits; see "Date values" in `sd-calendar.md`. */
358
+ readonly transform: _angular_core.InputSignal<SdTemporalValueTransform | undefined>;
359
+ /** No create, move or selection; events leave the tab order. Navigation still works. */
360
+ readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
361
+ /** No create or move. Selection and navigation still work. */
362
+ readonly readonly: _angular_core.InputSignalWithTransform<boolean, unknown>;
363
+ /** Accessible name of the region and of the scroll area; defaults to the translated "Resource schedule". */
364
+ readonly ariaLabel: _angular_core.InputSignal<string | null | undefined>;
365
+ /** E2E scope: `data-autoid="components-scheduler-{autoId}"` and derived child ids. */
366
+ readonly autoId: _angular_core.InputSignal<string | null | undefined>;
367
+ /** An event was clicked, tapped or activated with Enter/Space. */
368
+ readonly sdSelect: _angular_core.OutputEmitterRef<SdSchedulerEvent<T>>;
369
+ /** Once on init, then whenever `from`, `to` or the view changes (not when only `resources` change). */
370
+ readonly sdRangeChange: _angular_core.OutputEmitterRef<SdSchedulerVisibleRange>;
371
+ /** `onMove` accepted and the data changed. */
372
+ readonly sdMove: _angular_core.OutputEmitterRef<SdSchedulerMoveRequest<T, R>>;
373
+ /** `onMove` rejected or failed. */
374
+ readonly sdMoveError: _angular_core.OutputEmitterRef<SdSchedulerMoveError<T, R>>;
375
+ /** `onLoad` threw or rejected (never for an aborted load). */
376
+ readonly sdLoadError: _angular_core.OutputEmitterRef<unknown>;
377
+ /** Cell template only: a cell with at least one event was clicked, tapped or activated with Enter. */
378
+ readonly sdCellSelect: _angular_core.OutputEmitterRef<SdSchedulerCellSelect<T, R>>;
379
+ protected readonly eventTemplate: _angular_core.Signal<SdSchedulerEventTemplateDirective<T, R> | undefined>;
380
+ protected readonly resourceTemplate: _angular_core.Signal<SdSchedulerResourceTemplateDirective<R> | undefined>;
381
+ protected readonly cellTemplate: _angular_core.Signal<SdSchedulerCellTemplateDirective<T, R> | undefined>;
382
+ protected readonly emptyTemplate: _angular_core.Signal<SdSchedulerEmptyTemplateDirective | undefined>;
383
+ protected readonly scroller: _angular_core.Signal<ElementRef<HTMLElement> | undefined>;
384
+ protected readonly gridElement: _angular_core.Signal<ElementRef<HTMLElement> | undefined>;
385
+ protected readonly root: _angular_core.Signal<ElementRef<HTMLElement> | undefined>;
386
+ /** Scope bar of a recurring event (§9.6); it holds the one waiting operation until answered. */
387
+ protected readonly scopeBar: _SdCalendarScopeBar;
388
+ /** Host narrower than 600px (§11): measured on the host, not the viewport. */
389
+ protected readonly compact: _angular_core.Signal<boolean>;
390
+ protected readonly phase: _angular_core.Signal<_sdcorejs_angular_components_calendar.ɵSdCalendarLoadPhase>;
391
+ protected readonly announcement: _angular_core.Signal<string>;
392
+ protected readonly failure: _angular_core.Signal<{
393
+ readonly id: string | null;
394
+ readonly message: string;
395
+ } | null>;
396
+ protected readonly busy: _angular_core.Signal<boolean>;
397
+ protected readonly skeleton: _angular_core.Signal<boolean>;
398
+ protected readonly rootAutoId: _angular_core.Signal<string | null>;
399
+ protected readonly regionLabel: _angular_core.Signal<string>;
400
+ protected readonly cornerLabel: _angular_core.Signal<string>;
401
+ protected readonly stepValue: _angular_core.Signal<number>;
402
+ protected readonly today: _angular_core.Signal<string>;
403
+ protected readonly viewOptions: _angular_core.Signal<readonly SdSchedulerView[]>;
404
+ protected readonly activeView: _angular_core.Signal<SdSchedulerView>;
405
+ protected readonly visible: _angular_core.Signal<SdSchedulerVisibleRange>;
406
+ /** Days drawn on the axis: the visible days without the weekend when `hideWeekends` (week, month). */
407
+ protected readonly columns: _angular_core.Signal<string[]>;
408
+ protected readonly title: _angular_core.Signal<string>;
409
+ protected readonly prevLabel: _angular_core.Signal<string>;
410
+ protected readonly nextLabel: _angular_core.Signal<string>;
411
+ protected readonly prevDisabled: _angular_core.Signal<boolean>;
412
+ protected readonly nextDisabled: _angular_core.Signal<boolean>;
413
+ /** Duplicate or empty ids, or an empty title, in `resources` or in the loaded events: nothing is shown (§12). */
414
+ protected readonly invalid: _angular_core.Signal<boolean>;
415
+ protected readonly empty: _angular_core.Signal<boolean>;
416
+ /** No create and no move: disabled, readonly, loading, load error, invalid data or no resources (§4.1). */
417
+ protected readonly locked: _angular_core.Signal<boolean>;
418
+ /** A cell template applies to the view on screen: cells instead of blocks, no drag (§8.5). */
419
+ protected readonly cellTemplateActive: _angular_core.Signal<boolean>;
420
+ /** Create is on: `option.create` and not locked. */
421
+ protected readonly canCreate: _angular_core.Signal<boolean>;
422
+ protected readonly ghost: _angular_core.Signal<SdSchedulerGhost | null>;
423
+ protected readonly dayViews: _angular_core.Signal<readonly SdSchedulerDayView[]>;
424
+ protected readonly hours: {
425
+ hour: number;
426
+ label: string;
427
+ }[];
428
+ protected readonly rows: _angular_core.Signal<readonly SdSchedulerRowView<T, R>[]>;
429
+ /** First three resource rows: where the skeleton draws (§12). */
430
+ protected readonly skeletonRows: _angular_core.Signal<Map<string, number>>;
431
+ protected readonly skeletonShapes: readonly (readonly [number, number])[];
432
+ /** Inline offset of the now line from the start of the time area, day view on today only (§7). */
433
+ protected readonly nowOffset: _angular_core.Signal<string | null>;
434
+ protected readonly gridHelpId: string;
435
+ protected readonly eventHelpId: string;
436
+ constructor();
437
+ /** Aborts a running load and a waiting move, then calls `onLoad` again for the range on screen. */
438
+ reload(): void;
439
+ /**
440
+ * Moves an event through the pipeline of `sd-scheduler.md` ("Moving"): `onMove` decides. Resolves `true` only when
441
+ * accepted; `false` without `option.move`, while locked or another operation waits, for an unknown id or resource, a
442
+ * move against `axis`, a refused `movable` or `droppable`, the same position, a position outside `minDate` /
443
+ * `maxDate`, a rejection, `'cancel'` or an error. Without `resourceId` the event keeps its resource.
444
+ */
445
+ move(eventId: string, to: {
446
+ start: SdCalendarDateInput;
447
+ end?: SdCalendarDateInput | null;
448
+ allDay?: boolean;
449
+ resourceId?: string;
450
+ }, source?: SdCalendarMoveSource): Promise<boolean>;
451
+ protected setView(view: SdSchedulerView): void;
452
+ protected shift(direction: 1 | -1): void;
453
+ protected goToday(): void;
454
+ protected openDay(day: string): void;
455
+ protected dismissFailure(): void;
456
+ protected toggleGroup(name: string): void;
457
+ protected viewLabel(view: SdSchedulerView): string;
458
+ protected childAutoId(kind: string): string | null;
459
+ protected isFailed(id: string): boolean;
460
+ protected selectItem(event: SdSchedulerEvent<T>, domEvent?: Event): void;
461
+ /** Press inside a row: on a block it starts a new gesture and records the pickup point of a possible drag. */
462
+ protected onTrackPress(domEvent: MouseEvent | TouchEvent): void;
463
+ protected onTrackClick(domEvent: MouseEvent, row: SdSchedulerResourceRow<T, R>): void;
464
+ protected onTrackKeydown(domEvent: KeyboardEvent, row: SdSchedulerResourceRow<T, R>): void;
465
+ /**
466
+ * Keys on a block (§9.7): Enter and Space select, Esc clears the selection and goes back to the grid, Alt + ← →
467
+ * moves the time, Alt + Shift + ← → the end, Alt + ↑ ↓ the resource.
468
+ */
469
+ protected onItemKeydown(domEvent: KeyboardEvent, block: SdSchedulerBlockView<T, R>): void;
470
+ protected readonly cursor: _angular_core.Signal<{
471
+ readonly rowKey: string;
472
+ readonly day: string;
473
+ readonly minutes: number;
474
+ } | null>;
475
+ /** `aria-activedescendant` of the grid: the track of the cursor row, its cell, or the header of a collapsed group. */
476
+ protected readonly cursorTarget: _angular_core.Signal<string | null>;
477
+ protected readonly cursorLabel: _angular_core.Signal<string>;
478
+ /** Inline start and size of the cursor in its row: one step (day view) or one column. */
479
+ protected readonly cursorBox: _angular_core.Signal<{
480
+ start: string;
481
+ size: string;
482
+ text: string;
483
+ } | null>;
484
+ /** The cursor starts on the first resource, on the anchor day (or the first column), at its working hour. */
485
+ protected onGridFocus(): void;
486
+ protected onGridKeydown(domEvent: KeyboardEvent): void;
487
+ protected onCellClick(row: SdSchedulerResourceRow<T, R>, cell: SdSchedulerCell<T, R>): void;
488
+ protected onTrackPointerDown(domEvent: PointerEvent, resourceId: string): void;
489
+ protected onTrackPointerMove(domEvent: PointerEvent): void;
490
+ protected onTrackPointerUp(): void;
491
+ protected onTrackPointerCancel(): void;
492
+ /** Inline start and size of the dashed block (as the blocks of §8.2). */
493
+ protected ghostBox(ghost: SdSchedulerGhost): {
494
+ start: string;
495
+ size: string;
496
+ time: string;
497
+ };
498
+ /** `cdkDragLockAxis` of `move.axis` (§9.3); the real lock is in the target computation (Step 0 D.6). */
499
+ protected readonly lockAxis: _angular_core.Signal<"x" | "y" | null>;
500
+ protected readonly dragProposal: _angular_core.Signal<SdSchedulerDragProposal | null>;
501
+ protected readonly dragDelay: {
502
+ touch: number;
503
+ mouse: number;
504
+ };
505
+ /**
506
+ * Keeps the dragged element in place (the proposal is drawn instead) and computes the target from the real pointer.
507
+ * CDK runs this outside the zone on every pointer move; the zone is entered only when the target changes.
508
+ */
509
+ protected readonly constrainDrag: (point: {
510
+ x: number;
511
+ y: number;
512
+ }, _ref: unknown, rect: DOMRect) => {
513
+ x: number;
514
+ y: number;
515
+ };
516
+ protected onDragStarted(start: CdkDragStart, block: SdSchedulerBlockView<T, R>): void;
517
+ protected onDragEnded(end: CdkDragEnd): void;
518
+ protected isDragging(id: string): boolean;
519
+ /** Position of the proposal block of a row (lane 0, on top of the other blocks, §8.4 step 5). */
520
+ protected proposalBox(proposal: SdSchedulerDragProposal): {
521
+ start: string;
522
+ size: string;
523
+ };
524
+ protected onResizeDown(domEvent: PointerEvent, block: SdSchedulerBlockView<T, R>): void;
525
+ protected onResizeMove(domEvent: PointerEvent): void;
526
+ protected onResizeUp(domEvent: PointerEvent): void;
527
+ /** The browser took the pointer away (a scroll or a system gesture): the live resize is dropped. */
528
+ protected onResizeCancel(): void;
529
+ /** Floating label of a live resize (§8.3): after the block, or before it when the row has no room left. */
530
+ protected resizeLabel(block: SdSchedulerBlockView<T, R>): {
531
+ text: string;
532
+ start: string | null;
533
+ end: string | null;
534
+ top: string;
535
+ } | null;
536
+ /** Inline size of a block, following a live resize. */
537
+ protected blockSize(block: SdSchedulerBlockView<T, R>): string;
538
+ protected readonly scopeMessageId: string;
539
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdScheduler<any, any>, never>;
540
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdScheduler<any, any>, "sd-scheduler", never, { "option": { "alias": "option"; "required": true; "isSignal": true; }; "resources": { "alias": "resources"; "required": true; "isSignal": true; }; "view": { "alias": "view"; "required": false; "isSignal": true; }; "date": { "alias": "date"; "required": false; "isSignal": true; }; "selectedId": { "alias": "selectedId"; "required": false; "isSignal": true; }; "views": { "alias": "views"; "required": false; "isSignal": true; }; "resourceLabel": { "alias": "resourceLabel"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "firstDayOfWeek": { "alias": "firstDayOfWeek"; "required": false; "isSignal": true; }; "hideWeekends": { "alias": "hideWeekends"; "required": false; "isSignal": true; }; "workingHours": { "alias": "workingHours"; "required": false; "isSignal": true; }; "holidays": { "alias": "holidays"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "scrollTime": { "alias": "scrollTime"; "required": false; "isSignal": true; }; "dimPast": { "alias": "dimPast"; "required": false; "isSignal": true; }; "transform": { "alias": "transform"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "autoId": { "alias": "autoId"; "required": false; "isSignal": true; }; }, { "view": "viewChange"; "date": "dateChange"; "selectedId": "selectedIdChange"; "sdSelect": "sdSelect"; "sdRangeChange": "sdRangeChange"; "sdMove": "sdMove"; "sdMoveError": "sdMoveError"; "sdLoadError": "sdLoadError"; "sdCellSelect": "sdCellSelect"; }, ["eventTemplate", "resourceTemplate", "cellTemplate", "emptyTemplate"], never, true, never>;
541
+ }
542
+
543
+ export { SdScheduler, SdSchedulerCellTemplateDirective, SdSchedulerEmptyTemplateDirective, SdSchedulerEventTemplateDirective, SdSchedulerResourceTemplateDirective };
544
+ export type { SdSchedulerCellSelect, SdSchedulerCellTemplateContext, SdSchedulerCellView, SdSchedulerCreateArgs, SdSchedulerCreateContext, SdSchedulerDropContext, SdSchedulerEmptyTemplateContext, SdSchedulerEvent, SdSchedulerEventTemplateContext, SdSchedulerLoadArgs, SdSchedulerMoveAxis, SdSchedulerMoveError, SdSchedulerMoveRequest, SdSchedulerOption, SdSchedulerRange, SdSchedulerResource, SdSchedulerResourceTemplateContext, SdSchedulerView, SdSchedulerVisibleRange };
@@ -45,6 +45,11 @@ declare class SdTabGroup {
45
45
  disableRipple: _angular_core.InputSignalWithTransform<boolean, unknown>;
46
46
  dynamicHeight: _angular_core.InputSignalWithTransform<boolean, unknown>;
47
47
  autoId: _angular_core.InputSignal<string | undefined>;
48
+ /**
49
+ * Ghi tab đang chọn lên query param `tab-<autoId>` và chọn lại tab đó khi mở link, để copy link giữ đúng tab. Cần
50
+ * `autoId`. Về tab ban đầu thì param bị xoá. Mặc định tắt.
51
+ */
52
+ syncQueryParams: _angular_core.InputSignalWithTransform<boolean, unknown>;
48
53
  tabClosed: _angular_core.OutputEmitterRef<SdTabClosedEvent>;
49
54
  protected matTabGroup: _angular_core.Signal<MatTabGroup | undefined>;
50
55
  private readonly matTabElement;
@@ -60,7 +65,7 @@ declare class SdTabGroup {
60
65
  realignInkBar(): void;
61
66
  protected onClose(tab: SdTab, index: number, event: MouseEvent): void;
62
67
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<SdTabGroup, never>;
63
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdTabGroup, "sd-tab-group", never, { "preserveContent": { "alias": "preserveContent"; "required": false; "isSignal": true; }; "selectedIndex": { "alias": "selectedIndex"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "headerPosition": { "alias": "headerPosition"; "required": false; "isSignal": true; }; "headerClass": { "alias": "headerClass"; "required": false; "isSignal": true; }; "headerStyle": { "alias": "headerStyle"; "required": false; "isSignal": true; }; "bodyClass": { "alias": "bodyClass"; "required": false; "isSignal": true; }; "bodyStyle": { "alias": "bodyStyle"; "required": false; "isSignal": true; }; "alignTabs": { "alias": "alignTabs"; "required": false; "isSignal": true; }; "stretchTabs": { "alias": "stretchTabs"; "required": false; "isSignal": true; }; "animationDuration": { "alias": "animationDuration"; "required": false; "isSignal": true; }; "disableRipple": { "alias": "disableRipple"; "required": false; "isSignal": true; }; "dynamicHeight": { "alias": "dynamicHeight"; "required": false; "isSignal": true; }; "autoId": { "alias": "autoId"; "required": false; "isSignal": true; }; }, { "selectedIndex": "selectedIndexChange"; "tabClosed": "tabClosed"; }, ["tabs"], never, true, never>;
68
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SdTabGroup, "sd-tab-group", never, { "preserveContent": { "alias": "preserveContent"; "required": false; "isSignal": true; }; "selectedIndex": { "alias": "selectedIndex"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "headerPosition": { "alias": "headerPosition"; "required": false; "isSignal": true; }; "headerClass": { "alias": "headerClass"; "required": false; "isSignal": true; }; "headerStyle": { "alias": "headerStyle"; "required": false; "isSignal": true; }; "bodyClass": { "alias": "bodyClass"; "required": false; "isSignal": true; }; "bodyStyle": { "alias": "bodyStyle"; "required": false; "isSignal": true; }; "alignTabs": { "alias": "alignTabs"; "required": false; "isSignal": true; }; "stretchTabs": { "alias": "stretchTabs"; "required": false; "isSignal": true; }; "animationDuration": { "alias": "animationDuration"; "required": false; "isSignal": true; }; "disableRipple": { "alias": "disableRipple"; "required": false; "isSignal": true; }; "dynamicHeight": { "alias": "dynamicHeight"; "required": false; "isSignal": true; }; "autoId": { "alias": "autoId"; "required": false; "isSignal": true; }; "syncQueryParams": { "alias": "syncQueryParams"; "required": false; "isSignal": true; }; }, { "selectedIndex": "selectedIndexChange"; "tabClosed": "tabClosed"; }, ["tabs"], never, true, never>;
64
69
  }
65
70
 
66
71
  export { SdTab, SdTabGroup };