@claudebernard/patient-profile-element 0.8.1 → 0.9.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.
@@ -113,14 +113,14 @@ declare global {
113
113
 
114
114
  declare global {
115
115
  interface HTMLElementTagNameMap {
116
- "bcb-patient-reproductive-form": PatientReproductiveForm;
116
+ "bcb-patient-demographics-form": PatientDemographicsForm;
117
117
  }
118
118
  }
119
119
 
120
120
 
121
121
  declare global {
122
122
  interface HTMLElementTagNameMap {
123
- "bcb-patient-demographics-form": PatientDemographicsForm;
123
+ "bcb-patient-reproductive-form": PatientReproductiveForm;
124
124
  }
125
125
  }
126
126
 
@@ -1381,7 +1381,7 @@ function e$1(e2, r2) {
1381
1381
  };
1382
1382
  }
1383
1383
  const o = (o2) => o2 ?? A;
1384
- const patientProfileCSS = '@charset "UTF-8";\n.claudebernard-patient-profile {\n font-family: var(--custom-font-family, "Ubuntu"), sans-serif;\n border: 1px solid var(--bcbd-border-gray-color, #CBD5E1);\n padding: 1rem;\n border-radius: 0.5rem;\n background-color: var(--bcbd-white-color, #FFFFFF);\n container-type: inline-size;\n}\n@container (max-width: 600px) {\n .claudebernard-patient-profile {\n font-size: 0.8rem;\n }\n}\n.claudebernard-patient-profile__no-profile {\n display: flex;\n flex-direction: column;\n gap: 0.3rem;\n}\n.claudebernard-patient-profile__no-profile__first {\n font-weight: bold;\n}\n.claudebernard-patient-profile__no-profile__second {\n color: var(--bcbd-gray-500-color, #64748B);\n font-size: 0.8rem;\n}\n.claudebernard-patient-profile__separator {\n border-right: 1px solid var(--bcbd-border-gray-color, #CBD5E1);\n}\n.claudebernard-patient-profile__first-info-container {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n gap: 0.5rem;\n}\n@container (max-width: 450px) {\n .claudebernard-patient-profile__first-info-container {\n flex-wrap: wrap;\n gap: 1rem;\n align-items: center;\n }\n}\n@container (max-width: 320px) {\n .claudebernard-patient-profile__first-info-container {\n justify-content: center;\n }\n}\n.claudebernard-patient-profile__id-info-container {\n display: flex;\n flex-direction: column;\n justify-content: center;\n gap: 0.5rem;\n min-width: 0;\n}\n@container (max-width: 450px) {\n .claudebernard-patient-profile__id-info-container {\n flex: 1;\n }\n}\n@container (max-width: 320px) {\n .claudebernard-patient-profile__id-info-container {\n flex: 0 1 auto;\n max-width: 100%;\n align-items: center;\n }\n}\n.claudebernard-patient-profile__name-info {\n font-size: 1rem;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.claudebernard-patient-profile__id-info {\n width: fit-content;\n border: 1px solid var(--bcbd-border-gray-color, #CBD5E1);\n border-radius: 1rem;\n display: flex;\n flex-direction: row;\n padding: 0 0.8rem;\n gap: 0.5rem;\n}\n.claudebernard-patient-profile__id-info-info {\n padding: 0.2rem 0;\n white-space: nowrap;\n font-size: 1rem;\n}\n.claudebernard-patient-profile__physical-info-container {\n display: flex;\n flex-direction: row;\n justify-content: center;\n gap: 1rem;\n}\n@container (max-width: 600px) {\n .claudebernard-patient-profile__physical-info-container {\n gap: 0.5rem;\n }\n}\n@container (max-width: 450px) {\n .claudebernard-patient-profile__physical-info-container {\n order: 3;\n width: 100%;\n }\n}\n@container (max-width: 320px) {\n .claudebernard-patient-profile__physical-info-container {\n order: 2;\n }\n}\n.claudebernard-patient-profile__physical-info {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: space-between;\n padding: 1rem 0;\n font-size: 1rem;\n}\n.claudebernard-patient-profile__physical-info-result {\n white-space: nowrap;\n}\n.claudebernard-patient-profile__physical-info-label {\n color: var(--bcbd-gray-600-color, #475569);\n}\n.claudebernard-patient-profile__action-buttons-container {\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n align-content: center;\n flex-wrap: wrap;\n gap: 1rem;\n}\n@container (max-width: 600px) {\n .claudebernard-patient-profile__action-buttons-container {\n gap: 0.5rem;\n }\n}\n@container (max-width: 450px) {\n .claudebernard-patient-profile__action-buttons-container {\n order: 2;\n margin: 0 auto;\n }\n}\n@container (max-width: 320px) {\n .claudebernard-patient-profile__action-buttons-container {\n order: 3;\n }\n}\n.claudebernard-patient-profile__second-info-container {\n margin-top: 1rem;\n display: none;\n}\n.claudebernard-patient-profile__second-info-container.active {\n display: flex;\n flex-direction: column;\n}\n.claudebernard-patient-profile__second-info {\n margin-top: 1rem;\n}\n.claudebernard-patient-profile__second-info bcbd-tooltip {\n display: inline-block;\n}\n.claudebernard-patient-profile__second-info bcbd-tooltip > span {\n font-size: 1rem;\n}\n.claudebernard-patient-profile__second-info-label {\n padding-right: 0.5rem;\n color: var(--bcbd-primary-color, #0C75AD);\n}\n@container (max-width: 600px) {\n .claudebernard-patient-profile__second-info-label {\n font-size: 0.8rem;\n }\n}\n.claudebernard-patient-profile__second-info-result.sep-dots > * + *::before {\n content: "•";\n margin: 0 0.5rem;\n}\n.claudebernard-patient-profile__alert-container bcbd-alert {\n margin-top: 10px;\n}\n.claudebernard-patient-profile__alert-container {\n display: flex;\n flex-direction: column;\n}';
1384
+ const patientProfileCSS = '@charset "UTF-8";\n.claudebernard-patient-profile {\n font-family: var(--custom-font-family, "Ubuntu"), sans-serif;\n box-shadow: 0 1px 2px rgba(27, 42, 50, 0.05), 0 6px 18px rgba(27, 42, 50, 0.06);\n padding: 1rem;\n border-radius: 0.5rem;\n background-color: var(--bcbd-white-color, #FFFFFF);\n container-type: inline-size;\n}\n@container (max-width: 600px) {\n .claudebernard-patient-profile {\n font-size: 0.8rem;\n }\n}\n.claudebernard-patient-profile__no-profile {\n display: flex;\n flex-direction: column;\n gap: 0.3rem;\n}\n.claudebernard-patient-profile__no-profile__first {\n font-weight: bold;\n}\n.claudebernard-patient-profile__no-profile__second {\n color: var(--bcbd-gray-500-color, #64748B);\n font-size: 0.8rem;\n}\n.claudebernard-patient-profile__separator {\n border-right: 1px solid var(--bcbd-border-gray-color, #CBD5E1);\n}\n.claudebernard-patient-profile__first-info-container {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n gap: 0.5rem;\n}\n@container (max-width: 450px) {\n .claudebernard-patient-profile__first-info-container {\n flex-wrap: wrap;\n gap: 1rem;\n align-items: center;\n }\n}\n@container (max-width: 320px) {\n .claudebernard-patient-profile__first-info-container {\n justify-content: center;\n }\n}\n.claudebernard-patient-profile__id-info-container {\n display: flex;\n flex-direction: column;\n justify-content: center;\n gap: 0.5rem;\n min-width: 0;\n}\n@container (max-width: 450px) {\n .claudebernard-patient-profile__id-info-container {\n flex: 1;\n }\n}\n@container (max-width: 320px) {\n .claudebernard-patient-profile__id-info-container {\n flex: 0 1 auto;\n max-width: 100%;\n align-items: center;\n }\n}\n.claudebernard-patient-profile__name-info {\n font-size: 1rem;\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.claudebernard-patient-profile__id-info {\n width: fit-content;\n border: 1px solid var(--bcbd-border-gray-color, #CBD5E1);\n border-radius: 1rem;\n display: flex;\n flex-direction: row;\n padding: 0 0.8rem;\n gap: 0.5rem;\n}\n.claudebernard-patient-profile__id-info-info {\n padding: 0.2rem 0;\n white-space: nowrap;\n font-size: 1rem;\n}\n.claudebernard-patient-profile__physical-info-container {\n display: flex;\n flex-direction: row;\n justify-content: center;\n gap: 1rem;\n}\n@container (max-width: 600px) {\n .claudebernard-patient-profile__physical-info-container {\n gap: 0.5rem;\n }\n}\n@container (max-width: 450px) {\n .claudebernard-patient-profile__physical-info-container {\n order: 3;\n width: 100%;\n }\n}\n@container (max-width: 320px) {\n .claudebernard-patient-profile__physical-info-container {\n order: 2;\n }\n}\n.claudebernard-patient-profile__physical-info {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: space-between;\n padding: 1rem 0;\n font-size: 1rem;\n}\n.claudebernard-patient-profile__physical-info-result {\n white-space: nowrap;\n}\n.claudebernard-patient-profile__physical-info-label {\n color: var(--bcbd-gray-600-color, #475569);\n}\n.claudebernard-patient-profile__action-buttons-container {\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n align-content: center;\n flex-wrap: wrap;\n gap: 1rem;\n}\n@container (max-width: 600px) {\n .claudebernard-patient-profile__action-buttons-container {\n gap: 0.5rem;\n }\n}\n@container (max-width: 450px) {\n .claudebernard-patient-profile__action-buttons-container {\n order: 2;\n margin: 0 auto;\n }\n}\n@container (max-width: 320px) {\n .claudebernard-patient-profile__action-buttons-container {\n order: 3;\n }\n}\n.claudebernard-patient-profile__second-info-container {\n margin-top: 1rem;\n display: none;\n}\n.claudebernard-patient-profile__second-info-container.active {\n display: flex;\n flex-direction: column;\n}\n.claudebernard-patient-profile__second-info {\n margin-top: 1rem;\n}\n.claudebernard-patient-profile__second-info bcbd-tooltip {\n display: inline-block;\n}\n.claudebernard-patient-profile__second-info bcbd-tooltip > span {\n font-size: 1rem;\n}\n.claudebernard-patient-profile__second-info-label {\n padding-right: 0.5rem;\n color: var(--bcbd-primary-color, #0C75AD);\n}\n@container (max-width: 600px) {\n .claudebernard-patient-profile__second-info-label {\n font-size: 0.8rem;\n }\n}\n.claudebernard-patient-profile__second-info-result.sep-dots > * + *::before {\n content: "•";\n margin: 0 0.5rem;\n}\n.claudebernard-patient-profile__alert-container bcbd-alert {\n margin-top: 10px;\n}\n.claudebernard-patient-profile__alert-container {\n display: flex;\n flex-direction: column;\n}';
1385
1385
  const e = (t2) => (...e2) => ({ _$litDirective$: t2, values: e2 });
