admins-components 9.0.6 → 9.0.8
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 +57 -57
- package/dist/admins-components100.js +26 -27
- package/dist/admins-components101.js +25 -169
- package/dist/admins-components102.js +165 -61
- package/dist/admins-components103.js +61 -70
- package/dist/admins-components104.js +65 -28
- package/dist/admins-components105.js +28 -14
- package/dist/admins-components106.js +15 -26
- package/dist/admins-components107.js +26 -9
- package/dist/admins-components108.js +9 -4
- package/dist/admins-components109.js +4 -3
- package/dist/admins-components11.js +9 -38
- package/dist/admins-components110.js +2 -2
- package/dist/admins-components111.js +3 -21
- package/dist/admins-components112.js +21 -14
- package/dist/admins-components113.js +14 -8
- package/dist/admins-components114.js +8 -13
- package/dist/admins-components115.js +12 -33
- package/dist/admins-components116.js +24 -81
- package/dist/admins-components117.js +82 -10
- package/dist/admins-components118.js +10 -4
- package/dist/admins-components119.js +5 -8
- package/dist/admins-components12.js +37 -141
- package/dist/admins-components120.js +7 -6
- package/dist/admins-components121.js +6 -5
- package/dist/admins-components122.js +4 -13
- package/dist/admins-components123.js +11 -9
- package/dist/admins-components124.js +13 -30
- package/dist/admins-components125.js +30 -4
- package/dist/admins-components126.js +4 -29
- package/dist/admins-components127.js +29 -5
- package/dist/admins-components128.js +3 -3
- package/dist/admins-components129.js +4 -21
- package/dist/admins-components13.js +145 -5
- package/dist/admins-components130.js +7 -81
- package/dist/admins-components131.js +70 -29
- package/dist/admins-components132.js +27 -57
- package/dist/admins-components133.js +57 -22
- package/dist/admins-components134.js +21 -47
- package/dist/admins-components135.js +48 -30
- package/dist/admins-components136.js +31 -3
- package/dist/admins-components137.js +3 -186
- package/dist/admins-components138.js +176 -43
- package/dist/admins-components139.js +44 -35
- package/dist/admins-components14.js +5 -46
- package/dist/admins-components140.js +34 -43
- package/dist/admins-components141.js +42 -138
- package/dist/admins-components142.js +134 -51
- package/dist/admins-components143.js +58 -7
- package/dist/admins-components144.js +6 -5
- package/dist/admins-components145.js +6 -76
- package/dist/admins-components146.js +76 -29
- package/dist/admins-components147.js +29 -1931
- package/dist/admins-components148.js +1763 -24900
- package/dist/admins-components149.js +24810 -8
- package/dist/admins-components15.js +49 -4
- package/dist/admins-components150.js +9 -7
- package/dist/admins-components151.js +7 -142
- package/dist/admins-components152.js +141 -8
- package/dist/admins-components153.js +3 -3
- package/dist/admins-components154.js +10 -0
- package/dist/admins-components156.js +161 -44
- package/dist/admins-components157.js +50 -8
- package/dist/admins-components158.js +8 -49
- package/dist/admins-components159.js +50 -6
- package/dist/admins-components16.js +4 -94
- package/dist/admins-components160.js +6 -80
- package/dist/admins-components161.js +70 -48
- package/dist/admins-components162.js +31 -32
- package/dist/admins-components163.js +58 -8
- package/dist/admins-components164.js +8 -51
- package/dist/admins-components165.js +51 -8
- package/dist/admins-components166.js +10 -0
- package/dist/{admins-components167.js → admins-components168.js} +4 -4
- package/dist/admins-components17.js +91 -225
- package/dist/admins-components18.js +245 -5
- package/dist/admins-components19.js +5 -181
- package/dist/admins-components20.js +183 -0
- package/dist/admins-components22.js +6 -72
- package/dist/admins-components23.js +78 -6
- package/dist/admins-components24.js +6 -58
- package/dist/admins-components25.js +59 -0
- package/dist/admins-components27.js +6 -60
- package/dist/admins-components28.js +61 -0
- package/dist/admins-components30.js +6 -36
- package/dist/admins-components31.js +37 -0
- package/dist/admins-components33.js +6 -36
- package/dist/admins-components34.js +36 -4
- package/dist/admins-components35.js +4 -32
- package/dist/admins-components36.js +33 -0
- package/dist/admins-components38.js +6 -147
- package/dist/admins-components39.js +148 -0
- package/dist/admins-components4.js +9 -56
- package/dist/admins-components41.js +6 -124
- package/dist/admins-components42.js +124 -4
- package/dist/admins-components43.js +4 -179
- package/dist/admins-components44.js +179 -4
- package/dist/admins-components45.js +4 -19
- package/dist/admins-components46.js +20 -0
- package/dist/admins-components48.js +6 -54
- package/dist/admins-components49.js +54 -93
- package/dist/admins-components5.js +57 -4
- package/dist/admins-components50.js +94 -0
- package/dist/admins-components52.js +6 -25
- package/dist/admins-components53.js +25 -9
- package/dist/admins-components54.js +9 -19
- package/dist/admins-components55.js +18 -72
- package/dist/admins-components56.js +73 -59
- package/dist/admins-components57.js +59 -4
- package/dist/admins-components58.js +4 -120
- package/dist/admins-components59.js +122 -0
- package/dist/admins-components6.js +4 -29
- package/dist/admins-components61.js +7 -143
- package/dist/admins-components62.js +148 -0
- package/dist/admins-components64.js +7 -7
- package/dist/admins-components65.js +7 -263
- package/dist/admins-components66.js +264 -0
- package/dist/admins-components68.js +6 -111
- package/dist/admins-components69.js +112 -0
- package/dist/admins-components7.js +29 -252
- package/dist/admins-components71.js +6 -59
- package/dist/admins-components72.js +55 -217
- package/dist/admins-components73.js +222 -0
- package/dist/admins-components75.js +6 -8
- package/dist/admins-components76.js +7 -45
- package/dist/admins-components77.js +45 -249
- package/dist/admins-components78.js +264 -0
- package/dist/admins-components8.js +253 -0
- package/dist/admins-components80.js +7 -37
- package/dist/admins-components81.js +38 -0
- package/dist/admins-components83.js +6 -198
- package/dist/admins-components84.js +199 -0
- package/dist/admins-components86.js +6 -203
- package/dist/admins-components87.js +204 -0
- package/dist/admins-components89.js +7 -3
- package/dist/admins-components90.js +3 -16
- package/dist/admins-components91.js +16 -3
- package/dist/admins-components92.js +3 -52
- package/dist/admins-components93.js +50 -80
- package/dist/admins-components94.js +78 -109
- package/dist/admins-components95.js +110 -41
- package/dist/admins-components96.js +39 -101
- package/dist/admins-components97.js +105 -6
- package/dist/admins-components98.js +5 -261
- package/dist/admins-components99.js +250 -25
- package/dist/base.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/src/components/Button.vue.d.ts +2 -3
- 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 +4 -2
- package/dist/src/components/DateRangePicker.vue.d.ts +2 -2
- package/dist/src/components/DropdownMenu.vue.d.ts +4 -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 -85
- package/dist/src/vueformelements/config/ExternalArticleOfferElementConfig.d.ts +1 -1
- package/package.json +2 -3
- package/dist/admins-components10.js +0 -10
- package/dist/admins-components155.js +0 -169
- package/dist/admins-components21.js +0 -7
- package/dist/admins-components26.js +0 -7
- package/dist/admins-components29.js +0 -7
- package/dist/admins-components32.js +0 -7
- package/dist/admins-components37.js +0 -7
- package/dist/admins-components40.js +0 -7
- package/dist/admins-components47.js +0 -7
- package/dist/admins-components51.js +0 -7
- package/dist/admins-components60.js +0 -8
- package/dist/admins-components63.js +0 -8
- package/dist/admins-components67.js +0 -7
- package/dist/admins-components70.js +0 -7
- package/dist/admins-components74.js +0 -7
- package/dist/admins-components79.js +0 -8
- package/dist/admins-components82.js +0 -7
- package/dist/admins-components85.js +0 -7
- package/dist/admins-components88.js +0 -8
|
@@ -1,148 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
//#region src/components/
|
|
5
|
-
var
|
|
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
|
-
});
|
|
1
|
+
import './src/styles/components/copy-to-clipboard.scss_vue_type_style_index_0_src_true_lang.css';
|
|
2
|
+
import e from "./admins-components36.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
//#region src/components/CopyToClipboard.vue
|
|
5
|
+
var t = e;
|
|
147
6
|
//#endregion
|
|
148
|
-
export {
|
|
7
|
+
export { t as default };
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import e from "./admins-components6.js";
|
|
2
|
+
import t from "./admins-components33.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
|
+
});
|
|
147
|
+
//#endregion
|
|
148
|
+
export { N as default };
|
|
@@ -1,57 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
outline: !1,
|
|
10
|
-
icon: void 0,
|
|
11
|
-
iconPosition: "left",
|
|
12
|
-
labelAlignmentFix: !1,
|
|
13
|
-
callback: void 0
|
|
14
|
-
}, d = /*@__PURE__*/ i({
|
|
15
|
-
__name: "Button",
|
|
16
|
-
props: /*@__PURE__*/ a({
|
|
17
|
-
size: {},
|
|
18
|
-
type: {},
|
|
19
|
-
outline: { type: Boolean },
|
|
20
|
-
icon: {},
|
|
21
|
-
iconPosition: {},
|
|
22
|
-
label: {},
|
|
23
|
-
callback: { type: Function },
|
|
24
|
-
indicator: {},
|
|
25
|
-
labelAlignmentFix: { type: Boolean }
|
|
26
|
-
}, { ...u }),
|
|
27
|
-
setup(i) {
|
|
28
|
-
let a = i, u = e(() => [
|
|
29
|
-
"c-btn",
|
|
30
|
-
a.size === "small" && "c-btn-sm",
|
|
31
|
-
a.size === "large" && "c-btn-lg",
|
|
32
|
-
a.outline && "c-btn-outline",
|
|
33
|
-
a.type !== "normal" && `c-btn-${a.type}`,
|
|
34
|
-
a.icon && !a.label && "c-btn-icon-only"
|
|
35
|
-
]);
|
|
36
|
-
return (e, a) => (s(), n("button", {
|
|
37
|
-
type: "button",
|
|
38
|
-
class: o(u.value),
|
|
39
|
-
onClick: a[0] ||= (e) => i.callback?.()
|
|
40
|
-
}, [
|
|
41
|
-
i.icon && i.iconPosition === "left" ? (s(), n("i", {
|
|
42
|
-
key: 0,
|
|
43
|
-
class: o(i.icon)
|
|
44
|
-
}, null, 2)) : t("", !0),
|
|
45
|
-
i.label ? (s(), n("span", {
|
|
46
|
-
key: 1,
|
|
47
|
-
class: o({ "align-center-text-fix": i.labelAlignmentFix })
|
|
48
|
-
}, [r(c(i.label) + " ", 1), i.indicator !== void 0 && i.indicator !== null ? (s(), n("span", l, c(i.indicator), 1)) : t("", !0)], 2)) : t("", !0),
|
|
49
|
-
i.icon && i.iconPosition === "right" ? (s(), n("i", {
|
|
50
|
-
key: 2,
|
|
51
|
-
class: o(i.icon)
|
|
52
|
-
}, null, 2)) : t("", !0)
|
|
53
|
-
], 2));
|
|
54
|
-
}
|
|
55
|
-
});
|
|
1
|
+
//#region src/utils/dom.ts
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
let n = e === "small" ? "sm" : e === "large" ? "lg" : "";
|
|
4
|
+
return n ? t ? `${t}-${n}` : n : "";
|
|
5
|
+
}
|
|
6
|
+
function t(e, t) {
|
|
7
|
+
return !e || e === "normal" ? "" : t ? `${t}-${e}` : e;
|
|
8
|
+
}
|
|
56
9
|
//#endregion
|
|
57
|
-
export {
|
|
10
|
+
export { e as sizeToClass, t as typeToClass };
|
|
@@ -1,125 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
//#region src/components/custom/
|
|
5
|
-
var
|
|
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 './src/styles/components/image-picker.scss_vue_type_style_index_0_src_true_lang.css';
|
|
2
|
+
import e from "./admins-components39.js";
|
|
3
|
+
/* empty css */
|
|
4
|
+
//#region src/components/custom/ImagePicker.vue
|
|
5
|
+
var t = e;
|
|
124
6
|
//#endregion
|
|
125
|
-
export {
|
|
7
|
+
export { t as default };
|
|
@@ -1,5 +1,125 @@
|
|
|
1
|
-
import e from "./admins-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import e from "./admins-components22.js";
|
|
2
|
+
import t from "./admins-components41.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
|
+
});
|
|
4
124
|
//#endregion
|
|
5
|
-
export {
|
|
125
|
+
export { g as default };
|