@salesforce/ui-bundle-template-app-angular-template-b2x 11.30.0

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 (211) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/.forceignore +15 -0
  3. package/dist/.husky/pre-commit +4 -0
  4. package/dist/.prettierignore +11 -0
  5. package/dist/.prettierrc +17 -0
  6. package/dist/CHANGELOG.md +3966 -0
  7. package/dist/README.md +77 -0
  8. package/dist/config/project-scratch-def.json +13 -0
  9. package/dist/eslint.config.js +7 -0
  10. package/dist/force-app/main/default/classes/UIBundleAuthUtils.cls +68 -0
  11. package/dist/force-app/main/default/classes/UIBundleAuthUtils.cls-meta.xml +5 -0
  12. package/dist/force-app/main/default/classes/UIBundleChangePassword.cls +77 -0
  13. package/dist/force-app/main/default/classes/UIBundleChangePassword.cls-meta.xml +5 -0
  14. package/dist/force-app/main/default/classes/UIBundleForgotPassword.cls +71 -0
  15. package/dist/force-app/main/default/classes/UIBundleForgotPassword.cls-meta.xml +5 -0
  16. package/dist/force-app/main/default/classes/UIBundleLogin.cls +105 -0
  17. package/dist/force-app/main/default/classes/UIBundleLogin.cls-meta.xml +5 -0
  18. package/dist/force-app/main/default/classes/UIBundleRegistration.cls +162 -0
  19. package/dist/force-app/main/default/classes/UIBundleRegistration.cls-meta.xml +5 -0
  20. package/dist/force-app/main/default/digitalExperienceConfigs/angularexternalapp1.digitalExperienceConfig-meta.xml +8 -0
  21. package/dist/force-app/main/default/digitalExperiences/site/angularexternalapp1/angularexternalapp1.digitalExperience-meta.xml +11 -0
  22. package/dist/force-app/main/default/digitalExperiences/site/angularexternalapp1/sfdc_cms__site/angularexternalapp1/_meta.json +5 -0
  23. package/dist/force-app/main/default/digitalExperiences/site/angularexternalapp1/sfdc_cms__site/angularexternalapp1/content.json +10 -0
  24. package/dist/force-app/main/default/networks/angularexternalapp.network-meta.xml +60 -0
  25. package/dist/force-app/main/default/package.xml +24 -0
  26. package/dist/force-app/main/default/permissionsets/angularexternalapp_Guest_User_Api_Access.permissionset-meta.xml +9 -0
  27. package/dist/force-app/main/default/sites/angularexternalapp.site-meta.xml +31 -0
  28. package/dist/force-app/main/default/uiBundles/angularexternalapp/.forceignore +15 -0
  29. package/dist/force-app/main/default/uiBundles/angularexternalapp/.postcssrc.json +5 -0
  30. package/dist/force-app/main/default/uiBundles/angularexternalapp/.prettierignore +8 -0
  31. package/dist/force-app/main/default/uiBundles/angularexternalapp/.prettierrc +12 -0
  32. package/dist/force-app/main/default/uiBundles/angularexternalapp/CHANGELOG.md +4 -0
  33. package/dist/force-app/main/default/uiBundles/angularexternalapp/README.md +85 -0
  34. package/dist/force-app/main/default/uiBundles/angularexternalapp/angular.json +98 -0
  35. package/dist/force-app/main/default/uiBundles/angularexternalapp/angularexternalapp.uibundle-meta.xml +8 -0
  36. package/dist/force-app/main/default/uiBundles/angularexternalapp/e2e/app.spec.ts +15 -0
  37. package/dist/force-app/main/default/uiBundles/angularexternalapp/esbuild/api-version.mjs +17 -0
  38. package/dist/force-app/main/default/uiBundles/angularexternalapp/eslint.config.js +60 -0
  39. package/dist/force-app/main/default/uiBundles/angularexternalapp/middleware/html.mjs +3 -0
  40. package/dist/force-app/main/default/uiBundles/angularexternalapp/middleware/proxy.mjs +12 -0
  41. package/dist/force-app/main/default/uiBundles/angularexternalapp/package.json +56 -0
  42. package/dist/force-app/main/default/uiBundles/angularexternalapp/playwright.config.ts +25 -0
  43. package/dist/force-app/main/default/uiBundles/angularexternalapp/public/favicon.ico +0 -0
  44. package/dist/force-app/main/default/uiBundles/angularexternalapp/scripts/rewrite-e2e-assets.mjs +30 -0
  45. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/api/account/account-search.service.ts +196 -0
  46. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/api/account/distinctAccountIndustries.ts +26 -0
  47. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/api/account/distinctAccountTypes.ts +26 -0
  48. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/api/account/getAccountDetail.ts +128 -0
  49. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/api/account/searchAccounts.ts +58 -0
  50. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/api/data-client.service.spec.ts +184 -0
  51. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/api/data-client.service.ts +74 -0
  52. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/api/user-profile.service.ts +126 -0
  53. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/app.config.ts +22 -0
  54. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/app.html +1 -0
  55. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/app.routes.ts +77 -0
  56. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/app.spec.ts +18 -0
  57. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/app.ts +15 -0
  58. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/components/layout/app-layout/app-layout.component.html +53 -0
  59. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/components/layout/app-layout/app-layout.component.spec.ts +89 -0
  60. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/components/layout/app-layout/app-layout.component.ts +81 -0
  61. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/components/ui/_field-size.scss +42 -0
  62. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/components/ui/alert/alert.component.html +31 -0
  63. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/components/ui/alert/alert.component.ts +53 -0
  64. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/components/ui/button/button.component.html +18 -0
  65. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/components/ui/button/button.component.scss +112 -0
  66. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/components/ui/button/button.component.ts +57 -0
  67. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/components/ui/card/card.component.scss +34 -0
  68. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/components/ui/card/card.component.ts +110 -0
  69. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/components/ui/collapsible/collapsible.component.html +10 -0
  70. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/components/ui/collapsible/collapsible.component.ts +26 -0
  71. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/components/ui/date-picker/date-picker.component.html +25 -0
  72. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/components/ui/date-picker/date-picker.component.scss +36 -0
  73. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/components/ui/date-picker/date-picker.component.ts +41 -0
  74. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/components/ui/date-range-picker/date-range-picker.component.html +34 -0
  75. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/components/ui/date-range-picker/date-range-picker.component.scss +33 -0
  76. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/components/ui/date-range-picker/date-range-picker.component.ts +66 -0
  77. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/components/ui/dialog/dialog.component.html +37 -0
  78. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/components/ui/dialog/dialog.component.ts +55 -0
  79. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/components/ui/field/field.component.html +21 -0
  80. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/components/ui/field/field.component.ts +36 -0
  81. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/components/ui/field-size.ts +8 -0
  82. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/components/ui/input/input.component.html +19 -0
  83. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/components/ui/input/input.component.scss +35 -0
  84. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/components/ui/input/input.component.ts +36 -0
  85. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/components/ui/label/label.component.html +3 -0
  86. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/components/ui/label/label.component.ts +17 -0
  87. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/components/ui/paginator/paginator.component.html +10 -0
  88. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/components/ui/paginator/paginator.component.ts +37 -0
  89. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/components/ui/popover/popover.component.html +41 -0
  90. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/components/ui/popover/popover.component.ts +40 -0
  91. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/components/ui/select/select.component.html +24 -0
  92. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/components/ui/select/select.component.scss +35 -0
  93. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/components/ui/select/select.component.ts +72 -0
  94. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/components/ui/separator/separator.component.html +1 -0
  95. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/components/ui/separator/separator.component.scss +23 -0
  96. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/components/ui/separator/separator.component.ts +56 -0
  97. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/components/ui/skeleton/skeleton.component.html +1 -0
  98. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/components/ui/skeleton/skeleton.component.scss +28 -0
  99. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/components/ui/skeleton/skeleton.component.ts +24 -0
  100. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/components/ui/spinner/spinner.component.ts +35 -0
  101. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/authentication/auth/auth.guard.ts +50 -0
  102. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/authentication/auth/auth.service.ts +126 -0
  103. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/authentication/components/status-alert/status-alert.component.html +7 -0
  104. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/authentication/components/status-alert/status-alert.component.ts +52 -0
  105. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/authentication/config/authentication.config.ts +75 -0
  106. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/authentication/forms/auth-form/auth-form.component.html +38 -0
  107. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/authentication/forms/auth-form/auth-form.component.ts +94 -0
  108. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/authentication/forms/footer-link/footer-link.component.html +11 -0
  109. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/authentication/forms/footer-link/footer-link.component.ts +26 -0
  110. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/authentication/forms/reactive-form-page.base.ts +50 -0
  111. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/authentication/forms/submit-button/submit-button.component.html +8 -0
  112. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/authentication/forms/submit-button/submit-button.component.scss +17 -0
  113. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/authentication/forms/submit-button/submit-button.component.ts +35 -0
  114. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/authentication/layouts/auth-app-layout/auth-app-layout.component.html +2 -0
  115. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/authentication/layouts/auth-app-layout/auth-app-layout.component.ts +30 -0
  116. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/authentication/layouts/card-layout/card-layout.component.html +17 -0
  117. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/authentication/layouts/card-layout/card-layout.component.ts +40 -0
  118. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/authentication/menu/auth-menu/auth-menu.component.html +26 -0
  119. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/authentication/menu/auth-menu/auth-menu.component.ts +46 -0
  120. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/authentication/session-timeout/session-time-servlet.ts +130 -0
  121. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/authentication/session-timeout/session-timeout-validator/session-timeout-validator.component.html +57 -0
  122. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/authentication/session-timeout/session-timeout-validator/session-timeout-validator.component.ts +205 -0
  123. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/authentication/session-timeout/session-timeout.config.ts +83 -0
  124. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/authentication/session-timeout/session-timeout.service.ts +201 -0
  125. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/authentication/utils/auth-helpers.ts +68 -0
  126. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/authentication/utils/auth-validators.ts +72 -0
  127. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/authentication/utils/helpers.ts +85 -0
  128. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/object-search/components/active-filters/active-filters.component.html +23 -0
  129. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/object-search/components/active-filters/active-filters.component.ts +78 -0
  130. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/object-search/components/filters/date-filter/date-filter.component.html +18 -0
  131. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/object-search/components/filters/date-filter/date-filter.component.ts +137 -0
  132. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/object-search/components/filters/date-range-filter/date-range-filter.component.html +11 -0
  133. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/object-search/components/filters/date-range-filter/date-range-filter.component.ts +69 -0
  134. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/object-search/components/filters/filter-field-wrapper/filter-field-wrapper.component.html +11 -0
  135. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/object-search/components/filters/filter-field-wrapper/filter-field-wrapper.component.ts +36 -0
  136. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/object-search/components/filters/multi-select-filter/multi-select-filter.component.html +10 -0
  137. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/object-search/components/filters/multi-select-filter/multi-select-filter.component.ts +58 -0
  138. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/object-search/components/filters/numeric-range-filter/numeric-range-filter.component.html +22 -0
  139. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/object-search/components/filters/numeric-range-filter/numeric-range-filter.component.ts +146 -0
  140. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/object-search/components/filters/search-filter/search-filter.component.html +8 -0
  141. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/object-search/components/filters/search-filter/search-filter.component.ts +82 -0
  142. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/object-search/components/filters/select-filter/select-filter.component.html +12 -0
  143. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/object-search/components/filters/select-filter/select-filter.component.ts +65 -0
  144. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/object-search/components/filters/text-filter/text-filter.component.html +12 -0
  145. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/object-search/components/filters/text-filter/text-filter.component.ts +90 -0
  146. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/object-search/components/object-breadcrumb/object-breadcrumb.component.html +55 -0
  147. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/object-search/components/object-breadcrumb/object-breadcrumb.component.ts +40 -0
  148. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/object-search/components/pagination-controls/pagination-controls.component.html +8 -0
  149. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/object-search/components/pagination-controls/pagination-controls.component.ts +61 -0
  150. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/object-search/components/search-bar/search-bar.component.html +59 -0
  151. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/object-search/components/search-bar/search-bar.component.ts +108 -0
  152. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/object-search/components/sort-control/sort-control.component.html +50 -0
  153. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/object-search/components/sort-control/sort-control.component.ts +72 -0
  154. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/object-search/object-search-state.service.ts +232 -0
  155. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/object-search/utils/debounce.ts +31 -0
  156. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/object-search/utils/field-utils.ts +54 -0
  157. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/object-search/utils/filter-utils.ts +354 -0
  158. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/object-search/utils/index.ts +12 -0
  159. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/features/object-search/utils/sort-utils.ts +46 -0
  160. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/pages/account-detail/account-detail-page.component.html +174 -0
  161. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/pages/account-detail/account-detail-page.component.scss +7 -0
  162. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/pages/account-detail/account-detail-page.component.ts +199 -0
  163. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/pages/account-search/account-search-page.component.html +111 -0
  164. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/pages/account-search/account-search-page.component.ts +217 -0
  165. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/pages/change-password/change-password-page.component.html +68 -0
  166. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/pages/change-password/change-password-page.component.ts +82 -0
  167. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/pages/forgot-password/forgot-password-page.component.html +35 -0
  168. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/pages/forgot-password/forgot-password-page.component.ts +87 -0
  169. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/pages/home/home-page.component.html +18 -0
  170. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/pages/home/home-page.component.ts +47 -0
  171. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/pages/home/home.component.html +6 -0
  172. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/pages/home/home.component.spec.ts +23 -0
  173. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/pages/home/home.component.ts +13 -0
  174. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/pages/login/login-page.component.html +47 -0
  175. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/pages/login/login-page.component.ts +89 -0
  176. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/pages/not-found/not-found.component.html +12 -0
  177. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/pages/not-found/not-found.component.spec.ts +33 -0
  178. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/pages/not-found/not-found.component.ts +15 -0
  179. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/pages/profile/profile-page.component.html +126 -0
  180. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/pages/profile/profile-page.component.ts +194 -0
  181. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/pages/register/register-page.component.html +80 -0
  182. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/pages/register/register-page.component.ts +93 -0
  183. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/pages/reset-password/reset-password-page.component.html +60 -0
  184. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/pages/reset-password/reset-password-page.component.ts +96 -0
  185. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/app/utils/async-data.ts +99 -0
  186. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/index.html +14 -0
  187. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/main.ts +5 -0
  188. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/styles.scss +170 -0
  189. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/theme.scss +39 -0
  190. package/dist/force-app/main/default/uiBundles/angularexternalapp/src/types/sf-globals.d.ts +9 -0
  191. package/dist/force-app/main/default/uiBundles/angularexternalapp/tsconfig.app.json +11 -0
  192. package/dist/force-app/main/default/uiBundles/angularexternalapp/tsconfig.json +33 -0
  193. package/dist/force-app/main/default/uiBundles/angularexternalapp/tsconfig.spec.json +10 -0
  194. package/dist/force-app/main/default/uiBundles/angularexternalapp/ui-bundle.json +7 -0
  195. package/dist/jest.config.js +6 -0
  196. package/dist/package-lock.json +10066 -0
  197. package/dist/package.json +46 -0
  198. package/dist/scripts/apex/hello.apex +10 -0
  199. package/dist/scripts/gitignore-templates.json +4 -0
  200. package/dist/scripts/graphql-search.sh +191 -0
  201. package/dist/scripts/org-setup-config-schema.mjs +103 -0
  202. package/dist/scripts/org-setup-dev.mjs +87 -0
  203. package/dist/scripts/org-setup-utils.mjs +369 -0
  204. package/dist/scripts/org-setup-xml.mjs +182 -0
  205. package/dist/scripts/org-setup.config.json +9 -0
  206. package/dist/scripts/org-setup.mjs +1702 -0
  207. package/dist/scripts/sf-project-setup.mjs +103 -0
  208. package/dist/scripts/soql/account.soql +6 -0
  209. package/dist/scripts/validate-org-setup-config.mjs +38 -0
  210. package/dist/sfdx-project.json +12 -0
  211. package/package.json +40 -0