1386
1386
  let i$1 = class i2 {
1387
1387
  constructor(t2) {
@@ -2639,7 +2639,7 @@ function random(size) {
2639
2639
  }
2640
2640
  const COMPONENT_HEADERS = {
2641
2641
  "Bcb-Web-Component-Package": "@claudebernard/patient-profile-element",
2642
- "Bcb-Web-Component-Version": "0.8"
2642
+ "Bcb-Web-Component-Version": "0.9"
2643
2643
  };
2644
2644
  function makeTraceparent() {
2645
2645
  return make().child().toString();
@@ -4021,9 +4021,9 @@ let PatientProfileEdition = class extends i$2 {
4021
4021
  </div>
4022
4022
  </div>
4023
4023
  <div slot="actions" class="${PREFIX}-edition-modal-action-buttons" data-test-id="action-buttons">
4024
+ <bcbd-button data-test-id="cancel-button" background-color="secondary" @click=${this.handleCancel}>Annuler</bcbd-button>
4024
4025
  <bcbd-button ?disabled=${this.demographicsHasError}
4025
4026
  data-test-id="save-button" background-color="primary" @click=${this.validateForm}>Valider</bcbd-button>
4026
- <bcbd-button data-test-id="cancel-button" outlined background-color="primary" @click=${this.handleCancel}>Annuler</bcbd-button>
4027
4027
  </div>
4028
4028
  `)}
4029
4029
  </bcbd-modal>`;
@@ -4302,7 +4302,7 @@ let PatientProfile = class extends i$2 {
4302
4302
  <div class="${PREFIX}-patient-profile__no-profile__first">Aucun profil patient renseigné</div>
4303
4303
  <div class="${PREFIX}-patient-profile__no-profile__second">Veuillez remplir le formulaire</div>
4304
4304
  </div>
4305
- ${this.preferences?.overview?.editButton?.display !== false ? b`<bcbd-button icon="pencil" size="medium" background-color="primary" outlined aria-label="Modifier le profil patient" data-test-id="modify-button" @click=${this.openEditionModal}></bcbd-button>` : A}
4305
+ ${this.preferences?.overview?.editButton?.display !== false ? b`<bcbd-button icon-color="black" icon="pencil" size="medium" background-color="transparent" aria-label="Modifier le profil patient" data-test-id="modify-button" @click=${this.openEditionModal}></bcbd-button>` : A}
4306
4306
  ` : b`
4307
4307
  <div class="${PREFIX}-patient-profile__id-info-container">
4308
4308
  <div class="${PREFIX}-patient-profile__name-info" data-test-id="patient-name" title=${o(getPatientName(this.patientProfile))}>
@@ -4359,11 +4359,11 @@ let PatientProfile = class extends i$2 {
4359
4359
  <div class="${PREFIX}-patient-profile__action-buttons-container" data-test-id="action-buttons">
4360
4360
  ${this.preferences?.overview?.editButton?.display !== false ? b`
4361
4361
  <bcbd-tooltip content="Editer le profil patient" placement="top">
4362
- <bcbd-button icon="pencil" size="medium" background-color="primary" outlined aria-label="Editer le profil patient" data-test-id="modify-button" @click=${this.openEditionModal}></bcbd-button>
4362
+ <bcbd-button icon-color="black" icon="pencil" size="medium" background-color="transparent" aria-label="Editer le profil patient" data-test-id="modify-button" @click=${this.openEditionModal}></bcbd-button>
4363
4363
  </bcbd-tooltip>
4364
4364
  ` : A}
4365
4365
  <bcbd-tooltip content="Déplier le profil patient" placement="top">
4366
- <bcbd-button icon=${this.moreInformationVisible ? "chevron-up" : "chevron-down"} size="medium" background-color="primary" aria-label=${this.moreInformationVisible ? "Masquer les informations supplémentaires" : "Afficher les informations supplémentaires"} @click=${this.handleMoreInformation} data-test-id="visible-button"></bcbd-button>
4366
+ <bcbd-button icon-color="black" icon=${this.moreInformationVisible ? "chevron-up" : "chevron-down"} size="medium" background-color="transparent" aria-label=${this.moreInformationVisible ? "Masquer les informations supplémentaires" : "Afficher les informations supplémentaires"} @click=${this.handleMoreInformation} data-test-id="visible-button"></bcbd-button>
4367
4367
  </bcbd-tooltip>
4368
4368
  </div>`}
4369
4369
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claudebernard/patient-profile-element",
3
- "version": "0.8.1",
3
+ "version": "0.9.0-beta.2",
4
4
  "main": "dist/patient-profile.es.js",
5
5
  "module": "dist/patient-profile.es.js",
6
6
  "types": "dist/patient-profile.d.ts",
@@ -65,8 +65,8 @@
65
65
  "@types/fhir": "^0.0.41",
66
66
  "@types/he": "^1.2.3",
67
67
  "@types/node": "^24.9.2",
68
- "@typescript-eslint/eslint-plugin": "8.65.0",
69
- "@typescript-eslint/parser": "8.65.0",
68
+ "@typescript-eslint/eslint-plugin": "8.74.0",
69
+ "@typescript-eslint/parser": "8.74.0",
70
70
  "@vitest/browser-playwright": "^4.0.5",
71
71
  "@vitest/coverage-v8": "^4.0.5",
72
72
  "@webcomponents/webcomponentsjs": "^2.8.0",
@@ -87,8 +87,8 @@
87
87
  "vitest": "^4.0.7"
88
88
  },
89
89
  "peerDependencies": {
90
- "@claudebernard/design-system": "^2.39.3",
91
- "@claudebernard/types": "^0.35.0 || ^0.36.0"
90
+ "@claudebernard/design-system": "^2.40.0",
91
+ "@claudebernard/types": "^0.35.0 || ^0.36.0 || ^0.37.0"
92
92
  },
93
93
  "customElements": "dist/custom-elements.json",
94
94
  "publishConfig": {