@softheon/armature 19.23.2 → 21.0.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 (267) hide show
  1. package/assets/styles/_utility.scss +26 -7
  2. package/assets/styles/b2b/_b2b-inputs-override.scss +8 -8
  3. package/assets/styles/b2b/_b2b-tabs.scss +6 -6
  4. package/assets/styles/deprecated/_button-deprecated.scss +6 -6
  5. package/assets/styles/material-override/_checkbox.scss +1 -1
  6. package/assets/styles/material-override/_radio-button.scss +16 -16
  7. package/assets/styles/material-override/_slider.scss +44 -44
  8. package/assets/styles/material-override/_switch.scss +77 -77
  9. package/fesm2022/softheon-armature-ag-grid-components.mjs +23 -25
  10. package/fesm2022/softheon-armature-ag-grid-components.mjs.map +1 -1
  11. package/fesm2022/softheon-armature.mjs +419 -420
  12. package/fesm2022/softheon-armature.mjs.map +1 -1
  13. package/package.json +21 -21
  14. package/{ag-grid-components/src/sof-table/sof-table.component.d.ts → types/softheon-armature-ag-grid-components.d.ts} +103 -6
  15. package/types/softheon-armature.d.ts +7175 -0
  16. package/ag-grid-components/index.d.ts +0 -5
  17. package/ag-grid-components/public-api.d.ts +0 -5
  18. package/ag-grid-components/src/ag-grid-components.module.d.ts +0 -30
  19. package/ag-grid-components/src/column-options-modal/column-options.component.d.ts +0 -50
  20. package/ag-grid-components/src/table-cell/table-cell.component.d.ts +0 -18
  21. package/index.d.ts +0 -5
  22. package/lib/alert-banner/alert-banner-api.d.ts +0 -7
  23. package/lib/alert-banner/alert-banner.module.d.ts +0 -12
  24. package/lib/alert-banner/components/alert-banner/alert-banner.component.d.ts +0 -41
  25. package/lib/alert-banner/models/alert-banner-config.d.ts +0 -20
  26. package/lib/alert-banner/models/alert-banner-context.d.ts +0 -18
  27. package/lib/alert-banner/models/constants.d.ts +0 -15
  28. package/lib/alert-banner/services/alert-banner.service.d.ts +0 -28
  29. package/lib/armature.module.d.ts +0 -47
  30. package/lib/base-components/b2b/toast/components/sof-toast/sof-toast.component.d.ts +0 -9
  31. package/lib/base-components/b2b/toast/models/toast.model.d.ts +0 -7
  32. package/lib/base-components/b2b/toast/toast.service.d.ts +0 -21
  33. package/lib/base-components/base-component-api.d.ts +0 -24
  34. package/lib/base-components/base-component.module.d.ts +0 -48
  35. package/lib/base-components/confirm-address/sof-confirm-address/compare-address-pipe/compare-address.pipe.d.ts +0 -11
  36. package/lib/base-components/confirm-address/sof-confirm-address/sof-confirm-address.component.d.ts +0 -62
  37. package/lib/base-components/confirm-address/sof-confirm-address-county-change/sof-confirm-address-county-change.component.d.ts +0 -41
  38. package/lib/base-components/menu/menu.d.ts +0 -52
  39. package/lib/base-components/sof-alert/sof-alert.component.d.ts +0 -39
  40. package/lib/base-components/sof-badge/sof-badge.component.d.ts +0 -60
  41. package/lib/base-components/sof-banner/sof-banner.component.d.ts +0 -34
  42. package/lib/base-components/sof-bottom-sheet/sof-bottom-sheet.component.d.ts +0 -64
  43. package/lib/base-components/sof-button-toggle-group/sof-button-toggle-group.component.d.ts +0 -102
  44. package/lib/base-components/sof-callout/sof-callout.component.d.ts +0 -89
  45. package/lib/base-components/sof-chip/sof-chip.component.d.ts +0 -55
  46. package/lib/base-components/sof-context/sof-context.component.d.ts +0 -101
  47. package/lib/base-components/sof-dropdown-button/sof-dropdown-button.component.d.ts +0 -40
  48. package/lib/base-components/sof-handle/sof-handle.component.d.ts +0 -62
  49. package/lib/base-components/sof-image-checkbox/sof-image-checkbox.component.d.ts +0 -28
  50. package/lib/base-components/sof-input-stepper/sof-input-stepper.component.d.ts +0 -76
  51. package/lib/base-components/sof-modal/sof-modal.component.d.ts +0 -54
  52. package/lib/base-components/sof-progress-bar/sof-progress-bar.component.d.ts +0 -40
  53. package/lib/base-components/sof-radio-card/sof-radio-card.component.d.ts +0 -20
  54. package/lib/base-components/sof-segmented-control/sof-segmented-control.component.d.ts +0 -42
  55. package/lib/base-components/sof-simple-alert/sof-simple-alert.component.d.ts +0 -28
  56. package/lib/base-components/sof-star-rating/sof-star-rating.component.d.ts +0 -22
  57. package/lib/base-components/sof-utility-button/sof-utility-button.component.d.ts +0 -40
  58. package/lib/component-save-print/components/component-save-print/component-save-print.component.d.ts +0 -46
  59. package/lib/component-save-print/services/component-save-print.service.d.ts +0 -18
  60. package/lib/component-save-print/sof-ar-component-save-print.module.d.ts +0 -9
  61. package/lib/core/client-generated/api/session.service.d.ts +0 -94
  62. package/lib/core/client-generated/configuration.d.ts +0 -48
  63. package/lib/core/client-generated/encoder.d.ts +0 -10
  64. package/lib/core/client-generated/model/applicationUserModel.d.ts +0 -54
  65. package/lib/core/client-generated/model/assertedUserModel.d.ts +0 -25
  66. package/lib/core/client-generated/model/brandingModel.d.ts +0 -33
  67. package/lib/core/client-generated/model/errorModel.d.ts +0 -24
  68. package/lib/core/client-generated/model/folderLink.d.ts +0 -34
  69. package/lib/core/client-generated/model/identityProfile.d.ts +0 -82
  70. package/lib/core/client-generated/model/models.d.ts +0 -19
  71. package/lib/core/client-generated/model/oAuthModel.d.ts +0 -28
  72. package/lib/core/client-generated/model/preferencesRow.d.ts +0 -15
  73. package/lib/core/client-generated/model/rolesRow.d.ts +0 -17
  74. package/lib/core/client-generated/model/sessionGetResponseModel.d.ts +0 -23
  75. package/lib/core/client-generated/model/sessionPostRequestModel.d.ts +0 -39
  76. package/lib/core/client-generated/model/sessionPostResponseModel.d.ts +0 -23
  77. package/lib/core/client-generated/model/sessionPutRequestModel.d.ts +0 -39
  78. package/lib/core/client-generated/model/sessionPutResponseModel.d.ts +0 -23
  79. package/lib/core/client-generated/model/sessionResponseModel.d.ts +0 -43
  80. package/lib/core/client-generated/model/settingsProfile.d.ts +0 -21
  81. package/lib/core/client-generated/model/themePaletteColorsModel.d.ts +0 -96
  82. package/lib/core/client-generated/model/themePaletteModel.d.ts +0 -65
  83. package/lib/core/client-generated/model/trackingModel.d.ts +0 -24
  84. package/lib/core/client-generated/model/validationRecordsRow.d.ts +0 -17
  85. package/lib/core/client-generated/variables.d.ts +0 -8
  86. package/lib/core/components/app-template/app-template.component.d.ts +0 -73
  87. package/lib/core/functions/guid.d.ts +0 -4
  88. package/lib/core/functions/naming-convention.d.ts +0 -6
  89. package/lib/core/functions/route-to-pre-login-route.d.ts +0 -6
  90. package/lib/core/initializer/abstract-startup-service.d.ts +0 -5
  91. package/lib/core/initializer/initializer.service.d.ts +0 -87
  92. package/lib/core/interceptors/armature-auth-token-append.interceptor.d.ts +0 -31
  93. package/lib/core/models/base-config.d.ts +0 -31
  94. package/lib/core/models/constants.d.ts +0 -17
  95. package/lib/core/models/data-store-config.d.ts +0 -27
  96. package/lib/core/models/federated-module-config.d.ts +0 -3
  97. package/lib/core/models/header-config.d.ts +0 -9
  98. package/lib/core/models/http-verbs.d.ts +0 -10
  99. package/lib/core/models/market-selection-config.d.ts +0 -12
  100. package/lib/core/models/nav-panel-config.d.ts +0 -17
  101. package/lib/core/models/navigation-config.d.ts +0 -14
  102. package/lib/core/models/oidc-auth-settings.d.ts +0 -11
  103. package/lib/core/models/route-path.d.ts +0 -5
  104. package/lib/core/models/session-config.d.ts +0 -18
  105. package/lib/core/models/styles.d.ts +0 -11
  106. package/lib/core/models/subdomain-config.d.ts +0 -7
  107. package/lib/core/models/typed-session.d.ts +0 -17
  108. package/lib/core/models/user-entity-service-config.d.ts +0 -14
  109. package/lib/core/services/authorization.service.d.ts +0 -54
  110. package/lib/core/services/banner.service.d.ts +0 -31
  111. package/lib/core/services/base-config.service.d.ts +0 -21
  112. package/lib/core/services/custom-auth-config.service.d.ts +0 -6
  113. package/lib/core/services/default-config.service.d.ts +0 -8
  114. package/lib/core/services/federated-module.service.d.ts +0 -23
  115. package/lib/core/services/market-selection.service.d.ts +0 -137
  116. package/lib/core/services/selected-market-context.d.ts +0 -22
  117. package/lib/core/services/session.service.d.ts +0 -127
  118. package/lib/core/services/user-entity.service.d.ts +0 -47
  119. package/lib/directives/text-overflow-ellipsis-tooltip.directive.d.ts +0 -59
  120. package/lib/distributed-cache/client-generated/api/api.d.ts +0 -3
  121. package/lib/distributed-cache/client-generated/api/cache.service.d.ts +0 -72
  122. package/lib/distributed-cache/client-generated/configuration.d.ts +0 -48
  123. package/lib/distributed-cache/client-generated/encoder.d.ts +0 -10
  124. package/lib/distributed-cache/client-generated/model/cacheExpirationType.d.ts +0 -19
  125. package/lib/distributed-cache/client-generated/model/createCacheEntryRequestModel.d.ts +0 -33
  126. package/lib/distributed-cache/client-generated/model/models.d.ts +0 -4
  127. package/lib/distributed-cache/client-generated/model/retrieveCacheEntryResponseModel.d.ts +0 -20
  128. package/lib/distributed-cache/client-generated/model/updateCacheEntryRequestModel.d.ts +0 -20
  129. package/lib/distributed-cache/client-generated/variables.d.ts +0 -8
  130. package/lib/distributed-cache/distributed-cache-api.d.ts +0 -7
  131. package/lib/distributed-cache/distributed-cache.module.d.ts +0 -8
  132. package/lib/distributed-cache/models/constants.d.ts +0 -2
  133. package/lib/distributed-cache/models/policy-person.d.ts +0 -19
  134. package/lib/distributed-cache/services/server-cache.service.d.ts +0 -72
  135. package/lib/error/components/error-common/error-common.component.d.ts +0 -63
  136. package/lib/error/error-api.d.ts +0 -1
  137. package/lib/faq/components/faq/faq.component.d.ts +0 -22
  138. package/lib/faq/faq-api.d.ts +0 -5
  139. package/lib/faq/faq.module.d.ts +0 -15
  140. package/lib/faq/models/faq-config.d.ts +0 -13
  141. package/lib/faq/models/faq.d.ts +0 -9
  142. package/lib/feedback-tool/components/feedback-tool/feedback-tool.component.d.ts +0 -62
  143. package/lib/feedback-tool/feedback-tool-api.d.ts +0 -3
  144. package/lib/feedback-tool/feedback-tool.module.d.ts +0 -14
  145. package/lib/footer/components/footer/footer.component.d.ts +0 -14
  146. package/lib/footer/components/site-map/site-map.component.d.ts +0 -13
  147. package/lib/footer/footer-api.d.ts +0 -7
  148. package/lib/footer/footer.module.d.ts +0 -14
  149. package/lib/footer/models/enum/site-map-direction.d.ts +0 -13
  150. package/lib/footer/models/footer-config.d.ts +0 -7
  151. package/lib/footer/models/site-map-models.d.ts +0 -41
  152. package/lib/forms/components/sof-address/sof-address.component.d.ts +0 -56
  153. package/lib/forms/components/sof-select/sof-select.component.d.ts +0 -239
  154. package/lib/forms/directives/alphanumeric/alphanumeric.directive.d.ts +0 -31
  155. package/lib/forms/directives/date-input-filter/date-input-filter.directive.d.ts +0 -7
  156. package/lib/forms/directives/input-trim/input-trim.directive.d.ts +0 -58
  157. package/lib/forms/directives/letters-characters/letters-characters.directive.d.ts +0 -27
  158. package/lib/forms/directives/letters-only/letters-only.directive.d.ts +0 -27
  159. package/lib/forms/directives/numbers-only/numbers-only.directive.d.ts +0 -22
  160. package/lib/forms/forms-api.d.ts +0 -16
  161. package/lib/forms/forms.module.d.ts +0 -22
  162. package/lib/forms/models/address.d.ts +0 -14
  163. package/lib/forms/models/constants.d.ts +0 -9
  164. package/lib/forms/models/county.d.ts +0 -13
  165. package/lib/forms/models/enums/states.d.ts +0 -64
  166. package/lib/forms/pipes/phone-format.pipe.d.ts +0 -10
  167. package/lib/forms/services/alert.service.d.ts +0 -60
  168. package/lib/header/components/header/header.component.d.ts +0 -123
  169. package/lib/header/components/mobile-header-menu/mobile-header-menu.component.d.ts +0 -26
  170. package/lib/header/components/sof-header/menu-prevent-close-directive/menu-prevent-close.directive.d.ts +0 -7
  171. package/lib/header/components/sof-header/sof-header.component.d.ts +0 -123
  172. package/lib/header/components/sof-header/user-initials-pipe/user-initials.pipe.d.ts +0 -10
  173. package/lib/header/header-api.d.ts +0 -12
  174. package/lib/header/header.module.d.ts +0 -21
  175. package/lib/header/models/header-auth.settings.d.ts +0 -30
  176. package/lib/header/models/header-external-links.d.ts +0 -13
  177. package/lib/header/models/header-language.settings.d.ts +0 -10
  178. package/lib/header/models/header-theme.settings.d.ts +0 -19
  179. package/lib/header/models/header.settings.d.ts +0 -56
  180. package/lib/header/models/mobile-header-nav.settings.d.ts +0 -11
  181. package/lib/mfe/components/entity-base/entity-base.component.d.ts +0 -40
  182. package/lib/mfe/components/entity-inject-wrapper/entity-inject-wrapper.component.d.ts +0 -25
  183. package/lib/mfe/mfe.module.d.ts +0 -7
  184. package/lib/mfe/models/entity-config-base.d.ts +0 -5
  185. package/lib/mfe/models/entity-dto.d.ts +0 -191
  186. package/lib/mfe/services/entity-helper.service.d.ts +0 -60
  187. package/lib/navigation/components/b2b-nav/b2b-nav.component.d.ts +0 -103
  188. package/lib/navigation/components/navigation/navigation.component.d.ts +0 -201
  189. package/lib/navigation/components/sof-breadcrumbs/sof-breadcrumbs-hierarchy/sof-breadcrumbs-hierarchy.component.d.ts +0 -29
  190. package/lib/navigation/components/sof-breadcrumbs/sof-breadcrumbs-history/sof-breadcrumbs-history.component.d.ts +0 -36
  191. package/lib/navigation/components/sof-navigation-panel/models/nav-panel-logo.d.ts +0 -12
  192. package/lib/navigation/components/sof-navigation-panel/models/nav-panel-nodes.d.ts +0 -134
  193. package/lib/navigation/components/sof-navigation-panel/models/nav-panel-settings.d.ts +0 -11
  194. package/lib/navigation/components/sof-navigation-panel/sof-nav-panel.component.d.ts +0 -130
  195. package/lib/navigation/components/sof-sub-navigation/sof-sub-navigation.component.d.ts +0 -49
  196. package/lib/navigation/components/sof-tabs-navigation/sof-tabs.component.d.ts +0 -30
  197. package/lib/navigation/models/breadcrumb.d.ts +0 -9
  198. package/lib/navigation/models/nav-theme.settings.d.ts +0 -25
  199. package/lib/navigation/models/nav.settings.d.ts +0 -68
  200. package/lib/navigation/models/navigation.d.ts +0 -42
  201. package/lib/navigation/navigation-api.d.ts +0 -15
  202. package/lib/navigation/navigation.module.d.ts +0 -28
  203. package/lib/oauth/models/constants.d.ts +0 -6
  204. package/lib/oauth/models/generated/accountManagementAssertionModel.d.ts +0 -49
  205. package/lib/oauth/models/generated/accountManagementRefreshRequestModel.d.ts +0 -21
  206. package/lib/oauth/models/generated/accountManagementResponseModel.d.ts +0 -45
  207. package/lib/oauth/models/generated/coverageDetail.d.ts +0 -67
  208. package/lib/oauth/models/generated/finance.d.ts +0 -36
  209. package/lib/oauth/models/generated/iSsoResponseModel.d.ts +0 -44
  210. package/lib/oauth/models/generated/iSsoResponseModelAccountManagementAssertionModel.d.ts +0 -45
  211. package/lib/oauth/models/generated/person.d.ts +0 -53
  212. package/lib/oauth/models/generated/policy.d.ts +0 -51
  213. package/lib/oauth/models/generated/refreshResponseModel.d.ts +0 -20
  214. package/lib/oauth/models/hybrid-saml-oauth-config.d.ts +0 -14
  215. package/lib/oauth/oauth-api.d.ts +0 -12
  216. package/lib/oauth/oauth.module.d.ts +0 -8
  217. package/lib/oauth/services/hybrid-saml-oauth.service.d.ts +0 -59
  218. package/lib/rbac/directives/rbac-action.directive.d.ts +0 -27
  219. package/lib/rbac/models/access-token-claims.d.ts +0 -18
  220. package/lib/rbac/models/constants.d.ts +0 -4
  221. package/lib/rbac/models/decoded-access-token.d.ts +0 -43
  222. package/lib/rbac/models/rbac-config.d.ts +0 -15
  223. package/lib/rbac/models/role-access.d.ts +0 -7
  224. package/lib/rbac/rbac-api.d.ts +0 -11
  225. package/lib/rbac/rbac.module.d.ts +0 -19
  226. package/lib/rbac/services/ar-role-nav.service.d.ts +0 -25
  227. package/lib/rbac/services/oauth2-role.service.d.ts +0 -51
  228. package/lib/rbac/services/role-nav.service.d.ts +0 -12
  229. package/lib/rbac/services/tokens.d.ts +0 -3
  230. package/lib/resize-panels/components/resize-panels/resize-panels.component.d.ts +0 -64
  231. package/lib/resize-panels/models/resize-event.d.ts +0 -6
  232. package/lib/resize-panels/resize-panels-api.d.ts +0 -4
  233. package/lib/resize-panels/resize-panels.module.d.ts +0 -9
  234. package/lib/rum/models/arm-error.d.ts +0 -27
  235. package/lib/rum/models/rum-config.d.ts +0 -9
  236. package/lib/rum/rum-api.d.ts +0 -7
  237. package/lib/rum/rum.module.d.ts +0 -14
  238. package/lib/rum/services/rum.service.d.ts +0 -47
  239. package/lib/rum/services/shared-error.service.d.ts +0 -27
  240. package/lib/rum/services/softheon-error-handler.service.d.ts +0 -32
  241. package/lib/saml/components/redirect-saml/redirect-saml.component.d.ts +0 -41
  242. package/lib/saml/models/i-saml-request.d.ts +0 -4
  243. package/lib/saml/models/i-saml-response.d.ts +0 -4
  244. package/lib/saml/models/redirect-saml-request.d.ts +0 -24
  245. package/lib/saml/models/sso-gateway-model.d.ts +0 -17
  246. package/lib/saml/saml-api.d.ts +0 -11
  247. package/lib/saml/saml.module.d.ts +0 -9
  248. package/lib/saml/services/entry/abstract-saml-entry.service.d.ts +0 -16
  249. package/lib/saml/services/entry/sso-gateway-entry.service.d.ts +0 -22
  250. package/lib/saml/services/send-off/abstract-saml.service.d.ts +0 -20
  251. package/lib/saml/services/send-off/saml.service.d.ts +0 -32
  252. package/lib/snackbar/snackbar.d.ts +0 -52
  253. package/lib/snackbar/snackbar.service.d.ts +0 -50
  254. package/lib/snackbar/sof-snackbar/sof-snackbar.component.d.ts +0 -39
  255. package/lib/sof-pipe/constants/constants.d.ts +0 -8
  256. package/lib/sof-pipe/models/sof-date-pipe-format.d.ts +0 -7
  257. package/lib/sof-pipe/pipes/sof-blank/sof-blank.pipe.d.ts +0 -19
  258. package/lib/sof-pipe/pipes/sof-date/sof-date.pipe.d.ts +0 -21
  259. package/lib/sof-pipe/pipes/sof-ssn/sof-ssn.pipe.d.ts +0 -12
  260. package/lib/sof-pipe/sof-pipe.api.d.ts +0 -7
  261. package/lib/sof-pipe/sof-pipe.module.d.ts +0 -10
  262. package/lib/theming/directives/css-override.directive.d.ts +0 -20
  263. package/lib/theming/models/css-override.d.ts +0 -15
  264. package/lib/theming/services/theme.service.d.ts +0 -45
  265. package/lib/theming/theme-api.d.ts +0 -5
  266. package/lib/theming/theme.module.d.ts +0 -9
  267. package/public-api.d.ts +0 -66
