@quoreadmin/ui 1.4.2 → 1.4.4
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/index.js +110 -85433
- package/dist/index10.js +55 -0
- package/dist/index101.js +213 -0
- package/dist/index103.js +78 -0
- package/dist/index105.js +136 -0
- package/dist/index107.js +216 -0
- package/dist/index109.js +134 -0
- package/dist/index11.js +183 -0
- package/dist/index111.js +154 -0
- package/dist/index113.js +44 -0
- package/dist/index115.js +78 -0
- package/dist/index117.js +25 -0
- package/dist/index119.js +84 -0
- package/dist/index12.js +74 -0
- package/dist/index121.js +16 -0
- package/dist/index123.js +82 -0
- package/dist/index125.js +134 -0
- package/dist/index127.js +56 -0
- package/dist/index129.js +37 -0
- package/dist/index13.js +32 -0
- package/dist/index131.js +65 -0
- package/dist/index133.js +815 -0
- package/dist/index135.js +277 -0
- package/dist/index137.js +350 -0
- package/dist/index139.js +31 -0
- package/dist/index14.js +190 -0
- package/dist/index141.js +89 -0
- package/dist/index143.js +93 -0
- package/dist/index145.js +116 -0
- package/dist/index147.js +389 -0
- package/dist/index149.js +44 -0
- package/dist/index15.js +138 -0
- package/dist/index151.js +210 -0
- package/dist/index154.js +116 -0
- package/dist/index155.js +497 -0
- package/dist/index156.js +5524 -0
- package/dist/index157.js +93 -0
- package/dist/index158.js +863 -0
- package/dist/index159.js +40 -0
- package/dist/index16.js +318 -0
- package/dist/index160.js +282 -0
- package/dist/index161.js +152 -0
- package/dist/index162.js +1201 -0
- package/dist/index163.js +774 -0
- package/dist/index164.js +1310 -0
- package/dist/index165.js +278 -0
- package/dist/index166.js +108 -0
- package/dist/index167.js +4 -0
- package/dist/index168.js +1378 -0
- package/dist/index17.js +25 -0
- package/dist/index170.js +20 -0
- package/dist/index171.js +20 -0
- package/dist/index172.js +20 -0
- package/dist/index173.js +20 -0
- package/dist/index174.js +27 -0
- package/dist/index175.js +761 -0
- package/dist/index176.js +831 -0
- package/dist/index177.js +1236 -0
- package/dist/index178.js +11279 -0
- package/dist/index179.js +38 -0
- package/dist/index18.js +48 -0
- package/dist/index180.js +117 -0
- package/dist/index181.js +46 -0
- package/dist/index182.js +1192 -0
- package/dist/index184.js +5940 -0
- package/dist/index185.js +209 -0
- package/dist/index186.js +37 -0
- package/dist/index187.js +20 -0
- package/dist/index188.js +80 -0
- package/dist/index189.js +255 -0
- package/dist/index19.js +53 -0
- package/dist/index190.js +13686 -0
- package/dist/index191.js +29 -0
- package/dist/index192.js +65 -0
- package/dist/index193.js +240 -0
- package/dist/index194.js +310 -0
- package/dist/index195.js +290 -0
- package/dist/index196.js +35 -0
- package/dist/index197.js +118 -0
- package/dist/index198.js +38 -0
- package/dist/index199.js +28 -0
- package/dist/index2.js +86 -0
- package/dist/index20.js +35 -0
- package/dist/index200.js +38 -0
- package/dist/index201.js +11 -0
- package/dist/index202.js +21 -0
- package/dist/index203.js +12 -0
- package/dist/index204.js +12 -0
- package/dist/index205.js +53 -0
- package/dist/index206.js +45 -0
- package/dist/index207.js +6 -0
- package/dist/index208.js +41 -0
- package/dist/index209.js +23 -0
- package/dist/index21.js +68 -0
- package/dist/index210.js +163 -0
- package/dist/index211.js +22 -0
- package/dist/index212.js +22 -0
- package/dist/index213.js +24 -0
- package/dist/index214.js +201 -0
- package/dist/index215.js +72 -0
- package/dist/index216.js +90 -0
- package/dist/index217.js +409 -0
- package/dist/index218.js +36 -0
- package/dist/index219.js +42 -0
- package/dist/index22.js +176 -0
- package/dist/index220.js +163 -0
- package/dist/index221.js +230 -0
- package/dist/index222.js +39 -0
- package/dist/index223.js +12 -0
- package/dist/index224.js +24 -0
- package/dist/index225.js +129 -0
- package/dist/index226.js +40 -0
- package/dist/index227.js +82 -0
- package/dist/index228.js +22 -0
- package/dist/index229.js +22 -0
- package/dist/index23.js +14 -0
- package/dist/index230.js +22 -0
- package/dist/index231.js +22 -0
- package/dist/index232.js +24 -0
- package/dist/index233.js +24 -0
- package/dist/index234.js +22 -0
- package/dist/index235.js +838 -0
- package/dist/index236.js +704 -0
- package/dist/index237.js +178 -0
- package/dist/index238.js +24 -0
- package/dist/index239.js +22 -0
- package/dist/index24.js +43 -0
- package/dist/index240.js +22 -0
- package/dist/index241.js +5 -0
- package/dist/index242.js +189 -0
- package/dist/index243.js +135 -0
- package/dist/index244.js +1225 -0
- package/dist/index245.js +22 -0
- package/dist/index246.js +24 -0
- package/dist/index247.js +24 -0
- package/dist/index248.js +31 -0
- package/dist/index249.js +22 -0
- package/dist/index25.js +123 -0
- package/dist/index250.js +22 -0
- package/dist/index251.js +4 -0
- package/dist/index252.js +4 -0
- package/dist/index253.js +3634 -0
- package/dist/index254.js +57 -0
- package/dist/index255.js +79 -0
- package/dist/index256.js +54 -0
- package/dist/index257.js +217 -0
- package/dist/index258.js +12 -0
- package/dist/index259.js +59 -0
- package/dist/index26.js +29 -0
- package/dist/index260.js +63 -0
- package/dist/index261.js +56 -0
- package/dist/index262.js +77 -0
- package/dist/index263.js +725 -0
- package/dist/index264.js +41 -0
- package/dist/index265.js +66 -0
- package/dist/index266.js +13 -0
- package/dist/index267.js +707 -0
- package/dist/index268.js +822 -0
- package/dist/index269.js +56 -0
- package/dist/index27.js +163 -0
- package/dist/index270.js +81 -0
- package/dist/index271.js +28 -0
- package/dist/index272.js +24 -0
- package/dist/index273.js +24 -0
- package/dist/index274.js +18 -0
- package/dist/index275.js +19 -0
- package/dist/index276.js +255 -0
- package/dist/index277.js +10 -0
- package/dist/index278.js +140 -0
- package/dist/index279.js +85 -0
- package/dist/index28.js +286 -0
- package/dist/index280.js +25 -0
- package/dist/index281.js +4 -0
- package/dist/index282.js +5 -0
- package/dist/index283.js +29 -0
- package/dist/index284.js +237 -0
- package/dist/index285.js +8 -0
- package/dist/index286.js +136 -0
- package/dist/index287.js +70 -0
- package/dist/index288.js +89 -0
- package/dist/index289.js +31 -0
- package/dist/index29.js +69 -0
- package/dist/index290.js +11 -0
- package/dist/index291.js +77 -0
- package/dist/index292.js +6 -0
- package/dist/index293.js +4 -0
- package/dist/index294.js +85 -0
- package/dist/index295.js +56 -0
- package/dist/index296.js +8 -0
- package/dist/index297.js +7 -0
- package/dist/index298.js +181 -0
- package/dist/index299.js +65 -0
- package/dist/index3.js +69 -0
- package/dist/index30.js +183 -0
- package/dist/index300.js +77 -0
- package/dist/index301.js +81 -0
- package/dist/index302.js +24 -0
- package/dist/index303.js +937 -0
- package/dist/index304.js +24 -0
- package/dist/index305.js +22 -0
- package/dist/index306.js +22 -0
- package/dist/index307.js +71 -0
- package/dist/index308.js +21 -0
- package/dist/index309.js +21 -0
- package/dist/index31.js +44 -0
- package/dist/index310.js +24 -0
- package/dist/index311.js +24 -0
- package/dist/index312.js +65 -0
- package/dist/index313.js +1520 -0
- package/dist/index314.js +388 -0
- package/dist/index315.js +2733 -0
- package/dist/index316.js +88 -0
- package/dist/index317.js +3772 -0
- package/dist/index318.js +62 -0
- package/dist/index319.js +17 -0
- package/dist/index32.js +55 -0
- package/dist/index320.js +86 -0
- package/dist/index321.js +204 -0
- package/dist/index322.js +248 -0
- package/dist/index323.js +39 -0
- package/dist/index324.js +11 -0
- package/dist/index325.js +15 -0
- package/dist/index326.js +57 -0
- package/dist/index327.js +14 -0
- package/dist/index328.js +16 -0
- package/dist/index329.js +60 -0
- package/dist/index33.js +38 -0
- package/dist/index330.js +54 -0
- package/dist/index331.js +33 -0
- package/dist/index332.js +4 -0
- package/dist/index333.js +7 -0
- package/dist/index334.js +4 -0
- package/dist/index335.js +25 -0
- package/dist/index336.js +43 -0
- package/dist/index337.js +4 -0
- package/dist/index338.js +13 -0
- package/dist/index339.js +22 -0
- package/dist/index34.js +35 -0
- package/dist/index340.js +19 -0
- package/dist/index341.js +12 -0
- package/dist/index342.js +12 -0
- package/dist/index343.js +4 -0
- package/dist/index344.js +11 -0
- package/dist/index345.js +12 -0
- package/dist/index346.js +16 -0
- package/dist/index347.js +23 -0
- package/dist/index348.js +58 -0
- package/dist/index349.js +31 -0
- package/dist/index35.js +19 -0
- package/dist/index350.js +9 -0
- package/dist/index351.js +54 -0
- package/dist/index352.js +8 -0
- package/dist/index353.js +14 -0
- package/dist/index354.js +9 -0
- package/dist/index355.js +30 -0
- package/dist/index356.js +4 -0
- package/dist/index357.js +72 -0
- package/dist/index358.js +169 -0
- package/dist/index359.js +22 -0
- package/dist/index36.js +47 -0
- package/dist/index360.js +22 -0
- package/dist/index361.js +66 -0
- package/dist/index362.js +39 -0
- package/dist/index363.js +33 -0
- package/dist/index364.js +13 -0
- package/dist/index365.js +6 -0
- package/dist/index366.js +6 -0
- package/dist/index367.js +15 -0
- package/dist/index368.js +9 -0
- package/dist/index369.js +14 -0
- package/dist/index37.js +42 -0
- package/dist/index370.js +7 -0
- package/dist/index371.js +35 -0
- package/dist/index372.js +33 -0
- package/dist/index373.js +30 -0
- package/dist/index374.js +63 -0
- package/dist/index375.js +19 -0
- package/dist/index376.js +103 -0
- package/dist/index377.js +93 -0
- package/dist/index378.js +100 -0
- package/dist/index379.js +5 -0
- package/dist/index38.js +32 -0
- package/dist/index380.js +4 -0
- package/dist/index381.js +4 -0
- package/dist/index382.js +19 -0
- package/dist/index383.js +15 -0
- package/dist/index384.js +8 -0
- package/dist/index385.js +34 -0
- package/dist/index39.js +39 -0
- package/dist/index4.js +23 -0
- package/dist/index40.js +44 -0
- package/dist/index41.js +1075 -0
- package/dist/index42.js +339 -0
- package/dist/index43.js +159 -0
- package/dist/index44.js +22 -0
- package/dist/index45.js +42 -0
- package/dist/index46.js +72 -0
- package/dist/index47.js +65 -0
- package/dist/index48.js +184 -0
- package/dist/index49.js +88 -0
- package/dist/index5.js +19 -0
- package/dist/index50.js +209 -0
- package/dist/index51.js +71 -0
- package/dist/index52.js +22 -0
- package/dist/index53.js +13 -0
- package/dist/index54.js +9 -0
- package/dist/index55.js +213 -0
- package/dist/index56.js +15 -0
- package/dist/index57.js +187 -0
- package/dist/index58.js +79 -0
- package/dist/index6.js +21 -0
- package/dist/index60.js +9 -0
- package/dist/index61.js +65 -0
- package/dist/index63.js +44 -0
- package/dist/index65.js +16 -0
- package/dist/index67.js +30 -0
- package/dist/index69.js +141 -0
- package/dist/index7.js +76 -0
- package/dist/index71.js +78 -0
- package/dist/index73.js +62 -0
- package/dist/index74.js +105 -0
- package/dist/index76.js +217 -0
- package/dist/index78.js +108 -0
- package/dist/index8.js +31 -0
- package/dist/index80.js +36 -0
- package/dist/index81.js +140 -0
- package/dist/index83.js +141 -0
- package/dist/index85.js +292 -0
- package/dist/index87.js +29 -0
- package/dist/index89.js +45 -0
- package/dist/index9.js +36 -0
- package/dist/index91.js +117 -0
- package/dist/index93.js +29 -0
- package/dist/index94.js +34 -0
- package/dist/index96.js +138 -0
- package/dist/index97.js +10 -0
- package/dist/index99.js +39 -0
- package/dist/src/composables/filtering.d.ts +5 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/views/lists.vue.d.ts +52 -12
- package/dist/src/views/showcase.vue.d.ts +130 -30
- package/dist/src/views/tables.vue.d.ts +52 -12
- package/package.json +3 -4
- package/tailwind.preset.ts +1 -0
- package/dist/index.umd.cjs +0 -1322
package/dist/index159.js
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
const t = {
|
|
2
|
+
root: ({ props: e }) => ({
|
|
3
|
+
class: [
|
|
4
|
+
{
|
|
5
|
+
"opacity-60 select-none pointer-events-none cursor-default": e.disabled
|
|
6
|
+
}
|
|
7
|
+
]
|
|
8
|
+
}),
|
|
9
|
+
button: ({ context: e }) => ({
|
|
10
|
+
class: [
|
|
11
|
+
"relative",
|
|
12
|
+
// Font
|
|
13
|
+
"leading-normal text-base",
|
|
14
|
+
// Flex Alignment
|
|
15
|
+
"inline-flex items-center align-bottom text-center",
|
|
16
|
+
// Spacing
|
|
17
|
+
"px-4 py-2",
|
|
18
|
+
// Shape
|
|
19
|
+
"rounded-lg",
|
|
20
|
+
// Color
|
|
21
|
+
{
|
|
22
|
+
"bg-gray-0 text-gray-40": !e.active,
|
|
23
|
+
"button-active bg-white text-inkwell-30": e.active
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"opacity-60 select-none pointer-events-none cursor-default": e.disabled
|
|
27
|
+
},
|
|
28
|
+
// Transition
|
|
29
|
+
"transition duration-200",
|
|
30
|
+
// Misc
|
|
31
|
+
"cursor-pointer select-none overflow-hidden"
|
|
32
|
+
]
|
|
33
|
+
}),
|
|
34
|
+
label: {
|
|
35
|
+
class: "font-bold"
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
export {
|
|
39
|
+
t as default
|
|
40
|
+
};
|
package/dist/index16.js
ADDED
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
import N from "./index85.js";
|
|
2
|
+
import { resolveComponent as m, createElementBlock as r, openBlock as o, mergeProps as v, toHandlerKey as F, createCommentVNode as d, createElementVNode as n, normalizeStyle as p, normalizeClass as t, renderSlot as b, createVNode as u, createSlots as H, renderList as y, withCtx as w, withModifiers as S, normalizeProps as V, guardReactiveProps as B, createTextVNode as $, toDisplayString as g, Fragment as k, createBlock as R } from "vue";
|
|
3
|
+
/* empty css */
|
|
4
|
+
import T from "./index60.js";
|
|
5
|
+
const M = ["id"], q = ["id"], D = {
|
|
6
|
+
class: /* @__PURE__ */ t([
|
|
7
|
+
"fixed-scrollable overflow-x-auto overflow-y-hidden z-20"
|
|
8
|
+
]),
|
|
9
|
+
ref: "fixedScrollableContainer"
|
|
10
|
+
}, X = { class: "min-w-full" }, L = { class: "flex items-center" }, O = { key: 0 }, j = ["id"], E = { class: "min-w-full" }, W = { class: "flex items-center" }, A = { key: 0 }, I = ["id"], K = ["id", "onClick"], Q = {
|
|
11
|
+
key: 1,
|
|
12
|
+
id: "no-results",
|
|
13
|
+
class: /* @__PURE__ */ t([
|
|
14
|
+
"flex flex-col items-center justify-center",
|
|
15
|
+
"bg-white rounded-b-lg p-12"
|
|
16
|
+
])
|
|
17
|
+
}, G = ["src"], J = { class: "font-bold text-inkwell-0 text-base" };
|
|
18
|
+
function Y(e, i, Z, x, _, ee) {
|
|
19
|
+
const C = m("q-checkbox"), c = m("q-data-table-head"), P = m("q-data-table-cell"), z = m("q-icon");
|
|
20
|
+
return o(), r("div", v({
|
|
21
|
+
id: e.id,
|
|
22
|
+
class: [
|
|
23
|
+
"table-container relative border border-gray-20 rounded-lg",
|
|
24
|
+
{
|
|
25
|
+
"has-data-filter": !!e.$slots.dataFilter,
|
|
26
|
+
"has-no-results": !e.modelValue.length,
|
|
27
|
+
"has-pinned-headers": e.pinHeaders,
|
|
28
|
+
"is-device": !e.isDesktop,
|
|
29
|
+
"is-fixed": e.isFixed,
|
|
30
|
+
"is-loading": e.loading,
|
|
31
|
+
scrollable: e.scrollable
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
style: `
|
|
35
|
+
padding-top: ${e.isFixed && e.pinHeaders && e.dataFilterContainer?.clientHeight || 0}px;
|
|
36
|
+
`,
|
|
37
|
+
ref: "tableContainer"
|
|
38
|
+
}, {
|
|
39
|
+
[F(e.isDesktop && "mouseenter")]: i[7] || (i[7] = (l) => {
|
|
40
|
+
e.hovered = !0, e.getScrollButtonTop();
|
|
41
|
+
})
|
|
42
|
+
}, {
|
|
43
|
+
[F(e.isDesktop && "mouseleave")]: i[8] || (i[8] = (l) => e.hovered = !1)
|
|
44
|
+
}), [
|
|
45
|
+
e.$slots.dataFilter ? (o(), r("div", {
|
|
46
|
+
key: 0,
|
|
47
|
+
class: t([
|
|
48
|
+
"data-filter-container rounded-t-lg z-30",
|
|
49
|
+
{ "fixed z-20 border border-b-0 border-gray-20 -ml-px -mt-px": e.isFixed && e.pinHeaders }
|
|
50
|
+
]),
|
|
51
|
+
style: p(`
|
|
52
|
+
top: ${e.isFixed && e.pinHeaders ? e.fixedTopOffset : 0}px;
|
|
53
|
+
width: ${e.isFixed && e.pinHeaders ? e.scrollableContainerWidth + 2 + "px" : "auto"};
|
|
54
|
+
`),
|
|
55
|
+
ref: "dataFilterContainer"
|
|
56
|
+
}, [
|
|
57
|
+
b(e.$slots, "dataFilter", {}, void 0, !0)
|
|
58
|
+
], 6)) : d("", !0),
|
|
59
|
+
n("div", {
|
|
60
|
+
id: `${e.id ? e.id + "-" : ""}fixed-scrollable-container`,
|
|
61
|
+
class: t([
|
|
62
|
+
"fixed-scrollable-container",
|
|
63
|
+
"fixed z-20 -ml-px",
|
|
64
|
+
"border border-b-0 border-gray-20",
|
|
65
|
+
e.$slots.dataFilter ? "border-t-0" : "rounded-t-lg",
|
|
66
|
+
{ invisible: !(e.isFixed && e.pinHeaders) }
|
|
67
|
+
]),
|
|
68
|
+
style: p(`
|
|
69
|
+
top: ${e.fixedTopOffset + (e.dataFilterContainer?.clientHeight || 0)}px;
|
|
70
|
+
width: ${e.scrollableContainerWidth + 2}px;
|
|
71
|
+
`)
|
|
72
|
+
}, [
|
|
73
|
+
n("div", D, [
|
|
74
|
+
n("table", X, [
|
|
75
|
+
u(c, {
|
|
76
|
+
id: `${e.id ? e.id + "-" : ""}fixed`,
|
|
77
|
+
columns: e.columns,
|
|
78
|
+
"row-count": e.modelValue.length,
|
|
79
|
+
scrollable: e.scrollable,
|
|
80
|
+
"scrollable-container-x": e.fixedScrollableContainerX,
|
|
81
|
+
"scroll-max": e.scrollMax,
|
|
82
|
+
"th-classes": e.thClasses,
|
|
83
|
+
"onClick:th": e.onClickColumnHeader
|
|
84
|
+
}, H({ _: 2 }, [
|
|
85
|
+
y(e.columns, (l, a) => ({
|
|
86
|
+
name: `head(${l.key})`,
|
|
87
|
+
fn: w(() => [
|
|
88
|
+
n("div", L, [
|
|
89
|
+
e.isMultiSelect && a === 0 ? (o(), r("div", O, [
|
|
90
|
+
u(C, {
|
|
91
|
+
modelValue: e.allCheckboxSelected,
|
|
92
|
+
"onUpdate:modelValue": i[0] || (i[0] = (h) => e.allCheckboxSelected = h),
|
|
93
|
+
icon: e.selectedRows.length < e.modelValue.length ? "minus" : "check",
|
|
94
|
+
class: "mr-3",
|
|
95
|
+
"onUpdate:checked": e.onUpdateAllCheckboxes,
|
|
96
|
+
onClick: i[1] || (i[1] = S(() => {
|
|
97
|
+
}, ["stop"]))
|
|
98
|
+
}, null, 8, ["modelValue", "icon", "onUpdate:checked"])
|
|
99
|
+
])) : d("", !0),
|
|
100
|
+
b(e.$slots, `head(${l.key})`, V(B(l)), () => [
|
|
101
|
+
$(g(typeof l == "string" ? l : l.name), 1)
|
|
102
|
+
], !0),
|
|
103
|
+
l.sortable ? (o(), r("div", {
|
|
104
|
+
key: 1,
|
|
105
|
+
class: t([
|
|
106
|
+
"sort relative h-4 w-4 shrink-0",
|
|
107
|
+
e.sortBy === (l.key || l) && e.orderBy ? `order-by-${e.orderBy}` : ""
|
|
108
|
+
])
|
|
109
|
+
}, null, 2)) : d("", !0)
|
|
110
|
+
])
|
|
111
|
+
])
|
|
112
|
+
}))
|
|
113
|
+
]), 1032, ["id", "columns", "row-count", "scrollable", "scrollable-container-x", "scroll-max", "th-classes", "onClick:th"])
|
|
114
|
+
])
|
|
115
|
+
], 512)
|
|
116
|
+
], 14, q),
|
|
117
|
+
n("div", {
|
|
118
|
+
id: `${e.id ? e.id + "-" : ""}scrollable-container`,
|
|
119
|
+
class: t([
|
|
120
|
+
"scrollable-container",
|
|
121
|
+
"overflow-x-auto overflow-y-hidden rounded-b-lg",
|
|
122
|
+
{ "rounded-t-lg": !e.$slots.dataFilter }
|
|
123
|
+
]),
|
|
124
|
+
ref: "scrollableContainer"
|
|
125
|
+
}, [
|
|
126
|
+
n("table", E, [
|
|
127
|
+
u(c, {
|
|
128
|
+
id: e.id,
|
|
129
|
+
class: t({ invisible: e.isFixed && e.pinHeaders }),
|
|
130
|
+
columns: e.columns,
|
|
131
|
+
"row-count": e.modelValue.length,
|
|
132
|
+
scrollable: e.scrollable,
|
|
133
|
+
"scrollable-container-x": e.scrollableContainerX,
|
|
134
|
+
"scroll-max": e.scrollMax,
|
|
135
|
+
"th-classes": e.thClasses,
|
|
136
|
+
"onClick:th": e.onClickColumnHeader
|
|
137
|
+
}, H({ _: 2 }, [
|
|
138
|
+
y(e.columns, (l, a) => ({
|
|
139
|
+
name: `head(${l.key})`,
|
|
140
|
+
fn: w(() => [
|
|
141
|
+
n("div", W, [
|
|
142
|
+
e.isMultiSelect && a === 0 ? (o(), r("div", A, [
|
|
143
|
+
u(C, {
|
|
144
|
+
modelValue: e.allCheckboxSelected,
|
|
145
|
+
"onUpdate:modelValue": i[2] || (i[2] = (h) => e.allCheckboxSelected = h),
|
|
146
|
+
icon: e.selectedRows.length < e.modelValue.length ? "minus" : "check",
|
|
147
|
+
class: "mr-3",
|
|
148
|
+
"onUpdate:checked": e.onUpdateAllCheckboxes,
|
|
149
|
+
onClick: i[3] || (i[3] = S(() => {
|
|
150
|
+
}, ["stop"]))
|
|
151
|
+
}, null, 8, ["modelValue", "icon", "onUpdate:checked"])
|
|
152
|
+
])) : d("", !0),
|
|
153
|
+
b(e.$slots, `head(${l.key})`, V(B(l)), () => [
|
|
154
|
+
$(g(typeof l == "string" ? l : l.name), 1)
|
|
155
|
+
], !0),
|
|
156
|
+
l.sortable ? (o(), r("div", {
|
|
157
|
+
key: 1,
|
|
158
|
+
class: t([
|
|
159
|
+
"sort relative h-4 w-4 shrink-0",
|
|
160
|
+
e.sortBy === (l.key || l) && e.orderBy ? `order-by-${e.orderBy}` : ""
|
|
161
|
+
])
|
|
162
|
+
}, null, 2)) : d("", !0)
|
|
163
|
+
])
|
|
164
|
+
])
|
|
165
|
+
}))
|
|
166
|
+
]), 1032, ["id", "class", "columns", "row-count", "scrollable", "scrollable-container-x", "scroll-max", "th-classes", "onClick:th"]),
|
|
167
|
+
n("tbody", {
|
|
168
|
+
id: `${e.id ? e.id + "-" : ""}tbody`,
|
|
169
|
+
ref: "tbodyContainer"
|
|
170
|
+
}, [
|
|
171
|
+
(o(!0), r(k, null, y(e.totalPages, (l) => (o(), r(k, { key: l }, [
|
|
172
|
+
l <= e.page ? (o(!0), r(k, { key: 0 }, y(e.loading ? e.skeletonData : e.modelValue.slice(
|
|
173
|
+
(l - 1) * e.itemsPerPage,
|
|
174
|
+
(l - 1) * e.itemsPerPage + e.itemsPerPage
|
|
175
|
+
), (a, h) => (o(), r("tr", {
|
|
176
|
+
key: `${e.id ? e.id + "-" : ""}tr-${(l - 1) * e.itemsPerPage + Number(h)}`,
|
|
177
|
+
id: `${e.id ? e.id + "-" : ""}tr-${(l - 1) * e.itemsPerPage + Number(h)}`,
|
|
178
|
+
class: t([
|
|
179
|
+
Number(h) % 2 ? "bg-gray-0" : "bg-white",
|
|
180
|
+
{ "cursor-pointer": e.canClickRow }
|
|
181
|
+
]),
|
|
182
|
+
onClick: (s) => e.$emit("click:row", a)
|
|
183
|
+
}, [
|
|
184
|
+
(o(!0), r(k, null, y(e.columns, (s, f) => (o(), R(P, {
|
|
185
|
+
id: `${e.id ? e.id + "-" : ""}tr-${(l - 1) * e.itemsPerPage + Number(h)}-${s.key ? s.key : s || f}`,
|
|
186
|
+
key: f,
|
|
187
|
+
class: t([
|
|
188
|
+
s.key,
|
|
189
|
+
e.tdClasses,
|
|
190
|
+
`cell-${s.size || "md"}`,
|
|
191
|
+
s.frozen ? Number(h) % 2 ? "bg-gray-0" : "bg-white" : "",
|
|
192
|
+
{
|
|
193
|
+
"sticky left-0 z-10": s.frozen,
|
|
194
|
+
"text-right": s.key === "actions",
|
|
195
|
+
"left-auto right-0": s.key === "actions" && s.frozen,
|
|
196
|
+
"shadow-right": s.frozen && f === 0 && e.scrollable && e.scrollableContainerX > 0,
|
|
197
|
+
"shadow-left": s.frozen && f === e.columns.length - 1 && e.scrollable && e.scrollableContainerX < e.scrollMax
|
|
198
|
+
}
|
|
199
|
+
])
|
|
200
|
+
}, {
|
|
201
|
+
default: w(() => [
|
|
202
|
+
e.loading ? e.loading ? (o(), r("div", {
|
|
203
|
+
key: 1,
|
|
204
|
+
class: t(["animate-shimmer", a.shimmer])
|
|
205
|
+
}, " ", 2)) : d("", !0) : (o(), r("div", {
|
|
206
|
+
key: 0,
|
|
207
|
+
class: t({ "flex items-center": e.isMultiSelect && f === 0 })
|
|
208
|
+
}, [
|
|
209
|
+
e.isMultiSelect && f === 0 ? (o(), r("div", {
|
|
210
|
+
key: 0,
|
|
211
|
+
onClick: i[4] || (i[4] = S(() => {
|
|
212
|
+
}, ["stop"]))
|
|
213
|
+
}, [
|
|
214
|
+
u(C, {
|
|
215
|
+
"model-value": e.selectedRows.includes(a),
|
|
216
|
+
class: "mr-3",
|
|
217
|
+
"onUpdate:checked": (U) => e.onUpdateCheckbox(U, a)
|
|
218
|
+
}, null, 8, ["model-value", "onUpdate:checked"])
|
|
219
|
+
])) : d("", !0),
|
|
220
|
+
e.$slots[`cell(${s.key ? s.key : s})`] ? b(e.$slots, `cell(${s.key ? s.key : s})`, v({
|
|
221
|
+
key: 1,
|
|
222
|
+
ref_for: !0
|
|
223
|
+
}, { row: a, column: s }), void 0, !0) : b(e.$slots, "cell(default)", v({
|
|
224
|
+
key: 2,
|
|
225
|
+
ref_for: !0
|
|
226
|
+
}, { row: a, column: s }), () => [
|
|
227
|
+
s.key && !s.key.match(/\./) || typeof s == "string" ? (o(), r(k, { key: 0 }, [
|
|
228
|
+
$(g(a[s.key ? s.key : s.toString().toLowerCase()]), 1)
|
|
229
|
+
], 64)) : (o(), r(k, { key: 1 }, [
|
|
230
|
+
$(g(a[s.key.split(".")[0]][s.key.split(".")[1]]), 1)
|
|
231
|
+
], 64))
|
|
232
|
+
], !0)
|
|
233
|
+
], 2))
|
|
234
|
+
]),
|
|
235
|
+
_: 2
|
|
236
|
+
}, 1032, ["id", "class"]))), 128))
|
|
237
|
+
], 10, K))), 128)) : d("", !0)
|
|
238
|
+
], 64))), 128))
|
|
239
|
+
], 8, I)
|
|
240
|
+
])
|
|
241
|
+
], 10, j),
|
|
242
|
+
!e.loading && !e.modelValue.length ? (o(), r("div", Q, [
|
|
243
|
+
b(e.$slots, "no-results-illustration", {}, () => [
|
|
244
|
+
n("img", {
|
|
245
|
+
class: "mb-5",
|
|
246
|
+
src: e.noResults
|
|
247
|
+
}, null, 8, G)
|
|
248
|
+
], !0),
|
|
249
|
+
b(e.$slots, "no-results-text", {}, () => [
|
|
250
|
+
n("div", J, g(e.$t("HC_NO_RESULTS_FOUND")), 1)
|
|
251
|
+
], !0)
|
|
252
|
+
])) : d("", !0),
|
|
253
|
+
e.scrollable && e.scrollableContainerX < e.scrollMax && !e.columns[e.columns.length - 1].frozen ? (o(), r("div", {
|
|
254
|
+
key: 2,
|
|
255
|
+
class: t([
|
|
256
|
+
"scroll-shadow",
|
|
257
|
+
{ "has-data-filter-offset": !!e.$slots.dataFilter }
|
|
258
|
+
])
|
|
259
|
+
}, null, 2)) : d("", !0),
|
|
260
|
+
n("div", {
|
|
261
|
+
id: "fixed-scroll-buttons",
|
|
262
|
+
class: t([
|
|
263
|
+
"h-0 z-20 -ml-px",
|
|
264
|
+
e.pinHeaders ? "fixed" : "absolute"
|
|
265
|
+
]),
|
|
266
|
+
style: p(`
|
|
267
|
+
top: ${(e.dataFilterContainer?.clientHeight || 0) + e.thHeight + (e.pinHeaders ? e.fixedTopOffset : 0)}px;
|
|
268
|
+
width: ${e.scrollableContainerWidth + 2}px;
|
|
269
|
+
`)
|
|
270
|
+
}, [
|
|
271
|
+
e.showLeftScrollButton ? (o(), r("div", {
|
|
272
|
+
key: 0,
|
|
273
|
+
class: t([
|
|
274
|
+
"absolute z-20 rounded-full w-10 h-10",
|
|
275
|
+
"bg-white border border-gray-20 shadow -mt-5 -ml-5",
|
|
276
|
+
"flex items-center justify-center cursor-pointer"
|
|
277
|
+
]),
|
|
278
|
+
style: p(`
|
|
279
|
+
top: ${e.scrollButtonTop}px;
|
|
280
|
+
left: ${e.leftScrollButtonX}px;
|
|
281
|
+
`),
|
|
282
|
+
onClick: i[5] || (i[5] = (...l) => e.triggerScrollLeft && e.triggerScrollLeft(...l))
|
|
283
|
+
}, [
|
|
284
|
+
u(z, {
|
|
285
|
+
class: "p-[0.1875rem] -ml-0.5",
|
|
286
|
+
icon: "chevron-left",
|
|
287
|
+
size: "md",
|
|
288
|
+
type: ""
|
|
289
|
+
})
|
|
290
|
+
], 4)) : d("", !0),
|
|
291
|
+
e.showRightScrollButton ? (o(), r("div", {
|
|
292
|
+
key: 1,
|
|
293
|
+
class: t([
|
|
294
|
+
"absolute z-20 rounded-full w-10 h-10",
|
|
295
|
+
"bg-white border border-gray-20 shadow -mt-5 -mr-5",
|
|
296
|
+
"flex items-center justify-center cursor-pointer",
|
|
297
|
+
{ "!right-8": !e.columns[e.columns.length - 1].frozen }
|
|
298
|
+
]),
|
|
299
|
+
style: p(`
|
|
300
|
+
top: ${e.scrollButtonTop}px;
|
|
301
|
+
right: ${e.rightScrollButtonX}px;
|
|
302
|
+
`),
|
|
303
|
+
onClick: i[6] || (i[6] = (...l) => e.triggerScrollRight && e.triggerScrollRight(...l))
|
|
304
|
+
}, [
|
|
305
|
+
u(z, {
|
|
306
|
+
class: "p-[0.1875rem] -mr-0.5",
|
|
307
|
+
icon: "chevron-right",
|
|
308
|
+
size: "md",
|
|
309
|
+
type: ""
|
|
310
|
+
})
|
|
311
|
+
], 6)) : d("", !0)
|
|
312
|
+
], 6)
|
|
313
|
+
], 16, M);
|
|
314
|
+
}
|
|
315
|
+
const ie = /* @__PURE__ */ T(N, [["render", Y], ["__scopeId", "data-v-e16789e1"]]);
|
|
316
|
+
export {
|
|
317
|
+
ie as default
|
|
318
|
+
};
|
package/dist/index160.js
ADDED
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
const i = {
|
|
2
|
+
content: ({ parent: o, props: t }) => ({
|
|
3
|
+
class: [
|
|
4
|
+
"flex",
|
|
5
|
+
{
|
|
6
|
+
"flex-col": t.fullScreen
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
"flex-col": o.props.thumbnailsPosition === "top" || o.props.thumbnailsPosition === "bottom",
|
|
10
|
+
"flex-row": o.props.thumbnailsPosition === "right" || o.props.thumbnailsPosition === "left"
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
}),
|
|
14
|
+
// Contains main photo & previous/next button container "itemcontainer" below
|
|
15
|
+
itemwrapper: ({ parent: o, props: t }) => ({
|
|
16
|
+
class: [
|
|
17
|
+
"group",
|
|
18
|
+
"flex relative",
|
|
19
|
+
"mt-14 md:mt-20 min-h-[74vh]",
|
|
20
|
+
{
|
|
21
|
+
"grow shrink w-0 justify-center": t.fullScreen
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"flex-col": o.props.indicatorsPosition === "bottom" || o.props.indicatorsPosition === "top",
|
|
25
|
+
"flex-row items-center": o.props.indicatorsPosition === "left" || o.props.indicatorsPosition === "right"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"order-2": o.props.thumbnailsPosition === "top" || o.props.thumbnailsPosition === "left",
|
|
29
|
+
"flex-row": o.props.thumbnailsPosition === "right"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}),
|
|
33
|
+
// Contains main photo & previous/next buttons
|
|
34
|
+
itemcontainer: ({ parent: o }) => ({
|
|
35
|
+
class: [
|
|
36
|
+
"flex w-full md:w-screen h-full relative grow items-center",
|
|
37
|
+
{
|
|
38
|
+
"order-1": o.props.indicatorsPosition === "bottom" || o.props.indicatorsPosition === "right",
|
|
39
|
+
"order-2": o.props.indicatorsPosition === "top" || o.props.indicatorsPosition === "left"
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}),
|
|
43
|
+
// Div that contains main img element
|
|
44
|
+
item: {
|
|
45
|
+
class: [
|
|
46
|
+
// Flex
|
|
47
|
+
"flex justify-center items-center",
|
|
48
|
+
// Sizing
|
|
49
|
+
"h-full w-full",
|
|
50
|
+
"rounded-lg overflow-auto",
|
|
51
|
+
// Misc
|
|
52
|
+
"md:max-w-[592px] mx-auto"
|
|
53
|
+
]
|
|
54
|
+
},
|
|
55
|
+
// Contains div that contains thumbnail container "thumbnailcontainer"
|
|
56
|
+
thumbnailwrapper: ({ parent: o }) => ({
|
|
57
|
+
class: [
|
|
58
|
+
// Flex
|
|
59
|
+
"flex flex-col shrink-0",
|
|
60
|
+
{
|
|
61
|
+
"order-1": o.props.thumbnailsPosition === "top" || o.props.thumbnailsPosition === "left"
|
|
62
|
+
},
|
|
63
|
+
// Misc
|
|
64
|
+
"overflow-auto"
|
|
65
|
+
]
|
|
66
|
+
}),
|
|
67
|
+
thumbnailcontainer: ({ parent: o }) => ({
|
|
68
|
+
class: [
|
|
69
|
+
// Flex
|
|
70
|
+
"flex",
|
|
71
|
+
// Spacing
|
|
72
|
+
"p-4",
|
|
73
|
+
// Colors
|
|
74
|
+
"bg-transparent",
|
|
75
|
+
"md:max-w-[592px] mx-auto",
|
|
76
|
+
{
|
|
77
|
+
"flex-row": o.props.thumbnailsPosition === "top" || o.props.thumbnailsPosition === "bottom",
|
|
78
|
+
"flex-col grow": o.props.thumbnailsPosition === "right" || o.props.thumbnailsPosition === "left"
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
}),
|
|
82
|
+
// Container for the previous thumbnail button
|
|
83
|
+
previousthumbnailbutton: {
|
|
84
|
+
class: [
|
|
85
|
+
// Positioning
|
|
86
|
+
"self-center relative",
|
|
87
|
+
// Display & Flexbox
|
|
88
|
+
"flex shrink-0 justify-center items-center overflow-hidden",
|
|
89
|
+
// Spacing
|
|
90
|
+
"m-2 ml-0",
|
|
91
|
+
// Appearance
|
|
92
|
+
"bg-transparent text-white w-8 h-8 rounded-full transition duration-200 ease-in-out",
|
|
93
|
+
// Hover Effects
|
|
94
|
+
"hover:bg-surface-0/10 hover:text-white",
|
|
95
|
+
// Focus Effects
|
|
96
|
+
"focus:outline-none focus:outline-offset-0"
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
// The container for just the thumbnails (not including the previous/next buttons) - contains another div "thumbnailitems"
|
|
100
|
+
thumbnailitemscontainer: {
|
|
101
|
+
class: "overflow-hidden w-full md:w-[30rem]"
|
|
102
|
+
},
|
|
103
|
+
// The div that contains just the thumbnails
|
|
104
|
+
thumbnailitems: ({ parent: o }) => ({
|
|
105
|
+
class: [
|
|
106
|
+
"flex",
|
|
107
|
+
{
|
|
108
|
+
"flex-col h-full": o.props.thumbnailsPosition === "right" || o.props.thumbnailsPosition === "left"
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
}),
|
|
112
|
+
thumbnailitem: ({ parent: o }) => ({
|
|
113
|
+
class: [
|
|
114
|
+
// Flexbox
|
|
115
|
+
"flex items-center justify-center",
|
|
116
|
+
"grow shrink-0",
|
|
117
|
+
{
|
|
118
|
+
"w-full md:w-[25%]": o.props.thumbnailsPosition === "top" || o.props.thumbnailsPosition === "bottom"
|
|
119
|
+
},
|
|
120
|
+
// Misc
|
|
121
|
+
"overflow-auto",
|
|
122
|
+
"cursor-pointer",
|
|
123
|
+
// 'opacity-50',
|
|
124
|
+
// States
|
|
125
|
+
"hover:opacity-100",
|
|
126
|
+
"hover:transition-opacity",
|
|
127
|
+
"hover:duration-300"
|
|
128
|
+
]
|
|
129
|
+
}),
|
|
130
|
+
nextthumbnailbutton: {
|
|
131
|
+
class: [
|
|
132
|
+
// Positioning
|
|
133
|
+
"self-center relative",
|
|
134
|
+
// Display & Flexbox
|
|
135
|
+
"flex shrink-0 justify-center items-center overflow-hidden",
|
|
136
|
+
// Spacing
|
|
137
|
+
"m-2 mr-0",
|
|
138
|
+
// Appearance
|
|
139
|
+
"bg-transparent text-white w-8 h-8 rounded-full transition duration-200 ease-in-out",
|
|
140
|
+
// Hover Effects
|
|
141
|
+
"hover:bg-surface-0/10 hover:text-white",
|
|
142
|
+
// Focus Effects
|
|
143
|
+
"focus:outline-none focus:outline-offset-0"
|
|
144
|
+
]
|
|
145
|
+
},
|
|
146
|
+
indicators: ({ parent: o }) => ({
|
|
147
|
+
class: [
|
|
148
|
+
// flex
|
|
149
|
+
"flex items-center justify-center",
|
|
150
|
+
// Spacing
|
|
151
|
+
"p-4",
|
|
152
|
+
// Indicators Position
|
|
153
|
+
{
|
|
154
|
+
"order-2": o.props.indicatorsPosition == "bottom",
|
|
155
|
+
"order-1": o.props.indicatorsPosition == "top",
|
|
156
|
+
"order-1 flex-col": o.props.indicatorsPosition == "left",
|
|
157
|
+
"flex-col order-2": o.props.indicatorsPosition == "right"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"absolute z-10 bg-black/50": o.props.showIndicatorsOnItem
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
"bottom-0 left-0 w-full items-start": o.props.indicatorsPosition == "bottom" && o.props.showIndicatorsOnItem,
|
|
164
|
+
"top-0 left-0 w-full items-start": o.props.indicatorsPosition == "top" && o.props.showIndicatorsOnItem,
|
|
165
|
+
"left-0 top-0 h-full items-start": o.props.indicatorsPosition == "left" && o.props.showIndicatorsOnItem,
|
|
166
|
+
"right-0 top-0 h-full items-start": o.props.indicatorsPosition == "right" && o.props.showIndicatorsOnItem
|
|
167
|
+
}
|
|
168
|
+
]
|
|
169
|
+
}),
|
|
170
|
+
indicator: ({ parent: o }) => ({
|
|
171
|
+
class: [
|
|
172
|
+
{
|
|
173
|
+
"mr-2": o.props.indicatorsPosition == "bottom" || o.props.indicatorsPosition == "top",
|
|
174
|
+
"mb-2": o.props.indicatorsPosition == "left" || o.props.indicatorsPosition == "right"
|
|
175
|
+
}
|
|
176
|
+
]
|
|
177
|
+
}),
|
|
178
|
+
indicatorbutton: ({ context: o }) => ({
|
|
179
|
+
class: [
|
|
180
|
+
// Size
|
|
181
|
+
"w-2 h-2",
|
|
182
|
+
// Appearance
|
|
183
|
+
"rounded-full transition duration-200",
|
|
184
|
+
// Focus Effects
|
|
185
|
+
"focus:outline-none focus:outline-offset-0",
|
|
186
|
+
// Conditional Appearance: Not Highlighted
|
|
187
|
+
{
|
|
188
|
+
"bg-inkwell-30 hover:bg-surface-300 dark:bg-surface-700 dark:hover:bg-surface-600": !o.highlighted
|
|
189
|
+
},
|
|
190
|
+
// Conditional Appearance: Highlighted
|
|
191
|
+
{ "bg-white hover:bg-primary-600": o.highlighted }
|
|
192
|
+
]
|
|
193
|
+
}),
|
|
194
|
+
mask: {
|
|
195
|
+
class: [
|
|
196
|
+
"fixed top-0 left-0 w-full h-full",
|
|
197
|
+
"flex items-center justify-center",
|
|
198
|
+
"bg-inkwell-40/95",
|
|
199
|
+
"image-overlay"
|
|
200
|
+
]
|
|
201
|
+
},
|
|
202
|
+
closebutton: {
|
|
203
|
+
class: [
|
|
204
|
+
// Positioning
|
|
205
|
+
"!absolute top-0 right-0 z-[1001]",
|
|
206
|
+
// Display & Flexbox
|
|
207
|
+
"flex justify-center items-center overflow-hidden",
|
|
208
|
+
// Spacing
|
|
209
|
+
"m-2",
|
|
210
|
+
// Appearance
|
|
211
|
+
"text-white bg-transparent w-12 h-12 rounded-full transition duration-200 ease-in-out",
|
|
212
|
+
// Focus Effects
|
|
213
|
+
"focus:outline-none"
|
|
214
|
+
]
|
|
215
|
+
},
|
|
216
|
+
closeicon: {
|
|
217
|
+
class: "w-6 h-6"
|
|
218
|
+
},
|
|
219
|
+
previousitembutton: ({ parent: o }) => ({
|
|
220
|
+
class: [
|
|
221
|
+
// Display & Flexbox
|
|
222
|
+
"inline-flex justify-center items-center overflow-hidden",
|
|
223
|
+
// Appearance
|
|
224
|
+
"bg-transparent text-white w-16 h-16 transition duration-200 ease-in-out rounded-md",
|
|
225
|
+
{
|
|
226
|
+
"opacity-0 group-hover:opacity-100": o.props.showItemNavigatorsOnHover
|
|
227
|
+
},
|
|
228
|
+
// Spacing
|
|
229
|
+
"mx-2",
|
|
230
|
+
// Positioning
|
|
231
|
+
"top-1/2 mt-[-0.5rem] left-0",
|
|
232
|
+
{
|
|
233
|
+
"!absolute": o.props.showItemNavigators,
|
|
234
|
+
"!fixed": !o.props.showItemNavigators
|
|
235
|
+
},
|
|
236
|
+
// Hover Effect
|
|
237
|
+
"hover:bg-surface-0/10 hover:text-white",
|
|
238
|
+
// Focus Effects
|
|
239
|
+
"focus:outline-none focus:outline-offset-0"
|
|
240
|
+
]
|
|
241
|
+
}),
|
|
242
|
+
nextitembutton: ({ parent: o }) => ({
|
|
243
|
+
class: [
|
|
244
|
+
// Display & Flexbox
|
|
245
|
+
"inline-flex justify-center items-center overflow-hidden",
|
|
246
|
+
// Appearance
|
|
247
|
+
"bg-transparent text-white w-16 h-16 transition duration-200 ease-in-out rounded-md",
|
|
248
|
+
{
|
|
249
|
+
"opacity-0 group-hover:opacity-100": o.props.showItemNavigatorsOnHover
|
|
250
|
+
},
|
|
251
|
+
// Spacing
|
|
252
|
+
"mx-2",
|
|
253
|
+
// Positioning
|
|
254
|
+
"top-1/2 mt-[-0.5rem] right-0",
|
|
255
|
+
{
|
|
256
|
+
"!absolute": o.props.showItemNavigators,
|
|
257
|
+
"!fixed": !o.props.showItemNavigators
|
|
258
|
+
},
|
|
259
|
+
// Hover Effect
|
|
260
|
+
"hover:bg-surface-0/10 hover:text-white",
|
|
261
|
+
// Focus Effects
|
|
262
|
+
"focus:outline-none focus:outline-offset-0"
|
|
263
|
+
]
|
|
264
|
+
}),
|
|
265
|
+
caption: {
|
|
266
|
+
class: [
|
|
267
|
+
// Positioning
|
|
268
|
+
"absolute bottom-0 left-0 w-full",
|
|
269
|
+
// Appearance
|
|
270
|
+
"bg-black/50 text-white p-4"
|
|
271
|
+
]
|
|
272
|
+
},
|
|
273
|
+
transition: {
|
|
274
|
+
enterFromClass: "opacity-0 scale-75",
|
|
275
|
+
enterActiveClass: "transition-all duration-150 ease-in-out",
|
|
276
|
+
leaveActiveClass: "transition-all duration-150 ease-in",
|
|
277
|
+
leaveToClass: "opacity-0 scale-75"
|
|
278
|
+
}
|
|
279
|
+
};
|
|
280
|
+
export {
|
|
281
|
+
i as default
|
|
282
|
+
};
|