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.
Files changed (188) hide show
  1. package/dist/admins-components.js +58 -54
  2. package/dist/admins-components10.js +10 -0
  3. package/dist/admins-components100.js +23 -247
  4. package/dist/admins-components101.js +171 -26
  5. package/dist/admins-components102.js +65 -25
  6. package/dist/admins-components103.js +67 -162
  7. package/dist/admins-components104.js +27 -65
  8. package/dist/admins-components105.js +12 -63
  9. package/dist/admins-components106.js +26 -29
  10. package/dist/admins-components107.js +10 -16
  11. package/dist/admins-components108.js +3 -26
  12. package/dist/admins-components109.js +2 -8
  13. package/dist/admins-components11.js +38 -9
  14. package/dist/admins-components110.js +3 -4
  15. package/dist/admins-components111.js +21 -3
  16. package/dist/admins-components112.js +14 -3
  17. package/dist/admins-components113.js +7 -20
  18. package/dist/admins-components114.js +13 -14
  19. package/dist/admins-components115.js +34 -8
  20. package/dist/admins-components116.js +82 -12
  21. package/dist/admins-components117.js +9 -24
  22. package/dist/admins-components118.js +4 -82
  23. package/dist/admins-components119.js +8 -11
  24. package/dist/admins-components12.js +141 -37
  25. package/dist/admins-components120.js +6 -4
  26. package/dist/admins-components121.js +6 -8
  27. package/dist/admins-components122.js +14 -6
  28. package/dist/admins-components123.js +11 -4
  29. package/dist/admins-components124.js +30 -15
  30. package/dist/admins-components125.js +4 -13
  31. package/dist/admins-components126.js +29 -30
  32. package/dist/admins-components127.js +5 -4
  33. package/dist/admins-components128.js +5 -29
  34. package/dist/admins-components129.js +21 -4
  35. package/dist/admins-components13.js +5 -142
  36. package/dist/admins-components130.js +81 -4
  37. package/dist/admins-components131.js +32 -7
  38. package/dist/admins-components132.js +58 -73
  39. package/dist/admins-components133.js +24 -29
  40. package/dist/admins-components134.js +47 -56
  41. package/dist/admins-components135.js +31 -23
  42. package/dist/admins-components136.js +3 -50
  43. package/dist/admins-components137.js +184 -29
  44. package/dist/admins-components138.js +46 -3
  45. package/dist/admins-components139.js +35 -177
  46. package/dist/admins-components14.js +46 -5
  47. package/dist/admins-components140.js +41 -41
  48. package/dist/admins-components141.js +137 -32
  49. package/dist/admins-components142.js +54 -42
  50. package/dist/admins-components143.js +6 -140
  51. package/dist/admins-components144.js +5 -57
  52. package/dist/admins-components145.js +75 -6
  53. package/dist/admins-components146.js +28 -5
  54. package/dist/admins-components147.js +1929 -74
  55. package/dist/admins-components148.js +25068 -29
  56. package/dist/admins-components149.js +8 -1930
  57. package/dist/admins-components15.js +4 -46
  58. package/dist/admins-components150.js +5 -24809
  59. package/dist/admins-components151.js +141 -8
  60. package/dist/admins-components152.js +8 -141
  61. package/dist/admins-components153.js +3 -3
  62. package/dist/admins-components155.js +169 -0
  63. package/dist/admins-components156.js +44 -161
  64. package/dist/admins-components157.js +8 -50
  65. package/dist/admins-components158.js +49 -8
  66. package/dist/admins-components159.js +6 -50
  67. package/dist/admins-components16.js +94 -4
  68. package/dist/admins-components160.js +80 -6
  69. package/dist/admins-components161.js +48 -70
  70. package/dist/admins-components162.js +32 -31
  71. package/dist/admins-components163.js +8 -58
  72. package/dist/admins-components164.js +51 -8
  73. package/dist/admins-components165.js +8 -51
  74. package/dist/{admins-components168.js → admins-components167.js} +5 -5
  75. package/dist/admins-components17.js +225 -91
  76. package/dist/admins-components18.js +5 -228
  77. package/dist/admins-components19.js +181 -5
  78. package/dist/admins-components21.js +7 -0
  79. package/dist/admins-components22.js +72 -6
  80. package/dist/admins-components23.js +6 -72
  81. package/dist/admins-components24.js +58 -6
  82. package/dist/admins-components26.js +7 -0
  83. package/dist/admins-components27.js +60 -6
  84. package/dist/admins-components29.js +7 -0
  85. package/dist/admins-components30.js +36 -6
  86. package/dist/admins-components32.js +7 -0
  87. package/dist/admins-components33.js +36 -6
  88. package/dist/admins-components34.js +4 -36
  89. package/dist/admins-components35.js +32 -4
  90. package/dist/admins-components37.js +7 -0
  91. package/dist/admins-components38.js +147 -6
  92. package/dist/admins-components4.js +2 -2
  93. package/dist/admins-components40.js +7 -0
  94. package/dist/admins-components41.js +124 -6
  95. package/dist/admins-components42.js +4 -124
  96. package/dist/admins-components43.js +179 -4
  97. package/dist/admins-components44.js +4 -179
  98. package/dist/admins-components45.js +19 -4
  99. package/dist/admins-components47.js +7 -0
  100. package/dist/admins-components48.js +54 -6
  101. package/dist/admins-components49.js +93 -54
  102. package/dist/admins-components5.js +5 -0
  103. package/dist/admins-components51.js +7 -0
  104. package/dist/admins-components52.js +25 -6
  105. package/dist/admins-components53.js +9 -25
  106. package/dist/admins-components54.js +19 -9
  107. package/dist/admins-components55.js +72 -18
  108. package/dist/admins-components56.js +59 -73
  109. package/dist/admins-components57.js +4 -59
  110. package/dist/admins-components58.js +121 -0
  111. package/dist/admins-components6.js +29 -6
  112. package/dist/admins-components60.js +6 -6
  113. package/dist/admins-components61.js +126 -103
  114. package/dist/admins-components63.js +3 -3
  115. package/dist/admins-components64.js +7 -143
  116. package/dist/admins-components65.js +264 -0
  117. package/dist/admins-components67.js +6 -7
  118. package/dist/admins-components68.js +98 -250
  119. package/dist/admins-components7.js +252 -29
  120. package/dist/admins-components70.js +2 -2
  121. package/dist/admins-components71.js +54 -106
  122. package/dist/admins-components72.js +222 -0
  123. package/dist/admins-components74.js +6 -59
  124. package/dist/admins-components75.js +8 -221
  125. package/dist/admins-components76.js +47 -0
  126. package/dist/admins-components77.js +250 -6
  127. package/dist/admins-components79.js +7 -46
  128. package/dist/admins-components80.js +32 -245
  129. package/dist/admins-components82.js +2 -3
  130. package/dist/admins-components83.js +192 -31
  131. package/dist/admins-components85.js +2 -2
  132. package/dist/admins-components86.js +200 -195
  133. package/dist/admins-components88.js +3 -2
  134. package/dist/admins-components89.js +3 -203
  135. package/dist/admins-components90.js +17 -0
  136. package/dist/admins-components91.js +3 -7
  137. package/dist/admins-components92.js +52 -3
  138. package/dist/admins-components93.js +80 -50
  139. package/dist/admins-components94.js +109 -77
  140. package/dist/admins-components95.js +44 -3
  141. package/dist/admins-components96.js +101 -108
  142. package/dist/admins-components97.js +6 -20
  143. package/dist/admins-components98.js +257 -100
  144. package/dist/admins-components99.js +27 -7
  145. package/dist/base.css +1 -1
  146. package/dist/src/components/Button.vue.d.ts +1 -1
  147. package/dist/src/components/Calendar.vue.d.ts +1 -1
  148. package/dist/src/components/ConfirmModal.vue.d.ts +1 -1
  149. package/dist/src/components/DatePicker.vue.d.ts +2 -2
  150. package/dist/src/components/DateRangePicker.vue.d.ts +2 -2
  151. package/dist/src/components/DropdownMenu.vue.d.ts +2 -2
  152. package/dist/src/components/DropdownSelect.vue.d.ts +1 -1
  153. package/dist/src/components/HeaderComponent.vue.d.ts +2 -2
  154. package/dist/src/components/custom/ImagePicker.vue.d.ts +1 -1
  155. package/dist/src/components/data-table/DataCards.vue.d.ts +2 -2
  156. package/dist/src/components/data-table/DataCell.vue.d.ts +1 -1
  157. package/dist/src/components/data-table/DataFilters.vue.d.ts +4 -4
  158. package/dist/src/components/data-table/DataList.vue.d.ts +4 -4
  159. package/dist/src/components/data-table/DataListGuide.vue.d.ts +1 -1
  160. package/dist/src/components/data-table/DataListOptions.vue.d.ts +2 -2
  161. package/dist/src/components/data-table/DataPaginator.vue.d.ts +1 -1
  162. package/dist/src/components/data-table/DataTable.vue.d.ts +3 -3
  163. package/dist/src/components/data-table/FilterTags.vue.d.ts +1 -1
  164. package/dist/src/components/data-table/FiltersHistory.vue.d.ts +1 -1
  165. package/dist/src/index.d.ts +85 -80
  166. package/dist/src/styles/components/data-table/data-list.scss_vue_type_style_index_0_src_true_lang.css +1 -1
  167. package/dist/src/styles/components/data-table/filter-tags.scss_vue_type_style_index_0_src_true_lang.css +1 -1
  168. package/dist/src/styles/components/loader.scss_vue_type_style_index_0_src_true_lang.css +1 -1
  169. package/dist/src/vueformelements/config/ExternalArticleOfferElementConfig.d.ts +1 -1
  170. package/package.json +2 -5
  171. package/dist/admins-components154.js +0 -10
  172. package/dist/admins-components166.js +0 -10
  173. package/dist/admins-components20.js +0 -182
  174. package/dist/admins-components25.js +0 -59
  175. package/dist/admins-components28.js +0 -61
  176. package/dist/admins-components31.js +0 -37
  177. package/dist/admins-components36.js +0 -33
  178. package/dist/admins-components39.js +0 -148
  179. package/dist/admins-components46.js +0 -20
  180. package/dist/admins-components50.js +0 -94
  181. package/dist/admins-components59.js +0 -8
  182. package/dist/admins-components66.js +0 -8
  183. package/dist/admins-components73.js +0 -7
  184. package/dist/admins-components78.js +0 -9
  185. package/dist/admins-components8.js +0 -253
  186. package/dist/index.d.ts +0 -2
  187. package/dist/src/components/data-table/DataCell.vue_vue_type_style_index_0_scoped_d46d9895_lang.css +0 -1
  188. package/dist/src/styles/_buttons.scss_vue_type_style_index_0_src_true_lang.css +0 -1
