@dsivd/prestations-ng 16.0.0-beta3 → 16.0.0-beta4
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/UPGRADING_V16.md +149 -58
- package/dsivd-prestations-ng-v16.0.0-beta4.tgz +0 -0
- package/esm2020/abstract-page-component.mjs +3 -3
- package/esm2020/directives/currency-formatter.directive.mjs +3 -3
- package/esm2020/directives/formatter.module.mjs +4 -4
- package/esm2020/directives/iban-formatter.directive.mjs +3 -3
- package/esm2020/directives/ide-formatter.directive.mjs +3 -3
- package/esm2020/directives/ndc-formatter.directive.mjs +3 -3
- package/esm2020/foehn-address/foehn-address.module.mjs +4 -4
- package/esm2020/foehn-address/foehn-display-address.component.mjs +3 -3
- package/esm2020/foehn-address/foehn-input-address.component.mjs +3 -3
- package/esm2020/foehn-address/foehn-input-foreign-locality.component.mjs +3 -3
- package/esm2020/foehn-address/foehn-input-foreign-street.component.mjs +3 -3
- package/esm2020/foehn-agenda/foehn-agenda-navigation/foehn-agenda-navigation.component.mjs +3 -3
- package/esm2020/foehn-agenda/foehn-agenda-timeslot-panel/foehn-agenda-timeslot-panel.component.mjs +3 -3
- package/esm2020/foehn-agenda/foehn-agenda.component.mjs +3 -3
- package/esm2020/foehn-agenda/foehn-agenda.module.mjs +4 -4
- package/esm2020/foehn-autocomplete/foehn-autocomplete.component.mjs +3 -3
- package/esm2020/foehn-autocomplete/foehn-autocomplete.module.mjs +4 -4
- package/esm2020/foehn-boolean/foehn-boolean-checkbox.component.mjs +3 -3
- package/esm2020/foehn-boolean/foehn-boolean-radio.component.mjs +3 -3
- package/esm2020/foehn-boolean/foehn-boolean.module.mjs +4 -4
- package/esm2020/foehn-breadcrumb/breadcrumb-event.service.mjs +3 -3
- package/esm2020/foehn-breadcrumb/foehn-breadcrumb.component.mjs +3 -3
- package/esm2020/foehn-breadcrumb/foehn-breadcrumb.module.mjs +4 -4
- package/esm2020/foehn-checkables/foehn-checkable-group.component.mjs +3 -3
- package/esm2020/foehn-checkables/foehn-checkables.module.mjs +4 -4
- package/esm2020/foehn-checkables/foehn-checkbox.component.mjs +3 -3
- package/esm2020/foehn-checkables/foehn-radio.component.mjs +3 -3
- package/esm2020/foehn-checkables/foehn-select.component.mjs +3 -3
- package/esm2020/foehn-confirm-modal/foehn-confirm-modal.component.mjs +3 -3
- package/esm2020/foehn-confirm-modal/foehn-confirm-modal.module.mjs +4 -4
- package/esm2020/foehn-confirm-modal/foehn-confirm-modal.service.mjs +3 -3
- package/esm2020/foehn-date-picker/foehn-date-picker.component.mjs +3 -3
- package/esm2020/foehn-date-picker/foehn-date-picker.module.mjs +4 -4
- package/esm2020/foehn-date-picker-button/foehn-date-picker-button.component.mjs +3 -3
- package/esm2020/foehn-date-picker-button/foehn-date-picker-button.module.mjs +4 -4
- package/esm2020/foehn-debug-summary/foehn-debug-summary.component.mjs +3 -3
- package/esm2020/foehn-debug-summary/foehn-debug-summary.component.module.mjs +4 -4
- package/esm2020/foehn-decision-electronique/foehn-decision-electronique.component.mjs +3 -3
- package/esm2020/foehn-decision-electronique/foehn-decision-electronique.module.mjs +4 -4
- package/esm2020/foehn-footer/foehn-footer.component.mjs +3 -3
- package/esm2020/foehn-footer/foehn-footer.module.mjs +4 -4
- package/esm2020/foehn-form/foehn-form.component.mjs +3 -3
- package/esm2020/foehn-form/foehn-form.module.mjs +4 -4
- package/esm2020/foehn-form/register-ng-model.service.mjs +3 -3
- package/esm2020/foehn-growl/foehn-growl.component.mjs +3 -3
- package/esm2020/foehn-growl/foehn-growl.module.mjs +4 -4
- package/esm2020/foehn-growl/growl-broker.service.mjs +3 -3
- package/esm2020/foehn-header/foehn-header.component.mjs +3 -3
- package/esm2020/foehn-header/foehn-header.module.mjs +4 -4
- package/esm2020/foehn-header/foehn-skip-link.component.mjs +3 -3
- package/esm2020/foehn-help-modal/foehn-help-modal.component.mjs +3 -3
- package/esm2020/foehn-help-modal/foehn-help-modal.module.mjs +4 -4
- package/esm2020/foehn-icons/abstract-icon-component.mjs +3 -3
- package/esm2020/foehn-icons/foehn-icon-calendar.component.mjs +3 -3
- package/esm2020/foehn-icons/foehn-icon-check-square-o.component.mjs +3 -3
- package/esm2020/foehn-icons/foehn-icon-check.component.mjs +3 -3
- package/esm2020/foehn-icons/foehn-icon-chevron-down.component.mjs +3 -3
- package/esm2020/foehn-icons/foehn-icon-chevron-left.component.mjs +3 -3
- package/esm2020/foehn-icons/foehn-icon-chevron-right.component.mjs +3 -3
- package/esm2020/foehn-icons/foehn-icon-chevron-up.component.mjs +3 -3
- package/esm2020/foehn-icons/foehn-icon-clock.component.mjs +3 -3
- package/esm2020/foehn-icons/foehn-icon-comment-dots.component.mjs +3 -3
- package/esm2020/foehn-icons/foehn-icon-edit.component.mjs +3 -3
- package/esm2020/foehn-icons/foehn-icon-external-link-alt.component.mjs +3 -3
- package/esm2020/foehn-icons/foehn-icon-file-pdf.component.mjs +3 -3
- package/esm2020/foehn-icons/foehn-icon-info-circle.component.mjs +3 -3
- package/esm2020/foehn-icons/foehn-icon-lock.component.mjs +3 -3
- package/esm2020/foehn-icons/foehn-icon-map-marker.component.mjs +3 -3
- package/esm2020/foehn-icons/foehn-icon-minus-circle.component.mjs +3 -3
- package/esm2020/foehn-icons/foehn-icon-plus-circle.component.mjs +3 -3
- package/esm2020/foehn-icons/foehn-icon-plus-square.component.mjs +3 -3
- package/esm2020/foehn-icons/foehn-icon-search.component.mjs +3 -3
- package/esm2020/foehn-icons/foehn-icon-times.component.mjs +3 -3
- package/esm2020/foehn-icons/foehn-icon-trash-alt.component.mjs +3 -3
- package/esm2020/foehn-icons/foehn-icon-unlock-alt.component.mjs +3 -3
- package/esm2020/foehn-icons/foehn-icons.module.mjs +4 -4
- package/esm2020/foehn-input/foehn-input-email.component.mjs +3 -3
- package/esm2020/foehn-input/foehn-input-hidden.component.mjs +3 -3
- package/esm2020/foehn-input/foehn-input-number.component.mjs +3 -3
- package/esm2020/foehn-input/foehn-input-password.component.mjs +3 -3
- package/esm2020/foehn-input/foehn-input-phone.component.mjs +3 -3
- package/esm2020/foehn-input/foehn-input-string.component.mjs +3 -3
- package/esm2020/foehn-input/foehn-input-text.component.mjs +3 -3
- package/esm2020/foehn-input/foehn-input-textarea.component.mjs +3 -3
- package/esm2020/foehn-input/foehn-input.component.mjs +3 -3
- package/esm2020/foehn-input/foehn-input.module.mjs +4 -4
- package/esm2020/foehn-input-date/foehn-input-date.component.mjs +3 -3
- package/esm2020/foehn-input-date-time/foehn-input-date-time.component.mjs +3 -3
- package/esm2020/foehn-input-time/foehn-input-time.component.mjs +3 -3
- package/esm2020/foehn-list/foehn-list.component.mjs +3 -3
- package/esm2020/foehn-list/foehn-list.module.mjs +4 -4
- package/esm2020/foehn-menu-prestation/abstract-list-item-detail-page.component.mjs +3 -3
- package/esm2020/foehn-menu-prestation/abstract-menu-page.component.mjs +3 -3
- package/esm2020/foehn-menu-prestation/abstract-page-from-menu.component.mjs +3 -3
- package/esm2020/foehn-menu-prestation/foehn-error-pill/foehn-error-pill.component.mjs +3 -3
- package/esm2020/foehn-menu-prestation/foehn-list-summary/foehn-list-summary.component.mjs +3 -3
- package/esm2020/foehn-menu-prestation/foehn-menu-items/foehn-menu-item/foehn-menu-item.component.mjs +3 -3
- package/esm2020/foehn-menu-prestation/foehn-menu-items/foehn-menu-item-transmit/foehn-menu-item-transmit.component.mjs +3 -3
- package/esm2020/foehn-menu-prestation/foehn-menu-prestation.module.mjs +4 -4
- package/esm2020/foehn-misc/foehn-abbr.component.mjs +3 -3
- package/esm2020/foehn-misc/foehn-misc.module.mjs +4 -4
- package/esm2020/foehn-modal/foehn-modal.component.mjs +3 -3
- package/esm2020/foehn-modal/foehn-modal.module.mjs +4 -4
- package/esm2020/foehn-multiselect-autocomplete/foehn-multiselect-autocomplete.component.mjs +3 -3
- package/esm2020/foehn-multiselect-autocomplete/foehn-multiselect-autocomplete.module.mjs +4 -4
- package/esm2020/foehn-nav13/foehn-input-nav13.component.mjs +3 -3
- package/esm2020/foehn-nav13/foehn-input-nav13.module.mjs +4 -4
- package/esm2020/foehn-navigation/foehn-navigation.component.mjs +3 -3
- package/esm2020/foehn-navigation/foehn-navigation.module.mjs +4 -4
- package/esm2020/foehn-navigation/foehn-navigation.service.mjs +3 -3
- package/esm2020/foehn-notfound/foehn-notfound.component.mjs +3 -3
- package/esm2020/foehn-notfound/foehn-notfound.module.mjs +4 -4
- package/esm2020/foehn-page/foehn-page-counter.component.mjs +3 -3
- package/esm2020/foehn-page/foehn-page-modal.component.mjs +3 -3
- package/esm2020/foehn-page/foehn-page-modal.service.mjs +3 -3
- package/esm2020/foehn-page/foehn-page.component.mjs +3 -3
- package/esm2020/foehn-page/foehn-page.module.mjs +4 -4
- package/esm2020/foehn-page/foehn-page.service.mjs +3 -3
- package/esm2020/foehn-recap-section/foehn-recap-section.component.mjs +3 -3
- package/esm2020/foehn-recap-section/foehn-recap-section.module.mjs +4 -4
- package/esm2020/foehn-remaining-alerts-summary/foehn-remaining-alerts-summary.component.mjs +3 -3
- package/esm2020/foehn-remaining-alerts-summary/foehn-remaining-alerts-summary.module.mjs +4 -4
- package/esm2020/foehn-status-progress-bar/foehn-status-progress-bar.component.mjs +3 -3
- package/esm2020/foehn-status-progress-bar/foehn-status-progress-bar.module.mjs +4 -4
- package/esm2020/foehn-table/foehn-table.component.mjs +3 -3
- package/esm2020/foehn-table/foehn-table.module.mjs +4 -4
- package/esm2020/foehn-upload/abstract-foehn-uploader.component.mjs +3 -3
- package/esm2020/foehn-upload/foehn-bo-multi-upload/bo-multi-upload.service.mjs +3 -3
- package/esm2020/foehn-upload/foehn-bo-multi-upload/foehn-bo-multi-upload.component.mjs +3 -3
- package/esm2020/foehn-upload/foehn-bo-multi-upload/foehn-bo-multi-upload.module.mjs +4 -4
- package/esm2020/foehn-upload/foehn-multi-upload/foehn-multi-upload.component.mjs +3 -3
- package/esm2020/foehn-upload/foehn-multi-upload/foehn-multi-upload.module.mjs +4 -4
- package/esm2020/foehn-upload/foehn-multi-upload/multi-upload.service.mjs +3 -3
- package/esm2020/foehn-upload/foehn-multi-upload/pending-upload.service.mjs +3 -3
- package/esm2020/foehn-upload/foehn-picture-upload/foehn-picture-upload.component.mjs +3 -3
- package/esm2020/foehn-upload/foehn-picture-upload/foehn-picture-upload.module.mjs +4 -4
- package/esm2020/foehn-upload/foehn-upload-progress-bar/foehn-upload-progress-bar.component.mjs +3 -3
- package/esm2020/foehn-upload/foehn-upload-progress-bar/foehn-upload-progress-bar.module.mjs +4 -4
- package/esm2020/foehn-upload/foehn-upload-progress-bar/upload-progress.service.mjs +3 -3
- package/esm2020/foehn-user-connected-as/foehn-user-connected-as.component.mjs +3 -3
- package/esm2020/foehn-user-connected-as/foehn-user-connected-as.module.mjs +4 -4
- package/esm2020/foehn-validation-alert-summary/foehn-validation-alert-summary.component.mjs +3 -3
- package/esm2020/foehn-validation-alert-summary/foehn-validation-alert-summary.module.mjs +4 -4
- package/esm2020/foehn-validation-alerts/foehn-validation-alerts.component.mjs +3 -3
- package/esm2020/foehn-validation-alerts/foehn-validation-alerts.module.mjs +4 -4
- package/esm2020/gesdem/gesdem-error-handler.service.mjs +3 -3
- package/esm2020/gesdem/gesdem-event.service.mjs +3 -3
- package/esm2020/gesdem/gesdem-handler.service.mjs +3 -3
- package/esm2020/gesdem/gesdem-loader.guard.mjs +3 -3
- package/esm2020/gesdem-action-recovery/gesdem-action-recovery-login/gesdem-action-recovery-login.component.mjs +3 -3
- package/esm2020/gesdem-action-recovery/gesdem-action-recovery-registration/gesdem-action-recovery-registration.component.mjs +3 -3
- package/esm2020/gesdem-action-recovery/gesdem-action-recovery.module.mjs +4 -4
- package/esm2020/gesdem-action-recovery/gesdem-action-recovery.service.mjs +3 -3
- package/esm2020/gesdem-confirmation/gesdem-confirmation.component.mjs +3 -3
- package/esm2020/gesdem-confirmation/gesdem-confirmation.module.mjs +4 -4
- package/esm2020/gesdem-error/gesdem-error.component.mjs +3 -3
- package/esm2020/gesdem-error/gesdem-error.module.mjs +4 -4
- package/esm2020/pipes/currency.pipe.mjs +3 -3
- package/esm2020/pipes/date.pipe.mjs +3 -3
- package/esm2020/pipes/formatIde.pipe.mjs +3 -3
- package/esm2020/pipes/pipes.module.mjs +4 -4
- package/esm2020/prestations-ng-core.module.mjs +4 -4
- package/esm2020/sdk-appinfo/application-info.service.mjs +3 -3
- package/esm2020/sdk-currency/currency.helper.mjs +3 -3
- package/esm2020/sdk-date/date.helper.mjs +3 -3
- package/esm2020/sdk-dictionary/sdk-dictionary.module.mjs +4 -4
- package/esm2020/sdk-dictionary/sdk-dictionary.pipe.mjs +3 -3
- package/esm2020/sdk-dictionary/sdk-dictionary.service.mjs +3 -3
- package/esm2020/sdk-epayment/sdk-epayment.component.mjs +3 -3
- package/esm2020/sdk-epayment/sdk-epayment.module.mjs +4 -4
- package/esm2020/sdk-epayment/sdk-epayment.service.mjs +3 -3
- package/esm2020/sdk-recaptcha/grecaptcha/grecaptcha.component.mjs +3 -3
- package/esm2020/sdk-recaptcha/recaptcha.service.mjs +3 -3
- package/esm2020/sdk-recaptcha/sdk-recaptcha.component.mjs +3 -3
- package/esm2020/sdk-recaptcha/sdk-recaptcha.module.mjs +4 -4
- package/esm2020/sdk-redirect/iam-expired-interceptor.service.mjs +3 -3
- package/esm2020/sdk-redirect/redirect.component.mjs +3 -3
- package/esm2020/sdk-redirect/sdk-redirect.module.mjs +4 -4
- package/esm2020/sdk-session-info/session-info-with-application.service.mjs +3 -3
- package/esm2020/sdk-session-info/session-info.service.mjs +3 -3
- package/esm2020/sdk-statistics/sdk-statistics.service.mjs +3 -3
- package/esm2020/sdk-support-alert/support-alert-container.component.mjs +3 -3
- package/esm2020/sdk-support-alert/support-alert.component.mjs +3 -3
- package/esm2020/sdk-support-alert/support-alert.module.mjs +4 -4
- package/esm2020/sdk-support-alert/support-alert.service.mjs +3 -3
- package/esm2020/supported-browser.mjs +2 -2
- package/esm2020/validation/validation-handler.service.mjs +3 -3
- package/fesm2015/dsivd-prestations-ng.mjs +608 -608
- package/fesm2015/dsivd-prestations-ng.mjs.map +1 -1
- package/fesm2020/dsivd-prestations-ng.mjs +608 -608
- package/fesm2020/dsivd-prestations-ng.mjs.map +1 -1
- package/package.json +4 -1
- package/dsivd-prestations-ng-v16.0.0-beta3.tgz +0 -0
package/UPGRADING_V16.md
CHANGED
|
@@ -1,13 +1,82 @@
|
|
|
1
|
-
# Upgrading from v15 to v16
|
|
1
|
+
# PRESTAKIT : Upgrading from v15 to v16
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
to `^15.1.1`.
|
|
3
|
+
## PRESTATIONS-NG
|
|
5
4
|
|
|
6
|
-
|
|
5
|
+
The main feature in `prestations-ng` v16 is the update of the `@angular/*` peer dependencies
|
|
6
|
+
to `^15.1.1` and using `node 16+` to build.
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
### Migrating to ESLint
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
Follow [our migration guide](ESLINT_MIGRATION_GUIDE.md) to migrate your project from TSLint to ESLint
|
|
11
|
+
|
|
12
|
+
### Running with node 16+
|
|
13
|
+
#### Switch to node 16+
|
|
14
|
+
##### If you are using our `slave-apps`
|
|
15
|
+
|
|
16
|
+
Be sure to update your `slave-apps` git repository and then execute
|
|
17
|
+
```bash
|
|
18
|
+
node16
|
|
19
|
+
```
|
|
20
|
+
which should switch your node version to 16+
|
|
21
|
+
|
|
22
|
+
##### If you are NOT using our `slave-apps`
|
|
23
|
+
|
|
24
|
+
Be sure to use a node version 16+. To check your version, type the following command
|
|
25
|
+
```bash
|
|
26
|
+
node --version
|
|
27
|
+
```
|
|
28
|
+
which should print out a version 16+ otherwise, install a node 16+
|
|
29
|
+
|
|
30
|
+
#### In your project
|
|
31
|
+
|
|
32
|
+
Update your `package.json` to specify node engine
|
|
33
|
+
```json
|
|
34
|
+
{
|
|
35
|
+
"engines": {
|
|
36
|
+
"node": ">=16.15.0"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
#### In your build
|
|
42
|
+
|
|
43
|
+
Open your `jenkins` folder and update your jenkins files
|
|
44
|
+
Define a variable if it does not already exist and add `nodeVersion: 16` then pass it on to the build
|
|
45
|
+
|
|
46
|
+
##### UT folder
|
|
47
|
+
```groovy
|
|
48
|
+
def args = [
|
|
49
|
+
nodeVersion: 16
|
|
50
|
+
]
|
|
51
|
+
|
|
52
|
+
stage('Build pipeline') {
|
|
53
|
+
buildPipeline(args)
|
|
54
|
+
}
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
##### devex > snap folder
|
|
58
|
+
```groovy
|
|
59
|
+
def buildArgs = [
|
|
60
|
+
nodeVersion : 16
|
|
61
|
+
]
|
|
62
|
+
|
|
63
|
+
stage('Snap2Devex Skeleton') {
|
|
64
|
+
snap2Devex(buildArgs)
|
|
65
|
+
}
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
##### devex > stable folder
|
|
69
|
+
```groovy
|
|
70
|
+
def args = [
|
|
71
|
+
nodeVersion : 16
|
|
72
|
+
]
|
|
73
|
+
|
|
74
|
+
stage('Stable2Devex') {
|
|
75
|
+
stable2Devex(args)
|
|
76
|
+
}
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### Updating Angular
|
|
11
80
|
|
|
12
81
|
`prestations-ng` v16+ now supports Angular 15. You can follow the Angular update guide
|
|
13
82
|
at this address:
|
|
@@ -15,7 +84,7 @@ at this address:
|
|
|
15
84
|
- [https://update.angular.io/?l=3&v=13.0-14.0](https://update.angular.io/?l=3&v=13.0-14.0)
|
|
16
85
|
- [https://update.angular.io/?l=3&v=14.0-15.0](https://update.angular.io/?l=3&v=14.0-15.0)
|
|
17
86
|
|
|
18
|
-
|
|
87
|
+
#### When having migrated to ESLint
|
|
19
88
|
```bash
|
|
20
89
|
yarn global add @angular/cli@14
|
|
21
90
|
ng update @angular/core@14 @angular/cli@14
|
|
@@ -41,7 +110,7 @@ yarn add eslint-import-resolver-typescript --dev
|
|
|
41
110
|
yarn upgrade
|
|
42
111
|
```
|
|
43
112
|
|
|
44
|
-
|
|
113
|
+
### Update "package.json" file to replace tilde(~) by caret(^) on following dependencies to be aligned with prestations-ng library
|
|
45
114
|
|
|
46
115
|
- core-js
|
|
47
116
|
- dayjs
|
|
@@ -50,65 +119,26 @@ yarn upgrade
|
|
|
50
119
|
- rxjs
|
|
51
120
|
- zone.js
|
|
52
121
|
|
|
53
|
-
Then run
|
|
54
|
-
|
|
122
|
+
Then run
|
|
55
123
|
```bash
|
|
56
124
|
yarn install
|
|
57
125
|
```
|
|
58
126
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
Replace your current `.eslintrc.json file` by the one found in [ESLINT_MIGRATION.GUIDE](ESLINT_MIGRATION_GUIDE.md#customizing_eslint__inspired_from_otia_and_prestations-ng_s_files_for_rules_)
|
|
62
|
-
|
|
63
|
-
## Use node 16 for your build
|
|
64
|
-
|
|
65
|
-
Open your `jenkins` folder and update your jenkins files
|
|
66
|
-
Define a variable if it does not already exist and add `nodeVersion: 16` then pass it on to the build
|
|
67
|
-
|
|
68
|
-
### UT folder
|
|
69
|
-
```groovy
|
|
70
|
-
def args = [
|
|
71
|
-
nodeVersion: 16
|
|
72
|
-
]
|
|
73
|
-
|
|
74
|
-
stage('Build pipeline') {
|
|
75
|
-
buildPipeline(args)
|
|
76
|
-
}
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
### devex > snap folder
|
|
80
|
-
```groovy
|
|
81
|
-
def buildArgs = [
|
|
82
|
-
nodeVersion : 16
|
|
83
|
-
]
|
|
84
|
-
|
|
85
|
-
stage('Snap2Devex Skeleton') {
|
|
86
|
-
snap2Devex(buildArgs)
|
|
87
|
-
}
|
|
88
|
-
```
|
|
127
|
+
### Update ".eslintrc.json" file if your project was already migrated to ESLint
|
|
89
128
|
|
|
90
|
-
|
|
91
|
-
```groovy
|
|
92
|
-
def args = [
|
|
93
|
-
nodeVersion : 16
|
|
94
|
-
]
|
|
95
|
-
|
|
96
|
-
stage('Stable2Devex') {
|
|
97
|
-
stable2Devex(args)
|
|
98
|
-
}
|
|
99
|
-
```
|
|
129
|
+
Replace your current `.eslintrc.json` file by the one found in [ESLINT_MIGRATION.GUIDE](ESLINT_MIGRATION_GUIDE.md#customizing_eslint__inspired_from_otia_and_prestations-ng_s_files_for_rules_)
|
|
100
130
|
|
|
101
|
-
|
|
131
|
+
### Cleanup your project due to CLI improvements
|
|
102
132
|
|
|
103
133
|
See section "CLI improvements" in angular's blog (https://blog.angular.io/angular-v15-is-now-available-df7be7f2f4c8)
|
|
104
134
|
|
|
105
|
-
|
|
135
|
+
#### Remove files/folder from your project
|
|
106
136
|
|
|
107
137
|
- delete `polyfills.ts` file
|
|
108
138
|
- delete `test.ts` file
|
|
109
139
|
- delete `environments` folder
|
|
110
140
|
|
|
111
|
-
|
|
141
|
+
#### Update your `angular.json` file
|
|
112
142
|
```diff
|
|
113
143
|
{
|
|
114
144
|
"projects": {
|
|
@@ -147,7 +177,7 @@ See section "CLI improvements" in angular's blog (https://blog.angular.io/angula
|
|
|
147
177
|
}
|
|
148
178
|
}
|
|
149
179
|
```
|
|
150
|
-
|
|
180
|
+
#### Update your `tsconfig.app.json` file
|
|
151
181
|
```diff
|
|
152
182
|
{
|
|
153
183
|
"files": [
|
|
@@ -157,7 +187,7 @@ See section "CLI improvements" in angular's blog (https://blog.angular.io/angula
|
|
|
157
187
|
}
|
|
158
188
|
```
|
|
159
189
|
|
|
160
|
-
|
|
190
|
+
#### Update your `tsconfig.spec.json` file
|
|
161
191
|
```diff
|
|
162
192
|
{
|
|
163
193
|
- "files": [
|
|
@@ -167,7 +197,7 @@ See section "CLI improvements" in angular's blog (https://blog.angular.io/angula
|
|
|
167
197
|
}
|
|
168
198
|
```
|
|
169
199
|
|
|
170
|
-
|
|
200
|
+
### Update `allowedCommonJsDependencies` in your `angular.json` file to add `dayjs`
|
|
171
201
|
|
|
172
202
|
```diff
|
|
173
203
|
{
|
|
@@ -191,9 +221,9 @@ See section "CLI improvements" in angular's blog (https://blog.angular.io/angula
|
|
|
191
221
|
}
|
|
192
222
|
```
|
|
193
223
|
|
|
194
|
-
|
|
224
|
+
### Deprecated features
|
|
195
225
|
|
|
196
|
-
|
|
226
|
+
#### All components extending FoehnCheckableGroupComponent such as foehn-autocomplete, foehn-checkbox, foehn-radio, foehn-select or your custom components
|
|
197
227
|
|
|
198
228
|
Removed `@Input() allElementDisabled`. Now managed by setting `@Input() disabled`.
|
|
199
229
|
|
|
@@ -205,3 +235,64 @@ Removed `@Input() allElementDisabled`. Now managed by setting `@Input() disabled
|
|
|
205
235
|
```html
|
|
206
236
|
<foehn-radio [disabled]="true"></foehn-radio>
|
|
207
237
|
```
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
## PRESTATIONS-BE
|
|
241
|
+
|
|
242
|
+
### Library upgrade
|
|
243
|
+
|
|
244
|
+
see https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.7-Release-Notes#upgrading-from-spring-boot-26
|
|
245
|
+
|
|
246
|
+
if you're using `org.springframework.boot.spring-boot-starter-parent` :
|
|
247
|
+
```diff
|
|
248
|
+
<parent>
|
|
249
|
+
<groupId>org.springframework.boot</groupId>
|
|
250
|
+
<artifactId>spring-boot-starter-parent</artifactId>
|
|
251
|
+
- <version>2.6.x</version>
|
|
252
|
+
+ <version>2.7.x</version>
|
|
253
|
+
<relativePath />
|
|
254
|
+
</parent>
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
```diff
|
|
258
|
+
- <prestations-be.version>15.x.x</prestations-be.version>
|
|
259
|
+
+ <prestations-be.version>16.x.x</prestations-be.version>
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
if you're using `ch.vd.cyber.parent.application-parent
|
|
264
|
+
```diff
|
|
265
|
+
<parent>
|
|
266
|
+
<groupId>ch.vd.cyber.parent</groupId>
|
|
267
|
+
<artifactId>application-parent</artifactId>
|
|
268
|
+
- <version>11.x.x</version>
|
|
269
|
+
+ <version>12.x.x</version>
|
|
270
|
+
<relativePath/>
|
|
271
|
+
</parent>
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
### WebServiceProperties
|
|
275
|
+
You should migrate your technical user (`webservice.username`) to a MiZo generated user.
|
|
276
|
+
Ask your **Intégrateur référent** if you're not sure.
|
|
277
|
+
|
|
278
|
+
### Ref-inf
|
|
279
|
+
|
|
280
|
+
When using refinf :
|
|
281
|
+
```diff
|
|
282
|
+
- refinf.baseUrl=https://int-esgate.vd.ch/refinf-rf/v5
|
|
283
|
+
+ cyber-cache.base-url=https://int-esgate.vd.ch/cybercache-in
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
When not using refinf (and SdkConfig.class is imported)
|
|
287
|
+
```diff
|
|
288
|
+
- refinf.configuration.enabled=false
|
|
289
|
+
+ cyber-cache.configuration.enabled=false
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
### DocumentProperties
|
|
293
|
+
if you're having one or more uploader, you have to define the max size for a file on each uploader in your `application.properties` :
|
|
294
|
+
i.e. `document.file-max-size-by-form-key.identityCard=5MB`
|
|
295
|
+
|
|
296
|
+
### Verification page
|
|
297
|
+
When possible, the verification page should use the same data as the confirmation PDF
|
|
298
|
+
see example in skeleton : https://dsigit.etat-de-vaud.ch/outils/git/projects/CYBSDK/repos/skeleton/browse/front/src/app/verification-page
|
|
Binary file
|
|
@@ -212,9 +212,9 @@ export class AbstractPageComponent {
|
|
|
212
212
|
window.scrollTo(0, 0);
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
|
-
AbstractPageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.
|
|
216
|
-
AbstractPageComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.
|
|
217
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.
|
|
215
|
+
AbstractPageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AbstractPageComponent, deps: [{ token: i1.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Directive });
|
|
216
|
+
AbstractPageComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.4", type: AbstractPageComponent, viewQueries: [{ propertyName: "foehnFormComponent", first: true, predicate: FoehnFormComponent, descendants: true, static: true }], ngImport: i0 });
|
|
217
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: AbstractPageComponent, decorators: [{
|
|
218
218
|
type: Directive
|
|
219
219
|
}], ctorParameters: function () { return [{ type: i1.ActivatedRoute }]; }, propDecorators: { foehnFormComponent: [{
|
|
220
220
|
type: ViewChild,
|
|
@@ -125,9 +125,9 @@ export class NumberCurrencyFormatterDirective {
|
|
|
125
125
|
this.host.model.toString() !== newValueWithoutFormatting);
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
|
-
NumberCurrencyFormatterDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.
|
|
129
|
-
NumberCurrencyFormatterDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.
|
|
130
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.
|
|
128
|
+
NumberCurrencyFormatterDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: NumberCurrencyFormatterDirective, deps: [{ token: i1.FoehnInputNumberComponent }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
|
|
129
|
+
NumberCurrencyFormatterDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.4", type: NumberCurrencyFormatterDirective, selector: "[numberCurrencyFormatter]", host: { listeners: { "blur": "onBlur($event.target.value)", "focus": "onFocus($event.target.value)", "modelChange": "onModelChange($event)" } }, ngImport: i0 });
|
|
130
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: NumberCurrencyFormatterDirective, decorators: [{
|
|
131
131
|
type: Directive,
|
|
132
132
|
args: [{ selector: '[numberCurrencyFormatter]' }]
|
|
133
133
|
}], ctorParameters: function () { return [{ type: i1.FoehnInputNumberComponent }, { type: i0.NgZone }]; }, propDecorators: { onBlur: [{
|
|
@@ -7,16 +7,16 @@ import { NDCFormatterDirective } from './ndc-formatter.directive';
|
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export class FormatterModule {
|
|
9
9
|
}
|
|
10
|
-
FormatterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.
|
|
11
|
-
FormatterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.
|
|
10
|
+
FormatterModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: FormatterModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
11
|
+
FormatterModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.4", ngImport: i0, type: FormatterModule, declarations: [NDCFormatterDirective,
|
|
12
12
|
NumberCurrencyFormatterDirective,
|
|
13
13
|
IdeFormatterDirective,
|
|
14
14
|
IbanFormatterDirective], imports: [FoehnInputModule], exports: [NDCFormatterDirective,
|
|
15
15
|
NumberCurrencyFormatterDirective,
|
|
16
16
|
IdeFormatterDirective,
|
|
17
17
|
IbanFormatterDirective] });
|
|
18
|
-
FormatterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.
|
|
19
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.
|
|
18
|
+
FormatterModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: FormatterModule, imports: [FoehnInputModule] });
|
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: FormatterModule, decorators: [{
|
|
20
20
|
type: NgModule,
|
|
21
21
|
args: [{
|
|
22
22
|
imports: [FoehnInputModule],
|
|
@@ -17,9 +17,9 @@ export class IbanFormatterDirective {
|
|
|
17
17
|
return iban.printFormat(value, ' ');
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
IbanFormatterDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.
|
|
21
|
-
IbanFormatterDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.
|
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.
|
|
20
|
+
IbanFormatterDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: IbanFormatterDirective, deps: [{ token: i1.FoehnInputTextComponent }], target: i0.ɵɵFactoryTarget.Directive });
|
|
21
|
+
IbanFormatterDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.4", type: IbanFormatterDirective, selector: "[ibanFormatter]", host: { listeners: { "blur": "onBlur($event.target.value)" } }, ngImport: i0 });
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: IbanFormatterDirective, decorators: [{
|
|
23
23
|
type: Directive,
|
|
24
24
|
args: [{ selector: '[ibanFormatter]' }]
|
|
25
25
|
}], ctorParameters: function () { return [{ type: i1.FoehnInputTextComponent }]; }, propDecorators: { onBlur: [{
|
|
@@ -26,9 +26,9 @@ export class IdeFormatterDirective {
|
|
|
26
26
|
return trimmedValue.replace(new RegExp(IDE_PATTERN, 'g'), 'CHE-$1.$2.$3');
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
IdeFormatterDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.
|
|
30
|
-
IdeFormatterDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.
|
|
29
|
+
IdeFormatterDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: IdeFormatterDirective, deps: [{ token: i1.FoehnInputTextComponent }], target: i0.ɵɵFactoryTarget.Directive });
|
|
30
|
+
IdeFormatterDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.4", type: IdeFormatterDirective, selector: "[ideFormatter]", host: { listeners: { "blur": "onBlur($event.target.value)" } }, ngImport: i0 });
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: IdeFormatterDirective, decorators: [{
|
|
32
32
|
type: Directive,
|
|
33
33
|
args: [{ selector: '[ideFormatter]' }]
|
|
34
34
|
}], ctorParameters: function () { return [{ type: i1.FoehnInputTextComponent }]; }, propDecorators: { onBlur: [{
|
|
@@ -64,9 +64,9 @@ export class NDCFormatterDirective {
|
|
|
64
64
|
return digits.replace(new RegExp(NO_CONTRIB_PATTERN_WITH_TWO_DOTS, 'g'), '$1.$2.$3');
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
NDCFormatterDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.
|
|
68
|
-
NDCFormatterDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.
|
|
69
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.
|
|
67
|
+
NDCFormatterDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: NDCFormatterDirective, deps: [{ token: i1.FoehnInputTextComponent }], target: i0.ɵɵFactoryTarget.Directive });
|
|
68
|
+
NDCFormatterDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.4", type: NDCFormatterDirective, selector: "[ndcFormatter]", host: { listeners: { "blur": "onBlur($event.target.value)" } }, ngImport: i0 });
|
|
69
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: NDCFormatterDirective, decorators: [{
|
|
70
70
|
type: Directive,
|
|
71
71
|
args: [{ selector: '[ndcFormatter]' }]
|
|
72
72
|
}], ctorParameters: function () { return [{ type: i1.FoehnInputTextComponent }]; }, propDecorators: { onBlur: [{
|
|
@@ -11,8 +11,8 @@ import { FoehnInputForeignStreetComponent } from './foehn-input-foreign-street.c
|
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
export class FoehnAddressModule {
|
|
13
13
|
}
|
|
14
|
-
FoehnAddressModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.
|
|
15
|
-
FoehnAddressModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.
|
|
14
|
+
FoehnAddressModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: FoehnAddressModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
15
|
+
FoehnAddressModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.4", ngImport: i0, type: FoehnAddressModule, declarations: [FoehnInputAddressComponent,
|
|
16
16
|
FoehnDisplayAddressComponent,
|
|
17
17
|
FoehnInputForeignLocalityComponent,
|
|
18
18
|
FoehnInputForeignStreetComponent], imports: [CommonModule,
|
|
@@ -23,12 +23,12 @@ FoehnAddressModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", vers
|
|
|
23
23
|
FoehnDisplayAddressComponent,
|
|
24
24
|
FoehnInputForeignLocalityComponent,
|
|
25
25
|
FoehnInputForeignStreetComponent] });
|
|
26
|
-
FoehnAddressModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.
|
|
26
|
+
FoehnAddressModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: FoehnAddressModule, imports: [CommonModule,
|
|
27
27
|
SdkDictionaryModule,
|
|
28
28
|
FoehnAutocompleteModule,
|
|
29
29
|
FoehnInputModule,
|
|
30
30
|
FoehnValidationAlertsModule] });
|
|
31
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: FoehnAddressModule, decorators: [{
|
|
32
32
|
type: NgModule,
|
|
33
33
|
args: [{
|
|
34
34
|
imports: [
|
|
@@ -59,9 +59,9 @@ export class FoehnDisplayAddressComponent {
|
|
|
59
59
|
return lines;
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
FoehnDisplayAddressComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.
|
|
63
|
-
FoehnDisplayAddressComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.
|
|
64
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.
|
|
62
|
+
FoehnDisplayAddressComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: FoehnDisplayAddressComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
63
|
+
FoehnDisplayAddressComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: FoehnDisplayAddressComponent, selector: "foehn-display-address", inputs: { address: "address" }, ngImport: i0, template: "<address class=\"foehn-address\" *ngIf=\"address\">\n <div *ngFor=\"let addressLine of getLines(address)\">{{ addressLine }}</div>\n</address>\n", styles: [".foehn-address{margin:0;padding:0}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
64
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: FoehnDisplayAddressComponent, decorators: [{
|
|
65
65
|
type: Component,
|
|
66
66
|
args: [{ selector: 'foehn-display-address', template: "<address class=\"foehn-address\" *ngIf=\"address\">\n <div *ngFor=\"let addressLine of getLines(address)\">{{ addressLine }}</div>\n</address>\n", styles: [".foehn-address{margin:0;padding:0}\n"] }]
|
|
67
67
|
}], propDecorators: { address: [{
|
|
@@ -338,15 +338,15 @@ export class FoehnInputAddressComponent extends FoehnInputComponent {
|
|
|
338
338
|
this.isEmpty(this.addressLine2));
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
|
-
FoehnInputAddressComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.
|
|
342
|
-
FoehnInputAddressComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.
|
|
341
|
+
FoehnInputAddressComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: FoehnInputAddressComponent, deps: [{ token: i1.HttpClient }, { token: i0.NgZone }, { token: i2.SdkDictionaryService }], target: i0.ɵɵFactoryTarget.Component });
|
|
342
|
+
FoehnInputAddressComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: FoehnInputAddressComponent, selector: "foehn-input-address", inputs: { countriesUrl: "countriesUrl", isOnlySwiss: "isOnlySwiss", showPostOfficeBoxText: "showPostOfficeBoxText", showAdressLines: "showAdressLines", showAdressLine1: "showAdressLine1", showAdressLine2: "showAdressLine2", specifiedCanton: "specifiedCanton", countryRequired: "countryRequired", swissNpaLocalityRequired: "swissNpaLocalityRequired", streetRequired: "streetRequired", streetNumberRequired: "streetNumberRequired", foreignZipCodeRequired: "foreignZipCodeRequired", foreignLocalityRequired: "foreignLocalityRequired", foreignStreetRequired: "foreignStreetRequired", foreignStreetNumberRequired: "foreignStreetNumberRequired", postOfficeBoxTextRequired: "postOfficeBoxTextRequired", addressLine1Required: "addressLine1Required", addressLine2Required: "addressLine2Required", withCompanyLocalities: "withCompanyLocalities" }, providers: [
|
|
343
343
|
{
|
|
344
344
|
provide: FoehnInputComponent,
|
|
345
345
|
useExisting: forwardRef(() => FoehnInputAddressComponent),
|
|
346
346
|
multi: true
|
|
347
347
|
}
|
|
348
348
|
], viewQueries: [{ propertyName: "foreignLocalityComponent", first: true, predicate: FoehnInputForeignLocalityComponent, descendants: true }, { propertyName: "foreignStreetComponent", first: true, predicate: FoehnInputForeignStreetComponent, descendants: true }, { propertyName: "foreignHouseNumber", first: true, predicate: ["foreignHouseNumber"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div\n [attr.id]=\"buildId() + 'Container'\"\n class=\"form-group\"\n [class.has-danger]=\"hasErrorsToDisplay()\"\n [class.vd-form-group-danger]=\"hasErrorsToDisplay()\"\n [tabIndex]=\"-1\"\n>\n <fieldset\n class=\"mb-3\"\n [attr.aria-describedby]=\"getDescribedBy()\"\n [attr.aria-invalid]=\"hasErrorsToDisplay() || null\"\n >\n <legend *ngIf=\"!!label\" [ngClass]=\"isLabelSrOnly ? 'sr-only' : 'vd-p'\">\n <span [innerHTML]=\"label\"></span>\n <span\n *ngIf=\"!required && !hideNotRequiredExtraLabel\"\n aria-hidden=\"true\"\n >\n {{ 'foehn-input.optional' | fromDictionary }}\n </span>\n </legend>\n\n <foehn-validation-alerts [component]=\"this\"></foehn-validation-alerts>\n\n <small\n *ngIf=\"helpText\"\n [attr.id]=\"buildId() + 'Help'\"\n class=\"text-secondary\"\n [innerHTML]=\"helpText\"\n ></small>\n\n <ng-content></ng-content>\n\n <foehn-autocomplete\n *ngIf=\"!isOnlySwiss\"\n [label]=\"'foehn-input-address.country.label' | fromDictionary\"\n [elements]=\"countries | async\"\n elementLabel=\"shortNameFr\"\n [elementValue]=\"identity\"\n [elementValueIdentity]=\"countryIdentity\"\n (modelChange)=\"countryUpdated($event)\"\n (userInput)=\"userInputCountry()\"\n [model]=\"country\"\n [name]=\"name + '.country'\"\n [required]=\"countryRequired\"\n [disabled]=\"disabled\"\n ></foehn-autocomplete>\n\n <ng-container *ngIf=\"isSwiss()\">\n <foehn-autocomplete\n [label]=\"'foehn-input-address.locality.label' | fromDictionary\"\n [elements]=\"localities | async\"\n [elementLabel]=\"getLocalityDisplayedName\"\n [elementValue]=\"identity\"\n [elementValueIdentity]=\"localityIdentity\"\n (modelChange)=\"localityUpdated($event)\"\n (userInput)=\"userInputLocality($event)\"\n [model]=\"locality\"\n [name]=\"name + '.locality'\"\n [allowCustomValue]=\"disabled\"\n [required]=\"swissNpaLocalityRequired\"\n [disabled]=\"!country || disabled\"\n ></foehn-autocomplete>\n\n <foehn-autocomplete\n [label]=\"'foehn-input-address.street.label' | fromDictionary\"\n [elements]=\"streets | async\"\n elementLabel=\"longName\"\n [elementValue]=\"identity\"\n [elementValueIdentity]=\"streetIdentity\"\n (modelChange)=\"streetUpdated($event)\"\n [model]=\"street\"\n [name]=\"name + '.street'\"\n [allowCustomValue]=\"true\"\n [customValueModelGenerator]=\"streetGenerator\"\n [required]=\"isStreetRequired()\"\n [helpText]=\"\n 'foehn-input-address.street.help-text' | fromDictionary\n \"\n [customErrors]=\"streetCustomErrors\"\n (userInput)=\"userInputStreet($event)\"\n [disabled]=\"!country || disabled\"\n ></foehn-autocomplete>\n\n <foehn-autocomplete\n [label]=\"\n 'foehn-input-address.houseNumber.label' | fromDictionary\n \"\n [elements]=\"streetNumbers | async\"\n elementLabel=\"name\"\n elementValue=\"name\"\n [(model)]=\"houseNumber\"\n [name]=\"name + '.houseNumber'\"\n [allowCustomValue]=\"true\"\n [helpText]=\"\n 'foehn-input-address.houseNumber.help-text' | fromDictionary\n \"\n (modelChange)=\"updateAddress()\"\n (userInput)=\"handleUserInput()\"\n [required]=\"streetNumberRequired\"\n [disabled]=\"!country || disabled\"\n ></foehn-autocomplete>\n </ng-container>\n\n <ng-container *ngIf=\"!isSwiss()\">\n <!--\n Component <foehn-input-foreign-locality> is special because we use the same model when swiss or foreigner.\n To do so, we need:\n - Errors will be bind on 'locality' when NULL or on 'zipCode' and 'longName' model inside component when EMPTY\n - Hide label from component because we need label from children to be displayed (isLabelSrOnly: true)\n - required and disabled params are transmitted to children\n -->\n <foehn-input-foreign-locality\n [label]=\"'foehn-input-address.locality.label' | fromDictionary\"\n [name]=\"name + '.locality'\"\n [(model)]=\"locality\"\n [zipCodeRequired]=\"foreignZipCodeRequired\"\n [localityRequired]=\"foreignLocalityRequired\"\n [isLabelSrOnly]=\"true\"\n [disabled]=\"!country || disabled\"\n (modelChange)=\"updateAddress()\"\n (userInput)=\"handleUserInput()\"\n ></foehn-input-foreign-locality>\n <!--\n Component <foehn-input-foreign-street> is special because we use the same model when swiss or foreigner.\n To do so, we need:\n - Errors will be bind on 'street' when NULL or on 'longName' model inside component when EMPTY\n - required, helpText, isLabelSrOnly and disabled params are transmitted to children\n -->\n <foehn-input-foreign-street\n [label]=\"'foehn-input-address.street.label' | fromDictionary\"\n [name]=\"name + '.street'\"\n [(model)]=\"street\"\n [required]=\"isForeignStreetRequired()\"\n [helpText]=\"\n 'foehn-input-address.street.help-text' | fromDictionary\n \"\n [customErrors]=\"streetCustomErrors\"\n [disabled]=\"!country || disabled\"\n (modelChange)=\"updateAddress()\"\n (userInput)=\"handleUserInput()\"\n ></foehn-input-foreign-street>\n\n <foehn-input-text\n #foreignHouseNumber\n [label]=\"\n 'foehn-input-address.houseNumber.label' | fromDictionary\n \"\n [name]=\"name + '.houseNumber'\"\n [(model)]=\"houseNumber\"\n [helpText]=\"\n 'foehn-input-address.houseNumber.help-text' | fromDictionary\n \"\n [disabled]=\"!country || disabled\"\n (modelChange)=\"updateAddress()\"\n (userInput)=\"handleUserInput()\"\n [required]=\"foreignStreetNumberRequired\"\n ></foehn-input-text>\n </ng-container>\n\n <foehn-input-text\n *ngIf=\"showPostOfficeBoxText\"\n [(model)]=\"postOfficeBoxText\"\n [helpText]=\"\n 'foehn-input-address.postOfficeBoxText.help-text'\n | fromDictionary\n \"\n [label]=\"\n 'foehn-input-address.postOfficeBoxText.label' | fromDictionary\n \"\n [name]=\"name + '.postOfficeBoxText'\"\n (modelChange)=\"updateAddress()\"\n (userInput)=\"handleUserInput()\"\n [required]=\"isPostOfficeBoxTextRequired()\"\n [disabled]=\"disabled\"\n ></foehn-input-text>\n\n <foehn-input-text\n *ngIf=\"showAdressLines && showAdressLine1\"\n [(model)]=\"addressLine1\"\n [label]=\"'foehn-input-address.addressLine1.label' | fromDictionary\"\n [name]=\"name + '.addressLine1'\"\n (modelChange)=\"updateAddress()\"\n (userInput)=\"handleUserInput()\"\n [required]=\"addressLine1Required\"\n [autocomplete]=\"'address-line2'\"\n [disabled]=\"disabled\"\n ></foehn-input-text>\n\n <foehn-input-text\n *ngIf=\"showAdressLines && showAdressLine2\"\n [(model)]=\"addressLine2\"\n [label]=\"'foehn-input-address.addressLine2.label' | fromDictionary\"\n [name]=\"name + '.addressLine2'\"\n (modelChange)=\"updateAddress()\"\n (userInput)=\"handleUserInput()\"\n [required]=\"addressLine2Required\"\n [autocomplete]=\"'address-line3'\"\n [disabled]=\"disabled\"\n ></foehn-input-text>\n </fieldset>\n</div>\n", dependencies: [{ kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4.FoehnAutocompleteComponent, selector: "foehn-autocomplete", inputs: ["searchValueMinCharsCount", "allowCustomValue", "customValueModelGenerator", "itemHeightInSuggestionListInPx", "elementSuggestionLabel", "caseSensitiveSearch", "disabled"] }, { kind: "component", type: i5.FoehnInputTextComponent, selector: "foehn-input-text", inputs: ["numberOnly"] }, { kind: "component", type: i6.FoehnValidationAlertsComponent, selector: "foehn-validation-alerts", inputs: ["component", "shouldErrorsBeLive"] }, { kind: "component", type: i7.FoehnInputForeignLocalityComponent, selector: "foehn-input-foreign-locality", inputs: ["localityRequired", "zipCodeRequired"] }, { kind: "component", type: i8.FoehnInputForeignStreetComponent, selector: "foehn-input-foreign-street" }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: i9.SdkDictionaryPipe, name: "fromDictionary" }] });
|
|
349
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.
|
|
349
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: FoehnInputAddressComponent, decorators: [{
|
|
350
350
|
type: Component,
|
|
351
351
|
args: [{ selector: 'foehn-input-address', providers: [
|
|
352
352
|
{
|
|
@@ -41,15 +41,15 @@ export class FoehnInputForeignLocalityComponent extends FoehnInputComponent {
|
|
|
41
41
|
return { zipCode: this.zipCode, longName: this.longName };
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
FoehnInputForeignLocalityComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.
|
|
45
|
-
FoehnInputForeignLocalityComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.
|
|
44
|
+
FoehnInputForeignLocalityComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: FoehnInputForeignLocalityComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
45
|
+
FoehnInputForeignLocalityComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: FoehnInputForeignLocalityComponent, selector: "foehn-input-foreign-locality", inputs: { localityRequired: "localityRequired", zipCodeRequired: "zipCodeRequired" }, providers: [
|
|
46
46
|
{
|
|
47
47
|
provide: FoehnInputComponent,
|
|
48
48
|
useExisting: forwardRef(() => FoehnInputForeignLocalityComponent),
|
|
49
49
|
multi: true
|
|
50
50
|
}
|
|
51
51
|
], usesInheritance: true, ngImport: i0, template: "<div\n class=\"form-group\"\n [class.has-danger]=\"hasErrorsToDisplay()\"\n [class.vd-form-group-danger]=\"hasErrorsToDisplay()\"\n [attr.id]=\"buildId('Container')\"\n tabindex=\"-1\"\n>\n <fieldset\n [attr.aria-describedby]=\"getDescribedBy()\"\n [attr.aria-invalid]=\"hasErrorsToDisplay() || null\"\n >\n <legend *ngIf=\"!!label\" [ngClass]=\"isLabelSrOnly ? 'sr-only' : 'vd-p'\">\n <span [innerHTML]=\"label\"></span>\n <span\n *ngIf=\"!isRequired() && !hideNotRequiredExtraLabel\"\n aria-hidden=\"true\"\n >\n {{ 'foehn-input.optional' | fromDictionary }}\n </span>\n </legend>\n\n <foehn-validation-alerts [component]=\"this\"></foehn-validation-alerts>\n\n <small\n *ngIf=\"helpText\"\n [attr.id]=\"buildId() + 'Help'\"\n class=\"text-secondary\"\n [innerHTML]=\"helpText\"\n ></small>\n\n <ng-content></ng-content>\n\n <foehn-input-text\n [name]=\"name + '.zipCode'\"\n [label]=\"\n 'foehn-input-foreign-locality.zipCode.label' | fromDictionary\n \"\n [(model)]=\"zipCode\"\n (modelChange)=\"updateLocality()\"\n [required]=\"zipCodeRequired\"\n (userInput)=\"handleUserInput()\"\n [disabled]=\"disabled\"\n [autocomplete]=\"'postal-code'\"\n [isErrorInherited]=\"hasErrorsToDisplay()\"\n ></foehn-input-text>\n\n <foehn-input-text\n [name]=\"name + '.longName'\"\n [label]=\"\n 'foehn-input-foreign-locality.locality.label' | fromDictionary\n \"\n [(model)]=\"longName\"\n (modelChange)=\"updateLocality()\"\n [required]=\"localityRequired\"\n (userInput)=\"handleUserInput()\"\n [disabled]=\"disabled\"\n [isErrorInherited]=\"hasErrorsToDisplay()\"\n ></foehn-input-text>\n </fieldset>\n</div>\n", styles: [":host ::ng-deep foehn-input-text:last-child .form-group{margin-bottom:0}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.FoehnInputTextComponent, selector: "foehn-input-text", inputs: ["numberOnly"] }, { kind: "component", type: i3.FoehnValidationAlertsComponent, selector: "foehn-validation-alerts", inputs: ["component", "shouldErrorsBeLive"] }, { kind: "pipe", type: i4.SdkDictionaryPipe, name: "fromDictionary" }] });
|
|
52
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.
|
|
52
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: FoehnInputForeignLocalityComponent, decorators: [{
|
|
53
53
|
type: Component,
|
|
54
54
|
args: [{ selector: 'foehn-input-foreign-locality', providers: [
|
|
55
55
|
{
|
|
@@ -34,15 +34,15 @@ export class FoehnInputForeignStreetComponent extends FoehnInputComponent {
|
|
|
34
34
|
return { estrid: null, longName: this.longName };
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
FoehnInputForeignStreetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.
|
|
38
|
-
FoehnInputForeignStreetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.
|
|
37
|
+
FoehnInputForeignStreetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: FoehnInputForeignStreetComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
38
|
+
FoehnInputForeignStreetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: FoehnInputForeignStreetComponent, selector: "foehn-input-foreign-street", providers: [
|
|
39
39
|
{
|
|
40
40
|
provide: FoehnInputComponent,
|
|
41
41
|
useExisting: forwardRef(() => FoehnInputForeignStreetComponent),
|
|
42
42
|
multi: true
|
|
43
43
|
}
|
|
44
44
|
], usesInheritance: true, ngImport: i0, template: "<div\n class=\"form-group\"\n [class.has-danger]=\"hasErrorsToDisplay()\"\n [class.vd-form-group-danger]=\"hasErrorsToDisplay()\"\n [attr.id]=\"buildId('Container')\"\n tabindex=\"-1\"\n>\n <fieldset\n [attr.aria-describedby]=\"getDescribedBy()\"\n [attr.aria-invalid]=\"hasErrorsToDisplay() || null\"\n >\n <foehn-validation-alerts [component]=\"this\"></foehn-validation-alerts>\n\n <foehn-input-text\n [label]=\"label\"\n [name]=\"name + '.longName'\"\n [(model)]=\"longName\"\n (modelChange)=\"updateStreet()\"\n [required]=\"required\"\n [helpText]=\"helpText\"\n (userInput)=\"handleUserInput()\"\n [disabled]=\"disabled\"\n [isLabelSrOnly]=\"isLabelSrOnly\"\n [autocomplete]=\"'address-line1'\"\n [isErrorInherited]=\"hasErrorsToDisplay()\"\n >\n <ng-content></ng-content>\n </foehn-input-text>\n </fieldset>\n</div>\n", styles: [":host ::ng-deep foehn-input-text:last-child .form-group{margin-bottom:0}\n"], dependencies: [{ kind: "component", type: i1.FoehnInputTextComponent, selector: "foehn-input-text", inputs: ["numberOnly"] }, { kind: "component", type: i2.FoehnValidationAlertsComponent, selector: "foehn-validation-alerts", inputs: ["component", "shouldErrorsBeLive"] }] });
|
|
45
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.
|
|
45
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: FoehnInputForeignStreetComponent, decorators: [{
|
|
46
46
|
type: Component,
|
|
47
47
|
args: [{ selector: 'foehn-input-foreign-street', providers: [
|
|
48
48
|
{
|
|
@@ -53,9 +53,9 @@ export class FoehnAgendaNavigationComponent {
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
FoehnAgendaNavigationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.
|
|
57
|
-
FoehnAgendaNavigationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.
|
|
58
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.
|
|
56
|
+
FoehnAgendaNavigationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: FoehnAgendaNavigationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
57
|
+
FoehnAgendaNavigationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: FoehnAgendaNavigationComponent, selector: "foehn-agenda-navigation", inputs: { id: "id", calendar: "calendar", isSrOnly: "isSrOnly", minDate: "minDate", maxDate: "maxDate" }, outputs: { paginationChange: "paginationChange" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"row mb-3\" *ngIf=\"!!calendar\">\n <div class=\"col-12\">\n <nav\n class=\"vd-pagination calendar-week-navigation\"\n [attr.id]=\"id\"\n [attr.aria-label]=\"\n 'foehn-agenda-navigation.nav.aria-label' | fromDictionary\n \"\n >\n <ul class=\"vd-pagination__list\">\n <li\n class=\"vd-pagination__item vd-pagination__item--previous col-4\"\n *ngIf=\"!!calendar.previousWeek\"\n >\n <button\n [id]=\"id + 'ButtonPreviousWeek'\"\n class=\"btn-link vd-pagination__link vd-pagination__link-reset\"\n (click)=\"paginate(calendar.previousWeek)\"\n type=\"button\"\n >\n <span class=\"d-flex align-items-center\">\n <foehn-icon-chevron-left\n class=\"vd-pagination__title\"\n [title]=\"\n 'foehn-agenda-navigation.previous-week'\n | fromDictionary\n \"\n aria-hidden=\"true\"\n ></foehn-icon-chevron-left>\n <span\n class=\"vd-pagination__title ml-2 d-xs-none d-sm-block\"\n aria-hidden=\"true\"\n >\n {{\n 'foehn-agenda-navigation.previous-week'\n | fromDictionary\n }}\n </span>\n <span\n [id]=\"id + 'NavigationPreviousSrOnly'\"\n class=\"sr-only\"\n >\n {{\n 'foehn-agenda-navigation.previous-week-sr-only'\n | fromDictionary\n : {\n previousWeek:\n calendar.previousWeek\n .label\n }\n }}\n </span>\n </span>\n </button>\n </li>\n <li\n class=\"vd-pagination__item vd-pagination__item--previous col-4\"\n *ngIf=\"!calendar.previousWeek && !isSrOnly\"\n >\n <div\n [id]=\"id + 'NavigationPreviousDisabled'\"\n class=\"d-flex align-items-center link-week-disabled\"\n >\n <foehn-icon-chevron-left\n class=\"vd-pagination__title\"\n [title]=\"\n 'foehn-agenda-navigation.previous-week'\n | fromDictionary\n \"\n ></foehn-icon-chevron-left>\n <span\n class=\"vd-pagination__title ml-2 d-xs-none d-sm-block\"\n >\n {{\n 'foehn-agenda-navigation.previous-week'\n | fromDictionary\n }}\n </span>\n </div>\n </li>\n\n <li\n class=\"vd-pagination__item d-flex justify-content-center col-4\"\n *ngIf=\"!isSrOnly\"\n >\n <foehn-date-picker-button\n [model]=\"currentDay\"\n [minDate]=\"minDate\"\n [maxDate]=\"maxDate\"\n [selectedDateSrOnlyLabelKey]=\"\n 'foehn-agenda-navigation.date-picker-button.screen-reader.selected-date'\n \"\n (userInput)=\"datePickerUserInput($event)\"\n ></foehn-date-picker-button>\n </li>\n\n <li\n class=\"vd-pagination__item vd-pagination__item--next col-4 d-flex justify-content-end\"\n *ngIf=\"!!calendar.nextWeek\"\n >\n <button\n [id]=\"id + 'ButtonNextWeek'\"\n class=\"btn-link vd-pagination__link vd-pagination__link-reset\"\n (click)=\"paginate(calendar.nextWeek)\"\n type=\"button\"\n >\n <span class=\"d-flex align-items-center\">\n <span\n aria-hidden=\"true\"\n class=\"vd-pagination__title d-xs-none d-sm-block\"\n >\n {{\n 'foehn-agenda-navigation.next-week'\n | fromDictionary\n }}\n </span>\n <span\n [id]=\"id + 'NavigationNextSrOnly'\"\n class=\"sr-only\"\n >\n {{\n 'foehn-agenda-navigation.next-week-sr-only'\n | fromDictionary\n : {\n nextWeek:\n calendar.nextWeek.label\n }\n }}\n </span>\n <foehn-icon-chevron-right\n class=\"vd-pagination__title ml-2\"\n [title]=\"\n 'foehn-agenda-navigation.next-week'\n | fromDictionary\n \"\n aria-hidden=\"true\"\n ></foehn-icon-chevron-right>\n </span>\n </button>\n </li>\n <li\n class=\"vd-pagination__item vd-pagination__item--next col-4 d-flex justify-content-end\"\n *ngIf=\"!calendar.nextWeek && !isSrOnly\"\n >\n <div\n [id]=\"id + 'NavigationNextDisabled'\"\n class=\"d-flex align-items-center link-week-disabled\"\n >\n <span class=\"vd-pagination__title d-xs-none d-sm-block\">\n {{\n 'foehn-agenda-navigation.next-week'\n | fromDictionary\n }}\n </span>\n <foehn-icon-chevron-right\n class=\"vd-pagination__title ml-2\"\n [title]=\"\n 'foehn-agenda-navigation.next-week'\n | fromDictionary\n \"\n ></foehn-icon-chevron-right>\n </div>\n </li>\n </ul>\n </nav>\n </div>\n</div>\n", styles: [".calendar-week-navigation{margin-bottom:0}.calendar-week-navigation li.vd-pagination__item{margin-top:0}.calendar-week-navigation span.vd-pagination__title{font-size:1em;line-height:1.2em;color:var(--gray-dark)}.calendar-week-navigation foehn-icon-chevron-right.vd-pagination__title,.calendar-week-navigation foehn-icon-chevron-left.vd-pagination__title{font-size:1.5em;color:var(--gray-dark)}.calendar-week-navigation .link-week-disabled .vd-pagination__title{color:var(--vd-neutral-light);cursor:not-allowed}.calendar-week-navigation .vd-pagination__link-reset{background:none;border:none;font-weight:inherit;text-decoration-line:none;text-align:inherit;cursor:pointer}.calendar-week-navigation .vd-pagination__link-reset:focus{background-color:var(--vd-focus)}nav ul{margin-bottom:0}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.FoehnIconChevronLeftComponent, selector: "foehn-icon-chevron-left" }, { kind: "component", type: i3.FoehnIconChevronRightComponent, selector: "foehn-icon-chevron-right" }, { kind: "component", type: i4.FoehnDatePickerButtonComponent, selector: "foehn-date-picker-button", inputs: ["id", "name", "minYear", "maxYear", "minDate", "maxDate", "displaySelectedDate", "selectedDateSrOnlyLabelKey", "model"], outputs: ["modelChange", "userInput"] }, { kind: "pipe", type: i5.SdkDictionaryPipe, name: "fromDictionary" }] });
|
|
58
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: FoehnAgendaNavigationComponent, decorators: [{
|
|
59
59
|
type: Component,
|
|
60
60
|
args: [{ selector: 'foehn-agenda-navigation', template: "<div class=\"row mb-3\" *ngIf=\"!!calendar\">\n <div class=\"col-12\">\n <nav\n class=\"vd-pagination calendar-week-navigation\"\n [attr.id]=\"id\"\n [attr.aria-label]=\"\n 'foehn-agenda-navigation.nav.aria-label' | fromDictionary\n \"\n >\n <ul class=\"vd-pagination__list\">\n <li\n class=\"vd-pagination__item vd-pagination__item--previous col-4\"\n *ngIf=\"!!calendar.previousWeek\"\n >\n <button\n [id]=\"id + 'ButtonPreviousWeek'\"\n class=\"btn-link vd-pagination__link vd-pagination__link-reset\"\n (click)=\"paginate(calendar.previousWeek)\"\n type=\"button\"\n >\n <span class=\"d-flex align-items-center\">\n <foehn-icon-chevron-left\n class=\"vd-pagination__title\"\n [title]=\"\n 'foehn-agenda-navigation.previous-week'\n | fromDictionary\n \"\n aria-hidden=\"true\"\n ></foehn-icon-chevron-left>\n <span\n class=\"vd-pagination__title ml-2 d-xs-none d-sm-block\"\n aria-hidden=\"true\"\n >\n {{\n 'foehn-agenda-navigation.previous-week'\n | fromDictionary\n }}\n </span>\n <span\n [id]=\"id + 'NavigationPreviousSrOnly'\"\n class=\"sr-only\"\n >\n {{\n 'foehn-agenda-navigation.previous-week-sr-only'\n | fromDictionary\n : {\n previousWeek:\n calendar.previousWeek\n .label\n }\n }}\n </span>\n </span>\n </button>\n </li>\n <li\n class=\"vd-pagination__item vd-pagination__item--previous col-4\"\n *ngIf=\"!calendar.previousWeek && !isSrOnly\"\n >\n <div\n [id]=\"id + 'NavigationPreviousDisabled'\"\n class=\"d-flex align-items-center link-week-disabled\"\n >\n <foehn-icon-chevron-left\n class=\"vd-pagination__title\"\n [title]=\"\n 'foehn-agenda-navigation.previous-week'\n | fromDictionary\n \"\n ></foehn-icon-chevron-left>\n <span\n class=\"vd-pagination__title ml-2 d-xs-none d-sm-block\"\n >\n {{\n 'foehn-agenda-navigation.previous-week'\n | fromDictionary\n }}\n </span>\n </div>\n </li>\n\n <li\n class=\"vd-pagination__item d-flex justify-content-center col-4\"\n *ngIf=\"!isSrOnly\"\n >\n <foehn-date-picker-button\n [model]=\"currentDay\"\n [minDate]=\"minDate\"\n [maxDate]=\"maxDate\"\n [selectedDateSrOnlyLabelKey]=\"\n 'foehn-agenda-navigation.date-picker-button.screen-reader.selected-date'\n \"\n (userInput)=\"datePickerUserInput($event)\"\n ></foehn-date-picker-button>\n </li>\n\n <li\n class=\"vd-pagination__item vd-pagination__item--next col-4 d-flex justify-content-end\"\n *ngIf=\"!!calendar.nextWeek\"\n >\n <button\n [id]=\"id + 'ButtonNextWeek'\"\n class=\"btn-link vd-pagination__link vd-pagination__link-reset\"\n (click)=\"paginate(calendar.nextWeek)\"\n type=\"button\"\n >\n <span class=\"d-flex align-items-center\">\n <span\n aria-hidden=\"true\"\n class=\"vd-pagination__title d-xs-none d-sm-block\"\n >\n {{\n 'foehn-agenda-navigation.next-week'\n | fromDictionary\n }}\n </span>\n <span\n [id]=\"id + 'NavigationNextSrOnly'\"\n class=\"sr-only\"\n >\n {{\n 'foehn-agenda-navigation.next-week-sr-only'\n | fromDictionary\n : {\n nextWeek:\n calendar.nextWeek.label\n }\n }}\n </span>\n <foehn-icon-chevron-right\n class=\"vd-pagination__title ml-2\"\n [title]=\"\n 'foehn-agenda-navigation.next-week'\n | fromDictionary\n \"\n aria-hidden=\"true\"\n ></foehn-icon-chevron-right>\n </span>\n </button>\n </li>\n <li\n class=\"vd-pagination__item vd-pagination__item--next col-4 d-flex justify-content-end\"\n *ngIf=\"!calendar.nextWeek && !isSrOnly\"\n >\n <div\n [id]=\"id + 'NavigationNextDisabled'\"\n class=\"d-flex align-items-center link-week-disabled\"\n >\n <span class=\"vd-pagination__title d-xs-none d-sm-block\">\n {{\n 'foehn-agenda-navigation.next-week'\n | fromDictionary\n }}\n </span>\n <foehn-icon-chevron-right\n class=\"vd-pagination__title ml-2\"\n [title]=\"\n 'foehn-agenda-navigation.next-week'\n | fromDictionary\n \"\n ></foehn-icon-chevron-right>\n </div>\n </li>\n </ul>\n </nav>\n </div>\n</div>\n", styles: [".calendar-week-navigation{margin-bottom:0}.calendar-week-navigation li.vd-pagination__item{margin-top:0}.calendar-week-navigation span.vd-pagination__title{font-size:1em;line-height:1.2em;color:var(--gray-dark)}.calendar-week-navigation foehn-icon-chevron-right.vd-pagination__title,.calendar-week-navigation foehn-icon-chevron-left.vd-pagination__title{font-size:1.5em;color:var(--gray-dark)}.calendar-week-navigation .link-week-disabled .vd-pagination__title{color:var(--vd-neutral-light);cursor:not-allowed}.calendar-week-navigation .vd-pagination__link-reset{background:none;border:none;font-weight:inherit;text-decoration-line:none;text-align:inherit;cursor:pointer}.calendar-week-navigation .vd-pagination__link-reset:focus{background-color:var(--vd-focus)}nav ul{margin-bottom:0}\n"] }]
|
|
61
61
|
}], propDecorators: { id: [{
|