admins-components 9.0.8 → 9.0.10
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 +31 -29
- package/dist/admins-components100.js +250 -25
- package/dist/admins-components101.js +26 -27
- package/dist/admins-components102.js +25 -169
- package/dist/admins-components103.js +165 -61
- package/dist/admins-components104.js +61 -60
- package/dist/admins-components105.js +65 -28
- package/dist/admins-components106.js +28 -14
- package/dist/admins-components107.js +15 -26
- package/dist/admins-components108.js +26 -8
- package/dist/admins-components109.js +9 -4
- package/dist/admins-components110.js +4 -3
- package/dist/admins-components111.js +2 -2
- package/dist/admins-components112.js +3 -21
- package/dist/admins-components113.js +21 -14
- package/dist/admins-components114.js +14 -8
- package/dist/admins-components115.js +8 -13
- package/dist/admins-components116.js +11 -24
- package/dist/admins-components117.js +24 -81
- package/dist/admins-components118.js +82 -10
- package/dist/admins-components119.js +10 -4
- package/dist/admins-components120.js +5 -8
- package/dist/admins-components121.js +7 -6
- package/dist/admins-components122.js +6 -5
- package/dist/admins-components123.js +4 -13
- package/dist/admins-components124.js +11 -9
- package/dist/admins-components125.js +13 -30
- package/dist/admins-components126.js +30 -4
- package/dist/admins-components127.js +4 -29
- package/dist/admins-components128.js +29 -5
- package/dist/admins-components129.js +3 -3
- package/dist/admins-components13.js +1 -1
- package/dist/admins-components130.js +4 -7
- package/dist/admins-components131.js +7 -73
- package/dist/admins-components132.js +71 -26
- package/dist/admins-components133.js +27 -57
- package/dist/admins-components134.js +57 -22
- package/dist/admins-components135.js +21 -47
- package/dist/admins-components136.js +48 -29
- package/dist/admins-components137.js +31 -3
- package/dist/admins-components138.js +3 -179
- package/dist/admins-components139.js +176 -43
- package/dist/admins-components140.js +44 -35
- package/dist/admins-components141.js +34 -43
- package/dist/admins-components142.js +42 -137
- package/dist/admins-components143.js +134 -51
- package/dist/admins-components144.js +58 -7
- package/dist/admins-components145.js +6 -5
- package/dist/admins-components146.js +6 -76
- package/dist/admins-components147.js +76 -29
- package/dist/admins-components148.js +29 -1931
- package/dist/admins-components149.js +1748 -24628
- package/dist/admins-components15.js +9 -10
- package/dist/admins-components150.js +24810 -8
- package/dist/admins-components151.js +9 -7
- package/dist/admins-components152.js +7 -142
- package/dist/admins-components153.js +141 -8
- package/dist/admins-components154.js +3 -3
- package/dist/admins-components155.js +10 -0
- package/dist/admins-components157.js +161 -44
- package/dist/admins-components158.js +50 -8
- package/dist/admins-components159.js +8 -49
- package/dist/admins-components160.js +50 -6
- package/dist/admins-components161.js +6 -80
- package/dist/admins-components162.js +70 -48
- package/dist/admins-components163.js +30 -31
- package/dist/admins-components164.js +58 -8
- package/dist/admins-components165.js +8 -51
- package/dist/admins-components166.js +51 -8
- package/dist/admins-components167.js +10 -0
- package/dist/{admins-components168.js → admins-components169.js} +3 -3
- package/dist/admins-components18.js +90 -91
- package/dist/admins-components20.js +40 -40
- package/dist/admins-components77.js +4 -2
- package/dist/admins-components78.js +2 -2
- package/dist/admins-components87.js +1 -1
- package/dist/admins-components95.js +3 -3
- package/dist/admins-components98.js +19 -6
- package/dist/admins-components99.js +5 -250
- package/dist/src/index.d.ts +2 -0
- package/package.json +1 -1
- package/dist/admins-components156.js +0 -169
|
@@ -1,253 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
return e[r] || (e[r] = r.slice(8, -1).toLowerCase());
|
|
6
|
-
})(Object.create(null)), o = (e) => (e = e.toLowerCase(), (t) => a(t) === e), s = (e) => (t) => typeof t === e, { isArray: c } = Array, l = s("undefined");
|
|
7
|
-
function u(e) {
|
|
8
|
-
return e !== null && !l(e) && e.constructor !== null && !l(e.constructor) && m(e.constructor.isBuffer) && e.constructor.isBuffer(e);
|
|
9
|
-
}
|
|
10
|
-
var d = o("ArrayBuffer");
|
|
11
|
-
function f(e) {
|
|
12
|
-
let t;
|
|
13
|
-
return t = typeof ArrayBuffer < "u" && ArrayBuffer.isView ? ArrayBuffer.isView(e) : e && e.buffer && d(e.buffer), t;
|
|
14
|
-
}
|
|
15
|
-
var p = s("string"), m = s("function"), h = s("number"), g = (e) => typeof e == "object" && !!e, _ = (e) => e === !0 || e === !1, v = (e) => {
|
|
16
|
-
if (a(e) !== "object") return !1;
|
|
17
|
-
let t = n(e);
|
|
18
|
-
return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(i in e) && !(r in e);
|
|
19
|
-
}, y = (e) => {
|
|
20
|
-
if (!g(e) || u(e)) return !1;
|
|
21
|
-
try {
|
|
22
|
-
return Object.keys(e).length === 0 && Object.getPrototypeOf(e) === Object.prototype;
|
|
23
|
-
} catch {
|
|
24
|
-
return !1;
|
|
25
|
-
}
|
|
26
|
-
}, b = o("Date"), x = o("File"), S = (e) => !!(e && e.uri !== void 0), C = (e) => e && e.getParts !== void 0, ee = o("Blob"), te = o("FileList"), ne = (e) => g(e) && m(e.pipe);
|
|
27
|
-
function w() {
|
|
28
|
-
return typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {};
|
|
29
|
-
}
|
|
30
|
-
var T = w(), E = T.FormData === void 0 ? void 0 : T.FormData, D = (e) => {
|
|
31
|
-
if (!e) return !1;
|
|
32
|
-
if (E && e instanceof E) return !0;
|
|
33
|
-
let t = n(e);
|
|
34
|
-
if (!t || t === Object.prototype || !m(e.append)) return !1;
|
|
35
|
-
let r = a(e);
|
|
36
|
-
return r === "formdata" || r === "object" && m(e.toString) && e.toString() === "[object FormData]";
|
|
37
|
-
}, O = o("URLSearchParams"), [k, A, j, M] = [
|
|
38
|
-
"ReadableStream",
|
|
39
|
-
"Request",
|
|
40
|
-
"Response",
|
|
41
|
-
"Headers"
|
|
42
|
-
].map(o), N = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
43
|
-
function P(e, t, { allOwnKeys: n = !1 } = {}) {
|
|
44
|
-
if (e == null) return;
|
|
45
|
-
let r, i;
|
|
46
|
-
if (typeof e != "object" && (e = [e]), c(e)) for (r = 0, i = e.length; r < i; r++) t.call(null, e[r], r, e);
|
|
47
|
-
else {
|
|
48
|
-
if (u(e)) return;
|
|
49
|
-
let i = n ? Object.getOwnPropertyNames(e) : Object.keys(e), a = i.length, o;
|
|
50
|
-
for (r = 0; r < a; r++) o = i[r], t.call(null, e[o], o, e);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
function F(e, t) {
|
|
54
|
-
if (u(e)) return null;
|
|
55
|
-
t = t.toLowerCase();
|
|
56
|
-
let n = Object.keys(e), r = n.length, i;
|
|
57
|
-
for (; r-- > 0;) if (i = n[r], t === i.toLowerCase()) return i;
|
|
58
|
-
return null;
|
|
59
|
-
}
|
|
60
|
-
var I = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, L = (e) => !l(e) && e !== I;
|
|
61
|
-
function R(...e) {
|
|
62
|
-
let { caseless: t, skipUndefined: n } = L(this) && this || {}, r = {}, i = (e, i) => {
|
|
63
|
-
if (i === "__proto__" || i === "constructor" || i === "prototype") return;
|
|
64
|
-
let a = t && typeof i == "string" && F(r, i) || i, o = Y(r, a) ? r[a] : void 0;
|
|
65
|
-
v(o) && v(e) ? r[a] = R(o, e) : v(e) ? r[a] = R({}, e) : c(e) ? r[a] = e.slice() : (!n || !l(e)) && (r[a] = e);
|
|
66
|
-
};
|
|
67
|
-
for (let t = 0, n = e.length; t < n; t++) {
|
|
68
|
-
let n = e[t];
|
|
69
|
-
if (!n || u(n) || (P(n, i), typeof n != "object" || c(n))) continue;
|
|
70
|
-
let r = Object.getOwnPropertySymbols(n);
|
|
71
|
-
for (let e = 0; e < r.length; e++) {
|
|
72
|
-
let t = r[e];
|
|
73
|
-
X.call(n, t) && i(n[t], t);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
return r;
|
|
77
|
-
}
|
|
78
|
-
var z = (t, n, r, { allOwnKeys: i } = {}) => (P(n, (n, i) => {
|
|
79
|
-
r && m(n) ? Object.defineProperty(t, i, {
|
|
80
|
-
__proto__: null,
|
|
81
|
-
value: e(n, r),
|
|
82
|
-
writable: !0,
|
|
83
|
-
enumerable: !0,
|
|
84
|
-
configurable: !0
|
|
85
|
-
}) : Object.defineProperty(t, i, {
|
|
86
|
-
__proto__: null,
|
|
87
|
-
value: n,
|
|
88
|
-
writable: !0,
|
|
89
|
-
enumerable: !0,
|
|
90
|
-
configurable: !0
|
|
91
|
-
});
|
|
92
|
-
}, { allOwnKeys: i }), t), B = (e) => (e.charCodeAt(0) === 65279 && (e = e.slice(1)), e), V = (e, t, n, r) => {
|
|
93
|
-
e.prototype = Object.create(t.prototype, r), Object.defineProperty(e.prototype, "constructor", {
|
|
94
|
-
__proto__: null,
|
|
95
|
-
value: e,
|
|
96
|
-
writable: !0,
|
|
97
|
-
enumerable: !1,
|
|
98
|
-
configurable: !0
|
|
99
|
-
}), Object.defineProperty(e, "super", {
|
|
100
|
-
__proto__: null,
|
|
101
|
-
value: t.prototype
|
|
102
|
-
}), n && Object.assign(e.prototype, n);
|
|
103
|
-
}, H = (e, t, r, i) => {
|
|
104
|
-
let a, o, s, c = {};
|
|
105
|
-
if (t ||= {}, e == null) return t;
|
|
106
|
-
do {
|
|
107
|
-
for (a = Object.getOwnPropertyNames(e), o = a.length; o-- > 0;) s = a[o], (!i || i(s, e, t)) && !c[s] && (t[s] = e[s], c[s] = !0);
|
|
108
|
-
e = r !== !1 && n(e);
|
|
109
|
-
} while (e && (!r || r(e, t)) && e !== Object.prototype);
|
|
110
|
-
return t;
|
|
111
|
-
}, U = (e, t, n) => {
|
|
112
|
-
e = String(e), (n === void 0 || n > e.length) && (n = e.length), n -= t.length;
|
|
113
|
-
let r = e.indexOf(t, n);
|
|
114
|
-
return r !== -1 && r === n;
|
|
115
|
-
}, re = (e) => {
|
|
116
|
-
if (!e) return null;
|
|
117
|
-
if (c(e)) return e;
|
|
118
|
-
let t = e.length;
|
|
119
|
-
if (!h(t)) return null;
|
|
120
|
-
let n = Array(t);
|
|
121
|
-
for (; t-- > 0;) n[t] = e[t];
|
|
122
|
-
return n;
|
|
123
|
-
}, W = ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && n(Uint8Array)), G = (e, t) => {
|
|
124
|
-
let n = (e && e[r]).call(e), i;
|
|
125
|
-
for (; (i = n.next()) && !i.done;) {
|
|
126
|
-
let n = i.value;
|
|
127
|
-
t.call(e, n[0], n[1]);
|
|
128
|
-
}
|
|
129
|
-
}, K = (e, t) => {
|
|
130
|
-
let n, r = [];
|
|
131
|
-
for (; (n = e.exec(t)) !== null;) r.push(n);
|
|
132
|
-
return r;
|
|
133
|
-
}, q = o("HTMLFormElement"), J = (e) => e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g, function(e, t, n) {
|
|
134
|
-
return t.toUpperCase() + n;
|
|
135
|
-
}), Y = (({ hasOwnProperty: e }) => (t, n) => e.call(t, n))(Object.prototype), { propertyIsEnumerable: X } = Object.prototype, ie = o("RegExp"), Z = (e, t) => {
|
|
136
|
-
let n = Object.getOwnPropertyDescriptors(e), r = {};
|
|
137
|
-
P(n, (n, i) => {
|
|
138
|
-
let a;
|
|
139
|
-
(a = t(n, i, e)) !== !1 && (r[i] = a || n);
|
|
140
|
-
}), Object.defineProperties(e, r);
|
|
141
|
-
}, ae = (e) => {
|
|
142
|
-
Z(e, (t, n) => {
|
|
143
|
-
if (m(e) && [
|
|
144
|
-
"arguments",
|
|
145
|
-
"caller",
|
|
146
|
-
"callee"
|
|
147
|
-
].includes(n)) return !1;
|
|
148
|
-
let r = e[n];
|
|
149
|
-
if (m(r)) {
|
|
150
|
-
if (t.enumerable = !1, "writable" in t) {
|
|
151
|
-
t.writable = !1;
|
|
152
|
-
return;
|
|
153
|
-
}
|
|
154
|
-
t.set ||= () => {
|
|
155
|
-
throw Error("Can not rewrite read-only method '" + n + "'");
|
|
156
|
-
};
|
|
157
|
-
}
|
|
158
|
-
});
|
|
159
|
-
}, oe = (e, t) => {
|
|
160
|
-
let n = {}, r = (e) => {
|
|
161
|
-
e.forEach((e) => {
|
|
162
|
-
n[e] = !0;
|
|
163
|
-
});
|
|
1
|
+
//#region node_modules/axios/lib/helpers/bind.js
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
return function() {
|
|
4
|
+
return e.apply(t, arguments);
|
|
164
5
|
};
|
|
165
|
-
return c(e) ? r(e) : r(String(e).split(t)), n;
|
|
166
|
-
}, se = () => {}, ce = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
|
|
167
|
-
function le(e) {
|
|
168
|
-
return !!(e && m(e.append) && e[i] === "FormData" && e[r]);
|
|
169
6
|
}
|
|
170
|
-
var ue = (e) => {
|
|
171
|
-
let t = /* @__PURE__ */ new WeakSet(), n = (e) => {
|
|
172
|
-
if (g(e)) {
|
|
173
|
-
if (t.has(e)) return;
|
|
174
|
-
if (u(e)) return e;
|
|
175
|
-
if (!("toJSON" in e)) {
|
|
176
|
-
t.add(e);
|
|
177
|
-
let r = c(e) ? [] : {};
|
|
178
|
-
return P(e, (e, t) => {
|
|
179
|
-
let i = n(e);
|
|
180
|
-
!l(i) && (r[t] = i);
|
|
181
|
-
}), t.delete(e), r;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
return e;
|
|
185
|
-
};
|
|
186
|
-
return n(e);
|
|
187
|
-
}, Q = o("AsyncFunction"), de = (e) => e && (g(e) || m(e)) && m(e.then) && m(e.catch), $ = ((e, t) => e ? setImmediate : t ? ((e, t) => (I.addEventListener("message", ({ source: n, data: r }) => {
|
|
188
|
-
n === I && r === e && t.length && t.shift()();
|
|
189
|
-
}, !1), (n) => {
|
|
190
|
-
t.push(n), I.postMessage(e, "*");
|
|
191
|
-
}))(`axios@${Math.random()}`, []) : (e) => setTimeout(e))(typeof setImmediate == "function", m(I.postMessage)), fe = {
|
|
192
|
-
isArray: c,
|
|
193
|
-
isArrayBuffer: d,
|
|
194
|
-
isBuffer: u,
|
|
195
|
-
isFormData: D,
|
|
196
|
-
isArrayBufferView: f,
|
|
197
|
-
isString: p,
|
|
198
|
-
isNumber: h,
|
|
199
|
-
isBoolean: _,
|
|
200
|
-
isObject: g,
|
|
201
|
-
isPlainObject: v,
|
|
202
|
-
isEmptyObject: y,
|
|
203
|
-
isReadableStream: k,
|
|
204
|
-
isRequest: A,
|
|
205
|
-
isResponse: j,
|
|
206
|
-
isHeaders: M,
|
|
207
|
-
isUndefined: l,
|
|
208
|
-
isDate: b,
|
|
209
|
-
isFile: x,
|
|
210
|
-
isReactNativeBlob: S,
|
|
211
|
-
isReactNative: C,
|
|
212
|
-
isBlob: ee,
|
|
213
|
-
isRegExp: ie,
|
|
214
|
-
isFunction: m,
|
|
215
|
-
isStream: ne,
|
|
216
|
-
isURLSearchParams: O,
|
|
217
|
-
isTypedArray: W,
|
|
218
|
-
isFileList: te,
|
|
219
|
-
forEach: P,
|
|
220
|
-
merge: R,
|
|
221
|
-
extend: z,
|
|
222
|
-
trim: N,
|
|
223
|
-
stripBOM: B,
|
|
224
|
-
inherits: V,
|
|
225
|
-
toFlatObject: H,
|
|
226
|
-
kindOf: a,
|
|
227
|
-
kindOfTest: o,
|
|
228
|
-
endsWith: U,
|
|
229
|
-
toArray: re,
|
|
230
|
-
forEachEntry: G,
|
|
231
|
-
matchAll: K,
|
|
232
|
-
isHTMLForm: q,
|
|
233
|
-
hasOwnProperty: Y,
|
|
234
|
-
hasOwnProp: Y,
|
|
235
|
-
reduceDescriptors: Z,
|
|
236
|
-
freezeMethods: ae,
|
|
237
|
-
toObjectSet: oe,
|
|
238
|
-
toCamelCase: J,
|
|
239
|
-
noop: se,
|
|
240
|
-
toFiniteNumber: ce,
|
|
241
|
-
findKey: F,
|
|
242
|
-
global: I,
|
|
243
|
-
isContextDefined: L,
|
|
244
|
-
isSpecCompliantForm: le,
|
|
245
|
-
toJSONObject: ue,
|
|
246
|
-
isAsyncFn: Q,
|
|
247
|
-
isThenable: de,
|
|
248
|
-
setImmediate: $,
|
|
249
|
-
asap: typeof queueMicrotask < "u" ? queueMicrotask.bind(I) : typeof process < "u" && process.nextTick || $,
|
|
250
|
-
isIterable: (e) => e != null && m(e[r])
|
|
251
|
-
};
|
|
252
7
|
//#endregion
|
|
253
|
-
export {
|
|
8
|
+
export { e as default };
|
package/dist/src/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export { default as InternalArticleOffer } from './components/custom/InternalArt
|
|
|
16
16
|
export { default as Loader } from './components/Loader.vue';
|
|
17
17
|
export { default as ToastNotification } from './components/ToastNotification.vue';
|
|
18
18
|
export { default as DataList, dataListDefaults, getDefaultPaginator, } from './components/data-table/DataList.vue';
|
|
19
|
+
export { getFilterParams } from './components/data-table/DataFilters.vue';
|
|
19
20
|
export { default as DataTable } from './components/data-table/DataTable.vue';
|
|
20
21
|
export { default as DataCards } from './components/data-table/DataCards.vue';
|
|
21
22
|
export { default as DataFilters } from './components/data-table/DataFilters.vue';
|
|
@@ -60,6 +61,7 @@ export { FetchError, FetchDetails, Methods, initRequest, type HttpRequest, } fro
|
|
|
60
61
|
export { createNativeFetch, type NativeUseFetchReturn, type CreateFetchOptions, } from './services/createNativeFetch';
|
|
61
62
|
export { useCurrentUser, type CurrentUserStore, type UserState } from './services/currentUserInfo';
|
|
62
63
|
export { useArticleEditorService, type ArticleEditorService } from './services/articleEditorService';
|
|
64
|
+
export { useBackendService, BackendService, type BackendServiceConfig, type EndpointConfig, type EndpointsMap, type EndpointRequests, } from './services/backendService';
|
|
63
65
|
export { default as ArticleOfferElement } from './vueformelements/ArticleOfferElement.vue';
|
|
64
66
|
export { default as ArticlePickerElement } from './vueformelements/ArticlePickerElement.vue';
|
|
65
67
|
export { default as DateTimePickerElement } from './vueformelements/DateTimePickerElement.vue';
|
package/package.json
CHANGED
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
import './src/vueformelements/ArticlePickerElement.vue_vue_type_style_index_0_scoped_035d2808_lang.css';
|
|
2
|
-
import e from "./admins-components6.js";
|
|
3
|
-
import { defineElement as t } from "./admins-components149.js";
|
|
4
|
-
import n from "./admins-components151.js";
|
|
5
|
-
import { apeConfig as r } from "./admins-components153.js";
|
|
6
|
-
import { ipeConfig as i } from "./admins-components154.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 };
|