@claudebernard/therapeutic-alternative-element 1.0.3 → 1.0.5

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.
@@ -831,7 +831,7 @@ function n2(t2) {
831
831
  function r(r2) {
832
832
  return n2({ ...r2, state: true, attribute: false });
833
833
  }
834
- const therapeuticAlternativeCSS = '.claudebernard-therapeutic-alternative {\n font-family: var(--custom-font-family, "Ubuntu"), sans-serif;\n padding: 1rem;\n}\n.claudebernard-therapeutic-alternative-without-title {\n padding-top: 0;\n max-width: 70vw;\n width: 60vw;\n max-height: 70vh;\n}\n.claudebernard-therapeutic-alternative-title {\n font-size: 1.5rem;\n margin-bottom: 1rem;\n color: var(--bcbd-secondary-color);\n}\n.claudebernard-therapeutic-alternative__choice-fieldset {\n border: 1px solid var(--bcbd-border-gray-color);\n margin-inline: 0;\n margin-top: 1rem;\n border-radius: 4px;\n padding: 16px;\n display: flex;\n flex-direction: column;\n font-size: 1.1rem;\n}\n.claudebernard-therapeutic-alternative__choice-fieldset-without-title {\n margin-top: 0;\n}\n.claudebernard-therapeutic-alternative__choice-buttons {\n width: 100%;\n display: flex;\n flex-direction: column;\n gap: 0.8rem;\n}\n.claudebernard-therapeutic-alternative__choice-text {\n margin-bottom: 0.8rem;\n font-size: 0.9rem;\n}\n.claudebernard-therapeutic-alternative__choice bcbd-radio-button {\n --bcbd-radio-button-font-size: .8rem;\n}\n.claudebernard-therapeutic-alternative__loading {\n width: 100%;\n height: 30%;\n padding-top: 2rem;\n display: flex;\n justify-content: center;\n}\n.claudebernard-therapeutic-alternative__results {\n display: flex;\n flex-direction: column;\n gap: 20px;\n}\n.claudebernard-therapeutic-alternative__results-number {\n font-size: 0.8rem;\n}\n.claudebernard-therapeutic-alternative__results-list {\n display: flex;\n flex-direction: column;\n gap: 10px;\n}\n.claudebernard-therapeutic-alternative__no-medication {\n padding: 1.25rem;\n}';
834
+ const therapeuticAlternativeCSS = '.claudebernard-therapeutic-alternative {\n font-family: var(--custom-font-family, "Ubuntu"), sans-serif;\n padding: 1rem;\n}\n.claudebernard-therapeutic-alternative-without-title {\n padding-top: 0;\n max-width: 70vw;\n width: 60vw;\n max-height: 70vh;\n}\n.claudebernard-therapeutic-alternative-title {\n font-size: 1.5rem;\n margin-bottom: 1rem;\n color: var(--bcbd-secondary-color, #4A0C8A);\n}\n.claudebernard-therapeutic-alternative__choice-fieldset {\n border: 1px solid var(--bcbd-border-gray-color, #CBD5E1);\n margin-inline: 0;\n margin-top: 1rem;\n border-radius: 4px;\n padding: 16px;\n display: flex;\n flex-direction: column;\n font-size: 1.1rem;\n}\n.claudebernard-therapeutic-alternative__choice-fieldset-without-title {\n margin-top: 0;\n}\n.claudebernard-therapeutic-alternative__choice-buttons {\n width: 100%;\n display: flex;\n flex-direction: column;\n gap: 0.8rem;\n}\n.claudebernard-therapeutic-alternative__choice-text {\n margin-bottom: 0.8rem;\n font-size: 0.9rem;\n}\n.claudebernard-therapeutic-alternative__choice bcbd-radio-button {\n --bcbd-radio-button-font-size: .8rem;\n}\n.claudebernard-therapeutic-alternative__loading {\n width: 100%;\n height: 30%;\n padding-top: 2rem;\n display: flex;\n justify-content: center;\n}\n.claudebernard-therapeutic-alternative__results {\n display: flex;\n flex-direction: column;\n gap: 20px;\n}\n.claudebernard-therapeutic-alternative__results-number {\n font-size: 0.8rem;\n}\n.claudebernard-therapeutic-alternative__results-list {\n display: flex;\n flex-direction: column;\n gap: 10px;\n}\n.claudebernard-therapeutic-alternative__no-medication {\n padding: 1.25rem;\n}';
835
835
  const t = { CHILD: 2 }, e$1 = (t2) => (...e2) => ({ _$litDirective$: t2, values: e2 });
836
836
  class i2 {
837
837
  constructor(t2) {
@@ -865,7 +865,7 @@ class e extends i2 {
865
865
  }
866
866
  e.directiveName = "unsafeHTML", e.resultType = 1;
867
867
  const o = e$1(e);
868
- const productCardCSS = ".claudebernard-product-card-container {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n gap: 0.5rem;\n border: 1px solid var(--bcbd-border-gray-color);\n border-radius: 10px;\n padding: 0.75rem 1rem;\n}\n.claudebernard-product-card-container__button-div {\n display: flex;\n gap: 1rem;\n}\n.claudebernard-product-card-container__title {\n font-size: 1rem;\n text-decoration: none;\n cursor: pointer;\n color: var(--bcbd-primary-color);\n display: -webkit-box;\n -webkit-line-clamp: 1;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n}";
868
+ const productCardCSS = ".claudebernard-product-card-container {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n gap: 0.5rem;\n border: 1px solid var(--bcbd-border-gray-color, #CBD5E1);\n border-radius: 10px;\n padding: 0.75rem 1rem;\n}\n.claudebernard-product-card-container__button-div {\n display: flex;\n gap: 1rem;\n}\n.claudebernard-product-card-container__title {\n font-size: 1rem;\n text-decoration: none;\n cursor: pointer;\n color: var(--bcbd-primary-color, #0C75AD);\n display: -webkit-box;\n -webkit-line-clamp: 1;\n -webkit-box-orient: vertical;\n overflow: hidden;\n text-overflow: ellipsis;\n}";
869
869
  var __defProp$1 = Object.defineProperty;
870
870
  var __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor;
871
871
  var __decorateClass$1 = (decorators, target, key, kind) => {
@@ -986,7 +986,7 @@ let TherapeuticAlternative = class extends i$1 {
986
986
  this.searchTherapeuticAlternative();
987
987
  }
988
988
  getIndicationsListForMedication() {
989
- const medicationBcbId = this.medication?.medication.code?.coding?.find((option) => option.system === "https://platform.claudebernard.fr/fhir/CodeSystem/bcb-code")?.code || "";
989
+ const medicationBcbId = this.medication?.medication?.code?.coding?.find((option) => option.system === "https://platform.claudebernard.fr/fhir/CodeSystem/bcb-code")?.code || "";
990
990
  if (medicationBcbId !== "") {
991
991
  this.apiInfoLoading = true;
992
992
  infoApi.searchKeywordByProductIdAndCode({ path: { productIds: [medicationBcbId] }, query: { type: "INDICATIONS" } }).then((response) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claudebernard/therapeutic-alternative-element",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "main": "dist/therapeutic-alternative.es.js",
5
5
  "module": "dist/therapeutic-alternative.es.js",
6
6
  "types": "dist/therapeutic-alternative.d.ts",