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,10 +1,143 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import e from "./admins-components5.js";
|
|
2
|
+
import { defineElement as t } from "./admins-components148.js";
|
|
3
|
+
import { aoeConfig as n } from "./admins-components149.js";
|
|
4
|
+
import r from "./admins-components150.js";
|
|
5
|
+
import { createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createSlots as c, createVNode as l, nextTick as u, onMounted as d, onUnmounted as f, openBlock as p, ref as m, renderList as h, renderSlot as g, resolveComponent as _, resolveDynamicComponent as v, withCtx as y } from "vue";
|
|
6
|
+
//#region src/vueformelements/ArticleOfferElement.vue
|
|
7
|
+
var b = t({
|
|
8
|
+
components: { Button: e },
|
|
9
|
+
name: "ArticleOfferElement",
|
|
10
|
+
setup(e, t) {
|
|
11
|
+
let r = n.articleEditorUrl, i = n.environment, a = n.searchImageWidgetUrl, o = n.imageBaseUrl, s = n.imageViewId, c = n.onFetchMetaTags, l = m((/* @__PURE__ */ new Date()).getTime().toString() + "image"), { value: p } = t.element, h = (e, t, n, r) => {
|
|
12
|
+
e === p.value.url && (p.value.image = t, p.value.title = n, p.value.lead = r);
|
|
13
|
+
};
|
|
14
|
+
n.gotMetagTags = h;
|
|
15
|
+
let g = () => {
|
|
16
|
+
p.value.url && n.onFetchMetaTags(p.value.url);
|
|
17
|
+
}, _ = (e) => {
|
|
18
|
+
e.preventDefault(), u(() => {
|
|
19
|
+
document.getElementById(l.value).showModal();
|
|
20
|
+
});
|
|
21
|
+
}, v = (e) => {
|
|
22
|
+
e.preventDefault(), p.value.imageId = "00000000-0000-0000-0000-000000000000", p.value.image = "";
|
|
23
|
+
}, y = (e) => {
|
|
24
|
+
if (!document.querySelector(`script[src="${e}"]`)) {
|
|
25
|
+
let t = document.createElement("script");
|
|
26
|
+
t.type = "text/javascript", t.src = e, document.head.appendChild(t);
|
|
27
|
+
}
|
|
28
|
+
}, b = (e) => {
|
|
29
|
+
if (e.detail.causationid == l.value) {
|
|
30
|
+
document.getElementById(l.value).close();
|
|
31
|
+
let t = e.detail.image;
|
|
32
|
+
p.value.image = t.url;
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
return f(() => {
|
|
36
|
+
window.removeEventListener("image-selected", b, !1);
|
|
37
|
+
}), d(() => {
|
|
38
|
+
window.addEventListener("image-selected", b);
|
|
39
|
+
}), y(a), {
|
|
40
|
+
articleEditorUrl: r,
|
|
41
|
+
environment: i,
|
|
42
|
+
imageViewId: s,
|
|
43
|
+
imageBaseUrl: o,
|
|
44
|
+
imageCausationId: l,
|
|
45
|
+
searchImageWidgetUrl: a,
|
|
46
|
+
selectImage: _,
|
|
47
|
+
resetImage: v,
|
|
48
|
+
addScript: y,
|
|
49
|
+
value: p,
|
|
50
|
+
fetchMetaTags: g,
|
|
51
|
+
onFetchMetaTags: c,
|
|
52
|
+
gotMetagTags: h
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
}), x = { class: "ac-component" }, S = { class: "c-input-row" }, C = ["value"], w = { class: "c-input-row" }, T = ["value"], E = { class: "c-input-row" }, D = ["value"], O = ["src"], k = { key: 0 }, A = {
|
|
56
|
+
class: "flex-center mt-2 w-100",
|
|
57
|
+
role: "group",
|
|
58
|
+
"aria-label": "Képválasztó gombok"
|
|
59
|
+
}, j = ["id"], M = [
|
|
60
|
+
"causationid",
|
|
61
|
+
"viewid",
|
|
62
|
+
"environment",
|
|
63
|
+
"aeurl"
|
|
64
|
+
];
|
|
65
|
+
function N(e, t, n, r, u, d) {
|
|
66
|
+
let f = _("Button"), m = _("ElementLayout");
|
|
67
|
+
return p(), i(m, null, c({ _: 2 }, [e.value ? {
|
|
68
|
+
name: "element",
|
|
69
|
+
fn: y(() => [
|
|
70
|
+
s("div", x, [t[7] ||= s("label", {
|
|
71
|
+
for: "articleUrl",
|
|
72
|
+
class: "c-label"
|
|
73
|
+
}, "Cikk url", -1), s("div", S, [s("input", {
|
|
74
|
+
type: "text",
|
|
75
|
+
id: "articleUrl",
|
|
76
|
+
class: "c-input",
|
|
77
|
+
placeholder: "Cikk url",
|
|
78
|
+
value: e.value.url,
|
|
79
|
+
onInput: t[0] ||= (t) => {
|
|
80
|
+
e.value.url = t.target.value;
|
|
81
|
+
},
|
|
82
|
+
onBlur: t[1] ||= (...t) => e.fetchMetaTags && e.fetchMetaTags(...t)
|
|
83
|
+
}, null, 40, C)])]),
|
|
84
|
+
s("div", null, [t[8] ||= s("label", {
|
|
85
|
+
for: "articleTitle",
|
|
86
|
+
class: "c-label"
|
|
87
|
+
}, "Címe", -1), s("div", w, [s("textarea", {
|
|
88
|
+
id: "articleTitle",
|
|
89
|
+
class: "c-input",
|
|
90
|
+
placeholder: "Címe",
|
|
91
|
+
value: e.value.title,
|
|
92
|
+
onInput: t[2] ||= (t) => e.value.title = t.target.value
|
|
93
|
+
}, null, 40, T)])]),
|
|
94
|
+
s("div", null, [t[9] ||= s("label", {
|
|
95
|
+
for: "articleLead",
|
|
96
|
+
class: "c-label"
|
|
97
|
+
}, "Lead", -1), s("div", E, [s("textarea", {
|
|
98
|
+
id: "articleLead",
|
|
99
|
+
class: "c-input",
|
|
100
|
+
placeholder: "Lead",
|
|
101
|
+
value: e.value.lead,
|
|
102
|
+
onInput: t[3] ||= (t) => e.value.lead = t.target.value
|
|
103
|
+
}, null, 40, D)])]),
|
|
104
|
+
s("div", null, [t[10] ||= s("label", {
|
|
105
|
+
class: "c-label",
|
|
106
|
+
style: { display: "block" }
|
|
107
|
+
}, "Kép", -1), s("img", {
|
|
108
|
+
alt: "",
|
|
109
|
+
src: e.value.image,
|
|
110
|
+
onInput: t[4] ||= (t) => e.value.image = t.target.value,
|
|
111
|
+
style: { height: "200px" }
|
|
112
|
+
}, null, 40, O)]),
|
|
113
|
+
e.value.imageId === "00000000-0000-0000-0000-000000000000" ? (p(), o("div", k, " Nincs kép kiválasztva! ")) : a("", !0),
|
|
114
|
+
s("div", A, [l(f, {
|
|
115
|
+
type: "dark",
|
|
116
|
+
label: "Kép Választás",
|
|
117
|
+
onClick: t[5] ||= (t) => {
|
|
118
|
+
e.selectImage(t);
|
|
119
|
+
}
|
|
120
|
+
}), l(f, {
|
|
121
|
+
type: "danger",
|
|
122
|
+
label: "Eltávolítás",
|
|
123
|
+
onClick: t[6] ||= (t) => {
|
|
124
|
+
e.resetImage(t);
|
|
125
|
+
}
|
|
126
|
+
})]),
|
|
127
|
+
s("dialog", { id: e.imageCausationId }, [s("hvg-search-image", {
|
|
128
|
+
causationid: e.imageCausationId,
|
|
129
|
+
viewid: e.imageViewId,
|
|
130
|
+
environment: e.environment,
|
|
131
|
+
aeurl: e.articleEditorUrl,
|
|
132
|
+
selectonly: "true"
|
|
133
|
+
}, null, 8, M)], 8, j)
|
|
134
|
+
]),
|
|
135
|
+
key: "0"
|
|
136
|
+
} : void 0, h(e.elementSlots, (t, n) => ({
|
|
137
|
+
name: n,
|
|
138
|
+
fn: y(() => [g(e.$slots, n, { el$: e.el$ }, () => [(p(), i(v(t), { el$: e.el$ }, null, 8, ["el$"]))])])
|
|
139
|
+
}))]), 1024);
|
|
8
140
|
}
|
|
141
|
+
var P = /*#__PURE__*/ r(b, [["render", N]]);
|
|
9
142
|
//#endregion
|
|
10
|
-
export {
|
|
143
|
+
export { P as default };
|
|
@@ -1,143 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
components: { Button: e },
|
|
9
|
-
name: "ArticleOfferElement",
|
|
10
|
-
setup(e, t) {
|
|
11
|
-
let n = r.articleEditorUrl, i = r.environment, a = r.searchImageWidgetUrl, o = r.imageBaseUrl, s = r.imageViewId, c = r.onFetchMetaTags, l = m((/* @__PURE__ */ new Date()).getTime().toString() + "image"), { value: p } = t.element, h = (e, t, n, r) => {
|
|
12
|
-
e === p.value.url && (p.value.image = t, p.value.title = n, p.value.lead = r);
|
|
13
|
-
};
|
|
14
|
-
r.gotMetagTags = h;
|
|
15
|
-
let g = () => {
|
|
16
|
-
p.value.url && r.onFetchMetaTags(p.value.url);
|
|
17
|
-
}, _ = (e) => {
|
|
18
|
-
e.preventDefault(), u(() => {
|
|
19
|
-
document.getElementById(l.value).showModal();
|
|
20
|
-
});
|
|
21
|
-
}, v = (e) => {
|
|
22
|
-
e.preventDefault(), p.value.imageId = "00000000-0000-0000-0000-000000000000", p.value.image = "";
|
|
23
|
-
}, y = (e) => {
|
|
24
|
-
if (!document.querySelector(`script[src="${e}"]`)) {
|
|
25
|
-
let t = document.createElement("script");
|
|
26
|
-
t.type = "text/javascript", t.src = e, document.head.appendChild(t);
|
|
27
|
-
}
|
|
28
|
-
}, b = (e) => {
|
|
29
|
-
if (e.detail.causationid == l.value) {
|
|
30
|
-
document.getElementById(l.value).close();
|
|
31
|
-
let t = e.detail.image;
|
|
32
|
-
p.value.image = t.url;
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
return f(() => {
|
|
36
|
-
window.removeEventListener("image-selected", b, !1);
|
|
37
|
-
}), d(() => {
|
|
38
|
-
window.addEventListener("image-selected", b);
|
|
39
|
-
}), y(a), {
|
|
40
|
-
articleEditorUrl: n,
|
|
41
|
-
environment: i,
|
|
42
|
-
imageViewId: s,
|
|
43
|
-
imageBaseUrl: o,
|
|
44
|
-
imageCausationId: l,
|
|
45
|
-
searchImageWidgetUrl: a,
|
|
46
|
-
selectImage: _,
|
|
47
|
-
resetImage: v,
|
|
48
|
-
addScript: y,
|
|
49
|
-
value: p,
|
|
50
|
-
fetchMetaTags: g,
|
|
51
|
-
onFetchMetaTags: c,
|
|
52
|
-
gotMetagTags: h
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
}), x = { class: "ac-component" }, S = { class: "c-input-row" }, C = ["value"], w = { class: "c-input-row" }, T = ["value"], E = { class: "c-input-row" }, D = ["value"], O = ["src"], k = { key: 0 }, A = {
|
|
56
|
-
class: "flex-center mt-2 w-100",
|
|
57
|
-
role: "group",
|
|
58
|
-
"aria-label": "Képválasztó gombok"
|
|
59
|
-
}, j = ["id"], M = [
|
|
60
|
-
"causationid",
|
|
61
|
-
"viewid",
|
|
62
|
-
"environment",
|
|
63
|
-
"aeurl"
|
|
64
|
-
];
|
|
65
|
-
function N(e, t, n, r, u, d) {
|
|
66
|
-
let f = _("Button"), m = _("ElementLayout");
|
|
67
|
-
return p(), i(m, null, c({ _: 2 }, [e.value ? {
|
|
68
|
-
name: "element",
|
|
69
|
-
fn: y(() => [
|
|
70
|
-
s("div", x, [t[7] ||= s("label", {
|
|
71
|
-
for: "articleUrl",
|
|
72
|
-
class: "c-label"
|
|
73
|
-
}, "Cikk url", -1), s("div", S, [s("input", {
|
|
74
|
-
type: "text",
|
|
75
|
-
id: "articleUrl",
|
|
76
|
-
class: "c-input",
|
|
77
|
-
placeholder: "Cikk url",
|
|
78
|
-
value: e.value.url,
|
|
79
|
-
onInput: t[0] ||= (t) => {
|
|
80
|
-
e.value.url = t.target.value;
|
|
81
|
-
},
|
|
82
|
-
onBlur: t[1] ||= (...t) => e.fetchMetaTags && e.fetchMetaTags(...t)
|
|
83
|
-
}, null, 40, C)])]),
|
|
84
|
-
s("div", null, [t[8] ||= s("label", {
|
|
85
|
-
for: "articleTitle",
|
|
86
|
-
class: "c-label"
|
|
87
|
-
}, "Címe", -1), s("div", w, [s("textarea", {
|
|
88
|
-
id: "articleTitle",
|
|
89
|
-
class: "c-input",
|
|
90
|
-
placeholder: "Címe",
|
|
91
|
-
value: e.value.title,
|
|
92
|
-
onInput: t[2] ||= (t) => e.value.title = t.target.value
|
|
93
|
-
}, null, 40, T)])]),
|
|
94
|
-
s("div", null, [t[9] ||= s("label", {
|
|
95
|
-
for: "articleLead",
|
|
96
|
-
class: "c-label"
|
|
97
|
-
}, "Lead", -1), s("div", E, [s("textarea", {
|
|
98
|
-
id: "articleLead",
|
|
99
|
-
class: "c-input",
|
|
100
|
-
placeholder: "Lead",
|
|
101
|
-
value: e.value.lead,
|
|
102
|
-
onInput: t[3] ||= (t) => e.value.lead = t.target.value
|
|
103
|
-
}, null, 40, D)])]),
|
|
104
|
-
s("div", null, [t[10] ||= s("label", {
|
|
105
|
-
class: "c-label",
|
|
106
|
-
style: { display: "block" }
|
|
107
|
-
}, "Kép", -1), s("img", {
|
|
108
|
-
alt: "",
|
|
109
|
-
src: e.value.image,
|
|
110
|
-
onInput: t[4] ||= (t) => e.value.image = t.target.value,
|
|
111
|
-
style: { height: "200px" }
|
|
112
|
-
}, null, 40, O)]),
|
|
113
|
-
e.value.imageId === "00000000-0000-0000-0000-000000000000" ? (p(), o("div", k, " Nincs kép kiválasztva! ")) : a("", !0),
|
|
114
|
-
s("div", A, [l(f, {
|
|
115
|
-
type: "dark",
|
|
116
|
-
label: "Kép Választás",
|
|
117
|
-
onClick: t[5] ||= (t) => {
|
|
118
|
-
e.selectImage(t);
|
|
119
|
-
}
|
|
120
|
-
}), l(f, {
|
|
121
|
-
type: "danger",
|
|
122
|
-
label: "Eltávolítás",
|
|
123
|
-
onClick: t[6] ||= (t) => {
|
|
124
|
-
e.resetImage(t);
|
|
125
|
-
}
|
|
126
|
-
})]),
|
|
127
|
-
s("dialog", { id: e.imageCausationId }, [s("hvg-search-image", {
|
|
128
|
-
causationid: e.imageCausationId,
|
|
129
|
-
viewid: e.imageViewId,
|
|
130
|
-
environment: e.environment,
|
|
131
|
-
aeurl: e.articleEditorUrl,
|
|
132
|
-
selectonly: "true"
|
|
133
|
-
}, null, 8, M)], 8, j)
|
|
134
|
-
]),
|
|
135
|
-
key: "0"
|
|
136
|
-
} : void 0, h(e.elementSlots, (t, n) => ({
|
|
137
|
-
name: n,
|
|
138
|
-
fn: y(() => [g(e.$slots, n, { el$: e.el$ }, () => [(p(), i(v(t), { el$: e.el$ }, null, 8, ["el$"]))])])
|
|
139
|
-
}))]), 1024);
|
|
1
|
+
//#region src/vueformelements/config/ArticlePickerElementConfig.ts
|
|
2
|
+
var e = window.config?.articlePicker || {};
|
|
3
|
+
function t(t) {
|
|
4
|
+
return e = {
|
|
5
|
+
...e,
|
|
6
|
+
...t
|
|
7
|
+
}, e;
|
|
140
8
|
}
|
|
141
|
-
var P = /* @__PURE__ */ t(b, [["render", N]]);
|
|
142
9
|
//#endregion
|
|
143
|
-
export {
|
|
10
|
+
export { e as apeConfig, t as configureArticlePickerElement };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
//#region src/vueformelements/config/
|
|
2
|
-
var e = window.config?.
|
|
1
|
+
//#region src/vueformelements/config/ImagePickerElementConfig.ts
|
|
2
|
+
var e = window.config?.imagePicker || {};
|
|
3
3
|
function t(t) {
|
|
4
4
|
return e = {
|
|
5
5
|
...e,
|
|
@@ -7,4 +7,4 @@ function t(t) {
|
|
|
7
7
|
}, e;
|
|
8
8
|
}
|
|
9
9
|
//#endregion
|
|
10
|
-
export {
|
|
10
|
+
export { t as configureImagePickerElement, e as ipeConfig };
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import './src/vueformelements/ArticlePickerElement.vue_vue_type_style_index_0_scoped_035d2808_lang.css';
|
|
2
|
+
import e from "./admins-components5.js";
|
|
3
|
+
import { defineElement as t } from "./admins-components148.js";
|
|
4
|
+
import n from "./admins-components150.js";
|
|
5
|
+
import { apeConfig as r } from "./admins-components152.js";
|
|
6
|
+
import { ipeConfig as i } from "./admins-components153.js";
|
|
7
|
+
/* empty css */
|
|
8
|
+
import { createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createSlots as l, createVNode as u, nextTick as d, onMounted as f, onUnmounted as p, openBlock as m, ref as h, renderList as g, renderSlot as _, resolveComponent as v, resolveDynamicComponent as y, withCtx as b } from "vue";
|
|
9
|
+
//#region src/vueformelements/ArticlePickerElement.vue
|
|
10
|
+
var x = t({
|
|
11
|
+
components: { Button: e },
|
|
12
|
+
name: "ArticlePickerElement",
|
|
13
|
+
setup(e, t) {
|
|
14
|
+
let n = i.environment, a = i.searchImageWidgetUrl, o = i.imageBaseUrl, s = i.imageViewId, c = r.searchArticleApiUrl, l = r.searchArticleWidgetUrl, u = r.showIds, m = h((/* @__PURE__ */ new Date()).getTime().toString() + "image"), g = h((/* @__PURE__ */ new Date()).getTime().toString() + "article"), _ = "00000000-0000-0000-0000-000000000000", { value: v } = t.element, y = (e) => {
|
|
15
|
+
e.preventDefault(), d(() => {
|
|
16
|
+
document.getElementById(m.value).showModal();
|
|
17
|
+
});
|
|
18
|
+
}, b = (e) => {
|
|
19
|
+
d(() => {
|
|
20
|
+
document.getElementById(g.value).showModal();
|
|
21
|
+
});
|
|
22
|
+
}, x = (e) => {
|
|
23
|
+
e.preventDefault(), v.value.imageId = _;
|
|
24
|
+
}, S = (e) => {
|
|
25
|
+
if (!document.querySelector(`script[src="${e}"]`)) {
|
|
26
|
+
let t = document.createElement("script");
|
|
27
|
+
t.type = "text/javascript", t.src = e, document.head.appendChild(t);
|
|
28
|
+
}
|
|
29
|
+
}, C = () => `${o}/${s}/${v.value.imageId}.img`;
|
|
30
|
+
S(a), S(l);
|
|
31
|
+
let w = (e) => {
|
|
32
|
+
e.detail.causationid == m.value && (document.getElementById(m.value).close(), v.value.imageId = e.detail.image.id);
|
|
33
|
+
};
|
|
34
|
+
return p(() => {
|
|
35
|
+
window.removeEventListener("image-selected", w, !1);
|
|
36
|
+
}), f(() => {
|
|
37
|
+
window.addEventListener("image-selected", w), window.addEventListener("search_posts_selected", (e) => {
|
|
38
|
+
if (e.detail.id == g.value) {
|
|
39
|
+
if (e.detail.result && e.detail.posts.length > 0) {
|
|
40
|
+
v.value.id = e.detail.posts[0].id, v.value.siteId = e.detail.posts[0].siteId, v.value.title = e.detail.posts[0].title, v.value.lead = e.detail.posts[0].lead;
|
|
41
|
+
let t = e.detail.posts[0].featuredImage;
|
|
42
|
+
v.value.imageId = t || _;
|
|
43
|
+
}
|
|
44
|
+
document.getElementById(g.value).close();
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
}), {
|
|
48
|
+
imageViewId: s,
|
|
49
|
+
imageBaseUrl: o,
|
|
50
|
+
imageCausationId: m,
|
|
51
|
+
articleCausationId: g,
|
|
52
|
+
searchImageWidgetUrl: a,
|
|
53
|
+
environment: n,
|
|
54
|
+
searchArticleApiUrl: c,
|
|
55
|
+
selectImage: y,
|
|
56
|
+
selectArticle: b,
|
|
57
|
+
resetImage: x,
|
|
58
|
+
addScript: S,
|
|
59
|
+
value: v,
|
|
60
|
+
getImageUrl: C,
|
|
61
|
+
showIds: u
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
}), S = { class: "ac-component" }, C = { class: "article-picker-container" }, w = { class: "article-picker-section" }, T = {
|
|
65
|
+
key: 0,
|
|
66
|
+
class: "article-picker-ids"
|
|
67
|
+
}, E = { class: "article-picker-id-field" }, D = { class: "c-input-row" }, O = ["value"], k = { class: "article-picker-id-field" }, A = { class: "c-input-row" }, j = ["value"], M = { class: "article-picker-section" }, N = { class: "c-input-row" }, P = ["value"], F = { class: "article-picker-section" }, I = { class: "c-input-row" }, L = ["value"], R = { class: "article-picker-section" }, z = ["src"], B = {
|
|
68
|
+
key: 1,
|
|
69
|
+
class: "article-picker-no-image"
|
|
70
|
+
}, V = { class: "article-picker-buttons" }, H = ["id"], U = [
|
|
71
|
+
"causationid",
|
|
72
|
+
"viewid",
|
|
73
|
+
"aeurl",
|
|
74
|
+
"environment"
|
|
75
|
+
], W = ["id"], G = ["id", "apiurl"];
|
|
76
|
+
function K(e, t, n, r, i, d) {
|
|
77
|
+
let f = v("Button"), p = v("ElementLayout");
|
|
78
|
+
return m(), a(p, null, l({ _: 2 }, [e.value ? {
|
|
79
|
+
name: "element",
|
|
80
|
+
fn: b(() => [c("div", S, [
|
|
81
|
+
c("div", C, [
|
|
82
|
+
c("div", w, [u(f, {
|
|
83
|
+
type: "normal",
|
|
84
|
+
label: "Cikk Választás",
|
|
85
|
+
onClick: e.selectArticle
|
|
86
|
+
}, null, 8, ["onClick"])]),
|
|
87
|
+
e.showIds ? (m(), s("div", T, [c("div", E, [t[3] ||= c("label", {
|
|
88
|
+
for: "articleId",
|
|
89
|
+
class: "c-label"
|
|
90
|
+
}, "Cikk azonosító", -1), c("div", D, [c("input", {
|
|
91
|
+
type: "text",
|
|
92
|
+
id: "articleId",
|
|
93
|
+
class: "c-input",
|
|
94
|
+
placeholder: "Cikk azonosító",
|
|
95
|
+
disabled: "",
|
|
96
|
+
value: e.value.id
|
|
97
|
+
}, null, 8, O)])]), c("div", k, [t[4] ||= c("label", {
|
|
98
|
+
for: "articleSiteId",
|
|
99
|
+
class: "c-label"
|
|
100
|
+
}, "Site azonosító", -1), c("div", A, [c("input", {
|
|
101
|
+
type: "text",
|
|
102
|
+
id: "articleSiteId",
|
|
103
|
+
class: "c-input",
|
|
104
|
+
placeholder: "Site azonosító",
|
|
105
|
+
disabled: "",
|
|
106
|
+
value: e.value.siteId
|
|
107
|
+
}, null, 8, j)])])])) : o("", !0),
|
|
108
|
+
c("div", M, [t[5] ||= c("label", {
|
|
109
|
+
for: "articleTitle",
|
|
110
|
+
class: "c-label"
|
|
111
|
+
}, "Címe", -1), c("div", N, [c("textarea", {
|
|
112
|
+
id: "articleTitle",
|
|
113
|
+
class: "c-input",
|
|
114
|
+
placeholder: "Címe",
|
|
115
|
+
value: e.value.title,
|
|
116
|
+
onInput: t[0] ||= (t) => e.value.title = t.target.value
|
|
117
|
+
}, null, 40, P)])]),
|
|
118
|
+
c("div", F, [t[6] ||= c("label", {
|
|
119
|
+
for: "articleLead",
|
|
120
|
+
class: "c-label"
|
|
121
|
+
}, "Lead", -1), c("div", I, [c("textarea", {
|
|
122
|
+
id: "articleLead",
|
|
123
|
+
class: "c-input",
|
|
124
|
+
placeholder: "Lead",
|
|
125
|
+
value: e.value.lead,
|
|
126
|
+
onInput: t[1] ||= (t) => e.value.lead = t.target.value
|
|
127
|
+
}, null, 40, L)])]),
|
|
128
|
+
c("div", R, [t[7] ||= c("label", { class: "c-label" }, "Kép", -1), c("img", {
|
|
129
|
+
alt: "",
|
|
130
|
+
src: e.getImageUrl(),
|
|
131
|
+
onInput: t[2] ||= (t) => e.value.image = t.target.value,
|
|
132
|
+
class: "article-picker-image"
|
|
133
|
+
}, null, 40, z)]),
|
|
134
|
+
e.value.imageId === "00000000-0000-0000-0000-000000000000" ? (m(), s("div", B, " Nincs kép kiválasztva! ")) : o("", !0),
|
|
135
|
+
c("div", V, [u(f, {
|
|
136
|
+
type: "normal",
|
|
137
|
+
label: "Kép Választás",
|
|
138
|
+
onClick: e.selectImage
|
|
139
|
+
}, null, 8, ["onClick"]), u(f, {
|
|
140
|
+
type: "error",
|
|
141
|
+
label: "Eltávolítás",
|
|
142
|
+
onClick: e.resetImage
|
|
143
|
+
}, null, 8, ["onClick"])])
|
|
144
|
+
]),
|
|
145
|
+
c("dialog", { id: e.imageCausationId }, [c("hvg-search-image", {
|
|
146
|
+
causationid: e.imageCausationId,
|
|
147
|
+
viewid: e.imageViewId,
|
|
148
|
+
aeurl: e.searchArticleApiUrl,
|
|
149
|
+
environment: e.environment,
|
|
150
|
+
selectonly: "true"
|
|
151
|
+
}, null, 8, U)], 8, H),
|
|
152
|
+
c("dialog", { id: e.articleCausationId }, [c("search-posts-widget", {
|
|
153
|
+
id: e.articleCausationId,
|
|
154
|
+
selector: "true",
|
|
155
|
+
apiurl: e.searchArticleApiUrl,
|
|
156
|
+
wpurl: "",
|
|
157
|
+
searchurl: "",
|
|
158
|
+
style: { height: "100%" }
|
|
159
|
+
}, null, 8, G)], 8, W)
|
|
160
|
+
])]),
|
|
161
|
+
key: "0"
|
|
162
|
+
} : void 0, g(e.elementSlots, (t, n) => ({
|
|
163
|
+
name: n,
|
|
164
|
+
fn: b(() => [_(e.$slots, n, { el$: e.el$ }, () => [(m(), a(y(t), { el$: e.el$ }, null, 8, ["el$"]))], !0)])
|
|
165
|
+
}))]), 1024);
|
|
166
|
+
}
|
|
167
|
+
var q = /*#__PURE__*/ n(x, [["render", K], ["__scopeId", "data-v-035d2808"]]);
|
|
168
|
+
//#endregion
|
|
169
|
+
export { q as default };
|