admins-components 9.0.4 → 9.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/admins-components.js +58 -54
- package/dist/admins-components10.js +10 -0
- package/dist/admins-components100.js +23 -247
- package/dist/admins-components101.js +171 -26
- package/dist/admins-components102.js +65 -25
- package/dist/admins-components103.js +67 -162
- package/dist/admins-components104.js +27 -65
- package/dist/admins-components105.js +12 -63
- package/dist/admins-components106.js +26 -29
- package/dist/admins-components107.js +10 -16
- package/dist/admins-components108.js +3 -26
- package/dist/admins-components109.js +2 -8
- package/dist/admins-components11.js +38 -9
- package/dist/admins-components110.js +3 -4
- package/dist/admins-components111.js +21 -3
- package/dist/admins-components112.js +14 -3
- package/dist/admins-components113.js +7 -20
- package/dist/admins-components114.js +13 -14
- package/dist/admins-components115.js +34 -8
- package/dist/admins-components116.js +82 -12
- package/dist/admins-components117.js +9 -24
- package/dist/admins-components118.js +4 -82
- package/dist/admins-components119.js +8 -11
- package/dist/admins-components12.js +141 -37
- package/dist/admins-components120.js +6 -4
- package/dist/admins-components121.js +6 -8
- package/dist/admins-components122.js +14 -6
- package/dist/admins-components123.js +11 -4
- package/dist/admins-components124.js +30 -15
- package/dist/admins-components125.js +4 -13
- package/dist/admins-components126.js +29 -30
- package/dist/admins-components127.js +5 -4
- package/dist/admins-components128.js +5 -29
- package/dist/admins-components129.js +21 -4
- package/dist/admins-components13.js +5 -142
- package/dist/admins-components130.js +81 -4
- package/dist/admins-components131.js +32 -7
- package/dist/admins-components132.js +58 -73
- package/dist/admins-components133.js +24 -29
- package/dist/admins-components134.js +47 -56
- package/dist/admins-components135.js +31 -23
- package/dist/admins-components136.js +3 -50
- package/dist/admins-components137.js +184 -29
- package/dist/admins-components138.js +46 -3
- package/dist/admins-components139.js +35 -177
- package/dist/admins-components14.js +46 -5
- package/dist/admins-components140.js +41 -41
- package/dist/admins-components141.js +137 -32
- package/dist/admins-components142.js +54 -42
- package/dist/admins-components143.js +6 -140
- package/dist/admins-components144.js +5 -57
- package/dist/admins-components145.js +75 -6
- package/dist/admins-components146.js +28 -5
- package/dist/admins-components147.js +1929 -74
- package/dist/admins-components148.js +25068 -29
- package/dist/admins-components149.js +8 -1930
- package/dist/admins-components15.js +4 -46
- package/dist/admins-components150.js +5 -24809
- package/dist/admins-components151.js +141 -8
- package/dist/admins-components152.js +8 -141
- package/dist/admins-components153.js +3 -3
- package/dist/admins-components155.js +169 -0
- package/dist/admins-components156.js +44 -161
- package/dist/admins-components157.js +8 -50
- package/dist/admins-components158.js +49 -8
- package/dist/admins-components159.js +6 -50
- package/dist/admins-components16.js +94 -4
- package/dist/admins-components160.js +80 -6
- package/dist/admins-components161.js +48 -70
- package/dist/admins-components162.js +32 -31
- package/dist/admins-components163.js +8 -58
- package/dist/admins-components164.js +51 -8
- package/dist/admins-components165.js +8 -51
- package/dist/{admins-components168.js → admins-components167.js} +5 -5
- package/dist/admins-components17.js +225 -91
- package/dist/admins-components18.js +5 -228
- package/dist/admins-components19.js +181 -5
- package/dist/admins-components21.js +7 -0
- package/dist/admins-components22.js +72 -6
- package/dist/admins-components23.js +6 -72
- package/dist/admins-components24.js +58 -6
- package/dist/admins-components26.js +7 -0
- package/dist/admins-components27.js +60 -6
- package/dist/admins-components29.js +7 -0
- package/dist/admins-components30.js +36 -6
- package/dist/admins-components32.js +7 -0
- package/dist/admins-components33.js +36 -6
- package/dist/admins-components34.js +4 -36
- package/dist/admins-components35.js +32 -4
- package/dist/admins-components37.js +7 -0
- package/dist/admins-components38.js +147 -6
- package/dist/admins-components4.js +2 -2
- package/dist/admins-components40.js +7 -0
- package/dist/admins-components41.js +124 -6
- package/dist/admins-components42.js +4 -124
- package/dist/admins-components43.js +179 -4
- package/dist/admins-components44.js +4 -179
- package/dist/admins-components45.js +19 -4
- package/dist/admins-components47.js +7 -0
- package/dist/admins-components48.js +54 -6
- package/dist/admins-components49.js +93 -54
- package/dist/admins-components5.js +5 -0
- package/dist/admins-components51.js +7 -0
- package/dist/admins-components52.js +25 -6
- package/dist/admins-components53.js +9 -25
- package/dist/admins-components54.js +19 -9
- package/dist/admins-components55.js +72 -18
- package/dist/admins-components56.js +59 -73
- package/dist/admins-components57.js +4 -59
- package/dist/admins-components58.js +121 -0
- package/dist/admins-components6.js +29 -6
- package/dist/admins-components60.js +6 -6
- package/dist/admins-components61.js +126 -103
- package/dist/admins-components63.js +3 -3
- package/dist/admins-components64.js +7 -143
- package/dist/admins-components65.js +264 -0
- package/dist/admins-components67.js +6 -7
- package/dist/admins-components68.js +98 -250
- package/dist/admins-components7.js +252 -29
- package/dist/admins-components70.js +2 -2
- package/dist/admins-components71.js +54 -106
- package/dist/admins-components72.js +222 -0
- package/dist/admins-components74.js +6 -59
- package/dist/admins-components75.js +8 -221
- package/dist/admins-components76.js +47 -0
- package/dist/admins-components77.js +250 -6
- package/dist/admins-components79.js +7 -46
- package/dist/admins-components80.js +32 -245
- package/dist/admins-components82.js +2 -3
- package/dist/admins-components83.js +192 -31
- package/dist/admins-components85.js +2 -2
- package/dist/admins-components86.js +200 -195
- package/dist/admins-components88.js +3 -2
- package/dist/admins-components89.js +3 -203
- package/dist/admins-components90.js +17 -0
- package/dist/admins-components91.js +3 -7
- package/dist/admins-components92.js +52 -3
- package/dist/admins-components93.js +80 -50
- package/dist/admins-components94.js +109 -77
- package/dist/admins-components95.js +44 -3
- package/dist/admins-components96.js +101 -108
- package/dist/admins-components97.js +6 -23
- package/dist/admins-components98.js +257 -100
- package/dist/admins-components99.js +27 -7
- package/dist/base.css +1 -1
- package/dist/src/components/Button.vue.d.ts +1 -1
- package/dist/src/components/Calendar.vue.d.ts +1 -1
- package/dist/src/components/ConfirmModal.vue.d.ts +1 -1
- package/dist/src/components/DatePicker.vue.d.ts +2 -2
- package/dist/src/components/DateRangePicker.vue.d.ts +2 -2
- package/dist/src/components/DropdownMenu.vue.d.ts +2 -2
- package/dist/src/components/DropdownSelect.vue.d.ts +1 -1
- package/dist/src/components/HeaderComponent.vue.d.ts +2 -2
- package/dist/src/components/custom/ImagePicker.vue.d.ts +1 -1
- package/dist/src/components/data-table/DataCards.vue.d.ts +2 -2
- package/dist/src/components/data-table/DataCell.vue.d.ts +1 -1
- package/dist/src/components/data-table/DataFilters.vue.d.ts +4 -4
- package/dist/src/components/data-table/DataList.vue.d.ts +4 -4
- package/dist/src/components/data-table/DataListGuide.vue.d.ts +1 -1
- package/dist/src/components/data-table/DataListOptions.vue.d.ts +2 -2
- package/dist/src/components/data-table/DataPaginator.vue.d.ts +1 -1
- package/dist/src/components/data-table/DataTable.vue.d.ts +3 -3
- package/dist/src/components/data-table/FilterTags.vue.d.ts +1 -1
- package/dist/src/components/data-table/FiltersHistory.vue.d.ts +1 -1
- package/dist/src/index.d.ts +85 -80
- package/dist/src/styles/components/data-table/data-list.scss_vue_type_style_index_0_src_true_lang.css +1 -1
- package/dist/src/styles/components/data-table/filter-tags.scss_vue_type_style_index_0_src_true_lang.css +1 -1
- package/dist/src/styles/components/loader.scss_vue_type_style_index_0_src_true_lang.css +1 -1
- package/dist/src/vueformelements/config/ExternalArticleOfferElementConfig.d.ts +1 -1
- package/package.json +4 -5
- package/dist/admins-components154.js +0 -10
- package/dist/admins-components166.js +0 -10
- package/dist/admins-components20.js +0 -182
- package/dist/admins-components25.js +0 -59
- package/dist/admins-components28.js +0 -61
- package/dist/admins-components31.js +0 -37
- package/dist/admins-components36.js +0 -33
- package/dist/admins-components39.js +0 -148
- package/dist/admins-components46.js +0 -20
- package/dist/admins-components50.js +0 -94
- package/dist/admins-components59.js +0 -8
- package/dist/admins-components66.js +0 -8
- package/dist/admins-components73.js +0 -7
- package/dist/admins-components78.js +0 -9
- package/dist/admins-components8.js +0 -253
- package/dist/index.d.ts +0 -2
- package/dist/src/components/data-table/DataCell.vue_vue_type_style_index_0_scoped_d46d9895_lang.css +0 -1
- package/dist/src/styles/_buttons.scss_vue_type_style_index_0_src_true_lang.css +0 -1
|
@@ -1,180 +1,5 @@
|
|
|
1
|
-
import e from "./admins-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import r from "./admins-components41.js";
|
|
5
|
-
import { createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, onMounted as u, onUnmounted as d, openBlock as f, ref as p, watch as m, withCtx as h } from "vue";
|
|
6
|
-
//#region src/components/custom/InternalArticleOffer.vue?vue&type=script&setup=true&lang.ts
|
|
7
|
-
var g = { class: "flex-column gap-2 ac-component" }, _ = {
|
|
8
|
-
key: 0,
|
|
9
|
-
class: "flex gap-2"
|
|
10
|
-
}, v = { class: "c-input-row" }, y = ["value"], b = { class: "c-input-row" }, x = ["value"], S = { class: "c-input-row" }, C = ["value"], w = { class: "c-input-row" }, T = ["value"], E = ["id", "apiurl"], D = "00000000-0000-0000-0000-000000000000", O = /* @__PURE__ */ l({
|
|
11
|
-
__name: "InternalArticleOffer",
|
|
12
|
-
props: {
|
|
13
|
-
modelValue: {},
|
|
14
|
-
searchArticleApiUrl: {},
|
|
15
|
-
searchArticleWidgetUrl: {},
|
|
16
|
-
environment: {},
|
|
17
|
-
searchImageWidgetUrl: {},
|
|
18
|
-
imageBaseUrl: {},
|
|
19
|
-
imageViewId: {},
|
|
20
|
-
showIds: {
|
|
21
|
-
type: Boolean,
|
|
22
|
-
default: !0
|
|
23
|
-
},
|
|
24
|
-
formats: {}
|
|
25
|
-
},
|
|
26
|
-
emits: ["update:modelValue"],
|
|
27
|
-
setup(l, { emit: O }) {
|
|
28
|
-
let k = {
|
|
29
|
-
article: {
|
|
30
|
-
siteId: "",
|
|
31
|
-
id: "",
|
|
32
|
-
imageId: "",
|
|
33
|
-
title: "",
|
|
34
|
-
lead: ""
|
|
35
|
-
},
|
|
36
|
-
format: ""
|
|
37
|
-
}, A = O, j = l, M = p(k), N = p({
|
|
38
|
-
id: M.value.article.imageId || "",
|
|
39
|
-
url: "",
|
|
40
|
-
source: "",
|
|
41
|
-
title: "",
|
|
42
|
-
isAdult: !1
|
|
43
|
-
}), P = p(!1);
|
|
44
|
-
m(() => j.modelValue, (e) => {
|
|
45
|
-
e ? M.value = e : M.value = k;
|
|
46
|
-
}, {
|
|
47
|
-
deep: !0,
|
|
48
|
-
immediate: !0
|
|
49
|
-
}), m(() => M, (e) => {
|
|
50
|
-
A("update:modelValue", M.value), N.value.id = e.value.article.imageId;
|
|
51
|
-
}, {
|
|
52
|
-
deep: !0,
|
|
53
|
-
immediate: !0
|
|
54
|
-
}), m(() => N.value.id, (e) => {
|
|
55
|
-
M.value.article.imageId = e;
|
|
56
|
-
}, {
|
|
57
|
-
deep: !0,
|
|
58
|
-
immediate: !0
|
|
59
|
-
});
|
|
60
|
-
let F = p((/* @__PURE__ */ new Date()).getTime().toString() + "article");
|
|
61
|
-
d(() => {
|
|
62
|
-
window.removeEventListener("search_posts_selected", I);
|
|
63
|
-
}), u(() => {
|
|
64
|
-
window.addEventListener("search_posts_selected", I);
|
|
65
|
-
});
|
|
66
|
-
let I = (e) => {
|
|
67
|
-
if (e.detail.id == F.value) {
|
|
68
|
-
if (e.detail.result && e.detail.posts.length > 0) {
|
|
69
|
-
M.value.article.id = e.detail.posts[0].id, M.value.article.siteId = e.detail.posts[0].siteId, M.value.article.title = e.detail.posts[0].title, M.value.article.lead = e.detail.posts[0].lead;
|
|
70
|
-
let t = e.detail.posts[0].featuredImage;
|
|
71
|
-
M.value.article.imageId = t || D;
|
|
72
|
-
}
|
|
73
|
-
P.value = !1;
|
|
74
|
-
}
|
|
75
|
-
}, L = () => {
|
|
76
|
-
P.value = !0;
|
|
77
|
-
}, R = (e) => {
|
|
78
|
-
if (!customElements.get("search-posts-widget") && !document.querySelector(`script[src="${e}"]`)) {
|
|
79
|
-
let t = document.createElement("script");
|
|
80
|
-
t.type = "text/javascript", t.src = e, document.head.appendChild(t);
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
if (!customElements.get("hvg-search-image") && !document.querySelector(`script[src="${j.searchImageWidgetUrl}"]`)) {
|
|
84
|
-
let e = document.createElement("script");
|
|
85
|
-
e.type = "text/javascript", e.src = j.searchImageWidgetUrl, e.async = !0, document.head.appendChild(e);
|
|
86
|
-
}
|
|
87
|
-
return R(j.searchArticleWidgetUrl), (u, d) => (f(), o("div", g, [
|
|
88
|
-
s("div", null, [c(e, {
|
|
89
|
-
type: "success",
|
|
90
|
-
label: "Cikk kiválasztása",
|
|
91
|
-
class: "nowrap",
|
|
92
|
-
onClick: L,
|
|
93
|
-
icon: "fa-solid fa-newspaper"
|
|
94
|
-
})]),
|
|
95
|
-
l.showIds ? (f(), o("div", _, [s("div", null, [d[5] ||= s("label", {
|
|
96
|
-
for: "articleId",
|
|
97
|
-
class: "c-label"
|
|
98
|
-
}, "Article ID", -1), s("div", v, [s("input", {
|
|
99
|
-
id: "articleId",
|
|
100
|
-
type: "text",
|
|
101
|
-
class: "c-input",
|
|
102
|
-
placeholder: "Article ID",
|
|
103
|
-
disabled: "",
|
|
104
|
-
value: M.value.article.id
|
|
105
|
-
}, null, 8, y)])]), s("div", null, [d[6] ||= s("label", {
|
|
106
|
-
for: "articleSiteId",
|
|
107
|
-
class: "c-label"
|
|
108
|
-
}, "Site ID", -1), s("div", b, [s("input", {
|
|
109
|
-
id: "articleSiteId",
|
|
110
|
-
type: "text",
|
|
111
|
-
class: "c-input",
|
|
112
|
-
placeholder: "Site ID",
|
|
113
|
-
disabled: "",
|
|
114
|
-
value: M.value.article.siteId
|
|
115
|
-
}, null, 8, x)])])])) : a("", !0),
|
|
116
|
-
s("div", null, [d[7] ||= s("label", {
|
|
117
|
-
for: "articleTitle",
|
|
118
|
-
class: "c-label"
|
|
119
|
-
}, "Title", -1), s("div", S, [s("textarea", {
|
|
120
|
-
id: "articleTitle",
|
|
121
|
-
class: "c-input",
|
|
122
|
-
placeholder: "Article title",
|
|
123
|
-
value: M.value.article.title,
|
|
124
|
-
onInput: d[0] ||= (e) => M.value.article.title = e.target?.value || ""
|
|
125
|
-
}, null, 40, C)])]),
|
|
126
|
-
s("div", null, [d[8] ||= s("label", {
|
|
127
|
-
for: "articleLead",
|
|
128
|
-
class: "c-label"
|
|
129
|
-
}, "Lead", -1), s("div", w, [s("textarea", {
|
|
130
|
-
id: "articleLead",
|
|
131
|
-
class: "c-input",
|
|
132
|
-
placeholder: "Article lead / description",
|
|
133
|
-
value: M.value.article.lead,
|
|
134
|
-
onInput: d[1] ||= (e) => M.value.article.lead = e.target?.value || ""
|
|
135
|
-
}, null, 40, T)])]),
|
|
136
|
-
d[10] ||= s("hr", { class: "separator" }, null, -1),
|
|
137
|
-
s("div", null, [c(r, {
|
|
138
|
-
modelValue: N.value,
|
|
139
|
-
"onUpdate:modelValue": d[2] ||= (e) => N.value = e,
|
|
140
|
-
details: !1,
|
|
141
|
-
editable: !1,
|
|
142
|
-
environment: j.environment,
|
|
143
|
-
"article-editor-url": j.searchArticleApiUrl,
|
|
144
|
-
"search-image-widget-url": j.searchImageWidgetUrl,
|
|
145
|
-
"image-base-url": j.imageBaseUrl,
|
|
146
|
-
"image-view-id": j.imageViewId
|
|
147
|
-
}, null, 8, [
|
|
148
|
-
"modelValue",
|
|
149
|
-
"environment",
|
|
150
|
-
"article-editor-url",
|
|
151
|
-
"search-image-widget-url",
|
|
152
|
-
"image-base-url",
|
|
153
|
-
"image-view-id"
|
|
154
|
-
])]),
|
|
155
|
-
s("div", null, [d[9] ||= s("label", { class: "c-label" }, "Format", -1), c(t, {
|
|
156
|
-
modelValue: M.value.format,
|
|
157
|
-
"onUpdate:modelValue": d[3] ||= (e) => M.value.format = e,
|
|
158
|
-
options: j.formats,
|
|
159
|
-
config: { placeholder: "Select format..." }
|
|
160
|
-
}, null, 8, ["modelValue", "options"])]),
|
|
161
|
-
P.value ? (f(), i(n, {
|
|
162
|
-
key: 1,
|
|
163
|
-
title: "Search Article",
|
|
164
|
-
onClose: d[4] ||= (e) => P.value = !1
|
|
165
|
-
}, {
|
|
166
|
-
default: h(() => [s("search-posts-widget", {
|
|
167
|
-
id: F.value,
|
|
168
|
-
selector: "true",
|
|
169
|
-
apiurl: j.searchArticleApiUrl,
|
|
170
|
-
wpurl: "",
|
|
171
|
-
searchurl: "",
|
|
172
|
-
style: { height: "500px" }
|
|
173
|
-
}, null, 8, E)]),
|
|
174
|
-
_: 1
|
|
175
|
-
})) : a("", !0)
|
|
176
|
-
]));
|
|
177
|
-
}
|
|
178
|
-
});
|
|
1
|
+
import e from "./admins-components43.js";
|
|
2
|
+
//#region src/components/custom/InternalArticleOffer.vue
|
|
3
|
+
var t = e;
|
|
179
4
|
//#endregion
|
|
180
|
-
export {
|
|
5
|
+
export { t as default };
|
|
@@ -1,5 +1,20 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
//#region src/components/
|
|
3
|
-
var
|
|
1
|
+
import { createElementBlock as e, defineComponent as t, normalizeStyle as n, openBlock as r } from "vue";
|
|
2
|
+
//#region src/components/Loader.vue?vue&type=script&setup=true&lang.ts
|
|
3
|
+
var i = /*@__PURE__*/ t({
|
|
4
|
+
__name: "Loader",
|
|
5
|
+
props: {
|
|
6
|
+
loading: { type: Boolean },
|
|
7
|
+
size: { default: "2rem" }
|
|
8
|
+
},
|
|
9
|
+
setup(t) {
|
|
10
|
+
return (i, a) => (r(), e("div", {
|
|
11
|
+
class: "loader",
|
|
12
|
+
style: n({
|
|
13
|
+
width: t.size,
|
|
14
|
+
"--loader-thickness": `calc(${t.size} / 5)`
|
|
15
|
+
})
|
|
16
|
+
}, null, 4));
|
|
17
|
+
}
|
|
18
|
+
});
|
|
4
19
|
//#endregion
|
|
5
|
-
export {
|
|
20
|
+
export { i as default };
|
|
@@ -1,7 +1,55 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { ref as e } from "vue";
|
|
2
|
+
//#region src/services/toast.ts
|
|
3
|
+
var t = e(null);
|
|
4
|
+
function n(e) {
|
|
5
|
+
t.value = e;
|
|
6
|
+
}
|
|
7
|
+
function r(e) {
|
|
8
|
+
return t.value ? t.value.addToast(e) : (console.warn("[useToast] No <ToastNotification /> instance is mounted. Mount it once in your app root (e.g. App.vue) before calling toast.*"), null);
|
|
9
|
+
}
|
|
10
|
+
function i(e, t, n = {}) {
|
|
11
|
+
return r({
|
|
12
|
+
title: e,
|
|
13
|
+
message: t,
|
|
14
|
+
type: "success",
|
|
15
|
+
...n
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
function a(e, t, n = {}) {
|
|
19
|
+
return r({
|
|
20
|
+
title: e,
|
|
21
|
+
message: t,
|
|
22
|
+
type: "error",
|
|
23
|
+
displayDuration: n.displayDuration ?? 1e4,
|
|
24
|
+
...n
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
function o(e, t, n = {}) {
|
|
28
|
+
return r({
|
|
29
|
+
title: e,
|
|
30
|
+
message: t,
|
|
31
|
+
type: "warning",
|
|
32
|
+
...n
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
function s(e, t, n = {}) {
|
|
36
|
+
return r({
|
|
37
|
+
title: e,
|
|
38
|
+
message: t,
|
|
39
|
+
type: "info",
|
|
40
|
+
...n
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
function c(e) {
|
|
44
|
+
t.value?.dismiss(e);
|
|
45
|
+
}
|
|
46
|
+
var l = {
|
|
47
|
+
show: r,
|
|
48
|
+
success: i,
|
|
49
|
+
error: a,
|
|
50
|
+
warning: o,
|
|
51
|
+
info: s,
|
|
52
|
+
dismiss: c
|
|
53
|
+
};
|
|
6
54
|
//#endregion
|
|
7
|
-
export {
|
|
55
|
+
export { n as __setToastInstance, l as toast };
|
|
@@ -1,55 +1,94 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
function
|
|
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
|
-
}
|
|
1
|
+
import { __setToastInstance as e } from "./admins-components48.js";
|
|
2
|
+
import { Fragment as t, TransitionGroup as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createVNode as o, defineComponent as s, getCurrentInstance as c, normalizeClass as l, normalizeStyle as u, onBeforeUnmount as d, onMounted as f, openBlock as p, ref as m, renderList as h, toDisplayString as g, withCtx as _ } from "vue";
|
|
3
|
+
//#region src/components/ToastNotification.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var v = { class: "ac-component" }, y = { class: "c-toast__body" }, b = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "c-toast__title"
|
|
7
|
+
}, x = { class: "c-toast__message" }, S = ["onClick"], C = /*@__PURE__*/ s({
|
|
8
|
+
__name: "ToastNotification",
|
|
9
|
+
props: {
|
|
10
|
+
defaultPosition: { default: "bottom-right" },
|
|
11
|
+
defaultDisplayDuration: { default: 5e3 }
|
|
12
|
+
},
|
|
13
|
+
setup(s, { expose: C }) {
|
|
14
|
+
let w = s, T = null, E = 0, D = m([]);
|
|
15
|
+
function O(e) {
|
|
16
|
+
let t = e.id ?? ++E, n = {
|
|
17
|
+
id: t,
|
|
18
|
+
title: e.title,
|
|
19
|
+
message: e.message,
|
|
20
|
+
type: e.type ?? "info",
|
|
21
|
+
displayDuration: e.displayDuration ?? w.defaultDisplayDuration,
|
|
22
|
+
position: e.position ?? w.defaultPosition,
|
|
23
|
+
addedAt: Date.now()
|
|
24
|
+
};
|
|
25
|
+
return D.value.push(n), t;
|
|
26
|
+
}
|
|
27
|
+
function k(e) {
|
|
28
|
+
D.value = D.value.filter((t) => t.id !== e);
|
|
29
|
+
}
|
|
30
|
+
function A() {
|
|
31
|
+
let e = Date.now();
|
|
32
|
+
D.value = D.value.filter((t) => e - t.addedAt < t.displayDuration);
|
|
33
|
+
}
|
|
34
|
+
T ||= setInterval(A, 500), d(() => {
|
|
35
|
+
T &&= (clearInterval(T), null);
|
|
36
|
+
}), C({
|
|
37
|
+
addToast: O,
|
|
38
|
+
dismiss: k
|
|
39
|
+
});
|
|
40
|
+
let j = c();
|
|
41
|
+
f(() => {
|
|
42
|
+
e(j?.exposed ?? null);
|
|
43
|
+
}), d(() => {
|
|
44
|
+
e(null);
|
|
45
|
+
});
|
|
46
|
+
function M(e) {
|
|
47
|
+
switch (e) {
|
|
48
|
+
case "success": return "fa-solid fa-circle-check";
|
|
49
|
+
case "warning": return "fa-solid fa-triangle-exclamation";
|
|
50
|
+
case "error": return "fa-solid fa-circle-xmark";
|
|
51
|
+
default: return "fa-solid fa-circle-info";
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
function N(e) {
|
|
55
|
+
let t = 0;
|
|
56
|
+
for (let n of D.value) {
|
|
57
|
+
if (n.id === e.id) break;
|
|
58
|
+
n.position === e.position && t++;
|
|
59
|
+
}
|
|
60
|
+
return t;
|
|
61
|
+
}
|
|
62
|
+
return (e, s) => (p(), i("div", v, [o(n, {
|
|
63
|
+
tag: "div",
|
|
64
|
+
class: "c-toast-container",
|
|
65
|
+
name: "c-toast"
|
|
66
|
+
}, {
|
|
67
|
+
default: _(() => [(p(!0), i(t, null, h(D.value, (e) => (p(), i("div", {
|
|
68
|
+
key: e.id,
|
|
69
|
+
class: l(["c-toast", [`c-toast--${e.type}`, `c-toast--pos-${e.position}`]]),
|
|
70
|
+
style: u({ "--stack-index": N(e) }),
|
|
71
|
+
role: "status",
|
|
72
|
+
"aria-live": "polite"
|
|
73
|
+
}, [
|
|
74
|
+
a("i", {
|
|
75
|
+
class: l(["c-toast__icon", M(e.type)]),
|
|
76
|
+
"aria-hidden": "true"
|
|
77
|
+
}, null, 2),
|
|
78
|
+
a("div", y, [e.title ? (p(), i("div", b, g(e.title), 1)) : r("", !0), a("div", x, g(e.message), 1)]),
|
|
79
|
+
a("button", {
|
|
80
|
+
type: "button",
|
|
81
|
+
class: "c-toast__close",
|
|
82
|
+
"aria-label": "Bezárás",
|
|
83
|
+
onClick: (t) => k(e.id)
|
|
84
|
+
}, [...s[0] ||= [a("i", {
|
|
85
|
+
class: "fa-solid fa-xmark",
|
|
86
|
+
"aria-hidden": "true"
|
|
87
|
+
}, null, -1)]], 8, S)
|
|
88
|
+
], 6))), 128))]),
|
|
89
|
+
_: 1
|
|
90
|
+
})]));
|
|
91
|
+
}
|
|
92
|
+
});
|
|
54
93
|
//#endregion
|
|
55
|
-
export {
|
|
94
|
+
export { C as default };
|
|
@@ -1,7 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { computed as e, ref as t } from "vue";
|
|
2
|
+
//#region src/composables/useSelection.ts
|
|
3
|
+
function n(n, r, i) {
|
|
4
|
+
let a = t(/* @__PURE__ */ new Set()), o = e(() => {
|
|
5
|
+
let e = r(), t = n();
|
|
6
|
+
return t.length > 0 && e != null && t.every((t) => a.value.has(t[e]));
|
|
7
|
+
});
|
|
8
|
+
function s(e) {
|
|
9
|
+
let t = e[r()];
|
|
10
|
+
a.value.has(t) ? a.value.delete(t) : a.value.add(t), i([...a.value]);
|
|
11
|
+
}
|
|
12
|
+
function c() {
|
|
13
|
+
let e = r();
|
|
14
|
+
if (o.value) a.value.clear();
|
|
15
|
+
else for (let t of n()) a.value.add(t[e]);
|
|
16
|
+
i([...a.value]);
|
|
17
|
+
}
|
|
18
|
+
return {
|
|
19
|
+
selectedKeys: a,
|
|
20
|
+
allSelected: o,
|
|
21
|
+
toggle: s,
|
|
22
|
+
toggleAll: c
|
|
23
|
+
};
|
|
24
|
+
}
|
|
6
25
|
//#endregion
|
|
7
|
-
export {
|
|
26
|
+
export { n as useSelection };
|
|
@@ -1,26 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
let t = e[r()];
|
|
10
|
-
a.value.has(t) ? a.value.delete(t) : a.value.add(t), i([...a.value]);
|
|
11
|
-
}
|
|
12
|
-
function c() {
|
|
13
|
-
let e = r();
|
|
14
|
-
if (o.value) a.value.clear();
|
|
15
|
-
else for (let t of n()) a.value.add(t[e]);
|
|
16
|
-
i([...a.value]);
|
|
17
|
-
}
|
|
18
|
-
return {
|
|
19
|
-
selectedKeys: a,
|
|
20
|
-
allSelected: o,
|
|
21
|
-
toggle: s,
|
|
22
|
-
toggleAll: c
|
|
23
|
-
};
|
|
24
|
-
}
|
|
1
|
+
//#region src/types/data-list.ts
|
|
2
|
+
var e = {
|
|
3
|
+
striped: !0,
|
|
4
|
+
compact: !1
|
|
5
|
+
}, t = { compact: !1 }, n = {
|
|
6
|
+
layout: "screen",
|
|
7
|
+
compact: !1
|
|
8
|
+
};
|
|
25
9
|
//#endregion
|
|
26
|
-
export { n as
|
|
10
|
+
export { t as dataCardsSettingsDefaults, n as dataListSettingsDefaults, e as dataTableSettingsDefaults };
|
|
@@ -1,10 +1,20 @@
|
|
|
1
|
-
//#region src/
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
//#region src/utils/dataList.ts
|
|
2
|
+
function e(e, t) {
|
|
3
|
+
if (!t) return "";
|
|
4
|
+
let n = e[t.property];
|
|
5
|
+
return t.converter ? t.converter(n, e) : n;
|
|
6
|
+
}
|
|
7
|
+
function t(e) {
|
|
8
|
+
return e.isGroup === !0 && Array.isArray(e.items);
|
|
9
|
+
}
|
|
10
|
+
function n(e, t) {
|
|
11
|
+
return e.items.map((e) => ({
|
|
12
|
+
icon: e.icon,
|
|
13
|
+
label: e.label ?? "",
|
|
14
|
+
type: e.type,
|
|
15
|
+
size: e.label ? "small" : "normal",
|
|
16
|
+
callback: () => e.callback(t)
|
|
17
|
+
}));
|
|
18
|
+
}
|
|
9
19
|
//#endregion
|
|
10
|
-
export {
|
|
20
|
+
export { n as buildActionGroupMenuItems, e as getColumnValue, t as isActionGroup };
|
|
@@ -1,20 +1,74 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
return e.isGroup === !0 && Array.isArray(e.items);
|
|
9
|
-
}
|
|
10
|
-
function n(e, t) {
|
|
11
|
-
return e.items.map((e) => ({
|
|
12
|
-
icon: e.icon,
|
|
13
|
-
label: e.label ?? "",
|
|
14
|
-
type: e.type,
|
|
15
|
-
size: e.label ? "small" : "normal",
|
|
16
|
-
callback: () => e.callback(t)
|
|
17
|
-
}));
|
|
1
|
+
import { castToDate as e, formatDate as t } from "./admins-components3.js";
|
|
2
|
+
//#region src/utils/dataListConverters.ts
|
|
3
|
+
function n(n = !1, r) {
|
|
4
|
+
return (i) => {
|
|
5
|
+
let a = e(i);
|
|
6
|
+
return a ? r ? t(a, r) : n ? t(a, "YYYY-MM-DD HH:mm") : t(a, "YYYY-MM-DD") : "";
|
|
7
|
+
};
|
|
18
8
|
}
|
|
9
|
+
function r(e = 4) {
|
|
10
|
+
return (t) => {
|
|
11
|
+
if (!t) return "";
|
|
12
|
+
let n = typeof t == "string" ? t : String(t);
|
|
13
|
+
return `${n.slice(0, e)}...${n.slice(-e)}`;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
function i(n = "YYYY-MM-DD") {
|
|
17
|
+
return (r) => {
|
|
18
|
+
let i = e(r);
|
|
19
|
+
return i ? t(i, n) : "";
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function a(e = 60, t = "…") {
|
|
23
|
+
return (n) => {
|
|
24
|
+
let r = typeof n == "string" ? n : n == null ? "" : String(n);
|
|
25
|
+
return r.length <= e ? r : r.slice(0, e).trimEnd() + t;
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
function o(e = "Igen", t = "Nem", n = "") {
|
|
29
|
+
return (r) => r === !0 ? e : r === !1 ? t : n;
|
|
30
|
+
}
|
|
31
|
+
function s(e, t) {
|
|
32
|
+
return (n) => {
|
|
33
|
+
if (n == null) return t ?? "";
|
|
34
|
+
let r = String(n);
|
|
35
|
+
return r in e ? e[r] : t ?? n;
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function c(e = 0, t = "hu-HU") {
|
|
39
|
+
return (n) => {
|
|
40
|
+
let r = typeof n == "number" ? n : Number(n);
|
|
41
|
+
return Number.isFinite(r) ? r.toLocaleString(t, {
|
|
42
|
+
minimumFractionDigits: e,
|
|
43
|
+
maximumFractionDigits: e
|
|
44
|
+
}) : n;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function l(e = "HUF", t = "hu-HU", n = 0) {
|
|
48
|
+
return (r) => {
|
|
49
|
+
let i = typeof r == "number" ? r : Number(r);
|
|
50
|
+
return Number.isFinite(i) ? i.toLocaleString(t, {
|
|
51
|
+
style: "currency",
|
|
52
|
+
currency: e,
|
|
53
|
+
minimumFractionDigits: n,
|
|
54
|
+
maximumFractionDigits: n
|
|
55
|
+
}) : r;
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
function u(e = ", ") {
|
|
59
|
+
return (t) => Array.isArray(t) ? t.map(String).join(e) : t == null ? "" : String(t);
|
|
60
|
+
}
|
|
61
|
+
var d = (e) => e, f = {
|
|
62
|
+
utcToLocalString: n,
|
|
63
|
+
localToLocalString: i,
|
|
64
|
+
shortUuid: r,
|
|
65
|
+
textEllipse: a,
|
|
66
|
+
booleanToString: o,
|
|
67
|
+
enumMap: s,
|
|
68
|
+
formatNumber: c,
|
|
69
|
+
formatCurrency: l,
|
|
70
|
+
listToString: u,
|
|
71
|
+
identity: d
|
|
72
|
+
};
|
|
19
73
|
//#endregion
|
|
20
|
-
export {
|
|
74
|
+
export { o as booleanToString, f as dataListConverters, s as enumMap, l as formatCurrency, c as formatNumber, d as identity, u as listToString, i as localToLocalString, r as shortUuid, a as textEllipse, n as utcToLocalString };
|