admins-components 9.0.3 → 9.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/admins-components.js +58 -54
- package/dist/admins-components10.js +10 -0
- package/dist/admins-components100.js +23 -247
- package/dist/admins-components101.js +171 -26
- package/dist/admins-components102.js +65 -25
- package/dist/admins-components103.js +67 -162
- package/dist/admins-components104.js +27 -65
- package/dist/admins-components105.js +12 -63
- package/dist/admins-components106.js +26 -29
- package/dist/admins-components107.js +10 -16
- package/dist/admins-components108.js +3 -26
- package/dist/admins-components109.js +2 -8
- package/dist/admins-components11.js +38 -9
- package/dist/admins-components110.js +3 -4
- package/dist/admins-components111.js +21 -3
- package/dist/admins-components112.js +14 -3
- package/dist/admins-components113.js +7 -20
- package/dist/admins-components114.js +13 -14
- package/dist/admins-components115.js +34 -8
- package/dist/admins-components116.js +82 -12
- package/dist/admins-components117.js +9 -24
- package/dist/admins-components118.js +4 -82
- package/dist/admins-components119.js +8 -11
- package/dist/admins-components12.js +141 -37
- package/dist/admins-components120.js +6 -4
- package/dist/admins-components121.js +6 -8
- package/dist/admins-components122.js +14 -6
- package/dist/admins-components123.js +11 -4
- package/dist/admins-components124.js +30 -15
- package/dist/admins-components125.js +4 -13
- package/dist/admins-components126.js +29 -30
- package/dist/admins-components127.js +5 -4
- package/dist/admins-components128.js +5 -29
- package/dist/admins-components129.js +21 -4
- package/dist/admins-components13.js +5 -142
- package/dist/admins-components130.js +81 -4
- package/dist/admins-components131.js +32 -7
- package/dist/admins-components132.js +58 -73
- package/dist/admins-components133.js +24 -29
- package/dist/admins-components134.js +47 -56
- package/dist/admins-components135.js +31 -23
- package/dist/admins-components136.js +3 -50
- package/dist/admins-components137.js +184 -29
- package/dist/admins-components138.js +46 -3
- package/dist/admins-components139.js +35 -177
- package/dist/admins-components14.js +46 -5
- package/dist/admins-components140.js +41 -41
- package/dist/admins-components141.js +137 -32
- package/dist/admins-components142.js +54 -42
- package/dist/admins-components143.js +6 -140
- package/dist/admins-components144.js +5 -57
- package/dist/admins-components145.js +75 -6
- package/dist/admins-components146.js +28 -5
- package/dist/admins-components147.js +1929 -74
- package/dist/admins-components148.js +25068 -29
- package/dist/admins-components149.js +8 -1930
- package/dist/admins-components15.js +4 -46
- package/dist/admins-components150.js +5 -24809
- package/dist/admins-components151.js +141 -8
- package/dist/admins-components152.js +8 -141
- package/dist/admins-components153.js +3 -3
- package/dist/admins-components155.js +169 -0
- package/dist/admins-components156.js +44 -161
- package/dist/admins-components157.js +8 -50
- package/dist/admins-components158.js +49 -8
- package/dist/admins-components159.js +6 -50
- package/dist/admins-components16.js +94 -4
- package/dist/admins-components160.js +80 -6
- package/dist/admins-components161.js +48 -70
- package/dist/admins-components162.js +32 -31
- package/dist/admins-components163.js +8 -58
- package/dist/admins-components164.js +51 -8
- package/dist/admins-components165.js +8 -51
- package/dist/{admins-components168.js → admins-components167.js} +5 -5
- package/dist/admins-components17.js +225 -91
- package/dist/admins-components18.js +5 -228
- package/dist/admins-components19.js +181 -5
- package/dist/admins-components21.js +7 -0
- package/dist/admins-components22.js +72 -6
- package/dist/admins-components23.js +6 -72
- package/dist/admins-components24.js +58 -6
- package/dist/admins-components26.js +7 -0
- package/dist/admins-components27.js +60 -6
- package/dist/admins-components29.js +7 -0
- package/dist/admins-components30.js +36 -6
- package/dist/admins-components32.js +7 -0
- package/dist/admins-components33.js +36 -6
- package/dist/admins-components34.js +4 -36
- package/dist/admins-components35.js +32 -4
- package/dist/admins-components37.js +7 -0
- package/dist/admins-components38.js +147 -6
- package/dist/admins-components4.js +2 -2
- package/dist/admins-components40.js +7 -0
- package/dist/admins-components41.js +124 -6
- package/dist/admins-components42.js +4 -124
- package/dist/admins-components43.js +179 -4
- package/dist/admins-components44.js +4 -179
- package/dist/admins-components45.js +19 -4
- package/dist/admins-components47.js +7 -0
- package/dist/admins-components48.js +54 -6
- package/dist/admins-components49.js +93 -54
- package/dist/admins-components5.js +5 -0
- package/dist/admins-components51.js +7 -0
- package/dist/admins-components52.js +25 -6
- package/dist/admins-components53.js +9 -25
- package/dist/admins-components54.js +19 -9
- package/dist/admins-components55.js +72 -18
- package/dist/admins-components56.js +59 -73
- package/dist/admins-components57.js +4 -59
- package/dist/admins-components58.js +121 -0
- package/dist/admins-components6.js +29 -6
- package/dist/admins-components60.js +6 -6
- package/dist/admins-components61.js +126 -103
- package/dist/admins-components63.js +3 -3
- package/dist/admins-components64.js +7 -143
- package/dist/admins-components65.js +264 -0
- package/dist/admins-components67.js +6 -7
- package/dist/admins-components68.js +98 -250
- package/dist/admins-components7.js +252 -29
- package/dist/admins-components70.js +2 -2
- package/dist/admins-components71.js +54 -106
- package/dist/admins-components72.js +222 -0
- package/dist/admins-components74.js +6 -59
- package/dist/admins-components75.js +8 -221
- package/dist/admins-components76.js +47 -0
- package/dist/admins-components77.js +250 -6
- package/dist/admins-components79.js +7 -46
- package/dist/admins-components80.js +32 -245
- package/dist/admins-components82.js +2 -3
- package/dist/admins-components83.js +192 -31
- package/dist/admins-components85.js +2 -2
- package/dist/admins-components86.js +200 -195
- package/dist/admins-components88.js +3 -2
- package/dist/admins-components89.js +3 -203
- package/dist/admins-components90.js +17 -0
- package/dist/admins-components91.js +3 -7
- package/dist/admins-components92.js +52 -3
- package/dist/admins-components93.js +80 -50
- package/dist/admins-components94.js +109 -77
- package/dist/admins-components95.js +44 -3
- package/dist/admins-components96.js +101 -108
- package/dist/admins-components97.js +6 -20
- package/dist/admins-components98.js +257 -100
- package/dist/admins-components99.js +27 -7
- package/dist/base.css +1 -1
- package/dist/src/components/Button.vue.d.ts +1 -1
- package/dist/src/components/Calendar.vue.d.ts +1 -1
- package/dist/src/components/ConfirmModal.vue.d.ts +1 -1
- package/dist/src/components/DatePicker.vue.d.ts +2 -2
- package/dist/src/components/DateRangePicker.vue.d.ts +2 -2
- package/dist/src/components/DropdownMenu.vue.d.ts +2 -2
- package/dist/src/components/DropdownSelect.vue.d.ts +1 -1
- package/dist/src/components/HeaderComponent.vue.d.ts +2 -2
- package/dist/src/components/custom/ImagePicker.vue.d.ts +1 -1
- package/dist/src/components/data-table/DataCards.vue.d.ts +2 -2
- package/dist/src/components/data-table/DataCell.vue.d.ts +1 -1
- package/dist/src/components/data-table/DataFilters.vue.d.ts +4 -4
- package/dist/src/components/data-table/DataList.vue.d.ts +4 -4
- package/dist/src/components/data-table/DataListGuide.vue.d.ts +1 -1
- package/dist/src/components/data-table/DataListOptions.vue.d.ts +2 -2
- package/dist/src/components/data-table/DataPaginator.vue.d.ts +1 -1
- package/dist/src/components/data-table/DataTable.vue.d.ts +3 -3
- package/dist/src/components/data-table/FilterTags.vue.d.ts +1 -1
- package/dist/src/components/data-table/FiltersHistory.vue.d.ts +1 -1
- package/dist/src/index.d.ts +85 -80
- package/dist/src/styles/components/data-table/data-list.scss_vue_type_style_index_0_src_true_lang.css +1 -1
- package/dist/src/styles/components/data-table/filter-tags.scss_vue_type_style_index_0_src_true_lang.css +1 -1
- package/dist/src/styles/components/loader.scss_vue_type_style_index_0_src_true_lang.css +1 -1
- package/dist/src/vueformelements/config/ExternalArticleOfferElementConfig.d.ts +1 -1
- package/package.json +2 -5
- package/dist/admins-components154.js +0 -10
- package/dist/admins-components166.js +0 -10
- package/dist/admins-components20.js +0 -182
- package/dist/admins-components25.js +0 -59
- package/dist/admins-components28.js +0 -61
- package/dist/admins-components31.js +0 -37
- package/dist/admins-components36.js +0 -33
- package/dist/admins-components39.js +0 -148
- package/dist/admins-components46.js +0 -20
- package/dist/admins-components50.js +0 -94
- package/dist/admins-components59.js +0 -8
- package/dist/admins-components66.js +0 -8
- package/dist/admins-components73.js +0 -7
- package/dist/admins-components78.js +0 -9
- package/dist/admins-components8.js +0 -253
- package/dist/index.d.ts +0 -2
- package/dist/src/components/data-table/DataCell.vue_vue_type_style_index_0_scoped_d46d9895_lang.css +0 -1
- package/dist/src/styles/_buttons.scss_vue_type_style_index_0_src_true_lang.css +0 -1
|
@@ -1,199 +1,204 @@
|
|
|
1
|
-
import e from "./admins-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
import e from "./admins-components5.js";
|
|
2
|
+
import t from "./admins-components47.js";
|
|
3
|
+
import n from "./admins-components60.js";
|
|
4
|
+
import r from "./admins-components63.js";
|
|
5
|
+
import i from "./admins-components67.js";
|
|
6
|
+
import "./admins-components68.js";
|
|
7
|
+
import a from "./admins-components70.js";
|
|
8
|
+
import { getFilterParams as o } from "./admins-components76.js";
|
|
9
|
+
import s from "./admins-components79.js";
|
|
10
|
+
import c from "./admins-components82.js";
|
|
11
|
+
import l from "./admins-components85.js";
|
|
12
|
+
import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createVNode as g, defineComponent as _, mergeDefaults as v, onBeforeUnmount as y, onMounted as b, openBlock as x, ref as S } from "vue";
|
|
13
|
+
//#region src/components/data-table/DataList.vue?vue&type=script&setup=true&lang.ts
|
|
14
|
+
var C = { class: "flex-center gap-2 mb-3 wrap-on-small" }, w = { class: "flex-center gap-1" }, T = {
|
|
15
|
+
key: 1,
|
|
16
|
+
class: "list-loader my-5"
|
|
17
|
+
}, E = { class: "c-data-list__toolbar" }, D = {
|
|
18
|
+
layoutBreakpoint: 768,
|
|
19
|
+
orderable: !0,
|
|
20
|
+
historyEnabled: !0,
|
|
21
|
+
loading: !1,
|
|
22
|
+
handleUrl: !1
|
|
23
|
+
}, O = /*@__PURE__*/ _({
|
|
24
|
+
__name: "DataList",
|
|
25
|
+
props: /*@__PURE__*/ v({
|
|
26
|
+
config: {},
|
|
27
|
+
items: {},
|
|
28
|
+
settings: {},
|
|
29
|
+
id: {},
|
|
30
|
+
layoutBreakpoint: {},
|
|
31
|
+
orderable: { type: Boolean },
|
|
32
|
+
pagination: {},
|
|
33
|
+
filters: {},
|
|
34
|
+
historyEnabled: { type: Boolean },
|
|
35
|
+
loading: { type: Boolean },
|
|
36
|
+
handleUrl: { type: Boolean }
|
|
37
|
+
}, { ...D }),
|
|
38
|
+
emits: [
|
|
39
|
+
"filter-change",
|
|
40
|
+
"selection-change",
|
|
41
|
+
"settings-change",
|
|
42
|
+
"pagination-change",
|
|
43
|
+
"sort-change"
|
|
44
|
+
],
|
|
45
|
+
setup(_, { expose: v, emit: D }) {
|
|
46
|
+
let O = S(null), k = _, A = D, j = S(!1), M = S(!1), N = S(null), P = S(!1), F = S(null), I = S(!1), L = d(() => k.filters?.some((e) => e.type === "text" || e.type === "textarea")), R = {
|
|
47
|
+
type: "checkbox",
|
|
48
|
+
key: "exactMatch",
|
|
49
|
+
label: "Pontos egyezés",
|
|
50
|
+
fullWidth: !0,
|
|
51
|
+
config: { labelAlignmentFix: !0 },
|
|
52
|
+
displayClass: "highlight-chip"
|
|
53
|
+
};
|
|
54
|
+
function z(e) {
|
|
55
|
+
return !L.value || e.some((e) => e.key === "exactMatch") ? e : [R, ...e];
|
|
23
56
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
n("p", null, [
|
|
169
|
-
r(" A "),
|
|
170
|
-
n("strong", null, [n("i", { class: "fa-solid fa-sliders" }), r(" Mentett szűrők")]),
|
|
171
|
-
r("re kattintva lehetőség van elmenteni az aktuális szűrési feltételeket, így később egyetlen kattintással előhívhatja azokat. ")
|
|
172
|
-
]),
|
|
173
|
-
n("p", null, [
|
|
174
|
-
r(" A szűrési feltételek megadása után a "),
|
|
175
|
-
n("strong", null, [n("i", { class: "fa-solid fa-bookmark fa-sm" }), r(" Mentés")]),
|
|
176
|
-
r(" gomb megnyomásával elmenthető a szűrőkészlet. Az elnevezés megadása nem kötelező, csak saját magadnak szól a későbbi könnyebb azonosítás érdekében. ")
|
|
177
|
-
]),
|
|
178
|
-
n("p", null, " Ezt követően a szűrőkészlet a mentés dátumával és elnevezésével jelenik meg a mentett szűrők között. Ezekre kattintva lenyithatók a szűrőkészlet részletei. "),
|
|
179
|
-
n("p", null, "A mentett készlet jobb oldalán található 3 ikon:"),
|
|
180
|
-
n("ul", null, [
|
|
181
|
-
n("li", null, [n("i", { class: "fa-solid fa-check" }), r(": ikonra kattintva tölthetők be a készletek. Megnyomásakor a szűrési feltételek automatikusan kitöltődnek az elmentett értékekkel. ")]),
|
|
182
|
-
n("li", null, [n("span", { class: "c-indicator" }, "?"), r(": azt mutatja, hogy hány szűrési feltétel van a készletben. ")]),
|
|
183
|
-
n("li", null, [n("i", { class: "fa-solid fa-xmark" }), r(": a mentett szűrőkészlet törlése (a művelet megerősítést kér). ")])
|
|
184
|
-
]),
|
|
185
|
-
n("p", { class: "dl-guide-note" }, [
|
|
186
|
-
r("Táblázatonként maximum "),
|
|
187
|
-
n("strong", null, "20"),
|
|
188
|
-
r(" készlet menthető el.")
|
|
189
|
-
]),
|
|
190
|
-
n("p", null, " A lista alján található \"Összes törlése\" gombbal törölhető a táblához tartozó minden elmentett szűrőkészlet. "),
|
|
191
|
-
n("p", { class: "dl-guide-note" }, [n("strong", null, "Fontos:"), r(" a beállítások és a szűrők is csak böngészőben (localStorage) kerülnek tárolásra, ezért más eszközön vagy böngészőben nem lesznek elérhetőek. ")])
|
|
192
|
-
], -1)
|
|
193
|
-
], 512)]),
|
|
194
|
-
_: 1
|
|
195
|
-
}, 8, ["open", "position"]));
|
|
57
|
+
let B = d(() => z(k.filters ?? [])), V = S(k.filters ? o(B.value) : {}), H = null;
|
|
58
|
+
b(() => {
|
|
59
|
+
H = new ResizeObserver((e) => {
|
|
60
|
+
P.value = (e[0]?.contentRect.width ?? 0) < k.layoutBreakpoint;
|
|
61
|
+
}), F.value && H.observe(F.value);
|
|
62
|
+
}), y(() => H?.disconnect());
|
|
63
|
+
let U = d(() => {
|
|
64
|
+
let e = N.value?.layout;
|
|
65
|
+
return e === "table" || e === "cards" ? e : P.value ? "cards" : "table";
|
|
66
|
+
}), W = d(() => {
|
|
67
|
+
if (!N.value) return k.config;
|
|
68
|
+
let e = N.value.columnOrder, t = k.config.columns.map((e) => ({
|
|
69
|
+
...e,
|
|
70
|
+
visible: N.value.columns[e.property] ?? e.visible !== !1
|
|
71
|
+
}));
|
|
72
|
+
return e?.length && t.sort((t, n) => {
|
|
73
|
+
let r = e.indexOf(t.property), i = e.indexOf(n.property);
|
|
74
|
+
return (r === -1 ? 999 : r) - (i === -1 ? 999 : i);
|
|
75
|
+
}), {
|
|
76
|
+
...k.config,
|
|
77
|
+
columns: t
|
|
78
|
+
};
|
|
79
|
+
});
|
|
80
|
+
function G(e) {
|
|
81
|
+
N.value = e, A("settings-change", e);
|
|
82
|
+
}
|
|
83
|
+
v({
|
|
84
|
+
openOptions: () => j.value = !0,
|
|
85
|
+
closeOptions: () => j.value = !1,
|
|
86
|
+
openFilters: () => I.value = !0,
|
|
87
|
+
closeFilters: () => I.value = !1
|
|
88
|
+
});
|
|
89
|
+
async function K(e) {
|
|
90
|
+
I.value = !0, setTimeout(() => {
|
|
91
|
+
O.value?.focusFilter(e);
|
|
92
|
+
}, 300);
|
|
93
|
+
}
|
|
94
|
+
function q(e) {
|
|
95
|
+
V.value = e, A("filter-change", e);
|
|
96
|
+
}
|
|
97
|
+
let J = d(() => Object.values(V.value).filter((e) => e != null && e !== "").length);
|
|
98
|
+
return (o, d) => (x(), m("div", {
|
|
99
|
+
ref_key: "root",
|
|
100
|
+
ref: F,
|
|
101
|
+
class: "c-data-list ac-component"
|
|
102
|
+
}, [
|
|
103
|
+
B.value && B.value.length > 0 ? (x(), m(u, { key: 0 }, [h("div", C, [g(e, {
|
|
104
|
+
label: "Szűrők megnyitása",
|
|
105
|
+
icon: "fa-solid fa-filter",
|
|
106
|
+
onClick: d[0] ||= (e) => I.value = !0,
|
|
107
|
+
style: { "flex-shrink": "0" },
|
|
108
|
+
type: J.value > 0 ? "info" : "normal",
|
|
109
|
+
indicator: J.value > 0 ? J.value : void 0
|
|
110
|
+
}, null, 8, ["type", "indicator"]), h("div", w, [g(c, {
|
|
111
|
+
filters: V.value,
|
|
112
|
+
items: B.value,
|
|
113
|
+
onRemove: d[1] ||= (e) => O.value?.clearFilter(e),
|
|
114
|
+
onOpenFilter: K
|
|
115
|
+
}, null, 8, ["filters", "items"])])]), g(s, {
|
|
116
|
+
ref_key: "dataFiltersRef",
|
|
117
|
+
ref: O,
|
|
118
|
+
open: I.value,
|
|
119
|
+
items: B.value,
|
|
120
|
+
lazy: "",
|
|
121
|
+
"handle-url": _.handleUrl,
|
|
122
|
+
"storage-key": _.id,
|
|
123
|
+
onClose: d[2] ||= (e) => I.value = !1,
|
|
124
|
+
onChange: q
|
|
125
|
+
}, null, 8, [
|
|
126
|
+
"open",
|
|
127
|
+
"items",
|
|
128
|
+
"handle-url",
|
|
129
|
+
"storage-key"
|
|
130
|
+
])], 64)) : p("", !0),
|
|
131
|
+
_.loading ? (x(), m("div", T, [g(t, {
|
|
132
|
+
loading: !0,
|
|
133
|
+
size: "2.8125rem"
|
|
134
|
+
})])) : (x(), m(u, { key: 2 }, [
|
|
135
|
+
h("div", E, [g(e, {
|
|
136
|
+
label: "Beállítások",
|
|
137
|
+
icon: "fa-solid fa-gear",
|
|
138
|
+
class: "c-data-list__toolbar__item",
|
|
139
|
+
"label-alignment-fix": "",
|
|
140
|
+
size: "small",
|
|
141
|
+
onClick: d[3] ||= (e) => j.value = !0
|
|
142
|
+
}), g(e, {
|
|
143
|
+
label: "Súgó",
|
|
144
|
+
icon: "fa-solid fa-question",
|
|
145
|
+
"icon-position": "right",
|
|
146
|
+
class: "c-data-list__toolbar__item ml-auto",
|
|
147
|
+
"label-alignment-fix": "",
|
|
148
|
+
size: "small",
|
|
149
|
+
onClick: d[4] ||= (e) => M.value = !0
|
|
150
|
+
})]),
|
|
151
|
+
g(l, {
|
|
152
|
+
open: M.value,
|
|
153
|
+
onClose: d[5] ||= (e) => M.value = !1
|
|
154
|
+
}, null, 8, ["open"]),
|
|
155
|
+
U.value === "table" ? (x(), f(n, {
|
|
156
|
+
key: 0,
|
|
157
|
+
config: W.value,
|
|
158
|
+
items: _.items,
|
|
159
|
+
settings: N.value ?? void 0,
|
|
160
|
+
onFilterChange: d[6] ||= (e) => A("filter-change", e),
|
|
161
|
+
onSelectionChange: d[7] ||= (e) => A("selection-change", e),
|
|
162
|
+
onSortChange: d[8] ||= (e) => A("sort-change", e)
|
|
163
|
+
}, null, 8, [
|
|
164
|
+
"config",
|
|
165
|
+
"items",
|
|
166
|
+
"settings"
|
|
167
|
+
])) : (x(), f(r, {
|
|
168
|
+
key: 1,
|
|
169
|
+
config: W.value,
|
|
170
|
+
items: _.items,
|
|
171
|
+
settings: N.value ?? void 0,
|
|
172
|
+
onSelectionChange: d[9] ||= (e) => A("selection-change", e)
|
|
173
|
+
}, null, 8, [
|
|
174
|
+
"config",
|
|
175
|
+
"items",
|
|
176
|
+
"settings"
|
|
177
|
+
])),
|
|
178
|
+
_.pagination ? (x(), f(a, {
|
|
179
|
+
key: 2,
|
|
180
|
+
settings: _.pagination,
|
|
181
|
+
"storage-key": _.id,
|
|
182
|
+
"onUpdate:pagination": d[10] ||= (e) => A("pagination-change", e)
|
|
183
|
+
}, null, 8, ["settings", "storage-key"])) : p("", !0)
|
|
184
|
+
], 64)),
|
|
185
|
+
g(i, {
|
|
186
|
+
open: j.value,
|
|
187
|
+
columns: _.config.columns,
|
|
188
|
+
settings: _.settings ?? {},
|
|
189
|
+
"storage-key": _.id,
|
|
190
|
+
orderable: _.orderable,
|
|
191
|
+
onClose: d[11] ||= (e) => j.value = !1,
|
|
192
|
+
onChange: G
|
|
193
|
+
}, null, 8, [
|
|
194
|
+
"open",
|
|
195
|
+
"columns",
|
|
196
|
+
"settings",
|
|
197
|
+
"storage-key",
|
|
198
|
+
"orderable"
|
|
199
|
+
])
|
|
200
|
+
], 512));
|
|
196
201
|
}
|
|
197
202
|
});
|
|
198
203
|
//#endregion
|
|
199
|
-
export {
|
|
204
|
+
export { D as dataListDefaults, O as default };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import './src/styles/components/data-table/data-list
|
|
1
|
+
import './src/styles/components/data-table/data-list.scss_vue_type_style_index_0_src_true_lang.css';
|
|
2
|
+
import "./admins-components68.js";
|
|
2
3
|
import e from "./admins-components86.js";
|
|
3
4
|
/* empty css */
|
|
4
|
-
//#region src/components/data-table/
|
|
5
|
+
//#region src/components/data-table/DataList.vue
|
|
5
6
|
var t = e;
|
|
6
7
|
//#endregion
|
|
7
8
|
export { t as default };
|
|
@@ -1,204 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import n from "./admins-components63.js";
|
|
4
|
-
import r from "./admins-components66.js";
|
|
5
|
-
import i from "./admins-components70.js";
|
|
6
|
-
import "./admins-components71.js";
|
|
7
|
-
import a from "./admins-components73.js";
|
|
8
|
-
import { getFilterParams as o } from "./admins-components79.js";
|
|
9
|
-
import s from "./admins-components82.js";
|
|
10
|
-
import c from "./admins-components85.js";
|
|
11
|
-
import l from "./admins-components88.js";
|
|
12
|
-
import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createVNode as g, defineComponent as _, mergeDefaults as v, onBeforeUnmount as y, onMounted as b, openBlock as x, ref as S } from "vue";
|
|
13
|
-
//#region src/components/data-table/DataList.vue?vue&type=script&setup=true&lang.ts
|
|
14
|
-
var C = { class: "flex-center gap-2 mb-3 wrap-on-small" }, w = { class: "flex-center gap-1" }, T = {
|
|
15
|
-
key: 1,
|
|
16
|
-
class: "list-loader my-5"
|
|
17
|
-
}, E = { class: "c-data-list__toolbar" }, D = {
|
|
18
|
-
layoutBreakpoint: 768,
|
|
19
|
-
orderable: !0,
|
|
20
|
-
historyEnabled: !0,
|
|
21
|
-
loading: !1,
|
|
22
|
-
handleUrl: !1
|
|
23
|
-
}, O = /* @__PURE__ */ _({
|
|
24
|
-
__name: "DataList",
|
|
25
|
-
props: /* @__PURE__ */ v({
|
|
26
|
-
config: {},
|
|
27
|
-
items: {},
|
|
28
|
-
settings: {},
|
|
29
|
-
id: {},
|
|
30
|
-
layoutBreakpoint: {},
|
|
31
|
-
orderable: { type: Boolean },
|
|
32
|
-
pagination: {},
|
|
33
|
-
filters: {},
|
|
34
|
-
historyEnabled: { type: Boolean },
|
|
35
|
-
loading: { type: Boolean },
|
|
36
|
-
handleUrl: { type: Boolean }
|
|
37
|
-
}, { ...D }),
|
|
38
|
-
emits: [
|
|
39
|
-
"filter-change",
|
|
40
|
-
"selection-change",
|
|
41
|
-
"settings-change",
|
|
42
|
-
"pagination-change",
|
|
43
|
-
"sort-change"
|
|
44
|
-
],
|
|
45
|
-
setup(_, { expose: v, emit: D }) {
|
|
46
|
-
let O = S(null), k = _, A = D, j = S(!1), M = S(!1), N = S(null), P = S(!1), F = S(null), I = S(!1), L = d(() => k.filters?.some((e) => e.type === "text" || e.type === "textarea")), R = {
|
|
47
|
-
type: "checkbox",
|
|
48
|
-
key: "exactMatch",
|
|
49
|
-
label: "Pontos egyezés",
|
|
50
|
-
fullWidth: !0,
|
|
51
|
-
config: { labelAlignmentFix: !0 },
|
|
52
|
-
displayClass: "highlight-chip"
|
|
53
|
-
};
|
|
54
|
-
function z(e) {
|
|
55
|
-
return !L.value || e.some((e) => e.key === "exactMatch") ? e : [R, ...e];
|
|
56
|
-
}
|
|
57
|
-
let B = d(() => z(k.filters ?? [])), V = S(k.filters ? o(B.value) : {}), H = null;
|
|
58
|
-
b(() => {
|
|
59
|
-
H = new ResizeObserver((e) => {
|
|
60
|
-
P.value = (e[0]?.contentRect.width ?? 0) < k.layoutBreakpoint;
|
|
61
|
-
}), F.value && H.observe(F.value);
|
|
62
|
-
}), y(() => H?.disconnect());
|
|
63
|
-
let U = d(() => {
|
|
64
|
-
let e = N.value?.layout;
|
|
65
|
-
return e === "table" || e === "cards" ? e : P.value ? "cards" : "table";
|
|
66
|
-
}), W = d(() => {
|
|
67
|
-
if (!N.value) return k.config;
|
|
68
|
-
let e = N.value.columnOrder, t = k.config.columns.map((e) => ({
|
|
69
|
-
...e,
|
|
70
|
-
visible: N.value.columns[e.property] ?? e.visible !== !1
|
|
71
|
-
}));
|
|
72
|
-
return e?.length && t.sort((t, n) => {
|
|
73
|
-
let r = e.indexOf(t.property), i = e.indexOf(n.property);
|
|
74
|
-
return (r === -1 ? 999 : r) - (i === -1 ? 999 : i);
|
|
75
|
-
}), {
|
|
76
|
-
...k.config,
|
|
77
|
-
columns: t
|
|
78
|
-
};
|
|
79
|
-
});
|
|
80
|
-
function G(e) {
|
|
81
|
-
N.value = e, A("settings-change", e);
|
|
82
|
-
}
|
|
83
|
-
v({
|
|
84
|
-
openOptions: () => j.value = !0,
|
|
85
|
-
closeOptions: () => j.value = !1,
|
|
86
|
-
openFilters: () => I.value = !0,
|
|
87
|
-
closeFilters: () => I.value = !1
|
|
88
|
-
});
|
|
89
|
-
async function K(e) {
|
|
90
|
-
I.value = !0, setTimeout(() => {
|
|
91
|
-
O.value?.focusFilter(e);
|
|
92
|
-
}, 300);
|
|
93
|
-
}
|
|
94
|
-
function q(e) {
|
|
95
|
-
V.value = e, A("filter-change", e);
|
|
96
|
-
}
|
|
97
|
-
let J = d(() => Object.values(V.value).filter((e) => e != null && e !== "").length);
|
|
98
|
-
return (o, d) => (x(), m("div", {
|
|
99
|
-
ref_key: "root",
|
|
100
|
-
ref: F,
|
|
101
|
-
class: "c-data-list ac-component"
|
|
102
|
-
}, [
|
|
103
|
-
B.value && B.value.length > 0 ? (x(), m(u, { key: 0 }, [h("div", C, [g(e, {
|
|
104
|
-
label: "Szűrők megnyitása",
|
|
105
|
-
icon: "fa-solid fa-filter",
|
|
106
|
-
onClick: d[0] ||= (e) => I.value = !0,
|
|
107
|
-
style: { "flex-shrink": "0" },
|
|
108
|
-
type: J.value > 0 ? "info" : "normal",
|
|
109
|
-
indicator: J.value > 0 ? J.value : void 0
|
|
110
|
-
}, null, 8, ["type", "indicator"]), h("div", w, [g(c, {
|
|
111
|
-
filters: V.value,
|
|
112
|
-
items: B.value,
|
|
113
|
-
onRemove: d[1] ||= (e) => O.value?.clearFilter(e),
|
|
114
|
-
onOpenFilter: K
|
|
115
|
-
}, null, 8, ["filters", "items"])])]), g(s, {
|
|
116
|
-
ref_key: "dataFiltersRef",
|
|
117
|
-
ref: O,
|
|
118
|
-
open: I.value,
|
|
119
|
-
items: B.value,
|
|
120
|
-
lazy: "",
|
|
121
|
-
"handle-url": _.handleUrl,
|
|
122
|
-
"storage-key": _.id,
|
|
123
|
-
onClose: d[2] ||= (e) => I.value = !1,
|
|
124
|
-
onChange: q
|
|
125
|
-
}, null, 8, [
|
|
126
|
-
"open",
|
|
127
|
-
"items",
|
|
128
|
-
"handle-url",
|
|
129
|
-
"storage-key"
|
|
130
|
-
])], 64)) : p("", !0),
|
|
131
|
-
_.loading ? (x(), m("div", T, [g(t, {
|
|
132
|
-
loading: !0,
|
|
133
|
-
size: "2.8125rem"
|
|
134
|
-
})])) : (x(), m(u, { key: 2 }, [
|
|
135
|
-
h("div", E, [g(e, {
|
|
136
|
-
label: "Beállítások",
|
|
137
|
-
icon: "fa-solid fa-gear",
|
|
138
|
-
class: "c-data-list__toolbar__item",
|
|
139
|
-
"label-alignment-fix": "",
|
|
140
|
-
size: "small",
|
|
141
|
-
onClick: d[3] ||= (e) => j.value = !0
|
|
142
|
-
}), g(e, {
|
|
143
|
-
label: "Súgó",
|
|
144
|
-
icon: "fa-solid fa-question",
|
|
145
|
-
"icon-position": "right",
|
|
146
|
-
class: "c-data-list__toolbar__item ml-auto",
|
|
147
|
-
"label-alignment-fix": "",
|
|
148
|
-
size: "small",
|
|
149
|
-
onClick: d[4] ||= (e) => M.value = !0
|
|
150
|
-
})]),
|
|
151
|
-
g(l, {
|
|
152
|
-
open: M.value,
|
|
153
|
-
onClose: d[5] ||= (e) => M.value = !1
|
|
154
|
-
}, null, 8, ["open"]),
|
|
155
|
-
U.value === "table" ? (x(), f(n, {
|
|
156
|
-
key: 0,
|
|
157
|
-
config: W.value,
|
|
158
|
-
items: _.items,
|
|
159
|
-
settings: N.value ?? void 0,
|
|
160
|
-
onFilterChange: d[6] ||= (e) => A("filter-change", e),
|
|
161
|
-
onSelectionChange: d[7] ||= (e) => A("selection-change", e),
|
|
162
|
-
onSortChange: d[8] ||= (e) => A("sort-change", e)
|
|
163
|
-
}, null, 8, [
|
|
164
|
-
"config",
|
|
165
|
-
"items",
|
|
166
|
-
"settings"
|
|
167
|
-
])) : (x(), f(r, {
|
|
168
|
-
key: 1,
|
|
169
|
-
config: W.value,
|
|
170
|
-
items: _.items,
|
|
171
|
-
settings: N.value ?? void 0,
|
|
172
|
-
onSelectionChange: d[9] ||= (e) => A("selection-change", e)
|
|
173
|
-
}, null, 8, [
|
|
174
|
-
"config",
|
|
175
|
-
"items",
|
|
176
|
-
"settings"
|
|
177
|
-
])),
|
|
178
|
-
_.pagination ? (x(), f(a, {
|
|
179
|
-
key: 2,
|
|
180
|
-
settings: _.pagination,
|
|
181
|
-
"storage-key": _.id,
|
|
182
|
-
"onUpdate:pagination": d[10] ||= (e) => A("pagination-change", e)
|
|
183
|
-
}, null, 8, ["settings", "storage-key"])) : p("", !0)
|
|
184
|
-
], 64)),
|
|
185
|
-
g(i, {
|
|
186
|
-
open: j.value,
|
|
187
|
-
columns: _.config.columns,
|
|
188
|
-
settings: _.settings ?? {},
|
|
189
|
-
"storage-key": _.id,
|
|
190
|
-
orderable: _.orderable,
|
|
191
|
-
onClose: d[11] ||= (e) => j.value = !1,
|
|
192
|
-
onChange: G
|
|
193
|
-
}, null, 8, [
|
|
194
|
-
"open",
|
|
195
|
-
"columns",
|
|
196
|
-
"settings",
|
|
197
|
-
"storage-key",
|
|
198
|
-
"orderable"
|
|
199
|
-
])
|
|
200
|
-
], 512));
|
|
201
|
-
}
|
|
202
|
-
});
|
|
1
|
+
//#region src/utils/ipUtils.ts
|
|
2
|
+
var e = (e) => /(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)/.test(e);
|
|
203
3
|
//#endregion
|
|
204
|
-
export {
|
|
4
|
+
export { e as isIpInUrl };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
//#region src/utils/url.ts
|
|
2
|
+
function e(e) {
|
|
3
|
+
return new URLSearchParams(window.location.search).get(e);
|
|
4
|
+
}
|
|
5
|
+
function t(e, t) {
|
|
6
|
+
let n = new URL(window.location.href);
|
|
7
|
+
n.searchParams.set(e, String(t)), window.history.replaceState({}, "", n.toString());
|
|
8
|
+
}
|
|
9
|
+
function n(e) {
|
|
10
|
+
let t = new URL(window.location.href);
|
|
11
|
+
e ? t.searchParams.delete(e) : t.search = "", window.history.replaceState({}, "", t.toString());
|
|
12
|
+
}
|
|
13
|
+
function r(...e) {
|
|
14
|
+
return e.map((e, t) => t === 0 ? e.replace(/\/+$/, "") : e.replace(/^\/+|\/+$/g, "")).filter(Boolean).join("/");
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { e as getUrlParam, r as joinUrl, n as removeUrlParam, t as setUrlParam };
|