@masterteam/components 0.0.263 → 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 (755) 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/assets/i18n/ar.json +10 -2
  125. package/assets/i18n/en.json +10 -2
  126. package/avatar/avatar.html +32 -0
  127. package/avatar/avatar.scss +0 -0
  128. package/avatar/avatar.ts +54 -0
  129. package/avatar/ng-package.json +6 -0
  130. package/avatar/public-api.ts +1 -0
  131. package/avatar-text/avatar-text.html +26 -0
  132. package/avatar-text/avatar-text.scss +0 -0
  133. package/avatar-text/avatar-text.ts +52 -0
  134. package/avatar-text/ng-package.json +6 -0
  135. package/avatar-text/public-api.ts +1 -0
  136. package/breadcrumb/breadcrumb.html +53 -0
  137. package/breadcrumb/breadcrumb.scss +0 -0
  138. package/breadcrumb/breadcrumb.ts +26 -0
  139. package/breadcrumb/ng-package.json +6 -0
  140. package/breadcrumb/public-api.ts +1 -0
  141. package/business-fields/entity-list-field/entity-list-add-token.ts +25 -0
  142. package/business-fields/entity-list-field/entity-list-field.html +70 -0
  143. package/business-fields/entity-list-field/entity-list-field.scss +3 -0
  144. package/business-fields/entity-list-field/entity-list-field.ts +1067 -0
  145. package/business-fields/lookup-matrix-field/lookup-matrix-field.html +38 -0
  146. package/business-fields/lookup-matrix-field/lookup-matrix-field.spec.ts +183 -0
  147. package/business-fields/lookup-matrix-field/lookup-matrix-field.ts +239 -0
  148. package/business-fields/lookup-module-check-list-field/lookup-module-check-list-field.html +95 -0
  149. package/business-fields/lookup-module-check-list-field/lookup-module-check-list-field.ts +336 -0
  150. package/business-fields/lookup-module-check-list-field/lookup-module-check-list-form-token.ts +42 -0
  151. package/business-fields/ng-package.json +6 -0
  152. package/business-fields/public-api.ts +8 -0
  153. package/business-fields/schedule-item-selector-field/schedule-item-selector-field.html +32 -0
  154. package/business-fields/schedule-item-selector-field/schedule-item-selector-field.ts +272 -0
  155. package/business-fields/schedule-predecessor-field/schedule-predecessor-field.html +89 -0
  156. package/business-fields/schedule-predecessor-field/schedule-predecessor-field.ts +441 -0
  157. package/business-fields/schema-connection-field/schema-connection-field.html +58 -0
  158. package/business-fields/schema-connection-field/schema-connection-field.scss +0 -0
  159. package/business-fields/schema-connection-field/schema-connection-field.ts +456 -0
  160. package/button/button.html +44 -0
  161. package/button/button.scss +0 -0
  162. package/button/button.ts +120 -0
  163. package/button/ng-package.json +6 -0
  164. package/button/public-api.ts +1 -0
  165. package/button-group/button-group.html +3 -0
  166. package/button-group/button-group.scss +20 -0
  167. package/button-group/button-group.ts +12 -0
  168. package/button-group/ng-package.json +6 -0
  169. package/button-group/public-api.ts +1 -0
  170. package/card/card.html +26 -0
  171. package/card/card.scss +0 -0
  172. package/card/card.ts +29 -0
  173. package/card/ng-package.json +6 -0
  174. package/card/public-api.ts +1 -0
  175. package/checkbox-field/checkbox-field.html +31 -0
  176. package/checkbox-field/checkbox-field.scss +0 -0
  177. package/checkbox-field/checkbox-field.spec.ts +21 -0
  178. package/checkbox-field/checkbox-field.ts +123 -0
  179. package/checkbox-field/ng-package.json +6 -0
  180. package/checkbox-field/public-api.ts +1 -0
  181. package/chip/chip.html +16 -0
  182. package/chip/chip.scss +19 -0
  183. package/chip/chip.ts +45 -0
  184. package/chip/ng-package.json +6 -0
  185. package/chip/public-api.ts +1 -0
  186. package/client-page/client-page.html +232 -0
  187. package/client-page/client-page.ts +588 -0
  188. package/client-page/index.ts +2 -0
  189. package/client-page/ng-package.json +6 -0
  190. package/client-page/public-api.ts +1 -0
  191. package/client-page-menu/client-page-menu.html +142 -0
  192. package/client-page-menu/client-page-menu.ts +199 -0
  193. package/client-page-menu/index.ts +2 -0
  194. package/client-page-menu/ng-package.json +6 -0
  195. package/client-page-menu/public-api.ts +1 -0
  196. package/color-picker-field/color-picker-field.html +45 -0
  197. package/color-picker-field/color-picker-field.scss +52 -0
  198. package/color-picker-field/color-picker-field.ts +131 -0
  199. package/color-picker-field/ng-package.json +6 -0
  200. package/color-picker-field/public-api.ts +1 -0
  201. package/confirmation/confirmation-dialog.html +83 -0
  202. package/confirmation/confirmation-dialog.scss +0 -0
  203. package/confirmation/confirmation-dialog.ts +15 -0
  204. package/confirmation/confirmation.spec.ts +43 -0
  205. package/confirmation/confirmation.ts +103 -0
  206. package/confirmation/ng-package.json +6 -0
  207. package/confirmation/public-api.ts +2 -0
  208. package/date-field/date-field.html +65 -0
  209. package/date-field/date-field.scss +0 -0
  210. package/date-field/date-field.spec.ts +118 -0
  211. package/date-field/date-field.ts +196 -0
  212. package/date-field/ng-package.json +6 -0
  213. package/date-field/public-api.ts +1 -0
  214. package/dialog/dialog.ts +29 -0
  215. package/dialog/ng-package.json +6 -0
  216. package/dialog/public-api.ts +1 -0
  217. package/drawer/drawer.html +67 -0
  218. package/drawer/drawer.scss +1 -0
  219. package/drawer/drawer.ts +348 -0
  220. package/drawer/ng-package.json +5 -0
  221. package/drawer/public-api.ts +1 -0
  222. package/dynamic-drawer/dynamic-drawer-host.ts +476 -0
  223. package/dynamic-drawer/dynamic-drawer.spec.ts +204 -0
  224. package/dynamic-drawer/dynamic-drawer.ts +235 -0
  225. package/dynamic-drawer/ng-package.json +6 -0
  226. package/dynamic-drawer/public-api.ts +2 -0
  227. package/editor-field/editor-field.html +38 -0
  228. package/editor-field/editor-field.scss +219 -0
  229. package/editor-field/editor-field.ts +126 -0
  230. package/editor-field/ng-package.json +6 -0
  231. package/editor-field/public-api.ts +1 -0
  232. package/empty-state/empty-state.html +236 -0
  233. package/empty-state/empty-state.ts +85 -0
  234. package/empty-state/ng-package.json +6 -0
  235. package/empty-state/public-api.ts +1 -0
  236. package/entities/comparison/comparison-entity-list/comparison-entity-list.html +87 -0
  237. package/entities/comparison/comparison-entity-list/comparison-entity-list.ts +93 -0
  238. package/entities/comparison/comparison-value/comparison-value.html +31 -0
  239. package/entities/comparison/comparison-value/comparison-value.ts +53 -0
  240. package/entities/currency-display.utils.spec.ts +94 -0
  241. package/entities/currency-display.utils.ts +92 -0
  242. package/entities/entities-manage/entities-manage.html +74 -0
  243. package/entities/entities-manage/entities-manage.scss +72 -0
  244. package/entities/entities-manage/entities-manage.ts +121 -0
  245. package/entities/entities-manage/entities-resize-base.ts +153 -0
  246. package/entities/entities-preview/entities-preview.css +77 -0
  247. package/entities/entities-preview/entities-preview.html +56 -0
  248. package/entities/entities-preview/entities-preview.ts +281 -0
  249. package/entities/entity-attachment/entity-attachment.html +49 -0
  250. package/entities/entity-attachment/entity-attachment.ts +462 -0
  251. package/entities/entity-checkbox/entity-checkbox.html +28 -0
  252. package/entities/entity-checkbox/entity-checkbox.ts +65 -0
  253. package/entities/entity-comparison.model.ts +39 -0
  254. package/entities/entity-connection/entity-connection.html +12 -0
  255. package/entities/entity-connection/entity-connection.ts +75 -0
  256. package/entities/entity-currency/entity-currency.html +12 -0
  257. package/entities/entity-currency/entity-currency.ts +59 -0
  258. package/entities/entity-date/entity-date.html +16 -0
  259. package/entities/entity-date/entity-date.ts +50 -0
  260. package/entities/entity-display.utils.ts +94 -0
  261. package/entities/entity-field/entity-field.ts +94 -0
  262. package/entities/entity-leaf-details/entity-leaf-details.html +35 -0
  263. package/entities/entity-leaf-details/entity-leaf-details.ts +56 -0
  264. package/entities/entity-location/entity-location.html +34 -0
  265. package/entities/entity-location/entity-location.ts +98 -0
  266. package/entities/entity-long-text/entity-long-text.html +9 -0
  267. package/entities/entity-long-text/entity-long-text.ts +45 -0
  268. package/entities/entity-lookup/entity-lookup.html +25 -0
  269. package/entities/entity-lookup/entity-lookup.ts +68 -0
  270. package/entities/entity-lookup-module-check-list/entity-lookup-module-check-list.html +39 -0
  271. package/entities/entity-lookup-module-check-list/entity-lookup-module-check-list.spec.ts +148 -0
  272. package/entities/entity-lookup-module-check-list/entity-lookup-module-check-list.ts +152 -0
  273. package/entities/entity-percentage/entity-percentage.html +22 -0
  274. package/entities/entity-percentage/entity-percentage.ts +163 -0
  275. package/entities/entity-phase-gate/entity-phase-gate.html +20 -0
  276. package/entities/entity-phase-gate/entity-phase-gate.ts +129 -0
  277. package/entities/entity-preview/entity-preview-body.html +8 -0
  278. package/entities/entity-preview/entity-preview-body.ts +19 -0
  279. package/entities/entity-preview/entity-preview.html +14 -0
  280. package/entities/entity-preview/entity-preview.ts +33 -0
  281. package/entities/entity-preview/entity-value-preview.html +62 -0
  282. package/entities/entity-preview/entity-value-preview.spec.ts +191 -0
  283. package/entities/entity-preview/entity-value-preview.ts +69 -0
  284. package/entities/entity-schedule-item/entity-schedule-item.html +19 -0
  285. package/entities/entity-schedule-item/entity-schedule-item.ts +41 -0
  286. package/entities/entity-sections.util.ts +103 -0
  287. package/entities/entity-status/entity-status.html +20 -0
  288. package/entities/entity-status/entity-status.ts +60 -0
  289. package/entities/entity-text/entity-text.html +20 -0
  290. package/entities/entity-text/entity-text.ts +35 -0
  291. package/entities/entity-user/entity-user.html +181 -0
  292. package/entities/entity-user/entity-user.ts +179 -0
  293. package/entities/entity.model.ts +407 -0
  294. package/entities/leaf-details-display.utils.ts +269 -0
  295. package/entities/ng-package.json +6 -0
  296. package/entities/percentage-color.utils.spec.ts +94 -0
  297. package/entities/percentage-color.utils.ts +80 -0
  298. package/entities/public-api.ts +30 -0
  299. package/field-validation/character-limit.validator.ts +22 -0
  300. package/field-validation/error-message.pipe.spec.ts +184 -0
  301. package/field-validation/error-message.pipe.ts +80 -0
  302. package/field-validation/field-validation.ts +168 -0
  303. package/field-validation/ng-package.json +6 -0
  304. package/field-validation/public-api.ts +2 -0
  305. package/formula/formula-editor/formula-editor.html +89 -0
  306. package/formula/formula-editor/formula-editor.scss +25 -0
  307. package/formula/formula-editor/formula-editor.ts +467 -0
  308. package/formula/formula-editor/index.ts +1 -0
  309. package/formula/formula-editor-code/formula-autocomplete-normalization.util.spec.ts +58 -0
  310. package/formula/formula-editor-code/formula-autocomplete-normalization.util.ts +64 -0
  311. package/formula/formula-editor-code/formula-completion-range.util.spec.ts +62 -0
  312. package/formula/formula-editor-code/formula-completion-range.util.ts +71 -0
  313. package/formula/formula-editor-code/formula-completion-suggestion.util.spec.ts +23 -0
  314. package/formula/formula-editor-code/formula-completion-suggestion.util.ts +18 -0
  315. package/formula/formula-editor-code/formula-editor-code.html +15 -0
  316. package/formula/formula-editor-code/formula-editor-code.scss +90 -0
  317. package/formula/formula-editor-code/formula-editor-code.ts +1095 -0
  318. package/formula/formula-editor-code/index.ts +1 -0
  319. package/formula/formula-status-bar/formula-status-bar.html +119 -0
  320. package/formula/formula-status-bar/formula-status-bar.ts +66 -0
  321. package/formula/formula-status-bar/index.ts +1 -0
  322. package/formula/formula-toolbar/formula-toolbar.html +361 -0
  323. package/formula/formula-toolbar/formula-toolbar.ts +532 -0
  324. package/formula/formula-toolbar/index.ts +2 -0
  325. package/formula/formula-toolbar/operators.ts +122 -0
  326. package/formula/models/formula-block.model.ts +61 -0
  327. package/formula/models/formula-token.model.spec.ts +57 -0
  328. package/formula/models/formula-token.model.ts +852 -0
  329. package/formula/models/index.ts +5 -0
  330. package/formula/models/smart-block.model.ts +132 -0
  331. package/formula/models/validation-result.model.ts +80 -0
  332. package/formula/ng-package.json +6 -0
  333. package/formula/public-api.ts +8 -0
  334. package/formula/runtime/formula-runtime-catalogs.ts +554 -0
  335. package/formula/runtime/formula-runtime-engine.spec.ts +328 -0
  336. package/formula/runtime/formula-runtime-engine.ts +794 -0
  337. package/formula/runtime/formula-runtime.model.ts +53 -0
  338. package/formula/runtime/index.ts +3 -0
  339. package/formula/toolbar-item/index.ts +1 -0
  340. package/formula/toolbar-item/toolbar-item.html +143 -0
  341. package/formula/toolbar-item/toolbar-item.scss +14 -0
  342. package/formula/toolbar-item/toolbar-item.ts +223 -0
  343. package/icon-field/icon-field.html +58 -0
  344. package/icon-field/icon-field.scss +24 -0
  345. package/icon-field/icon-field.spec.ts +77 -0
  346. package/icon-field/icon-field.ts +205 -0
  347. package/icon-field/ng-package.json +6 -0
  348. package/icon-field/public-api.ts +1 -0
  349. package/list/list.html +22 -0
  350. package/list/list.ts +36 -0
  351. package/list/ng-package.json +6 -0
  352. package/list/public-api.ts +1 -0
  353. package/location-field/location-field.html +86 -0
  354. package/location-field/location-field.spec.ts +295 -0
  355. package/location-field/location-field.ts +662 -0
  356. package/location-field/location-manual-dialog.html +43 -0
  357. package/location-field/location-manual-dialog.ts +104 -0
  358. package/location-field/location-value.ts +67 -0
  359. package/location-field/ng-package.json +6 -0
  360. package/location-field/public-api.ts +3 -0
  361. package/menu/menu.html +71 -0
  362. package/menu/menu.scss +3 -0
  363. package/menu/menu.ts +186 -0
  364. package/menu/ng-package.json +6 -0
  365. package/menu/public-api.ts +1 -0
  366. package/modal/modal.ts +127 -0
  367. package/modal/ng-package.json +6 -0
  368. package/modal/public-api.ts +1 -0
  369. package/module-summary-card/module-summary-card.html +43 -0
  370. package/module-summary-card/module-summary-card.scss +0 -0
  371. package/module-summary-card/module-summary-card.ts +40 -0
  372. package/module-summary-card/ng-package.json +6 -0
  373. package/module-summary-card/public-api.ts +1 -0
  374. package/multi-select-field/multi-select-field.html +140 -0
  375. package/multi-select-field/multi-select-field.scss +0 -0
  376. package/multi-select-field/multi-select-field.spec.ts +21 -0
  377. package/multi-select-field/multi-select-field.ts +397 -0
  378. package/multi-select-field/ng-package.json +6 -0
  379. package/multi-select-field/public-api.ts +1 -0
  380. package/ng-package.json +9 -0
  381. package/number-field/ng-package.json +6 -0
  382. package/number-field/number-field.html +39 -0
  383. package/number-field/number-field.scss +8 -0
  384. package/number-field/number-field.spec.ts +21 -0
  385. package/number-field/number-field.ts +124 -0
  386. package/number-field/public-api.ts +1 -0
  387. package/package.json +54 -274
  388. package/page/index.ts +1 -0
  389. package/page/ng-package.json +6 -0
  390. package/page/page.html +37 -0
  391. package/page/page.ts +43 -0
  392. package/page/public-api.ts +1 -0
  393. package/page-header/index.ts +2 -0
  394. package/page-header/ng-package.json +6 -0
  395. package/page-header/page-header.html +60 -0
  396. package/page-header/page-header.ts +54 -0
  397. package/page-header/public-api.ts +1 -0
  398. package/paginator/ng-package.json +6 -0
  399. package/paginator/paginator.html +50 -0
  400. package/paginator/paginator.scss +0 -0
  401. package/paginator/paginator.ts +53 -0
  402. package/paginator/public-api.ts +1 -0
  403. package/pick-list-field/ng-package.json +6 -0
  404. package/pick-list-field/pick-list-field.html +39 -0
  405. package/pick-list-field/pick-list-field.scss +26 -0
  406. package/pick-list-field/pick-list-field.ts +259 -0
  407. package/pick-list-field/public-api.ts +1 -0
  408. package/progress/ng-package.json +6 -0
  409. package/progress/progress.html +36 -0
  410. package/progress/progress.ts +61 -0
  411. package/progress/public-api.ts +1 -0
  412. package/property-filter-builder/ng-package.json +6 -0
  413. package/property-filter-builder/property-filter-builder.html +192 -0
  414. package/property-filter-builder/property-filter-builder.ts +548 -0
  415. package/property-filter-builder/public-api.ts +1 -0
  416. package/radio-button-field/ng-package.json +6 -0
  417. package/radio-button-field/public-api.ts +1 -0
  418. package/radio-button-field/radio-button-field.html +44 -0
  419. package/radio-button-field/radio-button-field.scss +0 -0
  420. package/radio-button-field/radio-button-field.ts +114 -0
  421. package/radio-cards/ng-package.json +6 -0
  422. package/radio-cards/public-api.ts +1 -0
  423. package/radio-cards/radio-cards.css +3 -0
  424. package/radio-cards/radio-cards.html +54 -0
  425. package/radio-cards/radio-cards.spec.ts +22 -0
  426. package/radio-cards/radio-cards.ts +92 -0
  427. package/radio-cards-field/ng-package.json +6 -0
  428. package/radio-cards-field/public-api.ts +1 -0
  429. package/radio-cards-field/radio-cards-field.css +0 -0
  430. package/radio-cards-field/radio-cards-field.html +38 -0
  431. package/radio-cards-field/radio-cards-field.spec.ts +22 -0
  432. package/radio-cards-field/radio-cards-field.ts +182 -0
  433. package/runtime-action/ng-package.json +6 -0
  434. package/runtime-action/payload-builder.ts +246 -0
  435. package/runtime-action/public-api.ts +4 -0
  436. package/runtime-action/runtime-action-context.store.ts +26 -0
  437. package/runtime-action/runtime-action.runner.ts +302 -0
  438. package/runtime-action/runtime-action.types.ts +82 -0
  439. package/select-field/current-user.util.ts +54 -0
  440. package/select-field/ng-package.json +6 -0
  441. package/select-field/public-api.ts +1 -0
  442. package/select-field/select-field.html +142 -0
  443. package/select-field/select-field.scss +0 -0
  444. package/select-field/select-field.spec.ts +21 -0
  445. package/select-field/select-field.ts +471 -0
  446. package/sidebar/ng-package.json +6 -0
  447. package/sidebar/public-api.ts +1 -0
  448. package/sidebar/sidebar.html +368 -0
  449. package/sidebar/sidebar.ts +303 -0
  450. package/slider-field/ng-package.json +7 -0
  451. package/slider-field/public-api.ts +1 -0
  452. package/slider-field/slider-field.html +33 -0
  453. package/slider-field/slider-field.scss +11 -0
  454. package/slider-field/slider-field.spec.ts +44 -0
  455. package/slider-field/slider-field.ts +166 -0
  456. package/src/lib/base/base.facade.ts +159 -0
  457. package/src/lib/base/crud-base.state.ts +248 -0
  458. package/src/lib/config/date-format.config.ts +55 -0
  459. package/src/lib/config/ds-identity.preset.ts +538 -0
  460. package/src/lib/config/ds-identity.tokens.ts +209 -0
  461. package/src/lib/config/dynamic-form.model.ts +1162 -0
  462. package/src/lib/config/povide-messages.ts +5 -0
  463. package/src/lib/config/provide-confirmation.ts +5 -0
  464. package/src/lib/config/providemt.ts +506 -0
  465. package/src/lib/config/public-api.ts +0 -0
  466. package/src/lib/pipes/mt-date-format.pipe.spec.ts +60 -0
  467. package/src/lib/pipes/mt-date-format.pipe.ts +81 -0
  468. package/src/lib/utils/api-request.helper.ts +59 -0
  469. package/src/lib/utils/clock-time.util.ts +58 -0
  470. package/src/lib/utils/color.utils.ts +187 -0
  471. package/src/lib/utils/entity-adapter.ts +50 -0
  472. package/src/lib/utils/field-id.ts +42 -0
  473. package/src/lib/utils/http-context.ts +35 -0
  474. package/src/lib/utils/inputs.ts +6 -0
  475. package/src/lib/utils/state-helpers.ts +49 -0
  476. package/src/lib/utils/theme.ts +281 -0
  477. package/src/public-api.ts +30 -0
  478. package/statistic-card/ng-package.json +6 -0
  479. package/statistic-card/public-api.ts +1 -0
  480. package/statistic-card/statistic-card.html +31 -0
  481. package/statistic-card/statistic-card.scss +0 -0
  482. package/statistic-card/statistic-card.ts +59 -0
  483. package/table/ng-package.json +7 -0
  484. package/table/public-api.ts +10 -0
  485. package/table/table-actions-menu/public-api.ts +1 -0
  486. package/table/table-actions-menu/table-actions-menu.html +75 -0
  487. package/table/table-actions-menu/table-actions-menu.ts +171 -0
  488. package/table/table-caption/public-api.ts +1 -0
  489. package/table/table-caption/table-caption.html +118 -0
  490. package/table/table-caption/table-caption.ts +221 -0
  491. package/table/table-column-filter/public-api.ts +1 -0
  492. package/table/table-column-filter/table-column-filter.html +44 -0
  493. package/table/table-column-filter/table-column-filter.ts +106 -0
  494. package/table/table-export/html-to-text.util.ts +67 -0
  495. package/table/table-export/public-api.ts +1 -0
  496. package/table/table-export/table-export.service.spec.ts +186 -0
  497. package/table/table-export/table-export.service.ts +325 -0
  498. package/table/table-filter/public-api.ts +1 -0
  499. package/table/table-filter/table-filter.css +9 -0
  500. package/table/table-filter/table-filter.html +63 -0
  501. package/table/table-filter/table-filter.ts +126 -0
  502. package/table/table-filter-field/public-api.ts +1 -0
  503. package/table/table-filter-field/table-filter-field.html +182 -0
  504. package/table/table-filter-field/table-filter-field.ts +208 -0
  505. package/table/table-grouping/public-api.ts +1 -0
  506. package/table/table-grouping/table-grouping.spec.ts +218 -0
  507. package/table/table-grouping/table-grouping.ts +237 -0
  508. package/table/table-types.ts +242 -0
  509. package/table/table-value.utils.spec.ts +63 -0
  510. package/table/table-value.utils.ts +1014 -0
  511. package/table/table.css +145 -0
  512. package/table/table.html +572 -0
  513. package/table/table.ts +2042 -0
  514. package/tabs/ng-package.json +6 -0
  515. package/tabs/public-api.ts +1 -0
  516. package/tabs/tabs.html +417 -0
  517. package/tabs/tabs.scss +3 -0
  518. package/tabs/tabs.spec.ts +79 -0
  519. package/tabs/tabs.ts +397 -0
  520. package/text-field/ng-package.json +6 -0
  521. package/text-field/public-api.ts +1 -0
  522. package/text-field/text-field.html +75 -0
  523. package/text-field/text-field.scss +56 -0
  524. package/text-field/text-field.ts +251 -0
  525. package/textarea-field/ng-package.json +6 -0
  526. package/textarea-field/public-api.ts +1 -0
  527. package/textarea-field/textarea-field.html +37 -0
  528. package/textarea-field/textarea-field.scss +0 -0
  529. package/textarea-field/textarea-field.spec.ts +21 -0
  530. package/textarea-field/textarea-field.ts +169 -0
  531. package/toast/ng-package.json +6 -0
  532. package/toast/public-api.ts +2 -0
  533. package/toast/toast.html +18 -0
  534. package/toast/toast.service.ts +67 -0
  535. package/toast/toast.ts +21 -0
  536. package/toggle-field/ng-package.json +6 -0
  537. package/toggle-field/public-api.ts +1 -0
  538. package/toggle-field/toggle-field.html +78 -0
  539. package/toggle-field/toggle-field.scss +24 -0
  540. package/toggle-field/toggle-field.ts +150 -0
  541. package/tooltip/ng-package.json +6 -0
  542. package/tooltip/public-api.ts +2 -0
  543. package/tooltip/tooltip.ts +30 -0
  544. package/tooltip/truncate-tooltip.ts +124 -0
  545. package/topbar/ng-package.json +6 -0
  546. package/topbar/public-api.ts +1 -0
  547. package/topbar/topbar.html +52 -0
  548. package/topbar/topbar.ts +27 -0
  549. package/tree/ng-package.json +6 -0
  550. package/tree/public-api.ts +2 -0
  551. package/tree/tree-types.ts +55 -0
  552. package/tree/tree.html +126 -0
  553. package/tree/tree.scss +1 -0
  554. package/tree/tree.ts +303 -0
  555. package/treeselect-field/ng-package.json +6 -0
  556. package/treeselect-field/public-api.ts +1 -0
  557. package/treeselect-field/treeselect-field.html +71 -0
  558. package/treeselect-field/treeselect-field.ts +348 -0
  559. package/tsconfig.check.json +20 -0
  560. package/tsconfig.json +16 -0
  561. package/tsconfig.spec.json +24 -0
  562. package/upload-field/ng-package.json +6 -0
  563. package/upload-field/public-api.ts +2 -0
  564. package/upload-field/secure-image.pipe.ts +258 -0
  565. package/upload-field/upload-field.html +274 -0
  566. package/upload-field/upload-field.scss +0 -0
  567. package/upload-field/upload-field.spec.ts +169 -0
  568. package/upload-field/upload-field.ts +764 -0
  569. package/upload-field/upload-file-preview/upload-file-preview.html +41 -0
  570. package/upload-field/upload-file-preview/upload-file-preview.scss +0 -0
  571. package/upload-field/upload-file-preview/upload-file-preview.ts +57 -0
  572. package/upload-field/upload-user-preview/upload-user-preview.css +0 -0
  573. package/upload-field/upload-user-preview/upload-user-preview.html +73 -0
  574. package/upload-field/upload-user-preview/upload-user-preview.ts +54 -0
  575. package/uploader/ng-package.json +6 -0
  576. package/uploader/public-api.ts +1 -0
  577. package/uploader/uploader.service.spec.ts +271 -0
  578. package/uploader/uploader.service.ts +733 -0
  579. package/user-search-field/ng-package.json +6 -0
  580. package/user-search-field/public-api.ts +1 -0
  581. package/user-search-field/user-search-field.html +88 -0
  582. package/user-search-field/user-search-field.scss +4 -0
  583. package/user-search-field/user-search-field.spec.ts +176 -0
  584. package/user-search-field/user-search-field.ts +483 -0
  585. package/fesm2022/masterteam-components-avatar-text.mjs +0 -46
  586. package/fesm2022/masterteam-components-avatar-text.mjs.map +0 -1
  587. package/fesm2022/masterteam-components-avatar.mjs +0 -50
  588. package/fesm2022/masterteam-components-avatar.mjs.map +0 -1
  589. package/fesm2022/masterteam-components-breadcrumb.mjs +0 -27
  590. package/fesm2022/masterteam-components-breadcrumb.mjs.map +0 -1
  591. package/fesm2022/masterteam-components-business-fields.mjs +0 -1902
  592. package/fesm2022/masterteam-components-business-fields.mjs.map +0 -1
  593. package/fesm2022/masterteam-components-button-group.mjs +0 -20
  594. package/fesm2022/masterteam-components-button-group.mjs.map +0 -1
  595. package/fesm2022/masterteam-components-button.mjs +0 -52
  596. package/fesm2022/masterteam-components-button.mjs.map +0 -1
  597. package/fesm2022/masterteam-components-card.mjs +0 -28
  598. package/fesm2022/masterteam-components-card.mjs.map +0 -1
  599. package/fesm2022/masterteam-components-checkbox-field.mjs +0 -88
  600. package/fesm2022/masterteam-components-checkbox-field.mjs.map +0 -1
  601. package/fesm2022/masterteam-components-chip.mjs +0 -39
  602. package/fesm2022/masterteam-components-chip.mjs.map +0 -1
  603. package/fesm2022/masterteam-components-client-page-menu.mjs +0 -152
  604. package/fesm2022/masterteam-components-client-page-menu.mjs.map +0 -1
  605. package/fesm2022/masterteam-components-client-page.mjs +0 -371
  606. package/fesm2022/masterteam-components-client-page.mjs.map +0 -1
  607. package/fesm2022/masterteam-components-color-picker-field.mjs +0 -102
  608. package/fesm2022/masterteam-components-color-picker-field.mjs.map +0 -1
  609. package/fesm2022/masterteam-components-confirmation.mjs +0 -98
  610. package/fesm2022/masterteam-components-confirmation.mjs.map +0 -1
  611. package/fesm2022/masterteam-components-date-field.mjs +0 -154
  612. package/fesm2022/masterteam-components-date-field.mjs.map +0 -1
  613. package/fesm2022/masterteam-components-dialog.mjs +0 -33
  614. package/fesm2022/masterteam-components-dialog.mjs.map +0 -1
  615. package/fesm2022/masterteam-components-drawer.mjs +0 -268
  616. package/fesm2022/masterteam-components-drawer.mjs.map +0 -1
  617. package/fesm2022/masterteam-components-dynamic-drawer.mjs +0 -608
  618. package/fesm2022/masterteam-components-dynamic-drawer.mjs.map +0 -1
  619. package/fesm2022/masterteam-components-editor-field.mjs +0 -99
  620. package/fesm2022/masterteam-components-editor-field.mjs.map +0 -1
  621. package/fesm2022/masterteam-components-entities.mjs +0 -2033
  622. package/fesm2022/masterteam-components-entities.mjs.map +0 -1
  623. package/fesm2022/masterteam-components-field-validation.mjs +0 -158
  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 -161
  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 -603
  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 -317
  640. package/fesm2022/masterteam-components-multi-select-field.mjs.map +0 -1
  641. package/fesm2022/masterteam-components-number-field.mjs +0 -98
  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 -206
  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 -126
  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 -411
  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 -3197
  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 -198
  676. package/fesm2022/masterteam-components-text-field.mjs.map +0 -1
  677. package/fesm2022/masterteam-components-textarea-field.mjs +0 -122
  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 -841
  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 -370
  696. package/fesm2022/masterteam-components-user-search-field.mjs.map +0 -1
  697. package/fesm2022/masterteam-components.mjs +0 -2334
  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 -671
  703. package/types/masterteam-components-button-group.d.ts +0 -8
  704. package/types/masterteam-components-button.d.ts +0 -36
  705. package/types/masterteam-components-card.d.ts +0 -14
  706. package/types/masterteam-components-checkbox-field.d.ts +0 -34
  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 -109
  710. package/types/masterteam-components-color-picker-field.d.ts +0 -35
  711. package/types/masterteam-components-confirmation.d.ts +0 -41
  712. package/types/masterteam-components-date-field.d.ts +0 -53
  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 -35
  717. package/types/masterteam-components-entities.d.ts +0 -1030
  718. package/types/masterteam-components-field-validation.d.ts +0 -23
  719. package/types/masterteam-components-formula.d.ts +0 -759
  720. package/types/masterteam-components-icon-field.d.ts +0 -40
  721. package/types/masterteam-components-list.d.ts +0 -18
  722. package/types/masterteam-components-location-field.d.ts +0 -169
  723. package/types/masterteam-components-menu.d.ts +0 -55
  724. package/types/masterteam-components-modal.d.ts +0 -30
  725. package/types/masterteam-components-module-summary-card.d.ts +0 -18
  726. package/types/masterteam-components-multi-select-field.d.ts +0 -100
  727. package/types/masterteam-components-number-field.d.ts +0 -43
  728. package/types/masterteam-components-page-header.d.ts +0 -30
  729. package/types/masterteam-components-page.d.ts +0 -26
  730. package/types/masterteam-components-paginator.d.ts +0 -20
  731. package/types/masterteam-components-pick-list-field.d.ts +0 -61
  732. package/types/masterteam-components-progress.d.ts +0 -30
  733. package/types/masterteam-components-property-filter-builder.d.ts +0 -90
  734. package/types/masterteam-components-radio-button-field.d.ts +0 -41
  735. package/types/masterteam-components-radio-cards-field.d.ts +0 -35
  736. package/types/masterteam-components-radio-cards.d.ts +0 -33
  737. package/types/masterteam-components-runtime-action.d.ts +0 -105
  738. package/types/masterteam-components-select-field.d.ts +0 -132
  739. package/types/masterteam-components-sidebar.d.ts +0 -71
  740. package/types/masterteam-components-slider-field.d.ts +0 -41
  741. package/types/masterteam-components-statistic-card.d.ts +0 -28
  742. package/types/masterteam-components-table.d.ts +0 -827
  743. package/types/masterteam-components-tabs.d.ts +0 -80
  744. package/types/masterteam-components-text-field.d.ts +0 -56
  745. package/types/masterteam-components-textarea-field.d.ts +0 -41
  746. package/types/masterteam-components-toast.d.ts +0 -27
  747. package/types/masterteam-components-toggle-field.d.ts +0 -44
  748. package/types/masterteam-components-tooltip.d.ts +0 -26
  749. package/types/masterteam-components-topbar.d.ts +0 -20
  750. package/types/masterteam-components-tree.d.ts +0 -106
  751. package/types/masterteam-components-treeselect-field.d.ts +0 -79
  752. package/types/masterteam-components-upload-field.d.ts +0 -108
  753. package/types/masterteam-components-uploader.d.ts +0 -53
  754. package/types/masterteam-components-user-search-field.d.ts +0 -106
  755. package/types/masterteam-components.d.ts +0 -1181
