admins-components 9.0.27 → 9.0.29
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/README.md +4 -22
- package/dist/admins-components.js +53 -52
- package/dist/admins-components100.js +79 -249
- package/dist/admins-components100.js.map +1 -1
- package/dist/admins-components101.js +112 -26
- package/dist/admins-components101.js.map +1 -1
- package/dist/admins-components102.js +45 -26
- package/dist/admins-components102.js.map +1 -1
- package/dist/admins-components103.js +102 -168
- package/dist/admins-components103.js.map +1 -1
- package/dist/admins-components104.js +17 -65
- package/dist/admins-components104.js.map +1 -1
- package/dist/admins-components105.js +6 -66
- package/dist/admins-components105.js.map +1 -1
- package/dist/admins-components106.js +247 -25
- package/dist/admins-components106.js.map +1 -1
- package/dist/admins-components107.js +27 -16
- package/dist/admins-components107.js.map +1 -1
- package/dist/admins-components108.js +26 -25
- package/dist/admins-components108.js.map +1 -1
- package/dist/admins-components109.js +171 -8
- package/dist/admins-components109.js.map +1 -1
- package/dist/admins-components110.js +67 -3
- package/dist/admins-components110.js.map +1 -1
- package/dist/admins-components111.js +67 -3
- package/dist/admins-components111.js.map +1 -1
- package/dist/admins-components112.js +30 -3
- package/dist/admins-components112.js.map +1 -1
- package/dist/admins-components113.js +15 -20
- package/dist/admins-components113.js.map +1 -1
- package/dist/admins-components114.js +27 -14
- package/dist/admins-components114.js.map +1 -1
- package/dist/admins-components115.js +8 -7
- package/dist/admins-components115.js.map +1 -1
- package/dist/admins-components116.js +4 -13
- package/dist/admins-components116.js.map +1 -1
- package/dist/admins-components117.js +3 -26
- package/dist/admins-components117.js.map +1 -1
- package/dist/admins-components118.js +3 -83
- package/dist/admins-components118.js.map +1 -1
- package/dist/admins-components119.js +19 -9
- package/dist/admins-components119.js.map +1 -1
- package/dist/admins-components120.js +14 -5
- package/dist/admins-components120.js.map +1 -1
- package/dist/admins-components121.js +7 -7
- package/dist/admins-components121.js.map +1 -1
- package/dist/admins-components122.js +12 -6
- package/dist/admins-components122.js.map +1 -1
- package/dist/admins-components123.js +25 -5
- package/dist/admins-components123.js.map +1 -1
- package/dist/admins-components124.js +82 -14
- package/dist/admins-components124.js.map +1 -1
- package/dist/admins-components125.js +10 -12
- package/dist/admins-components125.js.map +1 -1
- package/dist/admins-components126.js +5 -30
- package/dist/admins-components126.js.map +1 -1
- package/dist/admins-components127.js +7 -3
- package/dist/admins-components127.js.map +1 -1
- package/dist/admins-components128.js +7 -29
- package/dist/admins-components128.js.map +1 -1
- package/dist/admins-components129.js +3 -2
- package/dist/admins-components129.js.map +1 -1
- package/dist/admins-components130.js +12 -2
- package/dist/admins-components130.js.map +1 -1
- package/dist/admins-components131.js +12 -7
- package/dist/admins-components131.js.map +1 -1
- package/dist/admins-components132.js +30 -74
- package/dist/admins-components132.js.map +1 -1
- package/dist/admins-components133.js +4 -29
- package/dist/admins-components133.js.map +1 -1
- package/dist/admins-components134.js +27 -57
- package/dist/admins-components134.js.map +1 -1
- package/dist/admins-components135.js +5 -24
- package/dist/admins-components135.js.map +1 -1
- package/dist/admins-components136.js +5 -50
- package/dist/admins-components136.js.map +1 -1
- package/dist/admins-components137.js +7 -30
- package/dist/admins-components137.js.map +1 -1
- package/dist/admins-components138.js +74 -3
- package/dist/admins-components138.js.map +1 -1
- package/dist/admins-components139.js +27 -177
- package/dist/admins-components139.js.map +1 -1
- package/dist/admins-components140.js +58 -45
- package/dist/admins-components140.js.map +1 -1
- package/dist/admins-components141.js +23 -36
- package/dist/admins-components141.js.map +1 -1
- package/dist/admins-components142.js +46 -42
- package/dist/admins-components142.js.map +1 -1
- package/dist/admins-components143.js +28 -138
- package/dist/admins-components143.js.map +1 -1
- package/dist/admins-components144.js +3 -58
- package/dist/admins-components144.js.map +1 -1
- package/dist/admins-components145.js +178 -6
- package/dist/admins-components145.js.map +1 -1
- package/dist/admins-components146.js +45 -5
- package/dist/admins-components146.js.map +1 -1
- package/dist/admins-components147.js +37 -76
- package/dist/admins-components147.js.map +1 -1
- package/dist/admins-components148.js +45 -28
- package/dist/admins-components148.js.map +1 -1
- package/dist/admins-components149.js +129 -1919
- package/dist/admins-components149.js.map +1 -1
- package/dist/admins-components15.js +8 -42
- package/dist/admins-components15.js.map +1 -1
- package/dist/admins-components150.js +54 -24807
- package/dist/admins-components150.js.map +1 -1
- package/dist/admins-components151.js +6 -8
- package/dist/admins-components151.js.map +1 -1
- package/dist/admins-components152.js +6 -7
- package/dist/admins-components152.js.map +1 -0
- package/dist/admins-components153.js +76 -142
- package/dist/admins-components153.js.map +1 -1
- package/dist/admins-components154.js +28 -8
- package/dist/admins-components154.js.map +1 -1
- package/dist/admins-components155.js +1930 -8
- package/dist/admins-components155.js.map +1 -1
- package/dist/admins-components156.js +24812 -0
- package/dist/admins-components156.js.map +1 -0
- package/dist/admins-components157.js +8 -167
- package/dist/admins-components157.js.map +1 -1
- package/dist/admins-components158.js +7 -51
- package/dist/admins-components159.js +141 -8
- package/dist/admins-components159.js.map +1 -1
- package/dist/admins-components16.js +89 -4
- package/dist/admins-components16.js.map +1 -1
- package/dist/admins-components160.js +8 -49
- package/dist/admins-components160.js.map +1 -1
- package/dist/admins-components161.js +9 -6
- package/dist/admins-components161.js.map +1 -1
- package/dist/admins-components163.js +160 -50
- package/dist/admins-components163.js.map +1 -1
- package/dist/admins-components164.js +34 -42
- package/dist/admins-components164.js.map +1 -1
- package/dist/admins-components165.js +3 -3
- package/dist/admins-components165.js.map +1 -1
- package/dist/admins-components166.js +18 -20
- package/dist/admins-components166.js.map +1 -1
- package/dist/admins-components167.js +6 -9
- package/dist/admins-components167.js.map +1 -1
- package/dist/{admins-components162.js → admins-components168.js} +3 -3
- package/dist/{admins-components162.js.map → admins-components168.js.map} +1 -1
- package/dist/admins-components169.js +51 -51
- package/dist/admins-components169.js.map +1 -1
- package/dist/admins-components17.js +4 -94
- package/dist/admins-components17.js.map +1 -1
- package/dist/admins-components170.js +60 -0
- package/dist/admins-components170.js.map +1 -0
- package/dist/admins-components171.js +10 -0
- package/dist/admins-components171.js.map +1 -0
- package/dist/admins-components172.js +53 -0
- package/dist/admins-components172.js.map +1 -0
- package/dist/admins-components173.js +10 -0
- package/dist/admins-components173.js.map +1 -0
- package/dist/admins-components175.js +59 -0
- package/dist/admins-components175.js.map +1 -0
- package/dist/admins-components18.js +37 -239
- package/dist/admins-components18.js.map +1 -1
- package/dist/admins-components19.js +1 -2
- package/dist/admins-components19.js.map +1 -1
- package/dist/admins-components20.js +91 -179
- package/dist/admins-components20.js.map +1 -1
- package/dist/admins-components21.js +245 -0
- package/dist/admins-components21.js.map +1 -0
- package/dist/admins-components22.js +3 -4
- package/dist/admins-components22.js.map +1 -1
- package/dist/admins-components23.js +172 -68
- package/dist/admins-components23.js.map +1 -1
- package/dist/admins-components25.js +6 -58
- package/dist/admins-components25.js.map +1 -1
- package/dist/admins-components26.js +79 -0
- package/dist/{admins-components24.js.map → admins-components26.js.map} +1 -1
- package/dist/admins-components27.js +3 -3
- package/dist/admins-components27.js.map +1 -1
- package/dist/admins-components28.js +50 -64
- package/dist/admins-components28.js.map +1 -1
- package/dist/admins-components29.js +75 -0
- package/dist/admins-components29.js.map +1 -0
- package/dist/admins-components31.js +6 -39
- package/dist/admins-components31.js.map +1 -1
- package/dist/admins-components32.js +66 -0
- package/dist/admins-components32.js.map +1 -0
- package/dist/admins-components34.js +6 -36
- package/dist/admins-components34.js.map +1 -1
- package/dist/admins-components35.js +39 -4
- package/dist/admins-components35.js.map +1 -1
- package/dist/{admins-components33.js → admins-components37.js} +1 -1
- package/dist/{admins-components33.js.map → admins-components37.js.map} +1 -1
- package/dist/admins-components38.js +36 -6
- package/dist/admins-components38.js.map +1 -1
- package/dist/admins-components39.js +4 -146
- package/dist/admins-components39.js.map +1 -1
- package/dist/{admins-components36.js.map → admins-components40.js.map} +1 -1
- package/dist/admins-components42.js +6 -124
- package/dist/admins-components42.js.map +1 -1
- package/dist/admins-components43.js +146 -4
- package/dist/admins-components43.js.map +1 -1
- package/dist/admins-components45.js +4 -2
- package/dist/admins-components45.js.map +1 -1
- package/dist/admins-components46.js +120 -15
- package/dist/admins-components46.js.map +1 -1
- package/dist/admins-components47.js +5 -0
- package/dist/admins-components47.js.map +1 -0
- package/dist/admins-components48.js +179 -6
- package/dist/admins-components48.js.map +1 -1
- package/dist/admins-components49.js +4 -54
- package/dist/admins-components49.js.map +1 -1
- package/dist/admins-components50.js +15 -89
- package/dist/admins-components50.js.map +1 -1
- package/dist/admins-components52.js +2 -2
- package/dist/admins-components52.js.map +1 -1
- package/dist/admins-components53.js +52 -23
- package/dist/admins-components53.js.map +1 -1
- package/dist/admins-components54.js +93 -9
- package/dist/admins-components54.js.map +1 -1
- package/dist/admins-components56.js +6 -73
- package/dist/admins-components56.js.map +1 -1
- package/dist/admins-components57.js +24 -65
- package/dist/admins-components57.js.map +1 -1
- package/dist/admins-components58.js +9 -4
- package/dist/admins-components58.js.map +1 -1
- package/dist/admins-components59.js +19 -138
- package/dist/admins-components59.js.map +1 -1
- package/dist/admins-components60.js +74 -0
- package/dist/admins-components60.js.map +1 -0
- package/dist/admins-components61.js +66 -7
- package/dist/admins-components61.js.map +1 -1
- package/dist/admins-components62.js +4 -170
- package/dist/admins-components62.js.map +1 -1
- package/dist/admins-components63.js +140 -0
- package/dist/admins-components63.js.map +1 -0
- package/dist/admins-components65.js +7 -7
- package/dist/admins-components65.js.map +1 -1
- package/dist/admins-components66.js +155 -259
- package/dist/admins-components66.js.map +1 -1
- package/dist/admins-components68.js +3 -2
- package/dist/admins-components68.js.map +1 -1
- package/dist/admins-components69.js +6 -119
- package/dist/admins-components69.js.map +1 -1
- package/dist/admins-components70.js +280 -0
- package/dist/admins-components70.js.map +1 -0
- package/dist/admins-components72.js +6 -59
- package/dist/admins-components72.js.map +1 -1
- package/dist/admins-components73.js +110 -207
- package/dist/admins-components73.js.map +1 -1
- package/dist/admins-components75.js +2 -2
- package/dist/admins-components75.js.map +1 -1
- package/dist/admins-components76.js +58 -7
- package/dist/admins-components76.js.map +1 -1
- package/dist/admins-components77.js +220 -51
- package/dist/admins-components77.js.map +1 -1
- package/dist/admins-components79.js +7 -0
- package/dist/admins-components79.js.map +1 -0
- package/dist/admins-components80.js +52 -6
- package/dist/admins-components80.js.map +1 -1
- package/dist/admins-components81.js +246 -32
- package/dist/admins-components81.js.map +1 -1
- package/dist/admins-components83.js +2 -2
- package/dist/admins-components83.js.map +1 -1
- package/dist/admins-components84.js +31 -192
- package/dist/admins-components84.js.map +1 -1
- package/dist/admins-components86.js +2 -2
- package/dist/admins-components86.js.map +1 -1
- package/dist/admins-components87.js +195 -184
- package/dist/admins-components87.js.map +1 -1
- package/dist/admins-components89.js +2 -2
- package/dist/admins-components89.js.map +1 -1
- package/dist/admins-components90.js +16 -3
- package/dist/admins-components90.js.map +1 -1
- package/dist/admins-components91.js +77 -16
- package/dist/admins-components91.js.map +1 -1
- package/dist/admins-components93.js +6 -52
- package/dist/admins-components93.js.map +1 -1
- package/dist/admins-components94.js +195 -81
- package/dist/admins-components94.js.map +1 -1
- package/dist/admins-components96.js +6 -47
- package/dist/admins-components96.js.map +1 -1
- package/dist/admins-components97.js +3 -106
- package/dist/admins-components97.js.map +1 -1
- package/dist/admins-components98.js +3 -20
- package/dist/admins-components98.js.map +1 -1
- package/dist/admins-components99.js +51 -6
- package/dist/admins-components99.js.map +1 -1
- package/dist/main.css +1 -1
- package/dist/main.css.map +1 -1
- package/dist/src/components/Checkbox.vue.d.ts +11 -1
- package/dist/src/components/TextInput.vue.d.ts +33 -0
- package/dist/src/components/data-table/DataFilters.vue.d.ts +7 -14
- package/dist/src/components/data-table/DataList.vue.d.ts +10 -7
- package/dist/src/components/data-table/DataSearch.vue.d.ts +26 -0
- package/dist/src/composables/useSwipeToClose.d.ts +50 -0
- package/dist/src/index.d.ts +5 -1
- package/dist/src/styles/components/data-table/data-cards.scss_vue_type_style_index_0_src_true_lang.css +1 -1
- 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/data-paginator.scss_vue_type_style_index_0_src_true_lang.css +1 -1
- package/dist/src/styles/components/data-table/data-search.scss_vue_type_style_index_0_src_true_lang.css +1 -0
- package/dist/src/styles/components/data-table/data-table.scss_vue_type_style_index_0_src_true_lang.css +1 -1
- package/dist/src/styles/components/dropdown-select.scss_vue_type_style_index_0_src_true_lang.css +1 -1
- package/dist/src/styles/components/image-picker.scss_vue_type_style_index_0_src_true_lang.css +1 -1
- package/dist/src/styles/components/sidebar.scss_vue_type_style_index_0_src_true_lang.css +1 -1
- package/dist/src/types/data-list.d.ts +0 -1
- package/package.json +1 -1
- package/dist/admins-components158.js.map +0 -1
- package/dist/admins-components24.js +0 -7
- package/dist/admins-components30.js +0 -7
- package/dist/admins-components30.js.map +0 -1
- package/dist/admins-components41.js +0 -7
- package/dist/admins-components41.js.map +0 -1
- package/dist/admins-components44.js +0 -180
- package/dist/admins-components44.js.map +0 -1
- package/dist/admins-components55.js +0 -20
- package/dist/admins-components55.js.map +0 -1
- package/dist/admins-components64.js +0 -8
- package/dist/admins-components64.js.map +0 -1
- package/dist/admins-components71.js +0 -7
- package/dist/admins-components71.js.map +0 -1
- package/dist/admins-components78.js +0 -276
- package/dist/admins-components78.js.map +0 -1
- package/dist/admins-components92.js +0 -4
- package/dist/admins-components92.js.map +0 -1
- package/dist/admins-components95.js +0 -114
- package/dist/admins-components95.js.map +0 -1
- /package/dist/{admins-components36.js → admins-components40.js} +0 -0
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { defineElement as
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import e from "./admins-components45.js";
|
|
2
|
+
import { defineElement as t } from "./admins-components156.js";
|
|
3
|
+
import n from "./admins-components158.js";
|
|
4
|
+
import { ipeConfig as r } from "./admins-components161.js";
|
|
5
|
+
import { createBlock as i, createSlots as a, createVNode as o, openBlock as s, ref as c, renderList as l, renderSlot as u, resolveComponent as d, resolveDynamicComponent as f, watch as p, withCtx as m } from "vue";
|
|
6
|
+
//#region src/vueformelements/ImagePickerElement.vue
|
|
7
|
+
var h = t({
|
|
8
|
+
name: "ImagePickerElement",
|
|
9
|
+
components: { ImagePicker: e },
|
|
10
10
|
setup(e, t) {
|
|
11
|
-
let { value:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
11
|
+
let { value: n } = t.element, i = c({
|
|
12
|
+
id: n.value,
|
|
13
|
+
source: "",
|
|
14
|
+
title: "",
|
|
15
|
+
isAdult: !1,
|
|
16
|
+
url: ""
|
|
17
|
+
});
|
|
18
|
+
return p(() => n, (e) => {
|
|
19
|
+
i.value.id = e.value;
|
|
20
|
+
}, {
|
|
21
|
+
immediate: !0,
|
|
22
|
+
deep: !0
|
|
23
|
+
}), {
|
|
24
|
+
ipeConfig: r,
|
|
25
|
+
value: n,
|
|
26
|
+
model: i
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
|
-
})
|
|
30
|
-
function
|
|
31
|
-
let
|
|
32
|
-
return
|
|
33
|
-
element:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
}, null, 8,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
29
|
+
});
|
|
30
|
+
function g(e, t, n, r, c, p) {
|
|
31
|
+
let h = d("ImagePicker"), g = d("ElementLayout");
|
|
32
|
+
return s(), i(g, null, a({
|
|
33
|
+
element: m(() => [o(h, {
|
|
34
|
+
modelValue: e.model,
|
|
35
|
+
"onUpdate:modelValue": [t[0] ||= (t) => e.model = t, t[1] ||= (t) => e.value = t?.id],
|
|
36
|
+
editable: !1,
|
|
37
|
+
details: !1,
|
|
38
|
+
environment: e.ipeConfig.environment,
|
|
39
|
+
articleEditorUrl: e.ipeConfig.articleEditorUrl,
|
|
40
|
+
searchImageWidgetUrl: e.ipeConfig.searchImageWidgetUrl,
|
|
41
|
+
imageBaseUrl: e.ipeConfig.imageBaseUrl,
|
|
42
|
+
imageViewId: e.ipeConfig.imageViewId
|
|
43
|
+
}, null, 8, [
|
|
44
|
+
"modelValue",
|
|
45
|
+
"environment",
|
|
46
|
+
"articleEditorUrl",
|
|
47
|
+
"searchImageWidgetUrl",
|
|
48
|
+
"imageBaseUrl",
|
|
49
|
+
"imageViewId"
|
|
50
|
+
])]),
|
|
51
51
|
_: 2
|
|
52
|
-
}, [
|
|
52
|
+
}, [l(e.elementSlots, (t, n) => ({
|
|
53
53
|
name: n,
|
|
54
|
-
fn:
|
|
54
|
+
fn: m(() => [u(e.$slots, n, { el$: e.el$ }, () => [(s(), i(f(t), { el$: e.el$ }, null, 8, ["el$"]))])])
|
|
55
55
|
}))]), 1024);
|
|
56
56
|
}
|
|
57
|
-
var
|
|
57
|
+
var _ = /* @__PURE__ */ n(h, [["render", g]]);
|
|
58
58
|
//#endregion
|
|
59
|
-
export {
|
|
59
|
+
export { _ as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admins-components169.js","names":[],"sources":["../src/vueformelements/
|
|
1
|
+
{"version":3,"file":"admins-components169.js","names":[],"sources":["../src/vueformelements/ImagePickerElement.vue"],"sourcesContent":["<!-- eslint-disable-next-line vue/block-lang -->\n<script>\nimport { defineElement } from '@vueform/vueform'\nimport ImagePicker from '@/components/custom/ImagePicker.vue'\nimport { ref, watch } from 'vue'\nimport { ipeConfig } from '@/vueformelements/config/ImagePickerElementConfig'\n\nexport default defineElement({\n name: 'ImagePickerElement',\n components: { ImagePicker },\n\n setup(props, ctx) {\n const { value } = ctx.element // value is ref. its a string (image id) or undefined\n\n const model = ref({\n id: value.value,\n source: '',\n title: '',\n isAdult: false,\n url: '',\n })\n\n watch(\n () => value,\n (newVal) => {\n model.value.id = newVal.value\n },\n { immediate: true, deep: true },\n )\n\n return { ipeConfig, value, model }\n },\n})\n</script>\n\n<template>\n <ElementLayout>\n <template #element>\n <ImagePicker\n v-model=\"model\"\n @update:modelValue=\"(img) => (value = img?.id)\"\n :editable=\"false\"\n :details=\"false\"\n :environment=\"ipeConfig.environment\"\n :articleEditorUrl=\"ipeConfig.articleEditorUrl\"\n :searchImageWidgetUrl=\"ipeConfig.searchImageWidgetUrl\"\n :imageBaseUrl=\"ipeConfig.imageBaseUrl\"\n :imageViewId=\"ipeConfig.imageViewId\"\n />\n </template>\n\n <template v-for=\"(component, slot) in elementSlots\" #[slot]>\n <!-- eslint-disable-next-line vue/valid-attribute-name -->\n <slot :name=\"slot\" :el$=\"el$\">\n <component :is=\"component\" :el$=\"el$\" />\n </slot>\n </template>\n </ElementLayout>\n</template>\n"],"mappings":";;;;;;AAOA,IAAK,IAAa,EAAW;CAC3B,MAAM;CACN,YAAY,EAAE,aAAA,EAAY;CAE1B,MAAM,GAAO,GAAK;EAChB,IAAM,EAAE,aAAU,EAAI,SAEhB,IAAQ,EAAI;GAChB,IAAI,EAAM;GACV,QAAQ;GACR,OAAO;GACP,SAAS;GACT,KAAK;EACP,CAAC;EAUD,OARA,QACQ,IACL,MAAW;GACV,EAAM,MAAM,KAAK,EAAO;EAC1B,GACA;GAAE,WAAW;GAAM,MAAM;EAAK,CAChC,GAEO;GAAE;GAAW;GAAO;EAAM;CACnC;AACF,CAAC;;;aAIC,EAqBgB,GAAA,MAAA,EAAA;EApBH,SAAO,QAWd,CAVF,EAUE,GAAA;eATS,EAAA;2CAAA,EAAA,QAAK,GAAA,AAAA,EAAA,QACO,MAAS,EAAA,QAAQ,GAAK,EAAA;GAC1C,UAAU;GACV,SAAS;GACT,aAAa,EAAA,UAAU;GACvB,kBAAkB,EAAA,UAAU;GAC5B,sBAAsB,EAAA,UAAU;GAChC,cAAc,EAAA,UAAU;GACxB,aAAa,EAAA,UAAU;;;;;;;;;;OAIU,EAAA,eAApB,GAAW;QAAwB;cAI5C,CAFP,EAEO,EAAA,QAFM,GAAI,EAAG,KAAK,EAAA,IAAG,SAErB,EAAA,EAAA,GADL,EAAwC,EAAxB,CAAS,GAAA,EAAG,KAAK,EAAA,IAAG,GAAA,MAAA,GAAA,CAAA,KAAA,CAAA,EAAA,CAAA,CAAA,CAAA"}
|
|
@@ -1,95 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
//#region src/
|
|
3
|
-
var
|
|
4
|
-
{
|
|
5
|
-
key: "lastDay",
|
|
6
|
-
label: "Tegnap"
|
|
7
|
-
},
|
|
8
|
-
{
|
|
9
|
-
key: "thisDay",
|
|
10
|
-
label: "Ma"
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
key: "lastWeek",
|
|
14
|
-
label: "Múlt hét"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
key: "thisWeek",
|
|
18
|
-
label: "E hét"
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
key: "lastMonth",
|
|
22
|
-
label: "Múlt hónap"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
key: "thisMonth",
|
|
26
|
-
label: "E hónap"
|
|
27
|
-
}
|
|
28
|
-
];
|
|
29
|
-
function o(t, n = /* @__PURE__ */ new Date()) {
|
|
30
|
-
if (t === "thisDay") return {
|
|
31
|
-
from: r(n),
|
|
32
|
-
to: e(n)
|
|
33
|
-
};
|
|
34
|
-
if (t === "lastDay") {
|
|
35
|
-
let t = new Date(n);
|
|
36
|
-
return t.setDate(t.getDate() - 1), {
|
|
37
|
-
from: r(t),
|
|
38
|
-
to: e(t)
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
if (t === "thisWeek") {
|
|
42
|
-
let t = i(n);
|
|
43
|
-
return {
|
|
44
|
-
from: t,
|
|
45
|
-
to: e(new Date(t.getFullYear(), t.getMonth(), t.getDate() + 6))
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
if (t === "lastWeek") {
|
|
49
|
-
let t = i(n), r = new Date(t);
|
|
50
|
-
r.setDate(r.getDate() - 7);
|
|
51
|
-
let a = e(new Date(t));
|
|
52
|
-
return a.setDate(a.getDate() - 1), {
|
|
53
|
-
from: r,
|
|
54
|
-
to: a
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
return t === "thisMonth" ? {
|
|
58
|
-
from: r(new Date(n.getFullYear(), n.getMonth(), 1)),
|
|
59
|
-
to: e(new Date(n.getFullYear(), n.getMonth() + 1, 0))
|
|
60
|
-
} : {
|
|
61
|
-
from: r(new Date(n.getFullYear(), n.getMonth() - 1, 1)),
|
|
62
|
-
to: e(new Date(n.getFullYear(), n.getMonth(), 0))
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
function s(e, t) {
|
|
66
|
-
let { from: i, to: a } = o(e, t.now), s = t.showTime ? a : r(a);
|
|
67
|
-
return {
|
|
68
|
-
from: {
|
|
69
|
-
local: i,
|
|
70
|
-
utc: n(i, t.showTime)
|
|
71
|
-
},
|
|
72
|
-
to: {
|
|
73
|
-
local: s,
|
|
74
|
-
utc: n(s, t.showTime)
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
function c(e, n, r) {
|
|
79
|
-
let i = r.now ?? /* @__PURE__ */ new Date();
|
|
80
|
-
for (let s of a) {
|
|
81
|
-
let { from: a, to: c } = o(s.key, i);
|
|
82
|
-
if (r.showTime ? e.getTime() === a.getTime() && n.getTime() === c.getTime() : t(e, a) && t(n, c)) return s.key;
|
|
83
|
-
}
|
|
84
|
-
return null;
|
|
85
|
-
}
|
|
86
|
-
function l(e, t) {
|
|
87
|
-
let { from: n, to: i } = o(e, t.now), { minDate: a, maxDate: s, showTime: c } = t, l = c ? n : r(n), u = c ? i : r(i), d = a ? c ? a : r(a) : null, f = s ? c ? s : r(s) : null;
|
|
88
|
-
return !(d && l.getTime() < d.getTime() || f && u.getTime() > f.getTime());
|
|
89
|
-
}
|
|
90
|
-
function u(e, t, n, i) {
|
|
91
|
-
let { minDate: a, maxDate: o, showTime: s } = i, c = new Date(e.getTime() + n), l = new Date(t.getTime() + n), u = s ? c : r(c), d = s ? l : r(l), f = a ? s ? a : r(a) : null, p = o ? s ? o : r(o) : null;
|
|
92
|
-
return !(f && u.getTime() < f.getTime() || p && d.getTime() > p.getTime());
|
|
93
|
-
}
|
|
1
|
+
import e from "./admins-components16.js";
|
|
2
|
+
//#region src/components/TextInput.vue
|
|
3
|
+
var t = e;
|
|
94
4
|
//#endregion
|
|
95
|
-
export {
|
|
5
|
+
export { t as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admins-components17.js","names":[],"sources":["../src/
|
|
1
|
+
{"version":3,"file":"admins-components17.js","names":[],"sources":["../src/components/TextInput.vue"],"sourcesContent":["<script lang=\"ts\">\nimport type { ControlSize } from '@/types/types'\nimport { debounce } from '@/utils/debounce'\n\nexport type TextInputType = 'text' | 'number' | 'textarea'\nexport interface TextInputProps {\n modelValue?: string | number | null\n type?: TextInputType\n label?: string\n labelOnBorder?: string\n placeholder?: string\n disabled?: boolean\n clearable?: boolean\n autocomplete?: boolean\n size?: ControlSize\n id?: string\n}\n\nexport const textInputDefaults = {\n modelValue: undefined,\n type: 'text',\n disabled: false,\n clearable: true,\n autocomplete: true,\n labelOnBorder: undefined,\n size: 'normal' as ControlSize,\n} as TextInputProps\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, ref, useId, watch } from 'vue'\n\nconst props = withDefaults(defineProps<TextInputProps>(), textInputDefaults)\n\nconst emit = defineEmits<{\n 'update:modelValue': [value: string | number | null]\n}>()\n\nconst inputId = computed(() => props.id ?? `c-input-${useId()}`)\n\nconst localValue = ref<string | number | null | undefined>(props.modelValue)\n\nconst hasValue = computed(() => {\n const v = localValue.value\n return v !== null && v !== undefined && String(v) !== ''\n})\n\nwatch(\n () => props.modelValue,\n (val) => {\n if (val === localValue.value) return\n localValue.value = val\n },\n)\n\nconst hasLabelOnBorder = computed(\n () => !!props.labelOnBorder && props.labelOnBorder.trim() !== '',\n)\n\nconst borderLabelVisible = computed(() => hasLabelOnBorder.value && hasValue.value || props.label )\n\nfunction onInput(e: Event) {\n const raw = (e.target as HTMLInputElement).value\n localValue.value = raw\n debouncedEmit(raw)\n}\n\nconst debouncedEmit = debounce((raw: string) => {\n emit(\n 'update:modelValue',\n props.type === 'number' ? (raw === '' ? null : Number(raw)) : raw,\n )\n})\n\nfunction clear() {\n const next = props.type === 'number' ? null : ''\n localValue.value = next\n emit('update:modelValue', next)\n}\n</script>\n\n<template>\n <div class=\"ac-component c-input-wrapper\">\n <label\n v-if=\"hasLabelOnBorder || label\"\n class=\"c-label pointer\"\n :class=\"{\n 'c-label--on-border': hasLabelOnBorder,\n 'hide': !borderLabelVisible,\n }\"\n :for=\"inputId\"\n >\n {{ hasLabelOnBorder ? labelOnBorder : label }}\n </label>\n <div\n class=\"c-input-row\"\n :class=\"{\n 'c-input-row--sm': size === 'small',\n 'c-input-row--lg': size === 'large',\n 'c-input-row--disabled': disabled,\n }\"\n >\n <component\n :is=\"type === 'textarea' ? 'textarea' : 'input'\"\n :id=\"inputId\"\n :type=\"type\"\n class=\"c-input\"\n :class=\"{ 'c-textarea': type === 'textarea', 'c-input--disabled': disabled }\"\n :value=\"localValue == null ? '' : String(localValue)\"\n :placeholder=\"placeholder\"\n :disabled=\"disabled\"\n :inputmode=\"type === 'number' ? 'decimal' : undefined\"\n :autocomplete=\"autocomplete ? 'on' : 'off'\"\n @input=\"onInput\"\n />\n <button\n v-if=\"clearable && !disabled\"\n type=\"button\"\n class=\"c-icon-btn c-icon-btn--clear\"\n :class=\"{ 'c-icon-btn--hidden': !hasValue }\"\n aria-label=\"Mező törlése\"\n @click=\"clear\"\n >\n <i class=\"fa-solid fa-fw fa-xmark\"></i>\n </button>\n </div>\n </div>\n</template>\n"],"mappings":""}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import e from "./admins-components45.js";
|
|
2
|
+
import { defineElement as t } from "./admins-components156.js";
|
|
3
|
+
import n from "./admins-components158.js";
|
|
4
|
+
import { ipeConfig as r } from "./admins-components161.js";
|
|
5
|
+
import { createBlock as i, createSlots as a, createVNode as o, openBlock as s, renderList as c, renderSlot as l, resolveComponent as u, resolveDynamicComponent as d, watch as f, withCtx as p } from "vue";
|
|
6
|
+
//#region src/vueformelements/ImagePickerDetailsElement.vue
|
|
7
|
+
var m = t({
|
|
8
|
+
name: "ImagePickerDetailsElement",
|
|
9
|
+
components: { ImagePicker: e },
|
|
10
|
+
setup(e, t) {
|
|
11
|
+
let { value: n } = t.element, i = t.attrs.direction ? t.attrs.direction : "vertical";
|
|
12
|
+
return f(() => n, () => {
|
|
13
|
+
n.value ||= {
|
|
14
|
+
id: "00000000-0000-0000-0000-000000000000",
|
|
15
|
+
source: "",
|
|
16
|
+
title: "",
|
|
17
|
+
isAdult: !1
|
|
18
|
+
};
|
|
19
|
+
}, {
|
|
20
|
+
deep: !0,
|
|
21
|
+
immediate: !0
|
|
22
|
+
}), {
|
|
23
|
+
ipeConfig: r,
|
|
24
|
+
value: n,
|
|
25
|
+
direction: i
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
function h(e, t, n, r, f, m) {
|
|
30
|
+
let h = u("ImagePicker"), g = u("ElementLayout");
|
|
31
|
+
return s(), i(g, null, a({
|
|
32
|
+
element: p(() => [o(h, {
|
|
33
|
+
modelValue: e.value,
|
|
34
|
+
"onUpdate:modelValue": t[0] ||= (t) => e.value = t,
|
|
35
|
+
editable: !0,
|
|
36
|
+
details: !0,
|
|
37
|
+
direction: e.direction,
|
|
38
|
+
environment: e.ipeConfig.environment,
|
|
39
|
+
articleEditorUrl: e.ipeConfig.articleEditorUrl,
|
|
40
|
+
searchImageWidgetUrl: e.ipeConfig.searchImageWidgetUrl,
|
|
41
|
+
imageBaseUrl: e.ipeConfig.imageBaseUrl,
|
|
42
|
+
imageViewId: e.ipeConfig.imageViewId
|
|
43
|
+
}, null, 8, [
|
|
44
|
+
"modelValue",
|
|
45
|
+
"direction",
|
|
46
|
+
"environment",
|
|
47
|
+
"articleEditorUrl",
|
|
48
|
+
"searchImageWidgetUrl",
|
|
49
|
+
"imageBaseUrl",
|
|
50
|
+
"imageViewId"
|
|
51
|
+
])]),
|
|
52
|
+
_: 2
|
|
53
|
+
}, [c(e.elementSlots, (t, n) => ({
|
|
54
|
+
name: n,
|
|
55
|
+
fn: p(() => [l(e.$slots, n, { el$: e.el$ }, () => [(s(), i(d(t), { el$: e.el$ }, null, 8, ["el$"]))])])
|
|
56
|
+
}))]), 1024);
|
|
57
|
+
}
|
|
58
|
+
var g = /* @__PURE__ */ n(m, [["render", h]]);
|
|
59
|
+
//#endregion
|
|
60
|
+
export { g as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admins-components170.js","names":[],"sources":["../src/vueformelements/ImagePickerDetailsElement.vue"],"sourcesContent":["<!-- eslint-disable-next-line vue/block-lang -->\n<script>\nimport { defineElement } from '@vueform/vueform'\nimport { watch } from 'vue'\nimport ImagePicker from '@/components/custom/ImagePicker.vue'\nimport { ipeConfig } from '@/vueformelements/config/ImagePickerElementConfig'\n\nexport default defineElement({\n name: 'ImagePickerDetailsElement',\n components: { ImagePicker },\n\n setup(props, context) {\n const { value } = context.element\n const direction = context.attrs.direction ? context.attrs.direction : 'vertical'\n\n watch(\n () => value,\n () => {\n if (!value.value) {\n value.value = {\n id: '00000000-0000-0000-0000-000000000000',\n source: '',\n title: '',\n isAdult: false,\n }\n }\n },\n { deep: true, immediate: true },\n )\n\n return {\n ipeConfig,\n value,\n direction,\n }\n },\n})\n</script>\n\n<template>\n <ElementLayout>\n <template #element>\n <ImagePicker\n v-model=\"value\"\n :editable=\"true\"\n :details=\"true\"\n :direction=\"direction\"\n :environment=\"ipeConfig.environment\"\n :articleEditorUrl=\"ipeConfig.articleEditorUrl\"\n :searchImageWidgetUrl=\"ipeConfig.searchImageWidgetUrl\"\n :imageBaseUrl=\"ipeConfig.imageBaseUrl\"\n :imageViewId=\"ipeConfig.imageViewId\"\n />\n </template>\n\n <template v-for=\"(component, slot) in elementSlots\" #[slot]>\n <!-- eslint-disable-next-line vue/valid-attribute-name -->\n <slot :name=\"slot\" :el$=\"el$\">\n <component :is=\"component\" :el$=\"el$\" />\n </slot>\n </template>\n </ElementLayout>\n</template>\n"],"mappings":";;;;;;AAOA,IAAK,IAAa,EAAW;CAC3B,MAAM;CACN,YAAY,EAAE,aAAA,EAAY;CAE1B,MAAM,GAAO,GAAS;EACpB,IAAM,EAAE,aAAU,EAAQ,SACpB,IAAY,EAAQ,MAAM,YAAY,EAAQ,MAAM,YAAY;EAiBtE,OAfA,QACQ,SACA;GACJ,AACE,EAAM,UAAQ;IACZ,IAAI;IACJ,QAAQ;IACR,OAAO;IACP,SAAS;GACX;EAEJ,GACA;GAAE,MAAM;GAAM,WAAW;EAAK,CAChC,GAEO;GACL;GACA;GACA;EACF;CACF;AACF,CAAC;;;aAIC,EAqBgB,GAAA,MAAA,EAAA;EApBH,SAAO,QAWd,CAVF,EAUE,GAAA;eATS,EAAA;0CAAA,EAAA,QAAK;GACb,UAAU;GACV,SAAS;GACT,WAAW,EAAA;GACX,aAAa,EAAA,UAAU;GACvB,kBAAkB,EAAA,UAAU;GAC5B,sBAAsB,EAAA,UAAU;GAChC,cAAc,EAAA,UAAU;GACxB,aAAa,EAAA,UAAU;;;;;;;;;;;OAIU,EAAA,eAApB,GAAW;QAAwB;cAI5C,CAFP,EAEO,EAAA,QAFM,GAAI,EAAG,KAAK,EAAA,IAAG,SAErB,EAAA,EAAA,GADL,EAAwC,EAAxB,CAAS,GAAA,EAAG,KAAK,EAAA,IAAG,GAAA,MAAA,GAAA,CAAA,KAAA,CAAA,EAAA,CAAA,CAAA,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region src/vueformelements/config/InternalArticleOfferElementConfig.ts
|
|
2
|
+
var e = window.config?.internalArticleOfferElement || {};
|
|
3
|
+
function t(t) {
|
|
4
|
+
return e = {
|
|
5
|
+
...e,
|
|
6
|
+
...t
|
|
7
|
+
}, e;
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { t as configureInternalArticleOfferElement, e as iaoeConfig };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admins-components171.js","names":[],"sources":["../src/vueformelements/config/InternalArticleOfferElementConfig.ts"],"sourcesContent":["export interface InternalArticleOfferElementConfig {\n searchArticleApiUrl: string\n searchArticleWidgetUrl: string\n showIds?: boolean\n formats: { label: string; value: string }[]\n}\n\nexport let iaoeConfig: InternalArticleOfferElementConfig = (window as any).config?.internalArticleOfferElement || {}\n\nexport function configureInternalArticleOfferElement(conf: InternalArticleOfferElementConfig) {\n iaoeConfig = {\n ...iaoeConfig,\n ...conf,\n }\n\n return iaoeConfig\n}\n"],"mappings":";AAOA,IAAW,IAAiD,OAAe,QAAQ,+BAA+B,CAAC;AAEnH,SAAgB,EAAqC,GAAyC;CAM5F,OALA,IAAa;EACX,GAAG;EACH,GAAG;CACL,GAEO;AACT"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import e from "./admins-components49.js";
|
|
2
|
+
import { defineElement as t } from "./admins-components156.js";
|
|
3
|
+
import n from "./admins-components158.js";
|
|
4
|
+
import { ipeConfig as r } from "./admins-components161.js";
|
|
5
|
+
import { iaoeConfig as i } from "./admins-components171.js";
|
|
6
|
+
import { createBlock as a, createSlots as o, createVNode as s, openBlock as c, renderList as l, renderSlot as u, resolveComponent as d, resolveDynamicComponent as f, withCtx as p } from "vue";
|
|
7
|
+
//#region src/vueformelements/InternalArticleOfferElement.vue
|
|
8
|
+
var m = t({
|
|
9
|
+
name: "InternalArticleOfferElement",
|
|
10
|
+
components: { InternalArticleOffer: e },
|
|
11
|
+
setup(e, t) {
|
|
12
|
+
let { value: n } = t.element;
|
|
13
|
+
return {
|
|
14
|
+
ipeConfig: r,
|
|
15
|
+
iaoeConfig: i,
|
|
16
|
+
value: n
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
function h(e, t, n, r, i, m) {
|
|
21
|
+
let h = d("InternalArticleOffer"), g = d("ElementLayout");
|
|
22
|
+
return c(), a(g, null, o({
|
|
23
|
+
element: p(() => [s(h, {
|
|
24
|
+
modelValue: e.value,
|
|
25
|
+
"onUpdate:modelValue": t[0] ||= (t) => e.value = t,
|
|
26
|
+
"show-ids": e.iaoeConfig.showIds,
|
|
27
|
+
"search-article-api-url": e.iaoeConfig.searchArticleApiUrl,
|
|
28
|
+
"search-article-widget-url": e.iaoeConfig.searchArticleWidgetUrl,
|
|
29
|
+
"search-image-widget-url": e.ipeConfig.searchImageWidgetUrl,
|
|
30
|
+
"image-base-url": e.ipeConfig.imageBaseUrl,
|
|
31
|
+
environment: e.ipeConfig.environment,
|
|
32
|
+
"image-view-id": e.ipeConfig.imageViewId,
|
|
33
|
+
formats: e.iaoeConfig.formats
|
|
34
|
+
}, null, 8, [
|
|
35
|
+
"modelValue",
|
|
36
|
+
"show-ids",
|
|
37
|
+
"search-article-api-url",
|
|
38
|
+
"search-article-widget-url",
|
|
39
|
+
"search-image-widget-url",
|
|
40
|
+
"image-base-url",
|
|
41
|
+
"environment",
|
|
42
|
+
"image-view-id",
|
|
43
|
+
"formats"
|
|
44
|
+
])]),
|
|
45
|
+
_: 2
|
|
46
|
+
}, [l(e.elementSlots, (t, n) => ({
|
|
47
|
+
name: n,
|
|
48
|
+
fn: p(() => [u(e.$slots, n, { el$: e.el$ }, () => [(c(), a(f(t), { el$: e.el$ }, null, 8, ["el$"]))])])
|
|
49
|
+
}))]), 1024);
|
|
50
|
+
}
|
|
51
|
+
var g = /* @__PURE__ */ n(m, [["render", h]]);
|
|
52
|
+
//#endregion
|
|
53
|
+
export { g as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admins-components172.js","names":[],"sources":["../src/vueformelements/InternalArticleOfferElement.vue"],"sourcesContent":["<!-- eslint-disable-next-line vue/block-lang -->\n<script>\nimport { defineElement } from '@vueform/vueform'\nimport { ipeConfig } from '@/vueformelements/config/ImagePickerElementConfig'\nimport { iaoeConfig } from '@/vueformelements/config/InternalArticleOfferElementConfig'\nimport InternalArticleOffer from '@/components/custom/InternalArticleOffer.vue'\n\nexport default defineElement({\n name: 'InternalArticleOfferElement',\n components: { InternalArticleOffer },\n\n setup(props, context) {\n const { value } = context.element\n\n return {\n ipeConfig,\n iaoeConfig,\n value,\n }\n },\n})\n</script>\n\n<template>\n <ElementLayout>\n <template #element>\n <InternalArticleOffer\n v-model=\"value\"\n :show-ids=\"iaoeConfig.showIds\"\n :search-article-api-url=\"iaoeConfig.searchArticleApiUrl\"\n :search-article-widget-url=\"iaoeConfig.searchArticleWidgetUrl\"\n :search-image-widget-url=\"ipeConfig.searchImageWidgetUrl\"\n :image-base-url=\"ipeConfig.imageBaseUrl\"\n :environment=\"ipeConfig.environment\"\n :image-view-id=\"ipeConfig.imageViewId\"\n :formats=\"iaoeConfig.formats\"\n />\n </template>\n\n <template v-for=\"(component, slot) in elementSlots\" #[slot]>\n <!-- eslint-disable-next-line vue/valid-attribute-name -->\n <slot :name=\"slot\" :el$=\"el$\">\n <component :is=\"component\" :el$=\"el$\" />\n </slot>\n </template>\n </ElementLayout>\n</template>\n"],"mappings":";;;;;;;AAOA,IAAK,IAAa,EAAW;CAC3B,MAAM;CACN,YAAY,EAAE,sBAAA,EAAqB;CAEnC,MAAM,GAAO,GAAS;EACpB,IAAM,EAAE,aAAU,EAAQ;EAE1B,OAAO;GACL;GACA;GACA;EACF;CACF;AACF,CAAC;;;aAIC,EAqBgB,GAAA,MAAA,EAAA;EApBH,SAAO,QAWd,CAVF,EAUE,GAAA;eATS,EAAA;0CAAA,EAAA,QAAK;GACb,YAAU,EAAA,WAAW;GACrB,0BAAwB,EAAA,WAAW;GACnC,6BAA2B,EAAA,WAAW;GACtC,2BAAyB,EAAA,UAAU;GACnC,kBAAgB,EAAA,UAAU;GAC1B,aAAa,EAAA,UAAU;GACvB,iBAAe,EAAA,UAAU;GACzB,SAAS,EAAA,WAAW;;;;;;;;;;;;;OAIa,EAAA,eAApB,GAAW;QAAwB;cAI5C,CAFP,EAEO,EAAA,QAFM,GAAI,EAAG,KAAK,EAAA,IAAG,SAErB,EAAA,EAAA,GADL,EAAwC,EAAxB,CAAS,GAAA,EAAG,KAAK,EAAA,IAAG,GAAA,MAAA,GAAA,CAAA,KAAA,CAAA,EAAA,CAAA,CAAA,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admins-components173.js","names":[],"sources":["../src/vueformelements/config/PartnerPickerElementConfig.ts"],"sourcesContent":["export interface PartnerPickerElementConfig {\n onFetchData: (id: string, callback: (id: string, url: string, name: string) => any) => any\n}\n\nexport let ppeconfig: PartnerPickerElementConfig = (window as any).config?.partnerPicker || {}\n\nexport function configurePartnerPickerElement(conf: PartnerPickerElementConfig) {\n ppeconfig = {\n ...ppeconfig,\n ...conf,\n }\n\n return ppeconfig\n}\n"],"mappings":";AAIA,IAAW,IAAyC,OAAe,QAAQ,iBAAiB,CAAC;AAE7F,SAAgB,EAA8B,GAAkC;CAM9E,OALA,IAAY;EACV,GAAG;EACH,GAAG;CACL,GAEO;AACT"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import './src/vueformelements/PartnerPickerElement.vue_vue_type_style_index_0_scoped_09bea4ae_lang.css';
|
|
2
|
+
import { defineElement as e } from "./admins-components156.js";
|
|
3
|
+
import t from "./admins-components158.js";
|
|
4
|
+
import { ppeconfig as n } from "./admins-components173.js";
|
|
5
|
+
/* empty css */
|
|
6
|
+
import { createBlock as r, createElementVNode as i, createSlots as a, openBlock as o, ref as s, renderList as c, renderSlot as l, resolveComponent as u, resolveDynamicComponent as d, watch as f, withCtx as p } from "vue";
|
|
7
|
+
//#region src/vueformelements/PartnerPickerElement.vue
|
|
8
|
+
var m = e({
|
|
9
|
+
name: "PartnerPickerElement",
|
|
10
|
+
setup(e, t) {
|
|
11
|
+
let { value: r } = t.element, i = s(""), a = s("");
|
|
12
|
+
f(r, (e) => {
|
|
13
|
+
e && c(e);
|
|
14
|
+
}, { deep: !0 });
|
|
15
|
+
let o = n.onFetchData, c = (e) => {
|
|
16
|
+
e && n.onFetchData(e, l);
|
|
17
|
+
}, l = (e, t, n) => {
|
|
18
|
+
i.value = t, a.value = n, r.value != e && (r.value = e);
|
|
19
|
+
};
|
|
20
|
+
return {
|
|
21
|
+
logoUrl: i,
|
|
22
|
+
pname: a,
|
|
23
|
+
value: r,
|
|
24
|
+
fetchData: c,
|
|
25
|
+
onFetchData: o,
|
|
26
|
+
gotData: l
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
}), h = { class: "flex flex-column gap-2 ac-component" }, g = { class: "flex gap-2 w-100" }, _ = ["src"], v = { class: "w-100" }, y = { class: "c-input-row" }, b = ["value"], x = { class: "w-100" }, S = { class: "c-input-row" }, C = ["value"];
|
|
30
|
+
function w(e, t, n, s, f, m) {
|
|
31
|
+
let w = u("ElementLayout");
|
|
32
|
+
return o(), r(w, null, a({
|
|
33
|
+
element: p(() => [i("div", h, [i("div", g, [i("img", {
|
|
34
|
+
alt: "",
|
|
35
|
+
src: e.logoUrl,
|
|
36
|
+
class: "partner-logo"
|
|
37
|
+
}, null, 8, _), i("div", v, [i("div", y, [i("input", {
|
|
38
|
+
type: "text",
|
|
39
|
+
class: "c-input",
|
|
40
|
+
value: e.pname,
|
|
41
|
+
disabled: "",
|
|
42
|
+
placeholder: "Neve"
|
|
43
|
+
}, null, 8, b)])])]), i("div", x, [i("div", S, [i("input", {
|
|
44
|
+
id: "partner-id",
|
|
45
|
+
type: "text",
|
|
46
|
+
class: "c-input",
|
|
47
|
+
value: e.value,
|
|
48
|
+
onChange: t[0] ||= (t) => e.fetchData(t.target.value),
|
|
49
|
+
placeholder: "Azonoító"
|
|
50
|
+
}, null, 40, C)])])])]),
|
|
51
|
+
_: 2
|
|
52
|
+
}, [c(e.elementSlots, (t, n) => ({
|
|
53
|
+
name: n,
|
|
54
|
+
fn: p(() => [l(e.$slots, n, { el$: e.el$ }, () => [(o(), r(d(t), { el$: e.el$ }, null, 8, ["el$"]))], !0)])
|
|
55
|
+
}))]), 1024);
|
|
56
|
+
}
|
|
57
|
+
var T = /* @__PURE__ */ t(m, [["render", w], ["__scopeId", "data-v-09bea4ae"]]);
|
|
58
|
+
//#endregion
|
|
59
|
+
export { T as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admins-components175.js","names":[],"sources":["../src/vueformelements/PartnerPickerElement.vue"],"sourcesContent":["<!-- eslint-disable-next-line vue/block-lang -->\n<script>\nimport { defineElement } from '@vueform/vueform'\nimport { ref, watch } from 'vue'\nimport { ppeconfig } from '@/vueformelements/config/PartnerPickerElementConfig'\n\nexport default defineElement({\n name: 'PartnerPickerElement',\n setup(props, context) {\n const { value } = context.element\n\n const logoUrl = ref('')\n const pname = ref('')\n\n watch(\n value,\n (v) => {\n if (v) {\n fetchData(v)\n }\n },\n { deep: true },\n )\n\n const onFetchData = ppeconfig.onFetchData\n\n const fetchData = (id) => {\n if (id) ppeconfig.onFetchData(id, gotData)\n }\n\n const gotData = (id, lu, nm) => {\n logoUrl.value = lu\n pname.value = nm\n\n if (value.value != id) value.value = id\n }\n\n return {\n logoUrl,\n pname,\n value,\n fetchData,\n onFetchData,\n gotData,\n }\n },\n})\n</script>\n\n<template>\n <ElementLayout>\n <template #element>\n <div class=\"flex flex-column gap-2 ac-component\">\n <div class=\"flex gap-2 w-100\">\n <img alt=\"\" :src=\"logoUrl\" class=\"partner-logo\" />\n <div class=\"w-100\">\n <div class=\"c-input-row\">\n <input type=\"text\" class=\"c-input\" :value=\"pname\" disabled placeholder=\"Neve\" />\n </div>\n </div>\n </div>\n <div class=\"w-100\">\n <div class=\"c-input-row\">\n <input\n id=\"partner-id\"\n type=\"text\"\n class=\"c-input\"\n :value=\"value\"\n @change=\"(e) => fetchData(e.target.value)\"\n placeholder=\"Azonoító\"\n />\n </div>\n </div>\n </div>\n </template>\n\n <template v-for=\"(component, slot) in elementSlots\" #[slot]>\n <!-- eslint-disable-next-line vue/valid-attribute-name -->\n <slot :name=\"slot\" :el$=\"el$\">\n <component :is=\"component\" :el$=\"el$\" />\n </slot>\n </template>\n </ElementLayout>\n</template>\n\n<style scoped>\n.partner-logo {\n max-width: 25px;\n height: auto;\n flex-shrink: 0;\n}\n</style>\n"],"mappings":";;;;;;AAMA,IAAK,IAAa,EAAW;CAC3B,MAAM;CACN,MAAM,GAAO,GAAS;EACpB,IAAM,EAAE,aAAU,EAAQ,SAEpB,IAAU,EAAI,EAAE,GAChB,IAAQ,EAAI,EAAE;EAEpB,EACE,IACC,MAAM;GACL,AAAI,KACF,EAAU,CAAC;EAEf,GACA,EAAE,MAAM,GAAK,CACf;EAEA,IAAM,IAAc,EAAU,aAExB,KAAa,MAAO;GACxB,AAAI,KAAI,EAAU,YAAY,GAAI,CAAO;EAC3C,GAEM,KAAW,GAAI,GAAI,MAAO;GAI9B,AAHA,EAAQ,QAAQ,GAChB,EAAM,QAAQ,GAEV,EAAM,SAAS,MAAI,EAAM,QAAQ;EACvC;EAEA,OAAO;GACL;GACA;GACA;GACA;GACA;GACA;EACF;CACF;AACF,CAAC,SAMU,OAAM,sCAAqC,SACzC,OAAM,mBAAkB,sBAEtB,OAAM,QAAO,SACX,OAAM,cAAa,wBAKvB,OAAM,QAAO,SACX,OAAM,cAAa;;;aAZhC,EAgCgB,GAAA,MAAA,EAAA;EA/BH,SAAO,QAsBV,CArBN,EAqBM,OArBN,GAqBM,CApBJ,EAOM,OAPN,GAOM,CANJ,EAAkD,OAAA;GAA7C,KAAI;GAAI,KAAK,EAAA;GAAS,OAAM;kBACjC,EAIM,OAJN,GAIM,CAHJ,EAEM,OAFN,GAEM,CADJ,EAAgF,SAAA;GAAzE,MAAK;GAAO,OAAM;GAAW,OAAO,EAAA;GAAO,UAAA;GAAS,aAAY;wBAI7E,EAWM,OAXN,GAWM,CAVJ,EASM,OATN,GASM,CARJ,EAOE,SAAA;GANA,IAAG;GACH,MAAK;GACL,OAAM;GACL,OAAO,EAAA;GACP,UAAM,AAAA,EAAA,QAAG,MAAM,EAAA,UAAU,EAAE,OAAO,KAAK;GACxC,aAAY;;;OAOgB,EAAA,eAApB,GAAW;QAAwB;cAI5C,CAFP,EAEO,EAAA,QAFM,GAAI,EAAG,KAAK,EAAA,IAAG,SAErB,EAAA,EAAA,GADL,EAAwC,EAAxB,CAAS,GAAA,EAAG,KAAK,EAAA,IAAG,GAAA,MAAA,GAAA,CAAA,KAAA,CAAA,EAAA,GAAA,EAAA,CAAA,CAAA"}
|