@claudebernard/patient-profile-element 0.5.1 → 0.5.3
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/dist/custom-elements.json +12 -12
- package/dist/patient-profile.es.js +5 -5
- package/package.json +2 -2
|
@@ -996,6 +996,18 @@
|
|
|
996
996
|
}
|
|
997
997
|
]
|
|
998
998
|
},
|
|
999
|
+
{
|
|
1000
|
+
"kind": "javascript-module",
|
|
1001
|
+
"path": "src/shared/interfaces/api-return.interface.ts",
|
|
1002
|
+
"declarations": [],
|
|
1003
|
+
"exports": []
|
|
1004
|
+
},
|
|
1005
|
+
{
|
|
1006
|
+
"kind": "javascript-module",
|
|
1007
|
+
"path": "src/shared/interfaces/patient.ts",
|
|
1008
|
+
"declarations": [],
|
|
1009
|
+
"exports": []
|
|
1010
|
+
},
|
|
999
1011
|
{
|
|
1000
1012
|
"kind": "javascript-module",
|
|
1001
1013
|
"path": "src/shared/constants/edition-options.ts",
|
|
@@ -1156,18 +1168,6 @@
|
|
|
1156
1168
|
}
|
|
1157
1169
|
]
|
|
1158
1170
|
},
|
|
1159
|
-
{
|
|
1160
|
-
"kind": "javascript-module",
|
|
1161
|
-
"path": "src/shared/interfaces/api-return.interface.ts",
|
|
1162
|
-
"declarations": [],
|
|
1163
|
-
"exports": []
|
|
1164
|
-
},
|
|
1165
|
-
{
|
|
1166
|
-
"kind": "javascript-module",
|
|
1167
|
-
"path": "src/shared/interfaces/patient.ts",
|
|
1168
|
-
"declarations": [],
|
|
1169
|
-
"exports": []
|
|
1170
|
-
},
|
|
1171
1171
|
{
|
|
1172
1172
|
"kind": "javascript-module",
|
|
1173
1173
|
"path": "src/shared/mocks/pathologies.mock.ts",
|
|
@@ -1498,7 +1498,7 @@ class Z {
|
|
|
1498
1498
|
}
|
|
1499
1499
|
}
|
|
1500
1500
|
const B = t$1.litHtmlPolyfillSupport;
|
|
1501
|
-
B?.(S, k), (t$1.litHtmlVersions ??= []).push("3.3.
|
|
1501
|
+
B?.(S, k), (t$1.litHtmlVersions ??= []).push("3.3.3");
|
|
1502
1502
|
const D = (t2, i2, s2) => {
|
|
1503
1503
|
const e2 = s2?.renderBefore ?? i2;
|
|
1504
1504
|
let h2 = e2._$litPart$;
|
|
@@ -1579,7 +1579,7 @@ function e(e2, r2) {
|
|
|
1579
1579
|
} });
|
|
1580
1580
|
};
|
|
1581
1581
|
}
|
|
1582
|
-
const patientProfileCSS = '@charset "UTF-8";\n:host {\n container-type: inline-size;\n}\n\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}\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 0 auto;\n align-items: center;\n }\n}\n.claudebernard-patient-profile__name-info {\n font-size: 1rem;\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}\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}\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}';
|
|
1582
|
+
const patientProfileCSS = '@charset "UTF-8";\n:host {\n container-type: inline-size;\n}\n\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}\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 0 auto;\n align-items: center;\n }\n}\n.claudebernard-patient-profile__name-info {\n font-size: 1rem;\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}';
|
|
1583
1583
|
const sexOptions = [
|
|
1584
1584
|
{ value: "male", label: "Masculin" },
|
|
1585
1585
|
{ value: "female", label: "Féminin" },
|
|
@@ -2081,7 +2081,7 @@ let PatientProfileEdition = class extends i {
|
|
|
2081
2081
|
<div class="${PREFIX}-edition-modal-action-buttons" data-test-id="action-buttons">
|
|
2082
2082
|
<bcbd-button ?disabled=${this.ageErrorMessageInput !== "" || this.sizeErrorMessageInput !== "" || this.weightErrorMessageInput !== ""}
|
|
2083
2083
|
data-test-id="save-button" background-color="primary" @click=${this.validateForm}>Valider</bcbd-button>
|
|
2084
|
-
<bcbd-button data-test-id="cancel-button" outlined background-color="
|
|
2084
|
+
<bcbd-button data-test-id="cancel-button" outlined background-color="primary" @click=${() => this.editionModalElement.close()}>Annuler</bcbd-button>
|
|
2085
2085
|
</div>
|
|
2086
2086
|
</div>
|
|
2087
2087
|
</bcbd-modal>`;
|
|
@@ -2415,7 +2415,7 @@ let PatientProfile = class extends i {
|
|
|
2415
2415
|
<div class="${PREFIX}-patient-profile__no-profile__first">Aucun profil patient renseigné</div>
|
|
2416
2416
|
<div class="${PREFIX}-patient-profile__no-profile__second">Veuillez remplir le formulaire</div>
|
|
2417
2417
|
</div>
|
|
2418
|
-
${this.editButtonVisible || this.editButtonVisible === void 0 ? b`<bcbd-button icon="pencil" size="medium" background-color="
|
|
2418
|
+
${this.editButtonVisible || this.editButtonVisible === void 0 ? 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}
|
|
2419
2419
|
` : b`
|
|
2420
2420
|
<div class="${PREFIX}-patient-profile__id-info-container">
|
|
2421
2421
|
<div class="${PREFIX}-patient-profile__name-info" data-test-id="patient-name">
|
|
@@ -2470,7 +2470,7 @@ let PatientProfile = class extends i {
|
|
|
2470
2470
|
</div>
|
|
2471
2471
|
|
|
2472
2472
|
<div class="${PREFIX}-patient-profile__action-buttons-container" data-test-id="action-buttons">
|
|
2473
|
-
${this.editButtonVisible || this.editButtonVisible === void 0 ? b`<bcbd-button icon="pencil" size="medium" background-color="
|
|
2473
|
+
${this.editButtonVisible || this.editButtonVisible === void 0 ? 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}
|
|
2474
2474
|
<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>
|
|
2475
2475
|
</div>`}
|
|
2476
2476
|
</div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@claudebernard/patient-profile-element",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.3",
|
|
4
4
|
"main": "dist/patient-profile.es.js",
|
|
5
5
|
"module": "dist/patient-profile.es.js",
|
|
6
6
|
"types": "dist/patient-profile.d.ts",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
},
|
|
87
87
|
"peerDependencies": {
|
|
88
88
|
"@claudebernard/design-system": "^2.29.6",
|
|
89
|
-
"@claudebernard/types": "^0.
|
|
89
|
+
"@claudebernard/types": "^0.35.0"
|
|
90
90
|
},
|
|
91
91
|
"customElements": "dist/custom-elements.json",
|
|
92
92
|
"publishConfig": {
|