@masterteam/components 0.0.264 → 0.0.265

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 (756) hide show
  1. package/.angular/cache/21.2.7/@masterteam/components/.tsbuildinfo +1 -0
  2. package/.angular/cache/21.2.7/@masterteam/components/angular-compiler.db +0 -0
  3. package/.angular/cache/21.2.7/@masterteam/components/angular-compiler.db-lock +0 -0
  4. package/.angular/cache/21.2.7/ng-packagr/045efd332b9db1d21b3a595a37ae03ebb11b457a5dc6e2d1cbc561b694e17f1a +1 -0
  5. package/.angular/cache/21.2.7/ng-packagr/0727b170af3d53236c0cafe16ea670d089e48d4c5c525b1dbcc1c684bb6e99c7 +1 -0
  6. package/.angular/cache/21.2.7/ng-packagr/0873bc9048494ebc33fe0a7b856324c7c4ca681b0dcaa87338e3290186906d49 +1 -0
  7. package/.angular/cache/21.2.7/ng-packagr/1010cd8fc996d0c2df519ed60085f4b1f38ccfc873900055bc75fc20a3c26bab +1 -0
  8. package/.angular/cache/21.2.7/ng-packagr/12379a8ab7254ad3df2635823a358cfce32e6d0f390be68596cc97e02307e6c4 +1 -0
  9. package/.angular/cache/21.2.7/ng-packagr/1239e7a937657b62f858d17d47738ed30facbdaa91032511e29ed148b748400b +1 -0
  10. package/.angular/cache/21.2.7/ng-packagr/133b9ecf47ba424244902da90d77cd3f135b85f95c01b16de7b2247f57518f01 +1 -0
  11. package/.angular/cache/21.2.7/ng-packagr/175d45dc6da51834e7fe937c09d23dbf28d2a823f838ef5271fd3e148776d6ec +1 -0
  12. package/.angular/cache/21.2.7/ng-packagr/19d99ad4d927324b03cdbef34331ba2c58bd580f1f0ca591cb5f8dbf436c913c +1 -0
  13. package/.angular/cache/21.2.7/ng-packagr/1a86918763f95c1c2b9fa781bda1ceedf15aead87f0e11ea1324318af43a897a +1 -0
  14. package/.angular/cache/21.2.7/ng-packagr/1f08100dbc280be7da64c809315376eb7d0cfd074916a6042f609f03f4276a8e +1 -0
  15. package/.angular/cache/21.2.7/ng-packagr/2224877a7e762b86541428e4c40d61f54f505867c305769ae42e67e4aa81bd93 +1 -0
  16. package/.angular/cache/21.2.7/ng-packagr/24957fb7ec060692ebcf1471e1bdce39f40aed938959e580048ade58015762d2 +1 -0
  17. package/.angular/cache/21.2.7/ng-packagr/295fcdc1c4462e7feae96a24255369508a559faaecc4676267749a7ce23e4b6d +1 -0
  18. package/.angular/cache/21.2.7/ng-packagr/2b37e2f2d6564d10bad1fd0ecc16453962fd855cd1e36ad7aa24baf3e4f2e8b3 +1 -0
  19. package/.angular/cache/21.2.7/ng-packagr/2c20f0929771e857b570ba2beffe91f598f299ce26d4825fe4315bfe5a3dd40a +1 -0
  20. package/.angular/cache/21.2.7/ng-packagr/37dea2e5798cad4a21d66292eeed5be26d04500d9a1534332ad42ce664a058c2 +1 -0
  21. package/.angular/cache/21.2.7/ng-packagr/3b6239b640fcb5ea7067a2655a2901d32f55372812b586aa008e77c59e8f2090 +1 -0
  22. package/.angular/cache/21.2.7/ng-packagr/3beb1b4dfe75d1e6749cf91f05d51ba4eece939f5c15f6f33ed587bfd198f0a3 +1 -0
  23. package/.angular/cache/21.2.7/ng-packagr/3f161e6c2ead4519d0663dd79199dafceb2cc22da7ce92a72b809b93bfce0bb0 +1 -0
  24. package/.angular/cache/21.2.7/ng-packagr/43551862d17cd02626e18b30243390081a6247784485660048b060a3d4ab7fa7 +1 -0
  25. package/.angular/cache/21.2.7/ng-packagr/47aedf032519b41d96866fcf8fbd4f1dfd29f9e9a534b39dee0e44d402227d2d +1 -0
  26. package/.angular/cache/21.2.7/ng-packagr/4a1768888c60921955bfdfba8b31c8d853bd7b2a7d3a7b83934de049e1e6e6a2 +1 -0
  27. package/.angular/cache/21.2.7/ng-packagr/4a783e339117597607bff17eeca0ad24d84b8cbc1e28927e7e453ccfa6223180 +1 -0
  28. package/.angular/cache/21.2.7/ng-packagr/4d9331b2050326f586cd8f6593a9e04e1c7944b2f9e98023649023c099597a5d +1 -0
  29. package/.angular/cache/21.2.7/ng-packagr/4e379f506919d47af7008658c75242aa05f0056c1caec4061d7fa5746f776049 +1 -0
  30. package/.angular/cache/21.2.7/ng-packagr/55009bb7d44552dd816ce32fa2b0f7985f3f08fefd6409c2b4f6b9ffe35dad83 +1 -0
  31. package/.angular/cache/21.2.7/ng-packagr/58ae3f1f9664f7b16844d2e4a279dd4ca9371de014cf5687320c2d5cb259a74f +1 -0
  32. package/.angular/cache/21.2.7/ng-packagr/5c08e906bd3fe1aa6c1d62f2bbb2b3f276e1c17fe45ef081e76bd1b865ac3dfa +1 -0
  33. package/.angular/cache/21.2.7/ng-packagr/5ce333a40ad635188347fa9bc601d5fd14be6baacbae7d096259d725ac9757af +1 -0
  34. package/.angular/cache/21.2.7/ng-packagr/5f32cceaee6a6ea19cc6cbff5ea089b752f13a0fdcd32597d4c99d5e1e031bb5 +1 -0
  35. package/.angular/cache/21.2.7/ng-packagr/691ad4ccdc0a8ede36e1f4e5e97638c20c2d3142916ffac3a1b172178c139205 +1 -0
  36. package/.angular/cache/21.2.7/ng-packagr/6b57160e0d2da3f31693831e84a3f4209c1f33a04abd636e34af03956e7329d8 +1 -0
  37. package/.angular/cache/21.2.7/ng-packagr/70bc711a1d7b631845885c26adc2d6b1bff47d11332b2625cedfa11e9d5ac79a +1 -0
  38. package/.angular/cache/21.2.7/ng-packagr/7427c266237012afaef486c2af94ee08a491e8d7b6fc7e5ee887980830bbd333 +1 -0
  39. package/.angular/cache/21.2.7/ng-packagr/7e8fa7c61cf9a932ba3a0e65eb73c7412e81666b7a8f923dac7b75acfbb94b1d +1 -0
  40. package/.angular/cache/21.2.7/ng-packagr/81aab7fdab43cbdfa869db759d6113ae01ec6f5e0e9061d7fc089c260886e4d1 +1 -0
  41. package/.angular/cache/21.2.7/ng-packagr/83a81758045ff710a34ea3cf6f54435a1f5dea9839d8c0adda0bbce7c3fb6e8b +1 -0
  42. package/.angular/cache/21.2.7/ng-packagr/883eae810a4c09f06617bdc2e4bc30a69f09726401b2a051840969f635d076f1 +1 -0
  43. package/.angular/cache/21.2.7/ng-packagr/8a6b9be66de40c57054dca5fde376c3cec1bec1ae191a16f1ae6a83306d9ebfe +1 -0
  44. package/.angular/cache/21.2.7/ng-packagr/8d42c8144f6929de46984094bf390a0c4168404ab13a5194839f6ba5e42bc3ce +1 -0
  45. package/.angular/cache/21.2.7/ng-packagr/91093656c61a5404f0d576f872247eeb480dd938e6999d481a97893c72b5f3d0 +1 -0
  46. package/.angular/cache/21.2.7/ng-packagr/91e881172037c63d819e30d30e390e0d7dc0dee9808b3902275ccc8b1887d864 +1 -0
  47. package/.angular/cache/21.2.7/ng-packagr/9ef28cf3a676e7bd0d37762c4868b4810efca2f241ed0dae75ebca41988e2c00 +1 -0
  48. package/.angular/cache/21.2.7/ng-packagr/a07cbea405c1831b3f686a8e57c4b500d89cbab2b95e110487890269945feeaa +1 -0
  49. package/.angular/cache/21.2.7/ng-packagr/a463deba940880d9461612c9cd00d90062bf97aa31b1c4556b8b47a967cb6882 +1 -0
  50. package/.angular/cache/21.2.7/ng-packagr/ab03ed1e4a371113b41b663d526d2b06565ceb062e6f033f726f1e455fc5d1d6 +1 -0
  51. package/.angular/cache/21.2.7/ng-packagr/ad0e84be4f2211aff6187b4bec9adbe15f0e8b36851e9c6c63b38303c2daad37 +1 -0
  52. package/.angular/cache/21.2.7/ng-packagr/aece79242dae70eb748605e37483e75e122e4ce414fa8be875499e8af26ee5d6 +1 -0
  53. package/.angular/cache/21.2.7/ng-packagr/aff32db91ce03de30d2bbc84f266fe3fb2c6629d5eeb39a364204d9499484368 +1 -0
  54. package/.angular/cache/21.2.7/ng-packagr/b0671e73a162927d28ef1742ec008e514264bc2ce29f2255bedaea553492fe5d +1 -0
  55. package/.angular/cache/21.2.7/ng-packagr/bb50d71f3cdeebbb85fd983be8103f9c216060464f8e7e534271197391e6dcf7 +1 -0
  56. package/.angular/cache/21.2.7/ng-packagr/c64241290ab30d8761b2f5493a039427f5cda1a48b5be88ce62ee5c714c0f690 +1 -0
  57. package/.angular/cache/21.2.7/ng-packagr/c794d2e79b26ab378c0dbf8afa7b8ac1337ba9afb288941d44a086cb1bd4bad2 +1 -0
  58. package/.angular/cache/21.2.7/ng-packagr/d942edf8fd8e8e884138ffcdb1a07ad14a0b5e211f8ccea1dc9ea0b48f50cfc9 +1 -0
  59. package/.angular/cache/21.2.7/ng-packagr/dbe0b9b9f18ba7b96d9c84f4fd16cde158c9701c202d00113e6f88ba93407bce +1 -0
  60. package/.angular/cache/21.2.7/ng-packagr/f564395a410a2723aac48e582f5fe416bfeaa48677cea47b10c5152d4f2b6672 +1 -0
  61. package/.angular/cache/21.2.7/ng-packagr/fc9b0d27f081ca7b2a4cbefa75136d7bd7a8c341dbaa0587855071a6003906b8 +1 -0
  62. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-avatar-text.tsbuildinfo +1 -0
  63. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-avatar.tsbuildinfo +1 -0
  64. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-breadcrumb.tsbuildinfo +1 -0
  65. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-business-fields.tsbuildinfo +1 -0
  66. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-button-group.tsbuildinfo +1 -0
  67. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-button.tsbuildinfo +1 -0
  68. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-card.tsbuildinfo +1 -0
  69. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-checkbox-field.tsbuildinfo +1 -0
  70. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-chip.tsbuildinfo +1 -0
  71. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-client-page-menu.tsbuildinfo +1 -0
  72. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-client-page.tsbuildinfo +1 -0
  73. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-color-picker-field.tsbuildinfo +1 -0
  74. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-confirmation.tsbuildinfo +1 -0
  75. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-date-field.tsbuildinfo +1 -0
  76. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-dialog.tsbuildinfo +1 -0
  77. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-drawer.tsbuildinfo +1 -0
  78. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-dynamic-drawer.tsbuildinfo +1 -0
  79. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-editor-field.tsbuildinfo +1 -0
  80. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-empty-state.tsbuildinfo +1 -0
  81. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-entities.tsbuildinfo +1 -0
  82. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-field-validation.tsbuildinfo +1 -0
  83. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-formula.tsbuildinfo +1 -0
  84. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-icon-field.tsbuildinfo +1 -0
  85. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-list.tsbuildinfo +1 -0
  86. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-location-field.tsbuildinfo +1 -0
  87. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-menu.tsbuildinfo +1 -0
  88. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-modal.tsbuildinfo +1 -0
  89. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-module-summary-card.tsbuildinfo +1 -0
  90. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-multi-select-field.tsbuildinfo +1 -0
  91. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-number-field.tsbuildinfo +1 -0
  92. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-page-header.tsbuildinfo +1 -0
  93. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-page.tsbuildinfo +1 -0
  94. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-paginator.tsbuildinfo +1 -0
  95. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-pick-list-field.tsbuildinfo +1 -0
  96. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-progress.tsbuildinfo +1 -0
  97. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-property-filter-builder.tsbuildinfo +1 -0
  98. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-radio-button-field.tsbuildinfo +1 -0
  99. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-radio-cards-field.tsbuildinfo +1 -0
  100. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-radio-cards.tsbuildinfo +1 -0
  101. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-runtime-action.tsbuildinfo +1 -0
  102. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-select-field.tsbuildinfo +1 -0
  103. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-sidebar.tsbuildinfo +1 -0
  104. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-slider-field.tsbuildinfo +1 -0
  105. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-statistic-card.tsbuildinfo +1 -0
  106. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-table.tsbuildinfo +1 -0
  107. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-tabs.tsbuildinfo +1 -0
  108. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-text-field.tsbuildinfo +1 -0
  109. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-textarea-field.tsbuildinfo +1 -0
  110. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-toast.tsbuildinfo +1 -0
  111. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-toggle-field.tsbuildinfo +1 -0
  112. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-tooltip.tsbuildinfo +1 -0
  113. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-topbar.tsbuildinfo +1 -0
  114. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-tree.tsbuildinfo +1 -0
  115. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-treeselect-field.tsbuildinfo +1 -0
  116. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-upload-field.tsbuildinfo +1 -0
  117. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-uploader.tsbuildinfo +1 -0
  118. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components-user-search-field.tsbuildinfo +1 -0
  119. package/.angular/cache/21.2.7/ng-packagr/tsbuildinfo/masterteam-components.tsbuildinfo +1 -0
  120. package/angular.json +32 -0
  121. package/api/api.ts +1 -0
  122. package/api/public-api.ts +5 -0
  123. package/assets/common.css +309 -2
  124. package/avatar/avatar.html +32 -0
  125. package/avatar/avatar.scss +0 -0
  126. package/avatar/avatar.ts +54 -0
  127. package/avatar/ng-package.json +6 -0
  128. package/avatar/public-api.ts +1 -0
  129. package/avatar-text/avatar-text.html +26 -0
  130. package/avatar-text/avatar-text.scss +0 -0
  131. package/avatar-text/avatar-text.ts +52 -0
  132. package/avatar-text/ng-package.json +6 -0
  133. package/avatar-text/public-api.ts +1 -0
  134. package/breadcrumb/breadcrumb.html +53 -0
  135. package/breadcrumb/breadcrumb.scss +0 -0
  136. package/breadcrumb/breadcrumb.ts +26 -0
  137. package/breadcrumb/ng-package.json +6 -0
  138. package/breadcrumb/public-api.ts +1 -0
  139. package/business-fields/entity-list-field/entity-list-add-token.ts +25 -0
  140. package/business-fields/entity-list-field/entity-list-field.html +70 -0
  141. package/business-fields/entity-list-field/entity-list-field.scss +3 -0
  142. package/business-fields/entity-list-field/entity-list-field.ts +1067 -0
  143. package/business-fields/lookup-matrix-field/lookup-matrix-field.html +38 -0
  144. package/business-fields/lookup-matrix-field/lookup-matrix-field.spec.ts +183 -0
  145. package/business-fields/lookup-matrix-field/lookup-matrix-field.ts +239 -0
  146. package/business-fields/lookup-module-check-list-field/lookup-module-check-list-field.html +95 -0
  147. package/business-fields/lookup-module-check-list-field/lookup-module-check-list-field.ts +336 -0
  148. package/business-fields/lookup-module-check-list-field/lookup-module-check-list-form-token.ts +42 -0
  149. package/business-fields/ng-package.json +6 -0
  150. package/business-fields/public-api.ts +8 -0
  151. package/business-fields/schedule-item-selector-field/schedule-item-selector-field.html +32 -0
  152. package/business-fields/schedule-item-selector-field/schedule-item-selector-field.ts +272 -0
  153. package/business-fields/schedule-predecessor-field/schedule-predecessor-field.html +89 -0
  154. package/business-fields/schedule-predecessor-field/schedule-predecessor-field.ts +441 -0
  155. package/business-fields/schema-connection-field/schema-connection-field.html +58 -0
  156. package/business-fields/schema-connection-field/schema-connection-field.scss +0 -0
  157. package/business-fields/schema-connection-field/schema-connection-field.ts +456 -0
  158. package/button/button.html +44 -0
  159. package/button/button.scss +0 -0
  160. package/button/button.ts +120 -0
  161. package/button/ng-package.json +6 -0
  162. package/button/public-api.ts +1 -0
  163. package/button-group/button-group.html +3 -0
  164. package/button-group/button-group.scss +20 -0
  165. package/button-group/button-group.ts +12 -0
  166. package/button-group/ng-package.json +6 -0
  167. package/button-group/public-api.ts +1 -0
  168. package/card/card.html +26 -0
  169. package/card/card.scss +0 -0
  170. package/card/card.ts +29 -0
  171. package/card/ng-package.json +6 -0
  172. package/card/public-api.ts +1 -0
  173. package/checkbox-field/checkbox-field.html +31 -0
  174. package/checkbox-field/checkbox-field.scss +0 -0
  175. package/checkbox-field/checkbox-field.spec.ts +21 -0
  176. package/checkbox-field/checkbox-field.ts +123 -0
  177. package/checkbox-field/ng-package.json +6 -0
  178. package/checkbox-field/public-api.ts +1 -0
  179. package/chip/chip.html +16 -0
  180. package/chip/chip.scss +19 -0
  181. package/chip/chip.ts +45 -0
  182. package/chip/ng-package.json +6 -0
  183. package/chip/public-api.ts +1 -0
  184. package/client-page/client-page.html +232 -0
  185. package/client-page/client-page.ts +588 -0
  186. package/client-page/index.ts +2 -0
  187. package/client-page/ng-package.json +6 -0
  188. package/client-page/public-api.ts +1 -0
  189. package/client-page-menu/client-page-menu.html +142 -0
  190. package/client-page-menu/client-page-menu.ts +199 -0
  191. package/client-page-menu/index.ts +2 -0
  192. package/client-page-menu/ng-package.json +6 -0
  193. package/client-page-menu/public-api.ts +1 -0
  194. package/color-picker-field/color-picker-field.html +45 -0
  195. package/color-picker-field/color-picker-field.scss +52 -0
  196. package/color-picker-field/color-picker-field.ts +131 -0
  197. package/color-picker-field/ng-package.json +6 -0
  198. package/color-picker-field/public-api.ts +1 -0
  199. package/confirmation/confirmation-dialog.html +83 -0
  200. package/confirmation/confirmation-dialog.scss +0 -0
  201. package/confirmation/confirmation-dialog.ts +15 -0
  202. package/confirmation/confirmation.spec.ts +43 -0
  203. package/confirmation/confirmation.ts +103 -0
  204. package/confirmation/ng-package.json +6 -0
  205. package/confirmation/public-api.ts +2 -0
  206. package/date-field/date-field.html +65 -0
  207. package/date-field/date-field.scss +0 -0
  208. package/date-field/date-field.spec.ts +118 -0
  209. package/date-field/date-field.ts +196 -0
  210. package/date-field/ng-package.json +6 -0
  211. package/date-field/public-api.ts +1 -0
  212. package/dialog/dialog.ts +29 -0
  213. package/dialog/ng-package.json +6 -0
  214. package/dialog/public-api.ts +1 -0
  215. package/drawer/drawer.html +67 -0
  216. package/drawer/drawer.scss +1 -0
  217. package/drawer/drawer.ts +348 -0
  218. package/drawer/ng-package.json +5 -0
  219. package/drawer/public-api.ts +1 -0
  220. package/dynamic-drawer/dynamic-drawer-host.ts +476 -0
  221. package/dynamic-drawer/dynamic-drawer.spec.ts +204 -0
  222. package/dynamic-drawer/dynamic-drawer.ts +235 -0
  223. package/dynamic-drawer/ng-package.json +6 -0
  224. package/dynamic-drawer/public-api.ts +2 -0
  225. package/editor-field/editor-field.html +38 -0
  226. package/editor-field/editor-field.scss +219 -0
  227. package/editor-field/editor-field.ts +126 -0
  228. package/editor-field/ng-package.json +6 -0
  229. package/editor-field/public-api.ts +1 -0
  230. package/empty-state/empty-state.html +236 -0
  231. package/empty-state/empty-state.ts +85 -0
  232. package/empty-state/ng-package.json +6 -0
  233. package/empty-state/public-api.ts +1 -0
  234. package/entities/comparison/comparison-entity-list/comparison-entity-list.html +87 -0
  235. package/entities/comparison/comparison-entity-list/comparison-entity-list.ts +93 -0
  236. package/entities/comparison/comparison-value/comparison-value.html +31 -0
  237. package/entities/comparison/comparison-value/comparison-value.ts +53 -0
  238. package/entities/currency-display.utils.spec.ts +94 -0
  239. package/entities/currency-display.utils.ts +92 -0
  240. package/entities/entities-manage/entities-manage.html +74 -0
  241. package/entities/entities-manage/entities-manage.scss +72 -0
  242. package/entities/entities-manage/entities-manage.ts +121 -0
  243. package/entities/entities-manage/entities-resize-base.ts +153 -0
  244. package/entities/entities-preview/entities-preview.css +77 -0
  245. package/entities/entities-preview/entities-preview.html +56 -0
  246. package/entities/entities-preview/entities-preview.ts +281 -0
  247. package/entities/entity-attachment/entity-attachment.html +49 -0
  248. package/entities/entity-attachment/entity-attachment.ts +462 -0
  249. package/entities/entity-checkbox/entity-checkbox.html +28 -0
  250. package/entities/entity-checkbox/entity-checkbox.ts +65 -0
  251. package/entities/entity-comparison.model.ts +39 -0
  252. package/entities/entity-connection/entity-connection.html +12 -0
  253. package/entities/entity-connection/entity-connection.ts +75 -0
  254. package/entities/entity-currency/entity-currency.html +12 -0
  255. package/entities/entity-currency/entity-currency.ts +59 -0
  256. package/entities/entity-date/entity-date.html +16 -0
  257. package/entities/entity-date/entity-date.ts +50 -0
  258. package/entities/entity-display.utils.ts +94 -0
  259. package/entities/entity-field/entity-field.ts +94 -0
  260. package/entities/entity-leaf-details/entity-leaf-details.html +35 -0
  261. package/entities/entity-leaf-details/entity-leaf-details.ts +56 -0
  262. package/entities/entity-location/entity-location.html +34 -0
  263. package/entities/entity-location/entity-location.ts +98 -0
  264. package/entities/entity-long-text/entity-long-text.html +9 -0
  265. package/entities/entity-long-text/entity-long-text.ts +45 -0
  266. package/entities/entity-lookup/entity-lookup.html +25 -0
  267. package/entities/entity-lookup/entity-lookup.ts +68 -0
  268. package/entities/entity-lookup-module-check-list/entity-lookup-module-check-list.html +39 -0
  269. package/entities/entity-lookup-module-check-list/entity-lookup-module-check-list.spec.ts +148 -0
  270. package/entities/entity-lookup-module-check-list/entity-lookup-module-check-list.ts +152 -0
  271. package/entities/entity-percentage/entity-percentage.html +22 -0
  272. package/entities/entity-percentage/entity-percentage.ts +163 -0
  273. package/entities/entity-phase-gate/entity-phase-gate.html +20 -0
  274. package/entities/entity-phase-gate/entity-phase-gate.ts +129 -0
  275. package/entities/entity-preview/entity-preview-body.html +8 -0
  276. package/entities/entity-preview/entity-preview-body.ts +19 -0
  277. package/entities/entity-preview/entity-preview.html +14 -0
  278. package/entities/entity-preview/entity-preview.ts +33 -0
  279. package/entities/entity-preview/entity-value-preview.html +62 -0
  280. package/entities/entity-preview/entity-value-preview.spec.ts +191 -0
  281. package/entities/entity-preview/entity-value-preview.ts +69 -0
  282. package/entities/entity-schedule-item/entity-schedule-item.html +19 -0
  283. package/entities/entity-schedule-item/entity-schedule-item.ts +41 -0
  284. package/entities/entity-sections.util.ts +103 -0
  285. package/entities/entity-status/entity-status.html +20 -0
  286. package/entities/entity-status/entity-status.ts +60 -0
  287. package/entities/entity-text/entity-text.html +20 -0
  288. package/entities/entity-text/entity-text.ts +35 -0
  289. package/entities/entity-user/entity-user.html +181 -0
  290. package/entities/entity-user/entity-user.ts +179 -0
  291. package/entities/entity.model.ts +407 -0
  292. package/entities/leaf-details-display.utils.ts +269 -0
  293. package/entities/ng-package.json +6 -0
  294. package/entities/percentage-color.utils.spec.ts +94 -0
  295. package/entities/percentage-color.utils.ts +80 -0
  296. package/entities/public-api.ts +30 -0
  297. package/field-validation/character-limit.validator.ts +22 -0
  298. package/field-validation/error-message.pipe.spec.ts +184 -0
  299. package/field-validation/error-message.pipe.ts +80 -0
  300. package/field-validation/field-validation.ts +168 -0
  301. package/field-validation/ng-package.json +6 -0
  302. package/field-validation/public-api.ts +2 -0
  303. package/formula/formula-editor/formula-editor.html +89 -0
  304. package/formula/formula-editor/formula-editor.scss +25 -0
  305. package/formula/formula-editor/formula-editor.ts +467 -0
  306. package/formula/formula-editor/index.ts +1 -0
  307. package/formula/formula-editor-code/formula-autocomplete-normalization.util.spec.ts +58 -0
  308. package/formula/formula-editor-code/formula-autocomplete-normalization.util.ts +64 -0
  309. package/formula/formula-editor-code/formula-completion-range.util.spec.ts +62 -0
  310. package/formula/formula-editor-code/formula-completion-range.util.ts +71 -0
  311. package/formula/formula-editor-code/formula-completion-suggestion.util.spec.ts +23 -0
  312. package/formula/formula-editor-code/formula-completion-suggestion.util.ts +18 -0
  313. package/formula/formula-editor-code/formula-editor-code.html +15 -0
  314. package/formula/formula-editor-code/formula-editor-code.scss +90 -0
  315. package/formula/formula-editor-code/formula-editor-code.ts +1095 -0
  316. package/formula/formula-editor-code/index.ts +1 -0
  317. package/formula/formula-status-bar/formula-status-bar.html +119 -0
  318. package/formula/formula-status-bar/formula-status-bar.ts +66 -0
  319. package/formula/formula-status-bar/index.ts +1 -0
  320. package/formula/formula-toolbar/formula-toolbar.html +361 -0
  321. package/formula/formula-toolbar/formula-toolbar.ts +532 -0
  322. package/formula/formula-toolbar/index.ts +2 -0
  323. package/formula/formula-toolbar/operators.ts +122 -0
  324. package/formula/models/formula-block.model.ts +61 -0
  325. package/formula/models/formula-token.model.spec.ts +57 -0
  326. package/formula/models/formula-token.model.ts +852 -0
  327. package/formula/models/index.ts +5 -0
  328. package/formula/models/smart-block.model.ts +132 -0
  329. package/formula/models/validation-result.model.ts +80 -0
  330. package/formula/ng-package.json +6 -0
  331. package/formula/public-api.ts +8 -0
  332. package/formula/runtime/formula-runtime-catalogs.ts +554 -0
  333. package/formula/runtime/formula-runtime-engine.spec.ts +328 -0
  334. package/formula/runtime/formula-runtime-engine.ts +794 -0
  335. package/formula/runtime/formula-runtime.model.ts +53 -0
  336. package/formula/runtime/index.ts +3 -0
  337. package/formula/toolbar-item/index.ts +1 -0
  338. package/formula/toolbar-item/toolbar-item.html +143 -0
  339. package/formula/toolbar-item/toolbar-item.scss +14 -0
  340. package/formula/toolbar-item/toolbar-item.ts +223 -0
  341. package/icon-field/icon-field.html +58 -0
  342. package/icon-field/icon-field.scss +24 -0
  343. package/icon-field/icon-field.spec.ts +77 -0
  344. package/icon-field/icon-field.ts +205 -0
  345. package/icon-field/ng-package.json +6 -0
  346. package/icon-field/public-api.ts +1 -0
  347. package/list/list.html +22 -0
  348. package/list/list.ts +36 -0
  349. package/list/ng-package.json +6 -0
  350. package/list/public-api.ts +1 -0
  351. package/location-field/location-field.html +86 -0
  352. package/location-field/location-field.spec.ts +295 -0
  353. package/location-field/location-field.ts +662 -0
  354. package/location-field/location-manual-dialog.html +43 -0
  355. package/location-field/location-manual-dialog.ts +104 -0
  356. package/location-field/location-value.ts +67 -0
  357. package/location-field/ng-package.json +6 -0
  358. package/location-field/public-api.ts +3 -0
  359. package/menu/menu.html +71 -0
  360. package/menu/menu.scss +3 -0
  361. package/menu/menu.ts +186 -0
  362. package/menu/ng-package.json +6 -0
  363. package/menu/public-api.ts +1 -0
  364. package/modal/modal.ts +127 -0
  365. package/modal/ng-package.json +6 -0
  366. package/modal/public-api.ts +1 -0
  367. package/module-summary-card/module-summary-card.html +43 -0
  368. package/module-summary-card/module-summary-card.scss +0 -0
  369. package/module-summary-card/module-summary-card.ts +40 -0
  370. package/module-summary-card/ng-package.json +6 -0
  371. package/module-summary-card/public-api.ts +1 -0
  372. package/multi-select-field/multi-select-field.html +140 -0
  373. package/multi-select-field/multi-select-field.scss +0 -0
  374. package/multi-select-field/multi-select-field.spec.ts +21 -0
  375. package/multi-select-field/multi-select-field.ts +397 -0
  376. package/multi-select-field/ng-package.json +6 -0
  377. package/multi-select-field/public-api.ts +1 -0
  378. package/ng-package.json +9 -0
  379. package/number-field/ng-package.json +6 -0
  380. package/number-field/number-field.html +39 -0
  381. package/number-field/number-field.scss +8 -0
  382. package/number-field/number-field.spec.ts +21 -0
  383. package/number-field/number-field.ts +124 -0
  384. package/number-field/public-api.ts +1 -0
  385. package/package.json +54 -278
  386. package/page/index.ts +1 -0
  387. package/page/ng-package.json +6 -0
  388. package/page/page.html +37 -0
  389. package/page/page.ts +43 -0
  390. package/page/public-api.ts +1 -0
  391. package/page-header/index.ts +2 -0
  392. package/page-header/ng-package.json +6 -0
  393. package/page-header/page-header.html +60 -0
  394. package/page-header/page-header.ts +54 -0
  395. package/page-header/public-api.ts +1 -0
  396. package/paginator/ng-package.json +6 -0
  397. package/paginator/paginator.html +50 -0
  398. package/paginator/paginator.scss +0 -0
  399. package/paginator/paginator.ts +53 -0
  400. package/paginator/public-api.ts +1 -0
  401. package/pick-list-field/ng-package.json +6 -0
  402. package/pick-list-field/pick-list-field.html +39 -0
  403. package/pick-list-field/pick-list-field.scss +26 -0
  404. package/pick-list-field/pick-list-field.ts +259 -0
  405. package/pick-list-field/public-api.ts +1 -0
  406. package/progress/ng-package.json +6 -0
  407. package/progress/progress.html +36 -0
  408. package/progress/progress.ts +61 -0
  409. package/progress/public-api.ts +1 -0
  410. package/property-filter-builder/ng-package.json +6 -0
  411. package/property-filter-builder/property-filter-builder.html +192 -0
  412. package/property-filter-builder/property-filter-builder.ts +548 -0
  413. package/property-filter-builder/public-api.ts +1 -0
  414. package/radio-button-field/ng-package.json +6 -0
  415. package/radio-button-field/public-api.ts +1 -0
  416. package/radio-button-field/radio-button-field.html +44 -0
  417. package/radio-button-field/radio-button-field.scss +0 -0
  418. package/radio-button-field/radio-button-field.ts +114 -0
  419. package/radio-cards/ng-package.json +6 -0
  420. package/radio-cards/public-api.ts +1 -0
  421. package/radio-cards/radio-cards.css +3 -0
  422. package/radio-cards/radio-cards.html +54 -0
  423. package/radio-cards/radio-cards.spec.ts +22 -0
  424. package/radio-cards/radio-cards.ts +92 -0
  425. package/radio-cards-field/ng-package.json +6 -0
  426. package/radio-cards-field/public-api.ts +1 -0
  427. package/radio-cards-field/radio-cards-field.css +0 -0
  428. package/radio-cards-field/radio-cards-field.html +38 -0
  429. package/radio-cards-field/radio-cards-field.spec.ts +22 -0
  430. package/radio-cards-field/radio-cards-field.ts +182 -0
  431. package/runtime-action/ng-package.json +6 -0
  432. package/runtime-action/payload-builder.ts +246 -0
  433. package/runtime-action/public-api.ts +4 -0
  434. package/runtime-action/runtime-action-context.store.ts +26 -0
  435. package/runtime-action/runtime-action.runner.ts +302 -0
  436. package/runtime-action/runtime-action.types.ts +82 -0
  437. package/select-field/current-user.util.ts +54 -0
  438. package/select-field/ng-package.json +6 -0
  439. package/select-field/public-api.ts +1 -0
  440. package/select-field/select-field.html +142 -0
  441. package/select-field/select-field.scss +0 -0
  442. package/select-field/select-field.spec.ts +21 -0
  443. package/select-field/select-field.ts +471 -0
  444. package/sidebar/ng-package.json +6 -0
  445. package/sidebar/public-api.ts +1 -0
  446. package/sidebar/sidebar.html +368 -0
  447. package/sidebar/sidebar.ts +303 -0
  448. package/slider-field/ng-package.json +7 -0
  449. package/slider-field/public-api.ts +1 -0
  450. package/slider-field/slider-field.html +33 -0
  451. package/slider-field/slider-field.scss +11 -0
  452. package/slider-field/slider-field.spec.ts +44 -0
  453. package/slider-field/slider-field.ts +166 -0
  454. package/src/lib/base/base.facade.ts +159 -0
  455. package/src/lib/base/crud-base.state.ts +248 -0
  456. package/src/lib/config/date-format.config.ts +55 -0
  457. package/src/lib/config/ds-identity.preset.ts +538 -0
  458. package/src/lib/config/ds-identity.tokens.ts +209 -0
  459. package/src/lib/config/dynamic-form.model.ts +1162 -0
  460. package/src/lib/config/povide-messages.ts +5 -0
  461. package/src/lib/config/provide-confirmation.ts +5 -0
  462. package/src/lib/config/providemt.ts +506 -0
  463. package/src/lib/config/public-api.ts +0 -0
  464. package/src/lib/pipes/mt-date-format.pipe.spec.ts +60 -0
  465. package/src/lib/pipes/mt-date-format.pipe.ts +81 -0
  466. package/src/lib/utils/api-request.helper.ts +59 -0
  467. package/src/lib/utils/clock-time.util.ts +58 -0
  468. package/src/lib/utils/color.utils.ts +187 -0
  469. package/src/lib/utils/entity-adapter.ts +50 -0
  470. package/src/lib/utils/field-id.ts +42 -0
  471. package/src/lib/utils/http-context.ts +35 -0
  472. package/src/lib/utils/inputs.ts +6 -0
  473. package/src/lib/utils/state-helpers.ts +49 -0
  474. package/src/lib/utils/theme.ts +281 -0
  475. package/src/public-api.ts +30 -0
  476. package/statistic-card/ng-package.json +6 -0
  477. package/statistic-card/public-api.ts +1 -0
  478. package/statistic-card/statistic-card.html +31 -0
  479. package/statistic-card/statistic-card.scss +0 -0
  480. package/statistic-card/statistic-card.ts +59 -0
  481. package/table/ng-package.json +7 -0
  482. package/table/public-api.ts +10 -0
  483. package/table/table-actions-menu/public-api.ts +1 -0
  484. package/table/table-actions-menu/table-actions-menu.html +75 -0
  485. package/table/table-actions-menu/table-actions-menu.ts +171 -0
  486. package/table/table-caption/public-api.ts +1 -0
  487. package/table/table-caption/table-caption.html +118 -0
  488. package/table/table-caption/table-caption.ts +221 -0
  489. package/table/table-column-filter/public-api.ts +1 -0
  490. package/table/table-column-filter/table-column-filter.html +44 -0
  491. package/table/table-column-filter/table-column-filter.ts +106 -0
  492. package/table/table-export/html-to-text.util.ts +67 -0
  493. package/table/table-export/public-api.ts +1 -0
  494. package/table/table-export/table-export.service.spec.ts +186 -0
  495. package/table/table-export/table-export.service.ts +325 -0
  496. package/table/table-filter/public-api.ts +1 -0
  497. package/table/table-filter/table-filter.css +9 -0
  498. package/table/table-filter/table-filter.html +63 -0
  499. package/table/table-filter/table-filter.ts +126 -0
  500. package/table/table-filter-field/public-api.ts +1 -0
  501. package/table/table-filter-field/table-filter-field.html +182 -0
  502. package/table/table-filter-field/table-filter-field.ts +208 -0
  503. package/table/table-grouping/public-api.ts +1 -0
  504. package/table/table-grouping/table-grouping.spec.ts +218 -0
  505. package/table/table-grouping/table-grouping.ts +237 -0
  506. package/table/table-types.ts +242 -0
  507. package/table/table-value.utils.spec.ts +63 -0
  508. package/table/table-value.utils.ts +1014 -0
  509. package/table/table.css +145 -0
  510. package/table/table.html +572 -0
  511. package/table/table.ts +2042 -0
  512. package/tabs/ng-package.json +6 -0
  513. package/tabs/public-api.ts +1 -0
  514. package/tabs/tabs.html +417 -0
  515. package/tabs/tabs.scss +3 -0
  516. package/tabs/tabs.spec.ts +79 -0
  517. package/tabs/tabs.ts +397 -0
  518. package/text-field/ng-package.json +6 -0
  519. package/text-field/public-api.ts +1 -0
  520. package/text-field/text-field.html +75 -0
  521. package/text-field/text-field.scss +56 -0
  522. package/text-field/text-field.ts +251 -0
  523. package/textarea-field/ng-package.json +6 -0
  524. package/textarea-field/public-api.ts +1 -0
  525. package/textarea-field/textarea-field.html +37 -0
  526. package/textarea-field/textarea-field.scss +0 -0
  527. package/textarea-field/textarea-field.spec.ts +21 -0
  528. package/textarea-field/textarea-field.ts +169 -0
  529. package/toast/ng-package.json +6 -0
  530. package/toast/public-api.ts +2 -0
  531. package/toast/toast.html +18 -0
  532. package/toast/toast.service.ts +67 -0
  533. package/toast/toast.ts +21 -0
  534. package/toggle-field/ng-package.json +6 -0
  535. package/toggle-field/public-api.ts +1 -0
  536. package/toggle-field/toggle-field.html +78 -0
  537. package/toggle-field/toggle-field.scss +24 -0
  538. package/toggle-field/toggle-field.ts +150 -0
  539. package/tooltip/ng-package.json +6 -0
  540. package/tooltip/public-api.ts +2 -0
  541. package/tooltip/tooltip.ts +30 -0
  542. package/tooltip/truncate-tooltip.ts +124 -0
  543. package/topbar/ng-package.json +6 -0
  544. package/topbar/public-api.ts +1 -0
  545. package/topbar/topbar.html +52 -0
  546. package/topbar/topbar.ts +27 -0
  547. package/tree/ng-package.json +6 -0
  548. package/tree/public-api.ts +2 -0
  549. package/tree/tree-types.ts +55 -0
  550. package/tree/tree.html +126 -0
  551. package/tree/tree.scss +1 -0
  552. package/tree/tree.ts +303 -0
  553. package/treeselect-field/ng-package.json +6 -0
  554. package/treeselect-field/public-api.ts +1 -0
  555. package/treeselect-field/treeselect-field.html +71 -0
  556. package/treeselect-field/treeselect-field.ts +348 -0
  557. package/tsconfig.check.json +20 -0
  558. package/tsconfig.json +16 -0
  559. package/tsconfig.spec.json +24 -0
  560. package/upload-field/ng-package.json +6 -0
  561. package/upload-field/public-api.ts +2 -0
  562. package/upload-field/secure-image.pipe.ts +258 -0
  563. package/upload-field/upload-field.html +274 -0
  564. package/upload-field/upload-field.scss +0 -0
  565. package/upload-field/upload-field.spec.ts +169 -0
  566. package/upload-field/upload-field.ts +764 -0
  567. package/upload-field/upload-file-preview/upload-file-preview.html +41 -0
  568. package/upload-field/upload-file-preview/upload-file-preview.scss +0 -0
  569. package/upload-field/upload-file-preview/upload-file-preview.ts +57 -0
  570. package/upload-field/upload-user-preview/upload-user-preview.css +0 -0
  571. package/upload-field/upload-user-preview/upload-user-preview.html +73 -0
  572. package/upload-field/upload-user-preview/upload-user-preview.ts +54 -0
  573. package/uploader/ng-package.json +6 -0
  574. package/uploader/public-api.ts +1 -0
  575. package/uploader/uploader.service.spec.ts +271 -0
  576. package/uploader/uploader.service.ts +733 -0
  577. package/user-search-field/ng-package.json +6 -0
  578. package/user-search-field/public-api.ts +1 -0
  579. package/user-search-field/user-search-field.html +88 -0
  580. package/user-search-field/user-search-field.scss +4 -0
  581. package/user-search-field/user-search-field.spec.ts +176 -0
  582. package/user-search-field/user-search-field.ts +483 -0
  583. package/fesm2022/masterteam-components-avatar-text.mjs +0 -46
  584. package/fesm2022/masterteam-components-avatar-text.mjs.map +0 -1
  585. package/fesm2022/masterteam-components-avatar.mjs +0 -50
  586. package/fesm2022/masterteam-components-avatar.mjs.map +0 -1
  587. package/fesm2022/masterteam-components-breadcrumb.mjs +0 -27
  588. package/fesm2022/masterteam-components-breadcrumb.mjs.map +0 -1
  589. package/fesm2022/masterteam-components-business-fields.mjs +0 -1907
  590. package/fesm2022/masterteam-components-business-fields.mjs.map +0 -1
  591. package/fesm2022/masterteam-components-button-group.mjs +0 -20
  592. package/fesm2022/masterteam-components-button-group.mjs.map +0 -1
  593. package/fesm2022/masterteam-components-button.mjs +0 -82
  594. package/fesm2022/masterteam-components-button.mjs.map +0 -1
  595. package/fesm2022/masterteam-components-card.mjs +0 -28
  596. package/fesm2022/masterteam-components-card.mjs.map +0 -1
  597. package/fesm2022/masterteam-components-checkbox-field.mjs +0 -92
  598. package/fesm2022/masterteam-components-checkbox-field.mjs.map +0 -1
  599. package/fesm2022/masterteam-components-chip.mjs +0 -39
  600. package/fesm2022/masterteam-components-chip.mjs.map +0 -1
  601. package/fesm2022/masterteam-components-client-page-menu.mjs +0 -153
  602. package/fesm2022/masterteam-components-client-page-menu.mjs.map +0 -1
  603. package/fesm2022/masterteam-components-client-page.mjs +0 -413
  604. package/fesm2022/masterteam-components-client-page.mjs.map +0 -1
  605. package/fesm2022/masterteam-components-color-picker-field.mjs +0 -106
  606. package/fesm2022/masterteam-components-color-picker-field.mjs.map +0 -1
  607. package/fesm2022/masterteam-components-confirmation.mjs +0 -98
  608. package/fesm2022/masterteam-components-confirmation.mjs.map +0 -1
  609. package/fesm2022/masterteam-components-date-field.mjs +0 -158
  610. package/fesm2022/masterteam-components-date-field.mjs.map +0 -1
  611. package/fesm2022/masterteam-components-dialog.mjs +0 -33
  612. package/fesm2022/masterteam-components-dialog.mjs.map +0 -1
  613. package/fesm2022/masterteam-components-drawer.mjs +0 -268
  614. package/fesm2022/masterteam-components-drawer.mjs.map +0 -1
  615. package/fesm2022/masterteam-components-dynamic-drawer.mjs +0 -608
  616. package/fesm2022/masterteam-components-dynamic-drawer.mjs.map +0 -1
  617. package/fesm2022/masterteam-components-editor-field.mjs +0 -103
  618. package/fesm2022/masterteam-components-editor-field.mjs.map +0 -1
  619. package/fesm2022/masterteam-components-empty-state.mjs +0 -53
  620. package/fesm2022/masterteam-components-empty-state.mjs.map +0 -1
  621. package/fesm2022/masterteam-components-entities.mjs +0 -2183
  622. package/fesm2022/masterteam-components-entities.mjs.map +0 -1
  623. package/fesm2022/masterteam-components-field-validation.mjs +0 -237
  624. package/fesm2022/masterteam-components-field-validation.mjs.map +0 -1
  625. package/fesm2022/masterteam-components-formula.mjs +0 -3848
  626. package/fesm2022/masterteam-components-formula.mjs.map +0 -1
  627. package/fesm2022/masterteam-components-icon-field.mjs +0 -158
  628. package/fesm2022/masterteam-components-icon-field.mjs.map +0 -1
  629. package/fesm2022/masterteam-components-list.mjs +0 -31
  630. package/fesm2022/masterteam-components-list.mjs.map +0 -1
  631. package/fesm2022/masterteam-components-location-field.mjs +0 -607
  632. package/fesm2022/masterteam-components-location-field.mjs.map +0 -1
  633. package/fesm2022/masterteam-components-menu.mjs +0 -135
  634. package/fesm2022/masterteam-components-menu.mjs.map +0 -1
  635. package/fesm2022/masterteam-components-modal.mjs +0 -108
  636. package/fesm2022/masterteam-components-modal.mjs.map +0 -1
  637. package/fesm2022/masterteam-components-module-summary-card.mjs +0 -34
  638. package/fesm2022/masterteam-components-module-summary-card.mjs.map +0 -1
  639. package/fesm2022/masterteam-components-multi-select-field.mjs +0 -321
  640. package/fesm2022/masterteam-components-multi-select-field.mjs.map +0 -1
  641. package/fesm2022/masterteam-components-number-field.mjs +0 -102
  642. package/fesm2022/masterteam-components-number-field.mjs.map +0 -1
  643. package/fesm2022/masterteam-components-page-header.mjs +0 -42
  644. package/fesm2022/masterteam-components-page-header.mjs.map +0 -1
  645. package/fesm2022/masterteam-components-page.mjs +0 -35
  646. package/fesm2022/masterteam-components-page.mjs.map +0 -1
  647. package/fesm2022/masterteam-components-paginator.mjs +0 -43
  648. package/fesm2022/masterteam-components-paginator.mjs.map +0 -1
  649. package/fesm2022/masterteam-components-pick-list-field.mjs +0 -210
  650. package/fesm2022/masterteam-components-pick-list-field.mjs.map +0 -1
  651. package/fesm2022/masterteam-components-progress.mjs +0 -63
  652. package/fesm2022/masterteam-components-progress.mjs.map +0 -1
  653. package/fesm2022/masterteam-components-property-filter-builder.mjs +0 -386
  654. package/fesm2022/masterteam-components-property-filter-builder.mjs.map +0 -1
  655. package/fesm2022/masterteam-components-radio-button-field.mjs +0 -85
  656. package/fesm2022/masterteam-components-radio-button-field.mjs.map +0 -1
  657. package/fesm2022/masterteam-components-radio-cards-field.mjs +0 -131
  658. package/fesm2022/masterteam-components-radio-cards-field.mjs.map +0 -1
  659. package/fesm2022/masterteam-components-radio-cards.mjs +0 -74
  660. package/fesm2022/masterteam-components-radio-cards.mjs.map +0 -1
  661. package/fesm2022/masterteam-components-runtime-action.mjs +0 -406
  662. package/fesm2022/masterteam-components-runtime-action.mjs.map +0 -1
  663. package/fesm2022/masterteam-components-select-field.mjs +0 -415
  664. package/fesm2022/masterteam-components-select-field.mjs.map +0 -1
  665. package/fesm2022/masterteam-components-sidebar.mjs +0 -155
  666. package/fesm2022/masterteam-components-sidebar.mjs.map +0 -1
  667. package/fesm2022/masterteam-components-slider-field.mjs +0 -128
  668. package/fesm2022/masterteam-components-slider-field.mjs.map +0 -1
  669. package/fesm2022/masterteam-components-statistic-card.mjs +0 -42
  670. package/fesm2022/masterteam-components-statistic-card.mjs.map +0 -1
  671. package/fesm2022/masterteam-components-table.mjs +0 -3372
  672. package/fesm2022/masterteam-components-table.mjs.map +0 -1
  673. package/fesm2022/masterteam-components-tabs.mjs +0 -289
  674. package/fesm2022/masterteam-components-tabs.mjs.map +0 -1
  675. package/fesm2022/masterteam-components-text-field.mjs +0 -202
  676. package/fesm2022/masterteam-components-text-field.mjs.map +0 -1
  677. package/fesm2022/masterteam-components-textarea-field.mjs +0 -126
  678. package/fesm2022/masterteam-components-textarea-field.mjs.map +0 -1
  679. package/fesm2022/masterteam-components-toast.mjs +0 -80
  680. package/fesm2022/masterteam-components-toast.mjs.map +0 -1
  681. package/fesm2022/masterteam-components-toggle-field.mjs +0 -116
  682. package/fesm2022/masterteam-components-toggle-field.mjs.map +0 -1
  683. package/fesm2022/masterteam-components-tooltip.mjs +0 -147
  684. package/fesm2022/masterteam-components-tooltip.mjs.map +0 -1
  685. package/fesm2022/masterteam-components-topbar.mjs +0 -32
  686. package/fesm2022/masterteam-components-topbar.mjs.map +0 -1
  687. package/fesm2022/masterteam-components-tree.mjs +0 -260
  688. package/fesm2022/masterteam-components-tree.mjs.map +0 -1
  689. package/fesm2022/masterteam-components-treeselect-field.mjs +0 -265
  690. package/fesm2022/masterteam-components-treeselect-field.mjs.map +0 -1
  691. package/fesm2022/masterteam-components-upload-field.mjs +0 -846
  692. package/fesm2022/masterteam-components-upload-field.mjs.map +0 -1
  693. package/fesm2022/masterteam-components-uploader.mjs +0 -425
  694. package/fesm2022/masterteam-components-uploader.mjs.map +0 -1
  695. package/fesm2022/masterteam-components-user-search-field.mjs +0 -374
  696. package/fesm2022/masterteam-components-user-search-field.mjs.map +0 -1
  697. package/fesm2022/masterteam-components.mjs +0 -2512
  698. package/fesm2022/masterteam-components.mjs.map +0 -1
  699. package/types/masterteam-components-avatar-text.d.ts +0 -23
  700. package/types/masterteam-components-avatar.d.ts +0 -23
  701. package/types/masterteam-components-breadcrumb.d.ts +0 -18
  702. package/types/masterteam-components-business-fields.d.ts +0 -675
  703. package/types/masterteam-components-button-group.d.ts +0 -8
  704. package/types/masterteam-components-button.d.ts +0 -62
  705. package/types/masterteam-components-card.d.ts +0 -14
  706. package/types/masterteam-components-checkbox-field.d.ts +0 -38
  707. package/types/masterteam-components-chip.d.ts +0 -21
  708. package/types/masterteam-components-client-page-menu.d.ts +0 -55
  709. package/types/masterteam-components-client-page.d.ts +0 -115
  710. package/types/masterteam-components-color-picker-field.d.ts +0 -39
  711. package/types/masterteam-components-confirmation.d.ts +0 -41
  712. package/types/masterteam-components-date-field.d.ts +0 -57
  713. package/types/masterteam-components-dialog.d.ts +0 -12
  714. package/types/masterteam-components-drawer.d.ts +0 -62
  715. package/types/masterteam-components-dynamic-drawer.d.ts +0 -159
  716. package/types/masterteam-components-editor-field.d.ts +0 -39
  717. package/types/masterteam-components-empty-state.d.ts +0 -47
  718. package/types/masterteam-components-entities.d.ts +0 -1102
  719. package/types/masterteam-components-field-validation.d.ts +0 -59
  720. package/types/masterteam-components-formula.d.ts +0 -759
  721. package/types/masterteam-components-icon-field.d.ts +0 -44
  722. package/types/masterteam-components-list.d.ts +0 -18
  723. package/types/masterteam-components-location-field.d.ts +0 -173
  724. package/types/masterteam-components-menu.d.ts +0 -55
  725. package/types/masterteam-components-modal.d.ts +0 -30
  726. package/types/masterteam-components-module-summary-card.d.ts +0 -18
  727. package/types/masterteam-components-multi-select-field.d.ts +0 -104
  728. package/types/masterteam-components-number-field.d.ts +0 -47
  729. package/types/masterteam-components-page-header.d.ts +0 -30
  730. package/types/masterteam-components-page.d.ts +0 -26
  731. package/types/masterteam-components-paginator.d.ts +0 -20
  732. package/types/masterteam-components-pick-list-field.d.ts +0 -65
  733. package/types/masterteam-components-progress.d.ts +0 -30
  734. package/types/masterteam-components-property-filter-builder.d.ts +0 -90
  735. package/types/masterteam-components-radio-button-field.d.ts +0 -41
  736. package/types/masterteam-components-radio-cards-field.d.ts +0 -39
  737. package/types/masterteam-components-radio-cards.d.ts +0 -33
  738. package/types/masterteam-components-runtime-action.d.ts +0 -105
  739. package/types/masterteam-components-select-field.d.ts +0 -136
  740. package/types/masterteam-components-sidebar.d.ts +0 -71
  741. package/types/masterteam-components-slider-field.d.ts +0 -41
  742. package/types/masterteam-components-statistic-card.d.ts +0 -28
  743. package/types/masterteam-components-table.d.ts +0 -937
  744. package/types/masterteam-components-tabs.d.ts +0 -80
  745. package/types/masterteam-components-text-field.d.ts +0 -60
  746. package/types/masterteam-components-textarea-field.d.ts +0 -45
  747. package/types/masterteam-components-toast.d.ts +0 -27
  748. package/types/masterteam-components-toggle-field.d.ts +0 -44
  749. package/types/masterteam-components-tooltip.d.ts +0 -26
  750. package/types/masterteam-components-topbar.d.ts +0 -20
  751. package/types/masterteam-components-tree.d.ts +0 -106
  752. package/types/masterteam-components-treeselect-field.d.ts +0 -79
  753. package/types/masterteam-components-upload-field.d.ts +0 -112
  754. package/types/masterteam-components-uploader.d.ts +0 -53
  755. package/types/masterteam-components-user-search-field.d.ts +0 -110
  756. package/types/masterteam-components.d.ts +0 -1261