@@ -1,182 +0,0 @@
1
- import e from "./admins-components6.js";
2
- import { Fragment as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, defineComponent as s, nextTick as c, normalizeClass as l, onBeforeUnmount as u, onMounted as d, openBlock as f, ref as p, renderList as m, toDisplayString as h, vModelText as g, watch as _, withDirectives as v, withModifiers as y } from "vue";
3
- //#region src/components/DropdownSelect.vue?vue&type=script&setup=true&lang.ts
4
- var b = {
5
- key: 0,
6
- class: "c-truncate ds-value"
7
- }, x = {
8
- key: 1,
9
- class: "c-placeholder"
10
- }, S = {
11
- key: 0,
12
- class: "ds-filter"
13
- }, C = ["title"], w = { class: "ds-options c-scroll" }, T = ["onClick", "onKeydown"], E = {
14
- key: 0,
15
- class: "ds-option ds-option--empty"
16
- }, D = {
17
- key: 1,
18
- class: "c-footer"
19
- }, O = {
20
- placeholder: "Select...",
21
- filterable: !0,
22
- clearable: !0,
23
- textEllipsis: !0,
24
- multiple: !1,
25
- lazy: !1,
26
- size: "normal"
27
- }, k = /* @__PURE__ */ s({
28
- __name: "DropdownSelect",
29
- props: {
30
- modelValue: { default: null },
31
- options: {},
32
- config: { default: () => ({ ...O }) }
33
- },
34
- emits: ["update:modelValue"],
35
- setup(s, { expose: k, emit: A }) {
36
- let j = s, M = n(() => ({
37
- ...O,
38
- ...j.config
39
- })), N = A, P = p(!1), F = p(""), I = p(null), L = p(null), R = p([]), z = p(B(j.modelValue));
40
- function B(e) {
41
- return e == null ? [] : Array.isArray(e) ? [...e] : [e];
42
- }
43
- _(() => j.modelValue, (e) => {
44
- z.value = B(e);
45
- }), _(P, (e) => {
46
- e && (F.value = "", M.value.filterable && c(() => L.value?.focus()), M.value.lazy && (R.value = [...z.value]));
47
- });
48
- let V = n(() => z.value.length === 0 ? null : M.value.multiple ? z.value.length > 2 ? `${z.value.length} kiválasztva` : z.value.map((e) => j.options.find((t) => t.value === e)?.label ?? e).join(", ") : j.options.find((e) => e.value === z.value[0])?.label ?? null), H = n(() => {
49
- let e = F.value.toLowerCase();
50
- return e ? j.options.filter((t) => t.label.toLowerCase().includes(e)) : j.options;
51
- }), U = n(() => H.value.filter((e) => e.value)), W = n(() => {
52
- if (U.value.length === 0) return !1;
53
- let e = M.value.lazy && P.value ? R.value : z.value;
54
- return U.value.every((t) => t.value && e.includes(t.value));
55
- });
56
- function G(e) {
57
- return (M.value.lazy && P.value ? R : z).value.includes(e);
58
- }
59
- function K() {
60
- let e = M.value.lazy && P.value ? R : z, t = U.value.map((e) => e.value);
61
- if (W.value) e.value = e.value.filter((e) => !t.includes(e));
62
- else {
63
- let n = t.filter((t) => !e.value.includes(t));
64
- e.value = [...e.value, ...n];
65
- }
66
- M.value.lazy || N("update:modelValue", z.value.length > 0 ? [...z.value] : null);
67
- }
68
- function q(e, t) {
69
- let n = e.indexOf(t);
70
- return n >= 0 ? e.filter((e, t) => t !== n) : [...e, t];
71
- }
72
- function J(e) {
73
- if (e.callback) {
74
- e.callback(), P.value = !1;
75
- return;
76
- }
77
- let t = e.value;
78
- t && (M.value.multiple ? M.value.lazy ? R.value = q(R.value, t) : (z.value = q(z.value, t), N("update:modelValue", z.value.length > 0 ? [...z.value] : null)) : (z.value = [t], N("update:modelValue", t), P.value = !1));
79
- }
80
- function Y() {
81
- M.value.lazy && (z.value = [...R.value], N("update:modelValue", R.value.length > 0 ? [...R.value] : null)), P.value = !1;
82
- }
83
- function X() {
84
- M.value.lazy ? R.value = [] : (z.value = [], N("update:modelValue", null));
85
- }
86
- function Z(e, t) {
87
- e.key === " " ? (e.preventDefault(), J(t)) : e.key === "Enter" && (e.preventDefault(), Y());
88
- }
89
- function Q(e) {
90
- I.value && !I.value.contains(e.target) && (P.value = !1);
91
- }
92
- d(() => document.addEventListener("mousedown", Q)), u(() => document.removeEventListener("mousedown", Q));
93
- function $() {
94
- P.value = !P.value, P.value && (F.value = "");
95
- }
96
- function ee() {
97
- z.value = [], N("update:modelValue", null), P.value = !1;
98
- }
99
- function te() {
100
- P.value = !0, M.value.filterable && c(() => L.value?.focus());
101
- }
102
- return k({ focusAndOpen: te }), (n, s) => (f(), a("div", {
103
- ref_key: "wrapperRef",
104
- ref: I,
105
- class: "c-wrapper ds-wrapper ac-component"
106
- }, [o("div", {
107
- class: l(["c-input-row pointer", {
108
- "c-input-row--sm": M.value.size === "small",
109
- "c-input-row--lg": M.value.size === "large"
110
- }]),
111
- onClick: s[1] ||= (e) => $()
112
- }, [
113
- V.value ? (f(), a("span", b, h(V.value), 1)) : (f(), a("span", x, h(M.value.placeholder), 1)),
114
- M.value.clearable && z.value.length > 0 ? (f(), a("button", {
115
- key: 2,
116
- type: "button",
117
- class: "c-icon-btn c-icon-btn--clear ds-clear-btn",
118
- onClick: s[0] ||= y((e) => ee(), ["stop"]),
119
- "aria-label": "Törlés"
120
- }, [...s[6] ||= [o("i", { class: "fa-solid fa-fw fa-xmark" }, null, -1)]])) : i("", !0),
121
- o("span", { class: l(["c-icon-btn c-icon-btn--chevron mr-2", { "c-icon-btn--chevron-open": P.value }]) }, [...s[7] ||= [o("i", { class: "fa-solid fa-fw fa-chevron-down" }, null, -1)]], 2)
122
- ], 2), P.value ? (f(), a("div", {
123
- key: 0,
124
- class: l(["c-dropdown ds-dropdown ac-component", { "ds-dropdown--multiple": M.value.multiple }])
125
- }, [
126
- M.value.filterable ? (f(), a("div", S, [
127
- M.value.multiple ? (f(), a("span", {
128
- key: 0,
129
- class: l(["c-checkbox ds-select-all-checkbox", { "c-checkbox--checked": W.value }]),
130
- onClick: s[2] ||= y((e) => K(), ["stop"]),
131
- title: W.value ? "Összes kijelölés törlése" : "Összes kijelölése"
132
- }, null, 10, C)) : i("", !0),
133
- v(o("input", {
134
- ref_key: "filterInputRef",
135
- ref: L,
136
- type: "text",
137
- class: "c-focus ds-filter-input",
138
- "onUpdate:modelValue": s[3] ||= (e) => F.value = e,
139
- placeholder: "Filter...",
140
- onClick: s[4] ||= y(() => {}, ["stop"])
141
- }, null, 512), [[g, F.value]]),
142
- F.value ? (f(), a("button", {
143
- key: 1,
144
- type: "button",
145
- class: "c-icon-btn c-icon-btn--clear ds-filter-clear",
146
- onClick: s[5] ||= y((e) => F.value = "", ["stop"]),
147
- "aria-label": "Szűrők törlése"
148
- }, [...s[8] ||= [o("i", { class: "fa-solid fa-xmark" }, null, -1)]])) : i("", !0)
149
- ])) : i("", !0),
150
- o("ul", w, [(f(!0), a(t, null, m(H.value, (e, t) => (f(), a("li", {
151
- key: e.value ?? `cb-${t}`,
152
- class: l(["d-option ds-option", { "ds-option--selected": e.value && G(e.value) }]),
153
- tabindex: "0",
154
- onClick: (t) => J(e),
155
- onKeydown: (t) => Z(t, e)
156
- }, [
157
- M.value.multiple && e.value ? (f(), a("span", {
158
- key: 0,
159
- class: l(["c-checkbox", { "c-checkbox--checked": G(e.value) }])
160
- }, null, 2)) : i("", !0),
161
- e.icon ? (f(), a("i", {
162
- key: 1,
163
- class: l(["fa-fw", e.icon])
164
- }, null, 2)) : i("", !0),
165
- o("span", { class: l(["d-option__label", { "c-truncate": M.value.textEllipsis }]) }, h(e.label), 3)
166
- ], 42, T))), 128)), H.value.length === 0 ? (f(), a("li", E, " Nincs találat ")) : i("", !0)]),
167
- M.value.multiple || M.value.clearable && z.value.length > 0 ? (f(), a("div", D, [M.value.clearable ? (f(), r(e, {
168
- key: 0,
169
- label: "Törlés",
170
- outline: "",
171
- onClick: X
172
- })) : i("", !0), M.value.multiple ? (f(), r(e, {
173
- key: 1,
174
- label: "OK",
175
- type: "success",
176
- onClick: Y
177
- })) : i("", !0)])) : i("", !0)
178
- ], 2)) : i("", !0)], 512));
179
- }
180
- });
181
- //#endregion
182
- export { k as default, O as dropdownSelectConfigDefaults };
@@ -1,59 +0,0 @@
1
- import e from "./admins-components6.js";
2
- import { Teleport as t, Transition as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createVNode as s, defineComponent as c, mergeDefaults as l, normalizeClass as u, onBeforeUnmount as d, onMounted as f, openBlock as p, renderSlot as m, toDisplayString as h, withCtx as g, withModifiers as _ } from "vue";
3
- //#region src/components/Sidebar.vue?vue&type=script&setup=true&lang.ts
4
- var v = { class: "ac-component" }, y = {
5
- key: 0,
6
- class: "sb-header"
7
- }, b = { class: "sb-title" }, x = { class: "sb-content c-scroll" }, S = {
8
- open: !1,
9
- position: "left",
10
- hasHeader: !0,
11
- withBackdrop: !0
12
- }, C = /* @__PURE__ */ c({
13
- __name: "Sidebar",
14
- props: /* @__PURE__ */ l({
15
- open: { type: Boolean },
16
- position: {},
17
- title: {},
18
- hasHeader: { type: Boolean },
19
- withBackdrop: { type: Boolean }
20
- }, { ...S }),
21
- emits: ["close"],
22
- setup(c, { emit: l }) {
23
- let S = l;
24
- function C() {
25
- S("close");
26
- }
27
- function w() {
28
- C();
29
- }
30
- function T(e) {
31
- e.key === "Escape" && C();
32
- }
33
- return f(() => document.addEventListener("keydown", T)), d(() => document.removeEventListener("keydown", T)), (l, d) => (p(), r(t, { to: "body" }, [o("div", v, [s(n, { name: "sb-fade" }, {
34
- default: g(() => [c.open && c.withBackdrop ? (p(), a("div", {
35
- key: 0,
36
- class: "sb-backdrop",
37
- onClick: _(w, ["self"])
38
- })) : i("", !0)]),
39
- _: 1
40
- }), s(n, { name: `sb-slide-${c.position}` }, {
41
- default: g(() => [c.open ? (p(), a("div", {
42
- key: 0,
43
- class: u(["sb-panel", `sb-panel--${c.position}`])
44
- }, [c.hasHeader ? (p(), a("div", y, [o("span", b, h(c.title ?? ""), 1), s(e, {
45
- class: "sb-close",
46
- icon: "fa-solid fa-xmark",
47
- onClick: d[0] ||= (e) => C()
48
- })])) : (p(), r(e, {
49
- key: 1,
50
- class: "sb-close sb-close--absolute",
51
- icon: "fa-solid fa-xmark",
52
- onClick: d[1] ||= (e) => C()
53
- })), o("div", x, [m(l.$slots, "default")])], 2)) : i("", !0)]),
54
- _: 3
55
- }, 8, ["name"])])]));
56
- }
57
- });
58
- //#endregion
59
- export { C as default, S as sidebarDefaults };
@@ -1,61 +0,0 @@
1
- import e from "./admins-components6.js";
2
- import { Fragment as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, defineComponent as s, mergeDefaults as c, normalizeClass as l, openBlock as u, renderList as d, toDisplayString as f } from "vue";
3
- //#region src/components/HeaderComponent.vue?vue&type=script&setup=true&lang.ts
4
- var p = { class: "ac-component" }, m = { class: "hc-header" }, h = { class: "hc-left" }, g = { class: "hc-title-group" }, _ = { class: "hc-title" }, v = {
5
- key: 0,
6
- class: "hc-toolbars"
7
- }, y = {
8
- icon: void 0,
9
- showBackButton: !1,
10
- toolbars: () => []
11
- }, b = /* @__PURE__ */ s({
12
- __name: "HeaderComponent",
13
- props: /* @__PURE__ */ c({
14
- title: {},
15
- icon: {},
16
- showBackButton: { type: Boolean },
17
- toolbars: {}
18
- }, { ...y }),
19
- emits: ["back"],
20
- setup(s, { emit: c }) {
21
- let y = s, b = c, x = n(() => {
22
- let e = {
23
- left: 0,
24
- center: 1,
25
- right: 2
26
- };
27
- return [...y.toolbars].sort((t, n) => e[t.align] - e[n.align]);
28
- });
29
- return (n, c) => (u(), a("div", p, [o("header", m, [o("div", h, [s.showBackButton ? (u(), r(e, {
30
- key: 0,
31
- class: "hc-back-btn",
32
- icon: "fa-solid fa-chevron-left",
33
- onClick: c[0] ||= (e) => b("back")
34
- })) : i("", !0), o("div", g, [s.icon ? (u(), a("i", {
35
- key: 0,
36
- class: l([s.icon, "hc-title-icon"])
37
- }, null, 2)) : i("", !0), o("h1", _, f(s.title), 1)])]), x.value.length ? (u(), a("div", v, [(u(!0), a(t, null, d(x.value, (n, i) => (u(), a("div", {
38
- key: i,
39
- class: l(["hc-buttons", `hc-buttons--${n.align}`])
40
- }, [(u(!0), a(t, null, d(n.buttons, (t, n) => (u(), r(e, {
41
- key: n,
42
- label: t.label,
43
- icon: t.icon,
44
- "icon-position": t.iconPosition,
45
- type: t.type,
46
- size: t.size,
47
- outline: t.outline,
48
- onClick: (e) => t.callback?.()
49
- }, null, 8, [
50
- "label",
51
- "icon",
52
- "icon-position",
53
- "type",
54
- "size",
55
- "outline",
56
- "onClick"
57
- ]))), 128))], 2))), 128))])) : i("", !0)])]));
58
- }
59
- });
60
- //#endregion
61
- export { b as default, y as headerComponentDefaults };
@@ -1,37 +0,0 @@
1
- import { Teleport as e, createBlock as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, defineComponent as a, onMounted as o, onUnmounted as s, openBlock as c, renderSlot as l, toDisplayString as u } from "vue";
2
- //#region src/components/Modal.vue?vue&type=script&setup=true&lang.ts
3
- var d = { class: "c-modal" }, f = { class: "c-modal-header" }, p = { class: "c-modal-title" }, m = { class: "c-modal-body c-scroll" }, h = {
4
- key: 0,
5
- class: "c-modal-footer"
6
- }, g = /* @__PURE__ */ a({
7
- __name: "Modal",
8
- props: { title: {} },
9
- emits: ["close"],
10
- setup(a, { emit: g }) {
11
- let _ = g;
12
- function v(e) {
13
- e.target === e.currentTarget && _("close");
14
- }
15
- function y(e) {
16
- e.key === "Escape" && _("close");
17
- }
18
- return o(() => {
19
- document.addEventListener("keydown", y);
20
- }), s(() => {
21
- document.removeEventListener("keydown", y);
22
- }), (o, s) => (c(), t(e, { to: "body" }, [i("div", {
23
- class: "c-modal-backdrop ac-component",
24
- onMousedown: v
25
- }, [i("div", d, [
26
- i("div", f, [i("h3", p, u(a.title), 1), i("button", {
27
- type: "button",
28
- class: "c-modal-close",
29
- onClick: s[0] ||= (e) => _("close")
30
- }, [...s[1] ||= [i("i", { class: "ri-close-line" }, null, -1)]])]),
31
- i("div", m, [l(o.$slots, "default")]),
32
- o.$slots.footer ? (c(), r("div", h, [l(o.$slots, "footer")])) : n("", !0)
33
- ])], 32)]));
34
- }
35
- });
36
- //#endregion
37
- export { g as default };
@@ -1,33 +0,0 @@
1
- import { createElementBlock as e, defineComponent as t, normalizeClass as n, openBlock as r, ref as i, withModifiers as a } from "vue";
2
- //#region src/components/CopyToClipboard.vue?vue&type=script&setup=true&lang.ts
3
- var o = /* @__PURE__ */ t({
4
- __name: "CopyToClipboard",
5
- props: {
6
- value: {},
7
- target: {},
8
- useParent: { type: Boolean }
9
- },
10
- setup(t) {
11
- let o = t, s = i(!1);
12
- function c(e) {
13
- let t = "";
14
- if (o.target) {
15
- let e = typeof o.target == "string" ? document.querySelector(o.target) : o.target;
16
- e && (t = e.innerText);
17
- } else if (o.useParent && e?.target) {
18
- let n = e.target.parentElement;
19
- n && (t = n.innerText);
20
- } else t = o.value == null ? "" : String(o.value);
21
- t && (navigator.clipboard.writeText(t), s.value = !0, setTimeout(() => {
22
- s.value = !1;
23
- }, 1500));
24
- }
25
- return (t, i) => (r(), e("i", {
26
- class: n([s.value ? "fa-solid fa-check c-copy-btn--copied" : "fa-regular fa-copy", "c-copy-btn"]),
27
- tabindex: "0",
28
- onClick: a(c, ["stop"])
29
- }, null, 2));
30
- }
31
- });
32
- //#endregion
33
- export { o as default };
@@ -1,148 +0,0 @@
1
- import e from "./admins-components6.js";
2
- import t from "./admins-components33.js";
3
- import { computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createVNode as s, defineComponent as c, normalizeClass as l, onMounted as u, onUnmounted as d, openBlock as f, ref as p, vModelCheckbox as m, vModelText as h, watch as g, withCtx as _, withDirectives as v } from "vue";
4
- //#region src/components/custom/ImagePicker.vue?vue&type=script&setup=true&lang.ts
5
- var y = { class: "c-image-picker ac-component" }, b = { class: "c-image-picker__preview" }, x = ["src", "alt"], S = {
6
- key: 1,
7
- class: "c-image-picker__placeholder"
8
- }, C = { class: "c-image-picker__buttons" }, w = {
9
- key: 0,
10
- class: "c-image-picker__details"
11
- }, T = { class: "c-input-row" }, E = ["disabled"], D = { class: "c-input-row" }, O = ["disabled"], k = { class: "flex-center gap-1" }, A = ["checked", "disabled"], j = [
12
- "viewid",
13
- "environment",
14
- "aeurl"
15
- ], M = {
16
- id: "",
17
- url: "",
18
- isAdult: !1,
19
- source: "",
20
- title: ""
21
- }, N = /* @__PURE__ */ c({
22
- __name: "ImagePicker",
23
- props: {
24
- modelValue: { default: void 0 },
25
- details: {
26
- type: Boolean,
27
- default: !1
28
- },
29
- editable: {
30
- type: Boolean,
31
- default: !1
32
- },
33
- direction: { default: "vertical" },
34
- articleEditorUrl: {},
35
- environment: {},
36
- searchImageWidgetUrl: {},
37
- imageBaseUrl: {},
38
- imageViewId: {}
39
- },
40
- emits: ["update:modelValue"],
41
- setup(c, { emit: N }) {
42
- let P = c, F = N, I = p(M), L = p(!1);
43
- g(() => I.value, () => {
44
- F("update:modelValue", I.value);
45
- }, { deep: !0 }), g(() => P.modelValue, (e) => {
46
- e && (I.value = e);
47
- }, {
48
- deep: !0,
49
- immediate: !0
50
- });
51
- let R = `${typeof crypto < "u" && crypto.randomUUID ? crypto.randomUUID() : `ip-${Date.now()}-${Math.random().toString(36).slice(2)}`}-image-picker-causation`;
52
- u(() => {
53
- if (!customElements.get("hvg-search-image") && !document.querySelector(`script[src="${P.searchImageWidgetUrl}"]`)) {
54
- let e = document.createElement("script");
55
- e.type = "text/javascript", e.src = P.searchImageWidgetUrl, e.async = !0, document.head.appendChild(e);
56
- }
57
- });
58
- let z = n(() => I.value && (I.value.url && I.value.url.length > 0 || I.value.id && I.value.id.length > 0)), B = n(() => {
59
- if (z.value) return I.value.url && I.value.url.length > 0 ? I.value.url : `${P.imageBaseUrl}/${P.imageViewId}/${I.value.id}.img`;
60
- }), V = n(() => P.direction === "horizontal"), H = (e) => {
61
- e.preventDefault(), L.value = !0;
62
- }, U = (e) => {
63
- e.preventDefault(), I.value = { ...M };
64
- }, W = (e) => {
65
- e?.detail?.causationid === R && (L.value = !1, e.detail?.image && (I.value = {
66
- id: e.detail.image.id,
67
- url: "",
68
- isAdult: e.detail.image.isAdult,
69
- source: e.detail.image.source,
70
- title: e.detail.image.title
71
- }));
72
- };
73
- return u(() => {
74
- window.addEventListener("image-selected", W);
75
- }), d(() => {
76
- window.removeEventListener("image-selected", W);
77
- }), (n, u) => (f(), a("div", y, [o("div", { class: l(["c-image-picker__container", { "c-image-picker__container--horizontal": V.value }]) }, [
78
- o("div", b, [z.value ? (f(), a("img", {
79
- key: 0,
80
- src: B.value,
81
- alt: I.value.title || "Selected image",
82
- class: "c-image-picker__img"
83
- }, null, 8, x)) : (f(), a("p", S, "Nincs kiválasztott kép"))]),
84
- o("div", C, [s(e, {
85
- type: "success",
86
- label: "Kép kiválasztása",
87
- class: "nowrap",
88
- onClick: H,
89
- icon: "fa-solid fa-image"
90
- }), s(e, {
91
- type: "error",
92
- label: "Eltávolítás",
93
- class: "nowrap",
94
- onClick: U,
95
- icon: "fa-solid fa-trash"
96
- })]),
97
- c.details && I.value.id ? (f(), a("div", w, [
98
- o("div", null, [u[4] ||= o("label", {
99
- for: "image-source",
100
- class: "c-label"
101
- }, "Forrás", -1), o("div", T, [v(o("input", {
102
- "onUpdate:modelValue": u[0] ||= (e) => I.value.source = e,
103
- id: "image-source",
104
- type: "text",
105
- class: "c-input",
106
- placeholder: "Kép forrása",
107
- disabled: !c.editable
108
- }, null, 8, E), [[h, I.value.source]])])]),
109
- o("div", null, [u[5] ||= o("label", {
110
- for: "image-title",
111
- class: "c-label"
112
- }, "Cím / Alt szöveg", -1), o("div", D, [v(o("textarea", {
113
- "onUpdate:modelValue": u[1] ||= (e) => I.value.title = e,
114
- id: "image-title",
115
- class: "c-input c-image-picker__textarea",
116
- placeholder: "Cím vagy alt szöveg",
117
- disabled: !c.editable
118
- }, null, 8, O), [[h, I.value.title]])])]),
119
- o("div", k, [v(o("input", {
120
- id: "image-adult",
121
- "onUpdate:modelValue": u[2] ||= (e) => I.value.isAdult = e,
122
- type: "checkbox",
123
- class: "c-checkbox",
124
- checked: I.value.isAdult,
125
- disabled: !c.editable
126
- }, null, 8, A), [[m, I.value.isAdult]]), u[6] ||= o("label", {
127
- for: "image-adult",
128
- class: "c-label"
129
- }, "Felnőtt tartalom", -1)])
130
- ])) : i("", !0)
131
- ], 2), L.value ? (f(), r(t, {
132
- key: 0,
133
- title: "Kép keresése",
134
- onClose: u[3] ||= (e) => L.value = !1
135
- }, {
136
- default: _(() => [o("hvg-search-image", {
137
- causationid: R,
138
- viewid: c.imageViewId,
139
- environment: c.environment,
140
- aeurl: c.articleEditorUrl,
141
- selectonly: "true"
142
- }, null, 8, j)]),
143
- _: 1
144
- })) : i("", !0)]));
145
- }
146
- });
147
- //#endregion
148
- export { N as default };
@@ -1,20 +0,0 @@
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
- });
19
- //#endregion
20
- export { i as default };
@@ -1,94 +0,0 @@
1
- import { __setToastInstance as e } from "./admins-components49.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
- });
93
- //#endregion
94
- export { C as default };
@@ -1,8 +0,0 @@
1
- //#region \0plugin-vue:export-helper
2
- var e = (e, t) => {
3
- let n = e.__vccOpts || e;
4
- for (let [e, r] of t) n[e] = r;
5
- return n;
6
- };
7
- //#endregion
8
- export { e as default };
@@ -1,8 +0,0 @@
1
- import './src/styles/components/data-table/data-cards.scss_vue_type_style_index_0_src_true_lang.css';
2
- import "./admins-components54.js";
3
- import e from "./admins-components64.js";
4
- /* empty css */
5
- //#region src/components/data-table/DataCards.vue
6
- var t = e;
7
- //#endregion
8
- export { t as default };
@@ -1,7 +0,0 @@
1
- import './src/styles/components/data-table/data-paginator.scss_vue_type_style_index_0_src_true_lang.css';
2
- import e from "./admins-components71.js";
3
- /* empty css */
4
- //#region src/components/data-table/DataPaginator.vue
5
- var t = e;
6
- //#endregion
7
- export { t as default };
@@ -1,9 +0,0 @@
1
- //#region src/utils/debounce.ts
2
- function e(e, t = 300) {
3
- let n = null;
4
- return (...r) => {
5
- n !== null && clearTimeout(n), n = setTimeout(() => e(...r), t);
6
- };
7
- }
8
- //#endregion
9
- export { e as debounce };