@enos5/enos-vue 0.1.0 → 0.1.2
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/README.md +86 -0
- package/dist/index.js +43 -43
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
# `@enos5/enos-vue`
|
|
2
|
+
|
|
3
|
+
Shared Vue 3 UI components for Enos projects.
|
|
4
|
+
|
|
5
|
+
## Requirements
|
|
6
|
+
|
|
7
|
+
- Node.js 20+
|
|
8
|
+
- npm
|
|
9
|
+
|
|
10
|
+
## Install
|
|
11
|
+
|
|
12
|
+
Clone the repository, then install dependencies:
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
npm install
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Build the package:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
npm run build
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Use In Another Project
|
|
25
|
+
|
|
26
|
+
Install the published package:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
npm install @enos5/enos-vue
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
This package expects these peer dependencies in the consuming app:
|
|
33
|
+
|
|
34
|
+
- `vue`
|
|
35
|
+
- `@inertiajs/vue3`
|
|
36
|
+
- `@heroicons/vue`
|
|
37
|
+
- `vue-i18n`
|
|
38
|
+
|
|
39
|
+
You can register everything globally:
|
|
40
|
+
|
|
41
|
+
```ts
|
|
42
|
+
import { createApp } from 'vue'
|
|
43
|
+
import App from './App.vue'
|
|
44
|
+
import { EnosVue } from '@enos5/enos-vue'
|
|
45
|
+
|
|
46
|
+
createApp(App).use(EnosVue).mount('#app')
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Or import individual components:
|
|
50
|
+
|
|
51
|
+
```ts
|
|
52
|
+
import { PrimaryButton, TextInput } from '@enos5/enos-vue'
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Publish To npm
|
|
56
|
+
|
|
57
|
+
Before publishing:
|
|
58
|
+
|
|
59
|
+
1. Update the version in `package.json`.
|
|
60
|
+
2. Reinstall dependencies if needed with `npm install`.
|
|
61
|
+
3. Build the package with `npm run build`.
|
|
62
|
+
4. Make sure you are logged in to npm with `npm login`.
|
|
63
|
+
|
|
64
|
+
Publish:
|
|
65
|
+
|
|
66
|
+
```bash
|
|
67
|
+
npm publish
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
If this is a scoped package being published publicly for the first time, use:
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
npm publish --access public
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## Release Checklist
|
|
77
|
+
|
|
78
|
+
For each release:
|
|
79
|
+
|
|
80
|
+
1. Update the version number in `package.json`.
|
|
81
|
+
2. Commit and push the version change.
|
|
82
|
+
3. Build the package with `npm run build`.
|
|
83
|
+
4. Publish the new version to npm.
|
|
84
|
+
5. Create a matching release in Gitea for the same version tag.
|
|
85
|
+
|
|
86
|
+
Keeping the npm package version and the Gitea release aligned avoids release drift.
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ref as z, computed as f, watch as X, openBlock as s, createElementBlock as n, createElementVNode as r, Fragment as
|
|
1
|
+
import { ref as z, computed as f, watch as X, openBlock as s, createElementBlock as n, createElementVNode as r, Fragment as H, renderList as W, normalizeClass as _, normalizeStyle as he, toDisplayString as $, createBlock as A, createCommentVNode as O, renderSlot as g, createVNode as E, Transition as Y, withCtx as F, mergeProps as M, useSlots as oe, unref as V, withDirectives as G, vShow as Z, watchEffect as Me, onMounted as J, vModelCheckbox as ze, useAttrs as P, nextTick as de, onBeforeUnmount as Fe, Teleport as Ue, withModifiers as ue, onUnmounted as ve, isRef as ie, createTextVNode as ae, resolveDynamicComponent as xe, vModelText as Ne } from "vue";
|
|
2
2
|
import { usePage as Ee, Link as ee } from "@inertiajs/vue3";
|
|
3
3
|
import { useI18n as Ke } from "vue-i18n";
|
|
4
|
-
import { CheckCircleIcon as Re, ExclamationTriangleIcon as we, XMarkIcon as
|
|
4
|
+
import { CheckCircleIcon as Re, ExclamationTriangleIcon as we, XMarkIcon as He, LockClosedIcon as Pe, ChevronDownIcon as ce, PhotoIcon as We, ExclamationCircleIcon as qe, ChevronUpIcon as ke, MagnifyingGlassIcon as Ge } from "@heroicons/vue/24/outline";
|
|
5
5
|
const Xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6
6
|
__proto__: null,
|
|
7
7
|
get ActionCard() {
|
|
@@ -64,7 +64,7 @@ const Xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
64
64
|
get DropdownLink() {
|
|
65
65
|
return Al;
|
|
66
66
|
},
|
|
67
|
-
get
|
|
67
|
+
get EnosVue() {
|
|
68
68
|
return ea;
|
|
69
69
|
},
|
|
70
70
|
get FormSection() {
|
|
@@ -92,7 +92,7 @@ const Xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
92
92
|
return Ie;
|
|
93
93
|
},
|
|
94
94
|
get PrimaryButton() {
|
|
95
|
-
return
|
|
95
|
+
return Hl;
|
|
96
96
|
},
|
|
97
97
|
get PrimaryLinkButton() {
|
|
98
98
|
return ye;
|
|
@@ -205,7 +205,7 @@ const Xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
205
205
|
};
|
|
206
206
|
return (h, b) => (s(), n("div", Je, [
|
|
207
207
|
r("div", Qe, [
|
|
208
|
-
(s(!0), n(
|
|
208
|
+
(s(!0), n(H, null, W(e.tabs, (C, p) => (s(), n("button", {
|
|
209
209
|
key: C.value,
|
|
210
210
|
ref_for: !0,
|
|
211
211
|
ref: (L) => u(L, p),
|
|
@@ -597,7 +597,7 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
597
597
|
onClick: k
|
|
598
598
|
}, [
|
|
599
599
|
r("span", It, $(V(t)("Dismiss")), 1),
|
|
600
|
-
E(V(
|
|
600
|
+
E(V(He), { class: "w-5 h-5" })
|
|
601
601
|
], 2)
|
|
602
602
|
])
|
|
603
603
|
])
|
|
@@ -726,7 +726,7 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
726
726
|
},
|
|
727
727
|
emits: ["update:modelValue", "blur"],
|
|
728
728
|
setup(e, { expose: a, emit: t }) {
|
|
729
|
-
const l = e, o = t, d =
|
|
729
|
+
const l = e, o = t, d = P(), i = z(null), u = z(!1), k = f(() => String(d.type ?? "text")), x = f(() => k.value === "password"), T = f(() => x.value && u.value ? "text" : k.value), h = f(() => l.modelValue ?? ""), b = f(() => {
|
|
730
730
|
const { class: j, type: U, ...K } = d;
|
|
731
731
|
return K.maxlength === void 0 && (K.maxlength = Rt), K;
|
|
732
732
|
}), C = f(() => [
|
|
@@ -746,7 +746,7 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
746
746
|
i.value?.hasAttribute("autofocus") && i.value.focus();
|
|
747
747
|
}), a({ focus: () => i.value?.focus() }), (j, U) => (s(), n("div", zt, [
|
|
748
748
|
x.value ? (s(), n("div", Ft, [
|
|
749
|
-
E(V(
|
|
749
|
+
E(V(Pe), { class: "h-5 w-5 text-gray-400" })
|
|
750
750
|
])) : O("", !0),
|
|
751
751
|
r("input", M({
|
|
752
752
|
ref_key: "input",
|
|
@@ -791,7 +791,7 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
791
791
|
], 8, Nt)) : O("", !0)
|
|
792
792
|
]));
|
|
793
793
|
}
|
|
794
|
-
}),
|
|
794
|
+
}), Ht = { class: "p-1" }, Pt = ["value", "disabled"], Wt = 1e3, Ve = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
795
795
|
__name: "TextArea",
|
|
796
796
|
props: {
|
|
797
797
|
modelValue: String,
|
|
@@ -810,7 +810,7 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
810
810
|
},
|
|
811
811
|
emits: ["update:modelValue"],
|
|
812
812
|
setup(e, { expose: a, emit: t }) {
|
|
813
|
-
const l = e, o = t, d =
|
|
813
|
+
const l = e, o = t, d = P(), i = z(null), u = f(() => {
|
|
814
814
|
const { class: h, ...b } = d;
|
|
815
815
|
return b.maxlength === void 0 && (b.maxlength = Wt), b;
|
|
816
816
|
}), k = f(() => [
|
|
@@ -830,7 +830,7 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
830
830
|
de(() => {
|
|
831
831
|
x();
|
|
832
832
|
});
|
|
833
|
-
}), a({ focus: () => i.value?.focus() }), (h, b) => (s(), n("div",
|
|
833
|
+
}), a({ focus: () => i.value?.focus() }), (h, b) => (s(), n("div", Ht, [
|
|
834
834
|
r("textarea", M({
|
|
835
835
|
ref_key: "textarea",
|
|
836
836
|
ref: i
|
|
@@ -839,7 +839,7 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
839
839
|
value: l.modelValue,
|
|
840
840
|
disabled: l.disabled,
|
|
841
841
|
onInput: T
|
|
842
|
-
}), null, 16,
|
|
842
|
+
}), null, 16, Pt)
|
|
843
843
|
]));
|
|
844
844
|
}
|
|
845
845
|
}), qt = ["onClick"], Be = /* @__PURE__ */ Object.assign({ inheritAttrs: !1 }, {
|
|
@@ -928,7 +928,7 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
928
928
|
},
|
|
929
929
|
emits: ["update:modelValue"],
|
|
930
930
|
setup(e, { emit: a }) {
|
|
931
|
-
const t = e, l = a, o =
|
|
931
|
+
const t = e, l = a, o = P(), d = z(!1), i = z(null), u = z(null), k = z(null), x = z({}), T = (v) => typeof v == "object" && v !== null, h = (v) => T(v) ? v[t.valueKey] : v, b = (v) => t.optionLabel ? t.optionLabel(v) : T(v) ? v[t.labelKey] ?? v[t.valueKey] ?? "" : v, C = (v) => !t.softDeleteAware || !T(v) ? !1 : !!v[t.deletedKey], p = f(() => String(t.modelValue ?? "")), L = f(() => !t.softDeleteAware || p.value === "" ? null : t.options.find((v) => C(v) && String(h(v) ?? "") === p.value) ?? null), j = f(() => t.softDeleteAware ? t.options.filter((v) => !C(v)) : t.options), U = f(() => {
|
|
932
932
|
if (t.modelValue === null || t.modelValue === void 0 || t.modelValue === "" && !t.options.some((R) => h(R) === ""))
|
|
933
933
|
return t.placeholder;
|
|
934
934
|
const v = t.options.find((R) => {
|
|
@@ -1022,7 +1022,7 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
1022
1022
|
e.dropdownSelectedClass
|
|
1023
1023
|
])
|
|
1024
1024
|
}, $(b(L.value)), 3)) : O("", !0),
|
|
1025
|
-
(s(!0), n(
|
|
1025
|
+
(s(!0), n(H, null, W(j.value, (N) => (s(), n("div", {
|
|
1026
1026
|
key: String(h(N)),
|
|
1027
1027
|
class: _([
|
|
1028
1028
|
e.dropdownOptionClass,
|
|
@@ -1175,7 +1175,7 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
1175
1175
|
},
|
|
1176
1176
|
emits: ["update:modelValue"],
|
|
1177
1177
|
setup(e, { expose: a, emit: t }) {
|
|
1178
|
-
const l = e, o = t, d =
|
|
1178
|
+
const l = e, o = t, d = P(), i = z(null), u = f(() => l.withTimestamp ? "datetime-local" : "date"), k = f(() => l.modelValue ?? ""), x = f(() => {
|
|
1179
1179
|
const p = l.withTimestamp ? "9999-12-31T23:59" : "9999-12-31", L = d.max;
|
|
1180
1180
|
return typeof L != "string" || L === "" || L > p ? p : L;
|
|
1181
1181
|
}), T = f(() => {
|
|
@@ -1286,7 +1286,7 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
1286
1286
|
setup(e, { emit: a }) {
|
|
1287
1287
|
const t = a, l = e, o = f(() => l.options.map((u) => u == null ? "" : String(u).trim()).filter((u) => u !== "")), d = (u) => String(u) === String(l.modelValue ?? ""), i = (u) => t("update:modelValue", u);
|
|
1288
1288
|
return (u, k) => (s(), n("div", sl, [
|
|
1289
|
-
(s(!0), n(
|
|
1289
|
+
(s(!0), n(H, null, W(o.value, (x, T) => (s(), n("button", {
|
|
1290
1290
|
key: `notation-${T}-${x}`,
|
|
1291
1291
|
type: "button",
|
|
1292
1292
|
class: _(["flex-1 border-l border-gray-300 px-2 text-center font-semibold transition-colors duration-150 first:border-l-0", [
|
|
@@ -1376,7 +1376,7 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
1376
1376
|
setup(e, { emit: a }) {
|
|
1377
1377
|
const t = a, l = e, o = f(() => l.options.map((i) => i == null ? "" : String(i).trim()).filter((i) => i !== "")), d = (i) => t("update:modelValue", i);
|
|
1378
1378
|
return (i, u) => (s(), n("div", ol, [
|
|
1379
|
-
(s(!0), n(
|
|
1379
|
+
(s(!0), n(H, null, W(o.value, (k) => (s(), A(re, {
|
|
1380
1380
|
key: `radio-${e.name ?? "group"}-${k}`,
|
|
1381
1381
|
type: "radio-input",
|
|
1382
1382
|
"model-value": l.modelValue,
|
|
@@ -1512,7 +1512,7 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
1512
1512
|
},
|
|
1513
1513
|
emits: ["update:modelValue", "blur"],
|
|
1514
1514
|
setup(e, { emit: a }) {
|
|
1515
|
-
const t = e, l = a, o =
|
|
1515
|
+
const t = e, l = a, o = P(), d = (I) => l("update:modelValue", I), i = f(() => !!t.errorMessage), u = f(() => C.value || p.value), k = f(() => {
|
|
1516
1516
|
const I = o.id;
|
|
1517
1517
|
return typeof I == "string" && I !== "" ? I : void 0;
|
|
1518
1518
|
}), x = [
|
|
@@ -1678,7 +1678,7 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
1678
1678
|
k && T === -1 ? x.push(u) : !k && T !== -1 && x.splice(T, 1), t("update:modelValue", x);
|
|
1679
1679
|
};
|
|
1680
1680
|
return (u, k) => (s(), n("div", ul, [
|
|
1681
|
-
(s(!0), n(
|
|
1681
|
+
(s(!0), n(H, null, W(o.value, (x) => (s(), A(re, {
|
|
1682
1682
|
key: `checkbox-${x}`,
|
|
1683
1683
|
type: "checkbox-input",
|
|
1684
1684
|
"model-value": d(x),
|
|
@@ -1864,7 +1864,7 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
1864
1864
|
}
|
|
1865
1865
|
},
|
|
1866
1866
|
setup(e) {
|
|
1867
|
-
const a =
|
|
1867
|
+
const a = P();
|
|
1868
1868
|
return (t, l) => (s(), n("button", M(V(a), {
|
|
1869
1869
|
type: e.type,
|
|
1870
1870
|
disabled: e.disabled,
|
|
@@ -2091,7 +2091,7 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
2091
2091
|
_: 3
|
|
2092
2092
|
}, 8, ["href", "class"]));
|
|
2093
2093
|
}
|
|
2094
|
-
}, Rl = ["type", "disabled"],
|
|
2094
|
+
}, Rl = ["type", "disabled"], Hl = /* @__PURE__ */ Object.assign({
|
|
2095
2095
|
inheritAttrs: !1
|
|
2096
2096
|
}, {
|
|
2097
2097
|
__name: "PrimaryButton",
|
|
@@ -2106,7 +2106,7 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
2106
2106
|
}
|
|
2107
2107
|
},
|
|
2108
2108
|
setup(e) {
|
|
2109
|
-
const a =
|
|
2109
|
+
const a = P();
|
|
2110
2110
|
return (t, l) => (s(), n("button", M(V(a), {
|
|
2111
2111
|
type: e.type,
|
|
2112
2112
|
disabled: e.disabled,
|
|
@@ -2115,7 +2115,7 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
2115
2115
|
g(t.$slots, "default")
|
|
2116
2116
|
], 16, Rl));
|
|
2117
2117
|
}
|
|
2118
|
-
}),
|
|
2118
|
+
}), Pl = ["href", "title", "target", "rel"], ye = /* @__PURE__ */ Object.assign({
|
|
2119
2119
|
inheritAttrs: !1
|
|
2120
2120
|
}, {
|
|
2121
2121
|
__name: "PrimaryLinkButton",
|
|
@@ -2142,7 +2142,7 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
2142
2142
|
}
|
|
2143
2143
|
},
|
|
2144
2144
|
setup(e) {
|
|
2145
|
-
const a =
|
|
2145
|
+
const a = P();
|
|
2146
2146
|
return (t, l) => e.external ? (s(), n("a", M({ key: 1 }, V(a), {
|
|
2147
2147
|
href: e.href,
|
|
2148
2148
|
title: e.title,
|
|
@@ -2151,7 +2151,7 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
2151
2151
|
class: "min-w-[40px] min-h-[35px] inline-flex items-center justify-center rounded-lg bg-gradient-to-r from-blue-500 to-blue-600 p-3 py-2 text-sm font-medium text-white shadow-[0_1px_3px_rgba(0,0,0,0.1)] transition-all duration-200 hover:from-blue-600 hover:to-blue-700 hover:shadow-[0_2px_6px_rgba(0,0,0,0.15)] focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2"
|
|
2152
2152
|
}), [
|
|
2153
2153
|
g(t.$slots, "default")
|
|
2154
|
-
], 16,
|
|
2154
|
+
], 16, Pl)) : (s(), A(V(ee), M({ key: 0 }, V(a), {
|
|
2155
2155
|
href: e.href,
|
|
2156
2156
|
title: e.title,
|
|
2157
2157
|
class: "min-w-[40px] min-h-[35px] inline-flex items-center justify-center rounded-lg bg-gradient-to-r from-blue-500 to-blue-600 p-3 py-2 text-sm font-medium text-white shadow-[0_1px_3px_rgba(0,0,0,0.1)] transition-all duration-200 hover:from-blue-600 hover:to-blue-700 hover:shadow-[0_2px_6px_rgba(0,0,0,0.15)] focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2"
|
|
@@ -2210,7 +2210,7 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
2210
2210
|
}
|
|
2211
2211
|
},
|
|
2212
2212
|
setup(e) {
|
|
2213
|
-
const a =
|
|
2213
|
+
const a = P();
|
|
2214
2214
|
return (t, l) => (s(), n("button", M(V(a), {
|
|
2215
2215
|
type: e.type,
|
|
2216
2216
|
disabled: e.disabled,
|
|
@@ -2246,7 +2246,7 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
2246
2246
|
}
|
|
2247
2247
|
},
|
|
2248
2248
|
setup(e) {
|
|
2249
|
-
const a =
|
|
2249
|
+
const a = P();
|
|
2250
2250
|
return (t, l) => e.external ? (s(), n("a", M({ key: 1 }, V(a), {
|
|
2251
2251
|
href: e.href,
|
|
2252
2252
|
title: e.title,
|
|
@@ -2317,7 +2317,7 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
2317
2317
|
r("div", ss, [
|
|
2318
2318
|
r("label", as, $(e.sortByLabel) + ":", 1),
|
|
2319
2319
|
r("div", ns, [
|
|
2320
|
-
(s(!0), n(
|
|
2320
|
+
(s(!0), n(H, null, W(e.fields, (i) => (s(), n("button", {
|
|
2321
2321
|
key: i.key,
|
|
2322
2322
|
onClick: (u) => l(i.key),
|
|
2323
2323
|
class: _([
|
|
@@ -2471,7 +2471,7 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
2471
2471
|
r("table", gs, [
|
|
2472
2472
|
r("thead", ps, [
|
|
2473
2473
|
r("tr", null, [
|
|
2474
|
-
(s(!0), n(
|
|
2474
|
+
(s(!0), n(H, null, W(e.columns, (p) => (s(), n(H, {
|
|
2475
2475
|
key: p.key
|
|
2476
2476
|
}, [
|
|
2477
2477
|
p.sortable ? (s(), A(be, {
|
|
@@ -2494,11 +2494,11 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
2494
2494
|
])
|
|
2495
2495
|
]),
|
|
2496
2496
|
r("tbody", ys, [
|
|
2497
|
-
(s(!0), n(
|
|
2497
|
+
(s(!0), n(H, null, W(e.data, (p, L) => (s(), n("tr", {
|
|
2498
2498
|
key: p.id,
|
|
2499
2499
|
class: _(e.rowClasses(p, L))
|
|
2500
2500
|
}, [
|
|
2501
|
-
(s(!0), n(
|
|
2501
|
+
(s(!0), n(H, null, W(e.columns, (j) => (s(), n("td", {
|
|
2502
2502
|
key: j.key,
|
|
2503
2503
|
class: _(T(j))
|
|
2504
2504
|
}, [
|
|
@@ -2567,7 +2567,7 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
2567
2567
|
}, Rs = {
|
|
2568
2568
|
key: 2,
|
|
2569
2569
|
class: "text-center py-12"
|
|
2570
|
-
},
|
|
2570
|
+
}, Hs = { class: "inline-flex items-center justify-center w-16 h-16 bg-gray-100 rounded-full mb-4" }, Ps = { class: "text-lg font-medium text-gray-900 mb-2" }, Ws = { class: "text-gray-500 mb-4" }, qs = {
|
|
2571
2571
|
__name: "TableListForm",
|
|
2572
2572
|
props: {
|
|
2573
2573
|
data: {
|
|
@@ -2730,7 +2730,7 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
2730
2730
|
r("table", Ls, [
|
|
2731
2731
|
r("thead", Ds, [
|
|
2732
2732
|
r("tr", null, [
|
|
2733
|
-
(s(!0), n(
|
|
2733
|
+
(s(!0), n(H, null, W(e.columns, (y) => (s(), n(H, {
|
|
2734
2734
|
key: y.key
|
|
2735
2735
|
}, [
|
|
2736
2736
|
y.sortable ? (s(), A(be, {
|
|
@@ -2753,11 +2753,11 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
2753
2753
|
])
|
|
2754
2754
|
]),
|
|
2755
2755
|
r("tbody", Ms, [
|
|
2756
|
-
(s(!0), n(
|
|
2756
|
+
(s(!0), n(H, null, W(k.value, (y, D) => (s(), n("tr", {
|
|
2757
2757
|
key: L(y, D),
|
|
2758
2758
|
class: _(e.rowClasses(y, D))
|
|
2759
2759
|
}, [
|
|
2760
|
-
(s(!0), n(
|
|
2760
|
+
(s(!0), n(H, null, W(e.columns, (S) => (s(), n("td", {
|
|
2761
2761
|
key: S.key,
|
|
2762
2762
|
class: _(K(S))
|
|
2763
2763
|
}, [
|
|
@@ -2796,10 +2796,10 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
2796
2796
|
])
|
|
2797
2797
|
])
|
|
2798
2798
|
])) : (s(), n("div", Rs, [
|
|
2799
|
-
r("div",
|
|
2799
|
+
r("div", Hs, [
|
|
2800
2800
|
(s(), A(xe(e.emptyState.icon), { class: "w-8 h-8 text-gray-400" }))
|
|
2801
2801
|
]),
|
|
2802
|
-
r("h3",
|
|
2802
|
+
r("h3", Ps, $(e.emptyState.title), 1),
|
|
2803
2803
|
r("p", Ws, $(e.emptyState.description), 1),
|
|
2804
2804
|
e.emptyState.actionText && e.emptyState.actionUrl ? (s(), A(ye, {
|
|
2805
2805
|
key: 0,
|
|
@@ -2828,7 +2828,7 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
2828
2828
|
}
|
|
2829
2829
|
},
|
|
2830
2830
|
setup(e) {
|
|
2831
|
-
const a =
|
|
2831
|
+
const a = P();
|
|
2832
2832
|
return (t, l) => (s(), n("button", M(V(a), {
|
|
2833
2833
|
type: e.type,
|
|
2834
2834
|
disabled: e.disabled,
|
|
@@ -2864,7 +2864,7 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
2864
2864
|
}
|
|
2865
2865
|
},
|
|
2866
2866
|
setup(e) {
|
|
2867
|
-
const a =
|
|
2867
|
+
const a = P();
|
|
2868
2868
|
return (t, l) => e.external ? (s(), n("a", M({ key: 1 }, V(a), {
|
|
2869
2869
|
href: e.href,
|
|
2870
2870
|
title: e.title,
|
|
@@ -2899,7 +2899,7 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
2899
2899
|
}
|
|
2900
2900
|
},
|
|
2901
2901
|
setup(e) {
|
|
2902
|
-
const a =
|
|
2902
|
+
const a = P();
|
|
2903
2903
|
return (t, l) => (s(), n("button", M(V(a), {
|
|
2904
2904
|
type: e.type,
|
|
2905
2905
|
disabled: e.disabled,
|
|
@@ -2911,7 +2911,7 @@ const St = /* @__PURE__ */ ge(vt, [["render", kt]]), $t = { class: "sr-only" },
|
|
|
2911
2911
|
}), ea = {
|
|
2912
2912
|
install(e) {
|
|
2913
2913
|
for (const [a, t] of Object.entries(Xe))
|
|
2914
|
-
a !== "
|
|
2914
|
+
a !== "EnosVue" && e.component(a, t);
|
|
2915
2915
|
}
|
|
2916
2916
|
};
|
|
2917
2917
|
export {
|
|
@@ -2935,7 +2935,7 @@ export {
|
|
|
2935
2935
|
fe as Divider,
|
|
2936
2936
|
Vl as Dropdown,
|
|
2937
2937
|
Al as DropdownLink,
|
|
2938
|
-
ea as
|
|
2938
|
+
ea as EnosVue,
|
|
2939
2939
|
Ol as FormSection,
|
|
2940
2940
|
je as ImageInput,
|
|
2941
2941
|
zl as InputError,
|
|
@@ -2944,7 +2944,7 @@ export {
|
|
|
2944
2944
|
me as Modal,
|
|
2945
2945
|
Kl as NavLink,
|
|
2946
2946
|
Ie as NotationInput,
|
|
2947
|
-
|
|
2947
|
+
Hl as PrimaryButton,
|
|
2948
2948
|
ye as PrimaryLinkButton,
|
|
2949
2949
|
Le as RadioInput,
|
|
2950
2950
|
De as RadioMultipleInput,
|