admins-components 9.0.4 → 9.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/admins-components.js +58 -54
- package/dist/admins-components10.js +10 -0
- package/dist/admins-components100.js +23 -247
- package/dist/admins-components101.js +171 -26
- package/dist/admins-components102.js +65 -25
- package/dist/admins-components103.js +67 -162
- package/dist/admins-components104.js +27 -65
- package/dist/admins-components105.js +12 -63
- package/dist/admins-components106.js +26 -29
- package/dist/admins-components107.js +10 -16
- package/dist/admins-components108.js +3 -26
- package/dist/admins-components109.js +2 -8
- package/dist/admins-components11.js +38 -9
- package/dist/admins-components110.js +3 -4
- package/dist/admins-components111.js +21 -3
- package/dist/admins-components112.js +14 -3
- package/dist/admins-components113.js +7 -20
- package/dist/admins-components114.js +13 -14
- package/dist/admins-components115.js +34 -8
- package/dist/admins-components116.js +82 -12
- package/dist/admins-components117.js +9 -24
- package/dist/admins-components118.js +4 -82
- package/dist/admins-components119.js +8 -11
- package/dist/admins-components12.js +141 -37
- package/dist/admins-components120.js +6 -4
- package/dist/admins-components121.js +6 -8
- package/dist/admins-components122.js +14 -6
- package/dist/admins-components123.js +11 -4
- package/dist/admins-components124.js +30 -15
- package/dist/admins-components125.js +4 -13
- package/dist/admins-components126.js +29 -30
- package/dist/admins-components127.js +5 -4
- package/dist/admins-components128.js +5 -29
- package/dist/admins-components129.js +21 -4
- package/dist/admins-components13.js +5 -142
- package/dist/admins-components130.js +81 -4
- package/dist/admins-components131.js +32 -7
- package/dist/admins-components132.js +58 -73
- package/dist/admins-components133.js +24 -29
- package/dist/admins-components134.js +47 -56
- package/dist/admins-components135.js +31 -23
- package/dist/admins-components136.js +3 -50
- package/dist/admins-components137.js +184 -29
- package/dist/admins-components138.js +46 -3
- package/dist/admins-components139.js +35 -177
- package/dist/admins-components14.js +46 -5
- package/dist/admins-components140.js +41 -41
- package/dist/admins-components141.js +137 -32
- package/dist/admins-components142.js +54 -42
- package/dist/admins-components143.js +6 -140
- package/dist/admins-components144.js +5 -57
- package/dist/admins-components145.js +75 -6
- package/dist/admins-components146.js +28 -5
- package/dist/admins-components147.js +1929 -74
- package/dist/admins-components148.js +25068 -29
- package/dist/admins-components149.js +8 -1930
- package/dist/admins-components15.js +4 -46
- package/dist/admins-components150.js +5 -24809
- package/dist/admins-components151.js +141 -8
- package/dist/admins-components152.js +8 -141
- package/dist/admins-components153.js +3 -3
- package/dist/admins-components155.js +169 -0
- package/dist/admins-components156.js +44 -161
- package/dist/admins-components157.js +8 -50
- package/dist/admins-components158.js +49 -8
- package/dist/admins-components159.js +6 -50
- package/dist/admins-components16.js +94 -4
- package/dist/admins-components160.js +80 -6
- package/dist/admins-components161.js +48 -70
- package/dist/admins-components162.js +32 -31
- package/dist/admins-components163.js +8 -58
- package/dist/admins-components164.js +51 -8
- package/dist/admins-components165.js +8 -51
- package/dist/{admins-components168.js → admins-components167.js} +5 -5
- package/dist/admins-components17.js +225 -91
- package/dist/admins-components18.js +5 -228
- package/dist/admins-components19.js +181 -5
- package/dist/admins-components21.js +7 -0
- package/dist/admins-components22.js +72 -6
- package/dist/admins-components23.js +6 -72
- package/dist/admins-components24.js +58 -6
- package/dist/admins-components26.js +7 -0
- package/dist/admins-components27.js +60 -6
- package/dist/admins-components29.js +7 -0
- package/dist/admins-components30.js +36 -6
- package/dist/admins-components32.js +7 -0
- package/dist/admins-components33.js +36 -6
- package/dist/admins-components34.js +4 -36
- package/dist/admins-components35.js +32 -4
- package/dist/admins-components37.js +7 -0
- package/dist/admins-components38.js +147 -6
- package/dist/admins-components4.js +2 -2
- package/dist/admins-components40.js +7 -0
- package/dist/admins-components41.js +124 -6
- package/dist/admins-components42.js +4 -124
- package/dist/admins-components43.js +179 -4
- package/dist/admins-components44.js +4 -179
- package/dist/admins-components45.js +19 -4
- package/dist/admins-components47.js +7 -0
- package/dist/admins-components48.js +54 -6
- package/dist/admins-components49.js +93 -54
- package/dist/admins-components5.js +5 -0
- package/dist/admins-components51.js +7 -0
- package/dist/admins-components52.js +25 -6
- package/dist/admins-components53.js +9 -25
- package/dist/admins-components54.js +19 -9
- package/dist/admins-components55.js +72 -18
- package/dist/admins-components56.js +59 -73
- package/dist/admins-components57.js +4 -59
- package/dist/admins-components58.js +121 -0
- package/dist/admins-components6.js +29 -6
- package/dist/admins-components60.js +6 -6
- package/dist/admins-components61.js +126 -103
- package/dist/admins-components63.js +3 -3
- package/dist/admins-components64.js +7 -143
- package/dist/admins-components65.js +264 -0
- package/dist/admins-components67.js +6 -7
- package/dist/admins-components68.js +98 -250
- package/dist/admins-components7.js +252 -29
- package/dist/admins-components70.js +2 -2
- package/dist/admins-components71.js +54 -106
- package/dist/admins-components72.js +222 -0
- package/dist/admins-components74.js +6 -59
- package/dist/admins-components75.js +8 -221
- package/dist/admins-components76.js +47 -0
- package/dist/admins-components77.js +250 -6
- package/dist/admins-components79.js +7 -46
- package/dist/admins-components80.js +32 -245
- package/dist/admins-components82.js +2 -3
- package/dist/admins-components83.js +192 -31
- package/dist/admins-components85.js +2 -2
- package/dist/admins-components86.js +200 -195
- package/dist/admins-components88.js +3 -2
- package/dist/admins-components89.js +3 -203
- package/dist/admins-components90.js +17 -0
- package/dist/admins-components91.js +3 -7
- package/dist/admins-components92.js +52 -3
- package/dist/admins-components93.js +80 -50
- package/dist/admins-components94.js +109 -77
- package/dist/admins-components95.js +44 -3
- package/dist/admins-components96.js +101 -108
- package/dist/admins-components97.js +6 -23
- package/dist/admins-components98.js +257 -100
- package/dist/admins-components99.js +27 -7
- package/dist/base.css +1 -1
- package/dist/src/components/Button.vue.d.ts +1 -1
- package/dist/src/components/Calendar.vue.d.ts +1 -1
- package/dist/src/components/ConfirmModal.vue.d.ts +1 -1
- package/dist/src/components/DatePicker.vue.d.ts +2 -2
- package/dist/src/components/DateRangePicker.vue.d.ts +2 -2
- package/dist/src/components/DropdownMenu.vue.d.ts +2 -2
- package/dist/src/components/DropdownSelect.vue.d.ts +1 -1
- package/dist/src/components/HeaderComponent.vue.d.ts +2 -2
- package/dist/src/components/custom/ImagePicker.vue.d.ts +1 -1
- package/dist/src/components/data-table/DataCards.vue.d.ts +2 -2
- package/dist/src/components/data-table/DataCell.vue.d.ts +1 -1
- package/dist/src/components/data-table/DataFilters.vue.d.ts +4 -4
- package/dist/src/components/data-table/DataList.vue.d.ts +4 -4
- package/dist/src/components/data-table/DataListGuide.vue.d.ts +1 -1
- package/dist/src/components/data-table/DataListOptions.vue.d.ts +2 -2
- package/dist/src/components/data-table/DataPaginator.vue.d.ts +1 -1
- package/dist/src/components/data-table/DataTable.vue.d.ts +3 -3
- package/dist/src/components/data-table/FilterTags.vue.d.ts +1 -1
- package/dist/src/components/data-table/FiltersHistory.vue.d.ts +1 -1
- package/dist/src/index.d.ts +85 -80
- package/dist/src/styles/components/data-table/data-list.scss_vue_type_style_index_0_src_true_lang.css +1 -1
- package/dist/src/styles/components/data-table/filter-tags.scss_vue_type_style_index_0_src_true_lang.css +1 -1
- package/dist/src/styles/components/loader.scss_vue_type_style_index_0_src_true_lang.css +1 -1
- package/dist/src/vueformelements/config/ExternalArticleOfferElementConfig.d.ts +1 -1
- package/package.json +4 -5
- package/dist/admins-components154.js +0 -10
- package/dist/admins-components166.js +0 -10
- package/dist/admins-components20.js +0 -182
- package/dist/admins-components25.js +0 -59
- package/dist/admins-components28.js +0 -61
- package/dist/admins-components31.js +0 -37
- package/dist/admins-components36.js +0 -33
- package/dist/admins-components39.js +0 -148
- package/dist/admins-components46.js +0 -20
- package/dist/admins-components50.js +0 -94
- package/dist/admins-components59.js +0 -8
- package/dist/admins-components66.js +0 -8
- package/dist/admins-components73.js +0 -7
- package/dist/admins-components78.js +0 -9
- package/dist/admins-components8.js +0 -253
- package/dist/index.d.ts +0 -2
- package/dist/src/components/data-table/DataCell.vue_vue_type_style_index_0_scoped_d46d9895_lang.css +0 -1
- package/dist/src/styles/_buttons.scss_vue_type_style_index_0_src_true_lang.css +0 -1
|
@@ -1,74 +1,60 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
return (t) => Array.isArray(t) ? t.map(String).join(e) : t == null ? "" : String(t);
|
|
60
|
-
}
|
|
61
|
-
var d = (e) => e, f = {
|
|
62
|
-
utcToLocalString: n,
|
|
63
|
-
localToLocalString: i,
|
|
64
|
-
shortUuid: r,
|
|
65
|
-
textEllipse: a,
|
|
66
|
-
booleanToString: o,
|
|
67
|
-
enumMap: s,
|
|
68
|
-
formatNumber: c,
|
|
69
|
-
formatCurrency: l,
|
|
70
|
-
listToString: u,
|
|
71
|
-
identity: d
|
|
72
|
-
};
|
|
1
|
+
import e from "./admins-components37.js";
|
|
2
|
+
import { getColumnValue as t } from "./admins-components54.js";
|
|
3
|
+
import { shortUuid as n } from "./admins-components55.js";
|
|
4
|
+
import { computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, defineComponent as c, openBlock as l, resolveDirective as u, toDisplayString as d, withDirectives as f } from "vue";
|
|
5
|
+
//#region src/components/data-table/DataCell.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var p = { key: 0 }, m = ["innerHTML"], h = {
|
|
7
|
+
key: 1,
|
|
8
|
+
class: "dc-datetime"
|
|
9
|
+
}, g = { class: "dc-datetime__part" }, _ = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "dc-datetime__sep"
|
|
12
|
+
}, v = { class: "dc-datetime__part" }, y = { key: 2 }, b = ["innerHTML"], x = /*@__PURE__*/ c({
|
|
13
|
+
__name: "DataCell",
|
|
14
|
+
props: {
|
|
15
|
+
item: {},
|
|
16
|
+
col: {},
|
|
17
|
+
copy: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: !0
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
setup(c) {
|
|
23
|
+
let x = c, S = r(() => t(x.item, x.col)), C = r(() => n()(S.value)), w = r(() => {
|
|
24
|
+
if (x.col.type !== "datetime") return null;
|
|
25
|
+
let e = S.value;
|
|
26
|
+
if (!e) return {
|
|
27
|
+
date: "",
|
|
28
|
+
time: ""
|
|
29
|
+
};
|
|
30
|
+
let t = e.indexOf(" ");
|
|
31
|
+
return t === -1 ? {
|
|
32
|
+
date: e,
|
|
33
|
+
time: ""
|
|
34
|
+
} : {
|
|
35
|
+
date: e.slice(0, t),
|
|
36
|
+
time: e.slice(t + 1)
|
|
37
|
+
};
|
|
38
|
+
});
|
|
39
|
+
return (t, n) => {
|
|
40
|
+
let r = u("tooltip");
|
|
41
|
+
return c.col.type === "uuid" ? f((l(), o("span", p, [s("span", { innerHTML: C.value }, null, 8, m), c.copy ? (l(), i(e, {
|
|
42
|
+
key: 0,
|
|
43
|
+
value: S.value
|
|
44
|
+
}, null, 8, ["value"])) : a("", !0)])), [[r, S.value]]) : c.col.type === "datetime" ? (l(), o("span", h, [
|
|
45
|
+
s("span", g, d(w.value?.date), 1),
|
|
46
|
+
w.value?.time ? (l(), o("span", _)) : a("", !0),
|
|
47
|
+
s("span", v, d(w.value?.time), 1),
|
|
48
|
+
c.copy ? (l(), i(e, {
|
|
49
|
+
key: 1,
|
|
50
|
+
value: S.value
|
|
51
|
+
}, null, 8, ["value"])) : a("", !0)
|
|
52
|
+
])) : (l(), o("span", y, [s("span", { innerHTML: S.value }, null, 8, b), c.copy ? (l(), i(e, {
|
|
53
|
+
key: 0,
|
|
54
|
+
value: S.value
|
|
55
|
+
}, null, 8, ["value"])) : a("", !0)]));
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
});
|
|
73
59
|
//#endregion
|
|
74
|
-
export {
|
|
60
|
+
export { x as default };
|
|
@@ -1,60 +1,5 @@
|
|
|
1
|
-
import e from "./admins-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createTextVNode as c, defineComponent as l, openBlock as u, resolveDirective as d, toDisplayString as f, withDirectives as p } from "vue";
|
|
5
|
-
//#region src/components/data-table/DataCell.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var m = { key: 0 }, h = {
|
|
7
|
-
key: 1,
|
|
8
|
-
class: "dc-datetime"
|
|
9
|
-
}, g = { class: "dc-datetime__part" }, _ = {
|
|
10
|
-
key: 0,
|
|
11
|
-
class: "dc-datetime__sep"
|
|
12
|
-
}, v = { class: "dc-datetime__part" }, y = { key: 2 }, b = /* @__PURE__ */ l({
|
|
13
|
-
__name: "DataCell",
|
|
14
|
-
props: {
|
|
15
|
-
item: {},
|
|
16
|
-
col: {},
|
|
17
|
-
copy: {
|
|
18
|
-
type: Boolean,
|
|
19
|
-
default: !0
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
setup(l) {
|
|
23
|
-
let b = l, x = r(() => t(b.item, b.col)), S = r(() => n()(x.value)), C = r(() => {
|
|
24
|
-
if (b.col.type !== "datetime") return null;
|
|
25
|
-
let e = x.value;
|
|
26
|
-
if (!e) return {
|
|
27
|
-
date: "",
|
|
28
|
-
time: ""
|
|
29
|
-
};
|
|
30
|
-
let t = e.indexOf(" ");
|
|
31
|
-
return t === -1 ? {
|
|
32
|
-
date: e,
|
|
33
|
-
time: ""
|
|
34
|
-
} : {
|
|
35
|
-
date: e.slice(0, t),
|
|
36
|
-
time: e.slice(t + 1)
|
|
37
|
-
};
|
|
38
|
-
});
|
|
39
|
-
return (t, n) => {
|
|
40
|
-
let r = d("tooltip");
|
|
41
|
-
return l.col.type === "uuid" ? p((u(), o("span", m, [c(f(S.value) + " ", 1), l.copy ? (u(), i(e, {
|
|
42
|
-
key: 0,
|
|
43
|
-
value: x.value
|
|
44
|
-
}, null, 8, ["value"])) : a("", !0)])), [[r, x.value]]) : l.col.type === "datetime" ? (u(), o("span", h, [
|
|
45
|
-
s("span", g, f(C.value?.date), 1),
|
|
46
|
-
C.value?.time ? (u(), o("span", _)) : a("", !0),
|
|
47
|
-
s("span", v, f(C.value?.time), 1),
|
|
48
|
-
l.copy ? (u(), i(e, {
|
|
49
|
-
key: 1,
|
|
50
|
-
value: x.value
|
|
51
|
-
}, null, 8, ["value"])) : a("", !0)
|
|
52
|
-
])) : (u(), o("span", y, [c(f(x.value), 1), l.copy ? (u(), i(e, {
|
|
53
|
-
key: 0,
|
|
54
|
-
value: x.value
|
|
55
|
-
}, null, 8, ["value"])) : a("", !0)]));
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
});
|
|
1
|
+
import e from "./admins-components56.js";
|
|
2
|
+
//#region src/components/data-table/DataCell.vue
|
|
3
|
+
var t = e;
|
|
59
4
|
//#endregion
|
|
60
|
-
export {
|
|
5
|
+
export { t as default };
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import e from "./admins-components5.js";
|
|
2
|
+
import t from "./admins-components23.js";
|
|
3
|
+
import n from "./admins-components47.js";
|
|
4
|
+
import { useSelection as r } from "./admins-components52.js";
|
|
5
|
+
import { dataTableSettingsDefaults as i } from "./admins-components53.js";
|
|
6
|
+
import { buildActionGroupMenuItems as a, isActionGroup as o } from "./admins-components54.js";
|
|
7
|
+
import s from "./admins-components57.js";
|
|
8
|
+
import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createTextVNode as m, createVNode as h, defineComponent as g, mergeProps as _, normalizeClass as v, normalizeStyle as y, openBlock as b, ref as x, renderList as S, toDisplayString as C, unref as w, withModifiers as T } from "vue";
|
|
9
|
+
//#region src/components/data-table/DataTable.vue?vue&type=script&setup=true&lang.ts
|
|
10
|
+
var E = { class: "c-table-wrapper ac-component" }, D = { key: 0 }, O = ["onClick"], k = {
|
|
11
|
+
key: 1,
|
|
12
|
+
class: "c-actions-header"
|
|
13
|
+
}, A = ["onClick"], j = {
|
|
14
|
+
key: 1,
|
|
15
|
+
class: "c-actions-cell"
|
|
16
|
+
}, M = { class: "c-actions-wrap" }, N = /*@__PURE__*/ g({
|
|
17
|
+
__name: "DataTable",
|
|
18
|
+
props: {
|
|
19
|
+
config: {},
|
|
20
|
+
items: {},
|
|
21
|
+
settings: { default: () => ({ ...i }) },
|
|
22
|
+
loading: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: !1
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
emits: ["selection-change", "sort-change"],
|
|
28
|
+
setup(i, { emit: g }) {
|
|
29
|
+
let N = i, P = g, F = x(null), { selectedKeys: I, allSelected: L, toggle: R, toggleAll: z } = r(() => N.items, () => N.config.selectableAttr, (e) => P("selection-change", e)), B = l(() => N.config.columns.filter((e) => e.visible !== !1));
|
|
30
|
+
function V(e) {
|
|
31
|
+
let t = F.value?.key === e && F.value.direction === "asc" ? "desc" : "asc";
|
|
32
|
+
F.value = {
|
|
33
|
+
key: e,
|
|
34
|
+
direction: t
|
|
35
|
+
}, P("sort-change", {
|
|
36
|
+
key: e,
|
|
37
|
+
direction: t
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
return (r, l) => (b(), f("div", E, [i.loading ? (b(), u(n, {
|
|
41
|
+
key: 0,
|
|
42
|
+
loading: !0
|
|
43
|
+
})) : (b(), f("table", {
|
|
44
|
+
key: 1,
|
|
45
|
+
class: v(["c-table", { "is-compact": i.settings.compact }]),
|
|
46
|
+
style: y({ "--action-count": i.config.actions?.length ?? 0 })
|
|
47
|
+
}, [p("thead", null, [p("tr", null, [
|
|
48
|
+
i.config.selectableAttr ? (b(), f("th", D, [p("span", {
|
|
49
|
+
class: v(["c-checkbox", { "c-checkbox--checked": w(L) }]),
|
|
50
|
+
onClick: l[0] ||= (...e) => w(z) && w(z)(...e)
|
|
51
|
+
}, null, 2)])) : d("", !0),
|
|
52
|
+
(b(!0), f(c, null, S(B.value, (e) => (b(), f("th", {
|
|
53
|
+
key: e.property,
|
|
54
|
+
scope: "col",
|
|
55
|
+
class: v({
|
|
56
|
+
"c-sortable": e.sort,
|
|
57
|
+
"c-sortable--sorted": F.value?.key === e.property
|
|
58
|
+
}),
|
|
59
|
+
onClick: (t) => e.sort ? V(e.property) : void 0
|
|
60
|
+
}, [m(C(e.label) + " ", 1), e.sort ? (b(), f("span", {
|
|
61
|
+
key: 0,
|
|
62
|
+
class: v(["c-sort-icon fa-solid", {
|
|
63
|
+
"fa-sort": F.value?.key !== e.property,
|
|
64
|
+
"fa-sort-down": F.value?.key === e.property && F.value.direction === "desc",
|
|
65
|
+
"fa-sort-up": F.value?.key === e.property && F.value.direction === "asc",
|
|
66
|
+
"c-sort-icon--active": F.value?.key === e.property,
|
|
67
|
+
"is-asc": F.value?.key === e.property && F.value.direction === "asc",
|
|
68
|
+
"is-desc": F.value?.key === e.property && F.value.direction === "desc"
|
|
69
|
+
}])
|
|
70
|
+
}, null, 2)) : d("", !0)], 10, O))), 128)),
|
|
71
|
+
i.config.actions ? (b(), f("th", k, C(i.config.actionHeader ?? ""), 1)) : d("", !0)
|
|
72
|
+
])]), p("tbody", null, [(b(!0), f(c, null, S(i.items, (n, r) => (b(), f("tr", {
|
|
73
|
+
key: r,
|
|
74
|
+
class: v({
|
|
75
|
+
"is-selected": i.config.selectableAttr && w(I).has(n[i.config.selectableAttr]),
|
|
76
|
+
"is-striped": i.settings.striped && r % 2 == 1
|
|
77
|
+
})
|
|
78
|
+
}, [
|
|
79
|
+
i.config.selectableAttr ? (b(), f("td", {
|
|
80
|
+
key: 0,
|
|
81
|
+
class: "pointer",
|
|
82
|
+
onClick: T((e) => w(R)(n), ["stop"])
|
|
83
|
+
}, [p("span", { class: v(["c-checkbox", { "c-checkbox--checked": w(I).has(n[i.config.selectableAttr]) }]) }, null, 2)], 8, A)) : d("", !0),
|
|
84
|
+
(b(!0), f(c, null, S(B.value, (e) => (b(), f("td", {
|
|
85
|
+
key: e.property,
|
|
86
|
+
class: v(["c-table__cell", [e.class]])
|
|
87
|
+
}, [h(s, {
|
|
88
|
+
item: n,
|
|
89
|
+
col: e
|
|
90
|
+
}, null, 8, ["item", "col"])], 2))), 128)),
|
|
91
|
+
i.config.actions ? (b(), f("td", j, [p("div", M, [(b(!0), f(c, null, S(i.config.actions, (r, i) => (b(), f(c, { key: i }, [w(o)(r) ? (b(), u(t, _({
|
|
92
|
+
key: 0,
|
|
93
|
+
icon: r.icon,
|
|
94
|
+
label: r.label,
|
|
95
|
+
items: w(a)(r, n)
|
|
96
|
+
}, { ref_for: !0 }, r.config), null, 16, [
|
|
97
|
+
"icon",
|
|
98
|
+
"label",
|
|
99
|
+
"items"
|
|
100
|
+
])) : (b(), u(e, _({
|
|
101
|
+
key: 1,
|
|
102
|
+
icon: r.icon,
|
|
103
|
+
label: r.label,
|
|
104
|
+
type: r.type,
|
|
105
|
+
disabled: r.disabled ? r.disabled(n) : !1,
|
|
106
|
+
size: r.label ? "small" : "normal",
|
|
107
|
+
outline: "",
|
|
108
|
+
callback: () => r.callback(n)
|
|
109
|
+
}, { ref_for: !0 }, r.config), null, 16, [
|
|
110
|
+
"icon",
|
|
111
|
+
"label",
|
|
112
|
+
"type",
|
|
113
|
+
"disabled",
|
|
114
|
+
"size",
|
|
115
|
+
"callback"
|
|
116
|
+
]))], 64))), 128))])])) : d("", !0)
|
|
117
|
+
], 2))), 128))])], 6))]));
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
//#endregion
|
|
121
|
+
export { N as default };
|
|
@@ -1,7 +1,30 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
+
};
|
|
6
29
|
//#endregion
|
|
7
|
-
export { t as
|
|
30
|
+
export { e as calendarConfigDefaults, t as datePickerConfigDefaults, n as dateRangePickerConfigDefaults };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import './src/components/data-table/
|
|
2
|
-
import
|
|
1
|
+
import './src/styles/components/data-table/data-table.scss_vue_type_style_index_0_src_true_lang.css';
|
|
2
|
+
import "./admins-components53.js";
|
|
3
|
+
import e from "./admins-components58.js";
|
|
3
4
|
/* empty css */
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var n = /* @__PURE__ */ t(e, [["__scopeId", "data-v-d46d9895"]]);
|
|
5
|
+
//#region src/components/data-table/DataTable.vue
|
|
6
|
+
var t = e;
|
|
7
7
|
//#endregion
|
|
8
|
-
export {
|
|
8
|
+
export { t as default };
|
|
@@ -1,121 +1,144 @@
|
|
|
1
|
-
import e from "./admins-
|
|
2
|
-
import t from "./admins-
|
|
3
|
-
import n from "./admins-
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import s from "./admins-
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}, A = ["onClick"], j = {
|
|
14
|
-
key: 1,
|
|
15
|
-
class: "c-actions-cell"
|
|
16
|
-
}, M = { class: "c-actions-wrap" }, N = /* @__PURE__ */ g({
|
|
17
|
-
__name: "DataTable",
|
|
1
|
+
import e from "./admins-components5.js";
|
|
2
|
+
import t from "./admins-components23.js";
|
|
3
|
+
import n from "./admins-components37.js";
|
|
4
|
+
import r from "./admins-components47.js";
|
|
5
|
+
import { useSelection as i } from "./admins-components52.js";
|
|
6
|
+
import { dataCardsSettingsDefaults as a } from "./admins-components53.js";
|
|
7
|
+
import { buildActionGroupMenuItems as o, getColumnValue as s, isActionGroup as c } from "./admins-components54.js";
|
|
8
|
+
import l from "./admins-components57.js";
|
|
9
|
+
import { Fragment as u, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createVNode as g, defineComponent as _, mergeProps as v, normalizeClass as y, openBlock as b, ref as x, renderList as S, toDisplayString as C, unref as w, vShow as T, withDirectives as E, withModifiers as D } from "vue";
|
|
10
|
+
//#region src/components/data-table/DataCards.vue?vue&type=script&setup=true&lang.ts
|
|
11
|
+
var O = { class: "ac-component" }, k = ["onClick", "onPointerdown"], A = ["onClick"], j = { class: "c-card__heading" }, M = { class: "c-card__label" }, N = { class: "c-card__body" }, P = { class: "c-card__field-label" }, F = /*@__PURE__*/ _({
|
|
12
|
+
__name: "DataCards",
|
|
18
13
|
props: {
|
|
19
14
|
config: {},
|
|
20
15
|
items: {},
|
|
21
|
-
settings: { default: () => ({ ...
|
|
16
|
+
settings: { default: () => ({ ...a }) },
|
|
22
17
|
loading: {
|
|
23
18
|
type: Boolean,
|
|
24
19
|
default: !1
|
|
25
20
|
}
|
|
26
21
|
},
|
|
27
|
-
emits: ["selection-change"
|
|
28
|
-
setup(
|
|
29
|
-
let
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
22
|
+
emits: ["selection-change"],
|
|
23
|
+
setup(a, { emit: _ }) {
|
|
24
|
+
let F = a, I = _, { selectedKeys: L, toggle: R } = i(() => F.items, () => F.config.selectableAttr, (e) => I("selection-change", e)), z = x(/* @__PURE__ */ new Set()), B = d(() => F.config.columns.filter((e) => e.visible !== !1)), V = d(() => {
|
|
25
|
+
let e = F.settings;
|
|
26
|
+
if (e?.cardHeaderColumns) {
|
|
27
|
+
let t = B.value.filter((t) => e.cardHeaderColumns[t.property]);
|
|
28
|
+
if (t.length > 0) {
|
|
29
|
+
if (e.cardHeaderOrder) {
|
|
30
|
+
let n = e.cardHeaderOrder;
|
|
31
|
+
return [...t].sort((e, t) => {
|
|
32
|
+
let r = n.indexOf(e.property), i = n.indexOf(t.property);
|
|
33
|
+
return (r === -1 ? 999 : r) - (i === -1 ? 999 : i);
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
return t;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
let t = B.value.filter((e) => e.primary);
|
|
40
|
+
return t.length > 0 ? t : B.value.slice(0, 1);
|
|
41
|
+
}), H = null, U = !1;
|
|
42
|
+
function W(e, t) {
|
|
43
|
+
F.config.selectableAttr && e.button === 0 && (U = !1, H = setTimeout(() => {
|
|
44
|
+
U = !0, R(t);
|
|
45
|
+
}, 500));
|
|
39
46
|
}
|
|
40
|
-
|
|
47
|
+
function G() {
|
|
48
|
+
H &&= (clearTimeout(H), null);
|
|
49
|
+
}
|
|
50
|
+
function K(e) {
|
|
51
|
+
U && e.preventDefault();
|
|
52
|
+
}
|
|
53
|
+
function q(e) {
|
|
54
|
+
if (U) {
|
|
55
|
+
U = !1;
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
J(e);
|
|
59
|
+
}
|
|
60
|
+
function J(e) {
|
|
61
|
+
z.value.has(e) ? z.value.delete(e) : z.value.add(e), z.value = new Set(z.value);
|
|
62
|
+
}
|
|
63
|
+
return (i, d) => (b(), m("div", O, [a.loading ? (b(), f(r, {
|
|
41
64
|
key: 0,
|
|
42
65
|
loading: !0
|
|
43
|
-
})) : (b(),
|
|
66
|
+
})) : (b(), m("div", {
|
|
44
67
|
key: 1,
|
|
45
|
-
class:
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}, [m(C(e.label) + " ", 1), e.sort ? (b(), f("span", {
|
|
61
|
-
key: 0,
|
|
62
|
-
class: v(["c-sort-icon fa-solid", {
|
|
63
|
-
"fa-sort": F.value?.key !== e.property,
|
|
64
|
-
"fa-sort-down": F.value?.key === e.property && F.value.direction === "desc",
|
|
65
|
-
"fa-sort-up": F.value?.key === e.property && F.value.direction === "asc",
|
|
66
|
-
"c-sort-icon--active": F.value?.key === e.property,
|
|
67
|
-
"is-asc": F.value?.key === e.property && F.value.direction === "asc",
|
|
68
|
-
"is-desc": F.value?.key === e.property && F.value.direction === "desc"
|
|
69
|
-
}])
|
|
70
|
-
}, null, 2)) : d("", !0)], 10, O))), 128)),
|
|
71
|
-
i.config.actions ? (b(), f("th", k, C(i.config.actionHeader ?? ""), 1)) : d("", !0)
|
|
72
|
-
])]), p("tbody", null, [(b(!0), f(c, null, S(i.items, (n, r) => (b(), f("tr", {
|
|
73
|
-
key: r,
|
|
74
|
-
class: v({
|
|
75
|
-
"is-selected": i.config.selectableAttr && w(I).has(n[i.config.selectableAttr]),
|
|
76
|
-
"is-striped": i.settings.striped && r % 2 == 1
|
|
77
|
-
})
|
|
68
|
+
class: y(["c-cards", { "is-compact": a.settings.compact }])
|
|
69
|
+
}, [(b(!0), m(u, null, S(a.items, (r, i) => (b(), m("div", {
|
|
70
|
+
key: i,
|
|
71
|
+
class: y(["c-card", {
|
|
72
|
+
"is-open": z.value.has(i),
|
|
73
|
+
"is-selected": a.config.selectableAttr && w(L).has(r[a.config.selectableAttr])
|
|
74
|
+
}])
|
|
75
|
+
}, [h("button", {
|
|
76
|
+
type: "button",
|
|
77
|
+
class: "c-card__header",
|
|
78
|
+
onClick: (e) => q(i),
|
|
79
|
+
onPointerdown: (e) => W(e, r),
|
|
80
|
+
onPointerup: d[0] ||= (e) => G(),
|
|
81
|
+
onPointerleave: d[1] ||= (e) => G(),
|
|
82
|
+
onContextmenu: K
|
|
78
83
|
}, [
|
|
79
|
-
|
|
84
|
+
a.config.selectableAttr ? (b(), m("span", {
|
|
80
85
|
key: 0,
|
|
81
|
-
class: "
|
|
82
|
-
onClick:
|
|
83
|
-
}, [
|
|
84
|
-
(b(!0),
|
|
86
|
+
class: "c-card__check-zone",
|
|
87
|
+
onClick: D((e) => w(R)(r), ["stop"])
|
|
88
|
+
}, [h("span", { class: y(["c-card__check", { "is-checked": w(L).has(r[a.config.selectableAttr]) }]) }, [...d[3] ||= [h("i", { class: "fa-solid fa-check" }, null, -1)]], 2)], 8, A)) : p("", !0),
|
|
89
|
+
h("span", j, [(b(!0), m(u, null, S(V.value, (e, t) => (b(), m("span", {
|
|
85
90
|
key: e.property,
|
|
86
|
-
class:
|
|
87
|
-
}, [h(s,
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
91
|
+
class: "c-card__heading-item"
|
|
92
|
+
}, [h("span", M, C(e.label), 1), h("span", { class: y(["c-card__title", { "c-truncate": a.settings.compact && t === 0 }]) }, C(w(s)(r, e)), 3)]))), 128))]),
|
|
93
|
+
d[4] ||= h("span", {
|
|
94
|
+
class: "c-card__icon",
|
|
95
|
+
"aria-hidden": "true"
|
|
96
|
+
}, [h("i", { class: "fa-solid fa-chevron-down" })], -1)
|
|
97
|
+
], 40, k), E(h("div", N, [(b(!0), m(u, null, S(B.value, (e) => (b(), m("div", {
|
|
98
|
+
key: e.property,
|
|
99
|
+
class: "c-card__field",
|
|
100
|
+
tabindex: "0"
|
|
101
|
+
}, [
|
|
102
|
+
h("span", P, C(e.label), 1),
|
|
103
|
+
g(l, {
|
|
104
|
+
item: r,
|
|
105
|
+
col: e,
|
|
106
|
+
class: "c-card__field-value",
|
|
107
|
+
copy: !1
|
|
108
|
+
}, null, 8, ["item", "col"]),
|
|
109
|
+
g(n, {
|
|
110
|
+
class: "c-card__field-copy click-expand",
|
|
111
|
+
value: w(s)(r, e)
|
|
112
|
+
}, null, 8, ["value"])
|
|
113
|
+
]))), 128)), a.config.actions ? (b(), m("div", {
|
|
114
|
+
key: 0,
|
|
115
|
+
class: "c-card__actions",
|
|
116
|
+
onClick: d[2] ||= D(() => {}, ["stop"])
|
|
117
|
+
}, [(b(!0), m(u, null, S(a.config.actions, (n, i) => (b(), m(u, { key: i }, [w(c)(n) ? (b(), f(t, v({
|
|
118
|
+
key: 0,
|
|
119
|
+
icon: n.icon,
|
|
120
|
+
label: n.label,
|
|
121
|
+
items: w(o)(n, r)
|
|
122
|
+
}, { ref_for: !0 }, n.config), null, 16, [
|
|
123
|
+
"icon",
|
|
124
|
+
"label",
|
|
125
|
+
"items"
|
|
126
|
+
])) : (b(), f(e, v({
|
|
127
|
+
key: 1,
|
|
128
|
+
type: n.type,
|
|
129
|
+
icon: n.icon,
|
|
130
|
+
label: n.cardLabel ?? n.label,
|
|
131
|
+
outline: "",
|
|
132
|
+
disabled: n.disabled ? n.disabled(r) : !1,
|
|
133
|
+
callback: () => n.callback(r)
|
|
134
|
+
}, { ref_for: !0 }, n.config), null, 16, [
|
|
135
|
+
"type",
|
|
136
|
+
"icon",
|
|
137
|
+
"label",
|
|
138
|
+
"disabled",
|
|
139
|
+
"callback"
|
|
140
|
+
]))], 64))), 128))])) : p("", !0)], 512), [[T, z.value.has(i)]])], 2))), 128))], 2))]));
|
|
118
141
|
}
|
|
119
142
|
});
|
|
120
143
|
//#endregion
|
|
121
|
-
export {
|
|
144
|
+
export { F as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import './src/styles/components/data-table/data-
|
|
2
|
-
import "./admins-
|
|
1
|
+
import './src/styles/components/data-table/data-cards.scss_vue_type_style_index_0_src_true_lang.css';
|
|
2
|
+
import "./admins-components53.js";
|
|
3
3
|
import e from "./admins-components61.js";
|
|
4
4
|
/* empty css */
|
|
5
|
-
//#region src/components/data-table/
|
|
5
|
+
//#region src/components/data-table/DataCards.vue
|
|
6
6
|
var t = e;
|
|
7
7
|
//#endregion
|
|
8
8
|
export { t as default };
|