@dsivd/prestations-ng 18.8.0-beta.13 → 19.0.0-beta.2
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/.browserslistrc +12 -21
- package/ANGULAR_SIGNALS.md +856 -0
- package/CHANGELOG.md +333 -312
- package/COMPONENTS.md +350 -0
- package/CONTRIBUTING.md +2 -4
- package/ESLINT_MIGRATION_GUIDE.md +64 -67
- package/IAM_ACV_MIGRATION_OIDC.md +138 -0
- package/MULTI_ETAPES.md +1 -1
- package/README.md +4 -2
- package/UPGRADING_V12.md +0 -10
- package/UPGRADING_V16.md +0 -1
- package/UPGRADING_V18.md +398 -233
- package/UPGRADING_V19.md +174 -0
- package/dsivd-prestations-ng-19.0.0-beta.2.tgz +0 -0
- package/fesm2022/dsivd-prestations-ng.mjs +9333 -10485
- package/fesm2022/dsivd-prestations-ng.mjs.map +1 -1
- package/index.html +1 -1
- package/package.json +18 -17
- package/schematics/utility/add-allow-synthetic-default-imports.js +2 -2
- package/schematics/utility/add-allowed-common-js-dependencies.js +3 -3
- package/schematics/utility/foehn2-bootstrap5-migration.js +21 -21
- package/schematics/utility/migrate-to-karma-coverage.js +2 -2
- package/schematics/utility/remove-emit-decorator-metadata.js +2 -2
- package/types/dsivd-prestations-ng.d.ts +3699 -0
- package/MODULES.md +0 -371
- package/abstract-page-component.d.ts +0 -57
- package/directives/currency-formatter.directive.d.ts +0 -20
- package/directives/formatter.module.d.ts +0 -11
- package/directives/iban-formatter.directive.d.ts +0 -10
- package/directives/ide-formatter.directive.d.ts +0 -17
- package/directives/ndc-formatter.directive.d.ts +0 -24
- package/dsivd-prestations-ng-18.8.0-beta.13.tgz +0 -0
- package/foehn-address/address.type.d.ts +0 -27
- package/foehn-address/foehn-address.module.d.ts +0 -15
- package/foehn-address/foehn-display-address.component.d.ts +0 -16
- package/foehn-address/foehn-input-address.component.d.ts +0 -107
- package/foehn-address/foehn-input-foreign-locality.component.d.ts +0 -16
- package/foehn-address/foehn-input-foreign-street.component.d.ts +0 -12
- package/foehn-agenda/calendar.type.d.ts +0 -9
- package/foehn-agenda/current-week.type.d.ts +0 -5
- package/foehn-agenda/day-slots.type.d.ts +0 -5
- package/foehn-agenda/foehn-agenda-navigation/foehn-agenda-navigation.component.d.ts +0 -21
- package/foehn-agenda/foehn-agenda-timeslot-panel/foehn-agenda-timeslot-panel.component.d.ts +0 -51
- package/foehn-agenda/foehn-agenda.component.d.ts +0 -29
- package/foehn-agenda/foehn-agenda.module.d.ts +0 -17
- package/foehn-agenda/pagination-week.type.d.ts +0 -5
- package/foehn-agenda/selected-slot.type.d.ts +0 -7
- package/foehn-autocomplete/foehn-autocomplete.component.d.ts +0 -126
- package/foehn-autocomplete/foehn-autocomplete.module.d.ts +0 -13
- package/foehn-boolean/foehn-boolean-checkbox.component.d.ts +0 -6
- package/foehn-boolean/foehn-boolean-radio.component.d.ts +0 -9
- package/foehn-boolean/foehn-boolean.module.d.ts +0 -12
- package/foehn-breadcrumb/breadcrumb-event.service.d.ts +0 -48
- package/foehn-breadcrumb/breadcrumb.d.ts +0 -19
- package/foehn-breadcrumb/foehn-breadcrumb.component.d.ts +0 -30
- package/foehn-breadcrumb/foehn-breadcrumb.module.d.ts +0 -10
- package/foehn-checkables/foehn-checkable-group.component.d.ts +0 -64
- package/foehn-checkables/foehn-checkables.module.d.ts +0 -17
- package/foehn-checkables/foehn-checkbox.component.d.ts +0 -9
- package/foehn-checkables/foehn-radio.component.d.ts +0 -12
- package/foehn-checkables/foehn-select.component.d.ts +0 -22
- package/foehn-checkables/form-select-option-group.d.ts +0 -4
- package/foehn-checkables/form-select-option.d.ts +0 -5
- package/foehn-confirm-modal/foehn-confirm-modal-content.d.ts +0 -9
- package/foehn-confirm-modal/foehn-confirm-modal.component.d.ts +0 -17
- package/foehn-confirm-modal/foehn-confirm-modal.module.d.ts +0 -9
- package/foehn-confirm-modal/foehn-confirm-modal.service.d.ts +0 -18
- package/foehn-date-picker/date-picker-navigation.helper.d.ts +0 -26
- package/foehn-date-picker/date-picker.helper.d.ts +0 -30
- package/foehn-date-picker/day-month.type.d.ts +0 -8
- package/foehn-date-picker/focused-day.type.d.ts +0 -6
- package/foehn-date-picker/foehn-date-picker.component.d.ts +0 -78
- package/foehn-date-picker/foehn-date-picker.module.d.ts +0 -13
- package/foehn-date-picker/month-year.type.d.ts +0 -4
- package/foehn-date-picker-button/foehn-date-picker-button.component.d.ts +0 -31
- package/foehn-date-picker-button/foehn-date-picker-button.module.d.ts +0 -12
- package/foehn-debug-summary/foehn-debug-summary.component.d.ts +0 -21
- package/foehn-debug-summary/foehn-debug-summary.component.module.d.ts +0 -9
- package/foehn-decision-electronique/foehn-decision-electronique.component.d.ts +0 -11
- package/foehn-decision-electronique/foehn-decision-electronique.module.d.ts +0 -11
- package/foehn-dropdown-menu/dropdown-menu-group.type.d.ts +0 -5
- package/foehn-dropdown-menu/dropdown-menu-item.type.d.ts +0 -9
- package/foehn-dropdown-menu/foehn-dropdown-menu.component.d.ts +0 -42
- package/foehn-dropdown-menu/foehn-dropdown-menu.module.d.ts +0 -11
- package/foehn-feedback-notification/foehn-feedback-notification.component.d.ts +0 -32
- package/foehn-feedback-notification/foehn-feedback-notification.module.d.ts +0 -11
- package/foehn-feedback-notification/foehn-feedback-notification.type.d.ts +0 -8
- package/foehn-footer/foehn-footer.component.d.ts +0 -44
- package/foehn-footer/foehn-footer.module.d.ts +0 -9
- package/foehn-footer/footer-link.type.d.ts +0 -4
- package/foehn-form/foehn-form.component.d.ts +0 -27
- package/foehn-form/foehn-form.module.d.ts +0 -10
- package/foehn-form/register-ng-model.service.d.ts +0 -9
- package/foehn-growl/foehn-growl.component.d.ts +0 -17
- package/foehn-growl/foehn-growl.module.d.ts +0 -8
- package/foehn-growl/growl-broker.service.d.ts +0 -12
- package/foehn-growl/growl-message.d.ts +0 -7
- package/foehn-growl/growl-types.d.ts +0 -6
- package/foehn-header/foehn-header.component.d.ts +0 -47
- package/foehn-header/foehn-header.module.d.ts +0 -14
- package/foehn-header/foehn-skip-link.component.d.ts +0 -23
- package/foehn-help-modal/foehn-help-modal.component.d.ts +0 -17
- package/foehn-help-modal/foehn-help-modal.module.d.ts +0 -10
- package/foehn-help-modal/foehn-help-modal.type.d.ts +0 -13
- package/foehn-icons/abstract-icon-component.d.ts +0 -9
- package/foehn-icons/foehn-icon-calendar.component.d.ts +0 -8
- package/foehn-icons/foehn-icon-check-square-o.component.d.ts +0 -8
- package/foehn-icons/foehn-icon-check.component.d.ts +0 -8
- package/foehn-icons/foehn-icon-chevron-down.component.d.ts +0 -8
- package/foehn-icons/foehn-icon-chevron-left.component.d.ts +0 -8
- package/foehn-icons/foehn-icon-chevron-right.component.d.ts +0 -8
- package/foehn-icons/foehn-icon-chevron-up.component.d.ts +0 -8
- package/foehn-icons/foehn-icon-clock.component.d.ts +0 -8
- package/foehn-icons/foehn-icon-comment-dots.component.d.ts +0 -8
- package/foehn-icons/foehn-icon-edit.component.d.ts +0 -8
- package/foehn-icons/foehn-icon-external-link-alt.component.d.ts +0 -8
- package/foehn-icons/foehn-icon-file-pdf.component.d.ts +0 -8
- package/foehn-icons/foehn-icon-info-circle.component.d.ts +0 -8
- package/foehn-icons/foehn-icon-lock.component.d.ts +0 -8
- package/foehn-icons/foehn-icon-map-marker.component.d.ts +0 -8
- package/foehn-icons/foehn-icon-minus-circle.component.d.ts +0 -8
- package/foehn-icons/foehn-icon-pencil.component.d.ts +0 -8
- package/foehn-icons/foehn-icon-plus-circle.component.d.ts +0 -8
- package/foehn-icons/foehn-icon-plus-square.component.d.ts +0 -8
- package/foehn-icons/foehn-icon-search.component.d.ts +0 -8
- package/foehn-icons/foehn-icon-times.component.d.ts +0 -8
- package/foehn-icons/foehn-icon-trash-alt.component.d.ts +0 -8
- package/foehn-icons/foehn-icon-unlock-alt.component.d.ts +0 -8
- package/foehn-icons/foehn-icon-user.component.d.ts +0 -8
- package/foehn-icons/foehn-icons.module.d.ts +0 -31
- package/foehn-input/foehn-input-email.component.d.ts +0 -15
- package/foehn-input/foehn-input-hidden.component.d.ts +0 -14
- package/foehn-input/foehn-input-number.component.d.ts +0 -42
- package/foehn-input/foehn-input-password.component.d.ts +0 -12
- package/foehn-input/foehn-input-phone.component.d.ts +0 -25
- package/foehn-input/foehn-input-prefixed-text.component.d.ts +0 -26
- package/foehn-input/foehn-input-string.component.d.ts +0 -9
- package/foehn-input/foehn-input-text.component.d.ts +0 -11
- package/foehn-input/foehn-input-textarea.component.d.ts +0 -22
- package/foehn-input/foehn-input.component.d.ts +0 -127
- package/foehn-input/foehn-input.module.d.ts +0 -24
- package/foehn-input/pattern.const.d.ts +0 -11
- package/foehn-input-date/foehn-input-date.component.d.ts +0 -33
- package/foehn-input-date-time/foehn-input-date-time.component.d.ts +0 -40
- package/foehn-input-time/foehn-input-time.component.d.ts +0 -19
- package/foehn-list/foehn-list.component.d.ts +0 -27
- package/foehn-list/foehn-list.module.d.ts +0 -9
- package/foehn-list/page-change-event.d.ts +0 -5
- package/foehn-menu-prestation/abstract-list-item-detail-page.component.d.ts +0 -35
- package/foehn-menu-prestation/abstract-menu-page.component.d.ts +0 -13
- package/foehn-menu-prestation/abstract-page-from-menu.component.d.ts +0 -20
- package/foehn-menu-prestation/foehn-error-pill/foehn-error-pill.component.d.ts +0 -12
- package/foehn-menu-prestation/foehn-list-summary/foehn-list-item-description.d.ts +0 -6
- package/foehn-menu-prestation/foehn-list-summary/foehn-list-item.d.ts +0 -5
- package/foehn-menu-prestation/foehn-list-summary/foehn-list-summary.component.d.ts +0 -40
- package/foehn-menu-prestation/foehn-menu-items/foehn-menu-item/foehn-menu-item.component.d.ts +0 -16
- package/foehn-menu-prestation/foehn-menu-items/foehn-menu-item-transmit/foehn-menu-item-transmit.component.d.ts +0 -23
- package/foehn-menu-prestation/foehn-menu-prestation.module.d.ts +0 -18
- package/foehn-misc/foehn-abbr.component.d.ts +0 -7
- package/foehn-misc/foehn-misc.module.d.ts +0 -7
- package/foehn-modal/foehn-modal.component.d.ts +0 -24
- package/foehn-modal/foehn-modal.module.d.ts +0 -11
- package/foehn-multiselect-autocomplete/foehn-multiselect-autocomplete.component.d.ts +0 -54
- package/foehn-multiselect-autocomplete/foehn-multiselect-autocomplete.module.d.ts +0 -13
- package/foehn-nav13/foehn-input-nav13.component.d.ts +0 -20
- package/foehn-nav13/foehn-input-nav13.module.d.ts +0 -11
- package/foehn-navigation/abstract-foehn-navigation.component.d.ts +0 -19
- package/foehn-navigation/foehn-navigation/foehn-navigation.component.d.ts +0 -22
- package/foehn-navigation/foehn-navigation.module.d.ts +0 -13
- package/foehn-navigation/foehn-navigation.service.d.ts +0 -69
- package/foehn-navigation/foehn-simple-navigation/foehn-simple-navigation.component.d.ts +0 -8
- package/foehn-notfound/foehn-notfound.component.d.ts +0 -19
- package/foehn-notfound/foehn-notfound.module.d.ts +0 -10
- package/foehn-page/foehn-page-counter.component.d.ts +0 -15
- package/foehn-page/foehn-page-expiration-timer/current-session-expiration.d.ts +0 -5
- package/foehn-page/foehn-page-expiration-timer/demande-expiration-interceptor.d.ts +0 -15
- package/foehn-page/foehn-page-expiration-timer/demande-expiration.service.d.ts +0 -16
- package/foehn-page/foehn-page-expiration-timer/foehn-page-expiration-timer.component.d.ts +0 -36
- package/foehn-page/foehn-page-expiration-timer/interval.helper.d.ts +0 -3
- package/foehn-page/foehn-page-modal.component.d.ts +0 -23
- package/foehn-page/foehn-page-modal.service.d.ts +0 -12
- package/foehn-page/foehn-page.component.d.ts +0 -80
- package/foehn-page/foehn-page.module.d.ts +0 -24
- package/foehn-page/foehn-page.service.d.ts +0 -19
- package/foehn-page/foehn-transmit-waiting-modal/demande-transmit-interceptor.d.ts +0 -16
- package/foehn-page/foehn-transmit-waiting-modal/foehn-transmit-waiting-modal.component.d.ts +0 -11
- package/foehn-page/foehn-transmit-waiting-modal/foehn-transmit-waiting-modal.service.d.ts +0 -11
- package/foehn-recap-section/foehn-recap-section.component.d.ts +0 -21
- package/foehn-recap-section/foehn-recap-section.module.d.ts +0 -10
- package/foehn-recap-section/foehn-recap-section.type.d.ts +0 -17
- package/foehn-remaining-alerts-summary/foehn-remaining-alerts-summary.component.d.ts +0 -20
- package/foehn-remaining-alerts-summary/foehn-remaining-alerts-summary.module.d.ts +0 -8
- package/foehn-status-progress-bar/foehn-status-progress-bar.component.d.ts +0 -23
- package/foehn-status-progress-bar/foehn-status-progress-bar.module.d.ts +0 -10
- package/foehn-table/foehn-table-column-configuration.d.ts +0 -14
- package/foehn-table/foehn-table-page-change-event.d.ts +0 -5
- package/foehn-table/foehn-table.component.d.ts +0 -40
- package/foehn-table/foehn-table.module.d.ts +0 -13
- package/foehn-table/row-element.type.d.ts +0 -4
- package/foehn-table/tableSort.d.ts +0 -4
- package/foehn-upload/abstract-foehn-uploader.component.d.ts +0 -68
- package/foehn-upload/document-reference.d.ts +0 -12
- package/foehn-upload/foehn-bo-multi-upload/bo-multi-upload.service.d.ts +0 -27
- package/foehn-upload/foehn-bo-multi-upload/bo-multi-upload.type.d.ts +0 -11
- package/foehn-upload/foehn-bo-multi-upload/foehn-bo-multi-upload.component.d.ts +0 -38
- package/foehn-upload/foehn-bo-multi-upload/foehn-bo-multi-upload.module.d.ts +0 -13
- package/foehn-upload/foehn-multi-upload/foehn-multi-upload.component.d.ts +0 -42
- package/foehn-upload/foehn-multi-upload/foehn-multi-upload.module.d.ts +0 -13
- package/foehn-upload/foehn-multi-upload/multi-upload.service.d.ts +0 -29
- package/foehn-upload/foehn-multi-upload/multi-upload.type.d.ts +0 -11
- package/foehn-upload/foehn-multi-upload/pending-upload.service.d.ts +0 -26
- package/foehn-upload/foehn-picture-upload/foehn-picture-upload.component.d.ts +0 -38
- package/foehn-upload/foehn-picture-upload/foehn-picture-upload.module.d.ts +0 -14
- package/foehn-upload/foehn-upload-progress-bar/foehn-upload-progress-bar.component.d.ts +0 -22
- package/foehn-upload/foehn-upload-progress-bar/foehn-upload-progress-bar.module.d.ts +0 -11
- package/foehn-upload/foehn-upload-progress-bar/upload-progress.service.d.ts +0 -19
- package/foehn-upload/foehn-upload-progress-bar/upload-progress.type.d.ts +0 -6
- package/foehn-upload/page-upload-limit.service.d.ts +0 -22
- package/foehn-upload/pending-upload.type.d.ts +0 -9
- package/foehn-upload/uploader.helper.d.ts +0 -66
- package/foehn-user-connected-as/foehn-user-connected-as.component.d.ts +0 -12
- package/foehn-user-connected-as/foehn-user-connected-as.module.d.ts +0 -9
- package/foehn-validation-alert-summary/foehn-validation-alert-summary.component.d.ts +0 -20
- package/foehn-validation-alert-summary/foehn-validation-alert-summary.module.d.ts +0 -9
- package/foehn-validation-alerts/foehn-validation-alerts.component.d.ts +0 -14
- package/foehn-validation-alerts/foehn-validation-alerts.module.d.ts +0 -8
- package/form-error.d.ts +0 -5
- package/form-post-response.d.ts +0 -19
- package/gesdem/gesdem-error-handler.service.d.ts +0 -22
- package/gesdem/gesdem-event.service.d.ts +0 -16
- package/gesdem/gesdem-handler.service.d.ts +0 -52
- package/gesdem/gesdem-loader.guard.d.ts +0 -2
- package/gesdem/gesdem-statut-utils.d.ts +0 -12
- package/gesdem-action-recovery/gesdem-action-recovery-login/gesdem-action-recovery-login.component.d.ts +0 -39
- package/gesdem-action-recovery/gesdem-action-recovery-registration/gesdem-action-recovery-registration.component.d.ts +0 -59
- package/gesdem-action-recovery/gesdem-action-recovery.module.d.ts +0 -17
- package/gesdem-action-recovery/gesdem-action-recovery.service.d.ts +0 -24
- package/gesdem-action-recovery/reprise-info.d.ts +0 -6
- package/gesdem-confirmation/gesdem-confirmation.component.d.ts +0 -65
- package/gesdem-confirmation/gesdem-confirmation.module.d.ts +0 -12
- package/gesdem-error/gesdem-error.component.d.ts +0 -34
- package/gesdem-error/gesdem-error.module.d.ts +0 -12
- package/global.const.d.ts +0 -1
- package/helpers/demande.helper.d.ts +0 -3
- package/helpers/object.helper.d.ts +0 -30
- package/i18n-form.d.ts +0 -5
- package/index.d.ts +0 -5
- package/pipes/currency.pipe.d.ts +0 -10
- package/pipes/date.pipe.d.ts +0 -12
- package/pipes/formatIde.pipe.d.ts +0 -7
- package/pipes/pipes.module.d.ts +0 -9
- package/prestations-ng-core.module.d.ts +0 -12
- package/public-api.d.ts +0 -238
- package/refinf/model/address-type-light.d.ts +0 -5
- package/refinf/model/canton.d.ts +0 -4
- package/refinf/model/district.d.ts +0 -7
- package/refinf/model/municipality.d.ts +0 -9
- package/refinf/model/place-of-origin.d.ts +0 -9
- package/refinf/model/postal-locality.d.ts +0 -11
- package/sdk-appinfo/application-info.d.ts +0 -61
- package/sdk-appinfo/application-info.service.d.ts +0 -32
- package/sdk-currency/currency.helper.d.ts +0 -9
- package/sdk-date/date.helper.d.ts +0 -20
- package/sdk-dictionary/default-dictionary.d.ts +0 -2
- package/sdk-dictionary/sdk-dictionary.module.d.ts +0 -7
- package/sdk-dictionary/sdk-dictionary.pipe.d.ts +0 -12
- package/sdk-dictionary/sdk-dictionary.service.d.ts +0 -44
- package/sdk-drafts/draft.model.d.ts +0 -5
- package/sdk-drafts/drafts-container.component.d.ts +0 -33
- package/sdk-drafts/drafts.module.d.ts +0 -14
- package/sdk-drafts/drafts.service.d.ts +0 -20
- package/sdk-epayment/model/EPaymentParameters.d.ts +0 -21
- package/sdk-epayment/pending-payment/pending-payment.component.d.ts +0 -9
- package/sdk-epayment/sdk-epayment.component.d.ts +0 -33
- package/sdk-epayment/sdk-epayment.module.d.ts +0 -11
- package/sdk-epayment/sdk-epayment.service.d.ts +0 -21
- package/sdk-events-logger/sdk-event-type.d.ts +0 -12
- package/sdk-events-logger/sdk-event.d.ts +0 -8
- package/sdk-events-logger/sdk-events-logger.service.d.ts +0 -18
- package/sdk-recaptcha/grecaptcha/grecaptcha.component.d.ts +0 -39
- package/sdk-recaptcha/recaptcha.service.d.ts +0 -44
- package/sdk-recaptcha/sdk-recaptcha.component.d.ts +0 -27
- package/sdk-recaptcha/sdk-recaptcha.module.d.ts +0 -9
- package/sdk-redirect/iam-expired-interceptor.service.d.ts +0 -12
- package/sdk-redirect/redirect.component.d.ts +0 -22
- package/sdk-redirect/sdk-redirect.module.d.ts +0 -9
- package/sdk-session-info/session-info-data.d.ts +0 -29
- package/sdk-session-info/session-info-with-application.service.d.ts +0 -20
- package/sdk-session-info/session-info.service.d.ts +0 -17
- package/sdk-statistics/sdk-statistics.service.d.ts +0 -24
- package/sdk-support-alert/support-alert-container.component.d.ts +0 -20
- package/sdk-support-alert/support-alert.component.d.ts +0 -12
- package/sdk-support-alert/support-alert.model.d.ts +0 -12
- package/sdk-support-alert/support-alert.module.d.ts +0 -10
- package/sdk-support-alert/support-alert.service.d.ts +0 -34
- package/service-locator.d.ts +0 -4
- package/supported-browser.d.ts +0 -1
- package/validation/validation-handler.service.d.ts +0 -15
package/COMPONENTS.md
ADDED
|
@@ -0,0 +1,350 @@
|
|
|
1
|
+
# Components and features provided by prestations-ng (Standalone)
|
|
2
|
+
|
|
3
|
+
As of this version, all prestations-ng components and directives are **standalone**.
|
|
4
|
+
There are no more `NgModule`s — components are imported directly in the `imports` array of other standalone components, and providers are configured via `provide*()` functions.
|
|
5
|
+
|
|
6
|
+
## Core setup (required)
|
|
7
|
+
|
|
8
|
+
[providePrestationsNgCore](projects/prestations-ng/src/provide-prestations-ng-core.ts)
|
|
9
|
+
|
|
10
|
+
Provides the core prestations-ng configuration: HTTP interceptors, chunk load error handling, and FontAwesome configuration.
|
|
11
|
+
|
|
12
|
+
**IMPORTANT**: this function **MUST** be called in the providers of `bootstrapApplication`.
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { bootstrapApplication } from '@angular/platform-browser';
|
|
16
|
+
import { providePrestationsNgCore } from '@dsivd/prestations-ng/provide-prestations-ng-core';
|
|
17
|
+
import { provideRouter } from '@angular/router';
|
|
18
|
+
|
|
19
|
+
import { AppComponent } from './app/app.component';
|
|
20
|
+
import { routes } from './app/app.routes';
|
|
21
|
+
|
|
22
|
+
bootstrapApplication(AppComponent, {
|
|
23
|
+
providers: [providePrestationsNgCore(), provideRouter(routes)],
|
|
24
|
+
});
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Provides:
|
|
28
|
+
|
|
29
|
+
- `IamExpiredInterceptorService` (HTTP interceptor)
|
|
30
|
+
- `oidcNotAuthenticatedInterceptor` (functional interceptor)
|
|
31
|
+
- `ChunkLoadErrorHandler` (ErrorHandler)
|
|
32
|
+
- FontAwesome configuration (disables CSS auto-injection for CSP compliance)
|
|
33
|
+
|
|
34
|
+
## Formatter Directives
|
|
35
|
+
|
|
36
|
+
Import the standalone directives directly:
|
|
37
|
+
|
|
38
|
+
- `CurrencyFormatterDirective` — selector `currencyFormatter`
|
|
39
|
+
- `NdcFormatterDirective` — selector `ndcFormatter`
|
|
40
|
+
- `IdeFormatterDirective` — selector `ideFormatter`
|
|
41
|
+
- `IbanFormatterDirective` — selector `ibanFormatter`
|
|
42
|
+
|
|
43
|
+
```typescript
|
|
44
|
+
import { CurrencyFormatterDirective } from '@dsivd/prestations-ng';
|
|
45
|
+
|
|
46
|
+
@Component({
|
|
47
|
+
imports: [CurrencyFormatterDirective]
|
|
48
|
+
})
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Pipes
|
|
52
|
+
|
|
53
|
+
Import the standalone pipes directly:
|
|
54
|
+
|
|
55
|
+
- `DisplayDatePipe` — `displayDate`
|
|
56
|
+
- `FormatIdePipe` — `formatIde`
|
|
57
|
+
- `CurrencyPipe` — `currency`
|
|
58
|
+
- `SdkDictionaryPipe` — `fromDictionary`
|
|
59
|
+
|
|
60
|
+
```typescript
|
|
61
|
+
import { DisplayDatePipe, SdkDictionaryPipe } from '@dsivd/prestations-ng';
|
|
62
|
+
|
|
63
|
+
@Component({
|
|
64
|
+
imports: [DisplayDatePipe, SdkDictionaryPipe]
|
|
65
|
+
})
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Foehn Input
|
|
69
|
+
|
|
70
|
+
Standalone components for input fields:
|
|
71
|
+
|
|
72
|
+
- `FoehnInputTextComponent` — `foehn-input-text`
|
|
73
|
+
- `FoehnInputNumberComponent` — `foehn-input-number`
|
|
74
|
+
- `FoehnInputEmailComponent` — `foehn-input-email`
|
|
75
|
+
- `FoehnInputHiddenComponent` — `foehn-input-hidden`
|
|
76
|
+
- `FoehnInputPasswordComponent` — `foehn-input-password`
|
|
77
|
+
- `FoehnInputTextareaComponent` — `foehn-input-textarea`
|
|
78
|
+
- `FoehnInputPhoneComponent` — `foehn-input-phone`
|
|
79
|
+
- `FoehnInputPrefixedTextComponent` — `foehn-input-prefixed-text`
|
|
80
|
+
- `FoehnInputDateComponent` — `foehn-date`
|
|
81
|
+
- `FoehnInputDateTimeComponent` — `foehn-date-time`
|
|
82
|
+
- `FoehnInputTimeComponent` — `foehn-time`
|
|
83
|
+
|
|
84
|
+
## Foehn Checkable
|
|
85
|
+
|
|
86
|
+
Standalone components for checkable/selectable fields:
|
|
87
|
+
|
|
88
|
+
- `FoehnCheckboxComponent` — `foehn-checkbox` (multiple only; for a simple checkbox use `foehn-boolean-checkbox`)
|
|
89
|
+
- `FoehnRadioComponent` — `foehn-radio`
|
|
90
|
+
- `FoehnSelectComponent` — `foehn-select`
|
|
91
|
+
|
|
92
|
+
## Foehn Autocomplete
|
|
93
|
+
|
|
94
|
+
- `FoehnAutocompleteComponent` — `foehn-autocomplete`
|
|
95
|
+
- `FoehnMultiselectAutocompleteComponent` — `foehn-multiselect-autocomplete`
|
|
96
|
+
|
|
97
|
+
## Foehn Address
|
|
98
|
+
|
|
99
|
+
- `FoehnInputAddressComponent` — `foehn-input-address`
|
|
100
|
+
- `FoehnDisplayAddressComponent` — `foehn-display-address`
|
|
101
|
+
- `FoehnInputForeignLocalityComponent` — `foehn-input-foreign-locality`
|
|
102
|
+
- `FoehnInputForeignStreetComponent` — `foehn-input-foreign-street`
|
|
103
|
+
|
|
104
|
+
## Foehn Boolean
|
|
105
|
+
|
|
106
|
+
- `FoehnBooleanCheckboxComponent` — `foehn-boolean-checkbox`
|
|
107
|
+
- `FoehnBooleanRadioComponent` — `foehn-boolean-radio`
|
|
108
|
+
|
|
109
|
+
## Foehn Breadcrumb
|
|
110
|
+
|
|
111
|
+
- `FoehnBreadcrumbComponent` — `foehn-breadcrumb`
|
|
112
|
+
|
|
113
|
+
## Foehn Header
|
|
114
|
+
|
|
115
|
+
- `FoehnHeaderComponent` — `foehn-header`
|
|
116
|
+
- `FoehnSkipLinkComponent` — `foehn-skip-link`
|
|
117
|
+
|
|
118
|
+
## Foehn Footer
|
|
119
|
+
|
|
120
|
+
- `FoehnFooterComponent` — `foehn-footer`
|
|
121
|
+
|
|
122
|
+
## Foehn Form
|
|
123
|
+
|
|
124
|
+
- `FoehnFormComponent` — `foehn-form`
|
|
125
|
+
|
|
126
|
+
## Foehn Growl
|
|
127
|
+
|
|
128
|
+
- `FoehnGrowlComponent` — `foehn-growl`
|
|
129
|
+
|
|
130
|
+
## Foehn Icons
|
|
131
|
+
|
|
132
|
+
Standalone icon components:
|
|
133
|
+
|
|
134
|
+
- `FoehnIconCalendarComponent` — `foehn-icon-calendar`
|
|
135
|
+
- `FoehnIconCheckComponent` — `foehn-icon-check`
|
|
136
|
+
- `FoehnIconCheckSquareOComponent` — `foehn-icon-check-square-o`
|
|
137
|
+
- `FoehnIconChevronDownComponent` — `foehn-icon-chevron-down`
|
|
138
|
+
- `FoehnIconChevronUpComponent` — `foehn-icon-chevron-up`
|
|
139
|
+
- `FoehnIconChevronRightComponent` — `foehn-icon-chevron-right`
|
|
140
|
+
- `FoehnIconChevronLeftComponent` — `foehn-icon-chevron-left`
|
|
141
|
+
- `FoehnIconClockComponent` — `foehn-icon-clock`
|
|
142
|
+
- `FoehnIconCommentDotsComponent` — `foehn-icon-comment-dots`
|
|
143
|
+
- `FoehnIconEditComponent` — `foehn-icon-edit`
|
|
144
|
+
- `FoehnIconExternalLinkAltComponent` — `foehn-icon-external-link-alt`
|
|
145
|
+
- `FoehnIconInfoCircleComponent` — `foehn-icon-info-circle`
|
|
146
|
+
- `FoehnIconLockComponent` — `foehn-icon-lock`
|
|
147
|
+
- `FoehnIconMapMarkerComponent` — `foehn-icon-map-marker`
|
|
148
|
+
- `FoehnIconMinusCircleComponent` — `foehn-icon-minus-circle`
|
|
149
|
+
- `FoehnIconPlusCircleComponent` — `foehn-icon-plus-circle`
|
|
150
|
+
- `FoehnIconPlusSquareComponent` — `foehn-icon-plus-square`
|
|
151
|
+
- `FoehnIconSearchComponent` — `foehn-icon-search`
|
|
152
|
+
- `FoehnIconTimesComponent` — `foehn-icon-times`
|
|
153
|
+
- `FoehnIconTrashAltComponent` — `foehn-icon-trash-alt`
|
|
154
|
+
- `FoehnIconUnlockAltComponent` — `foehn-icon-unlock-alt`
|
|
155
|
+
- `FoehnIconFilePdfComponent` — `foehn-icon-file-pdf`
|
|
156
|
+
- `FoehnIconPencilComponent` — `foehn-icon-pencil`
|
|
157
|
+
- `FoehnIconUserComponent` — `foehn-icon-user`
|
|
158
|
+
|
|
159
|
+
## Foehn List
|
|
160
|
+
|
|
161
|
+
- `FoehnListComponent` — `foehn-list`
|
|
162
|
+
|
|
163
|
+
## Foehn Table
|
|
164
|
+
|
|
165
|
+
- `FoehnTableComponent` — `foehn-table`
|
|
166
|
+
|
|
167
|
+
## Foehn Modal
|
|
168
|
+
|
|
169
|
+
- `FoehnModalComponent` — `foehn-modal`
|
|
170
|
+
- `FoehnPageModalComponent` — `foehn-page-modal`
|
|
171
|
+
|
|
172
|
+
## Foehn Help Modal
|
|
173
|
+
|
|
174
|
+
- `FoehnHelpModalComponent` — `foehn-help-modal`
|
|
175
|
+
|
|
176
|
+
## Foehn Confirm Modal
|
|
177
|
+
|
|
178
|
+
- `FoehnConfirmModalComponent` — `foehn-confirm-modal`
|
|
179
|
+
- `FoehnConfirmModalService` — injectable service
|
|
180
|
+
|
|
181
|
+
## Foehn Input Nav13 (AVS)
|
|
182
|
+
|
|
183
|
+
- `FoehnInputNav13Component` — `foehn-input-nav13`
|
|
184
|
+
|
|
185
|
+
## Foehn Navigation
|
|
186
|
+
|
|
187
|
+
- `FoehnNavigationComponent` — `foehn-navigation`
|
|
188
|
+
- `FoehnSimpleNavigationComponent` — `foehn-simple-navigation`
|
|
189
|
+
- `FoehnNavigationService` — injectable service
|
|
190
|
+
|
|
191
|
+
## Foehn Not Found
|
|
192
|
+
|
|
193
|
+
- `FoehnNotfoundComponent` — `foehn-notfound` (can be used in the router)
|
|
194
|
+
|
|
195
|
+
## Foehn Page
|
|
196
|
+
|
|
197
|
+
- `FoehnPageComponent` — `foehn-page`
|
|
198
|
+
- `FoehnPageCounterComponent` — `foehn-page-counter`
|
|
199
|
+
- `FoehnPageExpirationTimerComponent` — `foehn-page-expiration-timer`
|
|
200
|
+
|
|
201
|
+
## Foehn Status Progress Bar
|
|
202
|
+
|
|
203
|
+
- `FoehnStatusProgressBarComponent` — `foehn-status-progress-bar`
|
|
204
|
+
|
|
205
|
+
## Foehn Remaining Alerts Summary
|
|
206
|
+
|
|
207
|
+
- `FoehnRemainingAlertsSummaryComponent` — `foehn-remaining-alerts-summary`
|
|
208
|
+
|
|
209
|
+
## Foehn Validation Alert Summary
|
|
210
|
+
|
|
211
|
+
- `FoehnValidationAlertSummaryComponent` — `foehn-validation-alert-summary`
|
|
212
|
+
|
|
213
|
+
## Foehn Validation Alerts
|
|
214
|
+
|
|
215
|
+
- `FoehnValidationAlertsComponent` — `foehn-validation-alerts`
|
|
216
|
+
|
|
217
|
+
## GesDem Confirmation Page
|
|
218
|
+
|
|
219
|
+
- `GesdemConfirmationComponent` — `gesdem-confirmation` (can be used in the router or as a super-class)
|
|
220
|
+
|
|
221
|
+
## GesDem Error Page
|
|
222
|
+
|
|
223
|
+
- `GesdemErrorComponent` — `gesdem-error` (can be used in the router)
|
|
224
|
+
|
|
225
|
+
## SDK Dictionary
|
|
226
|
+
|
|
227
|
+
- `SdkDictionaryService` — injectable service
|
|
228
|
+
- `SdkDictionaryPipe` — pipe `fromDictionary`
|
|
229
|
+
|
|
230
|
+
## SDK Captcha
|
|
231
|
+
|
|
232
|
+
- `SdkRecaptchaComponent` — `captcha`
|
|
233
|
+
- `RecaptchaService` — injectable service
|
|
234
|
+
|
|
235
|
+
## SDK Redirect
|
|
236
|
+
|
|
237
|
+
- `RedirectComponent` — `redirector`
|
|
238
|
+
|
|
239
|
+
## Foehn Multi Upload
|
|
240
|
+
|
|
241
|
+
- `FoehnMultiUploadComponent` — `foehn-multi-upload`
|
|
242
|
+
|
|
243
|
+
## Foehn Bo Multi Upload
|
|
244
|
+
|
|
245
|
+
- `FoehnBoMultiUploadComponent` — `foehn-bo-multi-upload`
|
|
246
|
+
|
|
247
|
+
## Foehn Picture Upload
|
|
248
|
+
|
|
249
|
+
- `FoehnPictureUploadComponent` — `foehn-picture-upload`
|
|
250
|
+
|
|
251
|
+
## Foehn Upload Progress Bar
|
|
252
|
+
|
|
253
|
+
- `FoehnUploadProgressBarComponent` — `foehn-upload-progress-bar`
|
|
254
|
+
- `FoehnGlobalUploadProgressBarComponent` — `foehn-global-upload-progress-bar`
|
|
255
|
+
|
|
256
|
+
## Foehn Recap Section
|
|
257
|
+
|
|
258
|
+
- `FoehnRecapSectionComponent` — `foehn-recap-section`
|
|
259
|
+
|
|
260
|
+
## Foehn User Connected As
|
|
261
|
+
|
|
262
|
+
- `FoehnUserConnectedAsComponent` — `foehn-user-connected-as`
|
|
263
|
+
|
|
264
|
+
## Foehn Miscellaneous
|
|
265
|
+
|
|
266
|
+
- `FoehnAbbrComponent` — `foehn-abbr`
|
|
267
|
+
|
|
268
|
+
## Foehn Menu Prestation
|
|
269
|
+
|
|
270
|
+
- `FoehnErrorPillComponent` — `foehn-error-pill`
|
|
271
|
+
- `FoehnMenuItemComponent` — `foehn-menu-item`
|
|
272
|
+
- `FoehnMenuItemTransmitComponent` — `foehn-menu-item-transmit`
|
|
273
|
+
- `FoehnListSummaryComponent` — `foehn-list-summary`
|
|
274
|
+
|
|
275
|
+
## Foehn Date Picker
|
|
276
|
+
|
|
277
|
+
- `FoehnDatePickerComponent` — `foehn-date-picker`
|
|
278
|
+
- `FoehnDatePickerButtonComponent` — `foehn-date-picker-button`
|
|
279
|
+
|
|
280
|
+
## Foehn Decision Electronique
|
|
281
|
+
|
|
282
|
+
- `FoehnDecisionElectroniqueComponent` — `foehn-decision-electronique`
|
|
283
|
+
|
|
284
|
+
## Foehn Agenda
|
|
285
|
+
|
|
286
|
+
- `FoehnAgendaComponent` — `foehn-agenda`
|
|
287
|
+
- `FoehnAgendaNavigationComponent` — `foehn-agenda-navigation`
|
|
288
|
+
- `FoehnAgendaTimeslotPanelComponent` — `foehn-agenda-timeslot-panel`
|
|
289
|
+
|
|
290
|
+
## Foehn Dropdown Menu
|
|
291
|
+
|
|
292
|
+
- `FoehnDropdownMenuComponent` — `foehn-dropdown-menu`
|
|
293
|
+
|
|
294
|
+
## Foehn Feedback Notification
|
|
295
|
+
|
|
296
|
+
- `FoehnFeedbackNotificationComponent` — `foehn-feedback-notification`
|
|
297
|
+
|
|
298
|
+
## SDK Payment (ePayment)
|
|
299
|
+
|
|
300
|
+
- `SdkEpaymentComponent` — `sdk-epayment`
|
|
301
|
+
- `PendingPaymentComponent` — `pending-payment`
|
|
302
|
+
- `SdkEpaymentService` — injectable service
|
|
303
|
+
|
|
304
|
+
## GesDem Action Recovery
|
|
305
|
+
|
|
306
|
+
- `GesdemActionRecoveryLoginComponent` — login recovery component
|
|
307
|
+
- `GesdemActionRecoveryRegistrationComponent` — registration recovery component
|
|
308
|
+
|
|
309
|
+
## Foehn Transmit Waiting Modal
|
|
310
|
+
|
|
311
|
+
- `FoehnTransmitWaitingModalComponent` — `foehn-transmit-waiting-modal`
|
|
312
|
+
- `FoehnTransmitWaitingModalService` — injectable service
|
|
313
|
+
|
|
314
|
+
---
|
|
315
|
+
|
|
316
|
+
## Migrating from NgModules
|
|
317
|
+
|
|
318
|
+
If you are migrating from a previous version that uses NgModules:
|
|
319
|
+
|
|
320
|
+
1. **Replace `PrestationsNgCoreModule`** with `providePrestationsNgCore()` in the providers of `bootstrapApplication`.
|
|
321
|
+
|
|
322
|
+
2. **Remove all module imports** (`FoehnInputModule`, `FoehnCheckablesModule`, etc.) and import standalone components directly in the `imports` array of your components.
|
|
323
|
+
|
|
324
|
+
3. **Convert your components to standalone** and directly import the prestations-ng components you need:
|
|
325
|
+
|
|
326
|
+
```typescript
|
|
327
|
+
// Before (with NgModule)
|
|
328
|
+
@NgModule({
|
|
329
|
+
imports: [FoehnInputModule, FoehnCheckablesModule],
|
|
330
|
+
declarations: [MyPageComponent],
|
|
331
|
+
})
|
|
332
|
+
export class MyPageModule {}
|
|
333
|
+
|
|
334
|
+
// After (standalone) (no need to add "standalone: true" because it's the default behavior)
|
|
335
|
+
@Component({
|
|
336
|
+
imports: [FoehnInputTextComponent, FoehnSelectComponent],
|
|
337
|
+
templateUrl: './my-page.component.html',
|
|
338
|
+
})
|
|
339
|
+
export class MyPageComponent {}
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
4. **Replace module-based `loadChildren`** with route files:
|
|
343
|
+
|
|
344
|
+
```typescript
|
|
345
|
+
// Before
|
|
346
|
+
{ path: 'page', loadChildren: () => import('./page/page.module').then(m => m.PageModule) }
|
|
347
|
+
|
|
348
|
+
// After
|
|
349
|
+
{ path: 'page', loadChildren: () => import('./page/page.routes').then(m => m.ROUTES) }
|
|
350
|
+
```
|
package/CONTRIBUTING.md
CHANGED
|
@@ -72,7 +72,6 @@ run `npm run test:schematics` (at root level).
|
|
|
72
72
|
### Testing into a project such as **skeleton**
|
|
73
73
|
|
|
74
74
|
- **In prestations-ng**:
|
|
75
|
-
|
|
76
75
|
- if it is the first time, execute `npm install` then `npm run build:lib` (at root level)
|
|
77
76
|
- `cd dist/prestations-ng && npm link` (it's critical to link the content of `dist/prestations-ng`, not the root)
|
|
78
77
|
- `npm run build:lib:dev` (at root level)
|
|
@@ -87,15 +86,14 @@ If you want to test `ng-update`, you will need to release the library under a be
|
|
|
87
86
|
|
|
88
87
|
**NB: Do not forget to add your utility into ng-add and ng-update schematics**
|
|
89
88
|
|
|
90
|
-
## Adding a
|
|
89
|
+
## Adding a standalone component
|
|
91
90
|
|
|
92
|
-
In case you're adding or modifying a `*.
|
|
91
|
+
In case you're adding or modifying a `*.component.ts`, please update [COMPONENTS.md](COMPONENTS.md).
|
|
93
92
|
|
|
94
93
|
## Adding an icon
|
|
95
94
|
|
|
96
95
|
- Create a `.ts` and `.html` similar to `foehn-icon-lock.component`, and replace the name of the icon accordingly
|
|
97
96
|
- Add a `title` for accessibility
|
|
98
|
-
- Import and export the new `*.component.ts` in [foehn-icons.module.ts](projects/prestations-ng/src/foehn-icons/foehn-icons.module.ts)
|
|
99
97
|
|
|
100
98
|
## Notes about linting, formatting and pre-commit hooks
|
|
101
99
|
|