sprintify-ui 0.0.65 → 0.0.67
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
|
@@ -6947,16 +6947,16 @@ const Dc = /* @__PURE__ */ Ve(Lc, [["render", Fc]]), Pc = { class: "flex justify
|
|
|
6947
6947
|
}
|
|
6948
6948
|
},
|
|
6949
6949
|
emits: [
|
|
6950
|
-
"click",
|
|
6950
|
+
"cell-click",
|
|
6951
6951
|
"delete",
|
|
6952
6952
|
"checkAll",
|
|
6953
6953
|
"update:checked-rows",
|
|
6954
|
-
"check"
|
|
6954
|
+
"ce-check"
|
|
6955
6955
|
],
|
|
6956
6956
|
setup(e, { expose: r, emit: n }) {
|
|
6957
6957
|
const l = e, o = et(), a = xe.http, s = sr(), i = Et(), p = N(null), c = N(null);
|
|
6958
6958
|
function w(u) {
|
|
6959
|
-
n("click", u);
|
|
6959
|
+
n("cell-click", u);
|
|
6960
6960
|
}
|
|
6961
6961
|
const g = (u, m) => u.can && Object.prototype.hasOwnProperty.call(u.can, m) ? u.can[m] : !0, E = (u) => g(u, "update"), L = (u) => g(u, "delete");
|
|
6962
6962
|
function S(u) {
|
|
@@ -7056,7 +7056,7 @@ const Dc = /* @__PURE__ */ Ve(Lc, [["render", Fc]]), Pc = { class: "flex justify
|
|
|
7056
7056
|
onCheck: m[0] || (m[0] = (se) => u.$emit("check", se)),
|
|
7057
7057
|
"onUpdate:checkedRows": m[1] || (m[1] = (se) => u.$emit("update:checked-rows", se)),
|
|
7058
7058
|
onCheckAll: m[2] || (m[2] = (se) => u.$emit("checkAll", se)),
|
|
7059
|
-
|
|
7059
|
+
onCellClick: w
|
|
7060
7060
|
}, {
|
|
7061
7061
|
default: H(() => [
|
|
7062
7062
|
Y(u.$slots, "default"),
|
|
@@ -10768,13 +10768,16 @@ const np = { class: "relative flex space-x-3" }, rp = { class: "text-sm leading-
|
|
|
10768
10768
|
U(ln, {
|
|
10769
10769
|
item: c,
|
|
10770
10770
|
dark: e.dark,
|
|
10771
|
-
"item-class":
|
|
10771
|
+
"item-class": [
|
|
10772
|
+
"flex w-full",
|
|
10773
|
+
e.dark ? "text-slate-300 hover:text-white" : "text-slate-900 hover:text-slate-600"
|
|
10774
|
+
]
|
|
10772
10775
|
}, {
|
|
10773
10776
|
default: H(() => [
|
|
10774
10777
|
ze(W(c.label), 1)
|
|
10775
10778
|
]),
|
|
10776
10779
|
_: 2
|
|
10777
|
-
}, 1032, ["item", "dark"])
|
|
10780
|
+
}, 1032, ["item", "dark", "item-class"])
|
|
10778
10781
|
]))), 128))
|
|
10779
10782
|
])) : Q("", !0)
|
|
10780
10783
|
]));
|
|
@@ -148,11 +148,11 @@ declare const _default: {
|
|
|
148
148
|
type: NumberConstructor;
|
|
149
149
|
};
|
|
150
150
|
}>> & {
|
|
151
|
-
onClick?: ((...args: any[]) => any) | undefined;
|
|
152
151
|
onDelete?: ((...args: any[]) => any) | undefined;
|
|
153
152
|
onCheckAll?: ((...args: any[]) => any) | undefined;
|
|
154
153
|
"onUpdate:checked-rows"?: ((...args: any[]) => any) | undefined;
|
|
155
|
-
|
|
154
|
+
"onCell-click"?: ((...args: any[]) => any) | undefined;
|
|
155
|
+
"onCe-check"?: ((...args: any[]) => any) | undefined;
|
|
156
156
|
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "actions" | "urlQuery" | "defaultQuery" | "searchable" | "historyMode" | "detailed" | "checkable" | "checkableActions" | "isRowCheckable" | "checkedRows" | "hasDetailedVisible" | "maxHeight" | "editButton" | "editUrl" | "deleteButton" | "deleteUrl" | "toggleable">;
|
|
157
157
|
$attrs: {
|
|
158
158
|
[x: string]: unknown;
|
|
@@ -165,7 +165,7 @@ declare const _default: {
|
|
|
165
165
|
}>;
|
|
166
166
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
167
167
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
168
|
-
$emit: (event: "
|
|
168
|
+
$emit: (event: "delete" | "checkAll" | "update:checked-rows" | "cell-click" | "ce-check", ...args: any[]) => void;
|
|
169
169
|
$el: any;
|
|
170
170
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
171
171
|
/**
|
|
@@ -293,15 +293,15 @@ declare const _default: {
|
|
|
293
293
|
type: NumberConstructor;
|
|
294
294
|
};
|
|
295
295
|
}>> & {
|
|
296
|
-
onClick?: ((...args: any[]) => any) | undefined;
|
|
297
296
|
onDelete?: ((...args: any[]) => any) | undefined;
|
|
298
297
|
onCheckAll?: ((...args: any[]) => any) | undefined;
|
|
299
298
|
"onUpdate:checked-rows"?: ((...args: any[]) => any) | undefined;
|
|
300
|
-
|
|
299
|
+
"onCell-click"?: ((...args: any[]) => any) | undefined;
|
|
300
|
+
"onCe-check"?: ((...args: any[]) => any) | undefined;
|
|
301
301
|
}, {
|
|
302
302
|
fetch: () => void;
|
|
303
303
|
query: import("vue").ComputedRef<DataTableQuery | null>;
|
|
304
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
304
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "checkAll" | "update:checked-rows" | "cell-click" | "ce-check")[], string, {
|
|
305
305
|
actions: MenuItemInterface[];
|
|
306
306
|
urlQuery: Record<string, any>;
|
|
307
307
|
defaultQuery: DataTableQuery;
|
|
@@ -465,11 +465,11 @@ declare const _default: {
|
|
|
465
465
|
type: NumberConstructor;
|
|
466
466
|
};
|
|
467
467
|
}>> & {
|
|
468
|
-
onClick?: ((...args: any[]) => any) | undefined;
|
|
469
468
|
onDelete?: ((...args: any[]) => any) | undefined;
|
|
470
469
|
onCheckAll?: ((...args: any[]) => any) | undefined;
|
|
471
470
|
"onUpdate:checked-rows"?: ((...args: any[]) => any) | undefined;
|
|
472
|
-
|
|
471
|
+
"onCell-click"?: ((...args: any[]) => any) | undefined;
|
|
472
|
+
"onCe-check"?: ((...args: any[]) => any) | undefined;
|
|
473
473
|
} & import("vue").ShallowUnwrapRef<{
|
|
474
474
|
fetch: () => void;
|
|
475
475
|
query: import("vue").ComputedRef<DataTableQuery | null>;
|
|
@@ -603,15 +603,15 @@ declare const _default: {
|
|
|
603
603
|
type: NumberConstructor;
|
|
604
604
|
};
|
|
605
605
|
}>> & {
|
|
606
|
-
onClick?: ((...args: any[]) => any) | undefined;
|
|
607
606
|
onDelete?: ((...args: any[]) => any) | undefined;
|
|
608
607
|
onCheckAll?: ((...args: any[]) => any) | undefined;
|
|
609
608
|
"onUpdate:checked-rows"?: ((...args: any[]) => any) | undefined;
|
|
610
|
-
|
|
609
|
+
"onCell-click"?: ((...args: any[]) => any) | undefined;
|
|
610
|
+
"onCe-check"?: ((...args: any[]) => any) | undefined;
|
|
611
611
|
}, {
|
|
612
612
|
fetch: () => void;
|
|
613
613
|
query: import("vue").ComputedRef<DataTableQuery | null>;
|
|
614
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("
|
|
614
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("delete" | "checkAll" | "update:checked-rows" | "cell-click" | "ce-check")[], "delete" | "checkAll" | "update:checked-rows" | "cell-click" | "ce-check", {
|
|
615
615
|
actions: MenuItemInterface[];
|
|
616
616
|
urlQuery: Record<string, any>;
|
|
617
617
|
defaultQuery: DataTableQuery;
|
package/package.json
CHANGED
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
@check="$emit('check', $event)"
|
|
40
40
|
@update:checked-rows="$emit('update:checked-rows', $event)"
|
|
41
41
|
@check-all="$emit('checkAll', $event)"
|
|
42
|
-
@click="
|
|
42
|
+
@cell-click="onCellClick"
|
|
43
43
|
>
|
|
44
44
|
<template #default>
|
|
45
45
|
<slot />
|
|
@@ -335,11 +335,11 @@ const props = defineProps({
|
|
|
335
335
|
});
|
|
336
336
|
|
|
337
337
|
const emit = defineEmits([
|
|
338
|
-
'click',
|
|
338
|
+
'cell-click',
|
|
339
339
|
'delete',
|
|
340
340
|
'checkAll',
|
|
341
341
|
'update:checked-rows',
|
|
342
|
-
'check',
|
|
342
|
+
'ce-check',
|
|
343
343
|
]);
|
|
344
344
|
|
|
345
345
|
const dataIterator = ref(null) as Ref<null | InstanceType<
|
|
@@ -352,8 +352,8 @@ const dataIterator = ref(null) as Ref<null | InstanceType<
|
|
|
352
352
|
|--------------------------------------------------------------------------
|
|
353
353
|
*/
|
|
354
354
|
|
|
355
|
-
function
|
|
356
|
-
emit('click', payload);
|
|
355
|
+
function onCellClick(payload: CollectionItem) {
|
|
356
|
+
emit('cell-click', payload);
|
|
357
357
|
}
|
|
358
358
|
|
|
359
359
|
/*
|
|
@@ -25,7 +25,12 @@
|
|
|
25
25
|
<BaseActionItem
|
|
26
26
|
:item="subItem"
|
|
27
27
|
:dark="dark"
|
|
28
|
-
item-class="
|
|
28
|
+
:item-class="[
|
|
29
|
+
'flex w-full',
|
|
30
|
+
dark
|
|
31
|
+
? 'text-slate-300 hover:text-white'
|
|
32
|
+
: 'text-slate-900 hover:text-slate-600',
|
|
33
|
+
]"
|
|
29
34
|
>
|
|
30
35
|
{{ subItem.label }}
|
|
31
36
|
</BaseActionItem>
|