admins-components 9.0.7 → 9.0.9

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 (170) hide show
  1. package/dist/admins-components.js +56 -55
  2. package/dist/admins-components100.js +26 -27
  3. package/dist/admins-components101.js +25 -169
  4. package/dist/admins-components102.js +165 -61
  5. package/dist/admins-components103.js +61 -60
  6. package/dist/admins-components104.js +65 -28
  7. package/dist/admins-components105.js +28 -14
  8. package/dist/admins-components106.js +15 -26
  9. package/dist/admins-components107.js +26 -8
  10. package/dist/admins-components108.js +9 -4
  11. package/dist/admins-components109.js +4 -3
  12. package/dist/admins-components11.js +9 -38
  13. package/dist/admins-components110.js +2 -2
  14. package/dist/admins-components111.js +3 -21
  15. package/dist/admins-components112.js +21 -14
  16. package/dist/admins-components113.js +14 -8
  17. package/dist/admins-components114.js +8 -13
  18. package/dist/admins-components115.js +11 -24
  19. package/dist/admins-components116.js +24 -81
  20. package/dist/admins-components117.js +82 -10
  21. package/dist/admins-components118.js +10 -4
  22. package/dist/admins-components119.js +5 -8
  23. package/dist/admins-components12.js +37 -141
  24. package/dist/admins-components120.js +7 -6
  25. package/dist/admins-components121.js +6 -5
  26. package/dist/admins-components122.js +4 -13
  27. package/dist/admins-components123.js +11 -9
  28. package/dist/admins-components124.js +13 -30
  29. package/dist/admins-components125.js +30 -4
  30. package/dist/admins-components126.js +4 -29
  31. package/dist/admins-components127.js +29 -5
  32. package/dist/admins-components128.js +3 -3
  33. package/dist/admins-components129.js +4 -7
  34. package/dist/admins-components13.js +145 -5
  35. package/dist/admins-components130.js +7 -73
  36. package/dist/admins-components131.js +71 -26
  37. package/dist/admins-components132.js +27 -57
  38. package/dist/admins-components133.js +57 -22
  39. package/dist/admins-components134.js +21 -47
  40. package/dist/admins-components135.js +48 -29
  41. package/dist/admins-components136.js +31 -3
  42. package/dist/admins-components137.js +3 -179
  43. package/dist/admins-components138.js +176 -43
  44. package/dist/admins-components139.js +44 -35
  45. package/dist/admins-components14.js +5 -46
  46. package/dist/admins-components140.js +34 -43
  47. package/dist/admins-components141.js +42 -137
  48. package/dist/admins-components142.js +134 -51
  49. package/dist/admins-components143.js +58 -7
  50. package/dist/admins-components144.js +6 -5
  51. package/dist/admins-components145.js +6 -76
  52. package/dist/admins-components146.js +76 -29
  53. package/dist/admins-components147.js +29 -1931
  54. package/dist/admins-components148.js +1748 -24628
  55. package/dist/admins-components149.js +24810 -8
  56. package/dist/admins-components15.js +49 -4
  57. package/dist/admins-components150.js +9 -7
  58. package/dist/admins-components151.js +7 -142
  59. package/dist/admins-components152.js +141 -8
  60. package/dist/admins-components153.js +3 -3
  61. package/dist/admins-components154.js +10 -0
  62. package/dist/admins-components156.js +161 -44
  63. package/dist/admins-components157.js +50 -8
  64. package/dist/admins-components158.js +8 -49
  65. package/dist/admins-components159.js +50 -6
  66. package/dist/admins-components16.js +4 -94
  67. package/dist/admins-components160.js +6 -80
  68. package/dist/admins-components161.js +70 -48
  69. package/dist/admins-components162.js +31 -32
  70. package/dist/admins-components163.js +58 -8
  71. package/dist/admins-components164.js +8 -51
  72. package/dist/admins-components165.js +51 -8
  73. package/dist/admins-components166.js +10 -0
  74. package/dist/{admins-components167.js → admins-components168.js} +3 -3
  75. package/dist/admins-components17.js +91 -225
  76. package/dist/admins-components18.js +245 -5
  77. package/dist/admins-components19.js +5 -181
  78. package/dist/admins-components20.js +183 -0
  79. package/dist/admins-components22.js +6 -72
  80. package/dist/admins-components23.js +78 -6
  81. package/dist/admins-components24.js +6 -58
  82. package/dist/admins-components25.js +59 -0
  83. package/dist/admins-components27.js +6 -60
  84. package/dist/admins-components28.js +61 -0
  85. package/dist/admins-components30.js +6 -36
  86. package/dist/admins-components31.js +37 -0
  87. package/dist/admins-components33.js +6 -36
  88. package/dist/admins-components34.js +36 -4
  89. package/dist/admins-components35.js +4 -32
  90. package/dist/admins-components36.js +33 -0
  91. package/dist/admins-components38.js +6 -147
  92. package/dist/admins-components39.js +148 -0
  93. package/dist/admins-components4.js +9 -56
  94. package/dist/admins-components41.js +6 -124
  95. package/dist/admins-components42.js +124 -4
  96. package/dist/admins-components43.js +4 -179
  97. package/dist/admins-components44.js +179 -4
  98. package/dist/admins-components45.js +4 -19
  99. package/dist/admins-components46.js +20 -0
  100. package/dist/admins-components48.js +6 -54
  101. package/dist/admins-components49.js +54 -93
  102. package/dist/admins-components5.js +57 -4
  103. package/dist/admins-components50.js +94 -0
  104. package/dist/admins-components52.js +6 -25
  105. package/dist/admins-components53.js +25 -9
  106. package/dist/admins-components54.js +9 -19
  107. package/dist/admins-components55.js +18 -72
  108. package/dist/admins-components56.js +73 -59
  109. package/dist/admins-components57.js +59 -4
  110. package/dist/admins-components58.js +4 -120
  111. package/dist/admins-components59.js +122 -0
  112. package/dist/admins-components6.js +4 -29
  113. package/dist/admins-components61.js +7 -143
  114. package/dist/admins-components62.js +148 -0
  115. package/dist/admins-components64.js +7 -7
  116. package/dist/admins-components65.js +7 -263
  117. package/dist/admins-components66.js +264 -0
  118. package/dist/admins-components68.js +6 -111
  119. package/dist/admins-components69.js +112 -0
  120. package/dist/admins-components7.js +29 -252
  121. package/dist/admins-components71.js +6 -59
  122. package/dist/admins-components72.js +55 -217
  123. package/dist/admins-components73.js +222 -0
  124. package/dist/admins-components75.js +6 -8
  125. package/dist/admins-components76.js +7 -45
  126. package/dist/admins-components77.js +45 -249
  127. package/dist/admins-components78.js +264 -0
  128. package/dist/admins-components8.js +253 -0
  129. package/dist/admins-components80.js +7 -37
  130. package/dist/admins-components81.js +38 -0
  131. package/dist/admins-components83.js +6 -198
  132. package/dist/admins-components84.js +199 -0
  133. package/dist/admins-components86.js +6 -203
  134. package/dist/admins-components87.js +204 -0
  135. package/dist/admins-components89.js +7 -3
  136. package/dist/admins-components90.js +3 -16
  137. package/dist/admins-components91.js +16 -3
  138. package/dist/admins-components92.js +3 -52
  139. package/dist/admins-components93.js +50 -80
  140. package/dist/admins-components94.js +78 -109
  141. package/dist/admins-components95.js +110 -41
  142. package/dist/admins-components96.js +39 -101
  143. package/dist/admins-components97.js +105 -6
  144. package/dist/admins-components98.js +5 -250
  145. package/dist/admins-components99.js +250 -25
  146. package/dist/base.css +1 -1
  147. package/dist/src/components/Button.vue.d.ts +1 -2
  148. package/dist/src/components/DatePicker.vue.d.ts +2 -0
  149. package/dist/src/components/DropdownMenu.vue.d.ts +2 -0
  150. package/dist/src/index.d.ts +1 -0
  151. package/package.json +1 -1
  152. package/dist/admins-components10.js +0 -10
  153. package/dist/admins-components155.js +0 -169
  154. package/dist/admins-components21.js +0 -7
  155. package/dist/admins-components26.js +0 -7
  156. package/dist/admins-components29.js +0 -7
  157. package/dist/admins-components32.js +0 -7
  158. package/dist/admins-components37.js +0 -7
  159. package/dist/admins-components40.js +0 -7
  160. package/dist/admins-components47.js +0 -7
  161. package/dist/admins-components51.js +0 -7
  162. package/dist/admins-components60.js +0 -8
  163. package/dist/admins-components63.js +0 -8
  164. package/dist/admins-components67.js +0 -7
  165. package/dist/admins-components70.js +0 -7
  166. package/dist/admins-components74.js +0 -7
  167. package/dist/admins-components79.js +0 -8
  168. package/dist/admins-components82.js +0 -7
  169. package/dist/admins-components85.js +0 -7
  170. package/dist/admins-components88.js +0 -8
