@beterdichtbij/component-library 0.63.2 → 0.63.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.
@@ -11149,7 +11149,7 @@ var zy = {
11149
11149
  delete: "Verwijderen",
11150
11150
  edit: "Wijzigen"
11151
11151
  },
11152
- contentLibraryOverview: { noResults: "Er zijn geen resultaten gevonden" },
11152
+ contentLibraryOverview: { noResults: "Er zijn geen berichten gevonden voor deze zoekterm of filters; pas ze aan om opnieuw te zoeken." },
11153
11153
  contentLibrarySplitButton: { messageTemplatesTitle: "Standaardberichten" },
11154
11154
  contentLibraryTemplate: {
11155
11155
  changeCategoryButtonLabel: "Mijn categorieën aanpassen",
@@ -30816,10 +30816,6 @@ var { showSuccessToast: lY } = yO(), uY = (e, t, n) => {
30816
30816
  contentLibraryExternalProviders: {
30817
30817
  type: Array,
30818
30818
  default: () => []
30819
- },
30820
- isOperator: {
30821
- type: Boolean,
30822
- default: !1
30823
30819
  }
30824
30820
  },
30825
30821
  emits: [
@@ -30827,88 +30823,81 @@ var { showSuccessToast: lY } = yO(), uY = (e, t, n) => {
30827
30823
  "show-attachment",
30828
30824
  "action",
30829
30825
  "on-input",
30830
- "change-department"
30826
+ "change-department",
30827
+ "change-text"
30831
30828
  ],
30832
30829
  setup(e, { emit: n }) {
30833
- let { showModal: r } = eq("attachment-upload-modal"), i = e, o = n, { t: d } = uf(), f = j([]), p = a(() => void 0), h = a(() => i.validation.category.state === !1 ? "is-invalid" : ""), g = a(() => i.validation.ownerId.state === !1 ? "is-invalid" : ""), _ = a(() => [...i.categoryOptions ? i.categoryOptions.map((e) => ({
30830
+ let { showModal: r } = eq("attachment-upload-modal"), i = e, o = n, { t: d } = uf(), f = j([]), p = a(() => void 0), h = a(() => i.validation.category.state === !1 ? "is-invalid" : "");
30831
+ a(() => i.validation.ownerId.state === !1 ? "is-invalid" : "");
30832
+ let g = a(() => [...i.categoryOptions ? i.categoryOptions.map((e) => ({
30834
30833
  text: e.name,
30835
30834
  value: e.name
30836
- })) : [], ...f.value]), v = a(() => i.practitionerOptions?.find((e) => e.value === i.modelValue?.ownerId) ?? null);
30837
- function y(e) {
30838
- ae({
30839
- ...i.modelValue,
30840
- ownerId: e?.value ?? null
30841
- });
30842
- }
30843
- let b = a(() => i.modelValue.sharedWithDepartment || []);
30844
- function x(e) {
30845
- ae({
30835
+ })) : [], ...f.value]);
30836
+ a(() => i.practitionerOptions?.find((e) => e.value === i.modelValue?.ownerId) ?? null);
30837
+ let _ = a(() => i.modelValue.sharedWithDepartment || []);
30838
+ function v(e) {
30839
+ ne({
30846
30840
  ...i.modelValue,
30847
30841
  sharedWithDepartment: e
30848
30842
  });
30849
30843
  }
30850
- be(() => i.practitionerOptions, (e = []) => {
30851
- if (e.length) {
30852
- if (e.length === 1) {
30853
- y(e[0]);
30854
- return;
30855
- }
30856
- !e.some((e) => e.value === i.modelValue.ownerId) && i.modelValue.ownerId != null && y(null);
30857
- }
30858
- }, { immediate: !0 }), a(() => {
30859
- if (i.modelValue.tag) return _.value.filter((e) => e.text.toLowerCase().indexOf(i.modelValue.tag.toLowerCase()) !== -1);
30844
+ a(() => {
30845
+ if (i.modelValue.tag) return g.value.filter((e) => e.text.toLowerCase().indexOf(i.modelValue.tag.toLowerCase()) !== -1);
30860
30846
  }), a(() => GetContentLibraryExternalProviders.value[0].img);
30861
- let S = a(() => {
30847
+ let y = a(() => {
30862
30848
  let e = i.modelValue.files || [], t = i.files || [];
30863
30849
  return [...e, ...t];
30864
30850
  });
30865
30851
  te(() => {
30866
- i.modelValue.category.length > 0 && re();
30852
+ i.modelValue.category.length > 0 && k();
30867
30853
  });
30868
- function C(e) {
30869
- e && !_.value.some((t) => t.value === e) && (f.value = [{
30854
+ function b(e) {
30855
+ e && !g.value.some((t) => t.value === e) && (f.value = [{
30870
30856
  text: e,
30871
30857
  value: e
30872
30858
  }]);
30873
30859
  }
30874
- function w(e) {
30860
+ function x(e) {
30875
30861
  o("show-attachment", e);
30876
30862
  }
30877
- function T(e) {
30863
+ function S(e) {
30878
30864
  o("action", {
30879
30865
  action: "content-library",
30880
30866
  provider: e
30881
30867
  });
30882
30868
  }
30883
- function D(e) {
30884
- k(i.files, e), k(i.modelValue.files, e);
30869
+ function C(e) {
30870
+ w(i.files, e), w(i.modelValue.files, e);
30885
30871
  }
30886
- function k(e, t) {
30872
+ function w(e, t) {
30887
30873
  let n;
30888
30874
  n = t.obj.FileId ? e.findIndex((e) => e.FileId === t.obj.FileId) : e.findIndex((e) => e.CorrelationId === t.obj.CorrelationId), n !== -1 && e.splice(n, 1);
30889
30875
  }
30890
- function ee(e) {
30891
- e.name === "delete-attachment" ? D(e) : e.name === "image-attachment" && w(e);
30876
+ function T(e) {
30877
+ e.name === "delete-attachment" ? C(e) : e.name === "image-attachment" && x(e);
30892
30878
  }
30893
- function ne() {
30879
+ function D() {
30894
30880
  r();
30895
30881
  }
30896
- function re() {
30882
+ function k() {
30897
30883
  let e = document.querySelector(".ti-new-tag-input-wrapper");
30898
30884
  e && (e.style.display = "none");
30899
30885
  }
30900
- function ie(e) {
30901
- ae({
30886
+ function ee(e) {
30887
+ ne({
30902
30888
  ...i.modelValue,
30903
30889
  category: e
30904
30890
  });
30905
30891
  }
30906
- function ae(e) {
30892
+ function ne(e) {
30907
30893
  o("update:modelValue", e), o("on-input", e);
30908
30894
  }
30909
- function oe() {
30895
+ function re() {
30910
30896
  o("change-department", i.modelValue);
30911
30897
  }
30898
+ function ie(e) {
30899
+ o("change-text", e);
30900
+ }
30912
30901
  return (n, r) => (A(), s(T_, null, {
30913
30902
  default: I(() => [
30914
30903
  m(x_, {
@@ -30934,15 +30923,15 @@ var { showSuccessToast: lY } = yO(), uY = (e, t, n) => {
30934
30923
  m(x_, { label: F(d)("messageTemplateFormModal.replyTemplateLabel") }, {
30935
30924
  default: I(() => [m(IG, {
30936
30925
  modelValue: e.modelValue.text,
30937
- "onUpdate:modelValue": r[1] ||= (t) => e.modelValue.text = t,
30926
+ "onUpdate:modelValue": [r[1] ||= (t) => e.modelValue.text = t, ie],
30938
30927
  placeholder: F(d)("messageTemplateFormModal.replyTemplatePlaceHolder"),
30939
30928
  errorText: F(d)("messageTemplateFormModal.validation"),
30940
- files: S.value,
30929
+ files: y.value,
30941
30930
  state: e.validation.text.state,
30942
30931
  variant: "full",
30943
30932
  "api-url": p.value,
30944
- onUpload: ne,
30945
- onAction: ee
30933
+ onUpload: D,
30934
+ onAction: T
30946
30935
  }, {
30947
30936
  default: I(() => [e.modelValue.pills ? (A(), l("div", TY, [u("ul", EY, [(A(!0), l(t, null, M(e.modelValue.pills, (e, t) => (A(), l("li", {
30948
30937
  key: t,
@@ -30959,58 +30948,33 @@ var { showSuccessToast: lY } = yO(), uY = (e, t, n) => {
30959
30948
  ]), m(Xg, {
30960
30949
  "content-library-providers": e.contentLibraryExternalProviders,
30961
30950
  "is-external-only": !0,
30962
- onContentLibrary: T
30951
+ onContentLibrary: S
30963
30952
  }, null, 8, ["content-library-providers"])]),
30964
30953
  _: 1
30965
30954
  }, 8, ["label"]),
30966
30955
  r[2] ||= u("div", { class: "form-splitter" }, null, -1),
30967
30956
  m(x_, { label: F(d)("messageTemplateFormModal.sharedWithLabel") }, {
30968
30957
  default: I(() => [m(wY, {
30969
- modelValue: b.value,
30970
- "onUpdate:modelValue": x,
30958
+ modelValue: _.value,
30959
+ "onUpdate:modelValue": v,
30971
30960
  options: e.departmentOptions,
30972
- onChangeDepartment: oe,
30961
+ onChangeDepartment: re,
30973
30962
  overflow: ""
30974
30963
  }, null, 8, ["modelValue", "options"])]),
30975
30964
  _: 1
30976
30965
  }, 8, ["label"]),
30977
- e.isOperator ? (A(), s(x_, {
30978
- key: 0,
30979
- label: F(d)("messageTemplateFormModal.owner"),
30980
- "label-for": "input-select-owner"
30981
- }, {
30982
- default: I(() => [m(F(eJ), {
30983
- modelValue: v.value,
30984
- "onUpdate:modelValue": y,
30985
- options: e.practitionerOptions,
30986
- label: "text",
30987
- placeholder: F(d)("messageTemplateFormModal.ownerPlaceholder")
30988
- }, null, 8, [
30989
- "modelValue",
30990
- "options",
30991
- "placeholder"
30992
- ]), m(Qg, {
30993
- class: O(g.value),
30994
- state: e.validation.ownerId.state,
30995
- text: e.validation.ownerId.errorLabel
30996
- }, null, 8, [
30997
- "class",
30998
- "state",
30999
- "text"
31000
- ])]),
31001
- _: 1
31002
- }, 8, ["label"])) : c("", !0),
30966
+ N(n.$slots, "extra-fields"),
31003
30967
  m(x_, {
31004
30968
  label: F(d)("messageTemplateFormModal.categoryLabel"),
31005
30969
  "label-for": "input-select-category"
31006
30970
  }, {
31007
30971
  default: I(() => [m(F(eJ), {
31008
30972
  modelValue: e.modelValue.category,
31009
- "onUpdate:modelValue": ie,
31010
- options: _.value,
30973
+ "onUpdate:modelValue": ee,
30974
+ options: g.value,
31011
30975
  label: "text",
31012
30976
  placeholder: F(d)("messageTemplateFormModal.categoryPlaceholderDropdown"),
31013
- onSearch: C
30977
+ onSearch: b
31014
30978
  }, null, 8, [
31015
30979
  "modelValue",
31016
30980
  "options",
@@ -31027,7 +30991,7 @@ var { showSuccessToast: lY } = yO(), uY = (e, t, n) => {
31027
30991
  _: 1
31028
30992
  }, 8, ["label"])
31029
30993
  ]),
31030
- _: 1
30994
+ _: 3
31031
30995
  }));
31032
30996
  }
31033
30997
  }, OY = {
@@ -31060,10 +31024,6 @@ var { showSuccessToast: lY } = yO(), uY = (e, t, n) => {
31060
31024
  contentLibraryExternalProviders: {
31061
31025
  type: Array,
31062
31026
  default: () => []
31063
- },
31064
- isOperator: {
31065
- type: Boolean,
31066
- default: !1
31067
31027
  }
31068
31028
  },
31069
31029
  emits: [
@@ -31121,22 +31081,24 @@ var { showSuccessToast: lY } = yO(), uY = (e, t, n) => {
31121
31081
  validation: e.validation,
31122
31082
  files: e.files,
31123
31083
  "content-library-external-providers": n.contentLibraryExternalProviders,
31124
- "is-operator": n.isOperator,
31125
31084
  onOnInput: g,
31126
31085
  onAction: f,
31127
31086
  onShowAttachment: d,
31128
- onChangeDepartment: _
31129
- }, null, 8, [
31087
+ onChangeDepartment: _,
31088
+ onChangeText: g
31089
+ }, {
31090
+ "extra-fields": I(() => [N(t.$slots, "extra-fields")]),
31091
+ _: 3
31092
+ }, 8, [
31130
31093
  "modelValue",
31131
31094
  "departmentOptions",
31132
31095
  "practitionerOptions",
31133
31096
  "categoryOptions",
31134
31097
  "validation",
31135
31098
  "files",
31136
- "content-library-external-providers",
31137
- "is-operator"
31099
+ "content-library-external-providers"
31138
31100
  ])]),
31139
- _: 1
31101
+ _: 3
31140
31102
  }, 8, [
31141
31103
  "title",
31142
31104
  "submit-button-title",