@cling-se/widget 0.14.3 → 0.14.4
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/.eslintrc.cjs +4 -4
- package/README.md +40 -40
- package/package.json +1 -1
- package/tsconfig.json +26 -26
- package/tsconfig.node.json +10 -10
- package/tsconfig.paths.json +17 -17
- package/vite.config.ts +61 -61
- package/dist/AddClientCallout-DKH-LP5B.js +0 -46
- package/dist/AnswerModal-BCbq8wc4.js +0 -3869
- package/dist/AttachmentItem-60CSZnkF.js +0 -78
- package/dist/BaseDatePicker-Cl8SnC1k.js +0 -3183
- package/dist/BaseUpload-D4FCjlhL.js +0 -1977
- package/dist/BlockMedia-CqkwdGnE.js +0 -76
- package/dist/CCallout-BTBgU8f-.js +0 -59
- package/dist/CCurrencyDropdown-CL32Mo-Y.js +0 -246
- package/dist/CDropdownItem-DlWtQwO6.js +0 -538
- package/dist/CField.vue_vue_type_style_index_0_lang-l0sNRNKZ.js +0 -1
- package/dist/CFormField-BxJv-nUO.js +0 -241
- package/dist/CPhoneFormat-CJ9kndtJ.js +0 -62
- package/dist/CPriceInput-BpXI5X2j.js +0 -112
- package/dist/CTabs.vue_vue_type_style_index_0_scoped_e02a6440_lang-l0sNRNKZ.js +0 -1
- package/dist/ClientAutocomplete-D9Dj9iBW.js +0 -78
- package/dist/ClientModal-JOt8NGcR.js +0 -625
- package/dist/ColorPicker-uPKD-Gvm.js +0 -2879
- package/dist/CompanyModal-7bG0iIRd.js +0 -141
- package/dist/ContentWrapper-B2nyZHL4.js +0 -183
- package/dist/CoverBlockSettings-C1O_FAde.js +0 -275
- package/dist/DocAnswer-B9G-y4Px.js +0 -36
- package/dist/DocDetails-DYHxKChO.js +0 -246
- package/dist/DocForm-BktEXjML.js +0 -7273
- package/dist/DocFormSend-DM6QgUOj.js +0 -143
- package/dist/DocLinks-BIGwfB3H.js +0 -38
- package/dist/DocModalBase-D5GdwTI7.js +0 -28
- package/dist/DocPrint-HqbaIGms.js +0 -240
- package/dist/DocReceipt-WXo6vWyW.js +0 -210
- package/dist/DocSendReminder-C8dNEpLg.js +0 -137
- package/dist/DocTextEditor-BfOZFDTP.js +0 -17177
- package/dist/DocTimeline-CitwS9px.js +0 -481
- package/dist/DocumentClient-CQ_z8ajY.js +0 -136
- package/dist/DocumentLayout-BA7mFfZh.js +0 -4909
- package/dist/DocumentLogotype-woc_hfll.js +0 -87
- package/dist/DocumentVoided-DC4FzpxG.js +0 -25
- package/dist/EmbedInput-CheqYcNr.js +0 -113
- package/dist/EmbedSettings-YcwM8hJw.js +0 -72
- package/dist/ErrorCallout-6pCYcx00.js +0 -28
- package/dist/FilePreviewModal-T8AiphqO.js +0 -81
- package/dist/Flag-Ddm6a4Il.js +0 -114
- package/dist/HeaderSettings-DHdZweJH.js +0 -392
- package/dist/ImageSelectModal-CAoBhnI8.js +0 -84
- package/dist/ImageUploadWrapper-CNv59Lhh.js +0 -1604
- package/dist/Index-B6S9U4Z-.js +0 -26
- package/dist/Index-BHX0D5fW.js +0 -559
- package/dist/Index-BL_7m5Ca.js +0 -70
- package/dist/Index-BXMXEUfo.js +0 -223
- package/dist/Index-BhVBvMu6.js +0 -32
- package/dist/Index-Bl_SNW80.js +0 -25
- package/dist/Index-BsguntKl.js +0 -21
- package/dist/Index-CGYjPfsf.js +0 -2402
- package/dist/Index-CKrGb3of.js +0 -61
- package/dist/Index-CMNrQo5a.js +0 -140
- package/dist/Index-CU50Al5c.js +0 -642
- package/dist/Index-CdqrrZxd.js +0 -77
- package/dist/Index-CfnL9dAw.js +0 -58
- package/dist/Index-CuW0MYrT.js +0 -171
- package/dist/Index-D-z8JSn6.js +0 -154
- package/dist/Index-D8giJ_bs.js +0 -84
- package/dist/Index-DDvfqy_h.js +0 -24
- package/dist/Index-DQDalqZ-.js +0 -107
- package/dist/Index-DTIPKKkV.js +0 -150
- package/dist/Index-DWxzUBff.js +0 -754
- package/dist/Index-DaNGeDQw.js +0 -144
- package/dist/Index-DfLU_AyN.js +0 -49
- package/dist/Index-DkVav_I7.js +0 -25
- package/dist/Index-Dxp8QAtB.js +0 -57
- package/dist/Index-DzjxFkcv.js +0 -52
- package/dist/Index-EwUJJWaB.js +0 -69
- package/dist/Index-I60qAqLl.js +0 -31
- package/dist/Index-LfF-7lQK.js +0 -292
- package/dist/Index-P0_dyc2V.js +0 -45
- package/dist/Index-RQMPSeHw.js +0 -98
- package/dist/Index-oipNLl3Y.js +0 -46
- package/dist/Index-sJq2Iyvt.js +0 -62
- package/dist/Index-uubi3NHX.js +0 -33
- package/dist/Index-vNj2kYZT.js +0 -55
- package/dist/InputToggleRow-B2pWvVyx.js +0 -57
- package/dist/ManualPopover-BI_Sf1zG.js +0 -54
- package/dist/MediaWrapper-eFpWxv3n.js +0 -23
- package/dist/NotBindingText-DA5NpePz.js +0 -32
- package/dist/PackageGroup-DOSijBdN.js +0 -699
- package/dist/PdfTerms-Q5YuVtrJ.js +0 -36
- package/dist/PdfViewer-zcWl8XZT.js +0 -374
- package/dist/PlainHtml-BmA83UAm.js +0 -20
- package/dist/PriceHeader-C14L5zgG.js +0 -339
- package/dist/SearchApi-CGT7-jVf.js +0 -161
- package/dist/Setup-RJQvZlDO.js +0 -50
- package/dist/SmartList-YosKRPVn.js +0 -83
- package/dist/TermsSettings-C5JTv7rT.js +0 -102
- package/dist/ThemeColorRow-D-C_tm2f.js +0 -63
- package/dist/ToggleBinding-KEVHHvKf.js +0 -38
- package/dist/UploadModal-DOYoWELI.js +0 -95
- package/dist/VideoPlayerInput-Dxb6CNk-.js +0 -93
- package/dist/VideoPlayerSettings-DsVN4Ix-.js +0 -61
- package/dist/VideoSelectModal-BpfzNx61.js +0 -100
- package/dist/anime.es-BrPTThYb.js +0 -858
- package/dist/answerDocumentMixin-BJMGrfUs.js +0 -51
- package/dist/color-TdtKxwVa.js +0 -19
- package/dist/debounce-BN83gOVd.js +0 -84
- package/dist/dom-CJxkno7i.js +0 -91
- package/dist/favicon.ico +0 -0
- package/dist/focusDrawerMixin-CawyQaGq.js +0 -22
- package/dist/formComponentsInstall-jcnyQ1zw.js +0 -2494
- package/dist/formDrawerState-BdNohvZH.js +0 -20
- package/dist/formValidationMixin-DOwgebZk.js +0 -49
- package/dist/i18nMessages-Chz_lxGG.js +0 -17
- package/dist/index-BBJIOkm_.js +0 -347
- package/dist/index-BNq9YCWc.js +0 -166
- package/dist/index-BdhbkLLU.js +0 -81
- package/dist/index-COf8F6CL.js +0 -3916
- package/dist/index-D0WvZHX_.js +0 -102
- package/dist/index-DTzZP4yq.js +0 -492
- package/dist/index.es.js +0 -35
- package/dist/index.umd.js +0 -3148
- package/dist/main-DE5THsiR.js +0 -56739
- package/dist/mapFormMixin-y2txvLw9.js +0 -72
- package/dist/omit-BrsWQAtU.js +0 -31
- package/dist/publicSenderState-BYsq95Vt.js +0 -21
- package/dist/splitpanes-BHUVsCZF.js +0 -382
- package/dist/style.css +0 -4
- package/dist/throttle-C2srA2wa.js +0 -18
- package/dist/tinycolor-SjV_ROuP.js +0 -633
- package/dist/tippy.esm-Dj7DQppr.js +0 -1799
- package/dist/utils-16HMuRfY.js +0 -108
- package/dist/vuedraggable.umd-Cd1g2Hr7.js +0 -3161
- package/dist/vuex.esm-DKGl8mcw.js +0 -467
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { a } from "./publicSenderState-BYsq95Vt.js";
|
|
2
|
-
import { g as s, n as l } from "./main-DE5THsiR.js";
|
|
3
|
-
import { m as p, a as r } from "./vuex.esm-DKGl8mcw.js";
|
|
4
|
-
const c = {
|
|
5
|
-
name: "DocumentLogotype",
|
|
6
|
-
components: {
|
|
7
|
-
ImageUploadWrapper: () => import("./ImageUploadWrapper-CNv59Lhh.js")
|
|
8
|
-
},
|
|
9
|
-
inject: {
|
|
10
|
-
viewSettings: {
|
|
11
|
-
default: () => ({
|
|
12
|
-
canEdit: !1,
|
|
13
|
-
isPublicForm: !1
|
|
14
|
-
})
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
props: {
|
|
18
|
-
value: {
|
|
19
|
-
type: String,
|
|
20
|
-
default: null
|
|
21
|
-
},
|
|
22
|
-
companyLogotype: {
|
|
23
|
-
type: String,
|
|
24
|
-
default: null
|
|
25
|
-
},
|
|
26
|
-
showLogo: {
|
|
27
|
-
type: Boolean,
|
|
28
|
-
default: !0
|
|
29
|
-
},
|
|
30
|
-
hasHover: {
|
|
31
|
-
type: Boolean,
|
|
32
|
-
default: !1
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
computed: {
|
|
36
|
-
...p({
|
|
37
|
-
isPosting: "companies/isPosting"
|
|
38
|
-
}),
|
|
39
|
-
logotype() {
|
|
40
|
-
return this.value || this.companyLogotype || "";
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
methods: {
|
|
44
|
-
...r({
|
|
45
|
-
updateCompany: s.DO_UPDATE_CURRENT_COMPANY
|
|
46
|
-
}),
|
|
47
|
-
initUpload() {
|
|
48
|
-
this.$refs.uploadWrapper && this.$refs.uploadWrapper.onClick();
|
|
49
|
-
},
|
|
50
|
-
async setLogotype({ response: e }) {
|
|
51
|
-
const { publicId: t, url: o } = e || {};
|
|
52
|
-
o && this.$emit("input", o), !this.companyLogotype && t && await this.postLogo(t);
|
|
53
|
-
},
|
|
54
|
-
async postLogo(e) {
|
|
55
|
-
if (this.isPosting)
|
|
56
|
-
return;
|
|
57
|
-
const t = { LogotypePublicId: e };
|
|
58
|
-
this.viewSettings.isPublicForm ? a({ company: t }) : await this.updateCompany({ body: t });
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
var m = function() {
|
|
63
|
-
var t = this, o = t._self._c;
|
|
64
|
-
return t.viewSettings.canEdit ? o("ImageUploadWrapper", { ref: "uploadWrapper", staticStyle: { display: "inline-block", width: "fit-content", "will-change": "opacity", "z-index": "3" }, attrs: { "on-image-upload": t.setLogotype, "upload-options": { maxWidth: 500, maxHeight: 300 } }, scopedSlots: t._u([{ key: "default", fn: function({ progress: n }) {
|
|
65
|
-
return [o("CDropdown", { attrs: { position: "is-bottom-right" }, nativeOn: { click: function(i) {
|
|
66
|
-
i.stopPropagation();
|
|
67
|
-
} } }, [o("template", { slot: "trigger" }, [t.logotype && t.showLogo ? o("div", { staticClass: "logo", staticStyle: { "min-height": "35px" } }, [o("img", { staticClass: "hover:outline-primary-500 hover:outline hover:outline-2", attrs: { src: t.logotype, alt: "", width: "150" } })]) : o("CButton", { staticClass: "button-logo", style: !t.hasHover && {
|
|
68
|
-
visibility: "hidden",
|
|
69
|
-
pointerEvents: "none"
|
|
70
|
-
}, attrs: { loading: !!n && n < 100 || t.isPosting, type: "text", size: "normal", pattern: "secondary" } }, [t._v(" " + t._s(t.$t("_common:logo").capitalize()) + " ")])], 1), o("CDropdownItem", { attrs: { value: t.showLogo, "close-on-click": !1, toggle: "" }, on: { input: function(i) {
|
|
71
|
-
return t.$emit("update:show-logo", i);
|
|
72
|
-
} } }, [t._v(" " + t._s(t.$t("_common:show", { thing: t.$t("_common:logotype") })) + " ")]), t.showLogo ? [o("CDropdownItem", { attrs: { separator: !0 } }), o("CDropdownItem", { on: { click: t.initUpload } }, [t._v(" " + t._s(t.$t("_common:change", { thing: t.$t("_common:logotype") })) + " ")]), o("CDropdownItem", { attrs: { disabled: !t.value }, on: { click: function(i) {
|
|
73
|
-
return t.$emit("input", "");
|
|
74
|
-
} } }, [t._v(" " + t._s(t.$t("_common:reset")) + " ")])] : t._e()], 2)];
|
|
75
|
-
} }], null, !1, 818564773) }) : t.showLogo ? o("div", { staticStyle: { display: "inline-block" } }, [o("img", { attrs: { src: t.logotype, alt: "", width: "150" } })]) : t._e();
|
|
76
|
-
}, u = [], g = /* @__PURE__ */ l(
|
|
77
|
-
c,
|
|
78
|
-
m,
|
|
79
|
-
u,
|
|
80
|
-
!1,
|
|
81
|
-
null,
|
|
82
|
-
"ad15ba8a"
|
|
83
|
-
);
|
|
84
|
-
const f = g.exports;
|
|
85
|
-
export {
|
|
86
|
-
f as default
|
|
87
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { n } from "./main-DE5THsiR.js";
|
|
2
|
-
const s = {
|
|
3
|
-
name: "DocumentVoided",
|
|
4
|
-
props: {
|
|
5
|
-
document: {
|
|
6
|
-
type: Object,
|
|
7
|
-
required: !0
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
var o = function() {
|
|
12
|
-
var t = this, e = t._self._c;
|
|
13
|
-
return e("div", { staticClass: "grid h-full place-items-center text-center" }, [e("div", { staticClass: "py-12" }, [e("CIcon", { staticClass: "text-primary-500 mb-2", attrs: { type: "info" } }), e("div", { staticClass: "text-lg font-medium", domProps: { textContent: t._s(t.document.$t("documentVoided.title")) } }), e("div", { staticClass: "text-gray-700", domProps: { textContent: t._s(t.document.$t("documentVoided.description")) } })], 1)]);
|
|
14
|
-
}, r = [], c = /* @__PURE__ */ n(
|
|
15
|
-
s,
|
|
16
|
-
o,
|
|
17
|
-
r,
|
|
18
|
-
!1,
|
|
19
|
-
null,
|
|
20
|
-
null
|
|
21
|
-
);
|
|
22
|
-
const a = c.exports;
|
|
23
|
-
export {
|
|
24
|
-
a as D
|
|
25
|
-
};
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import { d } from "./debounce-BN83gOVd.js";
|
|
2
|
-
import { b as l, n as o } from "./main-DE5THsiR.js";
|
|
3
|
-
const m = (t) => {
|
|
4
|
-
const i = new DOMParser().parseFromString(t, "text/html"), [a] = l(i, "body.children") || [];
|
|
5
|
-
return !a || a.tagName !== "IFRAME" ? {} : Array.from(a.attributes).reduce(
|
|
6
|
-
(s, { name: r, value: n }) => ({ ...s, [r]: n }),
|
|
7
|
-
{}
|
|
8
|
-
);
|
|
9
|
-
}, u = (t) => {
|
|
10
|
-
if (typeof t != "object" || !t)
|
|
11
|
-
return "";
|
|
12
|
-
const e = document.createElement("iframe");
|
|
13
|
-
return Object.keys(t).forEach((i) => e.setAttribute(i, t[i])), e.hasAttribute("src") ? e.outerHTML : "";
|
|
14
|
-
}, c = (t) => /^(?:https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9]+\.[^\s]{2,}|www\.[a-zA-Z0-9]+\.[^\s]{2,})/gi.test(
|
|
15
|
-
t
|
|
16
|
-
), p = {
|
|
17
|
-
name: "EmbedInput",
|
|
18
|
-
i18nOptions: {
|
|
19
|
-
namespaces: "embedInput",
|
|
20
|
-
messages: {
|
|
21
|
-
en: {
|
|
22
|
-
placeholder: "Paste embed link",
|
|
23
|
-
validations: {
|
|
24
|
-
embed: {
|
|
25
|
-
isValid: "No supported source found"
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
sv: {
|
|
30
|
-
placeholder: "Klista in inbäddningslänk",
|
|
31
|
-
validations: {
|
|
32
|
-
embed: {
|
|
33
|
-
isValid: "Ingen källa kunde hittas"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
props: {
|
|
40
|
-
value: {
|
|
41
|
-
type: Object,
|
|
42
|
-
default: () => ({})
|
|
43
|
-
},
|
|
44
|
-
isDrawerMode: {
|
|
45
|
-
type: Boolean,
|
|
46
|
-
default: !1
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
data() {
|
|
50
|
-
return {
|
|
51
|
-
isLoading: !1,
|
|
52
|
-
embed: {},
|
|
53
|
-
// TODO: could remove the template string in the input and only parse/validate input strings
|
|
54
|
-
// TODO: would
|
|
55
|
-
iFrameTplString: "",
|
|
56
|
-
inputPlaceholder: '<iframe style="border: 1px solid rgba(0, 0, 0, 0.1)...'
|
|
57
|
-
};
|
|
58
|
-
},
|
|
59
|
-
validations() {
|
|
60
|
-
return {
|
|
61
|
-
embed: { isValid: (t) => t && c(t.src) }
|
|
62
|
-
};
|
|
63
|
-
},
|
|
64
|
-
computed: {
|
|
65
|
-
messages() {
|
|
66
|
-
return {
|
|
67
|
-
embed: { isValid: this.$t("validations.embed.isValid") }
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
-
watch: {
|
|
72
|
-
value: {
|
|
73
|
-
immediate: !0,
|
|
74
|
-
handler(t) {
|
|
75
|
-
this.embed = Object.assign({}, t), this.iFrameTplString = u(this.embed);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
methods: {
|
|
80
|
-
onInput: d(function(e) {
|
|
81
|
-
this.$v.$reset(), e && this.validateInput(e);
|
|
82
|
-
}, 500),
|
|
83
|
-
async validateInput(t) {
|
|
84
|
-
this.isLoading = !0, this.embed = await m(t), this.embed.src || (this.embed.src = t), this.$v.$invalid || this.$emit("input", this.embed), this.isLoading = !1, this.$v.$touch();
|
|
85
|
-
},
|
|
86
|
-
focus() {
|
|
87
|
-
this.$refs.input && this.$refs.input.focus();
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
var f = function() {
|
|
92
|
-
var e = this, i = e._self._c;
|
|
93
|
-
return i("CField", { style: e.isDrawerMode && {
|
|
94
|
-
display: "flex",
|
|
95
|
-
flexDirection: "column",
|
|
96
|
-
alignItems: "flex-start"
|
|
97
|
-
}, attrs: { grouped: !e.isDrawerMode } }, [i("CField", { staticStyle: { width: "100%" }, attrs: { validator: e.$v.embed, messages: e.messages.embed, expanded: "" } }, [i("CInput", { ref: "input", attrs: { placeholder: e.inputPlaceholder, size: e.isDrawerMode ? "small" : void 0, loading: e.isLoading, filled: e.isDrawerMode, "auto-resize": !0, type: "textarea", expanded: "" }, on: { input: e.onInput }, model: { value: e.iFrameTplString, callback: function(a) {
|
|
98
|
-
e.iFrameTplString = a;
|
|
99
|
-
}, expression: "iFrameTplString" } })], 1), i("CButton", { attrs: { disabled: e.isLoading, size: e.isDrawerMode ? "small" : void 0, type: "secondary" }, on: { click: function(a) {
|
|
100
|
-
return e.validateInput(e.iFrameTplString);
|
|
101
|
-
} } }, [e._v(" " + e._s(e.$t("_common:add")) + " ")])], 1);
|
|
102
|
-
}, h = [], b = /* @__PURE__ */ o(
|
|
103
|
-
p,
|
|
104
|
-
f,
|
|
105
|
-
h,
|
|
106
|
-
!1,
|
|
107
|
-
null,
|
|
108
|
-
null
|
|
109
|
-
);
|
|
110
|
-
const v = b.exports;
|
|
111
|
-
export {
|
|
112
|
-
v as default
|
|
113
|
-
};
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import n from "./EmbedInput-CheqYcNr.js";
|
|
2
|
-
import { n as l } from "./main-DE5THsiR.js";
|
|
3
|
-
const o = {
|
|
4
|
-
i18nOptions: {
|
|
5
|
-
namespaces: "embedSettings",
|
|
6
|
-
messages: {
|
|
7
|
-
en: {
|
|
8
|
-
title: "Embed - iFrame",
|
|
9
|
-
subTitle: "Embed anything (PDFs, Google Docs, Calender Sheets...)",
|
|
10
|
-
responsiveSize: "Responsive size"
|
|
11
|
-
},
|
|
12
|
-
sv: {
|
|
13
|
-
title: "Bädda in - iFrame",
|
|
14
|
-
subTitle: "Bädda in vad som helst (PDF:er, Google Docs, Calender Sheets...)",
|
|
15
|
-
responsiveSize: "Responsiv storlek"
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
name: "EmbedSettings",
|
|
20
|
-
components: {
|
|
21
|
-
EmbedInput: n
|
|
22
|
-
},
|
|
23
|
-
props: {
|
|
24
|
-
value: {
|
|
25
|
-
type: Object,
|
|
26
|
-
default: () => ({})
|
|
27
|
-
},
|
|
28
|
-
size: {
|
|
29
|
-
type: String,
|
|
30
|
-
default: "small"
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
computed: {
|
|
34
|
-
sizeOptions() {
|
|
35
|
-
return [
|
|
36
|
-
{
|
|
37
|
-
value: "small",
|
|
38
|
-
svg: '<g fill-rule="nonzero" fill="none"><path d="M0 0h99v65H0z"/><path d="M22 16h56a2 2 0 012 2v30a2 2 0 01-2 2H22a2 2 0 01-2-2V18a2 2 0 012-2zm0 40h56a2 2 0 012 2v7H20v-7a2 2 0 012-2zM20 0h60v7a2 2 0 01-2 2H22a2 2 0 01-2-2V0z" fill="currentColor"/></g>'
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
value: "medium",
|
|
42
|
-
svg: '<g fill-rule="nonzero" fill="none"><path d="M0 0h99v65H0z"/><path d="M11 14h76a2 2 0 012 2v33a2 2 0 01-2 2H11a2 2 0 01-2-2V16a2 2 0 012-2zm8-14h60v6a2 2 0 01-2 2H21a2 2 0 01-2-2V0zm2 58h56a2 2 0 012 2v5H19v-5a2 2 0 012-2z" fill="currentColor"/></g>'
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
value: "large",
|
|
46
|
-
svg: '<g fill-rule="nonzero" fill="none"><path d="M0 0h99v65H0z"/><path d="M8 7h84a2 2 0 012 2v42a2 2 0 01-2 2H8a2 2 0 01-2-2V9a2 2 0 012-2zm13 51h56a2 2 0 012 2v5H19v-5a2 2 0 012-2z" fill="currentColor"/></g>'
|
|
47
|
-
}
|
|
48
|
-
];
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
var r = function() {
|
|
53
|
-
var e = this, t = e._self._c;
|
|
54
|
-
return t("div", { staticClass: "d-root" }, [t("div", { staticClass: "d-option" }, [t("div", { staticClass: "d-option-title" }, [e._v(e._s(e.$t("title").capitalize()))]), t("div", { staticClass: "text-gray-600", staticStyle: { "padding-bottom": "1em" } }, [e._v(" " + e._s(e.$t("subTitle")) + " ")]), t("EmbedInput", { attrs: { value: e.value, "is-drawer-mode": !0 }, on: { input: function(i) {
|
|
55
|
-
return e.$emit("input", i);
|
|
56
|
-
} } })], 1), t("div", { staticClass: "d-option" }, [t("div", { staticClass: "d-option-title" }, [t("div", { staticStyle: { flex: "1 1 auto" } }, [e._v(" " + e._s(e.$t("responsiveSize")) + " ")]), t("CSwitch", { staticStyle: { "margin-right": "0" }, attrs: { value: !!e.size, size: "small", type: "secondary" }, on: { input: (i) => e.$emit("update:size", i ? "small" : null) } })], 1), e.size ? t("div", { staticStyle: { display: "flex", "flex-direction": "row", "flex-wrap": "wrap", "padding-top": "5px" } }, e._l(e.sizeOptions, function({ value: i, svg: s }, a) {
|
|
57
|
-
return t("div", { key: a, staticClass: "size-option", on: { click: function(m) {
|
|
58
|
-
return e.$emit("update:size", i);
|
|
59
|
-
} } }, [t("svg", { staticClass: "size-option-image", class: { "is-active": e.size === i }, attrs: { viewBox: "0 0 99 65" }, domProps: { innerHTML: e._s(s) } })]);
|
|
60
|
-
}), 0) : e._e()])]);
|
|
61
|
-
}, d = [], v = /* @__PURE__ */ l(
|
|
62
|
-
o,
|
|
63
|
-
r,
|
|
64
|
-
d,
|
|
65
|
-
!1,
|
|
66
|
-
null,
|
|
67
|
-
"5e441f83"
|
|
68
|
-
);
|
|
69
|
-
const z = v.exports;
|
|
70
|
-
export {
|
|
71
|
-
z as default
|
|
72
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./main-DE5THsiR.js";
|
|
2
|
-
const a = {
|
|
3
|
-
name: "ErrorCallout",
|
|
4
|
-
props: {
|
|
5
|
-
message: {
|
|
6
|
-
type: String,
|
|
7
|
-
required: !0
|
|
8
|
-
},
|
|
9
|
-
size: {
|
|
10
|
-
type: String,
|
|
11
|
-
default: "normal"
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
var s = function(r, t) {
|
|
16
|
-
return r("div", { staticClass: "flex items-center", class: [t.data.staticClass], staticStyle: { "margin-top": "calc(1 * var(--rem))" }, style: [t.data.staticStyle] }, [r("div", { staticClass: "error-wrapper bg-red-50 text-red-500", class: [`is-${t.props.size}`], staticStyle: { margin: "calc(1 * var(--rem)) 0" } }, [r("CIcon", { staticStyle: { "margin-right": "0.5em", flex: "0 0 18px" }, attrs: { type: "alert", size: "18" } }), r("div", [t._v(" " + t._s(t.props.message) + " ")])], 1)]);
|
|
17
|
-
}, i = [], n = /* @__PURE__ */ e(
|
|
18
|
-
a,
|
|
19
|
-
s,
|
|
20
|
-
i,
|
|
21
|
-
!0,
|
|
22
|
-
null,
|
|
23
|
-
"a90b7cb8"
|
|
24
|
-
);
|
|
25
|
-
const c = n.exports;
|
|
26
|
-
export {
|
|
27
|
-
c as E
|
|
28
|
-
};
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { V as n } from "./PdfViewer-zcWl8XZT.js";
|
|
2
|
-
import { n as o, S as r } from "./main-DE5THsiR.js";
|
|
3
|
-
const a = {
|
|
4
|
-
name: "FilesPreviewModal",
|
|
5
|
-
components: {
|
|
6
|
-
Spinner: r,
|
|
7
|
-
VuePdf: n
|
|
8
|
-
},
|
|
9
|
-
props: {
|
|
10
|
-
index: {
|
|
11
|
-
type: Number,
|
|
12
|
-
default: 0
|
|
13
|
-
},
|
|
14
|
-
list: {
|
|
15
|
-
type: Array,
|
|
16
|
-
required: !0
|
|
17
|
-
}
|
|
18
|
-
},
|
|
19
|
-
data() {
|
|
20
|
-
return {
|
|
21
|
-
isLoading: !0,
|
|
22
|
-
currentIndex: this.index
|
|
23
|
-
};
|
|
24
|
-
},
|
|
25
|
-
computed: {
|
|
26
|
-
isPdf() {
|
|
27
|
-
return this.list[this.currentIndex].mime === "application/pdf";
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
mounted() {
|
|
31
|
-
window.addEventListener("keyup", this.handleKey, { capture: !0 }), this.toggleIsLoading();
|
|
32
|
-
},
|
|
33
|
-
beforeDestroy() {
|
|
34
|
-
window.removeEventListener("keyup", this.handleKey, { capture: !0 });
|
|
35
|
-
},
|
|
36
|
-
methods: {
|
|
37
|
-
onGo(i) {
|
|
38
|
-
const t = this.currentIndex + i;
|
|
39
|
-
this.list[t] && (this.currentIndex = t, this.toggleIsLoading());
|
|
40
|
-
},
|
|
41
|
-
toggleIsLoading() {
|
|
42
|
-
this.isLoading = !0, setTimeout(() => {
|
|
43
|
-
this.isLoading = !1;
|
|
44
|
-
}, 1e3);
|
|
45
|
-
},
|
|
46
|
-
handleKey(i) {
|
|
47
|
-
i.stopPropagation(), parseInt(i.keyCode, 10) === 37 && this.onGo(-1), parseInt(i.keyCode, 10) === 39 && this.onGo(1);
|
|
48
|
-
const t = i.key || i.keyCode;
|
|
49
|
-
(t === "Escape" || t === "Esc" || t === 27) && this.$emit("close");
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
var l = function() {
|
|
54
|
-
var t = this, e = t._self._c;
|
|
55
|
-
return e("div", { staticClass: "flex w-full flex-col", staticStyle: { height: "100%" } }, [e("div", { staticClass: "image-modal-overlay" }), e("div", { staticClass: "image-modal-nav", staticStyle: { "z-index": "2" } }, [e("div", { staticClass: "truncate-text", staticStyle: { "align-items": "center", display: "flex" } }, [e("div", { staticClass: "truncate-text" }, [t._v(t._s(t.list[t.currentIndex].name))])]), e("div", { staticStyle: { display: "flex" } }, [e("div", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: t.$t("show", { thing: t.$t("previous") }), expression: "$t('show', { thing: $t('previous') })" }], staticClass: "image-modal-nav-button", class: { disabled: !t.list[t.currentIndex - 1] }, on: { click: function(s) {
|
|
56
|
-
return t.onGo(-1);
|
|
57
|
-
} } }, [e("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "22", height: "22", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [e("path", { attrs: { d: "M19 12H6M12 5l-7 7 7 7" } })])]), e("div", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: t.$t("show", { thing: t.$t("next") }), expression: "$t('show', { thing: $t('next') })" }], staticClass: "image-modal-nav-button", class: { disabled: !t.list[t.currentIndex + 1] }, on: { click: function(s) {
|
|
58
|
-
return t.onGo(1);
|
|
59
|
-
} } }, [e("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "22", height: "22", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [e("path", { attrs: { d: "M5 12h13M12 5l7 7-7 7" } })])]), e("a", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: t.$t("download"), expression: "$t('download')" }], staticClass: "image-modal-nav-button", attrs: { href: t.list[t.currentIndex].url, target: "_blank", download: "" } }, [e("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "22", height: "22", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [e("path", { attrs: { d: "M3 15v4c0 1.1.9 2 2 2h14a2 2 0 0 0 2-2v-4M17 9l-5 5-5-5M12 12.8V2.5" } })])]), e("div", { directives: [{ name: "tooltip", rawName: "v-tooltip", value: t.$t("close"), expression: "$t('close')" }], staticClass: "image-modal-nav-button", on: { click: function(s) {
|
|
60
|
-
return t.$emit("close");
|
|
61
|
-
} } }, [e("svg", { attrs: { xmlns: "http://www.w3.org/2000/svg", width: "22", height: "22", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" } }, [e("line", { attrs: { x1: "18", y1: "6", x2: "6", y2: "18" } }), e("line", { attrs: { x1: "6", y1: "6", x2: "18", y2: "18" } })])])])]), e("div", { staticClass: "content-container flex w-full items-center justify-center", staticStyle: { position: "relative" }, on: { click: function(s) {
|
|
62
|
-
return t.$emit("close");
|
|
63
|
-
} } }, [t.isLoading ? e("Spinner", { staticStyle: { position: "absolute", left: "50%", top: "50%", transform: "translate(-50%, -50%)" }, attrs: { size: "50px" } }) : t._e(), t.isPdf ? e("div", { staticClass: "pdf-root" }, [e("VuePdf", { staticClass: "pdf-page", attrs: { src: t.list[t.currentIndex].url }, on: { rendered: () => {
|
|
64
|
-
t.isLoading = !1;
|
|
65
|
-
} }, nativeOn: { click: function(s) {
|
|
66
|
-
s.stopPropagation();
|
|
67
|
-
} } })], 1) : t.isLoading ? t._e() : e("img", { staticClass: "modal-image", attrs: { src: t.list[t.currentIndex].url }, on: { load: function(s) {
|
|
68
|
-
t.isLoading = !1;
|
|
69
|
-
} } })], 1)]);
|
|
70
|
-
}, d = [], c = /* @__PURE__ */ o(
|
|
71
|
-
a,
|
|
72
|
-
l,
|
|
73
|
-
d,
|
|
74
|
-
!1,
|
|
75
|
-
null,
|
|
76
|
-
"76622471"
|
|
77
|
-
);
|
|
78
|
-
const p = c.exports;
|
|
79
|
-
export {
|
|
80
|
-
p as default
|
|
81
|
-
};
|
package/dist/Flag-Ddm6a4Il.js
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { R as c, n as _ } from "./main-DE5THsiR.js";
|
|
2
|
-
var m = {
|
|
3
|
-
name: "simplebar-vue",
|
|
4
|
-
mounted: function() {
|
|
5
|
-
var e = c.getOptions(this.$refs.element.attributes);
|
|
6
|
-
this.SimpleBar = new c(this.$refs.element, e);
|
|
7
|
-
},
|
|
8
|
-
computed: {
|
|
9
|
-
scrollElement: function() {
|
|
10
|
-
return this.$refs.scrollElement;
|
|
11
|
-
},
|
|
12
|
-
contentElement: function() {
|
|
13
|
-
return this.$refs.contentElement;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}, d = m, o = function() {
|
|
17
|
-
var e = this, s = e.$createElement, r = e._self._c || s;
|
|
18
|
-
return r("div", {
|
|
19
|
-
ref: "element"
|
|
20
|
-
}, [r("div", {
|
|
21
|
-
staticClass: "simplebar-wrapper"
|
|
22
|
-
}, [e._m(0), e._v(" "), r("div", {
|
|
23
|
-
staticClass: "simplebar-mask"
|
|
24
|
-
}, [r("div", {
|
|
25
|
-
staticClass: "simplebar-offset"
|
|
26
|
-
}, [r("div", e._g({
|
|
27
|
-
ref: "scrollElement",
|
|
28
|
-
staticClass: "simplebar-content-wrapper"
|
|
29
|
-
}, Object.assign({}, e.$listeners.scroll && {
|
|
30
|
-
scroll: e.$listeners.scroll
|
|
31
|
-
})), [r("div", {
|
|
32
|
-
ref: "contentElement",
|
|
33
|
-
staticClass: "simplebar-content"
|
|
34
|
-
}, [e._t("default")], 2)])])]), e._v(" "), r("div", {
|
|
35
|
-
staticClass: "simplebar-placeholder"
|
|
36
|
-
})]), e._v(" "), e._m(1), e._v(" "), e._m(2)]);
|
|
37
|
-
}, v = [function() {
|
|
38
|
-
var t = this, e = t.$createElement, s = t._self._c || e;
|
|
39
|
-
return s("div", {
|
|
40
|
-
staticClass: "simplebar-height-auto-observer-wrapper"
|
|
41
|
-
}, [s("div", {
|
|
42
|
-
staticClass: "simplebar-height-auto-observer"
|
|
43
|
-
})]);
|
|
44
|
-
}, function() {
|
|
45
|
-
var t = this, e = t.$createElement, s = t._self._c || e;
|
|
46
|
-
return s("div", {
|
|
47
|
-
staticClass: "simplebar-track simplebar-horizontal"
|
|
48
|
-
}, [s("div", {
|
|
49
|
-
staticClass: "simplebar-scrollbar"
|
|
50
|
-
})]);
|
|
51
|
-
}, function() {
|
|
52
|
-
var t = this, e = t.$createElement, s = t._self._c || e;
|
|
53
|
-
return s("div", {
|
|
54
|
-
staticClass: "simplebar-track simplebar-vertical"
|
|
55
|
-
}, [s("div", {
|
|
56
|
-
staticClass: "simplebar-scrollbar"
|
|
57
|
-
})]);
|
|
58
|
-
}];
|
|
59
|
-
o._withStripped = !0;
|
|
60
|
-
var p = void 0, u = void 0;
|
|
61
|
-
function f(t, e, s, r, n, i, l, S) {
|
|
62
|
-
var a = (typeof s == "function" ? s.options : s) || {};
|
|
63
|
-
return a.__file = "/Users/adriendenat/Sites/simplebar/packages/simplebar-vue/index.vue", a.render || (a.render = t.render, a.staticRenderFns = t.staticRenderFns, a._compiled = !0), a._scopeId = r, a;
|
|
64
|
-
}
|
|
65
|
-
var $ = f({
|
|
66
|
-
render: o,
|
|
67
|
-
staticRenderFns: v
|
|
68
|
-
}, p, d, u);
|
|
69
|
-
const h = {
|
|
70
|
-
name: "FlagIcon",
|
|
71
|
-
props: {
|
|
72
|
-
region: {
|
|
73
|
-
type: String,
|
|
74
|
-
default: null
|
|
75
|
-
},
|
|
76
|
-
title: {
|
|
77
|
-
type: String,
|
|
78
|
-
default: null
|
|
79
|
-
},
|
|
80
|
-
isSquared: {
|
|
81
|
-
type: Boolean,
|
|
82
|
-
default: !1
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
mounted() {
|
|
86
|
-
var i, l;
|
|
87
|
-
const t = "FLAG_ICONS", e = (l = (i = this.$el).getRootNode) == null ? void 0 : l.call(i), r = (e == null ? void 0 : e.toString()) === "[object ShadowRoot]" ? e : document.head;
|
|
88
|
-
if (r.querySelector(`#${t}`))
|
|
89
|
-
return;
|
|
90
|
-
const n = document.createElement("link");
|
|
91
|
-
n.id = t, n.rel = "stylesheet", n.type = "text/css", n.href = "https://www.unpkg.com/flag-icons@6.6.6/css/flag-icons.min.css", n.media = "all", r.appendChild(n);
|
|
92
|
-
}
|
|
93
|
-
};
|
|
94
|
-
var b = function() {
|
|
95
|
-
var e = this, s = e._self._c;
|
|
96
|
-
return e.region ? s("span", { staticClass: "fi", class: [
|
|
97
|
-
`fi-${e.region.toLowerCase()}`,
|
|
98
|
-
{
|
|
99
|
-
fis: e.isSquared
|
|
100
|
-
}
|
|
101
|
-
], attrs: { title: e.title || e.region } }) : e._e();
|
|
102
|
-
}, g = [], C = /* @__PURE__ */ _(
|
|
103
|
-
h,
|
|
104
|
-
b,
|
|
105
|
-
g,
|
|
106
|
-
!1,
|
|
107
|
-
null,
|
|
108
|
-
null
|
|
109
|
-
);
|
|
110
|
-
const w = C.exports;
|
|
111
|
-
export {
|
|
112
|
-
w as F,
|
|
113
|
-
$ as s
|
|
114
|
-
};
|