@autoafleveren/ui 1.4.4 → 1.4.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/ui.js
CHANGED
|
@@ -22268,7 +22268,7 @@ const yD = { class: "relative z-50 w-full rounded-2xl bg-white px-4 py-3 shadow-
|
|
|
22268
22268
|
sort: {},
|
|
22269
22269
|
sortModifiers: {}
|
|
22270
22270
|
}),
|
|
22271
|
-
emits: /* @__PURE__ */ ia(["update:modelValue", "
|
|
22271
|
+
emits: /* @__PURE__ */ ia(["update:modelValue", "updatePage", "clickItem", "contextMenuOpen", "clickContextItem", "sortClient"], ["update:sort"]),
|
|
22272
22272
|
setup(e, { expose: t, emit: n }) {
|
|
22273
22273
|
const r = e, a = n, o = An(), i = Dl(), l = mm(), s = vo(e, "sort"), u = P8("Alt"), c = X(), d = X(r?.modelValue ?? void 0), f = j(() => c.value);
|
|
22274
22274
|
et(() => d.value, (v) => {
|
|
@@ -22314,7 +22314,7 @@ const yD = { class: "relative z-50 w-full rounded-2xl bg-white px-4 py-3 shadow-
|
|
|
22314
22314
|
s.value = void 0;
|
|
22315
22315
|
}
|
|
22316
22316
|
function S(v) {
|
|
22317
|
-
a("
|
|
22317
|
+
a("sortClient", v);
|
|
22318
22318
|
}
|
|
22319
22319
|
return t({ dataTableInstance: f }), i.onResetSelection.value = (v) => {
|
|
22320
22320
|
r?.modelValue !== void 0 && (d.value = v);
|
package/package.json
CHANGED
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
|
|
20
20
|
const emit = defineEmits<{
|
|
21
21
|
(event: 'update:modelValue', value: number[]): void;
|
|
22
|
-
(event: 'update:sort', value: UpdateSortArgument): void;
|
|
23
22
|
(event: 'updatePage', value: number): void;
|
|
24
23
|
(event: 'clickItem', value: Item): void;
|
|
25
24
|
(event: 'contextMenuOpen', value: Item): void;
|
|
26
25
|
(event: 'clickContextItem', value: Item): void;
|
|
26
|
+
(event: 'sortClient', value: UpdateSortArgument): void;
|
|
27
27
|
}>();
|
|
28
28
|
|
|
29
29
|
const slots = useSlots();
|
|
@@ -126,8 +126,8 @@
|
|
|
126
126
|
sort.value = undefined;
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
-
function
|
|
130
|
-
emit('
|
|
129
|
+
function onUpdateClientSort(value: UpdateSortArgument): void {
|
|
130
|
+
emit('sortClient', value);
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
defineExpose({ dataTableInstance });
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
@click-row="clickRow"
|
|
163
163
|
@contextmenu-row="contextMenu.open"
|
|
164
164
|
@update:server-options="onUpdateServerOptions"
|
|
165
|
-
@update-sort="
|
|
165
|
+
@update-sort="onUpdateClientSort"
|
|
166
166
|
>
|
|
167
167
|
<template #loading>
|
|
168
168
|
<AppLoader size="medium" />
|