sprintify-ui 0.0.152 → 0.0.154
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
|
@@ -2215,7 +2215,7 @@ const mi = /* @__PURE__ */ be({
|
|
|
2215
2215
|
class: de(["relative isolate overflow-hidden rounded", [t.background]])
|
|
2216
2216
|
}, [
|
|
2217
2217
|
q("div", {
|
|
2218
|
-
class: "
|
|
2218
|
+
class: "absolute inset-0 -translate-x-full animate-shimmer border-t border-white/80 bg-gradient-to-r from-transparent via-white/80 to-transparent",
|
|
2219
2219
|
style: ct({
|
|
2220
2220
|
animationDelay: t.delay
|
|
2221
2221
|
})
|
|
@@ -13061,7 +13061,7 @@ const sl = /* @__PURE__ */ new WeakMap(), ul = (t) => {
|
|
|
13061
13061
|
hasError: G(() => e.hasError),
|
|
13062
13062
|
emit: o
|
|
13063
13063
|
}), l = G(() => {
|
|
13064
|
-
if (e.step === void 0 || e.step === 0)
|
|
13064
|
+
if (e.step === void 0 || e.step === null || e.step === 0)
|
|
13065
13065
|
return 0;
|
|
13066
13066
|
const _ = e.step.toString().split(".");
|
|
13067
13067
|
return _.length === 1 ? 0 : _[1].length;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { CollectionItem, DataTableQuery, MenuItemInterface } from '@/types';
|
|
3
|
+
import { RouteLocationRaw } from 'vue-router';
|
|
3
4
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
4
5
|
/**
|
|
5
6
|
* Base URL from which to make requests
|
|
@@ -35,7 +36,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
35
36
|
*/
|
|
36
37
|
editUrl: {
|
|
37
38
|
default: undefined;
|
|
38
|
-
type: PropType<(row: CollectionItem) =>
|
|
39
|
+
type: PropType<(row: CollectionItem) => RouteLocationRaw>;
|
|
39
40
|
};
|
|
40
41
|
/**
|
|
41
42
|
* Show/Hide delete button
|
|
@@ -164,7 +165,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
164
165
|
*/
|
|
165
166
|
editUrl: {
|
|
166
167
|
default: undefined;
|
|
167
|
-
type: PropType<(row: CollectionItem) =>
|
|
168
|
+
type: PropType<(row: CollectionItem) => RouteLocationRaw>;
|
|
168
169
|
};
|
|
169
170
|
/**
|
|
170
171
|
* Show/Hide delete button
|
|
@@ -274,7 +275,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
|
274
275
|
hasDetailedVisible: (row: any) => boolean;
|
|
275
276
|
maxHeight: number;
|
|
276
277
|
editButton: boolean;
|
|
277
|
-
editUrl: (row: CollectionItem) =>
|
|
278
|
+
editUrl: (row: CollectionItem) => RouteLocationRaw;
|
|
278
279
|
deleteButton: boolean;
|
|
279
280
|
deleteUrl: (row: CollectionItem) => string;
|
|
280
281
|
toggleable: boolean;
|
package/package.json
CHANGED
|
@@ -187,6 +187,7 @@ import BaseTableColumn from './BaseTableColumn.vue';
|
|
|
187
187
|
import BaseDataTableToggleColumns from './BaseDataTableToggleColumns.vue';
|
|
188
188
|
import { config } from '@/index';
|
|
189
189
|
import BaseEmptyState from '../svg/BaseEmptyState.vue';
|
|
190
|
+
import { RouteLocationRaw } from 'vue-router';
|
|
190
191
|
|
|
191
192
|
const i18n = useI18n();
|
|
192
193
|
|
|
@@ -236,7 +237,7 @@ const props = defineProps({
|
|
|
236
237
|
*/
|
|
237
238
|
editUrl: {
|
|
238
239
|
default: undefined,
|
|
239
|
-
type: Function as PropType<(row: CollectionItem) =>
|
|
240
|
+
type: Function as PropType<(row: CollectionItem) => RouteLocationRaw>,
|
|
240
241
|
},
|
|
241
242
|
|
|
242
243
|
/**
|
|
@@ -137,6 +137,7 @@ const { hasErrorInternal, emitUpdate } = useField({
|
|
|
137
137
|
|
|
138
138
|
const precision = computed(() => {
|
|
139
139
|
if (props.step === undefined) return 0;
|
|
140
|
+
if (props.step === null) return 0;
|
|
140
141
|
if (props.step === 0) return 0;
|
|
141
142
|
const parts = props.step.toString().split('.');
|
|
142
143
|
if (parts.length === 1) return 0;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="relative isolate overflow-hidden rounded" :class="[background]">
|
|
3
3
|
<div
|
|
4
|
-
class="
|
|
4
|
+
class="absolute inset-0 -translate-x-full animate-shimmer border-t border-white/80 bg-gradient-to-r from-transparent via-white/80 to-transparent"
|
|
5
5
|
:style="{
|
|
6
6
|
animationDelay: delay,
|
|
7
7
|
}"
|