sprintify-ui 0.10.84 → 0.10.87
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 +1705 -1694
- package/dist/types/components/BaseHeader.vue.d.ts +2 -0
- package/dist/types/components/BaseInput.vue.d.ts +2 -0
- package/dist/types/components/BaseTextarea.vue.d.ts +6 -0
- package/dist/types/components/BaseTimePicker.vue.d.ts +9 -0
- package/package.json +1 -1
- package/src/components/BaseHeader.vue +3 -2
- package/src/components/BaseInput.vue +8 -5
- package/src/components/BaseTextarea.vue +4 -1
- package/src/components/BaseTimePicker.vue +6 -1
|
@@ -12,6 +12,7 @@ type __VLS_Props = {
|
|
|
12
12
|
label: string;
|
|
13
13
|
tooltip?: string;
|
|
14
14
|
to?: RouteRecordRaw;
|
|
15
|
+
href?: string;
|
|
15
16
|
}[];
|
|
16
17
|
actions?: ActionItem[];
|
|
17
18
|
badge?: BaseBadgeProps;
|
|
@@ -29,6 +30,7 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
29
30
|
label: string;
|
|
30
31
|
tooltip?: string;
|
|
31
32
|
to?: RouteRecordRaw;
|
|
33
|
+
href?: string;
|
|
32
34
|
}[];
|
|
33
35
|
subtitle: string;
|
|
34
36
|
badge: BaseBadgeProps;
|
|
@@ -105,6 +105,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
105
105
|
click: (...args: any[]) => void;
|
|
106
106
|
focus: (...args: any[]) => void;
|
|
107
107
|
keydown: (...args: any[]) => void;
|
|
108
|
+
keyup: (...args: any[]) => void;
|
|
108
109
|
"update:modelValue": (...args: any[]) => void;
|
|
109
110
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
110
111
|
modelValue: {
|
|
@@ -203,6 +204,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
203
204
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
204
205
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
205
206
|
onKeydown?: ((...args: any[]) => any) | undefined;
|
|
207
|
+
onKeyup?: ((...args: any[]) => any) | undefined;
|
|
206
208
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
207
209
|
}>, {
|
|
208
210
|
class: string | string[];
|
|
@@ -56,7 +56,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
56
56
|
blur: typeof blur;
|
|
57
57
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
58
58
|
blur: (...args: any[]) => void;
|
|
59
|
+
click: (...args: any[]) => void;
|
|
59
60
|
focus: (...args: any[]) => void;
|
|
61
|
+
keydown: (...args: any[]) => void;
|
|
62
|
+
keyup: (...args: any[]) => void;
|
|
60
63
|
"update:modelValue": (...args: any[]) => void;
|
|
61
64
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
62
65
|
modelValue: {
|
|
@@ -109,7 +112,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
109
112
|
};
|
|
110
113
|
}>> & Readonly<{
|
|
111
114
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
115
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
112
116
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
117
|
+
onKeydown?: ((...args: any[]) => any) | undefined;
|
|
118
|
+
onKeyup?: ((...args: any[]) => any) | undefined;
|
|
113
119
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
114
120
|
}>, {
|
|
115
121
|
class: string | string[];
|
|
@@ -49,6 +49,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
49
49
|
default: boolean;
|
|
50
50
|
type: BooleanConstructor;
|
|
51
51
|
};
|
|
52
|
+
showNowButton: {
|
|
53
|
+
default: boolean;
|
|
54
|
+
type: BooleanConstructor;
|
|
55
|
+
};
|
|
52
56
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
53
57
|
"update:modelValue": (...args: any[]) => void;
|
|
54
58
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -100,6 +104,10 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
100
104
|
default: boolean;
|
|
101
105
|
type: BooleanConstructor;
|
|
102
106
|
};
|
|
107
|
+
showNowButton: {
|
|
108
|
+
default: boolean;
|
|
109
|
+
type: BooleanConstructor;
|
|
110
|
+
};
|
|
103
111
|
}>> & Readonly<{
|
|
104
112
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
105
113
|
}>, {
|
|
@@ -115,5 +123,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
115
123
|
minuteStep: number;
|
|
116
124
|
secondStep: number;
|
|
117
125
|
disabledSeconds: boolean;
|
|
126
|
+
showNowButton: boolean;
|
|
118
127
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
119
128
|
export default _default;
|
package/package.json
CHANGED
|
@@ -51,8 +51,9 @@
|
|
|
51
51
|
:delay="400"
|
|
52
52
|
>
|
|
53
53
|
<component
|
|
54
|
-
:is="attribute.to ? 'router-link' : 'div'"
|
|
54
|
+
:is="attribute.to ? 'router-link' : (attribute.href ? 'a' : 'div')"
|
|
55
55
|
:to="attribute.to"
|
|
56
|
+
:href="attribute.href"
|
|
56
57
|
class="flex items-center gap-1.5"
|
|
57
58
|
>
|
|
58
59
|
<BaseIcon
|
|
@@ -106,7 +107,7 @@ const props = withDefaults(
|
|
|
106
107
|
defineProps<{
|
|
107
108
|
title: string;
|
|
108
109
|
subtitle?: string;
|
|
109
|
-
attributes?: { icon?: string; label: string; tooltip?: string, to?: RouteRecordRaw }[];
|
|
110
|
+
attributes?: { icon?: string; label: string; tooltip?: string, to?: RouteRecordRaw, href?: string }[];
|
|
110
111
|
actions?: ActionItem[];
|
|
111
112
|
badge?: BaseBadgeProps;
|
|
112
113
|
layout?: 'default' | 'compact';
|
|
@@ -181,6 +181,9 @@ const props = defineProps({
|
|
|
181
181
|
},
|
|
182
182
|
});
|
|
183
183
|
|
|
184
|
+
const emit = defineEmits(['update:modelValue', 'focus', 'blur', 'click', 'keydown', 'keyup']);
|
|
185
|
+
|
|
186
|
+
|
|
184
187
|
const input = ref<HTMLInputElement | null>(null);
|
|
185
188
|
const focus = ref(false);
|
|
186
189
|
|
|
@@ -222,6 +225,11 @@ const bindings = computed<any>(() => {
|
|
|
222
225
|
if (event.code == 'Enter' && props.preventSubmit) {
|
|
223
226
|
event.preventDefault();
|
|
224
227
|
}
|
|
228
|
+
|
|
229
|
+
emit('keydown', event);
|
|
230
|
+
},
|
|
231
|
+
onKeyup(event: KeyboardEvent) {
|
|
232
|
+
emit('keyup', event);
|
|
225
233
|
},
|
|
226
234
|
onFocus: (e: Event) => {
|
|
227
235
|
emit('focus', e);
|
|
@@ -254,7 +262,6 @@ const maskInternal = computed(() => {
|
|
|
254
262
|
return props.mask;
|
|
255
263
|
});
|
|
256
264
|
|
|
257
|
-
const emit = defineEmits(['update:modelValue', 'focus', 'blur', 'click', 'keydown']);
|
|
258
265
|
|
|
259
266
|
const { nameInternal, requiredInternal, hasErrorInternal, emitUpdate, sizeInternal } =
|
|
260
267
|
useField({
|
|
@@ -277,10 +284,6 @@ function onClick(event: MouseEvent) {
|
|
|
277
284
|
emit('click', event);
|
|
278
285
|
}
|
|
279
286
|
|
|
280
|
-
function onKeydown(event: KeyboardEvent) {
|
|
281
|
-
emit('keydown', event);
|
|
282
|
-
}
|
|
283
|
-
|
|
284
287
|
const classes = computed(() => {
|
|
285
288
|
const base = `inline-flex bg-white input-rounded border transition-colors duration-200`;
|
|
286
289
|
const border = hasErrorInternal.value ? 'border-red-500' : 'border-slate-300';
|
|
@@ -10,6 +10,9 @@
|
|
|
10
10
|
:rows="rows"
|
|
11
11
|
:autocomplete="autocomplete ? 'on' : 'off'"
|
|
12
12
|
:class="classes"
|
|
13
|
+
@click="$emit('click', $event)"
|
|
14
|
+
@keydown="$emit('keydown', $event)"
|
|
15
|
+
@keyup="$emit('keyup', $event)"
|
|
13
16
|
@input="emitUpdate(transformInputValue($event))"
|
|
14
17
|
@blur="$emit('blur')"
|
|
15
18
|
@focus="$emit('focus')"
|
|
@@ -78,7 +81,7 @@ const props = defineProps({
|
|
|
78
81
|
},
|
|
79
82
|
});
|
|
80
83
|
|
|
81
|
-
const emit = defineEmits(['update:modelValue', 'blur', 'focus']);
|
|
84
|
+
const emit = defineEmits(['update:modelValue', 'blur', 'focus', 'click', 'keydown', 'keyup']);
|
|
82
85
|
|
|
83
86
|
const { nameInternal, requiredInternal, hasErrorInternal, emitUpdate, sizeInternal } =
|
|
84
87
|
useField({
|
|
@@ -101,8 +101,9 @@
|
|
|
101
101
|
</div>
|
|
102
102
|
|
|
103
103
|
<!-- Buttons Action -->
|
|
104
|
-
<div class="flex justify-between items-center pt-2 mt-1 px-2 border-t">
|
|
104
|
+
<div class="flex justify-between items-center gap-2 pt-2 mt-1 px-2 border-t">
|
|
105
105
|
<button
|
|
106
|
+
v-if="showNowButton"
|
|
106
107
|
class="btn btn-slate btn-sm block"
|
|
107
108
|
@click="now(close)"
|
|
108
109
|
>
|
|
@@ -185,6 +186,10 @@ const props = defineProps({
|
|
|
185
186
|
default: false,
|
|
186
187
|
type: Boolean,
|
|
187
188
|
},
|
|
189
|
+
showNowButton: {
|
|
190
|
+
default: false,
|
|
191
|
+
type: Boolean,
|
|
192
|
+
},
|
|
188
193
|
});
|
|
189
194
|
|
|
190
195
|
const emit = defineEmits(['update:modelValue']);
|