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,264 +1,112 @@
1
- import e from "./admins-components6.js";
2
- import t from "./admins-components27.js";
3
- import { dataCardsSettingsDefaults as n, dataListSettingsDefaults as r, dataTableSettingsDefaults as i } from "./admins-components54.js";
4
- import { deepMerge as ee } from "./admins-components67.js";
5
- import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, normalizeClass as m, onMounted as h, openBlock as g, ref as _, renderList as v, resolveDirective as y, toDisplayString as b, withCtx as x, withDirectives as S, withModifiers as C } from "vue";
6
- //#region src/components/data-table/DataListOptions.vue?vue&type=script&setup=true&lang.ts
7
- var te = { class: "table-options" }, ne = { class: "table-options__col" }, re = { class: "table-options__list" }, ie = { class: "table-options__col" }, ae = { class: "table-options__title" }, oe = { class: "table-options__title-value" }, se = { class: "layout-switch" }, ce = { class: "table-options__col" }, le = { class: "table-options__title flex-center gap-1" }, ue = { class: "table-options__list" }, de = [
8
- "draggable",
9
- "onDragstart",
10
- "onDragover",
11
- "onClick"
12
- ], fe = {
1
+ import e from "./admins-components5.js";
2
+ import { Fragment as t, computed as n, createElementBlock as r, createElementVNode as i, createVNode as a, defineComponent as o, normalizeClass as s, openBlock as c, renderList as l, toDisplayString as u } from "vue";
3
+ //#region src/components/data-table/DataPaginator.vue?vue&type=script&setup=true&lang.ts
4
+ var d = { class: "c-paginator-wrapper ac-component" }, f = { class: "c-paginator" }, p = { class: "c-paginator__info" }, m = { class: "c-paginator__range" }, h = { class: "c-paginator__total" }, g = {
5
+ class: "c-paginator__nav",
6
+ "aria-label": "Pagination"
7
+ }, _ = {
13
8
  key: 0,
14
- class: "fa-solid fa-grip-vertical table-options__drag-handle"
15
- }, pe = ["onClick"], me = {
16
- key: 0,
17
- class: "table-options__move-actions"
18
- }, he = ["disabled"], w = ["disabled"], T = { class: "table-options__col" }, E = { class: "table-options__list" }, D = [
19
- "draggable",
20
- "onDragstart",
21
- "onDragover",
22
- "onClick"
23
- ], O = {
24
- key: 0,
25
- class: "fa-solid fa-grip-vertical table-options__drag-handle"
26
- }, k = ["onClick"], A = {
27
- key: 0,
28
- class: "table-options__move-actions"
29
- }, j = ["disabled"], M = ["disabled"], N = { class: "table-options__footer" }, P = /* @__PURE__ */ p({
30
- __name: "DataListOptions",
9
+ class: "c-paginator__ellipsis"
10
+ }, v = ["onClick"], y = { class: "c-paginator__size" }, b = ["value"], x = ["value"], S = [
11
+ 10,
12
+ 25,
13
+ 50,
14
+ 100
15
+ ], C = "pagesize-";
16
+ function w(e) {
17
+ try {
18
+ let t = localStorage.getItem(C + e);
19
+ if (t) {
20
+ let e = Number(t);
21
+ if (e > 0) return e;
22
+ }
23
+ } catch {}
24
+ return 25;
25
+ }
26
+ function T(e) {
27
+ return {
28
+ total: 0,
29
+ page: 1,
30
+ pageSize: w(e)
31
+ };
32
+ }
33
+ var E = /*@__PURE__*/ o({
34
+ __name: "DataPaginator",
31
35
  props: {
32
- open: { type: Boolean },
33
- columns: {},
34
36
  settings: {},
35
- position: {},
36
- storageKey: {},
37
- orderable: {
38
- type: Boolean,
39
- default: !1
40
- }
37
+ storageKey: {}
41
38
  },
42
- emits: ["close", "change"],
43
- setup(p, { emit: P }) {
44
- let F = p, I = P, L = _(z()), R = o(() => `data-list-${F.storageKey}`), ge = o(() => JSON.stringify(L.value) !== JSON.stringify(z()));
45
- function z() {
46
- return {
47
- ...n,
48
- ...i,
49
- ...r,
50
- ...F.settings,
51
- columns: Object.fromEntries(F.columns.map((e) => [e.property, F.settings.columns?.[e.property] ?? e.visible !== !1])),
52
- cardHeaderColumns: Object.fromEntries(F.columns.map((e) => [e.property, F.settings.cardHeaderColumns?.[e.property] ?? e.primary === !0])),
53
- columnOrder: F.settings.columnOrder ?? F.columns.map((e) => e.property),
54
- cardHeaderOrder: F.settings.cardHeaderOrder ?? F.columns.map((e) => e.property)
55
- };
56
- }
57
- function _e() {
58
- try {
59
- let e = localStorage.getItem(R.value), t = z();
60
- if (e) {
61
- let n = JSON.parse(e);
62
- L.value = n.settings ? ee(t, n.settings) : t;
63
- } else L.value = t;
64
- } catch {
65
- L.value = z();
66
- }
67
- I("change", L.value);
68
- }
69
- function ve() {
39
+ emits: ["update:pagination"],
40
+ setup(o, { emit: w }) {
41
+ let T = o, E = w;
42
+ function D(e) {
70
43
  try {
71
- let e = R.value, t = localStorage.getItem(e), n = t ? JSON.parse(t) : {};
72
- n.settings = L.value, localStorage.setItem(e, JSON.stringify(n));
44
+ localStorage.setItem(C + T.storageKey, String(e));
73
45
  } catch {}
74
- I("change", L.value);
75
- }
76
- function B(e, t) {
77
- L.value = {
78
- ...L.value,
79
- [e]: t
80
- }, ve();
81
46
  }
82
- function V(e) {
83
- B("columns", {
84
- ...L.value.columns,
85
- [e]: !L.value.columns[e]
86
- });
87
- }
88
- function H(e) {
89
- B("cardHeaderColumns", {
90
- ...L.value.cardHeaderColumns,
91
- [e]: !L.value.cardHeaderColumns[e]
47
+ let O = n(() => Math.max(1, Math.ceil(T.settings.total / T.settings.pageSize))), k = n(() => T.settings.total === 0 ? 0 : (T.settings.page - 1) * T.settings.pageSize + 1), A = n(() => Math.min(T.settings.page * T.settings.pageSize, T.settings.total)), j = n(() => {
48
+ let e = O.value, t = T.settings.page, n = [];
49
+ if (e <= 7) {
50
+ for (let t = 1; t <= e; t++) n.push(t);
51
+ return n;
52
+ }
53
+ n.push(1), t > 3 && n.push("...");
54
+ let r = Math.max(2, t - 1), i = Math.min(e - 1, t + 1);
55
+ for (let e = r; e <= i; e++) n.push(e);
56
+ return t < e - 2 && n.push("..."), n.push(e), n;
57
+ });
58
+ function M(e) {
59
+ let t = T.settings.page, n = O.value, r = e === 1 || e === n, i = e === t;
60
+ return t > 3 && t < n - 2 && !r && !i;
61
+ }
62
+ function N(e) {
63
+ e < 1 || e > O.value || e === T.settings.page || E("update:pagination", {
64
+ page: e,
65
+ pageSize: T.settings.pageSize
92
66
  });
93
67
  }
94
- function U(e) {
95
- B(e, !L.value[e]);
96
- }
97
- function W(e, t) {
98
- return [...e].sort((e, n) => {
99
- let r = t.indexOf(e.property), i = t.indexOf(n.property);
100
- return (r === -1 ? 999 : r) - (i === -1 ? 999 : i);
68
+ function P(e) {
69
+ let t = Number(e.target.value);
70
+ D(t), E("update:pagination", {
71
+ page: 1,
72
+ pageSize: t
101
73
  });
102
74
  }
103
- let G = o(() => W(F.columns, L.value.columnOrder)), K = o(() => W(F.columns, L.value.cardHeaderOrder)), q = _(null), J = _(null), Y = _(null), X = _(null);
104
- function ye(e) {
105
- q.value = e;
106
- }
107
- function be(e, t) {
108
- if (e.preventDefault(), q.value === null || q.value === t) return;
109
- let n = [...L.value.columnOrder], r = n.splice(q.value, 1)[0];
110
- r && (n.splice(t, 0, r), q.value = t, B("columnOrder", n));
111
- }
112
- function xe() {
113
- q.value = null;
114
- }
115
- function Se(e) {
116
- J.value = J.value === e ? null : e;
117
- }
118
- function Z(e) {
119
- if (J.value === null) return;
120
- let t = J.value + e;
121
- if (t < 0 || t >= L.value.columnOrder.length) return;
122
- let n = [...L.value.columnOrder], r = n[J.value];
123
- n[J.value] = n[t], n[t] = r, B("columnOrder", n), J.value = t;
124
- }
125
- function Ce(e) {
126
- Y.value = e;
127
- }
128
- function we(e, t) {
129
- if (e.preventDefault(), Y.value === null || Y.value === t) return;
130
- let n = [...L.value.cardHeaderOrder], r = n.splice(Y.value, 1)[0];
131
- r && (n.splice(t, 0, r), Y.value = t, B("cardHeaderOrder", n));
132
- }
133
- function Q() {
134
- Y.value = null;
135
- }
136
- function Te(e) {
137
- X.value = X.value === e ? null : e;
138
- }
139
- function $(e) {
140
- if (X.value === null) return;
141
- let t = X.value + e;
142
- if (t < 0 || t >= L.value.cardHeaderOrder.length) return;
143
- let n = [...L.value.cardHeaderOrder], r = n[X.value];
144
- n[X.value] = n[t], n[t] = r, B("cardHeaderOrder", n), X.value = t;
145
- }
146
- function Ee() {
147
- localStorage.removeItem(R.value), L.value = z(), I("change", L.value);
148
- }
149
- return h(_e), (n, r) => {
150
- let i = y("tooltip");
151
- return g(), s(t, {
152
- open: p.open,
153
- title: "Lista beállítások",
154
- position: F.position,
155
- onClose: r[16] ||= (e) => I("close")
156
- }, {
157
- default: x(() => [u("div", te, [
158
- u("div", ne, [r[19] ||= u("h4", { class: "table-options__title" }, "Megjelenés", -1), u("ul", re, [u("li", {
159
- class: "table-options__item",
160
- onClick: r[1] ||= (e) => U("compact"),
161
- title: "A sorok közötti térköz csökkentése"
162
- }, [u("span", {
163
- class: m(["c-checkbox", { "c-checkbox--checked": L.value.compact }]),
164
- onClick: r[0] ||= C((e) => U("compact"), ["stop"])
165
- }, null, 2), r[17] ||= u("span", null, "Kompakt", -1)]), u("li", {
166
- class: "table-options__item",
167
- onClick: r[3] ||= (e) => U("striped"),
168
- title: "A páros sorok háttere kicsit sötétebb (csak táblázat nézetben)"
169
- }, [u("span", {
170
- class: m(["c-checkbox", { "c-checkbox--checked": L.value.striped }]),
171
- onClick: r[2] ||= C((e) => U("striped"), ["stop"])
172
- }, null, 2), r[18] ||= u("span", null, "Sávos (striped)", -1)])])]),
173
- u("div", ie, [u("h4", ae, [r[20] ||= d(" Elrendezés ", -1), u("span", oe, "— " + b(L.value.layout === "screen" ? "Auto" : L.value.layout === "table" ? "Táblázat" : "Kártyák"), 1)]), u("div", se, [
174
- u("button", {
175
- class: m(["layout-switch__btn", { "layout-switch__btn--active": L.value.layout === "screen" }]),
176
- title: "Kijelző méretéhez igazodó elrendezés",
177
- onClick: r[4] ||= (e) => B("layout", "screen")
178
- }, [...r[21] ||= [u("i", { class: "fa-solid fa-display" }, null, -1)]], 2),
179
- u("button", {
180
- class: m(["layout-switch__btn", { "layout-switch__btn--active": L.value.layout === "table" }]),
181
- title: "Táblázat nézet",
182
- onClick: r[5] ||= (e) => B("layout", "table")
183
- }, [...r[22] ||= [u("i", { class: "fa-solid fa-table-list" }, null, -1)]], 2),
184
- u("button", {
185
- class: m(["layout-switch__btn", { "layout-switch__btn--active": L.value.layout === "cards" }]),
186
- title: "Kártya nézet",
187
- onClick: r[6] ||= (e) => B("layout", "cards")
188
- }, [...r[23] ||= [u("i", { class: "fa-solid fa-list" }, null, -1)]], 2)
189
- ])]),
190
- u("div", ce, [
191
- S((g(), l("h4", le, [...r[24] ||= [d(" Kártya fejléc ", -1), u("i", { class: "fa-regular fa-question-circle" }, null, -1)]])), [[i, "Kártya nézetben, a sorok fejlécén megjelenő oszlopok"]]),
192
- u("ul", ue, [(g(!0), l(a, null, v(K.value, (e, t) => (g(), l("li", {
193
- key: "ch-" + e.property,
194
- class: m(["table-options__item", {
195
- "table-options__item--disabled": e.primary,
196
- "table-options__item--selected": p.orderable && X.value === t,
197
- "table-options__item--dragging": p.orderable && Y.value === t
198
- }]),
199
- draggable: p.orderable,
200
- onDragstart: C((e) => p.orderable && Ce(t), ["stop"]),
201
- onDragover: C((e) => p.orderable && we(e, t), ["prevent"]),
202
- onDrop: r[7] ||= C(() => {}, ["prevent"]),
203
- onDragend: r[8] ||= (e) => p.orderable && Q(),
204
- onClick: C((n) => p.orderable ? Te(t) : !e.primary && H(e.property), ["prevent"])
205
- }, [p.orderable ? (g(), l("i", fe)) : c("", !0), u("span", {
206
- class: "table-options__toggle",
207
- onClick: C((t) => !e.primary && H(e.property), ["stop"])
208
- }, [u("span", { class: m(["c-checkbox", { "c-checkbox--checked": L.value.cardHeaderColumns[e.property] }]) }, null, 2), u("span", null, b(e.label), 1)], 8, pe)], 42, de))), 128))]),
209
- p.orderable && X.value !== null ? (g(), l("div", me, [u("button", {
210
- class: "table-options__move-btn",
211
- disabled: X.value === 0,
212
- onClick: r[9] ||= (e) => $(-1)
213
- }, [...r[25] ||= [u("i", { class: "fa-solid fa-arrow-up" }, null, -1)]], 8, he), u("button", {
214
- class: "table-options__move-btn",
215
- disabled: X.value === K.value.length - 1,
216
- onClick: r[10] ||= (e) => $(1)
217
- }, [...r[26] ||= [u("i", { class: "fa-solid fa-arrow-down" }, null, -1)]], 8, w)])) : c("", !0)
218
- ]),
219
- u("div", T, [
220
- r[29] ||= u("h4", { class: "table-options__title" }, "Oszlopok", -1),
221
- u("ul", E, [(g(!0), l(a, null, v(G.value, (e, t) => (g(), l("li", {
222
- key: e.property,
223
- class: m(["table-options__item", {
224
- "table-options__item--disabled": e.primary,
225
- "table-options__item--selected": p.orderable && J.value === t,
226
- "table-options__item--dragging": p.orderable && q.value === t
227
- }]),
228
- draggable: p.orderable,
229
- onDragstart: C((e) => p.orderable && ye(t), ["stop"]),
230
- onDragover: C((e) => p.orderable && be(e, t), ["prevent"]),
231
- onDrop: r[11] ||= C(() => {}, ["prevent"]),
232
- onDragend: r[12] ||= (e) => p.orderable && xe(),
233
- onClick: C((n) => p.orderable ? Se(t) : !e.primary && V(e.property), ["prevent"])
234
- }, [p.orderable ? (g(), l("i", O)) : c("", !0), u("span", {
235
- class: "table-options__toggle",
236
- onClick: C((t) => !e.primary && V(e.property), ["stop"])
237
- }, [u("span", { class: m(["c-checkbox", { "c-checkbox--checked": L.value.columns[e.property] }]) }, null, 2), u("span", null, b(e.label), 1)], 8, k)], 42, D))), 128))]),
238
- p.orderable && J.value !== null ? (g(), l("div", A, [u("button", {
239
- class: "table-options__move-btn",
240
- disabled: J.value === 0,
241
- onClick: r[13] ||= (e) => Z(-1)
242
- }, [...r[27] ||= [u("i", { class: "fa-solid fa-arrow-up" }, null, -1)]], 8, j), u("button", {
243
- class: "table-options__move-btn",
244
- disabled: J.value === G.value.length - 1,
245
- onClick: r[14] ||= (e) => Z(1)
246
- }, [...r[28] ||= [u("i", { class: "fa-solid fa-arrow-down" }, null, -1)]], 8, M)])) : c("", !0)
247
- ])
248
- ]), u("div", N, [f(e, {
249
- icon: "fa-solid fa-triangle-exclamation",
250
- disabled: !ge.value,
251
- label: "Alapértelmezés visszaállítása",
252
- size: "small",
253
- onClick: Ee
254
- }, null, 8, ["disabled"]), f(e, {
255
- label: "OK",
256
- onClick: r[15] ||= (e) => I("close")
257
- })])]),
258
- _: 1
259
- }, 8, ["open", "position"]);
260
- };
75
+ return (n, C) => (c(), r("div", d, [i("div", f, [
76
+ i("div", p, [i("span", m, u(k.value) + "–" + u(A.value), 1), i("span", h, " / " + u(o.settings.total), 1)]),
77
+ i("nav", g, [
78
+ a(e, {
79
+ icon: "fa-solid fa-chevron-left",
80
+ rel: "prev",
81
+ disabled: o.settings.page <= 1,
82
+ callback: () => N(o.settings.page - 1)
83
+ }, null, 8, ["disabled", "callback"]),
84
+ (c(!0), r(t, null, l(j.value, (e, n) => (c(), r(t, { key: n }, [e === "..." ? (c(), r("span", _, "…")) : (c(), r("button", {
85
+ key: 1,
86
+ type: "button",
87
+ class: s(["c-paginator__page", {
88
+ "is-active": e === o.settings.page,
89
+ "is-hidden-sm": M(e)
90
+ }]),
91
+ onClick: (t) => N(e)
92
+ }, u(e), 11, v))], 64))), 128)),
93
+ a(e, {
94
+ icon: "fa-solid fa-chevron-right",
95
+ rel: "next",
96
+ disabled: o.settings.page >= O.value,
97
+ callback: () => N(o.settings.page + 1)
98
+ }, null, 8, ["disabled", "callback"])
99
+ ]),
100
+ i("div", y, [i("select", {
101
+ class: "c-paginator__select",
102
+ value: o.settings.pageSize,
103
+ onChange: P
104
+ }, [(c(), r(t, null, l(S, (e) => i("option", {
105
+ key: e,
106
+ value: e
107
+ }, u(e) + " elem / oldal", 9, x)), 64))], 40, b)])
108
+ ])]));
261
109
  }
262
110
  });
263
111
  //#endregion
264
- export { P as default };
112
+ export { E as default, T as getDefaultPaginator, w as getPageSize };
@@ -1,30 +1,253 @@
1
- //#region src/types/datepickers.ts
2
- var e = {
3
- showTime: !1,
4
- minDate: /* @__PURE__ */ new Date("1990-01-01"),
5
- maxDate: new Date(Date.now() + 10 * 365 * 24 * 60 * 60 * 1e3),
6
- showWeekNumber: !0,
7
- locale: "hu-HU",
8
- highlightWeekends: !0,
9
- showOkButton: !1,
10
- showClearButton: !1
11
- }, t = {
12
- ...e,
13
- showOkButton: !0,
14
- showClearButton: !0,
15
- placeholder: "YYYY-MM-DD",
16
- size: "normal"
17
- }, n = {
18
- ...e,
19
- placeholderFrom: "Ettől",
20
- placeholderTo: "Eddig",
21
- showOkButton: !0,
22
- showClearButton: !0,
23
- showIcon: !1,
24
- showPresets: !0,
25
- size: "normal",
26
- lazy: !0,
27
- compact: !1
28
- };
1
+ import { formatDate as e, parseDate as t } from "./admins-components3.js";
2
+ import n from "./admins-components5.js";
3
+ import { calendarConfigDefaults as r } from "./admins-components6.js";
4
+ import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as ee, defineComponent as u, nextTick as d, normalizeClass as f, openBlock as p, ref as m, renderList as h, resolveDirective as te, toDisplayString as g, unref as _, useTemplateRef as v, watch as ne, withDirectives as re } from "vue";
5
+ //#region src/components/Calendar.vue?vue&type=script&setup=true&lang.ts
6
+ var ie = { class: "dp-calendar ac-component" }, ae = { class: "dp-header" }, oe = ["aria-label"], se = { class: "dp-header-labels" }, y = ["aria-label", "aria-hidden"], ce = ["onClick"], le = {
7
+ key: 1,
8
+ class: "dp-picker-grid dp-month-picker dp-picker-grid--3col"
9
+ }, ue = ["onClick"], b = {
10
+ key: 0,
11
+ class: "dp-weekday dp-weekday--week"
12
+ }, de = ["disabled", "onClick"], fe = {
13
+ key: 0,
14
+ class: "c-footer"
15
+ }, pe = { class: "dp-time-inputs" }, me = ["value", "disabled"], he = ["value", "disabled"], x = /*@__PURE__*/ u({
16
+ __name: "Calendar",
17
+ props: {
18
+ modelValue: {},
19
+ config: { default: () => ({ ...r }) }
20
+ },
21
+ emits: ["update:modelValue", "confirm"],
22
+ setup(u, { emit: x }) {
23
+ let S = u, C = x, w = a(() => ({
24
+ ...r,
25
+ ...S.config
26
+ })), T = a(() => w.value.format ?? (w.value.showTime ? "YYYY-MM-DD HH:mm" : "YYYY-MM-DD"));
27
+ function E(e) {
28
+ return e ? t(e, T.value) : null;
29
+ }
30
+ let D = E(S.modelValue), O = m(D?.getMonth() ?? (/* @__PURE__ */ new Date()).getMonth()), k = m(D?.getFullYear() ?? (/* @__PURE__ */ new Date()).getFullYear()), A = m(D), j = m(D?.getHours() ?? 0), M = m(D?.getMinutes() ?? 0), N = m(null);
31
+ ne(() => S.modelValue, (e) => {
32
+ let t = E(e ?? null);
33
+ t ? (A.value = t, O.value = t.getMonth(), k.value = t.getFullYear(), j.value = t.getHours(), M.value = t.getMinutes()) : A.value = null;
34
+ });
35
+ let P = a(() => Array.from({ length: 7 }, (e, t) => new Date(2024, 0, t + 1).toLocaleDateString(w.value.locale, { weekday: "narrow" }))), F = a(() => new Date(k.value, O.value).toLocaleDateString(w.value.locale, { month: "long" })), I = a(() => Array.from({ length: 12 }, (e, t) => new Date(2024, t).toLocaleDateString(w.value.locale, { month: "long" }))), L = a(() => {
36
+ let e = new Date(k.value, O.value, 1), t = new Date(k.value, O.value + 1, 0), n = (e.getDay() + 6) % 7, r = [];
37
+ for (let e = n - 1; e >= 0; e--) r.push({
38
+ date: new Date(k.value, O.value, -e),
39
+ currentMonth: !1,
40
+ disabled: V(new Date(k.value, O.value, -e))
41
+ });
42
+ for (let e = 1; e <= t.getDate(); e++) r.push({
43
+ date: new Date(k.value, O.value, e),
44
+ currentMonth: !0,
45
+ disabled: V(new Date(k.value, O.value, e))
46
+ });
47
+ for (let e = 1; r.length < 35; e++) r.push({
48
+ date: new Date(k.value, O.value + 1, e),
49
+ currentMonth: !1,
50
+ disabled: V(new Date(k.value, O.value + 1, e))
51
+ });
52
+ return r;
53
+ });
54
+ function R(e) {
55
+ let t = new Date(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate())), n = (t.getUTCDay() + 6) % 7;
56
+ t.setUTCDate(t.getUTCDate() - n + 3);
57
+ let r = new Date(Date.UTC(t.getUTCFullYear(), 0, 4)), i = (t.getTime() - r.getTime()) / 864e5;
58
+ return 1 + Math.round((i - 3 + (r.getUTCDay() + 6) % 7) / 7);
59
+ }
60
+ let z = a(() => {
61
+ let e = [];
62
+ for (let t = 0; t < 6; t++) {
63
+ let n = L.value[t * 7]?.date;
64
+ e.push(n ? R(n) : 0);
65
+ }
66
+ return e;
67
+ });
68
+ function B(e) {
69
+ return new Date(e.getFullYear(), e.getMonth(), e.getDate());
70
+ }
71
+ function V(e) {
72
+ return w.value.minDate && e < B(w.value.minDate) || w.value.maxDate && e > B(w.value.maxDate) || !1;
73
+ }
74
+ function ge(e) {
75
+ return e.getDay() === 0 || e.getDay() === 6;
76
+ }
77
+ function H(e, t) {
78
+ return !!t && e.getFullYear() === t.getFullYear() && e.getMonth() === t.getMonth() && e.getDate() === t.getDate();
79
+ }
80
+ function _e(e) {
81
+ return H(e, /* @__PURE__ */ new Date());
82
+ }
83
+ function U(e) {
84
+ let t = new Date(k.value, O.value + e, 1);
85
+ k.value = t.getFullYear(), O.value = t.getMonth();
86
+ }
87
+ function W() {
88
+ N.value = null;
89
+ }
90
+ function ve() {
91
+ N.value ? W() : U(-1);
92
+ }
93
+ function ye() {
94
+ N.value ? W() : U(1);
95
+ }
96
+ let be = a(() => Array.from({ length: (/* @__PURE__ */ new Date()).getFullYear() + 3 - 2e3 + 1 }, (e, t) => 2e3 + t)), G = v("yearPickerRef");
97
+ function K(e) {
98
+ N.value = N.value === e ? null : e, N.value === "year" && d(() => {
99
+ let e = G.value, t = e?.querySelector(".dp-picker-item--selected");
100
+ t && e ? e.scrollTop = t.offsetTop - e.offsetHeight / 2 + t.offsetHeight / 2 : e && (e.scrollTop = e.scrollHeight);
101
+ });
102
+ }
103
+ function xe(e) {
104
+ k.value = e, N.value = null;
105
+ }
106
+ function Se(e) {
107
+ O.value = e, N.value = null;
108
+ }
109
+ function Ce(e) {
110
+ e.disabled || (A.value = new Date(e.date), q(), w.value.showTime && d(() => Z.value?.focus()));
111
+ }
112
+ function q() {
113
+ if (!A.value) {
114
+ C("update:modelValue", null);
115
+ return;
116
+ }
117
+ let t = new Date(A.value);
118
+ w.value.showTime ? t.setHours(j.value, M.value, 0, 0) : t.setHours(0, 0, 0, 0), C("update:modelValue", e(t, T.value));
119
+ }
120
+ function we() {
121
+ A.value = null, j.value = 0, M.value = 0, C("update:modelValue", null);
122
+ }
123
+ function J(e, t) {
124
+ return a({
125
+ get: () => String(t.value).padStart(2, "0"),
126
+ set: (n) => {
127
+ t.value = Math.min(e, Math.max(0, parseInt(n) || 0));
128
+ }
129
+ });
130
+ }
131
+ let Y = J(23, j), X = J(59, M), Z = v("hoursInput"), Q = v("minutesInput");
132
+ function $(e, t) {
133
+ let n = t.target;
134
+ e === "hours" ? (Y.value = n.value, n.value.length >= 2 && (Q.value?.focus(), Q.value?.select())) : (X.value = n.value, n.value.length >= 2 && n.blur()), q();
135
+ }
136
+ return (e, t) => {
137
+ let r = te("tooltip");
138
+ return p(), c("div", ie, [l("div", ae, [
139
+ l("button", {
140
+ class: "dp-nav-btn",
141
+ type: "button",
142
+ "aria-label": N.value ? "Back to days" : "Previous",
143
+ onClick: ve
144
+ }, [...t[7] ||= [l("i", { class: "fa-solid fa-chevron-left" }, null, -1)]], 8, oe),
145
+ l("div", se, [l("span", {
146
+ class: "dp-header-labels--item",
147
+ onClick: t[0] ||= (e) => K("year")
148
+ }, g(k.value), 1), l("span", {
149
+ class: "dp-header-labels--item",
150
+ onClick: t[1] ||= (e) => K("month")
151
+ }, g(F.value), 1)]),
152
+ l("button", {
153
+ class: f(["dp-nav-btn", { "dp-nav-btn--spacer": N.value !== null }]),
154
+ type: "button",
155
+ "aria-label": N.value ? "Back to days" : "Next",
156
+ "aria-hidden": N.value ? "true" : "false",
157
+ onClick: ye
158
+ }, [...t[8] ||= [l("i", { class: "fa-solid fa-chevron-right" }, null, -1)]], 10, y)
159
+ ]), l("div", { class: f(["dp-body", { "dp-body--has-footer": w.value.showTime || w.value.showOkButton || w.value.showClearButton }]) }, [N.value === "year" ? (p(), c("div", {
160
+ key: 0,
161
+ ref_key: "yearPickerRef",
162
+ ref: G,
163
+ class: "dp-picker-grid dp-picker-grid--4col dp-picker-grid--scrollable c-scroll"
164
+ }, [(p(!0), c(i, null, h(be.value, (e) => (p(), c("button", {
165
+ key: e,
166
+ type: "button",
167
+ class: f(["dp-picker-item", {
168
+ "dp-picker-item--selected": e === k.value,
169
+ "dp-picker-item--today": e === (/* @__PURE__ */ new Date()).getFullYear()
170
+ }]),
171
+ onClick: (t) => xe(e)
172
+ }, g(e), 11, ce))), 128))], 512)) : N.value === "month" ? (p(), c("div", le, [(p(!0), c(i, null, h(I.value, (e, t) => (p(), c("button", {
173
+ key: t,
174
+ type: "button",
175
+ class: f(["dp-picker-item", {
176
+ "dp-picker-item--selected": t === O.value,
177
+ "dp-picker-item--today": t === (/* @__PURE__ */ new Date()).getMonth() && k.value === (/* @__PURE__ */ new Date()).getFullYear()
178
+ }]),
179
+ onClick: (e) => Se(t)
180
+ }, g(e), 11, ue))), 128))])) : (p(), c(i, { key: 2 }, [
181
+ l("div", { class: f(["dp-weekdays", { "dp-weekdays--has-week": w.value.showWeekNumber }]) }, [w.value.showWeekNumber ? (p(), c("span", b)) : s("", !0), (p(!0), c(i, null, h(P.value, (e) => (p(), c("span", {
182
+ key: e,
183
+ class: "dp-weekday"
184
+ }, g(e), 1))), 128))], 2),
185
+ l("div", { class: f(["dp-picker-grid", w.value.showWeekNumber ? "dp-picker-grid--8col" : "dp-picker-grid--7col"]) }, [(p(!0), c(i, null, h(L.value, (e, t) => (p(), c(i, { key: t }, [w.value.showWeekNumber && Number(t) % 7 == 0 ? re((p(), c("span", {
186
+ key: 0,
187
+ class: f(["dp-week-number", { "dp-week-number--other": !e.currentMonth && !L.value[Number(t) + 7]?.currentMonth }])
188
+ }, [ee(g(z.value[Math.floor(Number(t) / 7)]) + ". ", 1)], 2)), [[r, `${z.value[Math.floor(Number(t) / 7)]}. hét`]]) : s("", !0), l("button", {
189
+ type: "button",
190
+ class: f(["dp-picker-item dp-picker-item--circle", {
191
+ "dp-picker-item--other": !e.currentMonth,
192
+ "dp-picker-item--selected": H(e.date, A.value),
193
+ "dp-picker-item--today": _e(e.date),
194
+ "dp-picker-item--disabled": e.disabled,
195
+ "dp-picker-item--weekend": w.value.highlightWeekends && ge(e.date)
196
+ }]),
197
+ disabled: e.disabled,
198
+ onClick: (t) => Ce(e)
199
+ }, g(e.date.getDate()), 11, de)], 64))), 128))], 2),
200
+ w.value.showTime || w.value.showOkButton || w.value.showClearButton ? (p(), c("div", fe, [
201
+ w.value.showTime ? (p(), c(i, { key: 0 }, [t[10] ||= l("label", {
202
+ class: "dp-time-label",
203
+ for: "dp-hours"
204
+ }, "Time", -1), l("div", pe, [
205
+ l("input", {
206
+ id: "dp-hours",
207
+ ref_key: "hoursInput",
208
+ ref: Z,
209
+ type: "number",
210
+ class: "c-focus dp-time-input",
211
+ value: _(Y),
212
+ disabled: !A.value,
213
+ min: "0",
214
+ max: "23",
215
+ onInput: t[2] ||= (e) => $("hours", e),
216
+ onFocus: t[3] ||= (e) => e.target.select()
217
+ }, null, 40, me),
218
+ t[9] ||= l("span", { class: "dp-time-sep" }, ":", -1),
219
+ l("input", {
220
+ id: "dp-minutes",
221
+ ref_key: "minutesInput",
222
+ ref: Q,
223
+ type: "number",
224
+ class: "c-focus dp-time-input",
225
+ value: _(X),
226
+ disabled: !A.value,
227
+ min: "0",
228
+ max: "59",
229
+ onInput: t[4] ||= (e) => $("minutes", e),
230
+ onFocus: t[5] ||= (e) => e.target.select()
231
+ }, null, 40, he)
232
+ ])], 64)) : s("", !0),
233
+ w.value.showClearButton ? (p(), o(n, {
234
+ key: 1,
235
+ label: "Törlés",
236
+ onClick: we,
237
+ outline: "",
238
+ disabled: !A.value
239
+ }, null, 8, ["disabled"])) : s("", !0),
240
+ w.value.showOkButton ? (p(), o(n, {
241
+ key: 2,
242
+ label: "OK",
243
+ type: "success",
244
+ onClick: t[6] ||= (e) => C("confirm", u.modelValue),
245
+ disabled: !A.value
246
+ }, null, 8, ["disabled"])) : s("", !0)
247
+ ])) : s("", !0)
248
+ ], 64))], 2)]);
249
+ };
250
+ }
251
+ });
29
252
  //#endregion
30
- export { e as calendarConfigDefaults, t as datePickerConfigDefaults, n as dateRangePickerConfigDefaults };
253
+ export { x as default };
@@ -1,7 +1,7 @@
1
- import './src/styles/components/data-table/data-list-options.scss_vue_type_style_index_0_src_true_lang.css';
1
+ import './src/styles/components/data-table/data-paginator.scss_vue_type_style_index_0_src_true_lang.css';
2
2
  import e from "./admins-components68.js";
3
3
  /* empty css */
4
- //#region src/components/data-table/DataListOptions.vue
4
+ //#region src/components/data-table/DataPaginator.vue
5
5
  var t = e;
6
6
  //#endregion
7
7
  export { t as default };