@@ -0,0 +1,218 @@
1
+ import { signal } from '@angular/core';
2
+ import { ColumnDef } from '../table-types';
3
+ import { TableGroupingController } from './table-grouping';
4
+
5
+ /**
6
+ * Builds a controller over fixed columns/rows. Sort signals are writable so the
7
+ * "grouping pins the sort" behaviour can be asserted.
8
+ */
9
+ function createController(columns: ColumnDef[], rows: unknown[]) {
10
+ const groupBy = signal<string | null>(null);
11
+ const sortField = signal<string | null>(null);
12
+ const sortDirection = signal<'asc' | 'desc' | null>(null);
13
+
14
+ const controller = new TableGroupingController(
15
+ signal(columns),
16
+ signal(rows),
17
+ groupBy,
18
+ sortField,
19
+ sortDirection,
20
+ );
21
+
22
+ return { controller, groupBy, sortField, sortDirection };
23
+ }
24
+
25
+ /** Mirrors how a Work Center runtime row reaches the table. */
26
+ function levelRow(
27
+ label: string | null,
28
+ levelDataId: number | null,
29
+ id: string,
30
+ ) {
31
+ return {
32
+ id,
33
+ levelDataName: {
34
+ key: 'levelDataName',
35
+ label: 'Level Name',
36
+ type: 'entity',
37
+ viewType: 'Text',
38
+ value: label ?? '—',
39
+ },
40
+ __mtLevelGroup: label
41
+ ? levelDataId === null
42
+ ? `name:${label}`
43
+ : `id:${levelDataId}`
44
+ : '',
45
+ };
46
+ }
47
+
48
+ const LEVEL_COLUMN: ColumnDef = {
49
+ key: 'levelDataName',
50
+ label: 'Level Name',
51
+ type: 'entity',
52
+ groupable: true,
53
+ groupKey: '__mtLevelGroup',
54
+ };
55
+
56
+ describe('TableGroupingController', () => {
57
+ describe('groupableColumns', () => {
58
+ it('offers a text column that explicitly opts in', () => {
59
+ const { controller } = createController([LEVEL_COLUMN], []);
60
+
61
+ expect(controller.groupableColumns().map((col) => col.key)).toEqual([
62
+ 'levelDataName',
63
+ ]);
64
+ });
65
+
66
+ it('still excludes a text column that has not opted in', () => {
67
+ const { controller } = createController(
68
+ [{ key: 'title', label: 'Title', type: 'text' }],
69
+ [],
70
+ );
71
+
72
+ expect(controller.groupableColumns()).toEqual([]);
73
+ });
74
+
75
+ it('offers categorical entity columns by their view type', () => {
76
+ const { controller } = createController(
77
+ [
78
+ // A LookupMatrix (e.g. a risk Classification) filters as free text
79
+ // but its values are a small fixed set.
80
+ {
81
+ key: 'classification',
82
+ label: 'Classification',
83
+ type: 'entity',
84
+ viewType: 'LookupMatrix',
85
+ } as ColumnDef,
86
+ {
87
+ key: 'status',
88
+ label: 'Status',
89
+ type: 'entity',
90
+ viewType: 'Lookup',
91
+ } as ColumnDef,
92
+ {
93
+ key: 'createdBy',
94
+ label: 'Created By',
95
+ type: 'entity',
96
+ viewType: 'User',
97
+ } as ColumnDef,
98
+ ],
99
+ [],
100
+ );
101
+
102
+ expect(controller.groupableColumns().map((col) => col.key)).toEqual([
103
+ 'classification',
104
+ 'status',
105
+ 'createdBy',
106
+ ]);
107
+ });
108
+
109
+ it('excludes entity columns whose values are unique per row', () => {
110
+ const { controller } = createController(
111
+ [
112
+ {
113
+ key: 'title',
114
+ label: 'Title',
115
+ type: 'entity',
116
+ viewType: 'Text',
117
+ } as ColumnDef,
118
+ {
119
+ key: 'dueDate',
120
+ label: 'Due',
121
+ type: 'entity',
122
+ viewType: 'Date',
123
+ } as ColumnDef,
124
+ {
125
+ key: 'progress',
126
+ label: 'Progress',
127
+ type: 'entity',
128
+ viewType: 'Percentage',
129
+ } as ColumnDef,
130
+ ],
131
+ [],
132
+ );
133
+
134
+ expect(controller.groupableColumns()).toEqual([]);
135
+ });
136
+
137
+ it('lets a low-cardinality column opt out', () => {
138
+ const { controller } = createController(
139
+ [{ key: 'status', label: 'Status', type: 'status', groupable: false }],
140
+ [],
141
+ );
142
+
143
+ expect(controller.groupableColumns()).toEqual([]);
144
+ });
145
+ });
146
+
147
+ describe('groupKey identity', () => {
148
+ it('keeps records with the same label in separate groups', () => {
149
+ const rows = [
150
+ levelRow('Project Gamma', 4201, 'general-task:1'),
151
+ levelRow('Project Gamma', 4202, 'general-task:2'),
152
+ ];
153
+ const { controller, groupBy } = createController([LEVEL_COLUMN], rows);
154
+ groupBy.set('levelDataName');
155
+
156
+ expect(controller.getGroupSortKey(rows[0])).toBe('id:4201');
157
+ expect(controller.getGroupSortKey(rows[1])).toBe('id:4202');
158
+ expect(controller.getGroupSortKey(rows[0])).not.toBe(
159
+ controller.getGroupSortKey(rows[1]),
160
+ );
161
+ // Both still render the same visible label.
162
+ expect(controller.getGroupLabel(rows[0])).toBe('Project Gamma');
163
+ expect(controller.getGroupLabel(rows[1])).toBe('Project Gamma');
164
+ });
165
+
166
+ it('collapses rows with no visible label into one group', () => {
167
+ const rows = [
168
+ levelRow(null, 4201, 'general-task:3'),
169
+ levelRow(null, 9999, 'general-task:4'),
170
+ ];
171
+ const { controller, groupBy } = createController([LEVEL_COLUMN], rows);
172
+ groupBy.set('levelDataName');
173
+
174
+ expect(controller.getGroupSortKey(rows[0])).toBe(
175
+ controller.getGroupSortKey(rows[1]),
176
+ );
177
+ expect(controller.getGroupLabel(rows[0])).toBe('—');
178
+ expect(controller.getGroupCount(rows[0])).toBe(2);
179
+ });
180
+
181
+ it('counts each identity separately even when labels collide', () => {
182
+ const rows = [
183
+ levelRow('Project Gamma', 4201, 'general-task:1'),
184
+ levelRow('Project Gamma', 4201, 'general-task:2'),
185
+ levelRow('Project Gamma', 4202, 'general-task:3'),
186
+ ];
187
+ const { controller, groupBy } = createController([LEVEL_COLUMN], rows);
188
+ groupBy.set('levelDataName');
189
+
190
+ expect(controller.getGroupCount(rows[0])).toBe(2);
191
+ expect(controller.getGroupCount(rows[2])).toBe(1);
192
+ });
193
+
194
+ it('falls back to the label when no groupKey is configured', () => {
195
+ const column: ColumnDef = { key: 'status', label: 'Status' };
196
+ const rows = [{ status: 'Active' }, { status: 'Active' }];
197
+ const { controller, groupBy } = createController([column], rows);
198
+ groupBy.set('status');
199
+
200
+ expect(controller.getGroupSortKey(rows[0])).toBe('Active');
201
+ expect(controller.getGroupCount(rows[0])).toBe(2);
202
+ });
203
+ });
204
+
205
+ describe('setGroup', () => {
206
+ it('pins the sort to the grouped column', () => {
207
+ const { controller, sortField, sortDirection } = createController(
208
+ [LEVEL_COLUMN],
209
+ [],
210
+ );
211
+
212
+ controller.setGroup('levelDataName');
213
+
214
+ expect(sortField()).toBe('levelDataName');
215
+ expect(sortDirection()).toBe('asc');
216
+ });
217
+ });
218
+ });
@@ -0,0 +1,237 @@
1
+ import { computed, Signal, WritableSignal } from '@angular/core';
2
+ import { TranslocoService } from '@jsverse/transloco';
3
+ import type { EntityViewType } from '@masterteam/components/entities';
4
+ import { ColumnDef, FilterConfig } from '../table-types';
5
+ import { TableValueResolver } from '../table-value.utils';
6
+
7
+ /**
8
+ * Column filter types that produce useful (low-cardinality) row groups.
9
+ * Unique-valued columns (plain text, dates) would create a group per row —
10
+ * pointless visually and slow — so we exclude them from the group picker.
11
+ */
12
+ const GROUPABLE_FILTER_TYPES: ReadonlySet<FilterConfig['type']> = new Set([
13
+ 'select',
14
+ 'boolean',
15
+ 'user',
16
+ ]);
17
+
18
+ /**
19
+ * Entity view types whose values are categorical enough to bucket rows by.
20
+ * Entity columns are judged on this rather than their filter type: a
21
+ * `LookupMatrix` (e.g. a risk Classification) filters as free text but its
22
+ * values are a small fixed set, so it groups perfectly well.
23
+ */
24
+ const GROUPABLE_ENTITY_VIEW_TYPES: ReadonlySet<EntityViewType> = new Set([
25
+ 'Status',
26
+ 'Lookup',
27
+ 'LookupMatrix',
28
+ 'PhaseGate',
29
+ 'User',
30
+ 'Checkbox',
31
+ ]);
32
+
33
+ /** Bucket every row whose grouped value is missing/empty falls into. */
34
+ export const EMPTY_GROUP_KEY = '__mt_group_empty__';
35
+
36
+ /**
37
+ * Pure controller owning all row-grouping concerns. Table instantiates one and
38
+ * binds its signals — keeps grouping logic out of table.ts.
39
+ *
40
+ * PrimeNG's subheader grouping renders only when `sortField === groupRowsBy`.
41
+ * `setGroup` therefore also pins the sort to the grouped column; clearing the
42
+ * group leaves the user's sort untouched.
43
+ */
44
+ export class TableGroupingController {
45
+ constructor(
46
+ private readonly columns: Signal<ColumnDef[]>,
47
+ private readonly rows: Signal<unknown[]>,
48
+ private readonly groupBy: WritableSignal<string | null>,
49
+ private readonly sortField: WritableSignal<string | null>,
50
+ private readonly sortDirection: WritableSignal<'asc' | 'desc' | null>,
51
+ private readonly transloco?: TranslocoService,
52
+ ) {}
53
+
54
+ private translate(key: string): string {
55
+ return this.transloco ? this.transloco.translate(key) : key;
56
+ }
57
+
58
+ readonly groupableColumns = computed<ColumnDef[]>(() => {
59
+ const sampleRow = this.rows()[0] as Record<string, unknown> | undefined;
60
+ return this.columns().filter((col) => {
61
+ if (col.filterOnly) return false;
62
+ // Explicit `groupable` wins over the cardinality heuristic in both
63
+ // directions — the host knows when a high-cardinality column is still
64
+ // worth grouping (backend-ordered) or when a low-cardinality one isn't.
65
+ if (typeof col.groupable === 'boolean') return col.groupable;
66
+ if (col.type === 'custom') return false;
67
+
68
+ if (col.type === 'entity') {
69
+ const viewType = TableValueResolver.getEntityViewType(col, sampleRow);
70
+ return !!viewType && GROUPABLE_ENTITY_VIEW_TYPES.has(viewType);
71
+ }
72
+
73
+ const filterType = TableValueResolver.getColumnFilterType(col, sampleRow);
74
+ return filterType !== null && GROUPABLE_FILTER_TYPES.has(filterType);
75
+ });
76
+ });
77
+
78
+ /**
79
+ * Row counts per group key — consumed by the group header template so each
80
+ * subheader can show "Status: Active (12)".
81
+ */
82
+ readonly groupCounts = computed<Map<string, number>>(() => {
83
+ const column = this.activeGroupColumn();
84
+ if (!column) return new Map();
85
+
86
+ const counts = new Map<string, number>();
87
+ for (const row of this.rows()) {
88
+ const key = this.getGroupKey(row, column);
89
+ counts.set(key, (counts.get(key) ?? 0) + 1);
90
+ }
91
+ return counts;
92
+ });
93
+
94
+ getGroupCount(row: unknown): number {
95
+ const column = this.activeGroupColumn();
96
+ if (!column) return 0;
97
+ return this.groupCounts().get(this.getGroupKey(row, column)) ?? 0;
98
+ }
99
+
100
+ readonly activeGroupColumn = computed<ColumnDef | null>(() => {
101
+ const key = this.groupBy();
102
+ if (!key) return null;
103
+ return this.columns().find((col) => col.key === key) ?? null;
104
+ });
105
+
106
+ readonly groupingActive = computed<boolean>(
107
+ () => this.activeGroupColumn() !== null,
108
+ );
109
+
110
+ /**
111
+ * Whether the group header repeats the grouped column's name before the
112
+ * value. Opt-out per column via `ColumnDef.showGroupColumnLabel`.
113
+ */
114
+ readonly showsGroupColumnLabel = computed<boolean>(
115
+ () => this.activeGroupColumn()?.showGroupColumnLabel !== false,
116
+ );
117
+
118
+ /**
119
+ * Returns true when the given column is the active group column and
120
+ * therefore cannot have its sort cleared (PrimeNG requirement).
121
+ */
122
+ isGroupLockedSort(columnKey: string): boolean {
123
+ return this.groupingActive() && this.activeGroupColumn()?.key === columnKey;
124
+ }
125
+
126
+ setGroup(key: string | null): void {
127
+ this.groupBy.set(key && key.length > 0 ? key : null);
128
+
129
+ if (key) {
130
+ this.sortField.set(key);
131
+ if (this.sortDirection() === null) {
132
+ this.sortDirection.set('asc');
133
+ }
134
+ }
135
+ }
136
+
137
+ /**
138
+ * Display label for a row's grouped value — used by the `#groupheader`
139
+ * template. Leverages the same resolver pipeline the cells use, so status
140
+ * maps / user display names render consistently.
141
+ */
142
+ getGroupLabel(row: unknown): string {
143
+ const column = this.activeGroupColumn();
144
+ if (!column) return '';
145
+
146
+ const cellValue = TableValueResolver.getProperty(row, column.key);
147
+ if (cellValue === null || cellValue === undefined || cellValue === '') {
148
+ return '—';
149
+ }
150
+
151
+ if (column.type === 'entity') {
152
+ const entityValue = TableValueResolver.getEntityValueByType(
153
+ cellValue,
154
+ 'export',
155
+ );
156
+ return entityValue === null ? '—' : String(entityValue);
157
+ }
158
+
159
+ const display = TableValueResolver.resolveDisplayValue(cellValue);
160
+ if (display === null || display === undefined) return '—';
161
+ if (typeof display === 'boolean')
162
+ return display
163
+ ? this.translate('components.table.yes')
164
+ : this.translate('components.table.no');
165
+ return String(display);
166
+ }
167
+
168
+ /**
169
+ * Accent color for status/entity-Status group headers. Reused from the
170
+ * cell renderer's status-map pipeline so tint is consistent with the cell.
171
+ */
172
+ getGroupAccentColor(row: unknown): string | null {
173
+ const column = this.activeGroupColumn();
174
+ if (!column) return null;
175
+ if (column.type !== 'status' && column.type !== 'entity') return null;
176
+
177
+ const cellValue = TableValueResolver.getProperty(row, column.key);
178
+ if (cellValue === null || cellValue === undefined) return null;
179
+
180
+ if (typeof cellValue === 'object') {
181
+ const obj = cellValue as Record<string, unknown>;
182
+ const color = obj['color'];
183
+ if (typeof color === 'string' && color.length > 0) return color;
184
+
185
+ // Entity cells carry the color on the resolved value, not the wrapper.
186
+ const value = obj['value'];
187
+ if (value && typeof value === 'object') {
188
+ const valueColor = (value as Record<string, unknown>)['color'];
189
+ if (typeof valueColor === 'string' && valueColor.length > 0) {
190
+ return valueColor;
191
+ }
192
+ }
193
+ }
194
+
195
+ return null;
196
+ }
197
+
198
+ /**
199
+ * Returns the stable string key for the active group column on this row.
200
+ * Used to add a synthetic `__mt_group__` field so PrimeNG compares a plain
201
+ * string rather than a complex entity object (whose JSON representation is
202
+ * not stable across rows).
203
+ */
204
+ getGroupSortKey(row: unknown): string {
205
+ const column = this.activeGroupColumn();
206
+ if (!column) return '';
207
+ return this.getGroupKey(row, column);
208
+ }
209
+
210
+ /** Stable key used to bucket rows into groups — normalised to string. */
211
+ private getGroupKey(row: unknown, column: ColumnDef): string {
212
+ // A column can name its own identity field, so rows sharing a display
213
+ // label still split into separate groups (and vice versa).
214
+ if (column.groupKey) {
215
+ const identity = TableValueResolver.getProperty(row, column.groupKey);
216
+ return identity === null || identity === undefined || identity === ''
217
+ ? EMPTY_GROUP_KEY
218
+ : String(identity);
219
+ }
220
+
221
+ const cellValue = TableValueResolver.getProperty(row, column.key);
222
+ if (cellValue === null || cellValue === undefined || cellValue === '') {
223
+ return EMPTY_GROUP_KEY;
224
+ }
225
+ if (column.type === 'entity') {
226
+ const entityValue = TableValueResolver.getEntityValueByType(
227
+ cellValue,
228
+ 'filter',
229
+ );
230
+ return entityValue === null ? EMPTY_GROUP_KEY : String(entityValue);
231
+ }
232
+ const display = TableValueResolver.resolveDisplayValue(cellValue);
233
+ return display === null || display === undefined
234
+ ? EMPTY_GROUP_KEY
235
+ : String(display);
236
+ }
237
+ }
@@ -0,0 +1,242 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import { MTIcon } from '@masterteam/icons';
3
+ import { ConfirmationConfig } from '@masterteam/components/confirmation';
4
+ import type { TreeNode } from 'primeng/api';
5
+
6
+ /**
7
+ * Table action confirmation config with optional event
8
+ */
9
+ export type TableActionConfirmationConfig = Omit<
10
+ ConfirmationConfig,
11
+ 'event'
12
+ > & {
13
+ event?: Event;
14
+ confirmationType?: 'delete';
15
+ };
16
+
17
+ /**
18
+ * Defines the options for a select filter.
19
+ */
20
+ export interface FilterOption {
21
+ label: string;
22
+ value: any;
23
+ }
24
+
25
+ /**
26
+ * Configuration for filtering on a specific column.
27
+ */
28
+ export interface FilterConfig {
29
+ type:
30
+ | 'text'
31
+ | 'select'
32
+ | 'userSelect'
33
+ | 'treeSelect'
34
+ | 'date'
35
+ | 'boolean'
36
+ | 'user'
37
+ | 'numberRange';
38
+ label?: string;
39
+ options?: FilterOption[];
40
+ treeOptions?: TreeNode[];
41
+ /**
42
+ * Controls multi-select behaviour for `select` / `userSelect` filters.
43
+ * Defaults to `true` — opt out with `multiple: false` for a single-select.
44
+ * The stored filter value is an array; rows match if the cell value matches
45
+ * *any* selected entry.
46
+ */
47
+ multiple?: boolean;
48
+ [key: string]: unknown;
49
+ }
50
+
51
+ /**
52
+ * Filter value for date range, numeric range, or simple value
53
+ */
54
+ export interface FilterValue {
55
+ value?: any;
56
+ from?: Date | number | null;
57
+ to?: Date | number | null;
58
+ }
59
+
60
+ export interface TableStatusMapValue {
61
+ display?: string;
62
+ color?: string;
63
+ description?: string;
64
+ }
65
+
66
+ /**
67
+ * Table filters map
68
+ */
69
+ export type TableFilters = Record<string, FilterValue | any>;
70
+
71
+ /**
72
+ * Column type definition
73
+ */
74
+ export type ColumnType =
75
+ | 'text'
76
+ | 'number'
77
+ | 'boolean'
78
+ | 'date'
79
+ | 'dateTime'
80
+ | 'user'
81
+ | 'status'
82
+ | 'entity'
83
+ | 'custom';
84
+
85
+ /**
86
+ * Event emitted when a cell value changes
87
+ */
88
+ export interface CellChangeEvent {
89
+ row: any;
90
+ column: string;
91
+ value: any;
92
+ type: ColumnTypeForActionCell;
93
+ }
94
+ export type ColumnTypeForActionCell = 'boolean';
95
+
96
+ export type TableActionShape = 'flat' | 'popover';
97
+ export type TableActionPlacement = 'menu' | 'inline';
98
+
99
+ /**
100
+ * Filter UX mode for a table.
101
+ *
102
+ * - `popover`: single top-right funnel button opening a form with every filter.
103
+ * - `column`: per-column funnel icon next to each filterable header.
104
+ *
105
+ * Add new modes here + a matching branch in the table header template.
106
+ */
107
+ export type TableFilterMode = 'popover' | 'column';
108
+
109
+ /**
110
+ * Keys that can be excluded from mt-table storage persistence.
111
+ *
112
+ * - `pageSize`: selected rows-per-page value.
113
+ * - `pagePosition`: current page / first row offset.
114
+ * - `sort`: sort field and direction.
115
+ * - `selection`: selected row keys.
116
+ * - `groupBy`: active grouped column.
117
+ */
118
+ export type TablePersistStateKey =
119
+ | 'pageSize'
120
+ | 'pagePosition'
121
+ | 'sort'
122
+ | 'selection'
123
+ | 'groupBy';
124
+
125
+ /**
126
+ * Injected value resolver for export/print — caller decides how a cell value
127
+ * becomes a scalar for Excel/PDF output. Keeps TableExportService
128
+ * schema-agnostic (open/closed for new column types).
129
+ */
130
+ export type TableExportValueResolver = (
131
+ row: unknown,
132
+ column: ColumnDef,
133
+ ) => string | number | boolean | null;
134
+
135
+ export interface TableExportConfig {
136
+ rows: any[];
137
+ columns: ColumnDef[];
138
+ filename: string;
139
+ resolveValue: TableExportValueResolver;
140
+ }
141
+
142
+ export interface TablePrintConfig extends TableExportConfig {
143
+ title?: string;
144
+ }
145
+
146
+ // Defines the structure of a table column
147
+ export interface ColumnDef {
148
+ key: string; // Corresponds to a property in your data object
149
+ label: string; // The header text for the column
150
+ type?: ColumnType; // Data type for rendering
151
+ customCellTpl?: TemplateRef<any>; // For 'custom' type columns
152
+ filterConfig?: FilterConfig; // Optional configuration for filtering
153
+ statusMap?: Record<string, TableStatusMapValue>; // Optional status display/color map
154
+ sortable?: boolean; // Enables local FE sorting for this column
155
+ /**
156
+ * Overrides whether the column is offered in the row-group picker. By default
157
+ * only low-cardinality columns (select / boolean / user filters) are offered,
158
+ * because unique-valued columns would produce one group per row. Set `true`
159
+ * to opt a column in anyway — use it when the backend orders the result set
160
+ * so equal values arrive contiguously (e.g. a Work Center "Level Name"
161
+ * column sorted server-side). Set `false` to opt a column out entirely.
162
+ */
163
+ groupable?: boolean;
164
+ /**
165
+ * Dotted path to the row field holding this column's *group identity*, used
166
+ * instead of the rendered label when bucketing rows. Set it when the visible
167
+ * label is ambiguous — two records may share a display name but must stay
168
+ * separate groups (the backend's stable id), or several distinct ids must
169
+ * collapse into one group. An empty / missing value at that path puts the row
170
+ * in the shared "no value" group.
171
+ */
172
+ groupKey?: string;
173
+ /**
174
+ * Whether the group header prefixes the value with this column's label
175
+ * ("Status · Active"). Defaults to `true`. Turn it off when the value already
176
+ * names itself — a project or person reads fine on its own, and the prefix is
177
+ * just noise repeated down the page.
178
+ */
179
+ showGroupColumnLabel?: boolean;
180
+ readonly?: boolean; // Disables editable cells (e.g., toggle for boolean type)
181
+ width?: string; // Optional fixed width applied to header and body cells
182
+ /**
183
+ * Horizontal alignment of the header and its cells. Defaults to `end` for
184
+ * `number` columns and `start` for everything else.
185
+ *
186
+ * Left-aligned numbers cannot be compared by scanning, because the digits do
187
+ * not line up (finding M-05) — set `align: 'end'` on any column that renders
188
+ * a figure through a `custom` or `entity` cell, where the table cannot infer
189
+ * it from the type.
190
+ */
191
+ align?: 'start' | 'center' | 'end';
192
+ /**
193
+ * Whether the column shrinks to its content instead of taking a share of the
194
+ * leftover width. Defaults to `true` for the fixed-shape types (`date`,
195
+ * `dateTime`, `boolean`, `number`, `user`, `status`) so a ten-character date
196
+ * stops being handed 440px while the title column is squeezed. Set `false` to
197
+ * opt a fixed-shape column back into absorbing width.
198
+ */
199
+ shrink?: boolean;
200
+ filterOnly?: boolean; // Keeps the column available to filters without rendering/exporting it
201
+ /**
202
+ * Opts a `custom` column into export/print. Custom columns are excluded by
203
+ * default because their template may render purely visual content with no
204
+ * scalar value. Set this when the underlying cell value is still meaningful
205
+ * (e.g. an entity/count rendered as a styled badge) so it appears in Excel/PDF.
206
+ * No effect on non-custom columns (those export unless `filterOnly`).
207
+ */
208
+ exportable?: boolean;
209
+ /**
210
+ * Overrides the exported/printed scalar for this column. When provided it wins
211
+ * over the default type-based resolution — use it for `custom` columns whose
212
+ * cell value isn't trivially resolvable, or to format any column's export value.
213
+ */
214
+ exportValue?: (row: any) => string | number | boolean | null;
215
+ }
216
+
217
+ // Defines an action button for the 'actions' column
218
+ export interface TableAction {
219
+ icon?: MTIcon | undefined; // Icon to display on the button using MTIcon
220
+ color?:
221
+ | 'info'
222
+ | 'success'
223
+ | 'warn'
224
+ | 'danger'
225
+ | 'secondary'
226
+ | 'contrast'
227
+ | 'help'
228
+ | 'primary'; // Action Button Severity color
229
+ variant?: 'text' | 'outlined' | undefined; // Action Button variant
230
+ size?: 'small' | 'large' | undefined;
231
+ /**
232
+ * In popover action mode, `inline` actions render as direct icon buttons
233
+ * before the three-dot menu. Defaults to `menu`.
234
+ */
235
+ placement?: TableActionPlacement;
236
+ label?: string;
237
+ tooltip?: string;
238
+ hidden?: (row: any) => boolean;
239
+ action: (row: any) => void; // Function to execute on click
240
+ loading?: boolean | ((row: any) => boolean); // Loading state or predicate for the action button
241
+ confirmation?: TableActionConfirmationConfig;
242
+ }