@softheon/armature 15.21.2 → 17.1.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.
- package/README.md +142 -18
- package/assets/styles/_utility.scss +35 -0
- package/assets/styles/material-overrides.scss +0 -1
- package/assets/styles/sof-styles.scss +8 -7
- package/{esm2020 → esm2022}/lib/alert-banner/alert-banner-api.mjs +9 -9
- package/{esm2020 → esm2022}/lib/alert-banner/alert-banner.module.mjs +41 -41
- package/{esm2020 → esm2022}/lib/alert-banner/components/alert-banner/alert-banner.component.mjs +83 -83
- package/{esm2020 → esm2022}/lib/alert-banner/models/alert-banner-config.mjs +1 -1
- package/{esm2020 → esm2022}/lib/alert-banner/models/alert-banner-context.mjs +1 -1
- package/{esm2020 → esm2022}/lib/alert-banner/models/constants.mjs +15 -15
- package/{esm2020 → esm2022}/lib/alert-banner/services/alert-banner.service.mjs +44 -44
- package/esm2022/lib/armature.module.mjs +176 -0
- package/{esm2020 → esm2022}/lib/base-components/base-component-api.mjs +14 -14
- package/{esm2020 → esm2022}/lib/base-components/base-component.module.mjs +123 -123
- package/{esm2020 → esm2022}/lib/base-components/sof-alert/sof-alert.component.mjs +79 -79
- package/{esm2020 → esm2022}/lib/base-components/sof-badge/sof-badge.component.mjs +49 -49
- package/esm2022/lib/base-components/sof-banner/sof-banner.component.mjs +49 -0
- package/{esm2020 → esm2022}/lib/base-components/sof-button-toggle-group/sof-button-toggle-group.component.mjs +188 -188
- package/{esm2020 → esm2022}/lib/base-components/sof-confirm-address/sof-confirm-address.component.mjs +59 -59
- package/esm2022/lib/base-components/sof-image-checkbox/sof-image-checkbox.component.mjs +58 -0
- package/esm2022/lib/base-components/sof-modal/sof-modal.component.mjs +57 -0
- package/esm2022/lib/base-components/sof-progress-bar/sof-progress-bar.component.mjs +79 -0
- package/{esm2020 → esm2022}/lib/base-components/sof-radio-card/sof-radio-card.component.mjs +35 -35
- package/{esm2020 → esm2022}/lib/base-components/sof-simple-alert/sof-simple-alert.component.mjs +49 -49
- package/esm2022/lib/base-components/sof-star-rating/sof-star-rating.component.mjs +40 -0
- package/{esm2020 → esm2022}/lib/component-save-print/components/component-save-print/component-save-print.component.mjs +91 -91
- package/{esm2020 → esm2022}/lib/component-save-print/services/component-save-print.service.mjs +30 -30
- package/esm2022/lib/component-save-print/sof-ar-component-save-print.module.mjs +29 -0
- package/{esm2020 → esm2022}/lib/core/client-generated/api/session.service.mjs +242 -242
- package/{esm2020 → esm2022}/lib/core/client-generated/configuration.mjs +58 -58
- package/{esm2020 → esm2022}/lib/core/client-generated/encoder.mjs +16 -16
- package/{esm2020 → esm2022}/lib/core/client-generated/model/applicationUserModel.mjs +19 -19
- package/{esm2020 → esm2022}/lib/core/client-generated/model/assertedUserModel.mjs +1 -1
- package/{esm2020 → esm2022}/lib/core/client-generated/model/brandingModel.mjs +1 -1
- package/{esm2020 → esm2022}/lib/core/client-generated/model/errorModel.mjs +12 -12
- package/{esm2020 → esm2022}/lib/core/client-generated/model/folderLink.mjs +12 -12
- package/{esm2020 → esm2022}/lib/core/client-generated/model/identityProfile.mjs +1 -1
- package/{esm2020 → esm2022}/lib/core/client-generated/model/models.mjs +19 -19
- package/{esm2020 → esm2022}/lib/core/client-generated/model/oAuthModel.mjs +12 -12
- package/{esm2020 → esm2022}/lib/core/client-generated/model/preferencesRow.mjs +12 -12
- package/{esm2020 → esm2022}/lib/core/client-generated/model/rolesRow.mjs +12 -12
- package/{esm2020 → esm2022}/lib/core/client-generated/model/sessionGetResponseModel.mjs +1 -1
- package/{esm2020 → esm2022}/lib/core/client-generated/model/sessionPostRequestModel.mjs +1 -1
- package/{esm2020 → esm2022}/lib/core/client-generated/model/sessionPostResponseModel.mjs +1 -1
- package/{esm2020 → esm2022}/lib/core/client-generated/model/sessionPutRequestModel.mjs +1 -1
- package/{esm2020 → esm2022}/lib/core/client-generated/model/sessionPutResponseModel.mjs +1 -1
- package/{esm2020 → esm2022}/lib/core/client-generated/model/sessionResponseModel.mjs +1 -1
- package/{esm2020 → esm2022}/lib/core/client-generated/model/settingsProfile.mjs +1 -1
- package/{esm2020 → esm2022}/lib/core/client-generated/model/themePaletteColorsModel.mjs +12 -12
- package/{esm2020 → esm2022}/lib/core/client-generated/model/themePaletteModel.mjs +1 -1
- package/{esm2020 → esm2022}/lib/core/client-generated/model/trackingModel.mjs +12 -12
- package/{esm2020 → esm2022}/lib/core/client-generated/model/validationRecordsRow.mjs +12 -12
- package/{esm2020 → esm2022}/lib/core/client-generated/variables.mjs +8 -8
- package/{esm2020 → esm2022}/lib/core/components/app-template/app-template.component.mjs +250 -250
- package/{esm2020 → esm2022}/lib/core/functions/guid.mjs +10 -10
- package/{esm2020 → esm2022}/lib/core/functions/naming-convention.mjs +32 -32
- package/{esm2020 → esm2022}/lib/core/functions/route-to-pre-login-route.mjs +12 -12
- package/{esm2020 → esm2022}/lib/core/initializer/abstract-startup-service.mjs +3 -3
- package/{esm2020 → esm2022}/lib/core/initializer/initializer.service.mjs +286 -286
- package/{esm2020 → esm2022}/lib/core/interceptors/armature-auth-token-append.interceptor.mjs +73 -73
- package/{esm2020 → esm2022}/lib/core/models/base-config.mjs +1 -1
- package/{esm2020 → esm2022}/lib/core/models/constants.mjs +12 -12
- package/{esm2020 → esm2022}/lib/core/models/data-store-config.mjs +3 -3
- package/{esm2020 → esm2022}/lib/core/models/header-config.mjs +1 -1
- package/{esm2020 → esm2022}/lib/core/models/http-verbs.mjs +8 -8
- package/{esm2020 → esm2022}/lib/core/models/navigation-config.mjs +1 -1
- package/{esm2020 → esm2022}/lib/core/models/oidc-auth-settings.mjs +1 -1
- package/{esm2020 → esm2022}/lib/core/models/route-path.mjs +6 -6
- package/{esm2020 → esm2022}/lib/core/models/session-config.mjs +3 -3
- package/{esm2020 → esm2022}/lib/core/models/styles.mjs +1 -1
- package/{esm2020 → esm2022}/lib/core/models/subdomain-config.mjs +1 -1
- package/{esm2020 → esm2022}/lib/core/models/typed-session.mjs +3 -3
- package/{esm2020 → esm2022}/lib/core/models/user-entity-service-config.mjs +11 -11
- package/{esm2020 → esm2022}/lib/core/services/authorization.service.mjs +175 -175
- package/{esm2020 → esm2022}/lib/core/services/banner.service.mjs +43 -43
- package/{esm2020 → esm2022}/lib/core/services/base-config.service.mjs +32 -32
- package/{esm2020 → esm2022}/lib/core/services/custom-auth-config.service.mjs +3 -3
- package/{esm2020 → esm2022}/lib/core/services/default-config.service.mjs +19 -19
- package/{esm2020 → esm2022}/lib/core/services/session.service.mjs +385 -385
- package/{esm2020 → esm2022}/lib/core/services/user-entity.service.mjs +140 -140
- package/{esm2020 → esm2022}/lib/distributed-cache/client-generated/api/api.mjs +3 -3
- package/{esm2020 → esm2022}/lib/distributed-cache/client-generated/api/cache.service.mjs +213 -213
- package/{esm2020 → esm2022}/lib/distributed-cache/client-generated/configuration.mjs +58 -58
- package/{esm2020 → esm2022}/lib/distributed-cache/client-generated/encoder.mjs +16 -16
- package/{esm2020 → esm2022}/lib/distributed-cache/client-generated/model/cacheExpirationType.mjs +15 -15
- package/{esm2020 → esm2022}/lib/distributed-cache/client-generated/model/createCacheEntryRequestModel.mjs +1 -1
- package/{esm2020 → esm2022}/lib/distributed-cache/client-generated/model/models.mjs +4 -4
- package/{esm2020 → esm2022}/lib/distributed-cache/client-generated/model/retrieveCacheEntryResponseModel.mjs +12 -12
- package/{esm2020 → esm2022}/lib/distributed-cache/client-generated/model/updateCacheEntryRequestModel.mjs +12 -12
- package/{esm2020 → esm2022}/lib/distributed-cache/client-generated/variables.mjs +8 -8
- package/{esm2020 → esm2022}/lib/distributed-cache/distributed-cache-api.mjs +7 -7
- package/esm2022/lib/distributed-cache/distributed-cache.module.mjs +38 -0
- package/{esm2020 → esm2022}/lib/distributed-cache/models/constants.mjs +2 -2
- package/{esm2020 → esm2022}/lib/distributed-cache/models/policy-person.mjs +8 -8
- package/{esm2020 → esm2022}/lib/distributed-cache/services/server-cache.service.mjs +48 -48
- package/{esm2020 → esm2022}/lib/error/components/error-common/error-common.component.mjs +25 -25
- package/{esm2020 → esm2022}/lib/error/error-api.mjs +6 -6
- package/{esm2020 → esm2022}/lib/error/error.module.mjs +31 -31
- package/{esm2020 → esm2022}/lib/error/models/error-common-config.mjs +7 -7
- package/esm2022/lib/faq/components/faq/faq.component.mjs +40 -0
- package/{esm2020 → esm2022}/lib/faq/faq-api.mjs +7 -7
- package/{esm2020 → esm2022}/lib/faq/faq.module.mjs +41 -41
- package/{esm2020 → esm2022}/lib/faq/models/faq-config.mjs +3 -3
- package/{esm2020 → esm2022}/lib/faq/models/faq.mjs +7 -7
- package/esm2022/lib/feedback-tool/components/feedback-tool/feedback-tool.component.mjs +81 -0
- package/esm2022/lib/feedback-tool/feedback-tool-api.mjs +5 -0
- package/esm2022/lib/feedback-tool/feedback-tool.module.mjs +44 -0
- package/esm2022/lib/footer/components/footer/footer.component.mjs +25 -0
- package/{esm2020 → esm2022}/lib/footer/components/site-map/site-map.component.mjs +25 -25
- package/{esm2020 → esm2022}/lib/footer/footer-api.mjs +9 -9
- package/{esm2020 → esm2022}/lib/footer/footer.module.mjs +45 -45
- package/{esm2020 → esm2022}/lib/footer/models/enum/site-map-direction.mjs +14 -14
- package/{esm2020 → esm2022}/lib/footer/models/footer-config.mjs +3 -3
- package/{esm2020 → esm2022}/lib/footer/models/site-map-models.mjs +1 -1
- package/{esm2020 → esm2022}/lib/forms/components/sof-address/sof-address.component.mjs +110 -110
- package/{esm2020 → esm2022}/lib/forms/directives/alphanumeric/alphanumeric.directive.mjs +78 -78
- package/{esm2020 → esm2022}/lib/forms/directives/input-trim/input-trim.directive.mjs +110 -110
- package/{esm2020 → esm2022}/lib/forms/directives/letters-characters/letters-characters.directive.mjs +87 -87
- package/{esm2020 → esm2022}/lib/forms/directives/letters-only/letters-only.directive.mjs +85 -85
- package/{esm2020 → esm2022}/lib/forms/directives/numbers-only/numbers-only.directive.mjs +55 -55
- package/{esm2020 → esm2022}/lib/forms/forms-api.mjs +19 -19
- package/{esm2020 → esm2022}/lib/forms/forms.module.mjs +87 -87
- package/{esm2020 → esm2022}/lib/forms/models/address.mjs +1 -1
- package/esm2022/lib/forms/models/constants.mjs +10 -0
- package/{esm2020 → esm2022}/lib/forms/models/county.mjs +1 -1
- package/{esm2020 → esm2022}/lib/forms/models/enums/states.mjs +65 -65
- package/{esm2020 → esm2022}/lib/forms/pipes/phone-format.pipe.mjs +33 -33
- package/{esm2020 → esm2022}/lib/forms/services/alert.service.mjs +167 -167
- package/esm2022/lib/header/components/header/header.component.mjs +161 -0
- package/{esm2020 → esm2022}/lib/header/components/mobile-header-menu/mobile-header-menu.component.mjs +39 -39
- package/{esm2020 → esm2022}/lib/header/header-api.mjs +11 -11
- package/{esm2020 → esm2022}/lib/header/header.module.mjs +85 -85
- package/{esm2020 → esm2022}/lib/header/models/header-auth.settings.mjs +31 -31
- package/{esm2020 → esm2022}/lib/header/models/header-language.settings.mjs +1 -1
- package/{esm2020 → esm2022}/lib/header/models/header-theme.settings.mjs +1 -1
- package/{esm2020 → esm2022}/lib/header/models/header.settings.mjs +1 -1
- package/{esm2020 → esm2022}/lib/header/models/mobile-header-nav.settings.mjs +1 -1
- package/esm2022/lib/navigation/components/navigation/navigation.component.mjs +556 -0
- package/{esm2020 → esm2022}/lib/navigation/models/nav-theme.settings.mjs +1 -1
- package/{esm2020 → esm2022}/lib/navigation/models/nav.settings.mjs +1 -1
- package/{esm2020 → esm2022}/lib/navigation/models/navigation.mjs +1 -1
- package/{esm2020 → esm2022}/lib/navigation/navigation-api.mjs +8 -8
- package/{esm2020 → esm2022}/lib/navigation/navigation.module.mjs +126 -126
- package/{esm2020 → esm2022}/lib/oauth/models/constants.mjs +5 -5
- package/{esm2020 → esm2022}/lib/oauth/models/generated/accountManagementAssertionModel.mjs +1 -1
- package/{esm2020 → esm2022}/lib/oauth/models/generated/accountManagementRefreshRequestModel.mjs +1 -1
- package/{esm2020 → esm2022}/lib/oauth/models/generated/accountManagementResponseModel.mjs +1 -1
- package/{esm2020 → esm2022}/lib/oauth/models/generated/coverageDetail.mjs +18 -18
- package/{esm2020 → esm2022}/lib/oauth/models/generated/finance.mjs +12 -12
- package/{esm2020 → esm2022}/lib/oauth/models/generated/iSsoResponseModel.mjs +12 -12
- package/{esm2020 → esm2022}/lib/oauth/models/generated/iSsoResponseModelAccountManagementAssertionModel.mjs +1 -1
- package/{esm2020 → esm2022}/lib/oauth/models/generated/person.mjs +12 -12
- package/{esm2020 → esm2022}/lib/oauth/models/generated/policy.mjs +1 -1
- package/{esm2020 → esm2022}/lib/oauth/models/generated/refreshResponseModel.mjs +12 -12
- package/{esm2020 → esm2022}/lib/oauth/models/hybrid-saml-oauth-config.mjs +3 -3
- package/{esm2020 → esm2022}/lib/oauth/oauth-api.mjs +14 -14
- package/{esm2020 → esm2022}/lib/oauth/oauth.module.mjs +29 -29
- package/{esm2020 → esm2022}/lib/oauth/services/hybrid-saml-oauth.service.mjs +201 -201
- package/{esm2020 → esm2022}/lib/rbac/directives/rbac-action.directive.mjs +50 -50
- package/{esm2020 → esm2022}/lib/rbac/models/access-token-claims.mjs +22 -22
- package/{esm2020 → esm2022}/lib/rbac/models/constants.mjs +3 -3
- package/{esm2020 → esm2022}/lib/rbac/models/decoded-access-token.mjs +68 -68
- package/{esm2020 → esm2022}/lib/rbac/models/rbac-config.mjs +3 -3
- package/{esm2020 → esm2022}/lib/rbac/models/role-access.mjs +9 -9
- package/{esm2020 → esm2022}/lib/rbac/rbac-api.mjs +14 -14
- package/{esm2020 → esm2022}/lib/rbac/rbac.module.mjs +51 -51
- package/{esm2020 → esm2022}/lib/rbac/services/ar-role-nav.service.mjs +104 -104
- package/{esm2020 → esm2022}/lib/rbac/services/oauth2-role.service.mjs +114 -114
- package/{esm2020 → esm2022}/lib/rbac/services/role-nav.service.mjs +3 -3
- package/{esm2020 → esm2022}/lib/rbac/services/tokens.mjs +3 -3
- package/{esm2020 → esm2022}/lib/resize-panels/components/resize-panels/resize-panels.component.mjs +156 -156
- package/{esm2020 → esm2022}/lib/resize-panels/models/resize-event.mjs +1 -1
- package/{esm2020 → esm2022}/lib/resize-panels/resize-panels-api.mjs +4 -4
- package/{esm2020 → esm2022}/lib/resize-panels/resize-panels.module.mjs +23 -23
- package/{esm2020 → esm2022}/lib/rum/models/arm-error.mjs +28 -28
- package/{esm2020 → esm2022}/lib/rum/models/rum-config.mjs +3 -3
- package/{esm2020 → esm2022}/lib/rum/rum-api.mjs +9 -9
- package/{esm2020 → esm2022}/lib/rum/rum.module.mjs +48 -48
- package/{esm2020 → esm2022}/lib/rum/services/rum.service.mjs +115 -115
- package/{esm2020 → esm2022}/lib/rum/services/shared-error.service.mjs +45 -45
- package/{esm2020 → esm2022}/lib/rum/services/softheon-error-handler.service.mjs +76 -76
- package/{esm2020 → esm2022}/lib/saml/components/redirect-saml/redirect-saml.component.mjs +79 -79
- package/{esm2020 → esm2022}/lib/saml/models/i-saml-request.mjs +1 -1
- package/{esm2020 → esm2022}/lib/saml/models/i-saml-response.mjs +1 -1
- package/{esm2020 → esm2022}/lib/saml/models/redirect-saml-request.mjs +3 -3
- package/{esm2020 → esm2022}/lib/saml/models/sso-gateway-model.mjs +3 -3
- package/{esm2020 → esm2022}/lib/saml/saml-api.mjs +14 -14
- package/{esm2020 → esm2022}/lib/saml/saml.module.mjs +43 -43
- package/{esm2020 → esm2022}/lib/saml/services/entry/abstract-saml-entry.service.mjs +3 -3
- package/{esm2020 → esm2022}/lib/saml/services/entry/sso-gateway-entry.service.mjs +36 -36
- package/{esm2020 → esm2022}/lib/saml/services/send-off/abstract-saml.service.mjs +3 -3
- package/{esm2020 → esm2022}/lib/saml/services/send-off/saml.service.mjs +39 -39
- package/{esm2020 → esm2022}/lib/sof-pipe/constants/constants.mjs +16 -16
- package/{esm2020 → esm2022}/lib/sof-pipe/models/sof-date-pipe-format.mjs +1 -1
- package/{esm2020 → esm2022}/lib/sof-pipe/pipes/sof-blank/sof-blank.pipe.mjs +39 -39
- package/{esm2020 → esm2022}/lib/sof-pipe/pipes/sof-date/sof-date.pipe.mjs +59 -59
- package/{esm2020 → esm2022}/lib/sof-pipe/pipes/sof-ssn/sof-ssn.pipe.mjs +28 -28
- package/{esm2020 → esm2022}/lib/sof-pipe/sof-pipe.api.mjs +8 -8
- package/{esm2020 → esm2022}/lib/sof-pipe/sof-pipe.module.mjs +39 -39
- package/{esm2020 → esm2022}/lib/theming/directives/css-override.directive.mjs +69 -69
- package/{esm2020 → esm2022}/lib/theming/models/css-override.mjs +10 -10
- package/{esm2020 → esm2022}/lib/theming/services/theme.service.mjs +169 -169
- package/{esm2020 → esm2022}/lib/theming/theme-api.mjs +5 -5
- package/{esm2020 → esm2022}/lib/theming/theme.module.mjs +31 -31
- package/{esm2020 → esm2022}/public-api.mjs +52 -51
- package/{esm2020 → esm2022}/softheon-armature.mjs +4 -4
- package/fesm2022/softheon-armature.mjs +7439 -0
- package/fesm2022/softheon-armature.mjs.map +1 -0
- package/index.d.ts +5 -5
- package/lib/alert-banner/alert-banner-api.d.ts +7 -7
- package/lib/alert-banner/alert-banner.module.d.ts +11 -11
- package/lib/alert-banner/components/alert-banner/alert-banner.component.d.ts +40 -40
- package/lib/alert-banner/models/alert-banner-config.d.ts +20 -20
- package/lib/alert-banner/models/alert-banner-context.d.ts +18 -18
- package/lib/alert-banner/models/constants.d.ts +15 -15
- package/lib/alert-banner/services/alert-banner.service.d.ts +28 -28
- package/lib/armature.module.d.ts +46 -46
- package/lib/base-components/base-component-api.d.ts +13 -13
- package/lib/base-components/base-component.module.d.ts +35 -35
- package/lib/base-components/sof-alert/sof-alert.component.d.ts +40 -40
- package/lib/base-components/sof-badge/sof-badge.component.d.ts +26 -26
- package/lib/base-components/sof-banner/sof-banner.component.d.ts +34 -34
- package/lib/base-components/sof-button-toggle-group/sof-button-toggle-group.component.d.ts +100 -100
- package/lib/base-components/sof-confirm-address/sof-confirm-address.component.d.ts +61 -61
- package/lib/base-components/sof-image-checkbox/sof-image-checkbox.component.d.ts +28 -28
- package/lib/base-components/sof-modal/sof-modal.component.d.ts +51 -51
- package/lib/base-components/sof-progress-bar/sof-progress-bar.component.d.ts +40 -40
- package/lib/base-components/sof-radio-card/sof-radio-card.component.d.ts +20 -20
- package/lib/base-components/sof-simple-alert/sof-simple-alert.component.d.ts +29 -29
- package/lib/base-components/sof-star-rating/sof-star-rating.component.d.ts +25 -25
- package/lib/component-save-print/components/component-save-print/component-save-print.component.d.ts +46 -46
- package/lib/component-save-print/services/component-save-print.service.d.ts +18 -18
- package/lib/component-save-print/sof-ar-component-save-print.module.d.ts +9 -9
- package/lib/core/client-generated/api/session.service.d.ts +94 -94
- package/lib/core/client-generated/configuration.d.ts +48 -48
- package/lib/core/client-generated/encoder.d.ts +10 -10
- package/lib/core/client-generated/model/applicationUserModel.d.ts +54 -54
- package/lib/core/client-generated/model/assertedUserModel.d.ts +25 -25
- package/lib/core/client-generated/model/brandingModel.d.ts +33 -33
- package/lib/core/client-generated/model/errorModel.d.ts +24 -24
- package/lib/core/client-generated/model/folderLink.d.ts +34 -34
- package/lib/core/client-generated/model/identityProfile.d.ts +82 -82
- package/lib/core/client-generated/model/models.d.ts +19 -19
- package/lib/core/client-generated/model/oAuthModel.d.ts +28 -28
- package/lib/core/client-generated/model/preferencesRow.d.ts +15 -15
- package/lib/core/client-generated/model/rolesRow.d.ts +17 -17
- package/lib/core/client-generated/model/sessionGetResponseModel.d.ts +23 -23
- package/lib/core/client-generated/model/sessionPostRequestModel.d.ts +39 -39
- package/lib/core/client-generated/model/sessionPostResponseModel.d.ts +23 -23
- package/lib/core/client-generated/model/sessionPutRequestModel.d.ts +39 -39
- package/lib/core/client-generated/model/sessionPutResponseModel.d.ts +23 -23
- package/lib/core/client-generated/model/sessionResponseModel.d.ts +43 -43
- package/lib/core/client-generated/model/settingsProfile.d.ts +21 -21
- package/lib/core/client-generated/model/themePaletteColorsModel.d.ts +72 -72
- package/lib/core/client-generated/model/themePaletteModel.d.ts +65 -65
- package/lib/core/client-generated/model/trackingModel.d.ts +24 -24
- package/lib/core/client-generated/model/validationRecordsRow.d.ts +17 -17
- package/lib/core/client-generated/variables.d.ts +8 -8
- package/lib/core/components/app-template/app-template.component.d.ts +61 -61
- package/lib/core/functions/guid.d.ts +4 -4
- package/lib/core/functions/naming-convention.d.ts +6 -6
- package/lib/core/functions/route-to-pre-login-route.d.ts +6 -6
- package/lib/core/initializer/abstract-startup-service.d.ts +5 -5
- package/lib/core/initializer/initializer.service.d.ts +79 -79
- package/lib/core/interceptors/armature-auth-token-append.interceptor.d.ts +31 -31
- package/lib/core/models/base-config.d.ts +18 -18
- package/lib/core/models/constants.d.ts +13 -13
- package/lib/core/models/data-store-config.d.ts +27 -27
- package/lib/core/models/header-config.d.ts +9 -9
- package/lib/core/models/http-verbs.d.ts +10 -10
- package/lib/core/models/navigation-config.d.ts +14 -14
- package/lib/core/models/oidc-auth-settings.d.ts +11 -11
- package/lib/core/models/route-path.d.ts +5 -5
- package/lib/core/models/session-config.d.ts +18 -18
- package/lib/core/models/styles.d.ts +11 -11
- package/lib/core/models/subdomain-config.d.ts +7 -7
- package/lib/core/models/typed-session.d.ts +17 -17
- package/lib/core/models/user-entity-service-config.d.ts +14 -14
- package/lib/core/services/authorization.service.d.ts +54 -54
- package/lib/core/services/banner.service.d.ts +31 -31
- package/lib/core/services/base-config.service.d.ts +21 -21
- package/lib/core/services/custom-auth-config.service.d.ts +6 -6
- package/lib/core/services/default-config.service.d.ts +8 -8
- package/lib/core/services/session.service.d.ts +127 -127
- package/lib/core/services/user-entity.service.d.ts +47 -47
- package/lib/distributed-cache/client-generated/api/api.d.ts +3 -3
- package/lib/distributed-cache/client-generated/api/cache.service.d.ts +72 -72
- package/lib/distributed-cache/client-generated/configuration.d.ts +48 -48
- package/lib/distributed-cache/client-generated/encoder.d.ts +10 -10
- package/lib/distributed-cache/client-generated/model/cacheExpirationType.d.ts +19 -19
- package/lib/distributed-cache/client-generated/model/createCacheEntryRequestModel.d.ts +33 -33
- package/lib/distributed-cache/client-generated/model/models.d.ts +4 -4
- package/lib/distributed-cache/client-generated/model/retrieveCacheEntryResponseModel.d.ts +20 -20
- package/lib/distributed-cache/client-generated/model/updateCacheEntryRequestModel.d.ts +20 -20
- package/lib/distributed-cache/client-generated/variables.d.ts +8 -8
- package/lib/distributed-cache/distributed-cache-api.d.ts +7 -7
- package/lib/distributed-cache/distributed-cache.module.d.ts +8 -8
- package/lib/distributed-cache/models/constants.d.ts +2 -2
- package/lib/distributed-cache/models/policy-person.d.ts +19 -19
- package/lib/distributed-cache/services/server-cache.service.d.ts +72 -72
- package/lib/error/components/error-common/error-common.component.d.ts +14 -14
- package/lib/error/error-api.d.ts +4 -4
- package/lib/error/error.module.d.ts +11 -11
- package/lib/error/models/error-common-config.d.ts +21 -21
- package/lib/faq/components/faq/faq.component.d.ts +19 -19
- package/lib/faq/faq-api.d.ts +5 -5
- package/lib/faq/faq.module.d.ts +15 -15
- package/lib/faq/models/faq-config.d.ts +13 -13
- package/lib/faq/models/faq.d.ts +9 -9
- package/lib/feedback-tool/components/feedback-tool/feedback-tool.component.d.ts +62 -0
- package/lib/feedback-tool/feedback-tool-api.d.ts +3 -0
- package/lib/feedback-tool/feedback-tool.module.d.ts +14 -0
- package/lib/footer/components/footer/footer.component.d.ts +14 -14
- package/lib/footer/components/site-map/site-map.component.d.ts +13 -13
- package/lib/footer/footer-api.d.ts +7 -7
- package/lib/footer/footer.module.d.ts +14 -14
- package/lib/footer/models/enum/site-map-direction.d.ts +13 -13
- package/lib/footer/models/footer-config.d.ts +7 -7
- package/lib/footer/models/site-map-models.d.ts +41 -41
- package/lib/forms/components/sof-address/sof-address.component.d.ts +53 -53
- package/lib/forms/directives/alphanumeric/alphanumeric.directive.d.ts +31 -31
- package/lib/forms/directives/input-trim/input-trim.directive.d.ts +58 -58
- package/lib/forms/directives/letters-characters/letters-characters.directive.d.ts +27 -27
- package/lib/forms/directives/letters-only/letters-only.directive.d.ts +27 -27
- package/lib/forms/directives/numbers-only/numbers-only.directive.d.ts +22 -22
- package/lib/forms/forms-api.d.ts +14 -14
- package/lib/forms/forms.module.d.ts +21 -21
- package/lib/forms/models/address.d.ts +14 -14
- package/lib/forms/models/constants.d.ts +9 -9
- package/lib/forms/models/county.d.ts +13 -13
- package/lib/forms/models/enums/states.d.ts +64 -64
- package/lib/forms/pipes/phone-format.pipe.d.ts +10 -10
- package/lib/forms/services/alert.service.d.ts +60 -60
- package/lib/header/components/header/header.component.d.ts +120 -120
- package/lib/header/components/mobile-header-menu/mobile-header-menu.component.d.ts +26 -26
- package/lib/header/header-api.d.ts +9 -9
- package/lib/header/header.module.d.ts +20 -20
- package/lib/header/models/header-auth.settings.d.ts +30 -30
- package/lib/header/models/header-language.settings.d.ts +10 -10
- package/lib/header/models/header-theme.settings.d.ts +19 -19
- package/lib/header/models/header.settings.d.ts +53 -53
- package/lib/header/models/mobile-header-nav.settings.d.ts +11 -11
- package/lib/navigation/components/navigation/navigation.component.d.ts +200 -200
- package/lib/navigation/models/nav-theme.settings.d.ts +25 -25
- package/lib/navigation/models/nav.settings.d.ts +64 -64
- package/lib/navigation/models/navigation.d.ts +40 -40
- package/lib/navigation/navigation-api.d.ts +6 -6
- package/lib/navigation/navigation.module.d.ts +25 -25
- package/lib/oauth/models/constants.d.ts +6 -6
- package/lib/oauth/models/generated/accountManagementAssertionModel.d.ts +49 -49
- package/lib/oauth/models/generated/accountManagementRefreshRequestModel.d.ts +21 -21
- package/lib/oauth/models/generated/accountManagementResponseModel.d.ts +45 -45
- package/lib/oauth/models/generated/coverageDetail.d.ts +67 -67
- package/lib/oauth/models/generated/finance.d.ts +36 -36
- package/lib/oauth/models/generated/iSsoResponseModel.d.ts +44 -44
- package/lib/oauth/models/generated/iSsoResponseModelAccountManagementAssertionModel.d.ts +45 -45
- package/lib/oauth/models/generated/person.d.ts +53 -53
- package/lib/oauth/models/generated/policy.d.ts +51 -51
- package/lib/oauth/models/generated/refreshResponseModel.d.ts +20 -20
- package/lib/oauth/models/hybrid-saml-oauth-config.d.ts +14 -14
- package/lib/oauth/oauth-api.d.ts +12 -12
- package/lib/oauth/oauth.module.d.ts +9 -9
- package/lib/oauth/services/hybrid-saml-oauth.service.d.ts +59 -59
- package/lib/rbac/directives/rbac-action.directive.d.ts +27 -27
- package/lib/rbac/models/access-token-claims.d.ts +18 -18
- package/lib/rbac/models/constants.d.ts +4 -4
- package/lib/rbac/models/decoded-access-token.d.ts +43 -43
- package/lib/rbac/models/rbac-config.d.ts +15 -15
- package/lib/rbac/models/role-access.d.ts +7 -7
- package/lib/rbac/rbac-api.d.ts +11 -11
- package/lib/rbac/rbac.module.d.ts +19 -19
- package/lib/rbac/services/ar-role-nav.service.d.ts +25 -25
- package/lib/rbac/services/oauth2-role.service.d.ts +51 -51
- package/lib/rbac/services/role-nav.service.d.ts +12 -12
- package/lib/rbac/services/tokens.d.ts +3 -3
- package/lib/resize-panels/components/resize-panels/resize-panels.component.d.ts +64 -64
- package/lib/resize-panels/models/resize-event.d.ts +6 -6
- package/lib/resize-panels/resize-panels-api.d.ts +4 -4
- package/lib/resize-panels/resize-panels.module.d.ts +9 -9
- package/lib/rum/models/arm-error.d.ts +27 -27
- package/lib/rum/models/rum-config.d.ts +9 -9
- package/lib/rum/rum-api.d.ts +7 -7
- package/lib/rum/rum.module.d.ts +14 -14
- package/lib/rum/services/rum.service.d.ts +47 -47
- package/lib/rum/services/shared-error.service.d.ts +27 -27
- package/lib/rum/services/softheon-error-handler.service.d.ts +32 -32
- package/lib/saml/components/redirect-saml/redirect-saml.component.d.ts +41 -41
- package/lib/saml/models/i-saml-request.d.ts +4 -4
- package/lib/saml/models/i-saml-response.d.ts +4 -4
- package/lib/saml/models/redirect-saml-request.d.ts +24 -24
- package/lib/saml/models/sso-gateway-model.d.ts +17 -17
- package/lib/saml/saml-api.d.ts +11 -11
- package/lib/saml/saml.module.d.ts +9 -9
- package/lib/saml/services/entry/abstract-saml-entry.service.d.ts +16 -16
- package/lib/saml/services/entry/sso-gateway-entry.service.d.ts +22 -22
- package/lib/saml/services/send-off/abstract-saml.service.d.ts +20 -20
- package/lib/saml/services/send-off/saml.service.d.ts +32 -32
- package/lib/sof-pipe/constants/constants.d.ts +8 -8
- package/lib/sof-pipe/models/sof-date-pipe-format.d.ts +7 -7
- package/lib/sof-pipe/pipes/sof-blank/sof-blank.pipe.d.ts +19 -19
- package/lib/sof-pipe/pipes/sof-date/sof-date.pipe.d.ts +21 -21
- package/lib/sof-pipe/pipes/sof-ssn/sof-ssn.pipe.d.ts +12 -12
- package/lib/sof-pipe/sof-pipe.api.d.ts +7 -7
- package/lib/sof-pipe/sof-pipe.module.d.ts +10 -10
- package/lib/theming/directives/css-override.directive.d.ts +20 -20
- package/lib/theming/models/css-override.d.ts +15 -15
- package/lib/theming/services/theme.service.d.ts +48 -48
- package/lib/theming/theme-api.d.ts +5 -5
- package/lib/theming/theme.module.d.ts +9 -9
- package/package.json +17 -23
- package/public-api.d.ts +49 -48
- package/esm2020/lib/armature.module.mjs +0 -176
- package/esm2020/lib/base-components/sof-banner/sof-banner.component.mjs +0 -49
- package/esm2020/lib/base-components/sof-image-checkbox/sof-image-checkbox.component.mjs +0 -58
- package/esm2020/lib/base-components/sof-modal/sof-modal.component.mjs +0 -58
- package/esm2020/lib/base-components/sof-progress-bar/sof-progress-bar.component.mjs +0 -79
- package/esm2020/lib/base-components/sof-star-rating/sof-star-rating.component.mjs +0 -40
- package/esm2020/lib/component-save-print/sof-ar-component-save-print.module.mjs +0 -32
- package/esm2020/lib/distributed-cache/distributed-cache.module.mjs +0 -38
- package/esm2020/lib/faq/components/faq/faq.component.mjs +0 -40
- package/esm2020/lib/footer/components/footer/footer.component.mjs +0 -25
- package/esm2020/lib/forms/models/constants.mjs +0 -10
- package/esm2020/lib/header/components/header/header.component.mjs +0 -161
- package/esm2020/lib/navigation/components/navigation/navigation.component.mjs +0 -556
- package/fesm2015/softheon-armature.mjs +0 -7275
- package/fesm2015/softheon-armature.mjs.map +0 -1
- package/fesm2020/softheon-armature.mjs +0 -7332
- package/fesm2020/softheon-armature.mjs.map +0 -1
|
@@ -1,110 +1,110 @@
|
|
|
1
|
-
import { Directive, ElementRef, HostListener, Inject, Input, Optional, Renderer2 } from "@angular/core";
|
|
2
|
-
import { COMPOSITION_BUFFER_MODE, NG_VALUE_ACCESSOR } from "@angular/forms";
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class InputTrimDirective {
|
|
5
|
-
get _type() {
|
|
6
|
-
return this._sourceElementRef.nativeElement.type || "text";
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Updates the value on the blur event.
|
|
10
|
-
*/
|
|
11
|
-
onBlur(event, value) {
|
|
12
|
-
this.updateValue(event, value.trim());
|
|
13
|
-
this.onTouched();
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Updates the value on the input event.
|
|
17
|
-
*/
|
|
18
|
-
onInput(event, value) {
|
|
19
|
-
this.updateValue(event, value);
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Constructs the directive
|
|
23
|
-
* @param renderer The renderer
|
|
24
|
-
* @param ElementRef The elementRef
|
|
25
|
-
* @param compositionMode The composition mode
|
|
26
|
-
*/
|
|
27
|
-
constructor(renderer, elementRef, compositionMode) {
|
|
28
|
-
this.onChange = (_) => { };
|
|
29
|
-
this.onTouched = () => { };
|
|
30
|
-
this._sourceRenderer = renderer;
|
|
31
|
-
this._sourceElementRef = elementRef;
|
|
32
|
-
}
|
|
33
|
-
registerOnChange(fn) { this.onChange = fn; }
|
|
34
|
-
registerOnTouched(fn) { this.onTouched = fn; }
|
|
35
|
-
/**
|
|
36
|
-
* Writes a new value to the element based on the type of input element.
|
|
37
|
-
* @param value new value
|
|
38
|
-
*/
|
|
39
|
-
writeValue(value) {
|
|
40
|
-
this._value = value === "" ? "" : value || null;
|
|
41
|
-
this._sourceRenderer.setProperty(this._sourceElementRef.nativeElement, "value", this._value);
|
|
42
|
-
if (this._type !== "text") {
|
|
43
|
-
this._sourceRenderer.setAttribute(this._sourceElementRef.nativeElement, "value", this._value);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Sets state disabled.
|
|
48
|
-
* @param isDisabled boolean value for state
|
|
49
|
-
*/
|
|
50
|
-
setDisabledState(isDisabled) {
|
|
51
|
-
this._sourceRenderer.setProperty(this._sourceElementRef.nativeElement, 'disabled', isDisabled);
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Writes the cursor position
|
|
55
|
-
* @param cursorPosition the cursor current position
|
|
56
|
-
* @param hasTypedSymbol
|
|
57
|
-
*/
|
|
58
|
-
setCursorPointer(cursorPosition, hasTypedSymbol) {
|
|
59
|
-
if (hasTypedSymbol && ["text", "search", "url", "tel", "password"].indexOf(this._type) >= 0) {
|
|
60
|
-
this._sourceElementRef.nativeElement.setSelectionRange(cursorPosition, cursorPosition);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Trims an input value, and sets it to the model and element.
|
|
65
|
-
* @param value input value
|
|
66
|
-
* @param event input event
|
|
67
|
-
*/
|
|
68
|
-
updateValue(event, value) {
|
|
69
|
-
if (this._value == value) {
|
|
70
|
-
value = this.trim !== "" && event !== this.trim ? value : value.trim();
|
|
71
|
-
}
|
|
72
|
-
const previous = this._value;
|
|
73
|
-
const cursorPosition = this._sourceElementRef.nativeElement.selectionStart;
|
|
74
|
-
this.writeValue(value);
|
|
75
|
-
if ((this._value || previous) && this._value.trim() !== previous) {
|
|
76
|
-
this.onChange(this._value);
|
|
77
|
-
}
|
|
78
|
-
const hasTypedSymbol = value && previous && value !== previous;
|
|
79
|
-
this.setCursorPointer(cursorPosition, hasTypedSymbol);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
85
|
-
type: Directive,
|
|
86
|
-
args: [{
|
|
87
|
-
selector: "input[trim], textarea[trim]",
|
|
88
|
-
providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: InputTrimDirective, multi: true }]
|
|
89
|
-
}]
|
|
90
|
-
}], ctorParameters:
|
|
91
|
-
type: Inject,
|
|
92
|
-
args: [Renderer2]
|
|
93
|
-
}] }, { type: i0.ElementRef, decorators: [{
|
|
94
|
-
type: Inject,
|
|
95
|
-
args: [ElementRef]
|
|
96
|
-
}] }, { type: undefined, decorators: [{
|
|
97
|
-
type: Optional
|
|
98
|
-
}, {
|
|
99
|
-
type: Inject,
|
|
100
|
-
args: [COMPOSITION_BUFFER_MODE]
|
|
101
|
-
}] }]
|
|
102
|
-
type: Input
|
|
103
|
-
}], onBlur: [{
|
|
104
|
-
type: HostListener,
|
|
105
|
-
args: ["blur", ["$event.type", "$event.target.value"]]
|
|
106
|
-
}], onInput: [{
|
|
107
|
-
type: HostListener,
|
|
108
|
-
args: ["input", ["$event.type", "$event.target.value"]]
|
|
109
|
-
}] } });
|
|
110
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Directive, ElementRef, HostListener, Inject, Input, Optional, Renderer2 } from "@angular/core";
|
|
2
|
+
import { COMPOSITION_BUFFER_MODE, NG_VALUE_ACCESSOR } from "@angular/forms";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class InputTrimDirective {
|
|
5
|
+
get _type() {
|
|
6
|
+
return this._sourceElementRef.nativeElement.type || "text";
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Updates the value on the blur event.
|
|
10
|
+
*/
|
|
11
|
+
onBlur(event, value) {
|
|
12
|
+
this.updateValue(event, value.trim());
|
|
13
|
+
this.onTouched();
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Updates the value on the input event.
|
|
17
|
+
*/
|
|
18
|
+
onInput(event, value) {
|
|
19
|
+
this.updateValue(event, value);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Constructs the directive
|
|
23
|
+
* @param renderer The renderer
|
|
24
|
+
* @param ElementRef The elementRef
|
|
25
|
+
* @param compositionMode The composition mode
|
|
26
|
+
*/
|
|
27
|
+
constructor(renderer, elementRef, compositionMode) {
|
|
28
|
+
this.onChange = (_) => { };
|
|
29
|
+
this.onTouched = () => { };
|
|
30
|
+
this._sourceRenderer = renderer;
|
|
31
|
+
this._sourceElementRef = elementRef;
|
|
32
|
+
}
|
|
33
|
+
registerOnChange(fn) { this.onChange = fn; }
|
|
34
|
+
registerOnTouched(fn) { this.onTouched = fn; }
|
|
35
|
+
/**
|
|
36
|
+
* Writes a new value to the element based on the type of input element.
|
|
37
|
+
* @param value new value
|
|
38
|
+
*/
|
|
39
|
+
writeValue(value) {
|
|
40
|
+
this._value = value === "" ? "" : value || null;
|
|
41
|
+
this._sourceRenderer.setProperty(this._sourceElementRef.nativeElement, "value", this._value);
|
|
42
|
+
if (this._type !== "text") {
|
|
43
|
+
this._sourceRenderer.setAttribute(this._sourceElementRef.nativeElement, "value", this._value);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Sets state disabled.
|
|
48
|
+
* @param isDisabled boolean value for state
|
|
49
|
+
*/
|
|
50
|
+
setDisabledState(isDisabled) {
|
|
51
|
+
this._sourceRenderer.setProperty(this._sourceElementRef.nativeElement, 'disabled', isDisabled);
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Writes the cursor position
|
|
55
|
+
* @param cursorPosition the cursor current position
|
|
56
|
+
* @param hasTypedSymbol
|
|
57
|
+
*/
|
|
58
|
+
setCursorPointer(cursorPosition, hasTypedSymbol) {
|
|
59
|
+
if (hasTypedSymbol && ["text", "search", "url", "tel", "password"].indexOf(this._type) >= 0) {
|
|
60
|
+
this._sourceElementRef.nativeElement.setSelectionRange(cursorPosition, cursorPosition);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Trims an input value, and sets it to the model and element.
|
|
65
|
+
* @param value input value
|
|
66
|
+
* @param event input event
|
|
67
|
+
*/
|
|
68
|
+
updateValue(event, value) {
|
|
69
|
+
if (this._value == value) {
|
|
70
|
+
value = this.trim !== "" && event !== this.trim ? value : value.trim();
|
|
71
|
+
}
|
|
72
|
+
const previous = this._value;
|
|
73
|
+
const cursorPosition = this._sourceElementRef.nativeElement.selectionStart;
|
|
74
|
+
this.writeValue(value);
|
|
75
|
+
if ((this._value || previous) && this._value.trim() !== previous) {
|
|
76
|
+
this.onChange(this._value);
|
|
77
|
+
}
|
|
78
|
+
const hasTypedSymbol = value && previous && value !== previous;
|
|
79
|
+
this.setCursorPointer(cursorPosition, hasTypedSymbol);
|
|
80
|
+
}
|
|
81
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: InputTrimDirective, deps: [{ token: Renderer2 }, { token: ElementRef }, { token: COMPOSITION_BUFFER_MODE, optional: true }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
82
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.2", type: InputTrimDirective, selector: "input[trim], textarea[trim]", inputs: { trim: "trim" }, host: { listeners: { "blur": "onBlur($event.type,$event.target.value)", "input": "onInput($event.type,$event.target.value)" } }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: InputTrimDirective, multi: true }], ngImport: i0 }); }
|
|
83
|
+
}
|
|
84
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: InputTrimDirective, decorators: [{
|
|
85
|
+
type: Directive,
|
|
86
|
+
args: [{
|
|
87
|
+
selector: "input[trim], textarea[trim]",
|
|
88
|
+
providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: InputTrimDirective, multi: true }]
|
|
89
|
+
}]
|
|
90
|
+
}], ctorParameters: () => [{ type: i0.Renderer2, decorators: [{
|
|
91
|
+
type: Inject,
|
|
92
|
+
args: [Renderer2]
|
|
93
|
+
}] }, { type: i0.ElementRef, decorators: [{
|
|
94
|
+
type: Inject,
|
|
95
|
+
args: [ElementRef]
|
|
96
|
+
}] }, { type: undefined, decorators: [{
|
|
97
|
+
type: Optional
|
|
98
|
+
}, {
|
|
99
|
+
type: Inject,
|
|
100
|
+
args: [COMPOSITION_BUFFER_MODE]
|
|
101
|
+
}] }], propDecorators: { trim: [{
|
|
102
|
+
type: Input
|
|
103
|
+
}], onBlur: [{
|
|
104
|
+
type: HostListener,
|
|
105
|
+
args: ["blur", ["$event.type", "$event.target.value"]]
|
|
106
|
+
}], onInput: [{
|
|
107
|
+
type: HostListener,
|
|
108
|
+
args: ["input", ["$event.type", "$event.target.value"]]
|
|
109
|
+
}] } });
|
|
110
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQtdHJpbS5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hcm1hdHVyZS9zcmMvbGliL2Zvcm1zL2RpcmVjdGl2ZXMvaW5wdXQtdHJpbS9pbnB1dC10cmltLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLFVBQVUsRUFBRSxZQUFZLEVBQUUsTUFBTSxFQUFFLEtBQUssRUFBRSxRQUFRLEVBQUUsU0FBUyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3hHLE9BQU8sRUFBRSx1QkFBdUIsRUFBd0IsaUJBQWlCLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQzs7QUFNbEcsTUFBTSxPQUFPLGtCQUFrQjtJQUU3QixJQUFZLEtBQUs7UUFDZixPQUFPLElBQUksQ0FBQyxpQkFBaUIsQ0FBQyxhQUFhLENBQUMsSUFBSSxJQUFJLE1BQU0sQ0FBQztJQUM3RCxDQUFDO0lBZ0JEOztPQUVHO0lBRUgsTUFBTSxDQUFDLEtBQWEsRU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mVmLm5hdGl2ZUVsZW1lbnQuc2VsZWN0aW9uU3RhcnQ7XHJcbiAgICBcclxuICAgIHRoaXMud3JpdGVWYWx1ZSh2YWx1ZSk7XHJcbiAgICBcclxuICAgIGlmICgodGhpcy5fdmFsdWUgfHwgcHJldmlvdXMpICYmIHRoaXMuX3ZhbHVlLnRyaW0oKSAhPT0gcHJldmlvdXMpIHtcclxuICAgICAgdGhpcy5vbkNoYW5nZSh0aGlzLl92YWx1ZSk7XHJcbiAgICB9XHJcbiAgXHJcbiAgICBjb25zdCBoYXNUeXBlZFN5bWJvbCA9IHZhbHVlICYmIHByZXZpb3VzICYmIHZhbHVlICE9PSBwcmV2aW91cztcclxuICAgIFxyXG4gICAgdGhpcy5zZXRDdXJzb3JQb2ludGVyKGN1cnNvclBvc2l0aW9uLCBoYXNUeXBlZFN5bWJvbCk7XHJcbiAgfVxyXG59Il19
|
package/{esm2020 → esm2022}/lib/forms/directives/letters-characters/letters-characters.directive.mjs
RENAMED
|
@@ -1,87 +1,87 @@
|
|
|
1
|
-
import { Directive, HostListener, Input } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* The letters and special characters directive
|
|
5
|
-
*/
|
|
6
|
-
export class LettersCharactersDirective {
|
|
7
|
-
/**
|
|
8
|
-
* Constructs the directive
|
|
9
|
-
* @param el The element
|
|
10
|
-
*/
|
|
11
|
-
constructor(el) {
|
|
12
|
-
this.el = el;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Only allows letter and special character inputs
|
|
16
|
-
* @param event Key Event
|
|
17
|
-
*/
|
|
18
|
-
onKeyDown(event) {
|
|
19
|
-
const e = event;
|
|
20
|
-
if (this.sofArLettersAndSpecialCharacters) {
|
|
21
|
-
if ([46, 8, 9, 27, 13, 110, 190].indexOf(e.keyCode) !== -1 ||
|
|
22
|
-
// Allow: Ctrl+A
|
|
23
|
-
(e.keyCode === 65 && e.ctrlKey) ||
|
|
24
|
-
// Allow: Ctrl+C
|
|
25
|
-
(e.keyCode === 67 && e.ctrlKey) ||
|
|
26
|
-
// Allow: Ctrl+X
|
|
27
|
-
(e.keyCode === 88 && e.ctrlKey) ||
|
|
28
|
-
// Allow: spaces
|
|
29
|
-
(e.keyCode === 32) ||
|
|
30
|
-
// Allow: - (minus sign) on numpad or alphabet keyboard key
|
|
31
|
-
(e.keyCode === 109 || e.keyCode === 189) ||
|
|
32
|
-
// Allow: apostrophes
|
|
33
|
-
(e.keyCode === 48) ||
|
|
34
|
-
// Allow: home, end, left, right
|
|
35
|
-
(e.keyCode >= 35 && e.keyCode <= 39)) {
|
|
36
|
-
// let it happen, don't do anything
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
// Ensure that it is a letter and stop the keypress if its not a letter
|
|
40
|
-
if (e.keyCode < 65 || e.keyCode > 90) {
|
|
41
|
-
e.preventDefault();
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Allow user to copy and paste letters except special characters
|
|
47
|
-
* @param event the event
|
|
48
|
-
*/
|
|
49
|
-
allowPaste(event) {
|
|
50
|
-
event.preventDefault();
|
|
51
|
-
let pasteData = event.clipboardData.getData('text/plain');
|
|
52
|
-
pasteData = pasteData.replace(/[0-9~`!@#$%^&*(){}\[\];:"<>,.?\/\\|_+=]*/g, '');
|
|
53
|
-
const inputElement = event.target;
|
|
54
|
-
const start = inputElement.selectionStart;
|
|
55
|
-
const end = inputElement.selectionEnd;
|
|
56
|
-
const originalValue = inputElement.value;
|
|
57
|
-
const newValue = [
|
|
58
|
-
originalValue.slice(0, start),
|
|
59
|
-
pasteData,
|
|
60
|
-
originalValue.slice(end)
|
|
61
|
-
].join('');
|
|
62
|
-
inputElement.value = newValue;
|
|
63
|
-
inputElement.selectionStart = inputElement.selectionEnd = start + pasteData.length;
|
|
64
|
-
const evt = new Event('input', {
|
|
65
|
-
bubbles: true,
|
|
66
|
-
cancelable: true
|
|
67
|
-
});
|
|
68
|
-
inputElement.dispatchEvent(evt);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
74
|
-
type: Directive,
|
|
75
|
-
args: [{
|
|
76
|
-
selector: '[sofArLettersAndSpecialCharacters]'
|
|
77
|
-
}]
|
|
78
|
-
}], ctorParameters:
|
|
79
|
-
type: Input
|
|
80
|
-
}], onKeyDown: [{
|
|
81
|
-
type: HostListener,
|
|
82
|
-
args: ['keydown', ['$event']]
|
|
83
|
-
}], allowPaste: [{
|
|
84
|
-
type: HostListener,
|
|
85
|
-
args: ['paste', ['$event']]
|
|
86
|
-
}] } });
|
|
87
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Directive, HostListener, Input } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* The letters and special characters directive
|
|
5
|
+
*/
|
|
6
|
+
export class LettersCharactersDirective {
|
|
7
|
+
/**
|
|
8
|
+
* Constructs the directive
|
|
9
|
+
* @param el The element
|
|
10
|
+
*/
|
|
11
|
+
constructor(el) {
|
|
12
|
+
this.el = el;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Only allows letter and special character inputs
|
|
16
|
+
* @param event Key Event
|
|
17
|
+
*/
|
|
18
|
+
onKeyDown(event) {
|
|
19
|
+
const e = event;
|
|
20
|
+
if (this.sofArLettersAndSpecialCharacters) {
|
|
21
|
+
if ([46, 8, 9, 27, 13, 110, 190].indexOf(e.keyCode) !== -1 ||
|
|
22
|
+
// Allow: Ctrl+A
|
|
23
|
+
(e.keyCode === 65 && e.ctrlKey) ||
|
|
24
|
+
// Allow: Ctrl+C
|
|
25
|
+
(e.keyCode === 67 && e.ctrlKey) ||
|
|
26
|
+
// Allow: Ctrl+X
|
|
27
|
+
(e.keyCode === 88 && e.ctrlKey) ||
|
|
28
|
+
// Allow: spaces
|
|
29
|
+
(e.keyCode === 32) ||
|
|
30
|
+
// Allow: - (minus sign) on numpad or alphabet keyboard key
|
|
31
|
+
(e.keyCode === 109 || e.keyCode === 189) ||
|
|
32
|
+
// Allow: apostrophes
|
|
33
|
+
(e.keyCode === 48) ||
|
|
34
|
+
// Allow: home, end, left, right
|
|
35
|
+
(e.keyCode >= 35 && e.keyCode <= 39)) {
|
|
36
|
+
// let it happen, don't do anything
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
// Ensure that it is a letter and stop the keypress if its not a letter
|
|
40
|
+
if (e.keyCode < 65 || e.keyCode > 90) {
|
|
41
|
+
e.preventDefault();
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Allow user to copy and paste letters except special characters
|
|
47
|
+
* @param event the event
|
|
48
|
+
*/
|
|
49
|
+
allowPaste(event) {
|
|
50
|
+
event.preventDefault();
|
|
51
|
+
let pasteData = event.clipboardData.getData('text/plain');
|
|
52
|
+
pasteData = pasteData.replace(/[0-9~`!@#$%^&*(){}\[\];:"<>,.?\/\\|_+=]*/g, '');
|
|
53
|
+
const inputElement = event.target;
|
|
54
|
+
const start = inputElement.selectionStart;
|
|
55
|
+
const end = inputElement.selectionEnd;
|
|
56
|
+
const originalValue = inputElement.value;
|
|
57
|
+
const newValue = [
|
|
58
|
+
originalValue.slice(0, start),
|
|
59
|
+
pasteData,
|
|
60
|
+
originalValue.slice(end)
|
|
61
|
+
].join('');
|
|
62
|
+
inputElement.value = newValue;
|
|
63
|
+
inputElement.selectionStart = inputElement.selectionEnd = start + pasteData.length;
|
|
64
|
+
const evt = new Event('input', {
|
|
65
|
+
bubbles: true,
|
|
66
|
+
cancelable: true
|
|
67
|
+
});
|
|
68
|
+
inputElement.dispatchEvent(evt);
|
|
69
|
+
}
|
|
70
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: LettersCharactersDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
71
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.1.2", type: LettersCharactersDirective, selector: "[sofArLettersAndSpecialCharacters]", inputs: { sofArLettersAndSpecialCharacters: "sofArLettersAndSpecialCharacters" }, host: { listeners: { "keydown": "onKeyDown($event)", "paste": "allowPaste($event)" } }, ngImport: i0 }); }
|
|
72
|
+
}
|
|
73
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.2", ngImport: i0, type: LettersCharactersDirective, decorators: [{
|
|
74
|
+
type: Directive,
|
|
75
|
+
args: [{
|
|
76
|
+
selector: '[sofArLettersAndSpecialCharacters]'
|
|
77
|
+
}]
|
|
78
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { sofArLettersAndSpecialCharacters: [{
|
|
79
|
+
type: Input
|
|
80
|
+
}], onKeyDown: [{
|
|
81
|
+
type: HostListener,
|
|
82
|
+
args: ['keydown', ['$event']]
|
|
83
|
+
}], allowPaste: [{
|
|
84
|
+
type: HostListener,
|
|
85
|
+
args: ['paste', ['$event']]
|
|
86
|
+
}] } });
|
|
87
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGV0dGVycy1jaGFyYWN0ZXJzLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FybWF0dXJlL3NyYy9saWIvZm9ybXMvZGlyZWN0aXZlcy9sZXR0ZXJzLWNoYXJhY3RlcnMvbGV0dGVycy1jaGFyYWN0ZXJzLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFjLFlBQVksRUFBRSxLQUFLLEVBQUUsTUF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