admins-components 9.0.4 → 9.0.6
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/admins-components.js +58 -54
- package/dist/admins-components10.js +10 -0
- package/dist/admins-components100.js +23 -247
- package/dist/admins-components101.js +171 -26
- package/dist/admins-components102.js +65 -25
- package/dist/admins-components103.js +67 -162
- package/dist/admins-components104.js +27 -65
- package/dist/admins-components105.js +12 -63
- package/dist/admins-components106.js +26 -29
- package/dist/admins-components107.js +10 -16
- package/dist/admins-components108.js +3 -26
- package/dist/admins-components109.js +2 -8
- package/dist/admins-components11.js +38 -9
- package/dist/admins-components110.js +3 -4
- package/dist/admins-components111.js +21 -3
- package/dist/admins-components112.js +14 -3
- package/dist/admins-components113.js +7 -20
- package/dist/admins-components114.js +13 -14
- package/dist/admins-components115.js +34 -8
- package/dist/admins-components116.js +82 -12
- package/dist/admins-components117.js +9 -24
- package/dist/admins-components118.js +4 -82
- package/dist/admins-components119.js +8 -11
- package/dist/admins-components12.js +141 -37
- package/dist/admins-components120.js +6 -4
- package/dist/admins-components121.js +6 -8
- package/dist/admins-components122.js +14 -6
- package/dist/admins-components123.js +11 -4
- package/dist/admins-components124.js +30 -15
- package/dist/admins-components125.js +4 -13
- package/dist/admins-components126.js +29 -30
- package/dist/admins-components127.js +5 -4
- package/dist/admins-components128.js +5 -29
- package/dist/admins-components129.js +21 -4
- package/dist/admins-components13.js +5 -142
- package/dist/admins-components130.js +81 -4
- package/dist/admins-components131.js +32 -7
- package/dist/admins-components132.js +58 -73
- package/dist/admins-components133.js +24 -29
- package/dist/admins-components134.js +47 -56
- package/dist/admins-components135.js +31 -23
- package/dist/admins-components136.js +3 -50
- package/dist/admins-components137.js +184 -29
- package/dist/admins-components138.js +46 -3
- package/dist/admins-components139.js +35 -177
- package/dist/admins-components14.js +46 -5
- package/dist/admins-components140.js +41 -41
- package/dist/admins-components141.js +137 -32
- package/dist/admins-components142.js +54 -42
- package/dist/admins-components143.js +6 -140
- package/dist/admins-components144.js +5 -57
- package/dist/admins-components145.js +75 -6
- package/dist/admins-components146.js +28 -5
- package/dist/admins-components147.js +1929 -74
- package/dist/admins-components148.js +25068 -29
- package/dist/admins-components149.js +8 -1930
- package/dist/admins-components15.js +4 -46
- package/dist/admins-components150.js +5 -24809
- package/dist/admins-components151.js +141 -8
- package/dist/admins-components152.js +8 -141
- package/dist/admins-components153.js +3 -3
- package/dist/admins-components155.js +169 -0
- package/dist/admins-components156.js +44 -161
- package/dist/admins-components157.js +8 -50
- package/dist/admins-components158.js +49 -8
- package/dist/admins-components159.js +6 -50
- package/dist/admins-components16.js +94 -4
- package/dist/admins-components160.js +80 -6
- package/dist/admins-components161.js +48 -70
- package/dist/admins-components162.js +32 -31
- package/dist/admins-components163.js +8 -58
- package/dist/admins-components164.js +51 -8
- package/dist/admins-components165.js +8 -51
- package/dist/{admins-components168.js → admins-components167.js} +5 -5
- package/dist/admins-components17.js +225 -91
- package/dist/admins-components18.js +5 -228
- package/dist/admins-components19.js +181 -5
- package/dist/admins-components21.js +7 -0
- package/dist/admins-components22.js +72 -6
- package/dist/admins-components23.js +6 -72
- package/dist/admins-components24.js +58 -6
- package/dist/admins-components26.js +7 -0
- package/dist/admins-components27.js +60 -6
- package/dist/admins-components29.js +7 -0
- package/dist/admins-components30.js +36 -6
- package/dist/admins-components32.js +7 -0
- package/dist/admins-components33.js +36 -6
- package/dist/admins-components34.js +4 -36
- package/dist/admins-components35.js +32 -4
- package/dist/admins-components37.js +7 -0
- package/dist/admins-components38.js +147 -6
- package/dist/admins-components4.js +2 -2
- package/dist/admins-components40.js +7 -0
- package/dist/admins-components41.js +124 -6
- package/dist/admins-components42.js +4 -124
- package/dist/admins-components43.js +179 -4
- package/dist/admins-components44.js +4 -179
- package/dist/admins-components45.js +19 -4
- package/dist/admins-components47.js +7 -0
- package/dist/admins-components48.js +54 -6
- package/dist/admins-components49.js +93 -54
- package/dist/admins-components5.js +5 -0
- package/dist/admins-components51.js +7 -0
- package/dist/admins-components52.js +25 -6
- package/dist/admins-components53.js +9 -25
- package/dist/admins-components54.js +19 -9
- package/dist/admins-components55.js +72 -18
- package/dist/admins-components56.js +59 -73
- package/dist/admins-components57.js +4 -59
- package/dist/admins-components58.js +121 -0
- package/dist/admins-components6.js +29 -6
- package/dist/admins-components60.js +6 -6
- package/dist/admins-components61.js +126 -103
- package/dist/admins-components63.js +3 -3
- package/dist/admins-components64.js +7 -143
- package/dist/admins-components65.js +264 -0
- package/dist/admins-components67.js +6 -7
- package/dist/admins-components68.js +98 -250
- package/dist/admins-components7.js +252 -29
- package/dist/admins-components70.js +2 -2
- package/dist/admins-components71.js +54 -106
- package/dist/admins-components72.js +222 -0
- package/dist/admins-components74.js +6 -59
- package/dist/admins-components75.js +8 -221
- package/dist/admins-components76.js +47 -0
- package/dist/admins-components77.js +250 -6
- package/dist/admins-components79.js +7 -46
- package/dist/admins-components80.js +32 -245
- package/dist/admins-components82.js +2 -3
- package/dist/admins-components83.js +192 -31
- package/dist/admins-components85.js +2 -2
- package/dist/admins-components86.js +200 -195
- package/dist/admins-components88.js +3 -2
- package/dist/admins-components89.js +3 -203
- package/dist/admins-components90.js +17 -0
- package/dist/admins-components91.js +3 -7
- package/dist/admins-components92.js +52 -3
- package/dist/admins-components93.js +80 -50
- package/dist/admins-components94.js +109 -77
- package/dist/admins-components95.js +44 -3
- package/dist/admins-components96.js +101 -108
- package/dist/admins-components97.js +6 -23
- package/dist/admins-components98.js +257 -100
- package/dist/admins-components99.js +27 -7
- package/dist/base.css +1 -1
- package/dist/src/components/Button.vue.d.ts +1 -1
- package/dist/src/components/Calendar.vue.d.ts +1 -1
- package/dist/src/components/ConfirmModal.vue.d.ts +1 -1
- package/dist/src/components/DatePicker.vue.d.ts +2 -2
- package/dist/src/components/DateRangePicker.vue.d.ts +2 -2
- package/dist/src/components/DropdownMenu.vue.d.ts +2 -2
- package/dist/src/components/DropdownSelect.vue.d.ts +1 -1
- package/dist/src/components/HeaderComponent.vue.d.ts +2 -2
- package/dist/src/components/custom/ImagePicker.vue.d.ts +1 -1
- package/dist/src/components/data-table/DataCards.vue.d.ts +2 -2
- package/dist/src/components/data-table/DataCell.vue.d.ts +1 -1
- package/dist/src/components/data-table/DataFilters.vue.d.ts +4 -4
- package/dist/src/components/data-table/DataList.vue.d.ts +4 -4
- package/dist/src/components/data-table/DataListGuide.vue.d.ts +1 -1
- package/dist/src/components/data-table/DataListOptions.vue.d.ts +2 -2
- package/dist/src/components/data-table/DataPaginator.vue.d.ts +1 -1
- package/dist/src/components/data-table/DataTable.vue.d.ts +3 -3
- package/dist/src/components/data-table/FilterTags.vue.d.ts +1 -1
- package/dist/src/components/data-table/FiltersHistory.vue.d.ts +1 -1
- package/dist/src/index.d.ts +85 -80
- package/dist/src/styles/components/data-table/data-list.scss_vue_type_style_index_0_src_true_lang.css +1 -1
- package/dist/src/styles/components/data-table/filter-tags.scss_vue_type_style_index_0_src_true_lang.css +1 -1
- package/dist/src/styles/components/loader.scss_vue_type_style_index_0_src_true_lang.css +1 -1
- package/dist/src/vueformelements/config/ExternalArticleOfferElementConfig.d.ts +1 -1
- package/package.json +4 -5
- package/dist/admins-components154.js +0 -10
- package/dist/admins-components166.js +0 -10
- package/dist/admins-components20.js +0 -182
- package/dist/admins-components25.js +0 -59
- package/dist/admins-components28.js +0 -61
- package/dist/admins-components31.js +0 -37
- package/dist/admins-components36.js +0 -33
- package/dist/admins-components39.js +0 -148
- package/dist/admins-components46.js +0 -20
- package/dist/admins-components50.js +0 -94
- package/dist/admins-components59.js +0 -8
- package/dist/admins-components66.js +0 -8
- package/dist/admins-components73.js +0 -7
- package/dist/admins-components78.js +0 -9
- package/dist/admins-components8.js +0 -253
- package/dist/index.d.ts +0 -2
- package/dist/src/components/data-table/DataCell.vue_vue_type_style_index_0_scoped_d46d9895_lang.css +0 -1
- package/dist/src/styles/_buttons.scss_vue_type_style_index_0_src_true_lang.css +0 -1
|
@@ -1,5 +1,33 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
//#region src/components/
|
|
3
|
-
var
|
|
1
|
+
import { createElementBlock as e, defineComponent as t, normalizeClass as n, openBlock as r, ref as i, withModifiers as a } from "vue";
|
|
2
|
+
//#region src/components/CopyToClipboard.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var o = /*@__PURE__*/ t({
|
|
4
|
+
__name: "CopyToClipboard",
|
|
5
|
+
props: {
|
|
6
|
+
value: {},
|
|
7
|
+
target: {},
|
|
8
|
+
useParent: { type: Boolean }
|
|
9
|
+
},
|
|
10
|
+
setup(t) {
|
|
11
|
+
let o = t, s = i(!1);
|
|
12
|
+
function c(e) {
|
|
13
|
+
let t = "";
|
|
14
|
+
if (o.target) {
|
|
15
|
+
let e = typeof o.target == "string" ? document.querySelector(o.target) : o.target;
|
|
16
|
+
e && (t = e.innerText);
|
|
17
|
+
} else if (o.useParent && e?.target) {
|
|
18
|
+
let n = e.target.parentElement;
|
|
19
|
+
n && (t = n.innerText);
|
|
20
|
+
} else t = o.value == null ? "" : String(o.value);
|
|
21
|
+
t && (navigator.clipboard.writeText(t), s.value = !0, setTimeout(() => {
|
|
22
|
+
s.value = !1;
|
|
23
|
+
}, 1500));
|
|
24
|
+
}
|
|
25
|
+
return (t, i) => (r(), e("i", {
|
|
26
|
+
class: n([s.value ? "fa-solid fa-check c-copy-btn--copied" : "fa-regular fa-copy", "c-copy-btn"]),
|
|
27
|
+
tabindex: "0",
|
|
28
|
+
onClick: a(c, ["stop"])
|
|
29
|
+
}, null, 2));
|
|
30
|
+
}
|
|
31
|
+
});
|
|
4
32
|
//#endregion
|
|
5
|
-
export {
|
|
33
|
+
export { o as default };
|
|
@@ -1,7 +1,148 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
//#region src/components/
|
|
5
|
-
var
|
|
1
|
+
import e from "./admins-components5.js";
|
|
2
|
+
import t from "./admins-components32.js";
|
|
3
|
+
import { computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createVNode as s, defineComponent as c, normalizeClass as l, onMounted as u, onUnmounted as d, openBlock as f, ref as p, vModelCheckbox as m, vModelText as h, watch as g, withCtx as _, withDirectives as v } from "vue";
|
|
4
|
+
//#region src/components/custom/ImagePicker.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var y = { class: "c-image-picker ac-component" }, b = { class: "c-image-picker__preview" }, x = ["src", "alt"], S = {
|
|
6
|
+
key: 1,
|
|
7
|
+
class: "c-image-picker__placeholder"
|
|
8
|
+
}, C = { class: "c-image-picker__buttons" }, w = {
|
|
9
|
+
key: 0,
|
|
10
|
+
class: "c-image-picker__details"
|
|
11
|
+
}, T = { class: "c-input-row" }, E = ["disabled"], D = { class: "c-input-row" }, O = ["disabled"], k = { class: "flex-center gap-1" }, A = ["checked", "disabled"], j = [
|
|
12
|
+
"viewid",
|
|
13
|
+
"environment",
|
|
14
|
+
"aeurl"
|
|
15
|
+
], M = {
|
|
16
|
+
id: "",
|
|
17
|
+
url: "",
|
|
18
|
+
isAdult: !1,
|
|
19
|
+
source: "",
|
|
20
|
+
title: ""
|
|
21
|
+
}, N = /*@__PURE__*/ c({
|
|
22
|
+
__name: "ImagePicker",
|
|
23
|
+
props: {
|
|
24
|
+
modelValue: { default: void 0 },
|
|
25
|
+
details: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: !1
|
|
28
|
+
},
|
|
29
|
+
editable: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
default: !1
|
|
32
|
+
},
|
|
33
|
+
direction: { default: "vertical" },
|
|
34
|
+
articleEditorUrl: {},
|
|
35
|
+
environment: {},
|
|
36
|
+
searchImageWidgetUrl: {},
|
|
37
|
+
imageBaseUrl: {},
|
|
38
|
+
imageViewId: {}
|
|
39
|
+
},
|
|
40
|
+
emits: ["update:modelValue"],
|
|
41
|
+
setup(c, { emit: N }) {
|
|
42
|
+
let P = c, F = N, I = p(M), L = p(!1);
|
|
43
|
+
g(() => I.value, () => {
|
|
44
|
+
F("update:modelValue", I.value);
|
|
45
|
+
}, { deep: !0 }), g(() => P.modelValue, (e) => {
|
|
46
|
+
e && (I.value = e);
|
|
47
|
+
}, {
|
|
48
|
+
deep: !0,
|
|
49
|
+
immediate: !0
|
|
50
|
+
});
|
|
51
|
+
let R = `${typeof crypto < "u" && crypto.randomUUID ? crypto.randomUUID() : `ip-${Date.now()}-${Math.random().toString(36).slice(2)}`}-image-picker-causation`;
|
|
52
|
+
u(() => {
|
|
53
|
+
if (!customElements.get("hvg-search-image") && !document.querySelector(`script[src="${P.searchImageWidgetUrl}"]`)) {
|
|
54
|
+
let e = document.createElement("script");
|
|
55
|
+
e.type = "text/javascript", e.src = P.searchImageWidgetUrl, e.async = !0, document.head.appendChild(e);
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
let z = n(() => I.value && (I.value.url && I.value.url.length > 0 || I.value.id && I.value.id.length > 0)), B = n(() => {
|
|
59
|
+
if (z.value) return I.value.url && I.value.url.length > 0 ? I.value.url : `${P.imageBaseUrl}/${P.imageViewId}/${I.value.id}.img`;
|
|
60
|
+
}), V = n(() => P.direction === "horizontal"), H = (e) => {
|
|
61
|
+
e.preventDefault(), L.value = !0;
|
|
62
|
+
}, U = (e) => {
|
|
63
|
+
e.preventDefault(), I.value = { ...M };
|
|
64
|
+
}, W = (e) => {
|
|
65
|
+
e?.detail?.causationid === R && (L.value = !1, e.detail?.image && (I.value = {
|
|
66
|
+
id: e.detail.image.id,
|
|
67
|
+
url: "",
|
|
68
|
+
isAdult: e.detail.image.isAdult,
|
|
69
|
+
source: e.detail.image.source,
|
|
70
|
+
title: e.detail.image.title
|
|
71
|
+
}));
|
|
72
|
+
};
|
|
73
|
+
return u(() => {
|
|
74
|
+
window.addEventListener("image-selected", W);
|
|
75
|
+
}), d(() => {
|
|
76
|
+
window.removeEventListener("image-selected", W);
|
|
77
|
+
}), (n, u) => (f(), a("div", y, [o("div", { class: l(["c-image-picker__container", { "c-image-picker__container--horizontal": V.value }]) }, [
|
|
78
|
+
o("div", b, [z.value ? (f(), a("img", {
|
|
79
|
+
key: 0,
|
|
80
|
+
src: B.value,
|
|
81
|
+
alt: I.value.title || "Selected image",
|
|
82
|
+
class: "c-image-picker__img"
|
|
83
|
+
}, null, 8, x)) : (f(), a("p", S, "Nincs kiválasztott kép"))]),
|
|
84
|
+
o("div", C, [s(e, {
|
|
85
|
+
type: "success",
|
|
86
|
+
label: "Kép kiválasztása",
|
|
87
|
+
class: "nowrap",
|
|
88
|
+
onClick: H,
|
|
89
|
+
icon: "fa-solid fa-image"
|
|
90
|
+
}), s(e, {
|
|
91
|
+
type: "error",
|
|
92
|
+
label: "Eltávolítás",
|
|
93
|
+
class: "nowrap",
|
|
94
|
+
onClick: U,
|
|
95
|
+
icon: "fa-solid fa-trash"
|
|
96
|
+
})]),
|
|
97
|
+
c.details && I.value.id ? (f(), a("div", w, [
|
|
98
|
+
o("div", null, [u[4] ||= o("label", {
|
|
99
|
+
for: "image-source",
|
|
100
|
+
class: "c-label"
|
|
101
|
+
}, "Forrás", -1), o("div", T, [v(o("input", {
|
|
102
|
+
"onUpdate:modelValue": u[0] ||= (e) => I.value.source = e,
|
|
103
|
+
id: "image-source",
|
|
104
|
+
type: "text",
|
|
105
|
+
class: "c-input",
|
|
106
|
+
placeholder: "Kép forrása",
|
|
107
|
+
disabled: !c.editable
|
|
108
|
+
}, null, 8, E), [[h, I.value.source]])])]),
|
|
109
|
+
o("div", null, [u[5] ||= o("label", {
|
|
110
|
+
for: "image-title",
|
|
111
|
+
class: "c-label"
|
|
112
|
+
}, "Cím / Alt szöveg", -1), o("div", D, [v(o("textarea", {
|
|
113
|
+
"onUpdate:modelValue": u[1] ||= (e) => I.value.title = e,
|
|
114
|
+
id: "image-title",
|
|
115
|
+
class: "c-input c-image-picker__textarea",
|
|
116
|
+
placeholder: "Cím vagy alt szöveg",
|
|
117
|
+
disabled: !c.editable
|
|
118
|
+
}, null, 8, O), [[h, I.value.title]])])]),
|
|
119
|
+
o("div", k, [v(o("input", {
|
|
120
|
+
id: "image-adult",
|
|
121
|
+
"onUpdate:modelValue": u[2] ||= (e) => I.value.isAdult = e,
|
|
122
|
+
type: "checkbox",
|
|
123
|
+
class: "c-checkbox",
|
|
124
|
+
checked: I.value.isAdult,
|
|
125
|
+
disabled: !c.editable
|
|
126
|
+
}, null, 8, A), [[m, I.value.isAdult]]), u[6] ||= o("label", {
|
|
127
|
+
for: "image-adult",
|
|
128
|
+
class: "c-label"
|
|
129
|
+
}, "Felnőtt tartalom", -1)])
|
|
130
|
+
])) : i("", !0)
|
|
131
|
+
], 2), L.value ? (f(), r(t, {
|
|
132
|
+
key: 0,
|
|
133
|
+
title: "Kép keresése",
|
|
134
|
+
onClose: u[3] ||= (e) => L.value = !1
|
|
135
|
+
}, {
|
|
136
|
+
default: _(() => [o("hvg-search-image", {
|
|
137
|
+
causationid: R,
|
|
138
|
+
viewid: c.imageViewId,
|
|
139
|
+
environment: c.environment,
|
|
140
|
+
aeurl: c.articleEditorUrl,
|
|
141
|
+
selectonly: "true"
|
|
142
|
+
}, null, 8, j)]),
|
|
143
|
+
_: 1
|
|
144
|
+
})) : i("", !0)]));
|
|
145
|
+
}
|
|
146
|
+
});
|
|
6
147
|
//#endregion
|
|
7
|
-
export {
|
|
148
|
+
export { N as default };
|
|
@@ -11,9 +11,9 @@ var l = {
|
|
|
11
11
|
iconPosition: "left",
|
|
12
12
|
labelAlignmentFix: !1,
|
|
13
13
|
callback: void 0
|
|
14
|
-
}, d =
|
|
14
|
+
}, d = /*@__PURE__*/ i({
|
|
15
15
|
__name: "Button",
|
|
16
|
-
props:
|
|
16
|
+
props: /*@__PURE__*/ a({
|
|
17
17
|
size: {},
|
|
18
18
|
type: {},
|
|
19
19
|
outline: { type: Boolean },
|
|
@@ -1,7 +1,125 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
//#region src/components/custom/
|
|
5
|
-
var
|
|
1
|
+
import e from "./admins-components21.js";
|
|
2
|
+
import t from "./admins-components40.js";
|
|
3
|
+
import { createElementBlock as n, createElementVNode as r, createVNode as i, defineComponent as a, openBlock as o, ref as s, watch as c } from "vue";
|
|
4
|
+
//#region src/components/custom/ExternalArticleOffer.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var l = { class: "flex-column gap-2 ac-component" }, u = { class: "c-input-row" }, d = ["value"], f = { class: "c-input-row" }, p = ["value"], m = { class: "c-input-row" }, h = ["value"], g = /*@__PURE__*/ a({
|
|
6
|
+
__name: "ExternalArticleOffer",
|
|
7
|
+
props: {
|
|
8
|
+
modelValue: {},
|
|
9
|
+
onArticleUrlChanged: { type: Function },
|
|
10
|
+
articleEditorUrl: {},
|
|
11
|
+
environment: {},
|
|
12
|
+
searchImageWidgetUrl: {},
|
|
13
|
+
imageBaseUrl: {},
|
|
14
|
+
imageViewId: {},
|
|
15
|
+
formats: {}
|
|
16
|
+
},
|
|
17
|
+
emits: ["update:modelValue"],
|
|
18
|
+
setup(a, { emit: g }) {
|
|
19
|
+
let _ = {
|
|
20
|
+
article: {
|
|
21
|
+
url: "",
|
|
22
|
+
imageUrl: "",
|
|
23
|
+
imageId: "",
|
|
24
|
+
title: "",
|
|
25
|
+
lead: ""
|
|
26
|
+
},
|
|
27
|
+
format: ""
|
|
28
|
+
}, v = g, y = a, b = s(_), x = s({
|
|
29
|
+
id: b.value.article.imageId,
|
|
30
|
+
url: "",
|
|
31
|
+
source: "",
|
|
32
|
+
title: "",
|
|
33
|
+
isAdult: !1
|
|
34
|
+
});
|
|
35
|
+
c(() => y.modelValue, (e) => {
|
|
36
|
+
e ? b.value = e : b.value = _;
|
|
37
|
+
}, {
|
|
38
|
+
deep: !0,
|
|
39
|
+
immediate: !0
|
|
40
|
+
}), c(() => b, (e) => {
|
|
41
|
+
v("update:modelValue", b.value), x.value.id = e.value.article.imageId, x.value.url = e.value.article.imageUrl;
|
|
42
|
+
}, {
|
|
43
|
+
deep: !0,
|
|
44
|
+
immediate: !0
|
|
45
|
+
}), c(() => x.value.id, (e) => {
|
|
46
|
+
b.value.article.imageId = e;
|
|
47
|
+
}, {
|
|
48
|
+
deep: !0,
|
|
49
|
+
immediate: !0
|
|
50
|
+
}), c(() => x.value.url, (e) => {
|
|
51
|
+
b.value.article.imageUrl = e;
|
|
52
|
+
}, {
|
|
53
|
+
deep: !0,
|
|
54
|
+
immediate: !0
|
|
55
|
+
});
|
|
56
|
+
let S = (e) => {
|
|
57
|
+
b.value.article.url = e.target?.value || "", b.value.article.url && y.onArticleUrlChanged(b.value.article.url, (e) => {
|
|
58
|
+
b.value.article = e;
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
return ((e) => {
|
|
62
|
+
if (!customElements.get("hvg-search-image") && !document.querySelector(`script[src="${e}"]`)) {
|
|
63
|
+
let t = document.createElement("script");
|
|
64
|
+
t.type = "text/javascript", t.src = e, document.head.appendChild(t);
|
|
65
|
+
}
|
|
66
|
+
})(y.searchImageWidgetUrl), (a, s) => (o(), n("div", l, [
|
|
67
|
+
r("div", null, [s[4] ||= r("label", {
|
|
68
|
+
for: "articleUrl",
|
|
69
|
+
class: "c-label"
|
|
70
|
+
}, "Article URL", -1), r("div", u, [r("textarea", {
|
|
71
|
+
id: "articleUrl",
|
|
72
|
+
class: "c-input",
|
|
73
|
+
placeholder: "Article URL",
|
|
74
|
+
value: b.value.article.url,
|
|
75
|
+
onInput: S
|
|
76
|
+
}, null, 40, d)])]),
|
|
77
|
+
r("div", null, [s[5] ||= r("label", {
|
|
78
|
+
for: "articleTitle",
|
|
79
|
+
class: "c-label"
|
|
80
|
+
}, "Title", -1), r("div", f, [r("textarea", {
|
|
81
|
+
id: "articleTitle",
|
|
82
|
+
class: "c-input",
|
|
83
|
+
placeholder: "Article title",
|
|
84
|
+
value: b.value.article.title,
|
|
85
|
+
onInput: s[0] ||= (e) => b.value.article.title = e.target?.value || ""
|
|
86
|
+
}, null, 40, p)])]),
|
|
87
|
+
r("div", null, [s[6] ||= r("label", {
|
|
88
|
+
for: "articleLead",
|
|
89
|
+
class: "c-label"
|
|
90
|
+
}, "Lead", -1), r("div", m, [r("textarea", {
|
|
91
|
+
id: "articleLead",
|
|
92
|
+
class: "c-input",
|
|
93
|
+
placeholder: "Article lead / description",
|
|
94
|
+
value: b.value.article.lead,
|
|
95
|
+
onInput: s[1] ||= (e) => b.value.article.lead = e.target?.value || ""
|
|
96
|
+
}, null, 40, h)])]),
|
|
97
|
+
r("div", null, [i(t, {
|
|
98
|
+
modelValue: x.value,
|
|
99
|
+
"onUpdate:modelValue": s[2] ||= (e) => x.value = e,
|
|
100
|
+
details: !1,
|
|
101
|
+
editable: !1,
|
|
102
|
+
environment: y.environment,
|
|
103
|
+
"article-editor-url": y.articleEditorUrl,
|
|
104
|
+
"search-image-widget-url": y.searchImageWidgetUrl,
|
|
105
|
+
"image-base-url": y.imageBaseUrl,
|
|
106
|
+
"image-view-id": y.imageViewId
|
|
107
|
+
}, null, 8, [
|
|
108
|
+
"modelValue",
|
|
109
|
+
"environment",
|
|
110
|
+
"article-editor-url",
|
|
111
|
+
"search-image-widget-url",
|
|
112
|
+
"image-base-url",
|
|
113
|
+
"image-view-id"
|
|
114
|
+
])]),
|
|
115
|
+
r("div", null, [s[7] ||= r("label", { class: "c-label" }, "Format", -1), i(e, {
|
|
116
|
+
modelValue: b.value.format,
|
|
117
|
+
"onUpdate:modelValue": s[3] ||= (e) => b.value.format = e,
|
|
118
|
+
options: y.formats,
|
|
119
|
+
config: { placeholder: "Select format..." }
|
|
120
|
+
}, null, 8, ["modelValue", "options"])])
|
|
121
|
+
]));
|
|
122
|
+
}
|
|
123
|
+
});
|
|
6
124
|
//#endregion
|
|
7
|
-
export {
|
|
125
|
+
export { g as default };
|
|
@@ -1,125 +1,5 @@
|
|
|
1
|
-
import e from "./admins-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
//#region src/components/custom/ExternalArticleOffer.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var l = { class: "flex-column gap-2 ac-component" }, u = { class: "c-input-row" }, d = ["value"], f = { class: "c-input-row" }, p = ["value"], m = { class: "c-input-row" }, h = ["value"], g = /* @__PURE__ */ a({
|
|
6
|
-
__name: "ExternalArticleOffer",
|
|
7
|
-
props: {
|
|
8
|
-
modelValue: {},
|
|
9
|
-
onArticleUrlChanged: { type: Function },
|
|
10
|
-
articleEditorUrl: {},
|
|
11
|
-
environment: {},
|
|
12
|
-
searchImageWidgetUrl: {},
|
|
13
|
-
imageBaseUrl: {},
|
|
14
|
-
imageViewId: {},
|
|
15
|
-
formats: {}
|
|
16
|
-
},
|
|
17
|
-
emits: ["update:modelValue"],
|
|
18
|
-
setup(a, { emit: g }) {
|
|
19
|
-
let _ = {
|
|
20
|
-
article: {
|
|
21
|
-
url: "",
|
|
22
|
-
imageUrl: "",
|
|
23
|
-
imageId: "",
|
|
24
|
-
title: "",
|
|
25
|
-
lead: ""
|
|
26
|
-
},
|
|
27
|
-
format: ""
|
|
28
|
-
}, v = g, y = a, b = s(_), x = s({
|
|
29
|
-
id: b.value.article.imageId,
|
|
30
|
-
url: "",
|
|
31
|
-
source: "",
|
|
32
|
-
title: "",
|
|
33
|
-
isAdult: !1
|
|
34
|
-
});
|
|
35
|
-
c(() => y.modelValue, (e) => {
|
|
36
|
-
e ? b.value = e : b.value = _;
|
|
37
|
-
}, {
|
|
38
|
-
deep: !0,
|
|
39
|
-
immediate: !0
|
|
40
|
-
}), c(() => b, (e) => {
|
|
41
|
-
v("update:modelValue", b.value), x.value.id = e.value.article.imageId, x.value.url = e.value.article.imageUrl;
|
|
42
|
-
}, {
|
|
43
|
-
deep: !0,
|
|
44
|
-
immediate: !0
|
|
45
|
-
}), c(() => x.value.id, (e) => {
|
|
46
|
-
b.value.article.imageId = e;
|
|
47
|
-
}, {
|
|
48
|
-
deep: !0,
|
|
49
|
-
immediate: !0
|
|
50
|
-
}), c(() => x.value.url, (e) => {
|
|
51
|
-
b.value.article.imageUrl = e;
|
|
52
|
-
}, {
|
|
53
|
-
deep: !0,
|
|
54
|
-
immediate: !0
|
|
55
|
-
});
|
|
56
|
-
let S = (e) => {
|
|
57
|
-
b.value.article.url = e.target?.value || "", b.value.article.url && y.onArticleUrlChanged(b.value.article.url, (e) => {
|
|
58
|
-
b.value.article = e;
|
|
59
|
-
});
|
|
60
|
-
};
|
|
61
|
-
return ((e) => {
|
|
62
|
-
if (!customElements.get("hvg-search-image") && !document.querySelector(`script[src="${e}"]`)) {
|
|
63
|
-
let t = document.createElement("script");
|
|
64
|
-
t.type = "text/javascript", t.src = e, document.head.appendChild(t);
|
|
65
|
-
}
|
|
66
|
-
})(y.searchImageWidgetUrl), (a, s) => (o(), n("div", l, [
|
|
67
|
-
r("div", null, [s[4] ||= r("label", {
|
|
68
|
-
for: "articleUrl",
|
|
69
|
-
class: "c-label"
|
|
70
|
-
}, "Article URL", -1), r("div", u, [r("textarea", {
|
|
71
|
-
id: "articleUrl",
|
|
72
|
-
class: "c-input",
|
|
73
|
-
placeholder: "Article URL",
|
|
74
|
-
value: b.value.article.url,
|
|
75
|
-
onInput: S
|
|
76
|
-
}, null, 40, d)])]),
|
|
77
|
-
r("div", null, [s[5] ||= r("label", {
|
|
78
|
-
for: "articleTitle",
|
|
79
|
-
class: "c-label"
|
|
80
|
-
}, "Title", -1), r("div", f, [r("textarea", {
|
|
81
|
-
id: "articleTitle",
|
|
82
|
-
class: "c-input",
|
|
83
|
-
placeholder: "Article title",
|
|
84
|
-
value: b.value.article.title,
|
|
85
|
-
onInput: s[0] ||= (e) => b.value.article.title = e.target?.value || ""
|
|
86
|
-
}, null, 40, p)])]),
|
|
87
|
-
r("div", null, [s[6] ||= r("label", {
|
|
88
|
-
for: "articleLead",
|
|
89
|
-
class: "c-label"
|
|
90
|
-
}, "Lead", -1), r("div", m, [r("textarea", {
|
|
91
|
-
id: "articleLead",
|
|
92
|
-
class: "c-input",
|
|
93
|
-
placeholder: "Article lead / description",
|
|
94
|
-
value: b.value.article.lead,
|
|
95
|
-
onInput: s[1] ||= (e) => b.value.article.lead = e.target?.value || ""
|
|
96
|
-
}, null, 40, h)])]),
|
|
97
|
-
r("div", null, [i(t, {
|
|
98
|
-
modelValue: x.value,
|
|
99
|
-
"onUpdate:modelValue": s[2] ||= (e) => x.value = e,
|
|
100
|
-
details: !1,
|
|
101
|
-
editable: !1,
|
|
102
|
-
environment: y.environment,
|
|
103
|
-
"article-editor-url": y.articleEditorUrl,
|
|
104
|
-
"search-image-widget-url": y.searchImageWidgetUrl,
|
|
105
|
-
"image-base-url": y.imageBaseUrl,
|
|
106
|
-
"image-view-id": y.imageViewId
|
|
107
|
-
}, null, 8, [
|
|
108
|
-
"modelValue",
|
|
109
|
-
"environment",
|
|
110
|
-
"article-editor-url",
|
|
111
|
-
"search-image-widget-url",
|
|
112
|
-
"image-base-url",
|
|
113
|
-
"image-view-id"
|
|
114
|
-
])]),
|
|
115
|
-
r("div", null, [s[7] ||= r("label", { class: "c-label" }, "Format", -1), i(e, {
|
|
116
|
-
modelValue: b.value.format,
|
|
117
|
-
"onUpdate:modelValue": s[3] ||= (e) => b.value.format = e,
|
|
118
|
-
options: y.formats,
|
|
119
|
-
config: { placeholder: "Select format..." }
|
|
120
|
-
}, null, 8, ["modelValue", "options"])])
|
|
121
|
-
]));
|
|
122
|
-
}
|
|
123
|
-
});
|
|
1
|
+
import e from "./admins-components41.js";
|
|
2
|
+
//#region src/components/custom/ExternalArticleOffer.vue
|
|
3
|
+
var t = e;
|
|
124
4
|
//#endregion
|
|
125
|
-
export {
|
|
5
|
+
export { t as default };
|
|
@@ -1,5 +1,180 @@
|
|
|
1
|
-
import e from "./admins-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import e from "./admins-components5.js";
|
|
2
|
+
import t from "./admins-components21.js";
|
|
3
|
+
import n from "./admins-components32.js";
|
|
4
|
+
import r from "./admins-components40.js";
|
|
5
|
+
import { createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, onMounted as u, onUnmounted as d, openBlock as f, ref as p, watch as m, withCtx as h } from "vue";
|
|
6
|
+
//#region src/components/custom/InternalArticleOffer.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
+
var g = { class: "flex-column gap-2 ac-component" }, _ = {
|
|
8
|
+
key: 0,
|
|
9
|
+
class: "flex gap-2"
|
|
10
|
+
}, v = { class: "c-input-row" }, y = ["value"], b = { class: "c-input-row" }, x = ["value"], S = { class: "c-input-row" }, C = ["value"], w = { class: "c-input-row" }, T = ["value"], E = ["id", "apiurl"], D = "00000000-0000-0000-0000-000000000000", O = /*@__PURE__*/ l({
|
|
11
|
+
__name: "InternalArticleOffer",
|
|
12
|
+
props: {
|
|
13
|
+
modelValue: {},
|
|
14
|
+
searchArticleApiUrl: {},
|
|
15
|
+
searchArticleWidgetUrl: {},
|
|
16
|
+
environment: {},
|
|
17
|
+
searchImageWidgetUrl: {},
|
|
18
|
+
imageBaseUrl: {},
|
|
19
|
+
imageViewId: {},
|
|
20
|
+
showIds: {
|
|
21
|
+
type: Boolean,
|
|
22
|
+
default: !0
|
|
23
|
+
},
|
|
24
|
+
formats: {}
|
|
25
|
+
},
|
|
26
|
+
emits: ["update:modelValue"],
|
|
27
|
+
setup(l, { emit: O }) {
|
|
28
|
+
let k = {
|
|
29
|
+
article: {
|
|
30
|
+
siteId: "",
|
|
31
|
+
id: "",
|
|
32
|
+
imageId: "",
|
|
33
|
+
title: "",
|
|
34
|
+
lead: ""
|
|
35
|
+
},
|
|
36
|
+
format: ""
|
|
37
|
+
}, A = O, j = l, M = p(k), N = p({
|
|
38
|
+
id: M.value.article.imageId || "",
|
|
39
|
+
url: "",
|
|
40
|
+
source: "",
|
|
41
|
+
title: "",
|
|
42
|
+
isAdult: !1
|
|
43
|
+
}), P = p(!1);
|
|
44
|
+
m(() => j.modelValue, (e) => {
|
|
45
|
+
e ? M.value = e : M.value = k;
|
|
46
|
+
}, {
|
|
47
|
+
deep: !0,
|
|
48
|
+
immediate: !0
|
|
49
|
+
}), m(() => M, (e) => {
|
|
50
|
+
A("update:modelValue", M.value), N.value.id = e.value.article.imageId;
|
|
51
|
+
}, {
|
|
52
|
+
deep: !0,
|
|
53
|
+
immediate: !0
|
|
54
|
+
}), m(() => N.value.id, (e) => {
|
|
55
|
+
M.value.article.imageId = e;
|
|
56
|
+
}, {
|
|
57
|
+
deep: !0,
|
|
58
|
+
immediate: !0
|
|
59
|
+
});
|
|
60
|
+
let F = p((/* @__PURE__ */ new Date()).getTime().toString() + "article");
|
|
61
|
+
d(() => {
|
|
62
|
+
window.removeEventListener("search_posts_selected", I);
|
|
63
|
+
}), u(() => {
|
|
64
|
+
window.addEventListener("search_posts_selected", I);
|
|
65
|
+
});
|
|
66
|
+
let I = (e) => {
|
|
67
|
+
if (e.detail.id == F.value) {
|
|
68
|
+
if (e.detail.result && e.detail.posts.length > 0) {
|
|
69
|
+
M.value.article.id = e.detail.posts[0].id, M.value.article.siteId = e.detail.posts[0].siteId, M.value.article.title = e.detail.posts[0].title, M.value.article.lead = e.detail.posts[0].lead;
|
|
70
|
+
let t = e.detail.posts[0].featuredImage;
|
|
71
|
+
M.value.article.imageId = t || D;
|
|
72
|
+
}
|
|
73
|
+
P.value = !1;
|
|
74
|
+
}
|
|
75
|
+
}, L = () => {
|
|
76
|
+
P.value = !0;
|
|
77
|
+
}, R = (e) => {
|
|
78
|
+
if (!customElements.get("search-posts-widget") && !document.querySelector(`script[src="${e}"]`)) {
|
|
79
|
+
let t = document.createElement("script");
|
|
80
|
+
t.type = "text/javascript", t.src = e, document.head.appendChild(t);
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
if (!customElements.get("hvg-search-image") && !document.querySelector(`script[src="${j.searchImageWidgetUrl}"]`)) {
|
|
84
|
+
let e = document.createElement("script");
|
|
85
|
+
e.type = "text/javascript", e.src = j.searchImageWidgetUrl, e.async = !0, document.head.appendChild(e);
|
|
86
|
+
}
|
|
87
|
+
return R(j.searchArticleWidgetUrl), (u, d) => (f(), o("div", g, [
|
|
88
|
+
s("div", null, [c(e, {
|
|
89
|
+
type: "success",
|
|
90
|
+
label: "Cikk kiválasztása",
|
|
91
|
+
class: "nowrap",
|
|
92
|
+
onClick: L,
|
|
93
|
+
icon: "fa-solid fa-newspaper"
|
|
94
|
+
})]),
|
|
95
|
+
l.showIds ? (f(), o("div", _, [s("div", null, [d[5] ||= s("label", {
|
|
96
|
+
for: "articleId",
|
|
97
|
+
class: "c-label"
|
|
98
|
+
}, "Article ID", -1), s("div", v, [s("input", {
|
|
99
|
+
id: "articleId",
|
|
100
|
+
type: "text",
|
|
101
|
+
class: "c-input",
|
|
102
|
+
placeholder: "Article ID",
|
|
103
|
+
disabled: "",
|
|
104
|
+
value: M.value.article.id
|
|
105
|
+
}, null, 8, y)])]), s("div", null, [d[6] ||= s("label", {
|
|
106
|
+
for: "articleSiteId",
|
|
107
|
+
class: "c-label"
|
|
108
|
+
}, "Site ID", -1), s("div", b, [s("input", {
|
|
109
|
+
id: "articleSiteId",
|
|
110
|
+
type: "text",
|
|
111
|
+
class: "c-input",
|
|
112
|
+
placeholder: "Site ID",
|
|
113
|
+
disabled: "",
|
|
114
|
+
value: M.value.article.siteId
|
|
115
|
+
}, null, 8, x)])])])) : a("", !0),
|
|
116
|
+
s("div", null, [d[7] ||= s("label", {
|
|
117
|
+
for: "articleTitle",
|
|
118
|
+
class: "c-label"
|
|
119
|
+
}, "Title", -1), s("div", S, [s("textarea", {
|
|
120
|
+
id: "articleTitle",
|
|
121
|
+
class: "c-input",
|
|
122
|
+
placeholder: "Article title",
|
|
123
|
+
value: M.value.article.title,
|
|
124
|
+
onInput: d[0] ||= (e) => M.value.article.title = e.target?.value || ""
|
|
125
|
+
}, null, 40, C)])]),
|
|
126
|
+
s("div", null, [d[8] ||= s("label", {
|
|
127
|
+
for: "articleLead",
|
|
128
|
+
class: "c-label"
|
|
129
|
+
}, "Lead", -1), s("div", w, [s("textarea", {
|
|
130
|
+
id: "articleLead",
|
|
131
|
+
class: "c-input",
|
|
132
|
+
placeholder: "Article lead / description",
|
|
133
|
+
value: M.value.article.lead,
|
|
134
|
+
onInput: d[1] ||= (e) => M.value.article.lead = e.target?.value || ""
|
|
135
|
+
}, null, 40, T)])]),
|
|
136
|
+
d[10] ||= s("hr", { class: "separator" }, null, -1),
|
|
137
|
+
s("div", null, [c(r, {
|
|
138
|
+
modelValue: N.value,
|
|
139
|
+
"onUpdate:modelValue": d[2] ||= (e) => N.value = e,
|
|
140
|
+
details: !1,
|
|
141
|
+
editable: !1,
|
|
142
|
+
environment: j.environment,
|
|
143
|
+
"article-editor-url": j.searchArticleApiUrl,
|
|
144
|
+
"search-image-widget-url": j.searchImageWidgetUrl,
|
|
145
|
+
"image-base-url": j.imageBaseUrl,
|
|
146
|
+
"image-view-id": j.imageViewId
|
|
147
|
+
}, null, 8, [
|
|
148
|
+
"modelValue",
|
|
149
|
+
"environment",
|
|
150
|
+
"article-editor-url",
|
|
151
|
+
"search-image-widget-url",
|
|
152
|
+
"image-base-url",
|
|
153
|
+
"image-view-id"
|
|
154
|
+
])]),
|
|
155
|
+
s("div", null, [d[9] ||= s("label", { class: "c-label" }, "Format", -1), c(t, {
|
|
156
|
+
modelValue: M.value.format,
|
|
157
|
+
"onUpdate:modelValue": d[3] ||= (e) => M.value.format = e,
|
|
158
|
+
options: j.formats,
|
|
159
|
+
config: { placeholder: "Select format..." }
|
|
160
|
+
}, null, 8, ["modelValue", "options"])]),
|
|
161
|
+
P.value ? (f(), i(n, {
|
|
162
|
+
key: 1,
|
|
163
|
+
title: "Search Article",
|
|
164
|
+
onClose: d[4] ||= (e) => P.value = !1
|
|
165
|
+
}, {
|
|
166
|
+
default: h(() => [s("search-posts-widget", {
|
|
167
|
+
id: F.value,
|
|
168
|
+
selector: "true",
|
|
169
|
+
apiurl: j.searchArticleApiUrl,
|
|
170
|
+
wpurl: "",
|
|
171
|
+
searchurl: "",
|
|
172
|
+
style: { height: "500px" }
|
|
173
|
+
}, null, 8, E)]),
|
|
174
|
+
_: 1
|
|
175
|
+
})) : a("", !0)
|
|
176
|
+
]));
|
|
177
|
+
}
|
|
178
|
+
});
|
|
4
179
|
//#endregion
|
|
5
|
-
export {
|
|
180
|
+
export { O as default };
|