@@ -1,239 +0,0 @@
1
- import { EventEmitter, ElementRef, OnInit, WritableSignal, Signal, ChangeDetectorRef, AfterViewInit, NgZone, OnDestroy } from '@angular/core';
2
- import { ControlValueAccessor, FormControl, NgControl, ValidationErrors, Validator } from '@angular/forms';
3
- import { TranslateService } from '@ngx-translate/core';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * @description
7
- * - This component can be used as a single select or multi-select.
8
- * - Can be used with a reactive formControlName.
9
- * - Can be used with [(ngModal)] binding.
10
- * - Can be used without a form using the (selectionChange) output event.
11
- */
12
- export declare class SofSelectComponent implements ControlValueAccessor, Validator, OnInit, AfterViewInit, OnDestroy {
13
- private _ngControl;
14
- private _host;
15
- private _cdr;
16
- private _zone;
17
- private _translate;
18
- /**
19
- * Unique id for testing
20
- * @note
21
- * this value will be used to prefix the id of the select trigger & each option by index -
22
- * ```
23
- * // trigger
24
- * <button [id]="id + '-select-trigger'">
25
- * // options
26
- * <li [id]="id + '-select-option-' + index">
27
- * ...
28
- * ```
29
- */
30
- id: string;
31
- /** Select options */
32
- set options(value: Array<SelectOption>);
33
- /** Select options local signal */
34
- private _options;
35
- /** Readonly select options signal */
36
- readOptions: Signal<Array<SelectOption>>;
37
- /** The select's label / placeholder */
38
- label: string;
39
- /** Optional helper text */
40
- helpText?: string;
41
- /**
42
- * Is multi-select ?
43
- * @default false
44
- */
45
- multiple?: boolean;
46
- /**
47
- * Show select all option (if multiple only)
48
- * @default false
49
- */
50
- showSelectAll?: boolean;
51
- /**
52
- * Is disabled ?
53
- * @default false
54
- * @note a Form control marked as disabled will also set this if not directly passed
55
- */
56
- isDisabled?: boolean;
57
- /**
58
- * Component width
59
- * @type `'full' | 'fixed'`
60
- * @default `'fixed'``
61
- * @description
62
- * - 'fixed' = width: 300px;
63
- * - 'full' = width: 100%;
64
- */
65
- width?: 'full' | 'fixed';
66
- /**
67
- * Should the select have a white background ?
68
- * @description
69
- * By default the select will have a background of $surface-color-level-one-light (#FAFAFA);\
70
- * In the case that the page or container background is the same or darker set this to true
71
- * to have the select use a white background.
72
- * @default false
73
- */
74
- useWhiteBackground?: boolean;
75
- /**
76
- * Error Messages ( Forms only )
77
- * @default required: 'armature.select.errors.required'
78
- * @example
79
- * ```
80
- * this.errorMessages = {
81
- * required: 'armature.select.errors.required',
82
- * minSelected: 'armature.select.errors.min-selected'
83
- * };
84
- *
85
- * form = this.fb.group({
86
- * fruits: [[], [Validators.required, minSelectedValidator(2)]]
87
- * });
88
- *
89
- * ...
90
- * export function minSelectedValidator(min: number) {
91
- * return (control: AbstractControl): ValidationErrors | null => {
92
- * const value = control.value;
93
- * if (Array.isArray(value) && value.length < min) {
94
- * return { minSelected: { required: min, actual: value.length } };
95
- * }
96
- * return null;
97
- * };
98
- *}
99
- * ```
100
- */
101
- errorMessages?: Record<string, string>;
102
- /** Selection change output if no form control */
103
- selectionChange: EventEmitter<string | string[]>;
104
- /** Selection list element ref */
105
- listboxRef: ElementRef<HTMLUListElement>;
106
- /** Validation errors */
107
- private _errors;
108
- /** Current validation error */
109
- errorMessage: Signal<string>;
110
- /** Is expanded ? */
111
- expanded: WritableSignal<boolean>;
112
- /** Active selection index */
113
- activeIndex: number;
114
- /** Selected item / item's values */
115
- selected: WritableSignal<Array<string> | string | null>;
116
- /** Keyboard typeahead buffer */
117
- private _typeaheadBuffer;
118
- /** Typeahead timeout */
119
- private _typeaheadTimeout;
120
- /** onChange form control method */
121
- private _onChange;
122
- /** onTouched form control method */
123
- private _onTouched;
124
- /** Is the form control have required validator ? */
125
- isRequired: WritableSignal<boolean>;
126
- /** Destroy ref to unsubscribe */
127
- private _destroyRef;
128
- /** Options input as Map */
129
- private readonly _valueToLabelMap;
130
- /**
131
- * The selected item label
132
- * @note for single select
133
- */
134
- selectedLabelSingle: Signal<string>;
135
- /**
136
- * The selected item's [item's label's]
137
- * @note for multi select
138
- */
139
- selectedLabelsMultiple: Signal<Array<string>>;
140
- /**
141
- * The selected item's [item's label's] visible chips
142
- * @note for multi select chip container
143
- */
144
- visibleChips: WritableSignal<Array<string>>;
145
- /** The number of hidden chips */
146
- hiddenChipsCount: WritableSignal<number>;
147
- /** Multi Selection chip list container element ref */
148
- multiChipContainer: ElementRef<HTMLElement>;
149
- /** The resize observer */
150
- private _resizeObserver;
151
- /** Are all items selected ? (multiple select) */
152
- isAllSelected: Signal<boolean>;
153
- /** Is the option selected ? */
154
- isSelected: (optionValue: string) => Signal<boolean>;
155
- /** The form control name */
156
- controlName: string;
157
- /** The derived form control */
158
- get derivedFormControl(): FormControl;
159
- /**
160
- * Constructor.
161
- * @param control The ng control
162
- */
163
- constructor(_ngControl: NgControl, _host: ElementRef, _cdr: ChangeDetectorRef, _zone: NgZone, _translate: TranslateService);
164
- /** Component init */
165
- ngOnInit(): void;
166
- /** After dom renders */
167
- ngAfterViewInit(): void;
168
- /** Component destroy */
169
- ngOnDestroy(): void;
170
- /** Toggle the select panel open/close */
171
- togglePanel(): void;
172
- /** Closes the select panel */
173
- closePanel(): void;
174
- /**
175
- * Option click event
176
- * @param option the option or all
177
- */
178
- onOptionClick(option: SelectOption | 'ALL'): void;
179
- /** Update the form or emit the selection change */
180
- private _propagateValue;
181
- /** Updates the visible chips */
182
- updateVisibleChips(): void;
183
- /** Remove chip */
184
- removeChip(label: string): void;
185
- /** Close the panel if clicked outside */
186
- onDocumentClick(event: Event): void;
187
- /**
188
- * Keyboard support
189
- * @param event keyboard event
190
- * @description
191
- * #### When focused on the select trigger
192
- * - the enter key or down arrow will open the panel;
193
- * #### When the panel is open
194
- * - escape key will close the panel;
195
- * - up/down arrows cycle through the options;
196
- * - enter or space key will select/deselect the option;
197
- */
198
- handleKeydown(event: KeyboardEvent): void;
199
- /**
200
- * Typeahead search
201
- * @param char
202
- * @description Will focus on the option if the key char matches
203
- */
204
- private _handleTypeahead;
205
- /** Scrolls to the active option index */
206
- private _scrollIntoView;
207
- /**
208
- * Triggered when the form control value is set outside the component
209
- * @param value
210
- */
211
- writeValue(value: string | Array<string> | null | undefined): void;
212
- /**
213
- * Triggered when the form control is changed
214
- * @param fn The callback function.
215
- */
216
- registerOnChange(fn: any): void;
217
- /**
218
- * Triggered when the form control is touched
219
- * @param fn The callback function.
220
- */
221
- registerOnTouched(fn: any): void;
222
- /** Called by the forms API when the control status changes to or from 'DISABLED' */
223
- setDisabledState(isDisabled: boolean): void;
224
- /** Runs the form control validator */
225
- validate(): ValidationErrors | null;
226
- static ɵfac: i0.ɵɵFactoryDeclaration<SofSelectComponent, [{ optional: true; host: true; self: true; }, null, null, null, null]>;
227
- static ɵcmp: i0.ɵɵComponentDeclaration<SofSelectComponent, "sof-select", never, { "id": { "alias": "id"; "required": true; }; "options": { "alias": "options"; "required": true; }; "label": { "alias": "label"; "required": true; }; "helpText": { "alias": "helpText"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "showSelectAll": { "alias": "showSelectAll"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; "width": { "alias": "width"; "required": false; }; "useWhiteBackground": { "alias": "useWhiteBackground"; "required": false; }; "errorMessages": { "alias": "errorMessages"; "required": false; }; }, { "selectionChange": "selectionChange"; }, never, never, true, never>;
228
- }
229
- /**
230
- * Select option interface
231
- * @property value: string, the value of the option
232
- * @property label: string, the label for the option
233
- * @optional isDisabled?: boolean, is the option disabled
234
- */
235
- export interface SelectOption {
236
- value: string;
237
- label: string;
238
- isDisabled?: boolean;
239
- }
@@ -1,31 +0,0 @@
1
- import { ElementRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * The alphanumeric directive
5
- */
6
- export declare class AlphaNumericDirective {
7
- private el;
8
- /** The array of allowed keys */
9
- private allowedKeys;
10
- /** Whether or not the entered value is a letter */
11
- private isLetter;
12
- /** Whether or not the entered value is a number */
13
- private isNumber;
14
- /**
15
- * Constructs the directive
16
- * @param el The element
17
- */
18
- constructor(el: ElementRef);
19
- /**
20
- * Only allows alphanumeric inputs
21
- * @param event Key Event
22
- */
23
- onKeyDown(event: KeyboardEvent): void;
24
- /**
25
- * Prevent copy pasted inputs
26
- * @param event the event
27
- */
28
- blockPaste(event: KeyboardEvent): void;
29
- static ɵfac: i0.ɵɵFactoryDeclaration<AlphaNumericDirective, never>;
30
- static ɵdir: i0.ɵɵDirectiveDeclaration<AlphaNumericDirective, "[alphanumeric]", never, {}, {}, never, never, false, never>;
31
- }
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- /** @note this restricts the user input to numbers [0-9] and forward slash (/) */
3
- export declare class DateInputFilterDirective {
4
- onInput(event: any): void;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<DateInputFilterDirective, never>;
6
- static ɵdir: i0.ɵɵDirectiveDeclaration<DateInputFilterDirective, "[sofArDateInputFilter]", never, {}, {}, never, never, false, never>;
7
- }
@@ -1,58 +0,0 @@
1
- import { ElementRef, Renderer2 } from "@angular/core";
2
- import { ControlValueAccessor } from "@angular/forms";
3
- import * as i0 from "@angular/core";
4
- export declare class InputTrimDirective implements ControlValueAccessor {
5
- private get _type();
6
- trim: string;
7
- /**
8
- * Keep the value of input element in a cache.
9
- * @type {string}
10
- * @private
11
- */
12
- private _value;
13
- private _sourceRenderer;
14
- private _sourceElementRef;
15
- /**
16
- * Updates the value on the blur event.
17
- */
18
- onBlur(event: string, value: string): void;
19
- /**
20
- * Updates the value on the input event.
21
- */
22
- onInput(event: string, value: string): void;
23
- onChange: (_: any) => void;
24
- onTouched: () => void;
25
- /**
26
- * Constructs the directive
27
- * @param renderer The renderer
28
- * @param ElementRef The elementRef
29
- * @param compositionMode The composition mode
30
- */
31
- constructor(renderer: Renderer2, elementRef: ElementRef, compositionMode: boolean);
32
- registerOnChange(fn: (_: any) => void): void;
33
- registerOnTouched(fn: () => void): void;
34
- /**
35
- * Writes a new value to the element based on the type of input element.
36
- * @param value new value
37
- */
38
- writeValue(value: any): void;
39
- /**
40
- * Sets state disabled.
41
- * @param isDisabled boolean value for state
42
- */
43
- setDisabledState(isDisabled: boolean): void;
44
- /**
45
- * Writes the cursor position
46
- * @param cursorPosition the cursor current position
47
- * @param hasTypedSymbol
48
- */
49
- private setCursorPointer;
50
- /**
51
- * Trims an input value, and sets it to the model and element.
52
- * @param value input value
53
- * @param event input event
54
- */
55
- private updateValue;
56
- static ɵfac: i0.ɵɵFactoryDeclaration<InputTrimDirective, [null, null, { optional: true; }]>;
57
- static ɵdir: i0.ɵɵDirectiveDeclaration<InputTrimDirective, "input[trim], textarea[trim]", never, { "trim": { "alias": "trim"; "required": false; }; }, {}, never, never, false, never>;
58
- }
@@ -1,27 +0,0 @@
1
- import { ElementRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * The letters and special characters directive
5
- */
6
- export declare class LettersCharactersDirective {
7
- private el;
8
- /** True if letters and special characters allowed */
9
- sofArLettersAndSpecialCharacters: boolean;
10
- /**
11
- * Constructs the directive
12
- * @param el The element
13
- */
14
- constructor(el: ElementRef);
15
- /**
16
- * Only allows letter and special character inputs
17
- * @param event Key Event
18
- */
19
- onKeyDown(event: any): void;
20
- /**
21
- * Allow user to copy and paste letters except special characters
22
- * @param event the event
23
- */
24
- allowPaste(event: ClipboardEvent): void;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<LettersCharactersDirective, never>;
26
- static ɵdir: i0.ɵɵDirectiveDeclaration<LettersCharactersDirective, "[sofArLettersAndSpecialCharacters]", never, { "sofArLettersAndSpecialCharacters": { "alias": "sofArLettersAndSpecialCharacters"; "required": false; }; }, {}, never, never, false, never>;
27
- }
@@ -1,27 +0,0 @@
1
- import { ElementRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * The letters only directive
5
- */
6
- export declare class LettersOnlyDirective {
7
- private el;
8
- /** True if only letters allowed */
9
- sofArLettersOnly: boolean;
10
- /**
11
- * Constructs the directive
12
- * @param el The element
13
- */
14
- constructor(el: ElementRef);
15
- /**
16
- * Only allows letter inputs
17
- * @param event Key Event
18
- */
19
- onKeyDown(event: any): void;
20
- /**
21
- * Allow user to copy and paste letters except special characters
22
- * @param event the event
23
- */
24
- allowPaste(event: ClipboardEvent): void;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<LettersOnlyDirective, never>;
26
- static ɵdir: i0.ɵɵDirectiveDeclaration<LettersOnlyDirective, "[sofArLettersOnly]", never, { "sofArLettersOnly": { "alias": "sofArLettersOnly"; "required": false; }; }, {}, never, never, false, never>;
27
- }
@@ -1,22 +0,0 @@
1
- import { ElementRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * Numbers only directive
5
- */
6
- export declare class NumbersOnlyDirective {
7
- private el;
8
- /** True if only numbers allowed */
9
- sofArNumbersOnly: boolean;
10
- /**
11
- * Constructs the directive
12
- * @param el The element
13
- */
14
- constructor(el: ElementRef);
15
- /**
16
- * Only allows number inputs
17
- * @param event Key Event
18
- */
19
- onKeyDown(event: any): void;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<NumbersOnlyDirective, never>;
21
- static ɵdir: i0.ɵɵDirectiveDeclaration<NumbersOnlyDirective, "[sofArNumbersOnly]", never, { "sofArNumbersOnly": { "alias": "sofArNumbersOnly"; "required": false; }; }, {}, never, never, false, never>;
22
- }
@@ -1,16 +0,0 @@
1
- /** Public API surface for the forms */
2
- export * from './forms.module';
3
- export * from './models/address';
4
- export * from './models/county';
5
- export * from './models/enums/states';
6
- export * from './models/constants';
7
- export * from './directives/letters-characters/letters-characters.directive';
8
- export * from './directives/letters-only/letters-only.directive';
9
- export * from './directives/numbers-only/numbers-only.directive';
10
- export * from './directives/alphanumeric/alphanumeric.directive';
11
- export * from './directives/input-trim/input-trim.directive';
12
- export * from './directives/date-input-filter/date-input-filter.directive';
13
- export * from './components/sof-address/sof-address.component';
14
- export * from './components/sof-select/sof-select.component';
15
- export * from './services/alert.service';
16
- export * from './pipes/phone-format.pipe';
@@ -1,22 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./components/sof-address/sof-address.component";
3
- import * as i2 from "./directives/letters-characters/letters-characters.directive";
4
- import * as i3 from "./directives/letters-only/letters-only.directive";
5
- import * as i4 from "./directives/numbers-only/numbers-only.directive";
6
- import * as i5 from "./directives/alphanumeric/alphanumeric.directive";
7
- import * as i6 from "./directives/input-trim/input-trim.directive";
8
- import * as i7 from "./directives/date-input-filter/date-input-filter.directive";
9
- import * as i8 from "./pipes/phone-format.pipe";
10
- import * as i9 from "@angular/common";
11
- import * as i10 from "@ngbracket/ngx-layout";
12
- import * as i11 from "@angular/forms";
13
- import * as i12 from "@angular/material/input";
14
- import * as i13 from "@angular/material/form-field";
15
- import * as i14 from "@angular/material/select";
16
- import * as i15 from "@angular/material/snack-bar";
17
- /** Armature forms module */
18
- export declare class FormsModule {
19
- static ɵfac: i0.ɵɵFactoryDeclaration<FormsModule, never>;
20
- static ɵmod: i0.ɵɵNgModuleDeclaration<FormsModule, [typeof i1.SofAddressComponent, typeof i2.LettersCharactersDirective, typeof i3.LettersOnlyDirective, typeof i4.NumbersOnlyDirective, typeof i5.AlphaNumericDirective, typeof i6.InputTrimDirective, typeof i7.DateInputFilterDirective, typeof i8.PhoneFormatPipe], [typeof i9.CommonModule, typeof i10.FlexLayoutModule, typeof i11.ReactiveFormsModule, typeof i12.MatInputModule, typeof i13.MatFormFieldModule, typeof i14.MatSelectModule, typeof i15.MatSnackBarModule], [typeof i1.SofAddressComponent, typeof i2.LettersCharactersDirective, typeof i3.LettersOnlyDirective, typeof i4.NumbersOnlyDirective, typeof i5.AlphaNumericDirective, typeof i6.InputTrimDirective, typeof i7.DateInputFilterDirective, typeof i8.PhoneFormatPipe]>;
21
- static ɵinj: i0.ɵɵInjectorDeclaration<FormsModule>;
22
- }
@@ -1,14 +0,0 @@
1
- import { County } from './county';
2
- /**
3
- * Address model
4
- */
5
- export interface Address {
6
- /** Street 1 */
7
- street1?: string;
8
- /** Street 2 */
9
- street2?: string;
10
- /** The city */
11
- city?: string;
12
- /** County */
13
- county?: County;
14
- }
@@ -1,9 +0,0 @@
1
- /** The validation key constants */
2
- export declare class ValidationKeys {
3
- static required: string;
4
- static minLength: string;
5
- static maxLength: string;
6
- static pattern: string;
7
- static maskError: string;
8
- static email: string;
9
- }
@@ -1,13 +0,0 @@
1
- /**
2
- * County model
3
- */
4
- export interface County {
5
- /** ZIP Code */
6
- zipCode?: string;
7
- /** FIPS Code */
8
- fipsCode?: string;
9
- /** State county is located in */
10
- state?: string;
11
- /** Name of the county */
12
- name?: string;
13
- }
@@ -1,64 +0,0 @@
1
- /**
2
- * The States enum
3
- */
4
- export declare enum States {
5
- AL = "Alabama",
6
- AK = "Alaska",
7
- AS = "American Samoa",
8
- AZ = "Arizona",
9
- AR = "Arkansas",
10
- CA = "California",
11
- CO = "Colorado",
12
- CT = "Connecticut",
13
- DE = "Delaware",
14
- DC = "District of Columbia",
15
- FL = "Florida",
16
- FM = "Micronesia",
17
- GA = "Georgia",
18
- GU = "Guam",
19
- HI = "Hawaii",
20
- ID = "Idaho",
21
- IL = "Illinois",
22
- IN = "Indiana",
23
- IA = "Iowa",
24
- KS = "Kansas",
25
- KY = "Kentucky",
26
- LA = "Louisiana",
27
- ME = "Maine",
28
- MD = "Maryland",
29
- MA = "Massachusetts",
30
- MH = "Marshall Islands",
31
- MI = "Michigan",
32
- MN = "Minnesota",
33
- MP = "Northern Mariana Islands",
34
- MS = "Mississippi",
35
- MO = "Missouri",
36
- MT = "Montana",
37
- NE = "Nebraska",
38
- NV = "Nevada",
39
- NH = "New Hampshire",
40
- NJ = "New Jersey",
41
- NM = "New Mexico",
42
- NY = "New York",
43
- NC = "North Carolina",
44
- ND = "North Dakota",
45
- OH = "Ohio",
46
- OK = "Oklahoma",
47
- OR = "Oregon",
48
- PA = "Pennsylvania",
49
- PR = "Puerto Rico",
50
- PW = "Palau",
51
- RI = "Rhode Island",
52
- SC = "South Carolina",
53
- SD = "South Dakota",
54
- TN = "Tennessee",
55
- TX = "Texas",
56
- UT = "Utah",
57
- VT = "Vermont",
58
- VA = "Virginia",
59
- VI = "Virgin Islands",
60
- WA = "Washington",
61
- WV = "West Virginia",
62
- WI = "Wisconsin",
63
- WY = "Wyoming"
64
- }
@@ -1,10 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * A pipe that takes a simple string phone number and formats it
5
- */
6
- export declare class PhoneFormatPipe implements PipeTransform {
7
- transform(phoneNumber: string): string;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<PhoneFormatPipe, never>;
9
- static ɵpipe: i0.ɵɵPipeDeclaration<PhoneFormatPipe, "sofArPhone", false>;
10
- }
@@ -1,60 +0,0 @@
1
- import { ElementRef } from '@angular/core';
2
- import { AbstractControl, FormGroup } from '@angular/forms';
3
- import { MatSnackBar } from '@angular/material/snack-bar';
4
- import { TranslateService } from '@ngx-translate/core';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * Service to handle error alerts
8
- */
9
- export declare class AlertService {
10
- snackBar: MatSnackBar;
11
- private translateService;
12
- /** the translation ket for close text */
13
- readonly closeTextKey: string;
14
- /**
15
- * The constructor
16
- * @param snackBar the angular material snackbar
17
- * @param translateService the translate service
18
- */
19
- constructor(snackBar: MatSnackBar, translateService: TranslateService);
20
- /**
21
- * Opens a generic snack bar alert
22
- * @param detailsTextKey text to show in the alert
23
- * @param durationLength how long the alert should be shown before it fades
24
- */
25
- openCustomSnackBarAlert(detailsTextKey: string, params?: any, durationLength?: number): void;
26
- /**
27
- * Opens an alert with a the specific form validation error
28
- * @param form the form to validate
29
- * @param el the element reference from the forms page, used to set focus on invalid form
30
- * @param durationLength how long the alert should be shown before it fades
31
- */
32
- openFormInvalidSnackBarAlert(form: FormGroup, el: ElementRef, durationLength?: number): void;
33
- /**
34
- * Iterates through a form (form group/form array) recursively to get the individual form control that is invalid
35
- * @param form the form to validate
36
- * @param el the element reference from the forms page, used to set focus on invalid form
37
- * @param durationLength how long the alert should be shown before it fades
38
- */
39
- getWhatIsNotFilledOut(form: FormGroup, el: ElementRef, durationLength: number): string;
40
- /**
41
- * Gets the error message based on the form control that is invalid
42
- * @param control the invalid form control
43
- * @param field the field name that is invalid
44
- * @param el the element reference from the forms page, used to set focus on invalid form
45
- * @param durationLength how long the alert should be shown before it fades
46
- */
47
- getErrorMessage(control: AbstractControl, field: string, el: ElementRef, durationLength: number): string;
48
- /**
49
- * Formats the form control name to readable text to display to the user in an error alert
50
- * @param field The field
51
- */
52
- getFieldFormattedText(field: string): string;
53
- /**
54
- * Sets focus to the first invalid form control element
55
- * @param el Element to focus on
56
- */
57
- setFocusToFormControl(el: ElementRef): void;
58
- static ɵfac: i0.ɵɵFactoryDeclaration<AlertService, never>;
59
- static ɵprov: i0.ɵɵInjectableDeclaration<AlertService>;
60
- }