@cling-se/widget 0.5.0 → 0.5.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.
@@ -1,4 +1,4 @@
1
- import { c as se, g as Se, a as jf, n as N, C as Ya, s as Wf, e as Yf, i as Vf, r as Tc, b as Xs, m as Rc, d as Lt, f as mn, h as nt, _ as Uf, j as Ic, k as Hf, p as Gf, l as qf, o as Kf, q as Pc, V as Va, t as Ac, A as Xf, u as Zf, v as Jf, w as Qf, x as eh, F as Fc, y as Nc, z as Ua, B as th, D as rh, E as Zs, G as nh, H as ih, I as ah } from "./main.819722de.js";
1
+ import { c as se, g as Se, a as jf, n as N, C as Ya, s as Wf, e as Yf, i as Vf, r as Tc, b as Xs, m as Rc, d as Lt, f as mn, h as nt, _ as Uf, j as Ic, k as Hf, p as Gf, l as qf, o as Kf, q as Pc, V as Va, t as Ac, A as Xf, u as Zf, v as Jf, w as Qf, x as eh, F as Fc, y as Nc, z as Ua, B as th, D as rh, E as Zs, G as nh, H as ih, I as ah } from "./main.c91dd7f4.js";
2
2
  const fe = {
3
3
  AD: {
4
4
  name: "Andorra",
@@ -8553,6 +8553,14 @@ const EM = {
8553
8553
  )
8554
8554
  ],
8555
8555
  props: {
8556
+ showSave: {
8557
+ type: Boolean,
8558
+ default: !0
8559
+ },
8560
+ showSchedule: {
8561
+ type: Boolean,
8562
+ default: !0
8563
+ },
8556
8564
  setFormValue: {
8557
8565
  type: Function,
8558
8566
  required: !0
@@ -8754,9 +8762,9 @@ var TM = function() {
8754
8762
  } } })], 1), !e.useSignOrder && !e.isManualDelivery ? r("div", { staticClass: "psuedo-input relative", attrs: { tabindex: "0" }, on: { click: e.openReminders } }, [r("div", { staticClass: "psuedo-input-label" }, [e._v(e._s(e.$t("_common:reminder_plural").capitalize()))]), r("div", [e._v(" " + e._s(e.noOfReminders ? `${e.noOfReminders} ${e.$i18n.lang === "sv" ? e.$t("_common:unitType.unit") : ""}` : e.$t("_common:disabled").capitalize()) + " ")]), e.noOfReminders ? r("CButton", { staticClass: "absolute right-3 top-3", attrs: { icon: "x", size: "small", type: "none", pattern: "secondary" }, on: { click: function(n) {
8755
8763
  n.preventDefault(), n.stopPropagation(), e.reminders = [];
8756
8764
  } } }) : e._e()], 1) : e._e()], 1), e.clientsAreMissingContactInfo && !e.isManualDelivery ? r("ErrorCallout", { attrs: { message: e.$t("clientsAreMissingContactInfo"), size: "small" } }) : e._e()], 2)]), r("div", { staticClass: "px-4 pb-4 @md:px-8 @xl:px-16" }, [e._t("send", function() {
8757
- return [r("div", { staticClass: "flex" }, [r("CButton", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.$t("_common:save", { thing: e.$t("_common:document").toLowerCase() }), expression: "$t('_common:save', { thing: $t('_common:document').toLowerCase() })" }], staticClass: "mr-2 w-12", attrs: { loading: e.isPosting, type: "none", icon: "save", pattern: "secondary" }, on: { click: function(n) {
8765
+ return [r("div", { staticClass: "flex" }, [e.showSave ? r("CButton", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: e.$t("_common:save", { thing: e.$t("_common:document").toLowerCase() }), expression: "$t('_common:save', { thing: $t('_common:document').toLowerCase() })" }], staticClass: "mr-2 w-12", attrs: { loading: e.isPosting, type: "none", icon: "save", pattern: "secondary" }, on: { click: function(n) {
8758
8766
  return e.doSaveDocument();
8759
- } } }), !e.useSignOrder && !e.isManualDelivery ? r("CButton", { staticClass: "mr-2 w-12 @md:w-auto", staticStyle: { padding: "14px 16px", "border-radius": "8px", height: "initial", "font-size": "14px", "font-weight": "600" }, attrs: { disabled: e.isPosting || !e.clients.length, type: "none", pattern: "secondary" }, on: { click: e.openSendLater } }, [r("span", { staticClass: "!hidden @md:!block", domProps: { textContent: e._s(e.$t("scheduledTooltip")) } }), r("BaseIcon", { staticClass: "@md:!hidden", attrs: { type: "calendar", size: "16" } })], 1) : e._e(), r("div", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: {
8767
+ } } }) : e._e(), e.showSchedule && !e.useSignOrder && !e.isManualDelivery ? r("CButton", { staticClass: "mr-2 w-12 @md:w-auto", staticStyle: { padding: "14px 16px", "border-radius": "8px", height: "initial", "font-size": "14px", "font-weight": "600" }, attrs: { disabled: e.isPosting || !e.clients.length, type: "none", pattern: "secondary" }, on: { click: e.openSendLater } }, [r("span", { staticClass: "!hidden @md:!block", domProps: { textContent: e._s(e.$t("scheduledTooltip")) } }), r("BaseIcon", { staticClass: "@md:!hidden", attrs: { type: "calendar", size: "16" } })], 1) : e._e(), r("div", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: {
8760
8768
  content: e.clients.length ? "" : e.$t("components:account.documentForm.clients.errorMessage")
8761
8769
  }, expression: `{
8762
8770
  content: clients.length ? '' : $t('components:account.documentForm.clients.errorMessage'),
@@ -8770,7 +8778,7 @@ var TM = function() {
8770
8778
  RM,
8771
8779
  !1,
8772
8780
  null,
8773
- "ccf0eb53",
8781
+ "433b8516",
8774
8782
  null,
8775
8783
  null
8776
8784
  );
@@ -10869,6 +10877,16 @@ const Ec = Va.observable({
10869
10877
  SendForm: PM
10870
10878
  },
10871
10879
  provide: () => ({ viewSettings: Ec }),
10880
+ props: {
10881
+ showSave: {
10882
+ type: Boolean,
10883
+ default: !0
10884
+ },
10885
+ showSchedule: {
10886
+ type: Boolean,
10887
+ default: !0
10888
+ }
10889
+ },
10872
10890
  data() {
10873
10891
  return {
10874
10892
  document: null
@@ -10926,7 +10944,7 @@ var OT = function() {
10926
10944
  clients: "clients",
10927
10945
  reminders: "data.reminders",
10928
10946
  name: "data.name"
10929
- }, "set-form-value": e.setDocValue, "remove-form-value": e.removeDocValue, "use-scroll": "" } }) : r("div", { staticClass: "w-full h-full grid place-items-center" }, [r("BaseIcon", { staticClass: "animate-spin text-gray-400", attrs: { type: "loader", size: 28 } })], 1);
10947
+ }, "show-save": e.showSave, "show-schedule": e.showSchedule, "set-form-value": e.setDocValue, "remove-form-value": e.removeDocValue, "use-scroll": "" } }) : r("div", { staticClass: "w-full h-full grid place-items-center" }, [r("BaseIcon", { staticClass: "animate-spin text-gray-400", attrs: { type: "loader", size: 28 } })], 1);
10930
10948
  }, kT = [], DT = /* @__PURE__ */ N(
10931
10949
  xT,
10932
10950
  OT,
@@ -1,4 +1,4 @@
1
- import { f as g, h as p, n as u } from "./main.819722de.js";
1
+ import { f as g, h as p, n as u } from "./main.c91dd7f4.js";
2
2
  const _ = {
3
3
  name: "DocumentReceipt",
4
4
  i18nOptions: {
@@ -1,4 +1,4 @@
1
- import { d, f as c, h as l, n as r } from "./main.819722de.js";
1
+ import { d, f as c, h as l, n as r } from "./main.c91dd7f4.js";
2
2
  const m = {
3
3
  name: "DocumentSendReminderModal",
4
4
  props: {
@@ -1,4 +1,4 @@
1
- import { n as p, i as g, J as f, d as x } from "./main.819722de.js";
1
+ import { n as p, i as g, J as f, d as x } from "./main.c91dd7f4.js";
2
2
  const $ = {
3
3
  name: "DynamicLink",
4
4
  props: {