@@ -0,0 +1,112 @@
1
+ /**
2
+ * Copyright (c) 2026, Salesforce, Inc.,
3
+ * All rights reserved.
4
+ * For full license text, see the LICENSE.txt file
5
+ */
6
+ @use '@angular/material' as mat;
7
+
8
+ // Compact density themes — Material's canonical heights (36 / 32 / 28px).
9
+ $-lg: mat.define-theme(
10
+ (
11
+ density: (
12
+ scale: -1,
13
+ ),
14
+ )
15
+ );
16
+ $-md: mat.define-theme(
17
+ (
18
+ density: (
19
+ scale: -2,
20
+ ),
21
+ )
22
+ );
23
+ $-sm: mat.define-theme(
24
+ (
25
+ density: (
26
+ scale: -3,
27
+ ),
28
+ )
29
+ );
30
+
31
+ @mixin -height($h) {
32
+ --mat-button-filled-container-height: #{$h};
33
+ --mat-button-outlined-container-height: #{$h};
34
+ --mat-button-text-container-height: #{$h};
35
+ --mat-button-tonal-container-height: #{$h};
36
+ --mat-button-protected-container-height: #{$h};
37
+ }
38
+
39
+ @mixin -label-size($s) {
40
+ --mat-button-filled-label-text-size: #{$s};
41
+ --mat-button-outlined-label-text-size: #{$s};
42
+ --mat-button-text-label-text-size: #{$s};
43
+ --mat-button-tonal-label-text-size: #{$s};
44
+ --mat-button-protected-label-text-size: #{$s};
45
+ }
46
+
47
+ :host {
48
+ display: inline-flex;
49
+ }
50
+
51
+ .mat-mdc-button-base {
52
+ width: 100%;
53
+ font-weight: 500;
54
+ --mat-button-filled-container-shape: var(--radius-md);
55
+ --mat-button-outlined-container-shape: var(--radius-md);
56
+ --mat-button-text-container-shape: var(--radius-md);
57
+ --mat-button-tonal-container-shape: var(--radius-md);
58
+ --mat-button-protected-container-shape: var(--radius-md);
59
+ }
60
+
61
+ // Heights via Material's density scale; 24px (xs) sits below the button
62
+ // density floor (-3 = 28px), so it sets the height token directly.
63
+ .size-default,
64
+ .size-icon {
65
+ @include mat.button-density($-md);
66
+ }
67
+ .size-sm,
68
+ .size-icon-sm {
69
+ @include mat.button-density($-sm);
70
+ }
71
+ .size-lg,
72
+ .size-icon-lg {
73
+ @include mat.button-density($-lg);
74
+ }
75
+ .size-xs,
76
+ .size-icon-xs {
77
+ @include -height(1.5rem);
78
+ }
79
+
80
+ // Font-size isn't a density concern, so it stays a label token.
81
+ .size-default,
82
+ .size-lg {
83
+ @include -label-size(0.875rem);
84
+ }
85
+ .size-sm {
86
+ @include -label-size(0.8rem);
87
+ }
88
+ .size-xs {
89
+ @include -label-size(0.75rem);
90
+ }
91
+
92
+ // Icon-only: square, no min-width or horizontal padding. Material's leading-icon
93
+ // margins assume a text label, so zero them to keep the icon centred.
94
+ .size-icon,
95
+ .size-icon-xs,
96
+ .size-icon-sm,
97
+ .size-icon-lg {
98
+ width: auto;
99
+ min-width: 0;
100
+ padding: 0;
101
+ aspect-ratio: 1;
102
+
103
+ .mat-icon {
104
+ margin: 0;
105
+ }
106
+ }
107
+
108
+ // Destructive: subtle red tint + red text, matching React's bg-destructive/10.
109
+ .destructive {
110
+ --mat-button-filled-container-color: color-mix(in oklch, var(--destructive) 10%, transparent);
111
+ --mat-button-filled-label-text-color: var(--destructive);
112
+ }
@@ -0,0 +1,57 @@
1
+ /**
2
+ * Copyright (c) 2026, Salesforce, Inc.,
3
+ * All rights reserved.
4
+ * For full license text, see the LICENSE.txt file
5
+ */
6
+ import { ChangeDetectionStrategy, Component, computed, input, output } from '@angular/core';
7
+ import { MatButtonModule, type MatButtonAppearance } from '@angular/material/button';
8
+ import { MatIconModule } from '@angular/material/icon';
9
+
10
+ /** Material's appearances plus `destructive`, which Material doesn't provide. */
11
+ export type AppButtonAppearance = MatButtonAppearance | 'destructive';
12
+
13
+ /** Button size variants. */
14
+ export type AppButtonSize =
15
+ | 'default'
16
+ | 'xs'
17
+ | 'sm'
18
+ | 'lg'
19
+ | 'icon'
20
+ | 'icon-xs'
21
+ | 'icon-sm'
22
+ | 'icon-lg';
23
+
24
+ /**
25
+ * Thin wrapper over `matButton`. Adds a `destructive` appearance and a `size`
26
+ * scale Material lacks; inputs drive the inner button (a host class/aria attr
27
+ * would land on `<app-button>`, not the real `<button>`).
28
+ */
29
+ @Component({
30
+ selector: 'app-button',
31
+ changeDetection: ChangeDetectionStrategy.OnPush,
32
+ imports: [MatButtonModule, MatIconModule],
33
+ templateUrl: './button.component.html',
34
+ styleUrl: './button.component.scss',
35
+ })
36
+ export class ButtonComponent {
37
+ readonly appearance = input<AppButtonAppearance>('filled');
38
+ readonly size = input<AppButtonSize>('default');
39
+ readonly type = input<'button' | 'submit' | 'reset'>('button');
40
+ readonly disabled = input<boolean>(false);
41
+ readonly ariaLabel = input<string>();
42
+ readonly ariaExpanded = input<boolean>();
43
+ /** Extra classes for the inner button — `class` on the host forwards here. */
44
+ readonly classes = input<string>('', { alias: 'class' });
45
+ /** Leading / trailing Material icon ligature names, e.g. `search`. */
46
+ readonly icon = input<string>('');
47
+ readonly iconEnd = input<string>('');
48
+ readonly clicked = output<MouseEvent>();
49
+
50
+ /** `destructive` renders as a filled button carrying the destructive class. */
51
+ protected readonly matAppearance = computed<MatButtonAppearance>(() =>
52
+ this.appearance() === 'destructive' ? 'filled' : (this.appearance() as MatButtonAppearance),
53
+ );
54
+ protected readonly isDestructive = computed(() => this.appearance() === 'destructive');
55
+ /** Size class merged with any caller-supplied classes, applied to the button. */
56
+ protected readonly buttonClass = computed(() => `size-${this.size()} ${this.classes()}`.trim());
57
+ }
@@ -0,0 +1,34 @@
1
+ /**
2
+ * Copyright (c) 2026, Salesforce, Inc.,
3
+ * All rights reserved.
4
+ * For full license text, see the LICENSE.txt file
5
+ */
6
+
7
+ // `size="sm"` — compact padding. Material hardcodes the card's 16px padding
8
+ // (there is no padding design token to override), so the compact size tightens
9
+ // the real Material padding classes. `::ng-deep` is required because the slot
10
+ // content (`mat-card-header/content/actions`) is projected — it lives in the
11
+ // consumer's view, not this wrapper's — so a plain scoped selector can't reach
12
+ // it. The rules are anchored under `.app-card-sm`, a class only this component
13
+ // applies, so the deep selector stays contained to compact cards.
14
+ .app-card-sm {
15
+ ::ng-deep .mat-mdc-card-header {
16
+ padding: 0.75rem 0.75rem 0;
17
+ }
18
+
19
+ ::ng-deep .mat-mdc-card-content {
20
+ padding: 0 0.75rem;
21
+
22
+ &:first-child {
23
+ padding-top: 0.75rem;
24
+ }
25
+
26
+ &:last-child {
27
+ padding-bottom: 0.75rem;
28
+ }
29
+ }
30
+
31
+ ::ng-deep .mat-mdc-card-actions {
32
+ padding: 0.75rem;
33
+ }
34
+ }
@@ -0,0 +1,110 @@
1
+ /**
2
+ * Copyright (c) 2026, Salesforce, Inc.,
3
+ * All rights reserved.
4
+ * For full license text, see the LICENSE.txt file
5
+ */
6
+ import { ChangeDetectionStrategy, Component, input } from '@angular/core';
7
+ import {
8
+ MatCard,
9
+ MatCardActions,
10
+ MatCardContent,
11
+ MatCardHeader,
12
+ MatCardSubtitle,
13
+ MatCardTitle,
14
+ } from '@angular/material/card';
15
+
16
+ /** Card container density. */
17
+ export type AppCardSize = 'default' | 'sm';
18
+
19
+ /**
20
+ * Thin wrapper over `mat-card`. Preserves the `app-card` / `app-card-*` slot API
21
+ * while Material drives the visual. `size="sm"` maps to a compact-padding class.
22
+ */
23
+ @Component({
24
+ selector: 'app-card',
25
+ changeDetection: ChangeDetectionStrategy.OnPush,
26
+ imports: [MatCard],
27
+ template:
28
+ '<mat-card appearance="outlined" [class]="classes()" [class.app-card-sm]="size() === \'sm\'"><ng-content /></mat-card>',
29
+ styleUrl: './card.component.scss',
30
+ })
31
+ export class CardComponent {
32
+ readonly size = input<AppCardSize>('default');
33
+ /** Extra classes forwarded to the inner `mat-card` (host `class` lands here). */
34
+ readonly classes = input<string>('', { alias: 'class' });
35
+ }
36
+
37
+ /**
38
+ * Header slot — wraps `mat-card-header` and recreates its title/subtitle stack
39
+ * so the slots project by element selector (Material's static
40
+ * `[mat-card-title]` projection can't see the runtime attribute across this
41
+ * boundary, and would otherwise render title + subtitle side by side).
42
+ */
43
+ @Component({
44
+ selector: 'app-card-header',
45
+ changeDetection: ChangeDetectionStrategy.OnPush,
46
+ imports: [MatCardHeader],
47
+ template: `<mat-card-header [class]="classes()">
48
+ <ng-content select="[mat-card-avatar]" />
49
+ <div class="app-card-header-text">
50
+ <ng-content select="app-card-title" />
51
+ <ng-content select="app-card-description" />
52
+ </div>
53
+ <ng-content />
54
+ </mat-card-header>`,
55
+ styles: '.app-card-header-text { display: flex; flex-direction: column; gap: 0.25rem; }',
56
+ })
57
+ export class CardHeaderComponent {
58
+ /** Extra classes forwarded to the inner `mat-card-header`. */
59
+ readonly classes = input<string>('', { alias: 'class' });
60
+ }
61
+
62
+ /** Title slot — Material's `MatCardTitle` styling. */
63
+ @Component({
64
+ selector: 'app-card-title',
65
+ changeDetection: ChangeDetectionStrategy.OnPush,
66
+ hostDirectives: [MatCardTitle],
67
+ template: '<ng-content />',
68
+ })
69
+ export class CardTitleComponent {}
70
+
71
+ /** Description slot — Material's `mat-card-subtitle` styling. */
72
+ @Component({
73
+ selector: 'app-card-description',
74
+ changeDetection: ChangeDetectionStrategy.OnPush,
75
+ hostDirectives: [MatCardSubtitle],
76
+ template: '<ng-content />',
77
+ })
78
+ export class CardDescriptionComponent {}
79
+
80
+ /** Action slot — pinned to the trailing edge of `app-card-header`. */
81
+ @Component({
82
+ selector: 'app-card-action',
83
+ changeDetection: ChangeDetectionStrategy.OnPush,
84
+ host: { style: 'margin-inline-start: auto; align-self: flex-start;' },
85
+ template: '<ng-content />',
86
+ })
87
+ export class CardActionComponent {}
88
+
89
+ /** Body slot — Material's `mat-card-content`. */
90
+ @Component({
91
+ selector: 'app-card-content',
92
+ changeDetection: ChangeDetectionStrategy.OnPush,
93
+ hostDirectives: [MatCardContent],
94
+ template: '<ng-content />',
95
+ })
96
+ export class CardContentComponent {}
97
+
98
+ /**
99
+ * Footer slot — Material's `mat-card-actions` (a flex-row action bar).
100
+ * Material ships no inter-button spacing, so `:host` (the actions element)
101
+ * sets a `gap`.
102
+ */
103
+ @Component({
104
+ selector: 'app-card-footer',
105
+ changeDetection: ChangeDetectionStrategy.OnPush,
106
+ hostDirectives: [MatCardActions],
107
+ styles: ':host { gap: 0.5rem; }',
108
+ template: '<ng-content />',
109
+ })
110
+ export class CardFooterComponent {}
@@ -0,0 +1,10 @@
1
+ <mat-expansion-panel [expanded]="open()" (expandedChange)="open.set($event)">
2
+ <mat-expansion-panel-header>
3
+ @if (title()) {
4
+ <mat-panel-title>{{ title() }}</mat-panel-title>
5
+ } @else {
6
+ <ng-content select="[collapsibleHeader]" />
7
+ }
8
+ </mat-expansion-panel-header>
9
+ <ng-content />
10
+ </mat-expansion-panel>
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Copyright (c) 2026, Salesforce, Inc.,
3
+ * All rights reserved.
4
+ * For full license text, see the LICENSE.txt file
5
+ */
6
+ import { ChangeDetectionStrategy, Component, input, model } from '@angular/core';
7
+ import { MatExpansionModule } from '@angular/material/expansion';
8
+
9
+ /**
10
+ * Thin wrapper over Material's `mat-expansion-panel`. Two-way bindable `open`
11
+ * and a `title`; body via `<ng-content>`. For custom header content, omit
12
+ * `title` and project `[collapsibleHeader]`.
13
+ */
14
+ @Component({
15
+ selector: 'app-collapsible',
16
+ changeDetection: ChangeDetectionStrategy.OnPush,
17
+ imports: [MatExpansionModule],
18
+ templateUrl: './collapsible.component.html',
19
+ })
20
+ export class CollapsibleComponent {
21
+ /** Two-way bindable expanded state. Supports `[(open)]`. */
22
+ readonly open = model<boolean>(false);
23
+
24
+ /** Header title text. Omit and project `[collapsibleHeader]` for custom content. */
25
+ readonly title = input<string>('');
26
+ }
@@ -0,0 +1,25 @@
1
+ <mat-form-field
2
+ class="w-full"
3
+ [class]="'size-' + size()"
4
+ [appearance]="appearance()"
5
+ subscriptSizing="dynamic"
6
+ >
7
+ @if (label()) {
8
+ <mat-label>{{ label() }}</mat-label>
9
+ }
10
+ <input
11
+ matInput
12
+ [matDatepicker]="picker"
13
+ [min]="min()"
14
+ [max]="max()"
15
+ [placeholder]="placeholder()"
16
+ [disabled]="disabled()"
17
+ [readonly]="readonly()"
18
+ [(ngModel)]="value"
19
+ (click)="readonly() && picker.open()"
20
+ (keydown.enter)="readonly() && picker.open()"
21
+ (keydown.space)="readonly() && picker.open()"
22
+ />
23
+ <mat-datepicker-toggle matIconSuffix [for]="picker" />
24
+ <mat-datepicker #picker />
25
+ </mat-form-field>
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Copyright (c) 2026, Salesforce, Inc.,
3
+ * All rights reserved.
4
+ * For full license text, see the LICENSE.txt file
5
+ */
6
+
7
+ @use '../field-size' as field-size;
8
+
9
+ /*
10
+ * Form-field-specific structural styling. Height comes from the `size` input
11
+ * (see field-size.scss); colour comes from the --mat-sys-* remap (styles.css).
12
+ * Here we only: give the outline our design-token radius, emit the size
13
+ * classes, and collapse the empty hint/error subscript row.
14
+ */
15
+ @include field-size.sizes;
16
+
17
+ :host {
18
+ display: block;
19
+ /*
20
+ * Allow the host to shrink below the mat-form-field's intrinsic width when
21
+ * used as a flex item (e.g. two side-by-side pickers in a date-range filter,
22
+ * or a picker beside an operator select). Without this, the default
23
+ * `min-width: auto` on a flex item keeps each field at its content width and
24
+ * the row overflows its container.
25
+ */
26
+ min-width: 0;
27
+ }
28
+
29
+ .mat-mdc-form-field {
30
+ --mdc-outlined-text-field-container-shape: var(--radius-md);
31
+ font-size: 0.875rem; /* text-sm, matches the React inputs */
32
+ }
33
+
34
+ .mat-mdc-form-field-subscript-wrapper {
35
+ display: none;
36
+ }
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Copyright (c) 2026, Salesforce, Inc.,
3
+ * All rights reserved.
4
+ * For full license text, see the LICENSE.txt file
5
+ */
6
+ import { ChangeDetectionStrategy, Component, input, model } from '@angular/core';
7
+ import { FormsModule } from '@angular/forms';
8
+ import { MatDatepickerModule } from '@angular/material/datepicker';
9
+ import { MatFormFieldModule, type MatFormFieldAppearance } from '@angular/material/form-field';
10
+ import { MatInputModule } from '@angular/material/input';
11
+ import type { AppFieldSize } from '../field-size';
12
+
13
+ /**
14
+ * Thin wrapper over Material's `mat-form-field` + `matInput` + `mat-datepicker`.
15
+ * Relies on `provideNativeDateAdapter()`, so `value` is a plain `Date`.
16
+ */
17
+ @Component({
18
+ selector: 'app-date-picker',
19
+ changeDetection: ChangeDetectionStrategy.OnPush,
20
+ imports: [FormsModule, MatDatepickerModule, MatFormFieldModule, MatInputModule],
21
+ templateUrl: './date-picker.component.html',
22
+ styleUrl: './date-picker.component.scss',
23
+ })
24
+ export class DatePickerComponent {
25
+ /** Two-way bindable date value. `null` clears the field. Supports `[(value)]`. */
26
+ readonly value = model<Date | null>(null);
27
+
28
+ readonly label = input<string>('');
29
+ readonly placeholder = input<string>('');
30
+ readonly disabled = input<boolean>(false);
31
+ readonly appearance = input<MatFormFieldAppearance>('outline');
32
+ /** Field height: `sm` = 24px, `default` = 32px, `lg` = 40px. */
33
+ readonly size = input<AppFieldSize>('default');
34
+
35
+ /** Earliest / latest selectable date; `null` leaves that bound open. */
36
+ readonly min = input<Date | null>(null);
37
+ readonly max = input<Date | null>(null);
38
+
39
+ /** When `true`, calendar-only: typing is blocked, clicking opens the picker. */
40
+ readonly readonly = input<boolean>(false);
41
+ }
@@ -0,0 +1,34 @@
1
+ <mat-form-field
2
+ class="w-full"
3
+ [class]="'size-' + size()"
4
+ [appearance]="appearance()"
5
+ subscriptSizing="dynamic"
6
+ >
7
+ @if (label()) {
8
+ <mat-label>{{ label() }}</mat-label>
9
+ }
10
+ <mat-date-range-input [rangePicker]="picker" [min]="min()" [max]="max()" [disabled]="disabled()">
11
+ <input
12
+ matStartDate
13
+ [placeholder]="startPlaceholder()"
14
+ [value]="value()?.start ?? null"
15
+ [readonly]="readonly()"
16
+ (dateChange)="onStartChange($event.value)"
17
+ (click)="readonly() && picker.open()"
18
+ (keydown.enter)="readonly() && picker.open()"
19
+ (keydown.space)="readonly() && picker.open()"
20
+ />
21
+ <input
22
+ matEndDate
23
+ [placeholder]="endPlaceholder()"
24
+ [value]="value()?.end ?? null"
25
+ [readonly]="readonly()"
26
+ (dateChange)="onEndChange($event.value)"
27
+ (click)="readonly() && picker.open()"
28
+ (keydown.enter)="readonly() && picker.open()"
29
+ (keydown.space)="readonly() && picker.open()"
30
+ />
31
+ </mat-date-range-input>
32
+ <mat-datepicker-toggle matIconSuffix [for]="picker" />
33
+ <mat-date-range-picker #picker />
34
+ </mat-form-field>
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Copyright (c) 2026, Salesforce, Inc.,
3
+ * All rights reserved.
4
+ * For full license text, see the LICENSE.txt file
5
+ */
6
+
7
+ @use '../field-size' as field-size;
8
+
9
+ /*
10
+ * Form-field-specific structural styling. Height comes from the `size` input
11
+ * (see field-size.scss); colour comes from the --mat-sys-* remap (styles.css).
12
+ * Here we only: give the outline our design-token radius, emit the size
13
+ * classes, and collapse the empty hint/error subscript row.
14
+ */
15
+ @include field-size.sizes;
16
+
17
+ :host {
18
+ display: block;
19
+ /*
20
+ * Allow the host to shrink below the mat-form-field's intrinsic width when
21
+ * used as a flex item, so the row doesn't overflow its container.
22
+ */
23
+ min-width: 0;
24
+ }
25
+
26
+ .mat-mdc-form-field {
27
+ --mdc-outlined-text-field-container-shape: var(--radius-md);
28
+ font-size: 0.875rem; /* text-sm, matches the React inputs */
29
+ }
30
+
31
+ .mat-mdc-form-field-subscript-wrapper {
32
+ display: none;
33
+ }
@@ -0,0 +1,66 @@
1
+ /**
2
+ * Copyright (c) 2026, Salesforce, Inc.,
3
+ * All rights reserved.
4
+ * For full license text, see the LICENSE.txt file
5
+ */
6
+ import { ChangeDetectionStrategy, Component, input, model } from '@angular/core';
7
+ import { FormsModule } from '@angular/forms';
8
+ import { DateRange, MatDatepickerModule } from '@angular/material/datepicker';
9
+ import { MatFormFieldModule, type MatFormFieldAppearance } from '@angular/material/form-field';
10
+ import { MatInputModule } from '@angular/material/input';
11
+ import type { AppFieldSize } from '../field-size';
12
+
13
+ export { DateRange } from '@angular/material/datepicker';
14
+
15
+ /**
16
+ * Thin wrapper over Material's `mat-form-field` + `mat-date-range-input` +
17
+ * `mat-date-range-picker`. Relies on `provideNativeDateAdapter()`, so the value
18
+ * is Material's `DateRange<Date>` (`{ start, end }`) of plain `Date`s.
19
+ */
20
+ @Component({
21
+ selector: 'app-date-range-picker',
22
+ changeDetection: ChangeDetectionStrategy.OnPush,
23
+ imports: [FormsModule, MatDatepickerModule, MatFormFieldModule, MatInputModule],
24
+ templateUrl: './date-range-picker.component.html',
25
+ styleUrl: './date-range-picker.component.scss',
26
+ })
27
+ export class DateRangePickerComponent {
28
+ /** Two-way bindable range value. `null` clears the field. Supports `[(value)]`. */
29
+ readonly value = model<DateRange<Date> | null>(null);
30
+
31
+ readonly label = input<string>('');
32
+ readonly startPlaceholder = input<string>('Start');
33
+ readonly endPlaceholder = input<string>('End');
34
+ readonly disabled = input<boolean>(false);
35
+ readonly appearance = input<MatFormFieldAppearance>('outline');
36
+ /** Field height: `sm` = 24px, `default` = 32px, `lg` = 40px. */
37
+ readonly size = input<AppFieldSize>('default');
38
+
39
+ /** Earliest / latest selectable date; `null` leaves that bound open. */
40
+ readonly min = input<Date | null>(null);
41
+ readonly max = input<Date | null>(null);
42
+
43
+ /** When `true`, calendar-only: typing is blocked, clicking opens the picker. */
44
+ readonly readonly = input<boolean>(false);
45
+
46
+ /** Start/end come off the range input's `(dateChange)` events as a pair. */
47
+ protected onStartChange(start: Date | null): void {
48
+ this.setRange(start, this.value()?.end ?? null);
49
+ }
50
+
51
+ protected onEndChange(end: Date | null): void {
52
+ this.setRange(this.value()?.start ?? null, end);
53
+ }
54
+
55
+ /**
56
+ * Commit a range, guarding against an inverted `start > end` that the two
57
+ * independent `(dateChange)` events can otherwise produce mid-selection.
58
+ */
59
+ private setRange(start: Date | null, end: Date | null): void {
60
+ if (start && end && start.getTime() > end.getTime()) {
61
+ this.value.set(new DateRange(end, start));
62
+ return;
63
+ }
64
+ this.value.set(new DateRange(start, end));
65
+ }
66
+ }
@@ -0,0 +1,37 @@
1
+ <ng-template
2
+ cdkConnectedOverlay
3
+ [cdkConnectedOverlayOpen]="open()"
4
+ [cdkConnectedOverlayHasBackdrop]="true"
5
+ cdkConnectedOverlayBackdropClass="cdk-overlay-dark-backdrop"
6
+ [cdkConnectedOverlayPositions]="[
7
+ {
8
+ originX: 'center',
9
+ originY: 'center',
10
+ overlayX: 'center',
11
+ overlayY: 'center',
12
+ },
13
+ ]"
14
+ (backdropClick)="onBackdropClick()"
15
+ (overlayKeydown)="$event.key === 'Escape' && close()"
16
+ (detach)="close()"
17
+ >
18
+ <div
19
+ role="dialog"
20
+ aria-modal="true"
21
+ [attr.aria-label]="ariaLabel()"
22
+ [attr.aria-labelledby]="ariaLabelledby()"
23
+ cdkTrapFocus
24
+ [cdkTrapFocusAutoCapture]="true"
25
+ class="bg-card text-card-foreground flex w-full max-w-md flex-col gap-4 rounded-xl p-6 shadow-lg ring-1 ring-black/10 outline-none"
26
+ >
27
+ <div data-slot="dialog-header" class="flex flex-col gap-1">
28
+ <ng-content select="[header]" />
29
+ </div>
30
+ <div data-slot="dialog-body" class="text-sm">
31
+ <ng-content />
32
+ </div>
33
+ <div data-slot="dialog-footer" class="flex items-center justify-end gap-2">
34
+ <ng-content select="[footer]" />
35
+ </div>
36
+ </div>
37
+ </ng-template>