sprintify-ui 0.10.83 → 0.10.86
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 +12 -6
- package/dist/types/components/BaseHeader.vue.d.ts +2 -0
- package/dist/types/components/BaseSwitch.vue.d.ts +8 -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/BaseSwitch.vue +1 -1
- package/src/components/BaseTimePicker.vue +6 -1
package/dist/sprintify-ui.es.js
CHANGED
|
@@ -24379,8 +24379,9 @@ const JA = ["onClick"], XA = { class: "px-2 flex items-center" }, QA = { class:
|
|
|
24379
24379
|
delay: 400
|
|
24380
24380
|
}, {
|
|
24381
24381
|
default: Y(() => [
|
|
24382
|
-
(x(), ne(qn(l.to ? "router-link" : "div"), {
|
|
24382
|
+
(x(), ne(qn(l.to ? "router-link" : l.href ? "a" : "div"), {
|
|
24383
24383
|
to: l.to,
|
|
24384
|
+
href: l.href,
|
|
24384
24385
|
class: "flex items-center gap-1.5"
|
|
24385
24386
|
}, {
|
|
24386
24387
|
default: Y(() => [
|
|
@@ -24393,7 +24394,7 @@ const JA = ["onClick"], XA = { class: "px-2 flex items-center" }, QA = { class:
|
|
|
24393
24394
|
A("span", SI, se(l.label), 1)
|
|
24394
24395
|
]),
|
|
24395
24396
|
_: 2
|
|
24396
|
-
}, 1032, ["to"]))
|
|
24397
|
+
}, 1032, ["to", "href"]))
|
|
24397
24398
|
]),
|
|
24398
24399
|
_: 2
|
|
24399
24400
|
}, 1032, ["visible", "text"]))), 128))
|
|
@@ -43995,7 +43996,7 @@ const HL = /* @__PURE__ */ Qi($L, [["render", jL]]), qL = { class: "flex-shrink-
|
|
|
43995
43996
|
type: String
|
|
43996
43997
|
}
|
|
43997
43998
|
},
|
|
43998
|
-
emits: ["update:modelValue"],
|
|
43999
|
+
emits: ["update:modelValue", "blur", "focus"],
|
|
43999
44000
|
setup(n, { emit: t }) {
|
|
44000
44001
|
const e = n, r = t, { emitUpdate: o, sizeInternal: i } = On({
|
|
44001
44002
|
name: S(() => e.name),
|
|
@@ -44661,7 +44662,7 @@ const HL = /* @__PURE__ */ Qi($L, [["render", jL]]), qL = { class: "flex-shrink-
|
|
|
44661
44662
|
onClick: (g) => c(`${n.type}-${m}`, n.type, m)
|
|
44662
44663
|
}, se(m), 43, F4))), 128));
|
|
44663
44664
|
}
|
|
44664
|
-
}), V4 = { class: "relative" }, j4 = ["name", "disabled", "placeholder"], H4 = { class: "inline-block w-[200px] overflow-hidden input-rounded ring-1 ring-black ring-opacity-10 bg-white py-2 shadow-2xl" }, q4 = { class: "text-sm font-normal" }, W4 = { class: "flex base-time-picker" }, U4 = { class: "flex justify-between items-center pt-2 mt-1 px-2 border-t" }, K4 = ["onClick"], Y4 = ["onClick"], G4 = /* @__PURE__ */ te({
|
|
44665
|
+
}), V4 = { class: "relative" }, j4 = ["name", "disabled", "placeholder"], H4 = { class: "inline-block w-[200px] overflow-hidden input-rounded ring-1 ring-black ring-opacity-10 bg-white py-2 shadow-2xl" }, q4 = { class: "text-sm font-normal" }, W4 = { class: "flex base-time-picker" }, U4 = { class: "flex justify-between items-center gap-2 pt-2 mt-1 px-2 border-t" }, K4 = ["onClick"], Y4 = ["onClick"], G4 = /* @__PURE__ */ te({
|
|
44665
44666
|
__name: "BaseTimePicker",
|
|
44666
44667
|
props: {
|
|
44667
44668
|
modelValue: {
|
|
@@ -44713,6 +44714,10 @@ const HL = /* @__PURE__ */ Qi($L, [["render", jL]]), qL = { class: "flex-shrink-
|
|
|
44713
44714
|
hasError: {
|
|
44714
44715
|
default: !1,
|
|
44715
44716
|
type: Boolean
|
|
44717
|
+
},
|
|
44718
|
+
showNowButton: {
|
|
44719
|
+
default: !1,
|
|
44720
|
+
type: Boolean
|
|
44716
44721
|
}
|
|
44717
44722
|
},
|
|
44718
44723
|
emits: ["update:modelValue"],
|
|
@@ -44888,10 +44893,11 @@ const HL = /* @__PURE__ */ Qi($L, [["render", jL]]), qL = { class: "flex-shrink-
|
|
|
44888
44893
|
], 512))
|
|
44889
44894
|
]),
|
|
44890
44895
|
A("div", U4, [
|
|
44891
|
-
|
|
44896
|
+
n.showNowButton ? (x(), $("button", {
|
|
44897
|
+
key: 0,
|
|
44892
44898
|
class: "btn btn-slate btn-sm block",
|
|
44893
44899
|
onClick: (G) => R(ee)
|
|
44894
|
-
}, se(v(be)("sui.now")), 9, K4),
|
|
44900
|
+
}, se(v(be)("sui.now")), 9, K4)) : Z("", !0),
|
|
44895
44901
|
A("button", {
|
|
44896
44902
|
class: "btn btn-primary btn-sm block",
|
|
44897
44903
|
onClick: (G) => I(ee)
|
|
@@ -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;
|
|
@@ -66,6 +66,8 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
66
66
|
icon: typeof icon;
|
|
67
67
|
update: typeof update;
|
|
68
68
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
69
|
+
blur: (...args: any[]) => void;
|
|
70
|
+
focus: (...args: any[]) => void;
|
|
69
71
|
"update:modelValue": (...args: any[]) => void;
|
|
70
72
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
71
73
|
modelValue: {
|
|
@@ -105,6 +107,8 @@ declare const __VLS_self: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
105
107
|
type: StringConstructor;
|
|
106
108
|
};
|
|
107
109
|
}>> & Readonly<{
|
|
110
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
111
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
108
112
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
109
113
|
}>, {
|
|
110
114
|
size: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
@@ -155,6 +159,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
155
159
|
type: StringConstructor;
|
|
156
160
|
};
|
|
157
161
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
162
|
+
blur: (...args: any[]) => void;
|
|
163
|
+
focus: (...args: any[]) => void;
|
|
158
164
|
"update:modelValue": (...args: any[]) => void;
|
|
159
165
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
160
166
|
modelValue: {
|
|
@@ -194,6 +200,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
194
200
|
type: StringConstructor;
|
|
195
201
|
};
|
|
196
202
|
}>> & Readonly<{
|
|
203
|
+
onBlur?: ((...args: any[]) => any) | undefined;
|
|
204
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
197
205
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
198
206
|
}>, {
|
|
199
207
|
size: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
@@ -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';
|
|
@@ -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']);
|