@@ -0,0 +1,112 @@
1
+ import e from "./admins-components6.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
+ }, _ = {
8
+ key: 0,
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",
35
+ props: {
36
+ settings: {},
37
+ storageKey: {}
38
+ },
39
+ emits: ["update:pagination"],
40
+ setup(o, { emit: w }) {
41
+ let T = o, E = w;
42
+ function D(e) {
43
+ try {
44
+ localStorage.setItem(C + T.storageKey, String(e));
45
+ } catch {}
46
+ }
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
66
+ });
67
+ }
68
+ function P(e) {
69
+ let t = Number(e.target.value);
70
+ D(t), E("update:pagination", {
71
+ page: 1,
72
+ pageSize: t
73
+ });
74
+ }
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
+ ])]));
109
+ }
110
+ });
111
+ //#endregion
112
+ export { E as default, T as getDefaultPaginator, w as getPageSize };
@@ -1,253 +1,30 @@
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
- });
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
+ };
252
29
  //#endregion
253
- export { x as default };
30
+ export { e as calendarConfigDefaults, t as datePickerConfigDefaults, n as dateRangePickerConfigDefaults };
@@ -1,60 +1,7 @@
1
- import { formatDate as e } from "./admins-components3.js";
2
- //#region src/utils/filterDisplay.ts
3
- function t(t, r, i) {
4
- if (i == null || i === "") return "";
5
- let a = t.find((e) => e.key === r);
6
- if (a?.type === "dropdown" && a.options) {
7
- let e = n(i);
8
- if (Array.isArray(e)) return e.map((e) => {
9
- let t = a.options?.find((t) => t.value === e);
10
- return t ? t.label : String(e);
11
- }).join(", ");
12
- let t = a.options.find((t) => t.value === e);
13
- if (t) return t.label;
14
- }
15
- if (a?.type === "checkbox") return i ? "Bekapcsolva" : "";
16
- if (a?.type === "date" || a?.type === "datetime") {
17
- if (typeof i == "object" && i) {
18
- let t = i.local ?? i.utc ?? null;
19
- if (t == null) return "";
20
- let n = t instanceof Date ? t : new Date(t);
21
- if (!isNaN(n.getTime())) return e(n, a.type === "datetime" ? "YYYY-MM-DD HH:mm" : "YYYY-MM-DD");
22
- }
23
- if (typeof i == "string" && i) {
24
- let t = new Date(i);
25
- if (!isNaN(t.getTime())) return e(t, a.type === "datetime" ? "YYYY-MM-DD HH:mm" : "YYYY-MM-DD");
26
- }
27
- }
28
- if ((a?.type === "daterange" || a?.type === "datetimerange") && typeof i == "object") {
29
- let t = a.type === "datetimerange" ? "YYYY-MM-DD HH:mm" : "YYYY-MM-DD";
30
- return `${i.fromUtc ? e(new Date(i.fromUtc), t) : "…"} - ${i.toUtc ? e(new Date(i.toUtc), t) : "…"}`;
31
- }
32
- return typeof i == "object" ? JSON.stringify(i) : String(i);
33
- }
34
- function n(e) {
35
- if (Array.isArray(e)) return e;
36
- if (typeof e == "string") {
37
- if (e.startsWith("[") && e.endsWith("]")) try {
38
- let t = JSON.parse(e);
39
- if (Array.isArray(t)) return t;
40
- } catch {}
41
- return e;
42
- }
43
- return e;
44
- }
45
- function r(e, n) {
46
- let r = [];
47
- for (let [i, a] of Object.entries(n)) {
48
- let n = t(e, i, a);
49
- if (!n) continue;
50
- let o = e.find((e) => e.key === i), s = o?.label ?? i;
51
- r.push({
52
- key: i,
53
- text: `${s}: ${n}`,
54
- displayClass: o?.displayClass
55
- });
56
- }
57
- return r;
58
- }
1
+ import './src/styles/components/data-table/data-paginator.scss_vue_type_style_index_0_src_true_lang.css';
2
+ import e from "./admins-components69.js";
3
+ /* empty css */
4
+ //#region src/components/data-table/DataPaginator.vue
5
+ var t = e;
59
6
  //#endregion
60
- export { r as buildFilterDisplay, t as displayFilterValue, n as parseDropdownValue };
7
+ export { t as default };