sprintify-ui 0.6.55 → 0.6.57
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/sprintify-ui.es.js
CHANGED
|
@@ -44271,7 +44271,7 @@ function Ab(n) {
|
|
|
44271
44271
|
function g5(n) {
|
|
44272
44272
|
return n == "sm" ? "px-1 py-0.5" : n == "md" ? "px-2 py-2" : n == "lg" ? "px-4 py-3" : "";
|
|
44273
44273
|
}
|
|
44274
|
-
const v5 =
|
|
44274
|
+
const v5 = ["align"], y5 = /* @__PURE__ */ be({
|
|
44275
44275
|
inheritAttrs: !1,
|
|
44276
44276
|
__name: "BaseTableCell",
|
|
44277
44277
|
props: {
|
|
@@ -44279,6 +44279,7 @@ const v5 = { class: "p-0 border-b border-slate-200" }, y5 = /* @__PURE__ */ be({
|
|
|
44279
44279
|
to: { default: void 0 },
|
|
44280
44280
|
target: { default: void 0 },
|
|
44281
44281
|
title: { default: void 0 },
|
|
44282
|
+
align: { default: void 0 },
|
|
44282
44283
|
class: { type: [Array, String, null, Number, Boolean], default: void 0 }
|
|
44283
44284
|
},
|
|
44284
44285
|
setup(n) {
|
|
@@ -44300,7 +44301,10 @@ const v5 = { class: "p-0 border-b border-slate-200" }, y5 = /* @__PURE__ */ be({
|
|
|
44300
44301
|
t.class
|
|
44301
44302
|
);
|
|
44302
44303
|
});
|
|
44303
|
-
return (c, p) => (B(), K("td",
|
|
44304
|
+
return (c, p) => (B(), K("td", {
|
|
44305
|
+
class: "p-0 border-b border-slate-200",
|
|
44306
|
+
align: c.align
|
|
44307
|
+
}, [
|
|
44304
44308
|
(B(), De(In(C(s)), {
|
|
44305
44309
|
class: de(C(d)),
|
|
44306
44310
|
to: C(l).to,
|
|
@@ -44313,7 +44317,7 @@ const v5 = { class: "p-0 border-b border-slate-200" }, y5 = /* @__PURE__ */ be({
|
|
|
44313
44317
|
]),
|
|
44314
44318
|
_: 3
|
|
44315
44319
|
}, 8, ["class", "to", "href", "title", "target"]))
|
|
44316
|
-
]));
|
|
44320
|
+
], 8, v5));
|
|
44317
44321
|
}
|
|
44318
44322
|
}), b5 = /* @__PURE__ */ be({
|
|
44319
44323
|
__name: "BaseTableHead",
|
|
@@ -44328,40 +44332,42 @@ const v5 = { class: "p-0 border-b border-slate-200" }, y5 = /* @__PURE__ */ be({
|
|
|
44328
44332
|
Ne(r.$slots, "default")
|
|
44329
44333
|
]));
|
|
44330
44334
|
}
|
|
44331
|
-
}), w5 =
|
|
44335
|
+
}), w5 = ["align"], x5 = /* @__PURE__ */ be({
|
|
44332
44336
|
inheritAttrs: !1,
|
|
44333
44337
|
__name: "BaseTableHeader",
|
|
44334
44338
|
props: {
|
|
44335
|
-
class: { type: [Array, String, null, Number, Boolean], default: void 0 }
|
|
44339
|
+
class: { type: [Array, String, null, Number, Boolean], default: void 0 },
|
|
44340
|
+
align: { default: void 0 }
|
|
44336
44341
|
},
|
|
44337
44342
|
setup(n) {
|
|
44338
|
-
const t = n, e = pt("BaseTable")
|
|
44339
|
-
if (!pt("
|
|
44340
|
-
throw new Error("BaseTableCell must be used within a BaseTableRow.");
|
|
44341
|
-
if (!r)
|
|
44343
|
+
const t = n, e = pt("BaseTable");
|
|
44344
|
+
if (!pt("BaseTableHead", void 0))
|
|
44342
44345
|
throw new Error("BaseTableCell must be used within a BaseTableHead.");
|
|
44343
|
-
const
|
|
44344
|
-
var
|
|
44346
|
+
const i = L(() => {
|
|
44347
|
+
var a, l;
|
|
44345
44348
|
return {
|
|
44346
|
-
spacing: (
|
|
44347
|
-
flush: (
|
|
44349
|
+
spacing: (a = e == null ? void 0 : e.value) == null ? void 0 : a.spacing,
|
|
44350
|
+
flush: (l = e == null ? void 0 : e.value) == null ? void 0 : l.flush,
|
|
44348
44351
|
head: !0
|
|
44349
44352
|
};
|
|
44350
|
-
}),
|
|
44351
|
-
const
|
|
44353
|
+
}), o = L(() => {
|
|
44354
|
+
const a = Ab(i.value);
|
|
44352
44355
|
return kt(
|
|
44353
44356
|
"text-slate-500 font-normal",
|
|
44354
|
-
|
|
44357
|
+
a,
|
|
44355
44358
|
t.class
|
|
44356
44359
|
);
|
|
44357
44360
|
});
|
|
44358
|
-
return (
|
|
44361
|
+
return (a, l) => (B(), K("th", {
|
|
44362
|
+
class: "p-0 border-b border-slate-200",
|
|
44363
|
+
align: a.align
|
|
44364
|
+
}, [
|
|
44359
44365
|
j("div", {
|
|
44360
|
-
class: de(C(
|
|
44366
|
+
class: de(C(o))
|
|
44361
44367
|
}, [
|
|
44362
|
-
Ne(
|
|
44368
|
+
Ne(a.$slots, "default")
|
|
44363
44369
|
], 2)
|
|
44364
|
-
]));
|
|
44370
|
+
], 8, w5));
|
|
44365
44371
|
}
|
|
44366
44372
|
}), E5 = /* @__PURE__ */ be({
|
|
44367
44373
|
__name: "BaseTableRow",
|
|
@@ -21,6 +21,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
21
21
|
type: import("vue").PropType<string>;
|
|
22
22
|
default: undefined;
|
|
23
23
|
};
|
|
24
|
+
align: {
|
|
25
|
+
type: import("vue").PropType<"left" | "right" | "center">;
|
|
26
|
+
default: undefined;
|
|
27
|
+
};
|
|
24
28
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
25
29
|
class: {
|
|
26
30
|
type: import("vue").PropType<string | false | 0 | ClassNameValue[] | null>;
|
|
@@ -42,12 +46,17 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
42
46
|
type: import("vue").PropType<string>;
|
|
43
47
|
default: undefined;
|
|
44
48
|
};
|
|
49
|
+
align: {
|
|
50
|
+
type: import("vue").PropType<"left" | "right" | "center">;
|
|
51
|
+
default: undefined;
|
|
52
|
+
};
|
|
45
53
|
}>>, {
|
|
46
54
|
class: string | false | 0 | ClassNameValue[] | null;
|
|
47
55
|
title: string;
|
|
48
56
|
to: RouteLocationRaw;
|
|
49
57
|
target: "_blank" | "_self" | "_parent" | "_top";
|
|
50
58
|
href: string;
|
|
59
|
+
align: "left" | "right" | "center";
|
|
51
60
|
}, {}>, {
|
|
52
61
|
default?(_: {}): any;
|
|
53
62
|
}>;
|
|
@@ -4,13 +4,22 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
4
4
|
type: import("vue").PropType<string | false | 0 | ClassNameValue[] | null>;
|
|
5
5
|
default: undefined;
|
|
6
6
|
};
|
|
7
|
+
align: {
|
|
8
|
+
type: import("vue").PropType<"left" | "right" | "center">;
|
|
9
|
+
default: undefined;
|
|
10
|
+
};
|
|
7
11
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
8
12
|
class: {
|
|
9
13
|
type: import("vue").PropType<string | false | 0 | ClassNameValue[] | null>;
|
|
10
14
|
default: undefined;
|
|
11
15
|
};
|
|
16
|
+
align: {
|
|
17
|
+
type: import("vue").PropType<"left" | "right" | "center">;
|
|
18
|
+
default: undefined;
|
|
19
|
+
};
|
|
12
20
|
}>>, {
|
|
13
21
|
class: string | false | 0 | ClassNameValue[] | null;
|
|
22
|
+
align: "left" | "right" | "center";
|
|
14
23
|
}, {}>, {
|
|
15
24
|
default?(_: {}): any;
|
|
16
25
|
}>;
|
package/package.json
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<td
|
|
2
|
+
<td
|
|
3
|
+
class="p-0 border-b border-slate-200"
|
|
4
|
+
:align="align"
|
|
5
|
+
>
|
|
3
6
|
<component
|
|
4
7
|
:is="componentName"
|
|
5
8
|
:class="classes"
|
|
@@ -40,12 +43,14 @@ const props = withDefaults(defineProps<{
|
|
|
40
43
|
to?: RouteLocationRaw,
|
|
41
44
|
target?: '_blank' | '_self' | '_parent' | '_top',
|
|
42
45
|
title?: string,
|
|
46
|
+
align?: 'left' | 'center' | 'right',
|
|
43
47
|
class?: ClassNameValue,
|
|
44
48
|
}>(), {
|
|
45
49
|
href: undefined,
|
|
46
50
|
to: undefined,
|
|
47
51
|
target: undefined,
|
|
48
52
|
title: undefined,
|
|
53
|
+
align: undefined,
|
|
49
54
|
class: undefined,
|
|
50
55
|
});
|
|
51
56
|
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<th
|
|
2
|
+
<th
|
|
3
|
+
class="p-0 border-b border-slate-200"
|
|
4
|
+
:align="align"
|
|
5
|
+
>
|
|
3
6
|
<div :class="classes">
|
|
4
7
|
<slot />
|
|
5
8
|
</div>
|
|
@@ -14,11 +17,6 @@ import { ComputedRef } from 'vue';
|
|
|
14
17
|
|
|
15
18
|
const baseTable = inject('BaseTable') as ComputedRef<TableProps> | undefined;
|
|
16
19
|
const baseTableHead = inject('BaseTableHead', undefined);
|
|
17
|
-
const baseTableRow = inject('BaseTableRow');
|
|
18
|
-
|
|
19
|
-
if (!baseTableRow) {
|
|
20
|
-
throw new Error('BaseTableCell must be used within a BaseTableRow.');
|
|
21
|
-
}
|
|
22
20
|
|
|
23
21
|
if (!baseTableHead) {
|
|
24
22
|
throw new Error('BaseTableCell must be used within a BaseTableHead.');
|
|
@@ -30,8 +28,10 @@ defineOptions({
|
|
|
30
28
|
|
|
31
29
|
const props = withDefaults(defineProps<{
|
|
32
30
|
class?: ClassNameValue,
|
|
31
|
+
align?: 'left' | 'center' | 'right',
|
|
33
32
|
}>(), {
|
|
34
33
|
class: undefined,
|
|
34
|
+
align: undefined,
|
|
35
35
|
});
|
|
36
36
|
|
|
37
37
|
const cellConfig = computed<CellConfig>(() => {
|