diff --git a/interfaces/IBF-dashboard/cypress/support/component-index.html b/interfaces/IBF-dashboard/cypress/support/component-index.html index e39ba4296..faf3b5f43 100644 --- a/interfaces/IBF-dashboard/cypress/support/component-index.html +++ b/interfaces/IBF-dashboard/cypress/support/component-index.html @@ -1,4 +1,4 @@ - +
diff --git a/interfaces/IBF-dashboard/package-lock.json b/interfaces/IBF-dashboard/package-lock.json index 44fabb0bd..0fc4aa826 100644 --- a/interfaces/IBF-dashboard/package-lock.json +++ b/interfaces/IBF-dashboard/package-lock.json @@ -62,8 +62,8 @@ "karma-coverage-istanbul-reporter": "^3.0.3", "karma-jasmine": "^5.1.0", "karma-jasmine-html-reporter": "^2.1.0", - "prettier": "2.2.1", - "prettier-plugin-organize-imports": "^2.3.4", + "prettier": "^3.3.3", + "prettier-plugin-organize-imports": "^4.0.0", "typescript": "^5.4.5", "xlsx": "^0.17.5" } @@ -16414,25 +16414,38 @@ } }, "node_modules/prettier": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.2.1.tgz", - "integrity": "sha512-PqyhM2yCjg/oKkFPtTGUojv7gnZAoG80ttl45O6x2Ug/rMJw4wcc9k6aaf2hibP7BGVCCM33gZoGjyvt9mm16Q==", + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.3.tgz", + "integrity": "sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==", "dev": true, "bin": { - "prettier": "bin-prettier.js" + "prettier": "bin/prettier.cjs" }, "engines": { - "node": ">=10.13.0" + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" } }, "node_modules/prettier-plugin-organize-imports": { - "version": "2.3.4", - "resolved": "https://registry.npmjs.org/prettier-plugin-organize-imports/-/prettier-plugin-organize-imports-2.3.4.tgz", - "integrity": "sha512-R8o23sf5iVL/U71h9SFUdhdOEPsi3nm42FD/oDYIZ2PQa4TNWWuWecxln6jlIQzpZTDMUeO1NicJP6lLn2TtRw==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/prettier-plugin-organize-imports/-/prettier-plugin-organize-imports-4.0.0.tgz", + "integrity": "sha512-vnKSdgv9aOlqKeEFGhf9SCBsTyzDSyScy1k7E0R1Uo4L0cTcOV7c1XQaT7jfXIOc/p08WLBfN2QUQA9zDSZMxA==", "dev": true, "peerDependencies": { + "@vue/language-plugin-pug": "^2.0.24", "prettier": ">=2.0", - "typescript": ">=2.9" + "typescript": ">=2.9", + "vue-tsc": "^2.0.24" + }, + "peerDependenciesMeta": { + "@vue/language-plugin-pug": { + "optional": true + }, + "vue-tsc": { + "optional": true + } } }, "node_modules/pretty-bytes": { diff --git a/interfaces/IBF-dashboard/package.json b/interfaces/IBF-dashboard/package.json index 2b733a76f..0a85d79e0 100644 --- a/interfaces/IBF-dashboard/package.json +++ b/interfaces/IBF-dashboard/package.json @@ -82,8 +82,8 @@ "karma-coverage-istanbul-reporter": "^3.0.3", "karma-jasmine": "^5.1.0", "karma-jasmine-html-reporter": "^2.1.0", - "prettier": "2.2.1", - "prettier-plugin-organize-imports": "^2.3.4", + "prettier": "^3.3.3", + "prettier-plugin-organize-imports": "^4.0.0", "typescript": "^5.4.5", "xlsx": "^0.17.5" } diff --git a/interfaces/IBF-dashboard/prettier.config.js b/interfaces/IBF-dashboard/prettier.config.js index 7f0df6c81..4453ffd33 100644 --- a/interfaces/IBF-dashboard/prettier.config.js +++ b/interfaces/IBF-dashboard/prettier.config.js @@ -4,9 +4,7 @@ module.exports = { overrides: [ { files: '*.html', - options: { - parser: 'angular', - }, + options: { parser: 'angular' }, }, ], }; diff --git a/interfaces/IBF-dashboard/src/app/app.component.html b/interfaces/IBF-dashboard/src/app/app.component.html index 62b4eeb87..f95288152 100644 --- a/interfaces/IBF-dashboard/src/app/app.component.html +++ b/interfaces/IBF-dashboard/src/app/app.component.html @@ -1,6 +1,8 @@+ @if (!event.duration && showFirstWarningDate()) { + + } + @if (event.duration) { + + } +
+ } @else { +- -
-+ {{ event.disasterSpecificProperties.eapAlertClass.label }}: + + @if (event.thresholdReached) { + {{ + 'chat-component.' + + disasterTypeName + + '.alertLevel.expected-trigger' | translate + }} + {{ event.firstTriggerLeadTimeDate }} + } @else { + {{ + 'chat-component.' + disasterTypeName + '.alertLevel.expected' + | translate + }} + {{ event.firstLeadTimeDate }} + } +
+ @if (event.affectedAreas) { ++ {{ + 'chat-component.' + disasterTypeName + '.alertLevel.exposed-areas' + | translate: { adminAreaLabelPlural: adminAreaLabelPlural } + }} + + {{ event.affectedAreas + ' ' }} + @if (event.thresholdReached) { + {{ + '(' + + (actionIndicatorLabel | titlecase) + + ' ' + + (event.actionsValueSum | number: '.0-0') + + ')' + }} + } @else { + + {{ + '(' + + ('chat-component.' + disasterTypeName + '.alertLevel.no-data' + | translate) + + ')' + }} + + } +
+ } + } -- {{ event.disasterSpecificProperties.eapAlertClass.label }}: - - {{ - 'chat-component.' + disasterTypeName + '.alertLevel.expected-trigger' - | translate - }} - {{ event.firstTriggerLeadTimeDate }} - {{ - 'chat-component.' + disasterTypeName + '.alertLevel.expected' - | translate - }} - {{ event.firstLeadTimeDate }} -
-- {{ - 'chat-component.' + disasterTypeName + '.alertLevel.exposed-areas' - | translate: { adminAreaLabelPlural: adminAreaLabelPlural } - }} - - {{ event.affectedAreas + ' ' }} - {{ - '(' + - (actionIndicatorLabel | titlecase) + - ' ' + - (event.actionsValueSum | number: '.0-0') + - ')' - }} - - {{ - '(' + - ('chat-component.' + disasterTypeName + '.alertLevel.no-data' - | translate) + - ')' - }} - -
-{{ forecastInfo }}
+ } - + @if (!!clearOutMessage) { + + } -- {{ forecastInfo }} -
+ - + @if (event.eventName === selectedEvent) { + @if (event.thresholdReached) { + + } @else { + + } + @for (class of alertClasses; track class.alertClass) { ++ {{ area.name }} + @if (area.nameParent) { + ({{ area.nameParent }}) + } + @if (area.actionsValue && area.actionsValue > 0) { + {{ ' - ' }} + @switch (actionIndicatorNumberFormat) { + @case ('decimal0') { + {{ area.actionsValue | number: '.0-0' }} + } + @case ('perc') { + {{ area.actionsValue | percent: '.0-0' }} + } + } + } +
+
- {{ area.name }}
- ({{ area.nameParent }})
-
+ {{ class.alertClass }}
- - -+ {{ area.name }} + @if (area.nameParent) { + ({{ area.nameParent }}) + } + - + @switch (actionIndicatorNumberFormat) { + @case ('decimal0') { + {{ area.actionsValue | number: '.0-0' }} + } + @case ('perc') { + {{ area.actionsValue | percent: '.0-0' }} + } + } +
+- {{ class.alertClass }} -
-- {{ area.name }} - ({{ area.nameParent }}) - - {{ - area.actionsValue | number: '.0-0' - }}{{ - area.actionsValue | percent: '.0-0' - }} -
-- -
+@if (multipleActiveEvents()) { ++ +
+- {{ - 'activation-page.' + getEapKey() + '.page-explanation' | translate - }} -
-- {{ - 'activation-page.' + getEapKey() + '.copy-instructions' - | translate - }} -
-+ {{ + 'activation-page.' + getEapKey() + '.page-explanation' + | translate + }} +
++ {{ + 'activation-page.' + getEapKey() + '.copy-instructions' + | translate + }} +
+