@@ -1,2334 +0,0 @@
1
- import { providePrimeNG } from 'primeng/config';
2
- import Aura from '@primeuix/themes/aura';
3
- import { updatePreset, definePreset, usePreset } from '@primeuix/themes';
4
- import { MessageService, ConfirmationService } from 'primeng/api';
5
- import * as i0 from '@angular/core';
6
- import { InjectionToken, makeEnvironmentProviders, computed, inject, LOCALE_ID, Pipe } from '@angular/core';
7
- import { tap, catchError, finalize } from 'rxjs/operators';
8
- import { HttpContextToken } from '@angular/common/http';
9
- import { formatDate } from '@angular/common';
10
-
11
- /**
12
- * Converts a hex color string to an HSL tuple.
13
- * @param hex - The hex color string (e.g., "#RRGGBB" or "#RGB").
14
- * @returns An HSL tuple [hue, saturation, lightness] where hue is in degrees (0-360),
15
- * and saturation/lightness are percentages (0-100).
16
- */
17
- function hexToHsl(hex) {
18
- let r = 0, g = 0, b = 0;
19
- // Handle shorthand hex codes
20
- if (hex.length === 4) {
21
- r = parseInt(hex[1] + hex[1], 16);
22
- g = parseInt(hex[2] + hex[2], 16);
23
- b = parseInt(hex[3] + hex[3], 16);
24
- }
25
- else if (hex.length === 7) {
26
- r = parseInt(hex.substring(1, 3), 16);
27
- g = parseInt(hex.substring(3, 5), 16);
28
- b = parseInt(hex.substring(5, 7), 16);
29
- }
30
- else {
31
- throw new Error('Invalid hex color format. Expected #RGB or #RRGGBB.');
32
- }
33
- r /= 255;
34
- g /= 255;
35
- b /= 255;
36
- const max = Math.max(r, g, b);
37
- const min = Math.min(r, g, b);
38
- let h = 0, s;
39
- const l = (max + min) / 2;
40
- if (max === min) {
41
- h = s = 0; // achromatic
42
- }
43
- else {
44
- const d = max - min;
45
- s = l > 0.5 ? d / (2 - max - min) : d / (max + min);
46
- switch (max) {
47
- case r:
48
- h = (g - b) / d + (g < b ? 6 : 0);
49
- break;
50
- case g:
51
- h = (b - r) / d + 2;
52
- break;
53
- case b:
54
- h = (r - g) / d + 4;
55
- break;
56
- }
57
- h /= 6;
58
- }
59
- return [h * 360, s * 100, l * 100]; // HSL in degrees, percentage, percentage
60
- }
61
- /**
62
- * Converts HSL values to a hex color string.
63
- * @param h - Hue (0-360).
64
- * @param s - Saturation (0-100).
65
- * @param l - Lightness (0-100).
66
- * @returns The hex color string (e.g., "#RRGGBB").
67
- */
68
- function hslToHex(h, s, l) {
69
- l /= 100;
70
- const a = (s * Math.min(l, 1 - l)) / 100;
71
- const f = (n) => {
72
- const k = (n + h / 30) % 12;
73
- const color = l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1);
74
- return Math.round(255 * color)
75
- .toString(16)
76
- .padStart(2, '0');
77
- };
78
- return `#${f(0)}${f(8)}${f(4)}`;
79
- }
80
- /**
81
- * Defines the "ideal" lightness and saturation adjustment for each shade.
82
- * Lightness for 500 is set to 50 as a balanced default.
83
- */
84
- const PALETTE_PROFILE = {
85
- '0': { l: 98, s_adjust: -50 },
86
- '50': { l: 95, s_adjust: -40 },
87
- '100': { l: 90, s_adjust: -30 },
88
- '200': { l: 80, s_adjust: -20 },
89
- '300': { l: 70, s_adjust: -10 },
90
- '400': { l: 60, s_adjust: -5 },
91
- '500': { l: 50, s_adjust: 0 },
92
- '600': { l: 45, s_adjust: 5 },
93
- '700': { l: 35, s_adjust: 10 },
94
- '800': { l: 25, s_adjust: 15 },
95
- '900': { l: 15, s_adjust: 20 },
96
- '950': { l: 8, s_adjust: 25 },
97
- };
98
- // Helper to ensure palette is always in the correct 50-950 order
99
- const ALL_SHADES = [
100
- '0',
101
- '50',
102
- '100',
103
- '200',
104
- '300',
105
- '400',
106
- '500',
107
- '600',
108
- '700',
109
- '800',
110
- '900',
111
- '950',
112
- ];
113
- /**
114
- * Clamps a number between a min and max value.
115
- */
116
- function clamp(value, min, max) {
117
- return Math.max(min, Math.min(max, value));
118
- }
119
- /**
120
- * Generates a Tailwind-like color palette (50-950) from any given base color.
121
- *
122
- * @param baseColorHex - The hex string of the base color (e.g., "#0284c7").
123
- * @param baseColorShade - The shade of the base color (e.g., "500", "700").
124
- * @returns An object representing the full color palette.
125
- */
126
- function generateTailwindPalette(baseColorHex, baseColorShade = '500') {
127
- // 1. Get HSL of the input color
128
- const [h_base, s_base, l_base] = hexToHsl(baseColorHex);
129
- // 2. Find the anchors
130
- const baseProfile = PALETTE_PROFILE[baseColorShade];
131
- /** The Hue is constant across the entire palette. */
132
- const h = h_base;
133
- /**
134
- * Calculate the 500-shade's saturation by "reversing" the adjustment
135
- * from the base color.
136
- * e.g., if base is 700 (s_adjust: +10) and s_base is 80,
137
- * s_500 will be 70.
138
- */
139
- const s_500 = clamp(s_base - baseProfile.s_adjust, 0, 100);
140
- /**
141
- * Calculate the lightness "offset". This is the difference between
142
- * the base color's actual lightness and its "ideal" lightness
143
- * from the profile.
144
- * e.g., if base is 700 (ideal L: 35) and l_base is 38,
145
- * the offset is +3. This offset will be applied to all shades.
146
- */
147
- const l_offset = l_base - baseProfile.l;
148
- // 3. Generate the full palette
149
- const palette = {};
150
- for (const shade of ALL_SHADES) {
151
- const profile = PALETTE_PROFILE[shade];
152
- // Calculate the new saturation and lightness for this shade
153
- const newS = clamp(s_500 + profile.s_adjust, 0, 100);
154
- const newL = clamp(profile.l + l_offset, 0, 100);
155
- palette[shade] = hslToHex(h, newS, newL);
156
- }
157
- // 4. Ensure the originally provided color is used exactly
158
- // (to avoid rounding errors from HSL conversion)
159
- palette[baseColorShade] = baseColorHex;
160
- return palette;
161
- }
162
-
163
- /**
164
- * Masterteam Design System — raw palettes and scales.
165
- *
166
- * Transcribed from the DS Storybook foundations (Figma
167
- * `WTmRAkJVvw0IvZMA7wBdTC`). These are primitives: they name colours, not
168
- * roles. The mapping from primitive to role lives in `ds-identity.preset.ts`.
169
- *
170
- * Adding a value here without a corresponding Figma variable is how a design
171
- * system drifts — extend the Figma file first, then mirror it.
172
- */
173
- /** Primary blue. 800 is the primary button background. */
174
- const DS_BLUE = {
175
- 25: '#F5FAFF',
176
- 50: '#EFF8FF',
177
- 100: '#D1E9FF',
178
- 200: '#B2DDFF',
179
- 300: '#84CAFF',
180
- 400: '#53B1FD',
181
- 500: '#2E90FA',
182
- 600: '#1570EF',
183
- 700: '#175CD3',
184
- 800: '#1849A9',
185
- 900: '#194185',
186
- 950: '#102A56',
187
- };
188
- /** Secondary indigo — accents, tags, selected states. */
189
- const DS_INDIGO = {
190
- 25: '#F5F8FF',
191
- 50: '#EEF4FF',
192
- 100: '#E0EAFF',
193
- 200: '#C7D7FE',
194
- 300: '#A4BCFD',
195
- 400: '#8098F9',
196
- 500: '#6172F3',
197
- 600: '#444CE7',
198
- 700: '#3538CD',
199
- 800: '#2D31A6',
200
- 900: '#2D3282',
201
- 950: '#1F235B',
202
- };
203
- const DS_SUCCESS = {
204
- 25: '#F6FEF9',
205
- 50: '#ECFDF3',
206
- 100: '#DCFAE6',
207
- 200: '#A9EFC5',
208
- 300: '#75E0A7',
209
- 400: '#47CD89',
210
- 500: '#17B26A',
211
- 600: '#079455',
212
- 700: '#067647',
213
- 800: '#085D3A',
214
- 900: '#074D31',
215
- 950: '#053321',
216
- };
217
- const DS_WARNING = {
218
- 25: '#FFFCF5',
219
- 50: '#FFFAEB',
220
- 100: '#FEF0C7',
221
- 200: '#FEDF89',
222
- 300: '#FEC84B',
223
- 400: '#FDB022',
224
- 500: '#F79009',
225
- 600: '#DC6803',
226
- 700: '#B54708',
227
- 800: '#93370D',
228
- 900: '#7A2E0E',
229
- 950: '#4E1D09',
230
- };
231
- const DS_ERROR = {
232
- 25: '#FFFBFA',
233
- 50: '#FEF3F2',
234
- 100: '#FEE4E2',
235
- 200: '#FECDCA',
236
- 300: '#FDA29B',
237
- 400: '#F97066',
238
- 500: '#F04438',
239
- 600: '#D92D20',
240
- 700: '#B42318',
241
- 800: '#912018',
242
- 900: '#7A271A',
243
- 950: '#55160C',
244
- };
245
- /** Neutral scale. Note it stops at 900 in Figma; 0/25/950 are extrapolated
246
- * because PrimeUIX requires a full 0–950 surface ramp. */
247
- const DS_GRAY = {
248
- 0: '#FFFFFF',
249
- 25: '#FCFCFD',
250
- 50: '#F9FAFB',
251
- 100: '#F3F4F6',
252
- 200: '#E5E7EB',
253
- 300: '#D1D5DB',
254
- 400: '#9CA3AF',
255
- 500: '#6B7280',
256
- 600: '#4B5563',
257
- 700: '#374151',
258
- 800: '#1F2937',
259
- 900: '#111827',
260
- 950: '#0A0F1C',
261
- };
262
- /**
263
- * Semantic values that are not part of a ramp. Each one is a named Figma
264
- * variable in its own right.
265
- */
266
- const DS_SEMANTIC = {
267
- /** Default body / label text. Deliberately navy-black, not gray-900. */
268
- textStrong: '#000B36',
269
- textSecondary: '#3C5073',
270
- textPlaceholder: '#B6BDCA',
271
- textHelper: '#384250',
272
- surface: '#FFFFFF',
273
- border: '#E5E7EB',
274
- /** Disabled is a colour swap, never an opacity fade. */
275
- disabledBg: '#D2D6DB',
276
- disabledText: '#6C7C96',
277
- inputBorder: '#D2D6DB',
278
- inputBorderHover: '#1F2A37',
279
- inputBorderReadonly: '#CED3DC',
280
- inputBgPressed: '#F3F4F6',
281
- /** Destructive red. Distinct from the error ramp — this is the button colour. */
282
- danger: '#A30000',
283
- dangerSecondaryBg: '#FCDAD7',
284
- dangerSecondaryBgHover: '#F8BAB5',
285
- dangerSecondaryBgPressed: '#F3908A',
286
- /** Tinted secondary button, expressed as primary-at-opacity. */
287
- secondaryBg: 'rgba(24, 73, 169, 0.2)',
288
- secondaryBgHover: 'rgba(24, 73, 169, 0.1)',
289
- focusRing: '#1849A9',
290
- focusOutline: '#FFFFFF',
291
- tooltipBg: '#1A2236',
292
- };
293
- /** Figma effect styles. Never invent a shadow outside this set. */
294
- const DS_SHADOW = {
295
- xs: '0 1px 2px 0 rgba(16, 24, 40, 0.05)',
296
- sm: '0 1px 3px 0 rgba(16, 24, 40, 0.10), 0 1px 2px 0 rgba(16, 24, 40, 0.06)',
297
- md: '0 4px 8px -2px rgba(16, 24, 40, 0.10), 0 2px 4px -2px rgba(16, 24, 40, 0.06)',
298
- lg: '0 12px 16px -6px rgba(16, 24, 40, 0.08), 0 4px 6px -2px rgba(16, 24, 40, 0.03)',
299
- xl: '0 20px 24px -4px rgba(16, 24, 40, 0.08), 0 8px 8px -4px rgba(16, 24, 40, 0.03)',
300
- '2xl': '0 24px 48px -12px rgba(16, 24, 40, 0.18)',
301
- };
302
- /**
303
- * Radius scale. The DS names differ from the PrimeUIX names by one step —
304
- * DS `radius-sm` (4px, the default for buttons and inputs) lands on PrimeUIX
305
- * `md`, because that is the key PrimeNG components reference. Mapping them
306
- * here keeps the shift in one place instead of spreading it across overrides.
307
- */
308
- const DS_RADIUS = {
309
- none: '0',
310
- /** DS radius-xs — code badges, small tags */
311
- xs: '2px',
312
- /** DS radius-xs..sm boundary */
313
- sm: '4px',
314
- /** DS radius-sm — buttons, inputs, dropdowns (PrimeNG's default reference) */
315
- md: '4px',
316
- /** DS radius-md — cards, tooltips, popovers */
317
- lg: '8px',
318
- /** DS radius-lg — modals, drawers */
319
- xl: '16px',
320
- };
321
- /** Control heights, in px, from the Figma button spacing frame. */
322
- const DS_CONTROL_HEIGHT = {
323
- sm: 24,
324
- md: 32,
325
- lg: 40,
326
- };
327
- const DS_FONT_FAMILY = "'IBM Plex Sans Arabic', system-ui, 'Segoe UI', sans-serif";
328
- /** Ordered chart series. Six is the hard maximum. */
329
- const DS_CHART_SERIES = [
330
- '#1849A9',
331
- '#175CD3',
332
- '#2E90FA',
333
- '#53B1FD',
334
- '#B2DDFF',
335
- '#D1E9FF',
336
- ];
337
-
338
- /** Root class that gates the CSS half of the identity. */
339
- const MT_DESIGN_IDENTITY_CLASS = 'mt-ds';
340
- /** DS primary button background. Used when the host does not brand the app. */
341
- const DS_DEFAULT_PRIMARY_COLOR = DS_BLUE[800];
342
- /**
343
- * PrimeUIX wants a 50–950 ramp; the DS publishes 25–950. Drop the 25 step and
344
- * keep the rest — the ramp is dense enough that nothing downstream misses it.
345
- */
346
- function toPrimeRamp(scale) {
347
- return {
348
- 50: scale[50],
349
- 100: scale[100],
350
- 200: scale[200],
351
- 300: scale[300],
352
- 400: scale[400],
353
- 500: scale[500],
354
- 600: scale[600],
355
- 700: scale[700],
356
- 800: scale[800],
357
- 900: scale[900],
358
- 950: scale[950],
359
- };
360
- }
361
- /**
362
- * Control geometry, derived rather than hardcoded so the relationship between
363
- * height, line-height and border stays visible:
364
- *
365
- * height = lineHeight + 2 * paddingY + 2 * border(1px)
366
- *
367
- * sm 24px = 18 + 2*2 + 2
368
- * md 32px = 20 + 2*5 + 2 ← default
369
- * lg 40px = 24 + 2*7 + 2
370
- */
371
- const FIELD = {
372
- sm: { fontSize: '0.75rem', paddingX: '0.5rem', paddingY: '0.125rem' },
373
- md: { fontSize: '0.875rem', paddingX: '0.5rem', paddingY: '0.3125rem' },
374
- lg: { fontSize: '1rem', paddingX: '0.75rem', paddingY: '0.4375rem' },
375
- };
376
- /**
377
- * The DS identity as a partial preset.
378
- *
379
- * @param primaryColor Optional brand override. Tenants that white-label the
380
- * product still need their own colour; when omitted the DS blue is used.
381
- * Note the DS itself treats the blue as fixed — an override is a deliberate
382
- * deviation, not a supported DS variant.
383
- */
384
- function dsIdentityConfigs(primaryColor) {
385
- const primary = primaryColor
386
- ? // A branded run keeps the DS ramp shape but re-anchors the key steps, so
387
- // hover/pressed stay one and two steps darker as the DS specifies.
388
- { ...toPrimeRamp(DS_BLUE), 800: primaryColor }
389
- : toPrimeRamp(DS_BLUE);
390
- return {
391
- primitive: {
392
- borderRadius: { ...DS_RADIUS },
393
- blue: toPrimeRamp(DS_BLUE),
394
- indigo: toPrimeRamp(DS_INDIGO),
395
- green: toPrimeRamp(DS_SUCCESS),
396
- emerald: toPrimeRamp(DS_SUCCESS),
397
- amber: toPrimeRamp(DS_WARNING),
398
- orange: toPrimeRamp(DS_WARNING),
399
- yellow: toPrimeRamp(DS_WARNING),
400
- red: toPrimeRamp(DS_ERROR),
401
- rose: toPrimeRamp(DS_ERROR),
402
- gray: toPrimeRamp(DS_GRAY),
403
- slate: toPrimeRamp(DS_GRAY),
404
- zinc: toPrimeRamp(DS_GRAY),
405
- },
406
- semantic: {
407
- primary,
408
- transitionDuration: '0.2s',
409
- /**
410
- * Disabled is a colour swap, never a fade — a hard DS rule, because a
411
- * faded control on a tinted surface stops meeting contrast at all.
412
- */
413
- disabledOpacity: '1',
414
- iconSize: '1rem',
415
- /**
416
- * Inner 2px primary ring. The outer 3px white halo cannot be expressed as
417
- * a token (PrimeUIX renders `focusRing` as a single outline) and is added
418
- * in `ds-identity.css`.
419
- */
420
- focusRing: {
421
- width: '2px',
422
- style: 'solid',
423
- color: '{primary.color}',
424
- offset: '0',
425
- shadow: 'none',
426
- },
427
- formField: {
428
- paddingX: FIELD.md.paddingX,
429
- paddingY: FIELD.md.paddingY,
430
- sm: FIELD.sm,
431
- lg: FIELD.lg,
432
- borderRadius: '{border.radius.md}',
433
- focusRing: {
434
- width: '0',
435
- style: 'none',
436
- color: 'transparent',
437
- offset: '0',
438
- shadow: 'none',
439
- },
440
- transitionDuration: '{transition.duration}',
441
- },
442
- content: { borderRadius: '{border.radius.lg}' },
443
- overlay: {
444
- select: {
445
- borderRadius: '{border.radius.lg}',
446
- shadow: DS_SHADOW.md,
447
- },
448
- popover: {
449
- borderRadius: '{border.radius.lg}',
450
- padding: '0.75rem',
451
- shadow: DS_SHADOW.md,
452
- },
453
- modal: {
454
- // 8px, not the 16px the foundations table implies for "modals" —
455
- // the DS Modal component itself ships radius-md and shadow-3xl.
456
- borderRadius: '{border.radius.lg}',
457
- padding: '1.5rem',
458
- shadow: '0 32px 64px -12px rgba(16, 24, 40, 0.14)',
459
- },
460
- navigation: { shadow: DS_SHADOW.md },
461
- },
462
- list: {
463
- padding: '0.25rem',
464
- gap: '2px',
465
- option: {
466
- padding: '0.375rem 0.5rem',
467
- borderRadius: '{border.radius.md}',
468
- },
469
- optionGroup: { padding: '0.375rem 0.5rem', fontWeight: '600' },
470
- },
471
- navigation: {
472
- item: {
473
- padding: '0.375rem 0.5rem',
474
- borderRadius: '{border.radius.md}',
475
- gap: '0.5rem',
476
- },
477
- },
478
- colorScheme: {
479
- light: {
480
- surface: {
481
- 0: DS_GRAY[0],
482
- ...toPrimeRamp(DS_GRAY),
483
- },
484
- /**
485
- * The DS anchors the primary button on blue-800, with hover and
486
- * pressed one and two steps darker. Aura anchors on 500, so the whole
487
- * triple is remapped rather than inherited.
488
- */
489
- primary: {
490
- color: '{primary.800}',
491
- contrastColor: DS_GRAY[50],
492
- hoverColor: '{primary.900}',
493
- activeColor: '{primary.950}',
494
- },
495
- highlight: {
496
- background: '{primary.50}',
497
- focusBackground: '{primary.100}',
498
- color: '{primary.800}',
499
- focusColor: '{primary.900}',
500
- },
501
- mask: { background: 'rgba(16, 24, 40, 0.6)', color: '{surface.200}' },
502
- formField: {
503
- background: DS_SEMANTIC.surface,
504
- disabledBackground: DS_SEMANTIC.disabledBg,
505
- filledBackground: '{surface.50}',
506
- filledHoverBackground: '{surface.50}',
507
- filledFocusBackground: '{surface.50}',
508
- borderColor: DS_SEMANTIC.inputBorder,
509
- hoverBorderColor: DS_SEMANTIC.inputBorderHover,
510
- // The DS keeps the border neutral on focus and signals focus with
511
- // the underline bar instead (see ds-identity.css).
512
- focusBorderColor: DS_SEMANTIC.inputBorder,
513
- invalidBorderColor: DS_SEMANTIC.danger,
514
- color: DS_SEMANTIC.textStrong,
515
- disabledColor: DS_SEMANTIC.disabledText,
516
- placeholderColor: DS_SEMANTIC.textPlaceholder,
517
- invalidPlaceholderColor: DS_SEMANTIC.danger,
518
- floatLabelColor: '{surface.500}',
519
- floatLabelFocusColor: '{primary.800}',
520
- floatLabelActiveColor: '{surface.500}',
521
- floatLabelInvalidColor: DS_SEMANTIC.danger,
522
- iconColor: '{surface.500}',
523
- shadow: 'none',
524
- },
525
- text: {
526
- color: DS_SEMANTIC.textStrong,
527
- hoverColor: DS_SEMANTIC.textStrong,
528
- mutedColor: '{surface.500}',
529
- hoverMutedColor: '{surface.600}',
530
- },
531
- content: {
532
- background: DS_SEMANTIC.surface,
533
- hoverBackground: '{surface.50}',
534
- borderColor: DS_SEMANTIC.border,
535
- color: '{text.color}',
536
- hoverColor: '{text.hover.color}',
537
- },
538
- list: {
539
- option: {
540
- focusBackground: '{surface.100}',
541
- selectedBackground: '{primary.50}',
542
- selectedFocusBackground: '{primary.100}',
543
- color: '{text.color}',
544
- focusColor: '{text.color}',
545
- selectedColor: '{primary.800}',
546
- selectedFocusColor: '{primary.900}',
547
- },
548
- },
549
- },
550
- /**
551
- * The DS does not publish a dark theme. Dark mode is still a shipped
552
- * capability here, so this is an extrapolation: the ramps are the DS
553
- * ramps, re-anchored to lighter primary steps for contrast on dark
554
- * surfaces. Treat these values as ours, not as design-approved.
555
- */
556
- dark: {
557
- surface: {
558
- 0: DS_GRAY[0],
559
- ...toPrimeRamp(DS_GRAY),
560
- },
561
- primary: {
562
- color: '{primary.400}',
563
- contrastColor: '{surface.950}',
564
- hoverColor: '{primary.300}',
565
- activeColor: '{primary.200}',
566
- },
567
- formField: {
568
- borderColor: '{surface.600}',
569
- hoverBorderColor: '{surface.500}',
570
- focusBorderColor: '{surface.600}',
571
- invalidBorderColor: '{red.400}',
572
- disabledBackground: '{surface.700}',
573
- disabledColor: '{surface.400}',
574
- placeholderColor: '{surface.400}',
575
- shadow: 'none',
576
- },
577
- mask: { background: 'rgba(0, 0, 0, 0.6)', color: '{surface.200}' },
578
- },
579
- },
580
- },
581
- components: {
582
- button: {
583
- root: {
584
- borderRadius: '{border.radius.md}',
585
- gap: '0.25rem',
586
- paddingX: FIELD.md.paddingX,
587
- paddingY: FIELD.md.paddingY,
588
- iconOnlyWidth: '2rem',
589
- sm: { ...FIELD.sm, iconOnlyWidth: '1.5rem' },
590
- lg: { ...FIELD.lg, iconOnlyWidth: '2.5rem' },
591
- label: { fontWeight: '500' },
592
- badgeSize: '1rem',
593
- },
594
- colorScheme: {
595
- light: {
596
- root: {
597
- /** DS "neutral" button — the standard Cancel / secondary action. */
598
- secondary: {
599
- background: '{surface.100}',
600
- hoverBackground: '{surface.200}',
601
- activeBackground: DS_SEMANTIC.disabledBg,
602
- borderColor: '{surface.100}',
603
- hoverBorderColor: '{surface.200}',
604
- activeBorderColor: DS_SEMANTIC.disabledBg,
605
- color: DS_SEMANTIC.textStrong,
606
- hoverColor: DS_SEMANTIC.textStrong,
607
- activeColor: DS_SEMANTIC.textStrong,
608
- },
609
- /** DS "danger-primary" — irreversible actions only. */
610
- danger: {
611
- background: DS_SEMANTIC.danger,
612
- hoverBackground: '#8A0000',
613
- activeBackground: '#6E0000',
614
- borderColor: DS_SEMANTIC.danger,
615
- hoverBorderColor: '#8A0000',
616
- activeBorderColor: '#6E0000',
617
- color: DS_GRAY[50],
618
- hoverColor: DS_GRAY[50],
619
- activeColor: DS_GRAY[50],
620
- },
621
- },
622
- /** DS "transparent" / ghost — link-style text buttons. */
623
- text: {
624
- primary: {
625
- color: DS_BLUE[700],
626
- hoverBackground: '{primary.50}',
627
- activeBackground: '{primary.100}',
628
- },
629
- danger: {
630
- color: DS_SEMANTIC.danger,
631
- hoverBackground: DS_SEMANTIC.dangerSecondaryBg,
632
- activeBackground: DS_SEMANTIC.dangerSecondaryBgHover,
633
- },
634
- },
635
- /** DS "secondary-solid" is a tint, closest to the outlined slot. */
636
- outlined: {
637
- primary: {
638
- borderColor: '{primary.200}',
639
- color: '{primary.800}',
640
- hoverBackground: DS_SEMANTIC.secondaryBgHover,
641
- activeBackground: DS_SEMANTIC.secondaryBg,
642
- },
643
- danger: {
644
- borderColor: DS_SEMANTIC.dangerSecondaryBgPressed,
645
- color: DS_SEMANTIC.danger,
646
- hoverBackground: DS_SEMANTIC.dangerSecondaryBg,
647
- activeBackground: DS_SEMANTIC.dangerSecondaryBgHover,
648
- },
649
- },
650
- link: {
651
- color: DS_BLUE[700],
652
- hoverColor: DS_BLUE[600],
653
- activeColor: DS_BLUE[800],
654
- },
655
- },
656
- },
657
- css: () => `
658
- .p-button.p-button-icon-only { padding-inline: 0; }
659
- /* Disabled is a colour swap, not a fade. */
660
- .p-button:disabled {
661
- background: ${DS_SEMANTIC.disabledBg};
662
- border-color: ${DS_SEMANTIC.disabledBg};
663
- color: ${DS_SEMANTIC.disabledText};
664
- cursor: not-allowed;
665
- }
666
- .p-button.p-button-text:disabled,
667
- .p-button.p-button-outlined:disabled {
668
- background: transparent;
669
- color: ${DS_SEMANTIC.disabledText};
670
- }
671
- `,
672
- },
673
- card: {
674
- root: {
675
- borderRadius: '{border.radius.lg}',
676
- shadow: DS_SHADOW.sm,
677
- },
678
- body: { padding: '1rem', gap: '0.5rem' },
679
- title: { fontSize: '1rem', fontWeight: '600' },
680
- subtitle: { color: DS_SEMANTIC.textSecondary },
681
- },
682
- tabs: {
683
- tab: {
684
- padding: '0.5rem 0.75rem',
685
- fontWeight: '500',
686
- borderWidth: '0 0 2px 0',
687
- },
688
- activeBar: { height: '2px', bottom: '-2px' },
689
- colorScheme: {
690
- light: {
691
- tab: {
692
- color: '{surface.500}',
693
- hoverColor: DS_SEMANTIC.textStrong,
694
- activeColor: '{primary.800}',
695
- borderColor: DS_SEMANTIC.border,
696
- hoverBorderColor: '{surface.300}',
697
- activeBorderColor: '{primary.800}',
698
- },
699
- activeBar: { background: '{primary.800}' },
700
- },
701
- },
702
- },
703
- datatable: {
704
- headerCell: { padding: '0.5rem 0.75rem' },
705
- bodyCell: { padding: '0.5rem 0.75rem' },
706
- footerCell: { padding: '0.5rem 0.75rem' },
707
- colorScheme: {
708
- light: {
709
- headerCell: {
710
- background: '{surface.50}',
711
- color: '{surface.600}',
712
- borderColor: DS_SEMANTIC.border,
713
- hoverBackground: '{surface.100}',
714
- },
715
- bodyCell: { borderColor: DS_SEMANTIC.border },
716
- row: {
717
- background: DS_SEMANTIC.surface,
718
- hoverBackground: '{surface.50}',
719
- color: DS_SEMANTIC.textStrong,
720
- selectedBackground: '{primary.50}',
721
- selectedColor: DS_SEMANTIC.textStrong,
722
- },
723
- },
724
- },
725
- },
726
- tag: {
727
- root: {
728
- fontSize: '0.75rem',
729
- fontWeight: '500',
730
- padding: '0.125rem 0.5rem',
731
- borderRadius: '{border.radius.md}',
732
- },
733
- colorScheme: {
734
- light: {
735
- primary: { background: DS_BLUE[100], color: DS_BLUE[700] },
736
- secondary: { background: '{surface.100}', color: '{surface.700}' },
737
- success: { background: DS_SUCCESS[100], color: DS_SUCCESS[700] },
738
- info: { background: DS_BLUE[100], color: DS_BLUE[700] },
739
- warn: { background: DS_WARNING[100], color: DS_WARNING[700] },
740
- danger: { background: DS_ERROR[100], color: DS_ERROR[700] },
741
- },
742
- },
743
- },
744
- toast: {
745
- root: { borderRadius: '{border.radius.lg}' },
746
- },
747
- tooltip: {
748
- root: {
749
- borderRadius: '6px',
750
- padding: '0.5rem 0.75rem',
751
- maxWidth: '20rem',
752
- },
753
- colorScheme: {
754
- light: {
755
- root: { background: DS_SEMANTIC.tooltipBg, color: '#ffffff' },
756
- },
757
- dark: {
758
- root: { background: DS_SEMANTIC.tooltipBg, color: '#ffffff' },
759
- },
760
- },
761
- },
762
- progressbar: {
763
- root: { borderRadius: '{border.radius.full}', height: '0.5rem' },
764
- },
765
- skeleton: {
766
- colorScheme: {
767
- light: { root: { background: '#e7e9ed' } },
768
- },
769
- },
770
- avatar: {
771
- root: { borderRadius: '{border.radius.full}' },
772
- },
773
- chip: {
774
- root: { borderRadius: '{border.radius.full}' },
775
- },
776
- },
777
- };
778
- }
779
- /** The DS chart ramp, for hosts that render charts outside PrimeNG. */
780
- const dsChartSeries = DS_CHART_SERIES;
781
- /**
782
- * Adds or removes the root class that activates the CSS half of the identity.
783
- * No-ops outside the browser so SSR builds stay safe.
784
- */
785
- function applyDesignIdentityClass(identity) {
786
- if (typeof document === 'undefined')
787
- return;
788
- document.documentElement.classList.toggle(MT_DESIGN_IDENTITY_CLASS, identity === 'experimental');
789
- }
790
-
791
- const inputBorderRadius = '{border.radius.md}';
792
- const toastStyle = {
793
- // borderColor: '{surface.300}',
794
- background: '{content.background}',
795
- // color: '{surface.600}',
796
- // closeButton: {
797
- // hoverBackground: '{surface.100}',
798
- // focusRing: {
799
- // color: '{surface.600}',
800
- // },
801
- // },
802
- };
803
- /**
804
- * Which identity the app is currently wearing. Tracked because the runtime
805
- * colour helpers below have to anchor a generated ramp on a different step per
806
- * identity — classic reads the brand colour as the 500 shade, the DS reads it
807
- * as 800.
808
- */
809
- let activeDesignIdentity = 'classic';
810
- function getMTDesignIdentity() {
811
- return activeDesignIdentity;
812
- }
813
- function changePrimaryColor(color) {
814
- const isDS = activeDesignIdentity === 'experimental';
815
- const base = color || (isDS ? DS_DEFAULT_PRIMARY_COLOR : '#2AAEC0');
816
- updatePreset({
817
- semantic: {
818
- primary: isDS
819
- ? generateTailwindPalette(base, '800')
820
- : generateTailwindPalette(base),
821
- },
822
- });
823
- }
824
- function changeBackgroundColor(color) {
825
- if (color) {
826
- const palette = generateTailwindPalette(color, '100');
827
- document.documentElement.style.setProperty('--app-background-light', palette['100']);
828
- document.documentElement.style.setProperty('--app-background-dark', palette['950']);
829
- }
830
- }
831
- function changeTextColor(color) {
832
- const palette = generateTailwindPalette(color ?? '#334155', '700');
833
- updatePreset({
834
- semantic: {
835
- colorScheme: {
836
- light: {
837
- text: {
838
- color: palette['700'],
839
- hoverColor: palette['800'],
840
- hoverMutedColor: palette['600'],
841
- mutedColor: palette['500'],
842
- },
843
- },
844
- dark: {
845
- text: {
846
- color: palette['0'],
847
- hoverColor: palette['0'],
848
- hoverMutedColor: palette['300'],
849
- mutedColor: palette['400'],
850
- },
851
- },
852
- },
853
- },
854
- });
855
- }
856
- const MTPreset = (themeOptions) => {
857
- const textPalette = generateTailwindPalette(themeOptions?.textColor ?? '#334155', '700');
858
- const configs = {
859
- options: {
860
- prefix: 'mt',
861
- cssLayer: {
862
- name: 'primeng',
863
- order: 'theme, base, primeng',
864
- },
865
- },
866
- semantic: {
867
- colorScheme: {
868
- light: {
869
- text: {
870
- color: textPalette['700'],
871
- hoverColor: textPalette['800'],
872
- hoverMutedColor: textPalette['600'],
873
- mutedColor: textPalette['500'],
874
- },
875
- },
876
- dark: {
877
- text: {
878
- color: textPalette['0'],
879
- hoverColor: textPalette['0'],
880
- hoverMutedColor: textPalette['300'],
881
- mutedColor: textPalette['400'],
882
- },
883
- },
884
- },
885
- primary: generateTailwindPalette(themeOptions?.primaryColor || '#2AAEC0'),
886
- content: {
887
- borderRadius: '{border.radius.lg}',
888
- },
889
- formField: {
890
- borderRadius: inputBorderRadius,
891
- },
892
- },
893
- components: {
894
- autocomplete: {
895
- root: {
896
- borderRadius: inputBorderRadius,
897
- },
898
- },
899
- cascadeselect: {
900
- root: {
901
- borderRadius: inputBorderRadius,
902
- },
903
- },
904
- dialog: {
905
- header: {
906
- padding: '0',
907
- },
908
- content: {
909
- padding: '0',
910
- },
911
- footer: {
912
- padding: '0',
913
- },
914
- },
915
- toast: {
916
- root: {
917
- borderRadius: '{border.radius.xl}',
918
- },
919
- colorScheme: {
920
- light: {
921
- success: toastStyle,
922
- info: toastStyle,
923
- warn: toastStyle,
924
- error: toastStyle,
925
- secondary: toastStyle,
926
- },
927
- dark: {
928
- success: toastStyle,
929
- info: toastStyle,
930
- warn: toastStyle,
931
- error: toastStyle,
932
- secondary: toastStyle,
933
- },
934
- },
935
- },
936
- togglebutton: {
937
- root: {
938
- padding: '1px',
939
- borderRadius: '{border.radius.sm}',
940
- },
941
- colorScheme: {
942
- light: {
943
- root: {
944
- checkedColor: '{primary.500}',
945
- },
946
- },
947
- dark: {
948
- root: {
949
- checkedColor: '{primary.400}',
950
- },
951
- },
952
- },
953
- },
954
- button: {
955
- root: {
956
- borderRadius: '{border.radius.md}',
957
- gap: '0.25rem',
958
- },
959
- css: () => `
960
- .p-button.p-button-icon-only {
961
- padding-inline: 0;
962
- }
963
- `,
964
- },
965
- inputtext: {
966
- root: {
967
- borderRadius: inputBorderRadius,
968
- },
969
- },
970
- inputchips: {
971
- root: {
972
- borderRadius: inputBorderRadius,
973
- },
974
- },
975
- listbox: {
976
- root: {
977
- borderRadius: inputBorderRadius,
978
- },
979
- },
980
- avatar: {
981
- root: {
982
- borderRadius: '{border.radius.md}',
983
- },
984
- },
985
- tooltip: {
986
- css: () => `
987
- .p-tooltip .p-tooltip-text {
988
- font-size: 0.75rem;
989
- line-height: 1.2;
990
- }
991
- `,
992
- },
993
- selectbutton: {
994
- root: {
995
- borderRadius: '{border.radius.md}',
996
- },
997
- },
998
- multiselect: {
999
- root: {
1000
- borderRadius: inputBorderRadius,
1001
- },
1002
- },
1003
- textarea: {
1004
- root: {
1005
- borderRadius: inputBorderRadius,
1006
- },
1007
- },
1008
- treeselect: {
1009
- root: {
1010
- borderRadius: inputBorderRadius,
1011
- },
1012
- },
1013
- paginator: {
1014
- root: {
1015
- borderRadius: '{border.radius.md}',
1016
- padding: '0',
1017
- },
1018
- navButton: {
1019
- borderRadius: '{border.radius.sm}',
1020
- },
1021
- colorScheme: {
1022
- light: {
1023
- navButton: {
1024
- color: '{surface.500}',
1025
- hoverBackground: '{surface.50}',
1026
- selectedBackground: '{primary.500}',
1027
- selectedColor: '#ffffff',
1028
- focusRing: {
1029
- color: '{primary.100}',
1030
- },
1031
- },
1032
- },
1033
- dark: {
1034
- navButton: {
1035
- color: '{surface.200}',
1036
- hoverBackground: 'transparent',
1037
- selectedBackground: '{primary.500}',
1038
- selectedColor: '#fff',
1039
- focusRing: {
1040
- color: '{primary.500}',
1041
- },
1042
- },
1043
- },
1044
- },
1045
- css: () => `
1046
- .p-paginator {
1047
- --p-paginator-gap: 0.375rem;
1048
- --p-paginator-nav-button-width: 1.75rem;
1049
- --p-paginator-nav-button-height: 1.75rem;
1050
- width: fit-content;
1051
- padding: 0;
1052
- border: 0;
1053
- background: transparent;
1054
- font-size: 0.875rem;
1055
- }
1056
-
1057
- .p-paginator-pages {
1058
- display: flex;
1059
- gap: var(--p-paginator-gap);
1060
- }
1061
-
1062
- .p-paginator-pages button,
1063
- .p-paginator-prev,
1064
- .p-paginator-next,
1065
- .p-paginator-first,
1066
- .p-paginator-last {
1067
- min-width: var(--p-paginator-nav-button-width);
1068
- height: var(--p-paginator-nav-button-height);
1069
- border: 1px solid var(--p-surface-200);
1070
- border-radius: 0.375rem;
1071
- background: #fff;
1072
- color: #667085;
1073
- box-shadow: none;
1074
- }
1075
-
1076
- .p-paginator .p-paginator-page.p-paginator-page-selected {
1077
- border-color: var(--p-primary-color);
1078
- background: var(--p-primary-color);
1079
- color: #fff;
1080
- font-weight: 500;
1081
- }
1082
-
1083
- .p-paginator-pages button:not(.p-paginator-page-selected):hover,
1084
- .p-paginator-prev:hover,
1085
- .p-paginator-next:hover,
1086
- .p-paginator-first:hover,
1087
- .p-paginator-last:hover {
1088
- background: var(--p-surface-50);
1089
- }
1090
-
1091
- .p-paginator .p-select {
1092
- min-height: var(--p-paginator-nav-button-height);
1093
- margin-inline-start: 0.5rem;
1094
- border: 1px solid var(--p-surface-200);
1095
- border-radius: 0.5rem;
1096
- background: #fff;
1097
- }
1098
-
1099
- .p-paginator .p-select .p-select-label {
1100
- padding: 0.375rem 0.625rem;
1101
- font-size: 0.875rem;
1102
- }
1103
-
1104
- /* Dark Mode Styles */
1105
- .dark .p-paginator-pages button,
1106
- .dark .p-paginator-prev,
1107
- .dark .p-paginator-next,
1108
- .dark .p-paginator-first,
1109
- .dark .p-paginator-last,
1110
- .dark .p-paginator .p-select {
1111
- border-color: var(--p-surface-500);
1112
- background: var(--p-surface-900);
1113
- }
1114
-
1115
- .dark .p-paginator .p-paginator-page.p-paginator-page-selected {
1116
- border-color: var(--p-primary-color);
1117
- background: var(--p-primary-color);
1118
- color: #fff;
1119
- }
1120
- `,
1121
- },
1122
- toggleswitch: {
1123
- root: {
1124
- width: '2.5rem',
1125
- height: '1.4rem',
1126
- },
1127
- },
1128
- select: {
1129
- root: {
1130
- borderRadius: inputBorderRadius,
1131
- },
1132
- optionGroup: {
1133
- fontWeight: 'bold',
1134
- padding: '6px 8px',
1135
- background: '{surface.50}',
1136
- color: '{primary.700}',
1137
- },
1138
- },
1139
- // steps: {
1140
- // item: {
1141
- // link: {
1142
- // gap: 'calc(50% + 0.25rem)',
1143
- // },
1144
- // number: {
1145
- // font: {
1146
- // size: '0.9rem',
1147
- // },
1148
- // active: {
1149
- // color: 'white',
1150
- // background: '{primary.500}',
1151
- // border: {
1152
- // color: '{primary.500}',
1153
- // },
1154
- // },
1155
- // },
1156
- // },
1157
- // },
1158
- },
1159
- };
1160
- // The DS layer is merged last so it wins on the tokens it names, while
1161
- // everything it stays silent about keeps the classic behaviour.
1162
- if ((themeOptions?.designIdentity ?? 'classic') === 'experimental') {
1163
- return definePreset(Aura, configs, dsIdentityConfigs(themeOptions?.primaryColor));
1164
- }
1165
- return definePreset(Aura, configs);
1166
- };
1167
- /**
1168
- * Switches identity at runtime — for the showcase toggle and for side-by-side
1169
- * review. Replaces the active preset outright (rather than merging into it, as
1170
- * `updatePreset` would) so switching back to classic is lossless.
1171
- */
1172
- function setMTDesignIdentity(identity, themeOptions) {
1173
- activeDesignIdentity = identity;
1174
- applyDesignIdentityClass(identity);
1175
- usePreset(MTPreset({ ...themeOptions, designIdentity: identity }));
1176
- }
1177
- function provideMTComponents(themeOptions) {
1178
- activeDesignIdentity = themeOptions?.designIdentity ?? 'classic';
1179
- applyDesignIdentityClass(activeDesignIdentity);
1180
- changeBackgroundColor(themeOptions?.backgroundColor);
1181
- return providePrimeNG({
1182
- zIndex: {
1183
- modal: 1900,
1184
- overlay: 1500,
1185
- menu: 1500,
1186
- tooltip: 1600,
1187
- },
1188
- theme: {
1189
- preset: MTPreset(themeOptions),
1190
- options: {
1191
- darkModeSelector: '.dark',
1192
- },
1193
- },
1194
- });
1195
- }
1196
-
1197
- function provideMTMessages() {
1198
- return MessageService;
1199
- }
1200
-
1201
- function provideMTConfirmation() {
1202
- return ConfirmationService;
1203
- }
1204
-
1205
- const DEFAULT_MT_DATE_FORMATS = {
1206
- date: 'dd/MM/yyyy',
1207
- dateTime: 'dd/MM/yyyy HH:mm',
1208
- time: 'HH:mm',
1209
- };
1210
- const MT_DATE_FORMATS = new InjectionToken('MT_DATE_FORMATS', {
1211
- factory: () => ({ ...DEFAULT_MT_DATE_FORMATS }),
1212
- });
1213
- /**
1214
- * Converts .NET custom date/time format tokens to Angular `formatDate` (CLDR)
1215
- * tokens. System-setting formats are authored in .NET convention (e.g. `hh:mm tt`),
1216
- * but `formatDate` uses CLDR tokens where the AM/PM designator is `a`, not `tt`.
1217
- * Every other token in the supported set (d, M, y, H, h, m, s) is identical between
1218
- * the two, so only `tt`/`t` → `a` needs translating. Single-quoted literal sections
1219
- * (e.g. `'at'`) are left untouched.
1220
- */
1221
- function toAngularDateFormat(format) {
1222
- return format
1223
- .split(/('[^']*')/g)
1224
- .map((part) => (part.startsWith("'") ? part : part.replace(/t+/g, 'a')))
1225
- .join('');
1226
- }
1227
- function provideMTDateFormats(formats) {
1228
- return makeEnvironmentProviders([
1229
- {
1230
- provide: MT_DATE_FORMATS,
1231
- useFactory: () => ({
1232
- ...DEFAULT_MT_DATE_FORMATS,
1233
- ...formats,
1234
- }),
1235
- },
1236
- ]);
1237
- }
1238
-
1239
- class ValidatorConfig {
1240
- type;
1241
- value;
1242
- message;
1243
- customValidator;
1244
- constructor(config) {
1245
- this.type = config.type;
1246
- this.value = config.value;
1247
- this.message = config.message;
1248
- this.customValidator = config.customValidator;
1249
- }
1250
- // Factory methods for common validators.
1251
- //
1252
- // IMPORTANT: none of these default `message` to a hardcoded English string.
1253
- // buildValidators() wraps the underlying Angular validator (and keys the
1254
- // resulting error) whenever `config.message` is truthy — a default here
1255
- // would mean every consumer that omits a message still gets one baked in,
1256
- // permanently shadowing ErrorMessagePipe's translated generic message for
1257
- // that error type in every locale but English. Only pass a message when
1258
- // you have a real, field-specific (and ideally already-translated) one to
1259
- // show; otherwise leave it unset and let the pipe render the translated
1260
- // generic copy.
1261
- static required(message) {
1262
- return new ValidatorConfig({ type: 'required', message });
1263
- }
1264
- static email(message) {
1265
- return new ValidatorConfig({ type: 'email', message });
1266
- }
1267
- static minLength(length, message) {
1268
- return new ValidatorConfig({ type: 'minLength', value: length, message });
1269
- }
1270
- static maxLength(length, message) {
1271
- return new ValidatorConfig({ type: 'maxLength', value: length, message });
1272
- }
1273
- static min(value, message) {
1274
- return new ValidatorConfig({ type: 'min', value, message });
1275
- }
1276
- static max(value, message) {
1277
- return new ValidatorConfig({ type: 'max', value, message });
1278
- }
1279
- static pattern(pattern, message) {
1280
- return new ValidatorConfig({ type: 'pattern', value: pattern, message });
1281
- }
1282
- static custom(validator, message = 'Invalid value') {
1283
- return new ValidatorConfig({
1284
- type: 'custom',
1285
- customValidator: validator,
1286
- message,
1287
- });
1288
- }
1289
- }
1290
- class BaseFieldConfig {
1291
- key;
1292
- label;
1293
- type;
1294
- required;
1295
- disabled;
1296
- readonly;
1297
- hidden;
1298
- placeholder;
1299
- hint;
1300
- cssClass;
1301
- validators;
1302
- order;
1303
- colSpan;
1304
- defaultValue;
1305
- customTemplate;
1306
- relations;
1307
- formulaCondition;
1308
- constructor(config) {
1309
- this.key = config.key || 'Key';
1310
- this.label = config.label || '';
1311
- this.type = config.type;
1312
- this.required = config.required || false;
1313
- this.disabled = config.disabled || false;
1314
- this.readonly = config.readonly || false;
1315
- this.hidden = config.hidden || false;
1316
- this.placeholder = config.placeholder || '';
1317
- this.hint = config.hint || '';
1318
- this.cssClass = config.cssClass || '';
1319
- this.validators = config.validators || [];
1320
- this.order = config.order || 0;
1321
- this.relations = config.relations || [];
1322
- this.formulaCondition = config.formulaCondition;
1323
- this.colSpan = config.colSpan || 12;
1324
- }
1325
- }
1326
- // Specific configurations for different field types
1327
- class TextFieldConfig extends BaseFieldConfig {
1328
- inputType;
1329
- constructor(config) {
1330
- super({ ...config, type: 'text' });
1331
- this.inputType = config.inputType || 'text';
1332
- }
1333
- }
1334
- class TextareaFieldConfig extends BaseFieldConfig {
1335
- rows;
1336
- autoResize;
1337
- constructor(config) {
1338
- super({ ...config, type: 'textarea' });
1339
- this.rows = config.rows || 3;
1340
- this.autoResize = config.autoResize || false;
1341
- }
1342
- }
1343
- class SelectFieldConfig extends BaseFieldConfig {
1344
- options;
1345
- optionLabel;
1346
- optionValue;
1347
- group;
1348
- optionGroupLabel;
1349
- optionGroupChildren;
1350
- multiple;
1351
- filter;
1352
- filterBy;
1353
- filterPlaceholder;
1354
- showClear;
1355
- emptyMessage;
1356
- size;
1357
- hasPlaceholderPrefix;
1358
- constructor(config) {
1359
- super({ ...config, type: 'select' });
1360
- this.options = config.options;
1361
- this.optionLabel = config.optionLabel || 'label';
1362
- this.optionValue = config.optionValue || 'value';
1363
- this.group = config.group || false;
1364
- this.optionGroupLabel = config.optionGroupLabel || 'label';
1365
- this.optionGroupChildren = config.optionGroupChildren || 'items';
1366
- this.multiple = config.multiple || false;
1367
- this.filter = config.filter || false;
1368
- this.filterBy = config.filterBy || '';
1369
- this.filterPlaceholder = config.filterPlaceholder || 'Search...';
1370
- this.showClear = config.showClear || false;
1371
- this.emptyMessage = config.emptyMessage || 'No options available';
1372
- this.size = config.size || '';
1373
- this.hasPlaceholderPrefix =
1374
- config.hasPlaceholderPrefix === undefined
1375
- ? true
1376
- : config.hasPlaceholderPrefix;
1377
- }
1378
- }
1379
- class RadioButtonFieldConfig extends BaseFieldConfig {
1380
- options;
1381
- optionLabel;
1382
- optionValue;
1383
- orientation;
1384
- constructor(config) {
1385
- super({ ...config, type: 'radio-button' });
1386
- this.options = config.options;
1387
- this.optionLabel = config.optionLabel || 'label';
1388
- this.optionValue = config.optionValue || 'value';
1389
- this.orientation = config.orientation || 'vertical';
1390
- }
1391
- }
1392
- class RadioCardsFieldConfig extends BaseFieldConfig {
1393
- options;
1394
- optionLabel;
1395
- optionValue;
1396
- size;
1397
- constructor(config) {
1398
- super({ ...config, type: 'radio-cards' });
1399
- this.options = config.options;
1400
- this.optionLabel = config.optionLabel || 'label';
1401
- this.optionValue = config.optionValue || 'value';
1402
- this.size = config.size || 'small';
1403
- }
1404
- }
1405
- class UserSearchFieldConfig extends BaseFieldConfig {
1406
- optionLabel;
1407
- optionValue;
1408
- size;
1409
- apiUrl;
1410
- context;
1411
- isMultiple;
1412
- hideUnlinkedHint;
1413
- dataKey;
1414
- paramName;
1415
- minLength;
1416
- constructor(config) {
1417
- super({ ...config, type: 'user-search' });
1418
- this.optionLabel = config.optionLabel || 'label';
1419
- this.optionValue = config.optionValue || 'value';
1420
- this.size = config.size || '';
1421
- this.hint = config.hint || '';
1422
- this.context = config.context || undefined;
1423
- this.apiUrl = config.apiUrl || '';
1424
- this.placeholder = config.placeholder || 'Search';
1425
- this.isMultiple = config.isMultiple || false;
1426
- this.hideUnlinkedHint = config.hideUnlinkedHint || false;
1427
- this.dataKey = config.dataKey || 'data';
1428
- this.paramName = config.paramName || 'query';
1429
- this.minLength = config.minLength ?? 1;
1430
- }
1431
- }
1432
- class LocationFieldConfig extends BaseFieldConfig {
1433
- configuration;
1434
- searchUrl;
1435
- minLength;
1436
- constructor(config) {
1437
- super({ ...config, type: 'location' });
1438
- this.configuration = config.configuration ?? null;
1439
- this.searchUrl = config.searchUrl;
1440
- this.minLength = config.minLength ?? 2;
1441
- }
1442
- }
1443
- class UploadFileFieldConfig extends BaseFieldConfig {
1444
- size;
1445
- endPoint;
1446
- userImgClass;
1447
- shape;
1448
- multiple;
1449
- accept;
1450
- fileSizeLimit;
1451
- context;
1452
- title;
1453
- description;
1454
- constructor(config) {
1455
- super({ ...config, type: 'upload-file' });
1456
- this.size = config.size || 'normal';
1457
- this.endPoint = config.endPoint || 'uploader';
1458
- this.userImgClass =
1459
- config.userImgClass || 'w-25! h-25! text-4xl! text-gray-400!';
1460
- this.shape = config.shape || 'field';
1461
- this.multiple = config.multiple ?? false;
1462
- this.accept = config.accept || '.pdf,.doc,.docx,.xlsx,image/*';
1463
- this.fileSizeLimit = config.fileSizeLimit || undefined;
1464
- this.context = config.context || undefined;
1465
- this.title = config.title || 'Upload File';
1466
- this.description = config.description || 'Click or drop a file to upload';
1467
- }
1468
- }
1469
- class DateFieldConfig extends BaseFieldConfig {
1470
- dateFormat;
1471
- showTime;
1472
- /** Edits the clock time only — no calendar. The value stays a full `Date`. */
1473
- timeOnly;
1474
- showSeconds;
1475
- hourFormat;
1476
- minDate;
1477
- maxDate;
1478
- disabledDates;
1479
- disabledDays;
1480
- yearRange;
1481
- showIcon;
1482
- icon;
1483
- showButtonBar;
1484
- showClear;
1485
- inline;
1486
- constructor(config) {
1487
- super({ ...config, type: 'date' });
1488
- this.dateFormat = config.dateFormat || 'yyyy-mm-dd';
1489
- this.showTime = config.showTime || false;
1490
- this.timeOnly = config.timeOnly || false;
1491
- this.showSeconds = config.showSeconds || false;
1492
- this.hourFormat = config.hourFormat || '24';
1493
- this.minDate = config.minDate;
1494
- this.maxDate = config.maxDate;
1495
- this.disabledDates = config.disabledDates || [];
1496
- this.disabledDays = config.disabledDays || [];
1497
- this.yearRange = config.yearRange || '1900:2030';
1498
- this.showIcon = config.showIcon || true;
1499
- this.icon = config.icon || 'pi pi-calendar';
1500
- this.showButtonBar = config.showButtonBar || false;
1501
- this.showClear = config.showClear || true;
1502
- this.inline = config.inline || false;
1503
- }
1504
- }
1505
- class NumberFieldConfig extends BaseFieldConfig {
1506
- min;
1507
- max;
1508
- step;
1509
- prefix;
1510
- suffix;
1511
- currency;
1512
- locale;
1513
- minFractionDigits;
1514
- maxFractionDigits;
1515
- useGrouping;
1516
- showButtons;
1517
- buttonLayout;
1518
- incrementButtonClass;
1519
- decrementButtonClass;
1520
- incrementButtonIcon;
1521
- decrementButtonIcon;
1522
- constructor(config) {
1523
- super({ ...config, type: 'number' });
1524
- this.min = config.min;
1525
- this.max = config.max;
1526
- this.step = config.step || 1;
1527
- this.prefix = config.prefix;
1528
- this.suffix = config.suffix;
1529
- this.currency = config.currency;
1530
- this.locale = config.locale;
1531
- this.minFractionDigits = config.minFractionDigits;
1532
- this.maxFractionDigits = config.maxFractionDigits;
1533
- this.useGrouping = config.useGrouping || false;
1534
- this.showButtons = config.showButtons || false;
1535
- this.buttonLayout = config.buttonLayout || 'stacked';
1536
- this.incrementButtonClass = config.incrementButtonClass;
1537
- this.decrementButtonClass = config.decrementButtonClass;
1538
- this.incrementButtonIcon = config.incrementButtonIcon;
1539
- this.decrementButtonIcon = config.decrementButtonIcon;
1540
- }
1541
- }
1542
- class SliderFieldConfig extends BaseFieldConfig {
1543
- min;
1544
- max;
1545
- step;
1546
- orientation;
1547
- range;
1548
- animate;
1549
- unit;
1550
- constructor(config) {
1551
- super({ ...config, type: 'slider' });
1552
- this.min = config.min || 0;
1553
- this.max = config.max || 100;
1554
- this.step = config.step || 1;
1555
- this.orientation = config.orientation || 'horizontal';
1556
- this.range = config.range || false;
1557
- this.animate = config.animate || false;
1558
- this.unit = config.unit || '';
1559
- }
1560
- }
1561
- class MultiSelectFieldConfig extends BaseFieldConfig {
1562
- options;
1563
- optionLabel;
1564
- optionValue;
1565
- filter;
1566
- filterBy;
1567
- filterPlaceholder;
1568
- showClear;
1569
- emptyMessage;
1570
- display;
1571
- maxSelectedLabels;
1572
- selectedItemsLabel;
1573
- showToggleAll;
1574
- resetFilterOnHide;
1575
- constructor(config) {
1576
- super({ ...config, type: 'multi-select' });
1577
- this.options = config.options;
1578
- this.optionLabel = config.optionLabel || 'label';
1579
- this.optionValue = config.optionValue || 'value';
1580
- this.filter = config.filter || false;
1581
- this.filterBy = config.filterBy || '';
1582
- this.filterPlaceholder = config.filterPlaceholder || 'Search...';
1583
- this.showClear = config.showClear || false;
1584
- this.emptyMessage = config.emptyMessage || 'No options available';
1585
- this.display = config.display || 'comma';
1586
- this.maxSelectedLabels = config.maxSelectedLabels || 3;
1587
- this.selectedItemsLabel = config.selectedItemsLabel || '{0} items selected';
1588
- this.showToggleAll = config.showToggleAll || true;
1589
- this.resetFilterOnHide = config.resetFilterOnHide || false;
1590
- }
1591
- }
1592
- class PickListFieldConfig extends BaseFieldConfig {
1593
- options;
1594
- optionLabel;
1595
- optionValue;
1596
- sourceHeader;
1597
- targetHeader;
1598
- showSourceControls;
1599
- showTargetControls;
1600
- showSourceFilter;
1601
- showTargetFilter;
1602
- filterBy;
1603
- dataKey;
1604
- dragdrop;
1605
- responsive;
1606
- breakpoint;
1607
- constructor(config) {
1608
- super({ ...config, type: 'pick-list' });
1609
- this.options = config.options;
1610
- this.optionLabel = config.optionLabel || 'label';
1611
- this.optionValue = config.optionValue || 'value';
1612
- this.sourceHeader = config.sourceHeader || 'Available';
1613
- this.targetHeader = config.targetHeader || 'Selected';
1614
- this.showSourceControls =
1615
- config.showSourceControls !== undefined
1616
- ? config.showSourceControls
1617
- : true;
1618
- this.showTargetControls =
1619
- config.showTargetControls !== undefined
1620
- ? config.showTargetControls
1621
- : true;
1622
- this.showSourceFilter =
1623
- config.showSourceFilter !== undefined ? config.showSourceFilter : false;
1624
- this.showTargetFilter =
1625
- config.showTargetFilter !== undefined ? config.showTargetFilter : false;
1626
- this.filterBy = config.filterBy || this.optionLabel;
1627
- this.dataKey = config.dataKey || this.optionValue;
1628
- this.dragdrop = config.dragdrop ?? false;
1629
- this.responsive = config.responsive ?? true;
1630
- }
1631
- }
1632
- class CheckboxFieldConfig extends BaseFieldConfig {
1633
- binary;
1634
- trueValue;
1635
- falseValue;
1636
- checkboxIcon;
1637
- constructor(config) {
1638
- super({ ...config, type: 'checkbox' });
1639
- this.binary = config.binary !== false; // Default to true
1640
- this.trueValue = config.trueValue !== undefined ? config.trueValue : true;
1641
- this.falseValue =
1642
- config.falseValue !== undefined ? config.falseValue : false;
1643
- this.checkboxIcon = config.checkboxIcon;
1644
- }
1645
- }
1646
- class ToggleFieldConfig extends BaseFieldConfig {
1647
- toggleShape;
1648
- icon;
1649
- descriptionCard;
1650
- constructor(config) {
1651
- super({ ...config, type: 'toggle' });
1652
- this.toggleShape = config.toggleShape ?? 'toggle';
1653
- this.icon = config.icon;
1654
- this.descriptionCard = config.descriptionCard;
1655
- }
1656
- }
1657
- class EditorFieldConfig extends BaseFieldConfig {
1658
- constructor(config) {
1659
- super({ ...config, type: 'editor-field' });
1660
- }
1661
- }
1662
- class ColorPickerFieldConfig extends BaseFieldConfig {
1663
- format;
1664
- inline;
1665
- appendTo;
1666
- variant;
1667
- constructor(config) {
1668
- super({ ...config, type: 'color-picker' });
1669
- this.format = config.format || 'hex';
1670
- this.inline = config.inline || false;
1671
- this.appendTo = config.appendTo || 'body';
1672
- this.variant = config.variant || 'outlined';
1673
- }
1674
- }
1675
- class IconFieldConfig extends BaseFieldConfig {
1676
- constructor(config) {
1677
- super({ ...config, type: 'icon-field' });
1678
- }
1679
- }
1680
- class SpacerFieldConfig extends BaseFieldConfig {
1681
- constructor(config) {
1682
- super({
1683
- ...config,
1684
- type: 'spacer',
1685
- key: config.key || `spacer_${Date.now()}`,
1686
- label: config.label || '',
1687
- });
1688
- }
1689
- }
1690
- class LookupMatrixFieldConfig extends BaseFieldConfig {
1691
- xFieldKey;
1692
- yFieldKey;
1693
- xAxisLabel;
1694
- yAxisLabel;
1695
- xOptions;
1696
- yOptions;
1697
- cells;
1698
- emptyMessage;
1699
- constructor(config) {
1700
- super({ ...config, type: 'lookup-matrix' });
1701
- this.xFieldKey = config.xFieldKey;
1702
- this.yFieldKey = config.yFieldKey;
1703
- this.xAxisLabel = config.xAxisLabel || '';
1704
- this.yAxisLabel = config.yAxisLabel;
1705
- this.xOptions = config.xOptions || [];
1706
- this.yOptions = config.yOptions;
1707
- this.cells = config.cells || [];
1708
- this.emptyMessage = config.emptyMessage || 'No matrix data available';
1709
- }
1710
- }
1711
- class SchemaConnectionFieldConfig extends BaseFieldConfig {
1712
- configuration;
1713
- context;
1714
- filter;
1715
- constructor(config) {
1716
- super({ ...config, type: 'schema-connection' });
1717
- this.configuration = config.configuration;
1718
- this.context = config.context || undefined;
1719
- this.filter = config.filter ?? true;
1720
- }
1721
- }
1722
- class SchedulePredecessorFieldConfig extends BaseFieldConfig {
1723
- configuration;
1724
- runtimeContext;
1725
- constructor(config) {
1726
- super({ ...config, type: 'predecessor' });
1727
- this.configuration = config.configuration ?? null;
1728
- this.runtimeContext = config.runtimeContext ?? null;
1729
- }
1730
- }
1731
- class EntityListFieldConfig extends BaseFieldConfig {
1732
- /** EntityList property id (used in the read endpoint route). */
1733
- propertyId;
1734
- /** Property configuration (sourceType, moduleId, access, snapshotMode, fields). */
1735
- configuration;
1736
- /** Runtime ids needed to call the read endpoint. */
1737
- runtimeContext;
1738
- context;
1739
- constructor(config) {
1740
- super({ ...config, type: 'entity-list' });
1741
- this.propertyId = config.propertyId ?? null;
1742
- this.configuration = config.configuration ?? null;
1743
- this.runtimeContext = config.runtimeContext ?? null;
1744
- this.context = config.context;
1745
- }
1746
- }
1747
- class ScheduleItemSelectorFieldConfig extends BaseFieldConfig {
1748
- /** Property key — used in the options endpoint route `forms/options/{propertyKey}`. */
1749
- propertyKey;
1750
- /** `Single` renders a single-select picker, `Multi` a multi-select picker. */
1751
- selectionMode;
1752
- /** Raw property configuration (selectionMode, scheduleModuleKey, etc.). */
1753
- configuration;
1754
- /** Runtime ids needed to call the options endpoint. */
1755
- runtimeContext;
1756
- context;
1757
- constructor(config) {
1758
- super({ ...config, type: 'schedule-item-selector' });
1759
- this.propertyKey = config.propertyKey || config.key || '';
1760
- this.selectionMode = config.selectionMode || 'Multi';
1761
- this.configuration = config.configuration ?? null;
1762
- this.runtimeContext = config.runtimeContext ?? null;
1763
- this.context = config.context;
1764
- }
1765
- }
1766
- class LookupModuleCheckListFieldConfig extends BaseFieldConfig {
1767
- /** Lookup items rendered as collapsible checklist sections. */
1768
- lookupOptions;
1769
- /** Full lookup catalog passed through to the rich nested form renderer. */
1770
- lookups;
1771
- /** Module property keys/labels captured per checklist entry. */
1772
- propertyFields;
1773
- /** Scope module id whose form is loaded for each section. */
1774
- scopeId;
1775
- /** Property keys to render in each section form (`allowedFieldKeys`). */
1776
- propertyKeys;
1777
- /** Runtime ids needed to load each section form. */
1778
- runtimeContext;
1779
- /** Raw property configuration (lookup id, scope/module id, properties). */
1780
- configuration;
1781
- constructor(config) {
1782
- super({ ...config, type: 'lookup-module-check-list' });
1783
- this.lookupOptions = config.lookupOptions || [];
1784
- this.lookups = config.lookups || [];
1785
- this.propertyFields = config.propertyFields || [];
1786
- this.scopeId = config.scopeId ?? null;
1787
- this.propertyKeys = config.propertyKeys || [];
1788
- this.runtimeContext = config.runtimeContext ?? null;
1789
- this.configuration = config.configuration ?? null;
1790
- }
1791
- }
1792
- function createCustomValidator(customValidator, message) {
1793
- return (control) => {
1794
- const result = customValidator(control.value, control);
1795
- if (result instanceof Promise) {
1796
- // Handle async validation
1797
- result.then((isValid) => {
1798
- if (!isValid) {
1799
- control.setErrors({
1800
- custom: { message: message || 'Invalid value' },
1801
- });
1802
- }
1803
- });
1804
- return null; // For async, return null initially
1805
- }
1806
- else {
1807
- // Handle sync validation
1808
- return result
1809
- ? null
1810
- : { custom: { message: message || 'Invalid value' } };
1811
- }
1812
- };
1813
- }
1814
- function wrapValidatorWithMessage(validator, errorKey, message) {
1815
- return (control) => {
1816
- const result = validator(control);
1817
- if (result) {
1818
- // Replace the default error with custom message
1819
- return { [errorKey]: { ...result[Object.keys(result)[0]], message } };
1820
- }
1821
- return null;
1822
- };
1823
- }
1824
- // DynamicFieldConfig = input.required<any>({
1825
- // transform: (value: any) => this.transformToDateFieldConfig(value)
1826
- // });
1827
- // transformToDateFieldConfig(value: any){
1828
- // return new TextFieldConfig()
1829
- // }
1830
-
1831
- /**
1832
- * @deprecated Use direct `select()` + `computed()` pattern instead for better performance.
1833
- *
1834
- * **Problem with BaseFacade:**
1835
- * - All computed signals depend on the full state, causing unnecessary recomputations
1836
- * - Bypasses NGXS selector memoization
1837
- * - Uses `as any` casting, losing type safety
1838
- *
1839
- * **New Pattern - Use slice-based selectors:**
1840
- *
1841
- * ```typescript
1842
- * // In your State class - add slice selectors:
1843
- * @Selector()
1844
- * static getLoadingActive(state: MyStateModel): string[] {
1845
- * return state.loadingActive;
1846
- * }
1847
- *
1848
- * @Selector()
1849
- * static getErrors(state: MyStateModel): Record<string, string | null> {
1850
- * return state.errors;
1851
- * }
1852
- *
1853
- * // In your Facade - don't extend BaseFacade:
1854
- * @Injectable({ providedIn: 'root' })
1855
- * export class MyFacade {
1856
- * private readonly store = inject(Store);
1857
- *
1858
- * // Data selectors - memoized by NGXS
1859
- * readonly items = select(MyState.getItems);
1860
- *
1861
- * // Loading/Error slices - memoized by NGXS
1862
- * private readonly loadingActive = select(MyState.getLoadingActive);
1863
- * private readonly errors = select(MyState.getErrors);
1864
- *
1865
- * // Loading signals - computed from slice (minimal reactivity)
1866
- * readonly isLoadingItems = computed(() =>
1867
- * this.loadingActive().includes(MyActionKey.GetItems)
1868
- * );
1869
- *
1870
- * // Error signals - computed from slice (minimal reactivity)
1871
- * readonly itemsError = computed(() =>
1872
- * this.errors()[MyActionKey.GetItems] ?? null
1873
- * );
1874
- *
1875
- * // Dispatchers
1876
- * loadItems() {
1877
- * return this.store.dispatch(new GetItems());
1878
- * }
1879
- * }
1880
- * ```
1881
- *
1882
- * **Template Usage:**
1883
- * ```html
1884
- * @if (facade.isLoadingItems()) {
1885
- * <loading-spinner />
1886
- * } @else if (facade.itemsError(); as error) {
1887
- * <error-alert>{{ error }}</error-alert>
1888
- * } @else {
1889
- * @for (item of facade.items(); track item.id) {
1890
- * <item-card [item]="item" />
1891
- * }
1892
- * }
1893
- * ```
1894
- */
1895
- class BaseFacade {
1896
- /**
1897
- * Creates a query object with separate signals for data, loading, and error states
1898
- * Each property is its own signal for granular reactivity
1899
- *
1900
- * @example
1901
- * readonly modulesQuery = this.query(
1902
- * 'getModulesLoading',
1903
- * (state) => state.allModules
1904
- * );
1905
- *
1906
- * // In template - each is a separate signal:
1907
- * @if (modulesQuery.isPending()) { Loading... }
1908
- * @if (modulesQuery.error(); as error) { Error: {{ error }} }
1909
- * @if (modulesQuery.data(); as modules) {
1910
- * <div *ngFor="let m of modules">{{ m.title }}</div>
1911
- * }
1912
- */
1913
- query(loadingKey, dataSelector) {
1914
- const stateSignal = this.state();
1915
- const isPending = computed(() => {
1916
- const currentState = stateSignal();
1917
- return currentState.loadingActive?.includes(loadingKey) ?? false;
1918
- }, ...(ngDevMode ? [{ debugName: "isPending" }] : /* istanbul ignore next */ []));
1919
- const error = computed(() => {
1920
- const currentState = stateSignal();
1921
- return currentState.errors?.[loadingKey] ?? null;
1922
- }, ...(ngDevMode ? [{ debugName: "error" }] : /* istanbul ignore next */ []));
1923
- const data = computed(() => {
1924
- const currentState = stateSignal();
1925
- const hasError = currentState.errors?.[loadingKey];
1926
- return hasError ? null : dataSelector(currentState);
1927
- }, ...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
1928
- const isSuccess = computed(() => !isPending() && !error() && data() !== null, ...(ngDevMode ? [{ debugName: "isSuccess" }] : /* istanbul ignore next */ []));
1929
- const isError = computed(() => !!error(), ...(ngDevMode ? [{ debugName: "isError" }] : /* istanbul ignore next */ []));
1930
- return {
1931
- data,
1932
- isPending,
1933
- isSuccess,
1934
- isError,
1935
- error,
1936
- };
1937
- }
1938
- /**
1939
- * Creates a loading signal for a specific operation
1940
- */
1941
- loading(loadingKey) {
1942
- const stateSignal = this.state();
1943
- return computed(() => {
1944
- const currentState = stateSignal();
1945
- return currentState.loadingActive?.includes(loadingKey) ?? false;
1946
- });
1947
- }
1948
- /**
1949
- * Creates an error signal for a specific operation
1950
- */
1951
- errorSignal(loadingKey) {
1952
- const stateSignal = this.state();
1953
- return computed(() => {
1954
- const currentState = stateSignal();
1955
- return currentState.errors?.[loadingKey] ?? null;
1956
- });
1957
- }
1958
- }
1959
-
1960
- function createEntityAdapter() {
1961
- return {
1962
- addOne: (state, entity) => [...state, entity],
1963
- upsertOne: (state, entity, uniqueKey = 'id') => {
1964
- const key = entity[uniqueKey];
1965
- if (key == null)
1966
- return state;
1967
- const index = state.findIndex((e) => e[uniqueKey] === key);
1968
- if (index === -1) {
1969
- return [...state, entity];
1970
- }
1971
- const clone = [...state];
1972
- clone[index] = entity;
1973
- return clone;
1974
- },
1975
- updateOne: (state, id, changes, uniqueKey = 'id') => state.map((e) => (e[uniqueKey] === id ? { ...e, ...changes } : e)),
1976
- removeOne: (state, id, uniqueKey = 'id') => state.filter((e) => e[uniqueKey] !== id),
1977
- setAll: (_state, entities) => [...entities],
1978
- };
1979
- }
1980
-
1981
- function startLoading(ctx, loadingName) {
1982
- const { loadingActive, errors } = ctx.getState();
1983
- if (!loadingActive.includes(loadingName)) {
1984
- ctx.patchState({
1985
- loadingActive: [...loadingActive, loadingName],
1986
- });
1987
- }
1988
- if (errors && errors[loadingName]) {
1989
- const { [loadingName]: _removed, ...rest } = errors;
1990
- ctx.patchState({ errors: rest });
1991
- }
1992
- }
1993
- function endLoading(ctx, loadingName) {
1994
- const { loadingActive } = ctx.getState();
1995
- ctx.patchState({
1996
- loadingActive: loadingActive.filter((name) => name !== loadingName),
1997
- });
1998
- }
1999
- function setLoadingError(ctx, loadingName, message) {
2000
- const { errors } = ctx.getState();
2001
- ctx.patchState({
2002
- errors: { ...errors, [loadingName]: message },
2003
- });
2004
- }
2005
-
2006
- function handleApiRequest(config) {
2007
- const { ctx, key, request$, onSuccess, onError, errorMessage } = config;
2008
- startLoading(ctx, key);
2009
- return request$.pipe(tap((response) => {
2010
- const state = ctx.getState();
2011
- const patch = onSuccess(response, state);
2012
- if (patch) {
2013
- ctx.patchState(patch);
2014
- }
2015
- }), catchError((error) => {
2016
- const state = ctx.getState();
2017
- const message = error?.error?.message ?? error?.message ?? errorMessage;
2018
- setLoadingError(ctx, key, message);
2019
- // Call onError callback if provided
2020
- if (onError) {
2021
- const patch = onError(error, state);
2022
- if (patch) {
2023
- ctx.patchState(patch);
2024
- }
2025
- }
2026
- throw error;
2027
- }), finalize(() => endLoading(ctx, key)));
2028
- }
2029
-
2030
- /**
2031
- * T = entity type (Module, User, ...)
2032
- * TState = full state model (must include LoadingStateShape)
2033
- * TLoad = union type of loading keys for this feature
2034
- */
2035
- class CrudStateBase {
2036
- adapter = createEntityAdapter();
2037
- /**
2038
- * Helper to create default updateState function
2039
- */
2040
- getDefaultUpdateState(stateProperty) {
2041
- // Try to extract the property name from the stateProperty function
2042
- const funcStr = stateProperty.toString();
2043
- const match = funcStr.match(/\.([a-zA-Z_$][a-zA-Z0-9_$]*)/); // Match .propertyName
2044
- const key = match ? match[1] : 'items';
2045
- return (state, items) => ({ [key]: items });
2046
- }
2047
- /**
2048
- * @deprecated Use `handleApiRequest` directly with `onSuccess` callback.
2049
- * The `load()` method provides no significant benefit over `handleApiRequest`.
2050
- *
2051
- * @example
2052
- * // Instead of this.load(), use:
2053
- * return handleApiRequest({
2054
- * ctx,
2055
- * key: ActionKey.GetItems,
2056
- * request$: req$,
2057
- * onSuccess: (response) => ({
2058
- * items: response.data ?? [],
2059
- * }),
2060
- * });
2061
- */
2062
- load(ctx, config) {
2063
- return handleApiRequest({
2064
- ctx,
2065
- key: config.key,
2066
- request$: config.request$,
2067
- onSuccess: (response, state) => {
2068
- const data = config.transform
2069
- ? config.transform(response.data)
2070
- : response.data;
2071
- // If stateProperty provided, use adapter for array operations
2072
- if (config.stateProperty) {
2073
- const items = this.adapter.setAll(config.stateProperty(state), data);
2074
- const updateState = config.updateState ??
2075
- this.getDefaultUpdateState(config.stateProperty);
2076
- return updateState(state, items);
2077
- }
2078
- // Otherwise, use custom updateState directly
2079
- if (config.updateState) {
2080
- return config.updateState(state, data);
2081
- }
2082
- throw new Error('Either stateProperty or updateState must be provided');
2083
- },
2084
- onError: config.onError,
2085
- errorMessage: config.errorMessage ?? 'Failed to load data',
2086
- });
2087
- }
2088
- /**
2089
- * Create one entity with config object
2090
- */
2091
- create(ctx, config) {
2092
- const updateState = config.updateState ?? this.getDefaultUpdateState(config.stateProperty);
2093
- return handleApiRequest({
2094
- ctx,
2095
- key: config.key,
2096
- request$: config.request$,
2097
- onSuccess: (response, state) => {
2098
- const entity = config.transform
2099
- ? config.transform(response.data)
2100
- : response.data;
2101
- const items = this.adapter.addOne(config.stateProperty(state), entity);
2102
- return updateState(state, items);
2103
- },
2104
- onError: config.onError,
2105
- errorMessage: config.errorMessage ?? 'Failed to create item',
2106
- });
2107
- }
2108
- /**
2109
- * Update one entity with config object
2110
- */
2111
- update(ctx, config) {
2112
- const updateState = config.updateState ?? this.getDefaultUpdateState(config.stateProperty);
2113
- return handleApiRequest({
2114
- ctx,
2115
- key: config.key,
2116
- request$: config.request$,
2117
- onSuccess: (response, state) => {
2118
- const entity = config.transform
2119
- ? config.transform(response.data)
2120
- : response.data;
2121
- const items = this.adapter.upsertOne(config.stateProperty(state), entity, config.uniqueKey);
2122
- return updateState(state, items);
2123
- },
2124
- onError: config.onError,
2125
- errorMessage: config.errorMessage ?? 'Failed to update item',
2126
- });
2127
- }
2128
- /**
2129
- * Delete one entity with config object
2130
- */
2131
- delete(ctx, config) {
2132
- const updateState = config.updateState ?? this.getDefaultUpdateState(config.stateProperty);
2133
- return handleApiRequest({
2134
- ctx,
2135
- key: config.key,
2136
- request$: config.request$,
2137
- onSuccess: (_response, state) => {
2138
- const items = this.adapter.removeOne(config.stateProperty(state), config.id, config.uniqueKey);
2139
- return updateState(state, items);
2140
- },
2141
- onError: config.onError,
2142
- errorMessage: config.errorMessage ?? 'Failed to delete item',
2143
- });
2144
- }
2145
- }
2146
-
2147
- function isInvalid(control) {
2148
- if (!control)
2149
- return false;
2150
- return control && control?.invalid && control?.touched;
2151
- }
2152
-
2153
- /**
2154
- * Shared HTTP context token for request configuration.
2155
- * Used by interceptors to determine base URL routing.
2156
- *
2157
- * @example
2158
- * ```typescript
2159
- * import { REQUEST_CONTEXT } from '@masterteam/components';
2160
- *
2161
- * // In a service
2162
- * private context = new HttpContext().set(REQUEST_CONTEXT, { useBaseUrl: true });
2163
- *
2164
- * getMetadata(): Observable<any> {
2165
- * return this.http.get('metadata', { context: this.context });
2166
- * }
2167
- *
2168
- * // In interceptor
2169
- * const config = req.context.get(REQUEST_CONTEXT);
2170
- * if (config?.useBaseUrl) {
2171
- * // Use base URL
2172
- * }
2173
- * ```
2174
- */
2175
- const REQUEST_CONTEXT = new HttpContextToken(() => ({ useBaseUrl: false }));
2176
-
2177
- /**
2178
- * Color utility functions for brand display.
2179
- */
2180
- /**
2181
- * Converts a hex color to a light shade (equivalent to primary-100 in Tailwind).
2182
- * This creates a color with ~10% opacity or a very light tint by mixing with white.
2183
- */
2184
- function getLightColor(hexColor) {
2185
- const hex = hexColor.replace('#', '');
2186
- const r = parseInt(hex.substring(0, 2), 16);
2187
- const g = parseInt(hex.substring(2, 4), 16);
2188
- const b = parseInt(hex.substring(4, 6), 16);
2189
- const lightR = Math.round(r * 0.1 + 255 * 0.9);
2190
- const lightG = Math.round(g * 0.1 + 255 * 0.9);
2191
- const lightB = Math.round(b * 0.1 + 255 * 0.9);
2192
- return `#${lightR.toString(16).padStart(2, '0')}${lightG
2193
- .toString(16)
2194
- .padStart(2, '0')}${lightB.toString(16).padStart(2, '0')}`;
2195
- }
2196
- function getContrastColor(bgColor) {
2197
- let r = 0, g = 0, b = 0;
2198
- if (bgColor.startsWith('#')) {
2199
- const hex = bgColor.slice(1);
2200
- if (hex.length === 3) {
2201
- r = parseInt(hex[0] + hex[0], 16);
2202
- g = parseInt(hex[1] + hex[1], 16);
2203
- b = parseInt(hex[2] + hex[2], 16);
2204
- }
2205
- else if (hex.length === 6) {
2206
- r = parseInt(hex.slice(0, 2), 16);
2207
- g = parseInt(hex.slice(2, 4), 16);
2208
- b = parseInt(hex.slice(4, 6), 16);
2209
- }
2210
- }
2211
- const luminance = (0.299 * r + 0.587 * g + 0.114 * b) / 255;
2212
- return luminance > 0.5 ? '' : '#ffffff';
2213
- }
2214
-
2215
- /**
2216
- * Helpers for wall-clock values — the `HH:mm:ss` shape a `Time` property
2217
- * stores. A time of day carries no calendar date and no timezone, so it is
2218
- * never serialized as an instant: `new Date('09:30:00')` is `Invalid Date`,
2219
- * and pushing the clock through UTC would shift it by the viewer's offset.
2220
- */
2221
- const CLOCK_TIME_PATTERN = /^(\d{1,2}):(\d{2})(?::(\d{2})(?:\.\d+)?)?$/;
2222
- /**
2223
- * Parse a bare `H:mm`, `HH:mm`, or `HH:mm:ss` string — a trailing fractional
2224
- * second, as .NET `TimeOnly`/`TimeSpan` may emit, is ignored. Returns `null`
2225
- * for anything else, including full timestamps, which callers parse as dates.
2226
- */
2227
- function parseClockTime(value) {
2228
- if (typeof value !== 'string')
2229
- return null;
2230
- const match = CLOCK_TIME_PATTERN.exec(value.trim());
2231
- if (!match)
2232
- return null;
2233
- const hours = Number(match[1]);
2234
- const minutes = Number(match[2]);
2235
- const seconds = match[3] ? Number(match[3]) : 0;
2236
- if (hours > 23 || minutes > 59 || seconds > 59)
2237
- return null;
2238
- return { hours, minutes, seconds };
2239
- }
2240
- /** Read the local wall-clock time off a `Date`, or `null` for an invalid one. */
2241
- function toClockTimeParts(date) {
2242
- if (Number.isNaN(date.getTime()))
2243
- return null;
2244
- return {
2245
- hours: date.getHours(),
2246
- minutes: date.getMinutes(),
2247
- seconds: date.getSeconds(),
2248
- };
2249
- }
2250
- /** Format a wall-clock time as the `HH:mm:ss` text the backend stores. */
2251
- function formatClockTime(parts) {
2252
- return [parts.hours, parts.minutes, parts.seconds]
2253
- .map((part) => part.toString().padStart(2, '0'))
2254
- .join(':');
2255
- }
2256
- /** Seconds since midnight — the comparable form of a wall-clock time. */
2257
- function clockTimeToSeconds(parts) {
2258
- return parts.hours * 3600 + parts.minutes * 60 + parts.seconds;
2259
- }
2260
-
2261
- class MTDateFormatPipe {
2262
- locale = inject(LOCALE_ID);
2263
- formats = inject(MT_DATE_FORMATS);
2264
- transform(value, type = 'date') {
2265
- if (value === null || value === undefined || value === '') {
2266
- return '';
2267
- }
2268
- try {
2269
- // A calendar date and a wall clock both carry no timezone of their own,
2270
- // so they are pinned to `+0000` and rendered exactly as stored.
2271
- const zonelessValue = type === 'date' && typeof value === 'string'
2272
- ? parseDateOnlyValue(value)
2273
- : type === 'time'
2274
- ? parseClockOnlyValue(value)
2275
- : null;
2276
- return formatDate(zonelessValue ?? value, toAngularDateFormat(this.formats[type] ?? this.formats.date), this.locale, zonelessValue ? '+0000' : this.formats.timezone);
2277
- }
2278
- catch {
2279
- return String(value);
2280
- }
2281
- }
2282
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: MTDateFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
2283
- static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.8", ngImport: i0, type: MTDateFormatPipe, isStandalone: true, name: "mtDateFormat" });
2284
- }
2285
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: MTDateFormatPipe, decorators: [{
2286
- type: Pipe,
2287
- args: [{
2288
- name: 'mtDateFormat',
2289
- standalone: true,
2290
- }]
2291
- }] });
2292
- /**
2293
- * Keep a wall-clock time (`HH:mm:ss`, the shape a `Time` property stores)
2294
- * independent from both browser and configured zones. Values still stored as a
2295
- * full instant fall through to the normal timezone-aware path.
2296
- */
2297
- function parseClockOnlyValue(value) {
2298
- const clockTime = parseClockTime(value);
2299
- if (!clockTime)
2300
- return null;
2301
- const parsed = new Date(0);
2302
- parsed.setUTCHours(clockTime.hours, clockTime.minutes, clockTime.seconds, 0);
2303
- return parsed;
2304
- }
2305
- /** Keep a calendar date independent from both browser and configured zones. */
2306
- function parseDateOnlyValue(value) {
2307
- const match = /^(\d{4})-(\d{2})-(\d{2})(?=$|T)/.exec(value);
2308
- if (!match)
2309
- return null;
2310
- const year = Number(match[1]);
2311
- const monthIndex = Number(match[2]) - 1;
2312
- const day = Number(match[3]);
2313
- const parsed = new Date(0);
2314
- parsed.setUTCFullYear(year, monthIndex, day);
2315
- parsed.setUTCHours(0, 0, 0, 0);
2316
- if (parsed.getUTCFullYear() !== year ||
2317
- parsed.getUTCMonth() !== monthIndex ||
2318
- parsed.getUTCDate() !== day) {
2319
- throw new RangeError(`Invalid date-only value: ${value}`);
2320
- }
2321
- return parsed;
2322
- }
2323
-
2324
- /*
2325
- * Public API Surface of components
2326
- */
2327
- // Config
2328
-
2329
- /**
2330
- * Generated bundle index. Do not edit.
2331
- */
2332
-
2333
- export { BaseFacade, BaseFieldConfig, CheckboxFieldConfig, ColorPickerFieldConfig, CrudStateBase, DEFAULT_MT_DATE_FORMATS, DS_BLUE, DS_CHART_SERIES, DS_CONTROL_HEIGHT, DS_DEFAULT_PRIMARY_COLOR, DS_ERROR, DS_FONT_FAMILY, DS_GRAY, DS_INDIGO, DS_RADIUS, DS_SEMANTIC, DS_SHADOW, DS_SUCCESS, DS_WARNING, DateFieldConfig, EditorFieldConfig, EntityListFieldConfig, IconFieldConfig, LocationFieldConfig, LookupMatrixFieldConfig, LookupModuleCheckListFieldConfig, MTDateFormatPipe, MT_DATE_FORMATS, MT_DESIGN_IDENTITY_CLASS, MultiSelectFieldConfig, NumberFieldConfig, PickListFieldConfig, REQUEST_CONTEXT, RadioButtonFieldConfig, RadioCardsFieldConfig, ScheduleItemSelectorFieldConfig, SchedulePredecessorFieldConfig, SchemaConnectionFieldConfig, SelectFieldConfig, SliderFieldConfig, SpacerFieldConfig, TextFieldConfig, TextareaFieldConfig, ToggleFieldConfig, UploadFileFieldConfig, UserSearchFieldConfig, ValidatorConfig, applyDesignIdentityClass, changeBackgroundColor, changePrimaryColor, changeTextColor, clockTimeToSeconds, createCustomValidator, createEntityAdapter, dsChartSeries, dsIdentityConfigs, endLoading, formatClockTime, generateTailwindPalette, getContrastColor, getLightColor, getMTDesignIdentity, handleApiRequest, isInvalid, parseClockTime, provideMTComponents, provideMTConfirmation, provideMTDateFormats, provideMTMessages, setLoadingError, setMTDesignIdentity, startLoading, toAngularDateFormat, toClockTimeParts, wrapValidatorWithMessage };
2334
- //# sourceMappingURL=masterteam-components.mjs.map